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