Skip to content

Releases: ThalosDev/vinted-rs

v0.11.0

18 Apr 15:32
c4099a0
Compare
Choose a tag to compare

Impact

Warning

Breaking Changes:

  • Rust version updated to 1.85, distribution 2024
  • Existing integrations relying on Item.price or Item.currency will need to adapt to the new Price 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 version 1.0 to 2.0.
  • rand: Updated from version 0.8 to 0.9.
  • typed-builder: Updated from version 0.20 to 0.21.
  • redis-macros: Updated from version 0.4.2 to 0.5.2.
  • redis: Updated from version 0.27.5 to 0.29.1.
  • bb8-postgres: Updated from version 0.8 to 0.9.
  • dotenvy: Added as a new dependency with version 0.15.

Changes

1. Enhancements to Item Struct

  • Refactored the Item struct:
    • Replaced the price and currency fields with a new Price 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>.

2. Support for Additional Domains

  • Expanded the DOMAINS array to include 5 new domains:
    • Added support for fi, gr, ie, hr, and dk.
  • 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.

3. Improved Cookie Handling

  • Replaced the refresh_cookies method with a new get_cookies implementation:
    • Added retries for cookie retrieval (up to 3 attempts).
    • Enhanced error handling with detailed error reporting.
    • Updated VintedWrapper calls to use get_cookies instead of refresh_cookies.

4. Test Case Updates

  • Modified test cases to align with the new Price struct and get_cookies implementation:
    • Updated references to item.price and item.currency to use the new Price fields (amount and currency_code).
    • Replaced unreachable CookiesError handling where appropriate to ensure better test coverage.

5. Other Changes

  • Updated the DEFAULT_USER_AGENT constant:
    • Changed from "PostmanRuntime/7.32.3" to "*/*".

Autogenerated Changelog

Full Changelog: v0.10.0...v0.10.1

v0.10.0

03 Nov 15:10
a9e1d16
Compare
Choose a tag to compare

Fixed

  • Re-exported Redis crate #115

  • Added support for fields that may come as boolean or integer #118

Improved

  • Removed hardcoded DB strings and introduced a .env file required for feature Advanced Items #117

Autogenerated CHANGELOG

Full Changelog: v0.9.1...v0.10.0

v0.9.1

24 Sep 11:21
dfd7ca2
Compare
Choose a tag to compare

What's Changed

⚠️Not using develop branch any more. Leaving main as "canary"/develop channel and using releases to declare stable and experimental versions

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

28 Jul 13:30
8292951
Compare
Choose a tag to compare

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 to 0.8 #94

  • update typed-builder requirement from 0.18 to 0.19 #96

  • update redis requirement from 0.24.0 to 0.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

02 Apr 21:37
272f5f5
Compare
Choose a tag to compare

0.8.7 (2024-04-3) #82

Improved

  • Made all fields in the filter::models crates pub #81
  • Added cargo_publish workflow #83

Fixes

  • Added more documentation on filter::models crates fields

What's Changed

Full Changelog: v0.8.6...v0.8.7

v0.8.6

06 Sep 16:49
ef1b452
Compare
Choose a tag to compare

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

v0.5.0

05 Aug 11:45
519f9cc
Compare
Choose a tag to compare

0.5.0 (2023-08-04) #52

Improved

Size struct

Added more fields:

  • title name: Actual size, as XL 🇪🇸 🇫🇷 🇬🇧
  • size_type: More information about the size,as Jean's sizes 🇪🇸 🇫🇷 🇬🇧
  • category_id: Father category related

v0.4.0

27 Jul 16:11
14d46d6
Compare
Choose a tag to compare

Improved

  • Removed strip option from filters structs

What's Changed

  • Ft/In the memory of strip option by @alvarocabo in #47

Full Changelog: v0.3.3...v0.4.0

v0.3.3

26 Jul 22:05
fb9ed36
Compare
Choose a tag to compare

Added

  • Convert VintedWrapperError to FangError support.

What's Changed

  • impl From for FangError by @pxp9 in #45

Full Changelog: v0.3.2...v0.3.3

v0.3.2

17 Jul 18:47
06a8359
Compare
Choose a tag to compare

0.3.2 (2023-07-17) #44

Added

  • Models now implement serde::{Serialize, Deserialize} #43

Improved

  • Example project, python benchmark added #41