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