Commit | Line | Data |
e522431d |
1 | Revision history for Perl extension Moose |
2 | |
1b55c340 |
3 | 0.45 |
8453c358 |
4 | * Moose::Meta::Class |
5 | - added same 'add_package_symbol' fix as in |
6 | Class::MOP 0.56 |
7 | |
8 | * Moose::Util |
9 | - does_role now handles non-Moose classes |
10 | more gracefully |
11 | - added tests for this |
12 | |
1b55c340 |
13 | * Moose::Meta::Method::Constructor |
14 | - fixed bug where trigger was not being |
15 | called by the inlined immutable |
16 | constructors |
17 | - added test for this (thanks to Caelum) |
18 | |
19 | * Moose::Meta::Role::Application::ToInstance |
20 | - now uses the metaclass of the instance |
21 | (if possible) to create the anon-class |
22 | (thanks Jonathan Rockway) |
23 | |
24 | * Moose::Cookbook::Snack::ArrayRef |
25 | Moose::Cookbook::Snack::HashRef |
26 | Moose::Cookbook::Snack::Perl5ObjsVsMooseObjs |
27 | Moose::Cookbook::Snack::BUILD |
28 | - several new Snacks added to the cookbook |
29 | (thanks to spicyjack) |
30 | |
31 | * t/ |
32 | - fixed hash-ordering test bug that was |
33 | causing occasional cpantester failures |
34 | |
3a0c064a |
35 | 0.44 Sat. May 10, 2008 |
c0b37457 |
36 | * Moose |
3a0c064a |
37 | - made make_immutable warning cluck to |
ca0e380d |
38 | show where the error is (thanks mst) |
3a0c064a |
39 | |
40 | * Moose::Object |
41 | - BUILDALL and DEMOLISHALL now call |
42 | ->body when looping through the |
43 | methods, to avoid the overloaded |
44 | method call. |
ca0e380d |
45 | - fixed issue where DEMOLISHALL was |
46 | eating the $@ values, and so not |
47 | working correctly, it still kind of |
48 | eats them, but so does vanilla perl |
49 | - added tests for this |
3a0c064a |
50 | |
ceb8945d |
51 | * Moose::Cookbook::Recipe7 |
3a0c064a |
52 | - added new recipe for immutable |
53 | functionality (thanks Dave Rolsky) |
54 | |
ceb8945d |
55 | * Moose::Cookbook::Recipe9 |
3a0c064a |
56 | - added new recipe for builder and |
57 | lazy_build (thanks Dave Rolsky) |
58 | |
37332f31 |
59 | * Moose::Cookbook::Recipe11 |
3a0c064a |
60 | - added new recipe for method aliasing |
61 | and exclusion with Roles (thanks Dave Rolsky) |
62 | |
63 | * t/ |
ca0e380d |
64 | - fixed Win32 test failure (thanks spicyjack) |
ceb8945d |
65 | |
1a28289d |
66 | ~ removed Build.PL and Module::Build compat |
67 | since Module::Install has done that. |
68 | |
27cabcda |
69 | 0.43 Wed. April, 30, 2008 |
cbd141ca |
70 | * NOTE TO SELF: |
71 | drink more coffee before |
72 | doing release engineering |
73 | |
74 | - whoops, forgot to do the smolder tests, |
75 | and we broke some of the custom meta-attr |
76 | modules. This fixes that. |
77 | |
c93e8e7d |
78 | 0.42 Mon. April 28, 2008 |
79 | - some bad tests slipped by, nothing else |
80 | changed in this release (cpantesters++) |
81 | |
82 | - upped the Class::MOP dependency to 0.55 |
83 | since we have tests which need the C3 |
84 | support |
85 | |
a5e883ae |
86 | 0.41 Mon. April 28, 2008 |
004222dc |
87 | ~~ numerous documentation updates ~~ |
547dda77 |
88 | |
89 | - Changed all usage of die to Carp::croak for better |
90 | error reporting (initial patch by Tod Hagan) |
004222dc |
91 | |
c2922d69 |
92 | ** IMPORTANT NOTE ** |
93 | - the make_immutable keyword is now deprecated, don't |
94 | use it in any new code and please fix your old code |
95 | as well. There will be 2 releases, and then it will |
96 | be removed. |
97 | |
6c36eeaa |
98 | * Moose |
99 | Moose::Role |
100 | Moose::Meta::Class |
101 | - refactored the way inner and super work to avoid |
102 | any method/@ISA cache penalty (nothingmuch) |
103 | |
4078709c |
104 | * Moose::Meta::Class |
105 | - fixing &new_object to make sure trigger gets the |
106 | coerced value (spotted by Charles Alderman on the |
107 | mailing list) |
108 | - added test for this |
109 | |
51c107ef |
110 | * Moose::Meta::Method::Constructor |
111 | - immutable classes which had non-lazy attributes were calling |
112 | the default generating sub twice in the constructor. (bug |
113 | found by Jesse Luehrs, fixed by Dave Rolsky) |
114 | - added tests for this (Dave Rolsky) |
ae8d63f2 |
115 | - fix typo in initialize_body method (nothingmuch) |
116 | |
117 | * Moose::Meta::Method::Destructor |
118 | - fix typo in initialize_body method (nothingmuch) |
51c107ef |
119 | |
6c36eeaa |
120 | * Moose::Meta::Method::Overriden |
121 | Moose::Meta::Method::Augmented |
122 | - moved the logic for these into their own |
123 | classes (nothingmuch) |
124 | |
5e98d2b6 |
125 | * Moose::Meta::Attribute |
aed87761 |
126 | - inherited attributes may now be extended without |
2ea379cb |
127 | restriction on the type ('isa', 'does') (Sartak) |
cf12a691 |
128 | - added tests for this (Sartak) |
547dda77 |
129 | - when an attribute property is malformed (such as lazy without |
130 | a default), give the name of the attribute in the error |
131 | message (Sartak) |
88f23977 |
132 | - added the &applied_traits and &has_applied_traits methods |
133 | to allow introspection of traits |
134 | - added tests for this |
37905a64 |
135 | - moved 'trait' and 'metaclass' argument handling to here from |
136 | Moose::Meta::Class |
137 | - clone_and_inherit_options now handles 'trait' and 'metaclass' (has |
138 | '+foo' syntax) (nothingmuch) |
139 | - added tests for this (t0m) |
7c60f730 |
140 | |
141 | * Moose::Object |
142 | - localize $@ inside DEMOLISHALL to avoid it |
143 | eating $@ (found by Ernesto) |
144 | - added test for this (thanks to Ernesto) |
cf12a691 |
145 | |
ae8d63f2 |
146 | * Moose::Util::TypeConstraints |
147 | - &find_type_constraint now DWIMs when given an |
6c36eeaa |
148 | type constraint object or name (nothingmuch) |
37905a64 |
149 | - &find_or_create_type_constraint superseded with a number of more |
150 | specific functions: |
151 | - find_or_create_{isa,does}_type_constraint |
152 | - find_or_parse_type_constraint |
ae8d63f2 |
153 | |
154 | * Moose::Meta::TypeConstraint |
4078709c |
155 | Moose::Meta::TypeConstraint::Class |
37905a64 |
156 | Moose::Meta::TypeConstraint::Role |
4078709c |
157 | Moose::Meta::TypeConstraint::Enum |
158 | Moose::Meta::TypeConstraint::Union |
159 | Moose::Meta::TypeConstraint::Parameterized |
160 | - added the &equals method for comparing two type |
161 | constraints (nothingmuch) |
162 | - added tests for this (nothingmuch) |
163 | |
164 | * Moose::Meta::TypeConstraint |
ae8d63f2 |
165 | - add the &parents method, which is just an alias to &parent. |
37905a64 |
166 | Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch) |
ae8d63f2 |
167 | |
168 | * Moose::Meta::TypeConstraint::Class |
ae8d63f2 |
169 | - added the class attribute for introspection purposes |
170 | (nothingmuch) |
171 | - added tests for this |
4078709c |
172 | |
173 | * Moose::Meta::TypeConstraint::Enum |
6c36eeaa |
174 | Moose::Meta::TypeConstraint::Role |
37905a64 |
175 | - broke these out into their own classes (nothingmuch) |
ae8d63f2 |
176 | |
177 | * Moose::Cookbook::Recipe* |
178 | - fixed references to test file locations in the POD |
179 | and updated up some text for new Moose features |
37905a64 |
180 | (Sartak) |
181 | |
182 | * Moose::Util |
183 | - Added &resolve_metaclass_alias, a helper function for finding an actual |
184 | class for a short name (e.g. in the traits list) |
ae8d63f2 |
185 | |
52338af5 |
186 | 0.40 Fri. March 14, 2008 |
6e2840b7 |
187 | - I hate Pod::Coverage |
188 | |
e0328ed4 |
189 | 0.39 Fri. March 14, 2008 |
8d62bf6d |
190 | * Moose |
191 | - documenting the use of '+name' with attributes |
192 | that come from recently composed roles. It makes |
193 | sense, people are using it, and so why not just |
194 | officially support it. |
9c10b5ad |
195 | - fixing the 'extends' keyword so that it will not |
196 | trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763) |
94075501 |
197 | |
1321f087 |
198 | * oose |
199 | - added the perl -Moose=+Class::Name feature to allow |
200 | monkeypatching of classes in one liners |
201 | |
9c10b5ad |
202 | * Moose::Util |
203 | - fixing the 'apply_all_roles' keyword so that it will not |
204 | trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763) |
8d62bf6d |
205 | |
48045612 |
206 | * Moose::Meta::Class |
207 | - added ->create method which now supports roles (thanks to jrockway) |
208 | - added tests for this |
6d5cbd2b |
209 | - added ->create_anon_class which now supports roles and caching of |
210 | the results (thanks to jrockway) |
211 | - added tests for this |
81c3738f |
212 | - made ->does_role a little more forgiving when it is |
213 | checking a Class::MOP era metaclasses. |
48045612 |
214 | |
94075501 |
215 | * Moose::Meta::Role::Application::ToInstance |
216 | - it is now possible to pass extra params to be used when |
217 | a role is applied to an the instance (rebless_params) |
218 | - added tests for this |
219 | |
9f4334a1 |
220 | * Moose::Util::TypeConstraints |
4ab662d6 |
221 | - class_type now accepts an optional second argument for a |
222 | custom message. POD anotated accordingly (groditi) |
223 | - added tests for this |
9f4334a1 |
224 | - it is now possible to make anon-enums by passing 'enum' an |
225 | ARRAY ref instead of the $name => @values. Everything else |
226 | works as before. |
227 | - added tests for this |
228 | |
8d62bf6d |
229 | * t/ |
230 | - making test for using '+name' on attributes consumed |
231 | from a role, it works and makes sense too. |
232 | |
80d955e4 |
233 | * Moose::Meta::Attribute |
234 | - fix handles so that it doesn't return nothing |
235 | when the method cannot be found, not sure why |
f4f3e701 |
236 | it ever did this originally, this means we now |
237 | have slightly better support for AUTOLOADed |
238 | objects |
239 | - added more delegation tests |
587e457d |
240 | - adding ->does method to this so as to better |
241 | support traits and their introspection. |
242 | - added tests for this |
1a386a6c |
243 | |
244 | * Moose::Object |
245 | - localizing the Data::Dumper configurations so |
246 | that it does not pollute others (RT #33509) |
9b1aa0c3 |
247 | - made ->does a little more forgiving when it is |
248 | passed Class::MOP era metaclasses. |
80d955e4 |
249 | |
250 | 0.38 Fri. Feb. 15, 2008 |
c3b81505 |
251 | * Moose::Meta::Attribute |
252 | - fixed initializer to correctly do |
253 | type checking and coercion in the |
254 | callback |
255 | - added tests for this |
256 | |
1a740d8a |
257 | * t/ |
258 | - fixed some finicky tests (thanks to konobi) |
259 | |
80d955e4 |
260 | 0.37 Thurs. Feb. 14, 2008 |
688fcdda |
261 | * Moose |
262 | - fixed some details in Moose::init_meta |
263 | and its superclass handling (thanks thepler) |
264 | - added tests for this (thanks thepler) |
a28fe77b |
265 | - 'has' now dies if you don't pass in name |
266 | value pairs |
2a5e59d0 |
267 | - added the 'make_immutable' keyword as a shortcut |
9df136d0 |
268 | to make_immutable |
688fcdda |
269 | |
270 | * Moose::Meta::Class |
271 | Moose::Meta::Method::Constructor |
272 | Moose::Meta::Attribute |
649b9340 |
273 | - making (init_arg => undef) work here too |
274 | (thanks to nothingmuch) |
be771c43 |
275 | |
276 | * Moose::Meta::Attribute |
277 | Moose::Meta::Method::Constructor |
278 | Moose::Meta::Method::Accessor |
5fec9b97 |
279 | - make lazy attributes respect attr initializers (rjbs) |
be771c43 |
280 | - added tests for this |
688fcdda |
281 | |
282 | * Moose::Util::TypeConstraints |
283 | Moose::Util::TypeConstraints::OptimizedConstraints |
c14746bc |
284 | Moose::Meta::TypeConstraints |
688fcdda |
285 | Moose::Meta::Attribute |
286 | Moose::Meta::Method::Constructor |
287 | Moose::Meta::Method::Accessor |
649b9340 |
288 | - making type errors use the |
289 | assigned message (thanks to Sartak) |
290 | - added tests for this |
291 | |
292 | * Moose::Meta::Method::Destructor |
293 | - making sure DESTROY gets inlined properly |
294 | with successive DEMOLISH calls (thanks to manito) |
688fcdda |
295 | |
ab76842e |
296 | * Moose::Meta::Attribute |
297 | Moose::Meta::Method::Accessor |
298 | - fixed handling of undef with type constraints |
299 | (thanks to Ernesto) |
300 | - added tests for this |
c14746bc |
301 | |
302 | * Moose::Util |
303 | - added &get_all_init_args and &get_all_attribute_values |
304 | (thanks to Sartak and nothingmuch) |
ab76842e |
305 | |
e472c9a5 |
306 | 0.36 Sat. Jan. 26, 2008 |
238b424d |
307 | * Moose::Role |
308 | Moose::Meta::Attribute |
309 | - role type tests now support when roles are |
310 | applied to non-Moose classes (found by ash) |
311 | - added tests for this (thanks to ash) |
e472c9a5 |
312 | - couple extra tests to boost code coverage |
238b424d |
313 | |
314 | * Moose::Meta::Method::Constructor |
315 | - improved fix for handling Class::MOP attributes |
316 | - added test for this |
317 | |
318 | * Moose::Meta::Class |
319 | - handled the add_attribute($attribute_meta_object) |
320 | case correctly |
321 | - added test for this |
322 | |
3285fae9 |
323 | 0.35 Tues. Jan. 22, 2008 |
45fd4af3 |
324 | * Moose::Meta::Method::Constructor |
325 | - fix to make sure even Class::MOP attributes |
472b7401 |
326 | are handled correctly (Thanks to Dave Rolsky) |
c3b35392 |
327 | - added test for this (also Dave Rolsky) |
4498537c |
328 | |
329 | * Moose::Meta::Class |
330 | - improved error message on _apply_all_roles, |
331 | you should now use Moose::Util::apply_all_roles |
332 | and you shouldnt have been using a _ prefixed |
333 | method in the first place ;) |
45fd4af3 |
334 | |
fe05ce9c |
335 | 0.34 Mon. Jan. 21, 2008 |
778db3ac |
336 | ~~~ more misc. doc. fixes ~~~ |
337 | ~~ updated copyright dates ~~ |
9b28d20b |
338 | |
339 | Moose is now a postmodern object system :) |
8bdc7f13 |
340 | - (see the POD for details) |
ccf49e80 |
341 | |
342 | * <<Role System Refactoring>> |
343 | - this release contains a major reworking and |
344 | cleanup of the role system |
9b28d20b |
345 | - 100% backwards compat. |
346 | - Role application now restructured into seperate |
347 | classes based on type of applicants |
348 | - Role summation (combining of more than one role) |
ccf49e80 |
349 | is much cleaner and anon-classes are no longer |
9b28d20b |
350 | used in this process |
ccf49e80 |
351 | - new Composite role metaclass |
9b28d20b |
352 | - runtime application of roles to instances |
353 | is now more efficient and re-uses generated |
354 | classes when applicable |
ccf49e80 |
355 | |
9b28d20b |
356 | * <<New Role composition features>> |
ccf49e80 |
357 | - methods can now be excluded from a given role |
9b28d20b |
358 | during composition |
ccf49e80 |
359 | - methods can now be aliased to another name (and |
360 | still retain the original as well) |
4734114b |
361 | |
362 | * Moose::Util::TypeConstraints::OptimizedConstraints |
363 | - added this module (see above) |
364 | |
d7d8a8c7 |
365 | * Moose::Meta::Class |
366 | - fixed the &_process_attribute method to be called |
4734114b |
367 | by &add_attribute, so that the API is now correct |
368 | |
e7c06c1e |
369 | * Moose::Meta::Method::Accessor |
4734114b |
370 | - fixed bug when passing a list of values to |
e7c06c1e |
371 | an accessor would get (incorrectly) ignored. |
372 | Thanks to Sartak for finding this ;) |
373 | - added tests for this (Sartak again) |
32dd4a95 |
374 | |
a4e516f6 |
375 | * Moose::Meta::Method::Accessor |
376 | Moose::Meta::Method::Constructor |
28412c0b |
377 | Moose::Meta::Attribute |
ccf49e80 |
378 | Moose::Meta::TypeConstraint |
379 | Moose::Meta::TypeCoercion |
380 | - lots of cleanup of such things as: |
28412c0b |
381 | - generated methods |
382 | - type constraint handling |
ccf49e80 |
383 | - error handling/messages |
384 | (thanks to nothingmuch) |
a4e516f6 |
385 | |
4734114b |
386 | * Moose::Meta::TypeConstraint::Parameterizable |
387 | - added this module to support the refactor |
388 | in Moose::Meta::TypeConstraint::Parameterized |
389 | |
390 | * Moose::Meta::TypeConstraint::Parameterized |
391 | - refactored how these types are handled so they |
392 | are more generic and not confined to ArrayRef |
393 | and HashRef only |
a4e516f6 |
394 | |
2de7e794 |
395 | * t/ |
396 | - shortened some file names for better VMS support (RT #32381) |
397 | |
25374f01 |
398 | 0.33 Fri. Dec. 14, 2007 |
32dd4a95 |
399 | !! Moose now loads 2 x faster !! |
400 | !! with new Class::MOP 0.49 !! |
25374f01 |
401 | |
f7865ec8 |
402 | ++ new oose.pm module to make command line |
25374f01 |
403 | Moose-ness easier (see POD docs for more) |
4734114b |
404 | |
25374f01 |
405 | * Moose::Meta::Class |
406 | * Moose::Meta::Role |
4734114b |
407 | - several tweaks to take advantage of the |
25374f01 |
408 | new method map caching in Class::MOP |
409 | |
39aba5c9 |
410 | * Moose::Meta::TypeConstraint::Parameterized |
411 | - allow subtypes of ArrayRef and HashRef to |
acb8a5db |
412 | be used as a container (sartak) |
4734114b |
413 | - added tests for this |
acb8a5db |
414 | - basic support for coercion to ArrayRef and |
415 | HashRef for containers (sartak) |
4734114b |
416 | - added tests for this |
417 | |
25374f01 |
418 | * Moose::Meta::TypeCoercion |
419 | - coercions will now create subtypes as needed |
420 | so you can now add coercions to parameterized |
421 | types without having to explictly define them |
422 | - added tests for this |
423 | |
ac211120 |
424 | * Moose::Meta::Method::Accessor |
425 | - allow subclasses to decide whether we need |
426 | to copy the value into a new variable (sartak) |
39aba5c9 |
427 | |
dc26a424 |
428 | 0.32 Tues. Dec. 4, 2007 |
8de73ff1 |
429 | * Moose::Util::TypeConstraints |
430 | - fixing how subtype aliases of unions work |
431 | they should inherit the parent's coercion |
432 | - added tests for this |
4734114b |
433 | - you can now define multiple coercions on |
41e007e4 |
434 | a single type at different times instead of |
435 | having to do it all in one place |
436 | - added tests for this |
4734114b |
437 | |
8de73ff1 |
438 | * Moose::Meta::TypeConstraint |
439 | - there is now a default constraint of sub { 1 } |
440 | instead of Moose::Util::TypeConstraints setting |
441 | this for us |
442 | |
4734114b |
443 | * Moose::Meta::TypeCoercion |
444 | * Moose::Meta::TypeCoercion::Union |
445 | - added the &has_coercion_for_type and |
446 | &add_type_coercions methods to support the |
41e007e4 |
447 | new features above (although you cannot add |
448 | more type coercions for Union types) |
449 | |
ffcb48b4 |
450 | 0.31 Mon. Nov. 26, 2007 |
f3c4e20e |
451 | * Moose::Meta::Attribute |
4734114b |
452 | - made the +attr syntax handle extending types with |
f3c4e20e |
453 | parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')" |
454 | now works if the original foo is an ArrayRef. |
455 | - added tests for this. |
456 | - delegation now works even if the attribute does not |
457 | have a reader method using the get_read_method_ref |
4734114b |
458 | method from Class::MOP::Attribute. |
f3c4e20e |
459 | - added tests for this |
460 | - added docs for this |
4734114b |
461 | |
f3c4e20e |
462 | * Moose::Util::TypeConstraints |
4734114b |
463 | - passing no "additional attribute info" to |
464 | &find_or_create_type_constraint will no longer |
465 | attempt to create an __ANON__ type for you, |
f3c4e20e |
466 | instead it will just return undef. |
467 | - added docs for this |
468 | |
1edfdf1c |
469 | 0.30 Fri. Nov. 23, 2007 |
ca168e89 |
470 | * Moose::Meta::Method::Constructor |
471 | -builder related bug in inlined constructor. (groditi) |
472 | |
3822d5ee |
473 | * Moose::Meta::Method::Accessor |
474 | - genereate unnecessary calls to predicates and refactor |
475 | code generation for runtime speed (groditi) |
476 | |
5d776bdf |
477 | * Moose::Util::TypeConstraints |
0e0709ea |
478 | - fix ClassName constraint to introspect symbol table (mst) |
a0f8153d |
479 | - added more tests for this (mst) |
480 | - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ... |
481 | with work correctly. |
482 | - added tests for this |
5d776bdf |
483 | |
1edfdf1c |
484 | * Moose::Cookbook |
485 | - adding the link to Recipie 11 (written by Sartak) |
486 | - adding test for SYNOPSIS code |
487 | |
4734114b |
488 | * t/ |
ca168e89 |
489 | - New tests for builder bug. Upon instantiation, if an |
490 | attribute had a builder, no value and was not lazy the |
491 | builder default was not getting run, oops. (groditi) |
492 | |
b97b9655 |
493 | 0.29 Tues. Nov. 13, 2007 |
0b26305c |
494 | * Moose::Meta::Attribute |
5d776bdf |
495 | - Fix error message on missing builder method (groditi) |
0b26305c |
496 | |
497 | * Moose::Meta::Method::Accessor |
5d776bdf |
498 | - Fix error message on missing builder method (groditi) |
0b26305c |
499 | |
4734114b |
500 | * t/ |
5d776bdf |
501 | - Add test to check for the correct error message when |
502 | builder method is missing (groditi) |
0b26305c |
503 | |
98c4c382 |
504 | 0.28 Tues. Nov. 13, 2007 |
4734114b |
505 | - 0.27 packaged incorrectly (groditi) |
98c4c382 |
506 | |
e134cd19 |
507 | 0.27 Tues. Nov. 13, 2007 |
26fbace8 |
508 | * Moose::Meta::Attribute |
509 | - Added support for the new builder option (groditi) |
6af1a927 |
510 | - Added support for lazy_build option (groditi) |
1ed0b94f |
511 | - Changed slot initialization for predicate changes (groditi) |
26fbace8 |
512 | |
513 | * Moose::Meta::Method::Accessor |
6af1a927 |
514 | - Added support for lazy_build option (groditi) |
4734114b |
515 | - Fix inline methods to work with corrected predicate |
28669f89 |
516 | behavior (groditi) |
26fbace8 |
517 | |
7a5b07b3 |
518 | * Moose::Meta::Method::Constructor |
519 | - Added support for lazy_build option (groditi) |
520 | |
26fbace8 |
521 | * t/ |
28669f89 |
522 | - tests for builder and lazy_build (groditi) |
26fbace8 |
523 | |
4734114b |
524 | * fixing some misc. bits in the docs that |
28669f89 |
525 | got mentioned on CPAN Forum & perlmonks |
4734114b |
526 | |
e7f8d0c2 |
527 | * Moose::Meta::Role |
4734114b |
528 | - fixed how required methods are handled |
e7f8d0c2 |
529 | when they encounter overriden or modified |
530 | methods from a class (thanks to confound). |
531 | - added tests for this |
5af6a16d |
532 | |
3796382a |
533 | * Moose::Util::TypeConstraint |
4734114b |
534 | - fixed the type notation parser so that |
535 | the | always creates a union and so is |
536 | no longer a valid type char (thanks to |
537 | konobi, mugwump and #moose for working |
3796382a |
538 | this one out.) |
539 | - added more tests for this |
540 | |
77a18c28 |
541 | 0.26 Thurs. Sept. 27, 2007 |
542 | == New Features == |
4734114b |
543 | |
77a18c28 |
544 | * Parameterized Types |
4734114b |
545 | We now support parameterized collection types, such as: |
77a18c28 |
546 | ArrayRef[Int] # array or integers |
547 | HashRef[Object] # a hash with object values |
548 | They can also be nested: |
549 | ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values |
550 | And work with the type unions as well: |
551 | ArrayRef[Int | Str] # array of integers of strings |
4734114b |
552 | |
77a18c28 |
553 | * Better Framework Extendability |
4734114b |
554 | Moose.pm is now "extendable" such that it is now much |
555 | easier to extend the framework and add your own keywords |
77a18c28 |
556 | and customizations. See the "EXTENDING AND EMBEDDING MOOSE" |
557 | section of the Moose.pm docs. |
4734114b |
558 | |
77a18c28 |
559 | * Moose Snacks! |
4734114b |
560 | In an effort to begin documenting some of the various |
561 | details of Moose as well as some common idioms, we have |
562 | created Moose::Cookbook::Snacks as a place to find |
77a18c28 |
563 | small (easily digestable) nuggets of Moose code. |
4734114b |
564 | |
77a18c28 |
565 | ==== |
fb697a87 |
566 | ~ Several doc updates/cleanup thanks to castaway ~ |
4734114b |
567 | |
568 | - converted build system to use Module::Install instead of |
e46f5cc2 |
569 | Module::Build (thanks to jrockway) |
fb697a87 |
570 | |
d67145ed |
571 | * Moose |
4734114b |
572 | - added all the meta classes to the immutable list and |
d67145ed |
573 | set it to inline the accessors |
4734114b |
574 | - fix import to allow Sub::Exporter like { into => } |
e59a5c29 |
575 | and { into_level => } (perigrin) |
4734114b |
576 | - exposed and documented init_meta() to allow better |
e59a5c29 |
577 | embedding and extending of Moose (perigrin) |
4734114b |
578 | |
e59a5c29 |
579 | * t/ |
580 | - complete re-organization of the test suite |
4734114b |
581 | - added some new tests as well |
77a18c28 |
582 | - finally re-enabled the Moose::POOP test since |
583 | the new version of DBM::Deep now works again |
584 | (thanks rob) |
b468a3d3 |
585 | |
586 | * Moose::Meta::Class |
4734114b |
587 | - fixed very odd and very nasty recursion bug with |
b468a3d3 |
588 | inner/augment (mst) |
589 | - added tests for this (eilara) |
d67145ed |
590 | |
3726f905 |
591 | * Moose::Meta::Attribute |
592 | Moose::Meta::Method::Constructor |
593 | Moose::Meta::Method::Accessor |
4734114b |
594 | - fixed issue with overload::Overloaded getting called |
f1917f58 |
595 | on non-blessed items. (RT #29269) |
3726f905 |
596 | - added tests for this |
4734114b |
597 | |
3ccdc84a |
598 | * Moose::Meta::Method::Accessor |
4734114b |
599 | - fixed issue with generated accessor code making |
3ccdc84a |
600 | assumptions about hash based classes (thanks to dexter) |
4734114b |
601 | |
3726f905 |
602 | * Moose::Coookbook::Snacks |
4734114b |
603 | - these are bits of documentation, not quite as big as |
604 | Recipes but which have no clear place in the module docs. |
3726f905 |
605 | So they are Snacks! (horray for castaway++) |
606 | |
07cde929 |
607 | * Moose::Cookbook::Recipe4 |
608 | - updated it to use the new ArrayRef[MyType] construct |
609 | - updated the accompanying test as well |
610 | |
3726f905 |
611 | +++ Major Refactor of the Type Constraint system +++ |
612 | +++ with new features added as well +++ |
613 | |
22aed3c0 |
614 | * Moose::Util::TypeConstraint |
4734114b |
615 | - no longer uses package variable to keep track of |
22aed3c0 |
616 | the type constraints, now uses the an instance of |
617 | Moose::Meta::TypeConstraint::Registry to do it |
f1917f58 |
618 | - added more sophisticated type notation parsing |
619 | (thanks to mugwump) |
620 | - added tests for this |
22aed3c0 |
621 | |
d67145ed |
622 | * Moose::Meta::TypeConstraint |
623 | - some minor adjustments to make subclassing easier |
4734114b |
624 | - added the package_defined_in attribute so that we |
22aed3c0 |
625 | can track where the type constraints are created |
4734114b |
626 | |
d67145ed |
627 | * Moose::Meta::TypeConstraint::Union |
4734114b |
628 | - this is now been refactored to be a subclass of |
3726f905 |
629 | Moose::Meta::TypeConstraint |
4734114b |
630 | |
3726f905 |
631 | * Moose::Meta::TypeCoercion::Union |
632 | - this has been added to service the newly refactored |
4734114b |
633 | Moose::Meta::TypeConstraint::Union and is itself |
3726f905 |
634 | a subclass of Moose::Meta::TypeCoercion |
4734114b |
635 | |
0fbd4b0a |
636 | * Moose::Meta::TypeConstraint::Parameterized |
d67145ed |
637 | - added this module (taken from MooseX::AttributeHelpers) |
638 | to help construct nested collection types |
639 | - added tests for this |
4734114b |
640 | |
22aed3c0 |
641 | * Moose::Meta::TypeConstraint::Registry |
642 | - added this class to keep track of type constraints |
d67145ed |
643 | |
887169d7 |
644 | 0.25 Mon. Aug. 13, 2007 |
8eca434b |
645 | * Moose |
4734114b |
646 | - Documentation update to reference Moose::Util::TypeConstraints |
647 | under 'isa' in 'has' for how to define a new type |
8eca434b |
648 | (thanks to shlomif). |
649 | |
ab859145 |
650 | * Moose::Meta::Attribute |
4734114b |
651 | - required attributes now will no longer accept undef |
ab859145 |
652 | from the constructor, even if there is a default and lazy |
653 | - added tests for this |
4734114b |
654 | - default subroutines must return a value which passes the |
7a5ebc40 |
655 | type constraint |
656 | - added tests for this |
4734114b |
657 | |
a909a4df |
658 | * Moose::Meta::Attribute |
659 | * Moose::Meta::Method::Constructor |
4734114b |
660 | * Moose::Meta::Method::Accessor |
a909a4df |
661 | - type-constraint tests now handle overloaded objects correctly |
662 | in the error message |
4734114b |
663 | - added tests for this (thanks to EvanCarroll) |
ab859145 |
664 | |
8eca434b |
665 | * Moose::Meta::TypeConstraint::Union |
4734114b |
666 | - added (has_)hand_optimized_constraint to this class so that |
8eca434b |
667 | it behaves as the regular Moose::Meta::TypeConstraint does. |
668 | |
5868294f |
669 | * Moose::Meta::Role |
887169d7 |
670 | - large refactoring of this code |
4734114b |
671 | - added several more tests |
672 | - tests for subtle conflict resolition issues |
7125b244 |
673 | added, but not currently running |
674 | (thanks to kolibre) |
675 | |
4734114b |
676 | * Moose::Cookbook::Recipe7 |
677 | - added new recipe for augment/inner functionality |
887169d7 |
678 | (still in progress) |
7125b244 |
679 | - added test for this |
5868294f |
680 | |
24a8fe99 |
681 | * Moose::Spec::Role |
7125b244 |
682 | - a formal definition of roles (still in progress) |
24a8fe99 |
683 | |
9a641848 |
684 | * Moose::Util |
887169d7 |
685 | - utilities for easier working with Moose classes |
7125b244 |
686 | - added tests for these |
9a641848 |
687 | |
688 | * Test::Moose |
887169d7 |
689 | - This contains Moose specific test functions |
7125b244 |
690 | - added tests for these |
9a641848 |
691 | |
6b4c1bdd |
692 | 0.24 Tues. July 3, 2007 |
693 | ~ Some doc updates/cleanup ~ |
c84f324f |
694 | |
695 | * Moose::Meta::Attribute |
4734114b |
696 | - added support for roles to be given as parameters |
c84f324f |
697 | to the 'handles' option. |
698 | - added tests and docs for this |
4734114b |
699 | - the has '+foo' attribute form now accepts changes to |
83cc9094 |
700 | the lazy option, and the addition of a handles option |
701 | (but not changing the handles option) |
702 | - added tests and docs for this |
c84f324f |
703 | |
1db8ecc7 |
704 | * Moose::Meta::Role |
705 | - required methods are now fetched using find_method_by_name |
706 | so that required methods can come from superclasses |
707 | - adjusted tests for this |
708 | |
81941e9b |
709 | 0.23 Mon. June 18, 2007 |
73b84d2e |
710 | * Moose::Meta::Method::Constructor |
711 | - fix inlined constructor for hierarchy with multiple BUILD methods (mst) |
ac2dc464 |
712 | * Moose::Meta::Class |
713 | - Modify make_immutable to work with the new Class::MOP immutable |
714 | mechanism + POD + very basic test (groditi) |
cbe25729 |
715 | * Moose::Meta::Attribute |
4734114b |
716 | - Fix handles to use goto() so that caller() comes out properly on |
cbe25729 |
717 | the other side (perigrin) |
ac2dc464 |
718 | |
db53853c |
719 | 0.22 Thurs. May 31, 2007 |
3969267d |
720 | * Moose::Util::TypeConstraints |
4734114b |
721 | - fix for prototype undeclared issue when Moose::Util::TypeConstraints |
db53853c |
722 | loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring |
723 | prototypes for functions |
4734114b |
724 | - added the ClassName type constraint, this checks for strings |
725 | which will respond true to ->isa(UNIVERSAL). |
9af1d28b |
726 | - added tests and docs for this |
4734114b |
727 | - subtyping just in name now works correctly by making the |
86629f93 |
728 | default for where be { 1 } |
4734114b |
729 | - added test for this |
3969267d |
730 | |
d7611a4a |
731 | * Moose::Meta::Method::Accessor |
4734114b |
732 | - coerce and lazy now work together correctly, thanks to |
d7611a4a |
733 | merlyn for finding this bug |
734 | - tests added for this |
df492bba |
735 | - fix reader presedence bug in Moose::Meta::Attribute + tests |
d7611a4a |
736 | |
86629f93 |
737 | * Moose::Object |
738 | - Foo->new(undef) now gets ignored, it is assumed you meant to pass |
4734114b |
739 | a HASH-ref and missed. This produces better error messages then |
86629f93 |
740 | having it die cause undef is not a HASH. |
741 | - added tests for this |
742 | |
74a0a945 |
743 | 0.21 Thursday, May 2nd, 2007 |
52c7c330 |
744 | * Moose |
745 | - added SUPER_SLOT and INNER_SLOT class hashes to support unimport |
746 | - modified unimport to remove super and inner along with the rest |
747 | - altered unimport tests to handle this |
748 | |
749 | * Moose::Role |
750 | - altered super export to populate SUPER_SLOT |
751 | |
752 | * Moose::Meta::Class |
753 | - altered augment and override modifier application to use *_SLOT |
754 | - modified tests for these to unimport one test class each to test |
755 | |
492d4d76 |
756 | * Moose::Meta::Role |
757 | - fixed issue where custom attribute metaclasses |
758 | where not handled correctly in roles |
759 | - added tests for this |
4734114b |
760 | |
5cb193ed |
761 | * Moose::Meta::Class |
4734114b |
762 | - fixed issue where extending metaclasses with |
5cb193ed |
763 | roles would blow up. Thanks to Aankhen`` for |
764 | finding this insidious error, and it's solution. |
4734114b |
765 | |
766 | ~~ lots of spelling and grammer fixes in the docs, |
0305961b |
767 | many many thanks to rlb3 and Aankhen for these :) |
492d4d76 |
768 | |
e518dfb4 |
769 | 0.20 Friday, April 6th, 2007 |
a60285b3 |
770 | >> I messed up the SKIP logic in one test |
771 | so this release is just to fix that. |
772 | |
93c435b3 |
773 | * Moose |
774 | - 'has' now also accepts an ARRAY ref |
775 | to create multiple attrs (see docs) |
776 | (thanks to konobi for this) |
4734114b |
777 | - added tests and docs |
93c435b3 |
778 | |
cd7eeaf5 |
779 | 0.19 Thurs. April 5th, 2007 |
780 | ~~ More documentation updates ~~ |
781 | |
c899258b |
782 | * Moose::Util::TypeConstraints |
c1935ade |
783 | - 'type' now supports messages as well |
ddbdc0cb |
784 | thanks to phaylon for finding this |
c899258b |
785 | - added tests for this |
4734114b |
786 | - added &list_all_type_constraints and |
c1935ade |
787 | &list_all_builtin_type_constraints |
943596a6 |
788 | functions to facilitate introspection. |
4734114b |
789 | |
d022f632 |
790 | * Moose::Meta::Attribute |
4734114b |
791 | - fixed regexp 'handles' declarations |
d022f632 |
792 | to build the list of delegated methods |
4734114b |
793 | correctly (and not override important |
794 | things like &new) thanks to ashleyb |
ddbdc0cb |
795 | for finding this |
796 | - added tests and docs for this |
c1935ade |
797 | - added the 'documentation' attributes |
4734114b |
798 | so that you can actually document your |
799 | attributes and inspect them through the |
ddbdc0cb |
800 | meta-object. |
d022f632 |
801 | - added tests and docs for this |
802 | |
c1935ade |
803 | * Moose::Meta::Class |
804 | - when loading custom attribute metaclasses |
4734114b |
805 | it will first look in for the class in the |
806 | Moose::Meta::Attribute::Custom::$name, and |
c1935ade |
807 | then default to just loading $name. |
808 | - added tests and docs for this |
809 | |
900466d6 |
810 | * Moose::Meta::TypeConstraint |
811 | - type constraints now stringify to their names. |
812 | - added test for this |
813 | |
d022f632 |
814 | * misc. |
4734114b |
815 | - added tests to assure we work with Module::Refresh |
816 | - added stricter test skip logic in the Moose POOP |
ddbdc0cb |
817 | test, ask Rob Kinyon why. |
818 | - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;) |
c899258b |
819 | |
af5199c6 |
820 | 0.18 Sat. March 10, 2007 |
821 | ~~ Many, many documentation updates ~~ |
ddbdc0cb |
822 | |
823 | * misc. |
4734114b |
824 | - We now use Class::MOP::load_class to |
825 | load all classes. |
826 | - added tests to show types and subtypes |
ddbdc0cb |
827 | working with Declare::Constraints::Simple |
828 | and Test::Deep as constraint engines. |
b77fdbed |
829 | |
587ae0d2 |
830 | 0.18_001 |
d01f1dab |
831 | !! You must have Class::MOP 0.37_001 !! |
832 | !! for this developer release to work !! |
833 | |
734d1752 |
834 | This release was primarily adding the immutable |
4734114b |
835 | feature to Moose. An immutable class is one which |
836 | you promise not to alter. When you set the class |
837 | as immutable it will perform various bits of |
734d1752 |
838 | memoization and inline certain part of the code |
4734114b |
839 | (constructors, destructors and accessors). This |
734d1752 |
840 | minimizes (and in some cases totally eliminates) |
4734114b |
841 | one of Moose's biggest performance hits. This |
734d1752 |
842 | feature is not on by default, and is 100% optional. |
4734114b |
843 | It has several configurable bits as well, so you |
734d1752 |
844 | can pick and choose to your specific needs. |
4734114b |
845 | |
846 | The changes involved in this were fairly wide and |
847 | highly specific, but 100% backwards compatible, so |
848 | I am not going to enumerate them here. If you are |
849 | truely interested in what was changed, please do |
734d1752 |
850 | a diff :) |
587ae0d2 |
851 | |
852 | 0.17 Tues. Nov. 14, 2006 |
853 | * Moose::Meta::Method::Accessor |
4734114b |
854 | - bugfix for read-only accessors which |
587ae0d2 |
855 | are have a type constraint and lazy. |
856 | Thanks to chansen for finding it. |
857 | |
858 | 0.16 Tues. Nov. 14, 2006 |
859 | ++ NOTE ++ |
4734114b |
860 | There are some speed improvements in this release, |
587ae0d2 |
861 | but they are only the begining, so stay tuned. |
4734114b |
862 | |
587ae0d2 |
863 | * Moose::Object |
4734114b |
864 | - BUILDALL and DEMOLISHALL no longer get |
587ae0d2 |
865 | called unless they actually need to be. |
866 | This gave us a signifigant speed boost |
4734114b |
867 | for the cases when there is no BUILD or |
587ae0d2 |
868 | DEMOLISH method present. |
4734114b |
869 | |
587ae0d2 |
870 | * Moose::Util::TypeConstraints |
871 | * Moose::Meta::TypeConstraint |
4734114b |
872 | - added an 'optimize_as' option to the |
587ae0d2 |
873 | type constraint, which allows for a |
4734114b |
874 | hand optimized version of the type |
587ae0d2 |
875 | constraint to be used when possible. |
876 | - Any internally created type constraints |
877 | now provide an optimized version as well. |
878 | |
ecb59493 |
879 | 0.15 Sun. Nov. 5, 2006 |
946289d1 |
880 | ++ NOTE ++ |
4734114b |
881 | This version of Moose *must* have Class::MOP 0.36 in order |
882 | to work correctly. A number of small internal tweaks have |
946289d1 |
883 | been made in order to be compatible with that release. |
571dd39f |
884 | |
885 | * Moose::Util::TypeConstraints |
4734114b |
886 | - added &unimport so that you can clean out |
887 | your class namespace of these exported |
571dd39f |
888 | keywords |
4734114b |
889 | |
37ee30c9 |
890 | * Moose::Meta::Class |
4734114b |
891 | - fixed minor issue which occasionally |
892 | comes up during global destruction |
37ee30c9 |
893 | (thanks omega) |
4734114b |
894 | - moved Moose::Meta::Method::Overriden into |
946289d1 |
895 | its own file. |
4734114b |
896 | |
897 | * Moose::Meta::Role |
898 | - moved Moose::Meta::Role::Method into |
946289d1 |
899 | its own file. |
4734114b |
900 | |
43123819 |
901 | * Moose::Meta::Attribute |
4734114b |
902 | - changed how we do type checks so that |
903 | we reduce the overall cost, but still |
7623f774 |
904 | retain correctness. |
946289d1 |
905 | *** API CHANGE *** |
4734114b |
906 | - moved accessor generation methods to |
907 | Moose::Meta::Method::Accessor to |
908 | conform to the API changes from |
946289d1 |
909 | Class::MOP 0.36 |
4734114b |
910 | |
43123819 |
911 | * Moose::Meta::TypeConstraint |
912 | - changed how constraints are compiled |
913 | so that we do less recursion and more |
4734114b |
914 | iteration. This makes the type check |
43123819 |
915 | faster :) |
946289d1 |
916 | - moved Moose::Meta::TypeConstraint::Union |
917 | into its own file |
4734114b |
918 | |
946289d1 |
919 | * Moose::Meta::Method::Accessor |
4734114b |
920 | - created this from methods formerly found in |
946289d1 |
921 | Moose::Meta::Attribute |
4734114b |
922 | |
946289d1 |
923 | * Moose::Meta::Role::Method |
924 | - moved this from Moose::Meta::Role |
4734114b |
925 | |
946289d1 |
926 | * Moose::Meta::Method::Overriden |
927 | - moved this from Moose::Meta::Class |
4734114b |
928 | |
946289d1 |
929 | * Moose::Meta::TypeConstraint::Union |
930 | - moved this from Moose::Meta::TypeConstraint |
37ee30c9 |
931 | |
3ec7b7a3 |
932 | 0.14 Mon. Oct. 9, 2006 |
4fd69d6c |
933 | |
934 | * Moose::Meta::Attribute |
4734114b |
935 | - fixed lazy attributes which were not getting |
4fd69d6c |
936 | checked with the type constraint (thanks ashley) |
937 | - added tests for this |
4734114b |
938 | - removed the over-enthusiastic DWIMery of the |
939 | automatic ArrayRef and HashRef defaults, it |
3ec7b7a3 |
940 | broke predicates in an ugly way. |
941 | - removed tests for this |
4fd69d6c |
942 | |
c0c41f76 |
943 | 0.13 Sat. Sept. 30, 2006 |
093b12c2 |
944 | ++ NOTE ++ |
4734114b |
945 | This version of Moose *must* have Class::MOP 0.35 in order |
946 | to work correctly. A number of small internal tweaks have |
093b12c2 |
947 | been made in order to be compatible with that release. |
948 | |
3c2bc5e2 |
949 | * Moose |
950 | - Removed the use of UNIVERSAL::require to be a better |
4734114b |
951 | symbol table citizen and remove a dependency |
093b12c2 |
952 | (thanks Adam Kennedy) |
3c2bc5e2 |
953 | |
2a0f3bd3 |
954 | **~~ removed experimental & undocumented feature ~~** |
4734114b |
955 | - commented out the 'method' and 'self' keywords, see the |
2a0f3bd3 |
956 | comments for more info. |
957 | |
e95c7c42 |
958 | * Moose::Cookbook |
4734114b |
959 | - added a FAQ and WTF files to document frequently |
e95c7c42 |
960 | asked questions and common problems |
4734114b |
961 | |
3f7376b0 |
962 | * Moose::Util::TypeConstraints |
0a5bd159 |
963 | - added GlobRef and FileHandle type constraint |
3f7376b0 |
964 | - added tests for this |
4734114b |
965 | |
3f7376b0 |
966 | * Moose::Meta::Attribute |
967 | - if your attribute 'isa' ArrayRef of HashRef, and you have |
968 | not explicitly set a default, then make the default DWIM. |
4734114b |
969 | This will also work for subtypes of ArrayRef and HashRef |
94b8bbb8 |
970 | as well. |
971 | - you can now auto-deref subtypes of ArrayRef or HashRef too. |
972 | - new test added for this (thanks to ashley) |
4734114b |
973 | |
b805c70c |
974 | * Moose::Meta::Role |
975 | - added basic support for runtime role composition |
4734114b |
976 | but this is still *highly experimental*, so feedback |
0a5bd159 |
977 | is much appreciated :) |
b805c70c |
978 | - added tests for this |
e95c7c42 |
979 | |
0a5bd159 |
980 | * Moose::Meta::TypeConstraint |
981 | - the type constraint now handles the coercion process |
4734114b |
982 | through delegation, this is to support the coercion |
0a5bd159 |
983 | of unions |
4734114b |
984 | |
0a5bd159 |
985 | * Moose::Meta::TypeConstraint::Union |
4734114b |
986 | - it is now possible for coercions to be performed |
0a5bd159 |
987 | on a type union |
988 | - added tests for this (thanks to konobi) |
989 | |
e95c7c42 |
990 | * Moose::Meta::TypeCoercion |
4734114b |
991 | - properly capturing error when type constraint |
e95c7c42 |
992 | is not found |
993 | |
3c2bc5e2 |
994 | * Build.PL |
995 | - Scalar::Util 1.18 is bad on Win32, so temporarily |
996 | only require version 1.17 for Win32 and cygwin. |
4734114b |
997 | (thanks Adam Kennedy) |
3c2bc5e2 |
998 | |
40e89659 |
999 | 0.12 Sat. Sept. 1, 2006 |
2bdd01cd |
1000 | * Moose::Cookbook |
1001 | - Recipe5 (subtypes & coercion) has been written |
4734114b |
1002 | |
2bdd01cd |
1003 | * Moose |
4734114b |
1004 | - fixed "bad meta" error message to be more descriptive |
1005 | - fixed &unimport to not remove the &inner and &super |
3279ab4a |
1006 | keywords because we need to localize them. |
68efb014 |
1007 | - fixed number of spelling/grammer issues, thanks Theory :) |
4734114b |
1008 | |
0558683c |
1009 | **~~ experimental & undocumented feature ~~** |
4734114b |
1010 | - added the method and self keywords, they are basically |
68efb014 |
1011 | just sugar, and they may not stay around. |
4734114b |
1012 | |
f742dfef |
1013 | * Moose::Object |
4734114b |
1014 | - added &dump method to easily Data::Dumper |
68efb014 |
1015 | an object |
4734114b |
1016 | |
b26e162e |
1017 | * Moose::Meta::TypeConstraint |
1018 | - added the &is_a_type_of method to check both the current |
1019 | and the subtype of a method (similar to &isa with classes) |
f008ac1f |
1020 | |
68efb014 |
1021 | * Moose::Meta::Role |
1022 | - this is now a subclass of Class::MOP::Module, and no longer |
4734114b |
1023 | creates the _role_meta ugliness of before. |
68efb014 |
1024 | - fixed tests to reflect this change |
4734114b |
1025 | |
8c835eba |
1026 | 0.11 Wed. July 12, 2006 |
31f8ec72 |
1027 | * Moose |
1028 | - added an &unimport method to remove all the keywords |
4734114b |
1029 | that Moose will import, simply add 'no Moose' to the |
1030 | bottom of your class file. |
1031 | |
31f8ec72 |
1032 | * t/ |
4734114b |
1033 | - fixed some test failures caused by a forgotten test |
31f8ec72 |
1034 | dependency. |
1035 | |
864cd714 |
1036 | 0.10 Thurs. July 6, 2006 |
01a8e221 |
1037 | * Moose |
1038 | - improved error message when loading modules so |
1039 | it is less confusing when you load a role. |
4734114b |
1040 | - added &calculate_all_roles method to |
2b14ac61 |
1041 | Moose::Meta::Class and Moose::Meta::Role |
4734114b |
1042 | |
2b14ac61 |
1043 | NOTE: |
1044 | This module has been tested against Class::MOP 0.30 |
4734114b |
1045 | but it does not yet utilize the optimizations |
2b14ac61 |
1046 | it makes available. Stay tuned for that ;) |
4734114b |
1047 | |
2b14ac61 |
1048 | 0.09_03 Fri. June 23, 2006 |
715ea0b7 |
1049 | ++ DEVELOPER RELEASE ++ |
4276ccb4 |
1050 | * Moose |
1051 | - 'use strict' and 'use warnings' are no longer |
4734114b |
1052 | needed in Moose classes, Moose itself will |
4276ccb4 |
1053 | turn them on for you. |
1054 | - added tests for this |
1341f10c |
1055 | - moved code from exported subs to private methods |
1056 | in Moose::Meta::Class |
4734114b |
1057 | |
4276ccb4 |
1058 | * Moose::Role |
4734114b |
1059 | - as with Moose, strict and warnings are |
4276ccb4 |
1060 | automatically turned on for you. |
4734114b |
1061 | - added tests for this |
1062 | |
e39d707f |
1063 | * Moose::Meta::Role |
1064 | - now handles an edge case for override errors |
1065 | - added tests for this |
b7f2d25b |
1066 | - added some more edge case tests |
1341f10c |
1067 | |
43d599e5 |
1068 | 0.09_02 Tues. May 16, 2006 |
715ea0b7 |
1069 | ++ DEVELOPER RELEASE ++ |
2c0cbef7 |
1070 | * Moose |
1071 | - added prototypes to the exported subs |
43d599e5 |
1072 | - updated docs |
4734114b |
1073 | |
2c0cbef7 |
1074 | * Moose::Role |
4734114b |
1075 | - added prototypes to the exported subs |
43d599e5 |
1076 | - updated docs |
4734114b |
1077 | |
2c0cbef7 |
1078 | * Moose::Util::TypeConstraints |
4734114b |
1079 | - cleaned up prototypes for the subs |
1080 | - updated docs |
2c0cbef7 |
1081 | |
72c4f6d1 |
1082 | 0.09_01 Fri. May 12, 2006 |
1083 | ++ DEVELOPER RELEASE ++ |
4734114b |
1084 | - This release works in combination with |
1085 | Class::MOP 0.29_01, it is a developer |
1086 | release because it uses the a new |
72c4f6d1 |
1087 | instance sub-protocol and a fairly |
4734114b |
1088 | complete Role implementation. It has |
72c4f6d1 |
1089 | not yet been optimized, so it slower |
4734114b |
1090 | the the previous CPAN version. This |
1091 | release also lacks good updated docs, |
72c4f6d1 |
1092 | the official release will have updated docs. |
1093 | |
4734114b |
1094 | * Moose |
98aae381 |
1095 | - refactored the keyword exports |
4734114b |
1096 | - 'with' now checks Role validaity and |
db1ab48d |
1097 | accepts more than one Role at a time |
4734114b |
1098 | - 'extends' makes metaclass adjustments as |
98aae381 |
1099 | needed to ensure metaclass compatability |
4734114b |
1100 | |
72c4f6d1 |
1101 | * Moose::Role |
1102 | - refactored the keyword exports |
4734114b |
1103 | - 'with' now checks Role validaity and |
72c4f6d1 |
1104 | accepts more than one Role at a time |
4734114b |
1105 | |
98aae381 |
1106 | * Moose::Util::TypeConstraints |
4734114b |
1107 | - added the 'enum' keyword for simple |
1108 | string enumerations which can be used as |
98aae381 |
1109 | type constraints |
db1ab48d |
1110 | - see example of usage in t/202_example.t |
4734114b |
1111 | |
98aae381 |
1112 | * Moose::Object |
1113 | - more careful checking of params to new() |
4734114b |
1114 | |
72c4f6d1 |
1115 | * Moose::Meta::Role |
1116 | - much work done on the role composition |
4734114b |
1117 | - many new tests for conflict detection |
72c4f6d1 |
1118 | and composition edge cases |
4734114b |
1119 | - not enough documentation, I suggest |
1120 | looking at the tests |
1121 | |
98aae381 |
1122 | * Moose::Meta::Instance |
4734114b |
1123 | - added new Instance metaclass to support |
98aae381 |
1124 | the new Class::MOP instance protocol |
4734114b |
1125 | |
98aae381 |
1126 | * Moose::Meta::Class |
4734114b |
1127 | - some small changes to support the new |
98aae381 |
1128 | instance protocol |
72c4f6d1 |
1129 | - some small additions to support Roles |
4734114b |
1130 | |
98aae381 |
1131 | * Moose::Meta::Attribute |
1132 | - some improvements to the accessor generation code |
1133 | by nothingmuch |
4734114b |
1134 | - some small changes to support the new |
98aae381 |
1135 | instance protocol |
4734114b |
1136 | - (still somewhat) experimental delegation support |
98aae381 |
1137 | with the 'handles' option |
1138 | - added several tests for this |
db1ab48d |
1139 | - no docs for this yet |
98aae381 |
1140 | |
35c8b8f2 |
1141 | 0.05 Thurs. April 27, 2006 |
2d562421 |
1142 | * Moose |
1143 | - keywords are now exported with Sub::Exporter |
1144 | thanks to chansen for this commit |
4734114b |
1145 | - has keyword now takes a 'metaclass' option |
1146 | to support custom attribute meta-classes |
590868a3 |
1147 | on a per-attribute basis |
4734114b |
1148 | - added tests for this |
daea75c9 |
1149 | - the 'has' keyword not accepts inherited slot |
4734114b |
1150 | specifications (has '+foo'). This is still an |
daea75c9 |
1151 | experimental feature and probably not finished |
4734114b |
1152 | see t/038_attribute_inherited_slot_specs.t for |
daea75c9 |
1153 | more details, or ask about it on #moose |
fcb7afc2 |
1154 | - added tests for this |
4734114b |
1155 | |
2d562421 |
1156 | * Moose::Role |
1157 | - keywords are now exported with Sub::Exporter |
1158 | |
5204cd52 |
1159 | * Moose::Utils::TypeConstraints |
cce8198b |
1160 | - reorganized the type constraint hierarchy, thanks |
4734114b |
1161 | to nothingmuch and chansen for his help and advice |
cce8198b |
1162 | on this |
1163 | - added some tests for this |
7eaef7ad |
1164 | - keywords are now exported with Sub::Exporter |
35c8b8f2 |
1165 | thanks to chansen for this commit |
5204cd52 |
1166 | |
d500266f |
1167 | * Moose::Meta::Class |
1168 | - due to changes in Class::MOP, we had to change |
1169 | construct_instance (for the better) |
4734114b |
1170 | |
d500266f |
1171 | * Moose::Meta::Attribute |
4734114b |
1172 | - due to changes in Class::MOP, we had to add the |
d500266f |
1173 | initialize_instance_slot method (it's a good thing) |
4734114b |
1174 | |
cce8198b |
1175 | * Moose::Meta::TypeConstraint |
4734114b |
1176 | - added type constraint unions |
c07af9d2 |
1177 | - added tests for this |
cce8198b |
1178 | - added the is_subtype_of predicate method |
1179 | - added tests for this |
d500266f |
1180 | |
02a0fb52 |
1181 | 0.04 Sun. April 16th, 2006 |
1331430a |
1182 | * Moose::Role |
1183 | - Roles can now consume other roles |
1184 | - added tests for this |
4734114b |
1185 | - Roles can specify required methods now with |
1331430a |
1186 | the requires() keyword |
1187 | - added tests for this |
1188 | |
bdabd620 |
1189 | * Moose::Meta::Role |
1190 | - ripped out much of it's guts ,.. much cleaner now |
4734114b |
1191 | - added required methods and correct handling of |
fa1be058 |
1192 | them in apply() for both classes and roles |
1193 | - added tests for this |
4734114b |
1194 | - no longer adds a does() method to consuming classes |
1331430a |
1195 | it relys on the one in Moose::Object |
4734114b |
1196 | - added roles attribute and some methods to support |
1331430a |
1197 | roles consuming roles |
8c9d74e7 |
1198 | |
1199 | * Moose::Meta::Attribute |
1200 | - added support for triggers on attributes |
1201 | - added tests for this |
4734114b |
1202 | - added support for does option on an attribute |
02a0fb52 |
1203 | - added tests for this |
4734114b |
1204 | |
8c9d74e7 |
1205 | * Moose::Meta::Class |
4734114b |
1206 | - added support for attribute triggers in the |
8c9d74e7 |
1207 | object construction |
1208 | - added tests for this |
4734114b |
1209 | |
256903b6 |
1210 | * Moose |
4734114b |
1211 | - Moose no longer creates a subtype for your class |
1212 | if a subtype of the same name already exists, this |
256903b6 |
1213 | should DWIM in 99.9999% of all cases |
4734114b |
1214 | |
256903b6 |
1215 | * Moose::Util::TypeConstraints |
4734114b |
1216 | - fixed bug where incorrect subtype conflicts were |
256903b6 |
1217 | being reported |
8c9d74e7 |
1218 | - added test for this |
4734114b |
1219 | |
8c9d74e7 |
1220 | * Moose::Object |
1221 | - this class can now be extended with 'use base' if |
1222 | you need it, it properly loads the metaclass class now |
1223 | - added test for this |
bdabd620 |
1224 | |
0677220d |
1225 | 0.03_02 Wed. April 12, 2006 |
05d9eaf6 |
1226 | * Moose |
1227 | - you must now explictly use Moose::Util::TypeConstraints |
1228 | it no longer gets exported for you automatically |
4734114b |
1229 | |
05d9eaf6 |
1230 | * Moose::Object |
1231 | - new() now accepts hash-refs as well as key/value lists |
0677220d |
1232 | - added does() method to check for Roles |
1233 | - added tests for this |
05d9eaf6 |
1234 | |
0677220d |
1235 | * Moose::Meta::Class |
4734114b |
1236 | - added roles attribute along with the add_role() and |
0677220d |
1237 | does_role() methods |
4734114b |
1238 | - added tests for this |
0677220d |
1239 | |
1240 | * Moose::Meta::Role |
4734114b |
1241 | - now adds a does() method to consuming classes |
0677220d |
1242 | which tests the class's hierarchy for roles |
1243 | - added tests for this |
1244 | |
1245 | 0.03_01 Mon. April 10, 2006 |
e9ec68d6 |
1246 | * Moose::Cookbook |
76d37e5a |
1247 | - added new Role recipe (no content yet, only code) |
4734114b |
1248 | |
e9ec68d6 |
1249 | * Moose |
1250 | - added 'with' keyword for Role support |
1251 | - added test and docs for this |
1252 | - fixed subtype quoting bug |
4734114b |
1253 | - added test for this |
e9ec68d6 |
1254 | |
1255 | * Moose::Role |
1256 | - Roles for Moose |
1257 | - added test and docs |
76d37e5a |
1258 | |
1259 | * Moose::Util::TypeConstraints |
1260 | - added the message keyword to add custom |
4734114b |
1261 | error messages to type constraints |
1262 | |
e9ec68d6 |
1263 | * Moose::Meta::Role |
1264 | - the meta role to support Moose::Role |
1265 | - added tests and docs |
4734114b |
1266 | |
e9ec68d6 |
1267 | * Moose::Meta::Class |
4734114b |
1268 | - moved a number of things from Moose.pm |
1269 | to here, they should have been here |
e9ec68d6 |
1270 | in the first place |
1271 | |
1272 | * Moose::Meta::Attribute |
1273 | - moved the attribute option macros here |
1274 | instead of putting them in Moose.pm |
e185c027 |
1275 | |
76d37e5a |
1276 | * Moose::Meta::TypeConstraint |
4734114b |
1277 | - added the message attributes and the |
76d37e5a |
1278 | validate method |
1279 | - added tests and docs for this |
1280 | |
0ac928d2 |
1281 | 0.03 Thurs. March 30, 2006 |
e9bb8a31 |
1282 | * Moose::Cookbook |
4734114b |
1283 | - added the Moose::Cookbook with 5 recipes, |
e9bb8a31 |
1284 | describing all the stuff Moose can do. |
1285 | |
d7f17ebb |
1286 | * Moose |
1287 | - fixed an issue with &extends super class loading |
4734114b |
1288 | it now captures errors and deals with inline |
1289 | packages correctly (bug found by mst, solution |
d7f17ebb |
1290 | stolen from alias) |
159da176 |
1291 | - added super/override & inner/augment features |
1292 | - added tests and docs for these |
4734114b |
1293 | |
d7f17ebb |
1294 | * Moose::Object |
4734114b |
1295 | - BUILDALL now takes a reference of the %params |
1296 | that are passed to &new, and passes that to |
d7f17ebb |
1297 | each BUILD as well. |
4734114b |
1298 | |
471c4f09 |
1299 | * Moose::Util::TypeConstraints |
1300 | - Type constraints now survive runtime reloading |
1301 | - added test for this |
d7f17ebb |
1302 | |
8339fae2 |
1303 | * Moose::Meta::Class |
4734114b |
1304 | - fixed the way attribute defaults are handled |
8339fae2 |
1305 | during instance construction (bug found by chansen) |
1306 | |
d7f17ebb |
1307 | * Moose::Meta::Attribute |
1308 | - read-only attributes now actually enforce their |
4734114b |
1309 | read-only-ness (this corrected in Class::MOP as |
9deed647 |
1310 | well) |
d7f17ebb |
1311 | |
076c81ed |
1312 | 0.02 Tues. March 21, 2006 |
fc5609d2 |
1313 | * Moose |
4734114b |
1314 | - many more tests, fixing some bugs and |
b841b2a3 |
1315 | edge cases |
b841b2a3 |
1316 | - &extends now loads the base module with |
4734114b |
1317 | UNIVERSAL::require |
1318 | - added UNIVERSAL::require to the |
b841b2a3 |
1319 | dependencies list |
6ba6d68c |
1320 | ** API CHANGES ** |
4734114b |
1321 | - each new Moose class will also create |
1322 | and register a subtype of Object which |
1323 | correspond to the new Moose class. |
1324 | - the 'isa' option in &has now only |
1325 | accepts strings, and will DWIM in |
b841b2a3 |
1326 | almost all cases |
4734114b |
1327 | |
b841b2a3 |
1328 | * Moose::Util::TypeConstraints |
1329 | - added type coercion features |
1330 | - added tests for this |
4734114b |
1331 | - added support for this in attributes |
b841b2a3 |
1332 | and instance construction |
6ba6d68c |
1333 | ** API CHANGES ** |
4734114b |
1334 | - type construction no longer creates a |
b841b2a3 |
1335 | function, it registers the type instead. |
4734114b |
1336 | - added several functions to get the |
1337 | registered types |
6ba6d68c |
1338 | |
1339 | * Moose::Object |
4734114b |
1340 | - BUILDALL and DEMOLISHALL were broken |
6ba6d68c |
1341 | because of a mis-named hash key, Whoops :) |
4734114b |
1342 | |
b841b2a3 |
1343 | * Moose::Meta::Attribute |
1344 | - adding support for coercion in the |
1345 | autogenerated accessors |
4734114b |
1346 | |
b841b2a3 |
1347 | * Moose::Meta::Class |
1348 | - adding support for coercion in the |
4734114b |
1349 | instance construction |
6ba6d68c |
1350 | |
1351 | * Moose::Meta::TypeConstraint |
1352 | * Moose::Meta::TypeCoercion |
4734114b |
1353 | - type constraints and coercions are now |
6ba6d68c |
1354 | full fledges meta-objects |
fc5609d2 |
1355 | |
e522431d |
1356 | 0.01 Wed. March 15, 2006 |
900466d6 |
1357 | - Moooooooooooooooooose!!! |