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