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