Releases: ThalosDev/vinted-rs
Releases · ThalosDev/vinted-rs
v0.11.0
Impact
Warning
Breaking Changes:
- Rust version updated to
1.85
, distribution2024
- Existing integrations relying on
Item.price
orItem.currency
will need to adapt to the newPrice
struct format. - Updated cookie handling logic may affect custom implementations that relied on
refresh_cookies
.
Note
Improvements:
- Enhanced support for additional Vinted domains.
- Improved error handling and resiliency for cookie management.
- Cleaner and more structured representation of pricing data.
Important
Dependency updates
thiserror
: Updated from version1.0
to2.0
.rand
: Updated from version0.8
to0.9
.typed-builder
: Updated from version0.20
to0.21
.redis-macros
: Updated from version0.4.2
to0.5.2
.redis
: Updated from version0.27.5
to0.29.1
.bb8-postgres
: Updated from version0.8
to0.9
.dotenvy
: Added as a new dependency with version0.15
.
Changes
1. Enhancements to Item
Struct
- Refactored the
Item
struct:- Replaced the
price
andcurrency
fields with a newPrice
struct:pub struct Price { pub amount: String, pub currency_code: String, }
- Updated the
fmt::Display
implementation to reflect this change:- Price now displays as
<amount> <currency_code>
.
- Price now displays as
- Replaced the
2. Support for Additional Domains
- Expanded the
DOMAINS
array to include 5 new domains:- Added support for
fi
,gr
,ie
,hr
, anddk
.
- Added support for
- Updated the
Host
enum and its associated methods to incorporate these domains:- Methods modified include:
is_euro_host
impl From<&str> for Host
impl From<Host> for &str
VintedWrappers::default
- Adjusted logic in
is_euro_host
to ensure correct handling of Euro-based hosts.
- Methods modified include:
3. Improved Cookie Handling
- Replaced the
refresh_cookies
method with a newget_cookies
implementation:- Added retries for cookie retrieval (up to 3 attempts).
- Enhanced error handling with detailed error reporting.
- Updated
VintedWrapper
calls to useget_cookies
instead ofrefresh_cookies
.
4. Test Case Updates
- Modified test cases to align with the new
Price
struct andget_cookies
implementation:- Updated references to
item.price
anditem.currency
to use the newPrice
fields (amount
andcurrency_code
). - Replaced unreachable
CookiesError
handling where appropriate to ensure better test coverage.
- Updated references to
5. Other Changes
- Updated the
DEFAULT_USER_AGENT
constant:- Changed from
"PostmanRuntime/7.32.3"
to"*/*"
.
- Changed from
Autogenerated Changelog
Full Changelog: v0.10.0...v0.10.1
v0.10.0
Fixed
Improved
- Removed hardcoded DB strings and introduced a
.env
file required for featureAdvanced Items
#117
Autogenerated CHANGELOG
- Create .gitattributes by @0xCAB0 in #114
- Redis reexported in vinted-rs 0.9.2 by @pxp9 in #115
- Handle multitype items by @0xCAB0 in #118
- Update CHANGELOG.md by @0xCAB0 in #121
Full Changelog: v0.9.1...v0.10.0
v0.9.1
What's Changed
Fixed
- #108 : Updated Redis to 0.27.2
- #105 : Updated TypeBuilder to 0.20
- #109 : Solved vulnerable dependency for Db Feeder
Full Changelog: v0.9.0...v0.9.1
v0.9.0
0.9.0 (2024-07-28) #97
Fixed
- Updated API fields for
advancedItem
Improved
-
Moved the scrapping scripts in
/scrapping
folder and removed the old repo -
update
reqwest_cookie_store
requirement from 0.6 to0.8
#94 -
update
typed-builder
requirement from 0.18 to0.19
#96 -
update
redis
requirement from 0.24.0 to0.25.4
#93
Autogenerated
- chore(cargo): update redis requirement from 0.23.2 to 0.24.0 by @dependabot in #79
- chore(cargo): update typed-builder requirement from 0.16 to 0.18 by @dependabot in #78
- ci(actions): bump actions/checkout from 3 to 4 by @dependabot in #76
- Ft/Made model's field public by @0xCAB0 in #81
- Add cargo publish workflow by @0xCAB0 in #83
- chore(cargo): update redis requirement from 0.24.0 to 0.25.3 by @0xCAB0 in #89
- Changed dependanbot target branch by @0xCAB0 in #90
- chore(deps): bump tqdm from 4.62.3 to 4.66.3 in /examples/filter_example by @dependabot in #95
- v0.9.0 by @0xCAB0 in #97
Full Changelog: v0.8.7...v0.9.0
v0.8.7
v0.8.6
What's Changed
- Ft/change size structure by @alvarocabo in #51
- Fix size migration by @alvarocabo in #53
- Fix size migration by @alvarocabo in #54
- Ft/Advanced item struct by @alvarocabo in #57
- vinted-rs 0.6.0 by @pxp9 in #58
- Ft/add redis trait to objects by @alvarocabo in #59
- Ft/add redis trait to objects (#59) by @pxp9 in #60
- Allowed to use with multiple hosts by @alvarocabo in #62
- bump the version by @pxp9 in #63
- get the same wrapper not a copy by @pxp9 in #64
- add func all_the_wrappers by @pxp9 in #65
- merge from main to develop by @pxp9 in #68
- Allow setting user-agent by @alvarocabo in #67
- allow set user agent by @pxp9 in #69
- chore(cargo): update typed-builder requirement from 0.15 to 0.16 by @dependabot in #66
- chore(cargo): update postgres-types requirement from 0.X.X to 0.2.6 by @dependabot in #61
- Ft/allow proxy by @alvarocabo in #70
- Ft/Added proxy support by @alvarocabo in #71
- fix cookies removal by @pxp9 in #72
- Fix/Refresh cookies by @alvarocabo in #74
- Develop by @pxp9 in #75
Full Changelog: v0.5.0...v0.8.6