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