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