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