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