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