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