Skip to content

Releases: Tobi-De/dj-shop-cart

v7.1.0

01 Jun 10:44
Compare
Choose a tag to compare

What's Changed

  • refactor: cart does not depend on request anymore
  • build: drop support for python < 3.10 and django < 4
  • build(deps-dev): bump pre-commit from 3.2.1 to 3.3.3 by @dependabot in #101
  • build(deps): bump django from 4.1.7 to 4.2.2 by @dependabot in #100
  • build(deps-dev): bump redis from 4.5.3 to 4.5.5 by @dependabot in #98
  • build(deps-dev): bump ipython from 8.11.0 to 8.12.2 by @dependabot in #97
  • build(deps-dev): bump black from 23.1.0 to 23.3.0 by @dependabot in #88

Full Changelog: 7.0.0...v7.1.0

7.0.0

30 Mar 09:13
Compare
Choose a tag to compare

Full Changelog: 6.0.1...7.0.0

  • rewrite empty_all as a classmethod
  • the empty method on cart objects now clears the metadata by default

6.0.1

28 Mar 09:04
Compare
Choose a tag to compare

Full Changelog: v6.0.0...6.0.1

  • Resolved an issue where cart metadata from previous sessions were not being loaded upon instantiation of a new cart.
  • The get_price method now accepts any numeric type (int, float, Decimal) as a parameter, rather than only relying on Decimal values.

v6.0.0

08 Mar 09:11
c17cd93
Compare
Choose a tag to compare

What's Changed

  • The format in which the cart data is saved has been changed, cart with the old format will lose data.
  • Add a new property items to easily access all items in the cart.
  • build(deps-dev): bump mypy from 1.0.1 to 1.1.1 by @dependabot in #82
  • build(deps-dev): bump pytest from 7.2.1 to 7.2.2 by @dependabot in #81

Full Changelog: 5.6.0...v6.0.0

5.6.0

01 Mar 09:00
743444a
Compare
Choose a tag to compare

What's Changed

  • You can now manage multiple carts for the same user / session via the new prefix option.
  • A new metadata property is available on the cart object, it is a dictionary that can be used to store any information you want to attach to the cart.

Dependencies upgrade

Full Changelog: 5.3.2...5.6.0

5.3.2

02 Feb 10:51
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.2.0...5.3.2

v5.2.0

03 Sep 07:51
Compare
Choose a tag to compare

Full Changelog: v5.1.2...v5.2.0

v5.1.2

03 Sep 07:33
Compare
Choose a tag to compare

Full Changelog: v5.1.1...v5.1.2

v5.0.0

15 Aug 13:36
Compare
Choose a tag to compare

What's Changed

The most significant change, and the only one that breaks existing code is the signature change of the Cart.remove method, read more here. To make a long story short, instead of passing the product and variant to remove an item, you simply pass an id that is automatically generated for each item in the cart and accessible via item.id.

New Contributors

Full Changelog: v4.1.0...v5.0.0

v4.1.0

23 Jun 08:57
Compare
Choose a tag to compare

Full Changelog: v4.0.2...v4.1.0