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