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