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