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