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