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