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