Releases: Tobi-De/dj-shop-cart
Releases · Tobi-De/dj-shop-cart
v7.1.0
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
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
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
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
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
- Bump pre-commit from 3.0.2 to 3.0.3 by @dependabot in #69
- build(deps-dev): bump pre-commit from 3.0.3 to 3.0.4 by @dependabot in #70
- Bump hiredis from 2.1.1 to 2.2.1 by @dependabot in #68
- build(deps-dev): bump mypy from 0.991 to 1.0.0 by @dependabot in #71
- build(deps-dev): bump redis from 4.4.2 to 4.5.0 by @dependabot in #72
- build(deps-dev): bump ipython from 8.9.0 to 8.10.0 by @dependabot in #74
- build(deps-dev): bump redis from 4.5.0 to 4.5.1 by @dependabot in #73
- build(deps-dev): bump mypy from 1.0.0 to 1.0.1 by @dependabot in #77
- build(deps-dev): bump django-stubs from 1.14.0 to 1.15.0 by @dependabot in #78
- build(deps): bump django from 4.1.6 to 4.1.7 by @dependabot in #76
- build(deps-dev): bump pre-commit from 3.0.4 to 3.1.0 by @dependabot in #79
- build(deps-dev): bump pre-commit from 3.1.0 to 3.1.1 by @dependabot in #80
Full Changelog: 5.3.2...5.6.0
5.3.2
What's Changed
- Manage multiple carts
- Bump ipython from 8.4.0 to 8.5.0 by @dependabot in #21
- Bump django from 4.1 to 4.1.1 by @dependabot in #19
- Bump black from 22.6.0 to 22.8.0 by @dependabot in #18
- Bump pytest from 7.1.2 to 7.1.3 by @dependabot in #20
- Bump poetryup from 0.10.0 to 0.11.0 by @dependabot in #22
- Bump poetryup from 0.11.0 to 0.11.1 by @dependabot in #23
- Bump poetryup from 0.11.1 to 0.12.0 by @dependabot in #24
- Bump mypy from 0.971 to 0.981 by @dependabot in #25
- Bump django from 4.1.1 to 4.1.2 by @dependabot in #26
- Bump mypy from 0.981 to 0.982 by @dependabot in #27
- Bump poetryup from 0.12.0 to 0.12.1 by @dependabot in #28
- Bump black from 22.8.0 to 22.10.0 by @dependabot in #30
- Bump poetryup from 0.12.1 to 0.12.2 by @dependabot in #29
- Bump poetryup from 0.12.2 to 0.12.3 by @dependabot in #31
- Bump pytest from 7.1.3 to 7.2.0 by @dependabot in #32
- Bump ipython from 8.5.0 to 8.6.0 by @dependabot in #33
- Bump django from 4.1.2 to 4.1.3 by @dependabot in #34
- Bump django-stubs from 1.12.0 to 1.13.0 by @dependabot in #35
- Bump mypy from 0.982 to 0.990 by @dependabot in #36
- Bump mypy from 0.990 to 0.991 by @dependabot in #37
- Bump redis from 4.3.4 to 4.3.5 by @dependabot in #38
- Bump poetryup from 0.12.3 to 0.12.5 by @dependabot in #40
- Bump ipython from 8.6.0 to 8.7.0 by @dependabot in #41
- Bump black from 22.10.0 to 22.12.0 by @dependabot in #45
- Bump django from 4.1.3 to 4.1.4 by @dependabot in #43
- Bump django-stubs from 1.13.0 to 1.13.1 by @dependabot in #44
- Bump redis from 4.3.5 to 4.4.0 by @dependabot in #42
- Bump isort from 5.10.1 to 5.11.2 by @dependabot in #48
- Bump hiredis from 2.0.0 to 2.1.0 by @dependabot in #47
- Bump isort from 5.11.2 to 5.11.3 by @dependabot in #49
- Bump pre-commit from 2.20.0 to 2.21.0 by @dependabot in #53
- Bump django from 4.1.4 to 4.1.5 by @dependabot in #54
- Bump ipython from 8.7.0 to 8.8.0 by @dependabot in #55
- Bump poetryup from 0.12.5 to 0.12.7 by @dependabot in #50
- Bump isort from 5.11.3 to 5.11.4 by @dependabot in #52
- Bump redis from 4.4.0 to 4.4.1 by @dependabot in #56
- Bump hiredis from 2.1.0 to 2.1.1 by @dependabot in #57
- Bump redis from 4.4.1 to 4.4.2 by @dependabot in #58
- Bump pre-commit from 2.21.0 to 3.0.0 by @dependabot in #61
- Bump pytest from 7.2.0 to 7.2.1 by @dependabot in #59
- Bump django-stubs from 1.13.1 to 1.14.0 by @dependabot in #63
- Bump pre-commit from 3.0.0 to 3.0.1 by @dependabot in #62
- Bump isort from 5.11.4 to 5.12.0 by @dependabot in #66
Full Changelog: v5.2.0...5.3.2
v5.2.0
Full Changelog: v5.1.2...v5.2.0
v5.1.2
Full Changelog: v5.1.1...v5.1.2
v5.0.0
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
.
- Bump redis from 4.3.3 to 4.3.4 by @dependabot in #9
- Bump poetryup from 0.8.1 to 0.9.0 by @dependabot in #8
- Bump django from 4.0.5 to 4.0.6 by @dependabot in #10
- Bump pre-commit from 2.19.0 to 2.20.0 by @dependabot in #11
- Bump mypy from 0.961 to 0.971 by @dependabot in #12
- Bump attrs from 21.4.0 to 22.1.0 by @dependabot in #13
- Bump django from 4.0.6 to 4.1 by @dependabot in #14
New Contributors
- @dependabot made their first contribution in #9
Full Changelog: v4.1.0...v5.0.0
v4.1.0
Full Changelog: v4.0.2...v4.1.0