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