-
Notifications
You must be signed in to change notification settings - Fork 4
/
CHANGES
271 lines (171 loc) · 7.9 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
Revision history for Interchange6
0.120 Mon May 23 10:19:42 2016 CEST
[ENHANCEMENTS]
* Improve arg checking in Cart->remove (Peter Mottram).
* Allow cart remove using id or index as well as sku (Peter Mottram).
* Extend cart update method to allow hashref args for index/id
(Peter Mottram).
* Add product_grep methot to cart class (Peter Mottram).
* Add combine attribute to product class (Hunter McMillen, GH #34).
[ENHANCEMENTS]
* Add product_class attribute to cart class (Peter Mottram).
* `after quantity` modifier in Product should be `after set_quantity`
(Peter Mottram).
* Remove cost_push handle from Role::Costs->costs (Peter Mottram).
* Use Carp::croak in Role::Cost (Peter Mottram).
* Reintroduce Interchange6::Types type library (Peter Mottram).
* Improve workaround for Type::Tiny::XS bug
(Peter Mottram, GH #28).
* Change Cart's find method to use HandlesVia Array's first
(Peter Mottram).
* Use PositiveOrZeroInt type check for quantity arg to update in cart
(Peter Mottram).
0.103 Fri Feb 26 10:45:42 2016 CET
[ENHANCEMENTS]
* Product class attributes price/selling_price also allow
HasMethods["value"] to support Interchange6::Currency
(Peter Mottram).
[BUG FIXES]
* Bump prerequisite on Type::Tiny to force version that
includes Types::Common::Numeric.
* Make cart attribute of Product class a weak reference
(Peter Mottram).
[CLEANUPS]
* Replace map expressions that aren't doing list transformations
(Hunter McMillen, GH #30, #33).
* Cleanup imports as per Moo recommendations
(Hunter McMillen, GH #29, #31).
[COMPAT]
* Changes to lower minimum Perl version from 5.14 to 5.10
(Peter Mottram).
[TESTS]
* Travis updates (Peter Mottram, Stefan Hornburg/Racke)
0.102 Tue Sep 29 08:20:58 2015 CEST
[TESTS]
* Add extra check of quantity in Cart->update (Peter Mottram, GH #28).
[DOCUMENTATION]
* Fix typo in Interchange6::Cart::Cost link (Stefan Hornburg).
0.101 Sun Sep 27 16:50:07 2015 CEST
This release tries to fix the errors revealed by
the return of CPAN testers:
* Add debug code to t/unit/cart.t (Peter Mottram, GH #28).
* Set minimum Perl version to 5.14 (Peter Mottram).
0.100 Sun Aug 30 09:21:27 2015 CEST
This release features a code and test overhaul by Peter Mottram.
[ENHANCEMENTS]
* Switch to Type::Tiny so types are Moose-compatible
* New public methods in Interchange6::Cart - product_delete, product_push,
product_set. These used to be 'private' methods.
* Interchange6::Cart sessions_id added isa Str
* Interchange6::Cart weight now returns zero instead of undef when there
are no products or if no products have weight defined
* Interchange6::Cart add, remove, seed and update methods have improved
argument checking
* Interchange6::Cart update always returns an array instead of
array/arrayref depending on context
* Interchange6::Cart::Product cart attribute isa added
* added clearer to Interchange6::Cart::Product discount_percent attribute
* move total attribute from Interchange6::Cart and
Interchange6::Cart::Product into Interchange6::Role::Costs
* clean up attribute clearer code into after modifiers for clarity
* make Interchange6::Role::Cost costs attribute immutable
* remove unnecessary code from Interchange6::Role::Cost apply_cost method
* move code from Interchange6::Role::Cost _calculate method into lazy
total attributes's builder method
* new cost_push method in Interchange6::Role::Cost replaces 'private' method
[BUG FIXES]
* Fix cost calculations using compound attribute
[DOCUMENTATION]
* Add reference to Interchange6::Cart::Product and
Interchangr6::Cart::Cost in Interchange6 pod
* Interchange6::Cart and Interchange6::Cart::Product pod now references
Interchange6::Role::Costs attributes and methods
[TESTS]
* Complete overhaul of tests: new unit and author subdirs. We now have
100% test coverage for the first time.
0.086 Wed Jul 1 16:31:37 2015 CEST
[ENHANCEMENTS]
* Make all accessors read-only and add writers where appropriate.
This includes adding set_price to product (Peter Mottram, GH #23).
0.080 Sun Mar 15 08:47:11 2015 CET
[FEATURES]
* add weight attribute to Cart::Product and Cart (Peter Mottram)
[ENHANCEMENTS]
* add canonical_sku attribute to Cart::Product (Peter Mottram)
* add is_canonical and is_variant methods to Cart::Product (Peter Mottram)
[API CHANGES]
* Change Cart::Product uri attribute to read-only (Peter Mottram)
0.063 Wed Jan 21 22:05:56 2015 CET
[ENHANCEMENTS]
* Add use MooX::HandlesVia to Cart::Product class (Peter Mottram).
* Add extra attribute to Cart::Product class (Peter Mottram).
[BUG FIXES]
* Add version to prerequisite on Test::Warnings (GH #25, Stefan Hornburg).
0.062 Sat Nov 29 10:04:20 2014 CET
[BUG FIXES]
* Remove Interchange6::Hook from cart test (GH #22, Peter Mottram).
0.061 Fri Nov 28 10:57:47 2014 CET
[BUG FIXES]
* Add missing prerequisite on namespace::clean (Stefan Hornburg).
* Fix prerequisite on Moo (GH #21, Stefan Hornburg).
0.060 Thu Nov 27 16:51:31 2014 CET
[API CHANGES]
* Move hooks to Dancer::Plugin::Interchange6 (Peter Mottram).
[ENHANCEMENTS]
* Add discount_percent to Cart::Product class (Peter Mottram).
[TESTS]
* Add test for zero value cost (GH #20, Peter Mottram).
0.060_03 Thu Nov 27 14:45:31 2014 CET
[API CHANGES]
* Rename absolute_amount attribute to current_amount in Cart::Cost (Peter Mottram).
* Rename cart_costs_id attribute to id in Cart::Cost (Peter Mottram).
* Remove created and last_modified attributes from Cart (Peter Mottram).
[ENHANCEMENTS]
* Remove dependency on Interchange6::Schema (Peter Mottram).
* Add compound attribute to Cart::Cost (Peter Mottram).
* Move carts costs into Role::Costs (Peter Mottram).
* Remove Role::Errors (Peter Mottram).
* Add Role::Hookable to Cart::Product (Peter Mottram).
* Add selling_price attribute to Cart::Product (Peter Mottram).
* Add has_subtotal and has_total attributes to Cart (Peter Mottram).
* Change subtotal and total methods to attributes in Cart class (Peter Mottram).
* Remove set_users_id and get_users_id method from Cart class (Peter Mottram).
* Remove set_name and get_name method from Cart class (Peter Mottram).
[DOCUMENTATION]
* Fix typo in Interchange6::Cart::Cost's POD (Stefan Hornburg).
* Add discount example to Interchange6::Cart's POD (Stefan Hornburg).
[TESTS]
* Add product cost tests (Peter Mottram).
0.040 Wed Jul 2 11:57:43 2014 CEST
[ENHANCEMENTS]
* Add Interchange::Cart::Cost class (Peter Mottram, GH #12).
[BUG FIXES]
* Remove set_products writer from Cart products attribute
(Peter Mottram, Sam Batschelet).
[TESTS]
* Add support for code coverage tests (Peter Mottram).
0.030 Fri Apr 4 19:40:19 2014 CEST
[ENHANCEMENTS]
* Add cart_products_id attribute to Cart::Product
(Peter Mottram, GH #10).
0.011 Thu Mar 13 03:02:13 2014 CET
[ENHANCEMENTS]
* Add subtotal method to Cart::Product class.
0.010 Wed Mar 12 16:22:43 2014 CET
[ENHANCEMENTS]
* Remove Interchange6::Class (Peter Mottram, GH #8).
[BUG FIXES]
* Add Test::Most to build prerequisites.
0.004 Tue Mar 11 18:36:30 2014 CET
[ENHANCEMENTS]
* Moo cart rewrite (Peter Mottram).
* Use DateTime for created and last_modified (Peter Mottram, GH #2)
0.003 Thu Jan 2 12:09:12 2014 CET
[ENHANCEMENTS]
* Extend users_id method to allow setting the users id.
* Add sessions_id method to Interchange6::Cart.
0.002 Fri Dec 27 09:46:06 2013 CET
[ENHANCEMENTS]
* Add users_id method to Interchange6::Cart.
0.001 Sat Nov 30 16:40:37 2013 CET
* Initial release.