1 Revision history for Perl extension 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
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
17 - added same 'add_package_symbol' fix as in
21 - does_role now handles non-Moose classes
23 - added tests for this
25 * Moose::Util::TypeConstraints
26 - subtypes of parameterizable types now are
27 themselves parameterizable types
29 * Moose::Meta::Method::Constructor
30 - fixed bug where trigger was not being
31 called by the inlined immutable
33 - added test for this (thanks to Caelum)
35 * Moose::Meta::Role::Application::ToInstance
36 - now uses the metaclass of the instance
37 (if possible) to create the anon-class
38 (thanks Jonathan Rockway)
40 * Moose::Cookbook::Snack::ArrayRef
41 Moose::Cookbook::Snack::HashRef
42 Moose::Cookbook::Snack::Perl5ObjsVsMooseObjs
43 Moose::Cookbook::Snack::BUILD
44 - several new Snacks added to the cookbook
48 - fixed hash-ordering test bug that was
49 causing occasional cpantester failures
51 0.44 Sat. May 10, 2008
53 - made make_immutable warning cluck to
54 show where the error is (thanks mst)
57 - BUILDALL and DEMOLISHALL now call
58 ->body when looping through the
59 methods, to avoid the overloaded
61 - fixed issue where DEMOLISHALL was
62 eating the $@ values, and so not
63 working correctly, it still kind of
64 eats them, but so does vanilla perl
65 - added tests for this
67 * Moose::Cookbook::Recipe7
68 - added new recipe for immutable
69 functionality (thanks Dave Rolsky)
71 * Moose::Cookbook::Recipe9
72 - added new recipe for builder and
73 lazy_build (thanks Dave Rolsky)
75 * Moose::Cookbook::Recipe11
76 - added new recipe for method aliasing
77 and exclusion with Roles (thanks Dave Rolsky)
80 - fixed Win32 test failure (thanks spicyjack)
82 ~ removed Build.PL and Module::Build compat
83 since Module::Install has done that.
85 0.43 Wed. April, 30, 2008
87 drink more coffee before
88 doing release engineering
90 - whoops, forgot to do the smolder tests,
91 and we broke some of the custom meta-attr
92 modules. This fixes that.
94 0.42 Mon. April 28, 2008
95 - some bad tests slipped by, nothing else
96 changed in this release (cpantesters++)
98 - upped the Class::MOP dependency to 0.55
99 since we have tests which need the C3
102 0.41 Mon. April 28, 2008
103 ~~ numerous documentation updates ~~
105 - Changed all usage of die to Carp::croak for better
106 error reporting (initial patch by Tod Hagan)
109 - the make_immutable keyword is now deprecated, don't
110 use it in any new code and please fix your old code
111 as well. There will be 2 releases, and then it will
117 - refactored the way inner and super work to avoid
118 any method/@ISA cache penalty (nothingmuch)
121 - fixing &new_object to make sure trigger gets the
122 coerced value (spotted by Charles Alderman on the
124 - added test for this
126 * Moose::Meta::Method::Constructor
127 - immutable classes which had non-lazy attributes were calling
128 the default generating sub twice in the constructor. (bug
129 found by Jesse Luehrs, fixed by Dave Rolsky)
130 - added tests for this (Dave Rolsky)
131 - fix typo in initialize_body method (nothingmuch)
133 * Moose::Meta::Method::Destructor
134 - fix typo in initialize_body method (nothingmuch)
136 * Moose::Meta::Method::Overriden
137 Moose::Meta::Method::Augmented
138 - moved the logic for these into their own
139 classes (nothingmuch)
141 * Moose::Meta::Attribute
142 - inherited attributes may now be extended without
143 restriction on the type ('isa', 'does') (Sartak)
144 - added tests for this (Sartak)
145 - when an attribute property is malformed (such as lazy without
146 a default), give the name of the attribute in the error
148 - added the &applied_traits and &has_applied_traits methods
149 to allow introspection of traits
150 - added tests for this
151 - moved 'trait' and 'metaclass' argument handling to here from
153 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
154 '+foo' syntax) (nothingmuch)
155 - added tests for this (t0m)
158 - localize $@ inside DEMOLISHALL to avoid it
159 eating $@ (found by Ernesto)
160 - added test for this (thanks to Ernesto)
162 * Moose::Util::TypeConstraints
163 - &find_type_constraint now DWIMs when given an
164 type constraint object or name (nothingmuch)
165 - &find_or_create_type_constraint superseded with a number of more
167 - find_or_create_{isa,does}_type_constraint
168 - find_or_parse_type_constraint
170 * Moose::Meta::TypeConstraint
171 Moose::Meta::TypeConstraint::Class
172 Moose::Meta::TypeConstraint::Role
173 Moose::Meta::TypeConstraint::Enum
174 Moose::Meta::TypeConstraint::Union
175 Moose::Meta::TypeConstraint::Parameterized
176 - added the &equals method for comparing two type
177 constraints (nothingmuch)
178 - added tests for this (nothingmuch)
180 * Moose::Meta::TypeConstraint
181 - add the &parents method, which is just an alias to &parent.
182 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
184 * Moose::Meta::TypeConstraint::Class
185 - added the class attribute for introspection purposes
187 - added tests for this
189 * Moose::Meta::TypeConstraint::Enum
190 Moose::Meta::TypeConstraint::Role
191 - broke these out into their own classes (nothingmuch)
193 * Moose::Cookbook::Recipe*
194 - fixed references to test file locations in the POD
195 and updated up some text for new Moose features
199 - Added &resolve_metaclass_alias, a helper function for finding an actual
200 class for a short name (e.g. in the traits list)
202 0.40 Fri. March 14, 2008
203 - I hate Pod::Coverage
205 0.39 Fri. March 14, 2008
207 - documenting the use of '+name' with attributes
208 that come from recently composed roles. It makes
209 sense, people are using it, and so why not just
210 officially support it.
211 - fixing the 'extends' keyword so that it will not
212 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
215 - added the perl -Moose=+Class::Name feature to allow
216 monkeypatching of classes in one liners
219 - fixing the 'apply_all_roles' keyword so that it will not
220 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
223 - added ->create method which now supports roles (thanks to jrockway)
224 - added tests for this
225 - added ->create_anon_class which now supports roles and caching of
226 the results (thanks to jrockway)
227 - added tests for this
228 - made ->does_role a little more forgiving when it is
229 checking a Class::MOP era metaclasses.
231 * Moose::Meta::Role::Application::ToInstance
232 - it is now possible to pass extra params to be used when
233 a role is applied to an the instance (rebless_params)
234 - added tests for this
236 * Moose::Util::TypeConstraints
237 - class_type now accepts an optional second argument for a
238 custom message. POD anotated accordingly (groditi)
239 - added tests for this
240 - it is now possible to make anon-enums by passing 'enum' an
241 ARRAY ref instead of the $name => @values. Everything else
243 - added tests for this
246 - making test for using '+name' on attributes consumed
247 from a role, it works and makes sense too.
249 * Moose::Meta::Attribute
250 - fix handles so that it doesn't return nothing
251 when the method cannot be found, not sure why
252 it ever did this originally, this means we now
253 have slightly better support for AUTOLOADed
255 - added more delegation tests
256 - adding ->does method to this so as to better
257 support traits and their introspection.
258 - added tests for this
261 - localizing the Data::Dumper configurations so
262 that it does not pollute others (RT #33509)
263 - made ->does a little more forgiving when it is
264 passed Class::MOP era metaclasses.
266 0.38 Fri. Feb. 15, 2008
267 * Moose::Meta::Attribute
268 - fixed initializer to correctly do
269 type checking and coercion in the
271 - added tests for this
274 - fixed some finicky tests (thanks to konobi)
276 0.37 Thurs. Feb. 14, 2008
278 - fixed some details in Moose::init_meta
279 and its superclass handling (thanks thepler)
280 - added tests for this (thanks thepler)
281 - 'has' now dies if you don't pass in name
283 - added the 'make_immutable' keyword as a shortcut
287 Moose::Meta::Method::Constructor
288 Moose::Meta::Attribute
289 - making (init_arg => undef) work here too
290 (thanks to nothingmuch)
292 * Moose::Meta::Attribute
293 Moose::Meta::Method::Constructor
294 Moose::Meta::Method::Accessor
295 - make lazy attributes respect attr initializers (rjbs)
296 - added tests for this
298 * Moose::Util::TypeConstraints
299 Moose::Util::TypeConstraints::OptimizedConstraints
300 Moose::Meta::TypeConstraints
301 Moose::Meta::Attribute
302 Moose::Meta::Method::Constructor
303 Moose::Meta::Method::Accessor
304 - making type errors use the
305 assigned message (thanks to Sartak)
306 - added tests for this
308 * Moose::Meta::Method::Destructor
309 - making sure DESTROY gets inlined properly
310 with successive DEMOLISH calls (thanks to manito)
312 * Moose::Meta::Attribute
313 Moose::Meta::Method::Accessor
314 - fixed handling of undef with type constraints
316 - added tests for this
319 - added &get_all_init_args and &get_all_attribute_values
320 (thanks to Sartak and nothingmuch)
322 0.36 Sat. Jan. 26, 2008
324 Moose::Meta::Attribute
325 - role type tests now support when roles are
326 applied to non-Moose classes (found by ash)
327 - added tests for this (thanks to ash)
328 - couple extra tests to boost code coverage
330 * Moose::Meta::Method::Constructor
331 - improved fix for handling Class::MOP attributes
332 - added test for this
335 - handled the add_attribute($attribute_meta_object)
337 - added test for this
339 0.35 Tues. Jan. 22, 2008
340 * Moose::Meta::Method::Constructor
341 - fix to make sure even Class::MOP attributes
342 are handled correctly (Thanks to Dave Rolsky)
343 - added test for this (also Dave Rolsky)
346 - improved error message on _apply_all_roles,
347 you should now use Moose::Util::apply_all_roles
348 and you shouldnt have been using a _ prefixed
349 method in the first place ;)
351 0.34 Mon. Jan. 21, 2008
352 ~~~ more misc. doc. fixes ~~~
353 ~~ updated copyright dates ~~
355 Moose is now a postmodern object system :)
356 - (see the POD for details)
358 * <<Role System Refactoring>>
359 - this release contains a major reworking and
360 cleanup of the role system
361 - 100% backwards compat.
362 - Role application now restructured into seperate
363 classes based on type of applicants
364 - Role summation (combining of more than one role)
365 is much cleaner and anon-classes are no longer
367 - new Composite role metaclass
368 - runtime application of roles to instances
369 is now more efficient and re-uses generated
370 classes when applicable
372 * <<New Role composition features>>
373 - methods can now be excluded from a given role
375 - methods can now be aliased to another name (and
376 still retain the original as well)
378 * Moose::Util::TypeConstraints::OptimizedConstraints
379 - added this module (see above)
382 - fixed the &_process_attribute method to be called
383 by &add_attribute, so that the API is now correct
385 * Moose::Meta::Method::Accessor
386 - fixed bug when passing a list of values to
387 an accessor would get (incorrectly) ignored.
388 Thanks to Sartak for finding this ;)
389 - added tests for this (Sartak again)
391 * Moose::Meta::Method::Accessor
392 Moose::Meta::Method::Constructor
393 Moose::Meta::Attribute
394 Moose::Meta::TypeConstraint
395 Moose::Meta::TypeCoercion
396 - lots of cleanup of such things as:
398 - type constraint handling
399 - error handling/messages
400 (thanks to nothingmuch)
402 * Moose::Meta::TypeConstraint::Parameterizable
403 - added this module to support the refactor
404 in Moose::Meta::TypeConstraint::Parameterized
406 * Moose::Meta::TypeConstraint::Parameterized
407 - refactored how these types are handled so they
408 are more generic and not confined to ArrayRef
412 - shortened some file names for better VMS support (RT #32381)
414 0.33 Fri. Dec. 14, 2007
415 !! Moose now loads 2 x faster !!
416 !! with new Class::MOP 0.49 !!
418 ++ new oose.pm module to make command line
419 Moose-ness easier (see POD docs for more)
423 - several tweaks to take advantage of the
424 new method map caching in Class::MOP
426 * Moose::Meta::TypeConstraint::Parameterized
427 - allow subtypes of ArrayRef and HashRef to
428 be used as a container (sartak)
429 - added tests for this
430 - basic support for coercion to ArrayRef and
431 HashRef for containers (sartak)
432 - added tests for this
434 * Moose::Meta::TypeCoercion
435 - coercions will now create subtypes as needed
436 so you can now add coercions to parameterized
437 types without having to explictly define them
438 - added tests for this
440 * Moose::Meta::Method::Accessor
441 - allow subclasses to decide whether we need
442 to copy the value into a new variable (sartak)
444 0.32 Tues. Dec. 4, 2007
445 * Moose::Util::TypeConstraints
446 - fixing how subtype aliases of unions work
447 they should inherit the parent's coercion
448 - added tests for this
449 - you can now define multiple coercions on
450 a single type at different times instead of
451 having to do it all in one place
452 - added tests for this
454 * Moose::Meta::TypeConstraint
455 - there is now a default constraint of sub { 1 }
456 instead of Moose::Util::TypeConstraints setting
459 * Moose::Meta::TypeCoercion
460 * Moose::Meta::TypeCoercion::Union
461 - added the &has_coercion_for_type and
462 &add_type_coercions methods to support the
463 new features above (although you cannot add
464 more type coercions for Union types)
466 0.31 Mon. Nov. 26, 2007
467 * Moose::Meta::Attribute
468 - made the +attr syntax handle extending types with
469 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
470 now works if the original foo is an ArrayRef.
471 - added tests for this.
472 - delegation now works even if the attribute does not
473 have a reader method using the get_read_method_ref
474 method from Class::MOP::Attribute.
475 - added tests for this
476 - added docs for this
478 * Moose::Util::TypeConstraints
479 - passing no "additional attribute info" to
480 &find_or_create_type_constraint will no longer
481 attempt to create an __ANON__ type for you,
482 instead it will just return undef.
483 - added docs for this
485 0.30 Fri. Nov. 23, 2007
486 * Moose::Meta::Method::Constructor
487 -builder related bug in inlined constructor. (groditi)
489 * Moose::Meta::Method::Accessor
490 - genereate unnecessary calls to predicates and refactor
491 code generation for runtime speed (groditi)
493 * Moose::Util::TypeConstraints
494 - fix ClassName constraint to introspect symbol table (mst)
495 - added more tests for this (mst)
496 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
498 - added tests for this
501 - adding the link to Recipie 11 (written by Sartak)
502 - adding test for SYNOPSIS code
505 - New tests for builder bug. Upon instantiation, if an
506 attribute had a builder, no value and was not lazy the
507 builder default was not getting run, oops. (groditi)
509 0.29 Tues. Nov. 13, 2007
510 * Moose::Meta::Attribute
511 - Fix error message on missing builder method (groditi)
513 * Moose::Meta::Method::Accessor
514 - Fix error message on missing builder method (groditi)
517 - Add test to check for the correct error message when
518 builder method is missing (groditi)
520 0.28 Tues. Nov. 13, 2007
521 - 0.27 packaged incorrectly (groditi)
523 0.27 Tues. Nov. 13, 2007
524 * Moose::Meta::Attribute
525 - Added support for the new builder option (groditi)
526 - Added support for lazy_build option (groditi)
527 - Changed slot initialization for predicate changes (groditi)
529 * Moose::Meta::Method::Accessor
530 - Added support for lazy_build option (groditi)
531 - Fix inline methods to work with corrected predicate
534 * Moose::Meta::Method::Constructor
535 - Added support for lazy_build option (groditi)
538 - tests for builder and lazy_build (groditi)
540 * fixing some misc. bits in the docs that
541 got mentioned on CPAN Forum & perlmonks
544 - fixed how required methods are handled
545 when they encounter overriden or modified
546 methods from a class (thanks to confound).
547 - added tests for this
549 * Moose::Util::TypeConstraint
550 - fixed the type notation parser so that
551 the | always creates a union and so is
552 no longer a valid type char (thanks to
553 konobi, mugwump and #moose for working
555 - added more tests for this
557 0.26 Thurs. Sept. 27, 2007
560 * Parameterized Types
561 We now support parameterized collection types, such as:
562 ArrayRef[Int] # array or integers
563 HashRef[Object] # a hash with object values
564 They can also be nested:
565 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
566 And work with the type unions as well:
567 ArrayRef[Int | Str] # array of integers of strings
569 * Better Framework Extendability
570 Moose.pm is now "extendable" such that it is now much
571 easier to extend the framework and add your own keywords
572 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
573 section of the Moose.pm docs.
576 In an effort to begin documenting some of the various
577 details of Moose as well as some common idioms, we have
578 created Moose::Cookbook::Snacks as a place to find
579 small (easily digestable) nuggets of Moose code.
582 ~ Several doc updates/cleanup thanks to castaway ~
584 - converted build system to use Module::Install instead of
585 Module::Build (thanks to jrockway)
588 - added all the meta classes to the immutable list and
589 set it to inline the accessors
590 - fix import to allow Sub::Exporter like { into => }
591 and { into_level => } (perigrin)
592 - exposed and documented init_meta() to allow better
593 embedding and extending of Moose (perigrin)
596 - complete re-organization of the test suite
597 - added some new tests as well
598 - finally re-enabled the Moose::POOP test since
599 the new version of DBM::Deep now works again
603 - fixed very odd and very nasty recursion bug with
605 - added tests for this (eilara)
607 * Moose::Meta::Attribute
608 Moose::Meta::Method::Constructor
609 Moose::Meta::Method::Accessor
610 - fixed issue with overload::Overloaded getting called
611 on non-blessed items. (RT #29269)
612 - added tests for this
614 * Moose::Meta::Method::Accessor
615 - fixed issue with generated accessor code making
616 assumptions about hash based classes (thanks to dexter)
618 * Moose::Coookbook::Snacks
619 - these are bits of documentation, not quite as big as
620 Recipes but which have no clear place in the module docs.
621 So they are Snacks! (horray for castaway++)
623 * Moose::Cookbook::Recipe4
624 - updated it to use the new ArrayRef[MyType] construct
625 - updated the accompanying test as well
627 +++ Major Refactor of the Type Constraint system +++
628 +++ with new features added as well +++
630 * Moose::Util::TypeConstraint
631 - no longer uses package variable to keep track of
632 the type constraints, now uses the an instance of
633 Moose::Meta::TypeConstraint::Registry to do it
634 - added more sophisticated type notation parsing
636 - added tests for this
638 * Moose::Meta::TypeConstraint
639 - some minor adjustments to make subclassing easier
640 - added the package_defined_in attribute so that we
641 can track where the type constraints are created
643 * Moose::Meta::TypeConstraint::Union
644 - this is now been refactored to be a subclass of
645 Moose::Meta::TypeConstraint
647 * Moose::Meta::TypeCoercion::Union
648 - this has been added to service the newly refactored
649 Moose::Meta::TypeConstraint::Union and is itself
650 a subclass of Moose::Meta::TypeCoercion
652 * Moose::Meta::TypeConstraint::Parameterized
653 - added this module (taken from MooseX::AttributeHelpers)
654 to help construct nested collection types
655 - added tests for this
657 * Moose::Meta::TypeConstraint::Registry
658 - added this class to keep track of type constraints
660 0.25 Mon. Aug. 13, 2007
662 - Documentation update to reference Moose::Util::TypeConstraints
663 under 'isa' in 'has' for how to define a new type
666 * Moose::Meta::Attribute
667 - required attributes now will no longer accept undef
668 from the constructor, even if there is a default and lazy
669 - added tests for this
670 - default subroutines must return a value which passes the
672 - added tests for this
674 * Moose::Meta::Attribute
675 * Moose::Meta::Method::Constructor
676 * Moose::Meta::Method::Accessor
677 - type-constraint tests now handle overloaded objects correctly
679 - added tests for this (thanks to EvanCarroll)
681 * Moose::Meta::TypeConstraint::Union
682 - added (has_)hand_optimized_constraint to this class so that
683 it behaves as the regular Moose::Meta::TypeConstraint does.
686 - large refactoring of this code
687 - added several more tests
688 - tests for subtle conflict resolition issues
689 added, but not currently running
692 * Moose::Cookbook::Recipe7
693 - added new recipe for augment/inner functionality
695 - added test for this
698 - a formal definition of roles (still in progress)
701 - utilities for easier working with Moose classes
702 - added tests for these
705 - This contains Moose specific test functions
706 - added tests for these
708 0.24 Tues. July 3, 2007
709 ~ Some doc updates/cleanup ~
711 * Moose::Meta::Attribute
712 - added support for roles to be given as parameters
713 to the 'handles' option.
714 - added tests and docs for this
715 - the has '+foo' attribute form now accepts changes to
716 the lazy option, and the addition of a handles option
717 (but not changing the handles option)
718 - added tests and docs for this
721 - required methods are now fetched using find_method_by_name
722 so that required methods can come from superclasses
723 - adjusted tests for this
725 0.23 Mon. June 18, 2007
726 * Moose::Meta::Method::Constructor
727 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
729 - Modify make_immutable to work with the new Class::MOP immutable
730 mechanism + POD + very basic test (groditi)
731 * Moose::Meta::Attribute
732 - Fix handles to use goto() so that caller() comes out properly on
733 the other side (perigrin)
735 0.22 Thurs. May 31, 2007
736 * Moose::Util::TypeConstraints
737 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
738 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
739 prototypes for functions
740 - added the ClassName type constraint, this checks for strings
741 which will respond true to ->isa(UNIVERSAL).
742 - added tests and docs for this
743 - subtyping just in name now works correctly by making the
744 default for where be { 1 }
745 - added test for this
747 * Moose::Meta::Method::Accessor
748 - coerce and lazy now work together correctly, thanks to
749 merlyn for finding this bug
750 - tests added for this
751 - fix reader presedence bug in Moose::Meta::Attribute + tests
754 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
755 a HASH-ref and missed. This produces better error messages then
756 having it die cause undef is not a HASH.
757 - added tests for this
759 0.21 Thursday, May 2nd, 2007
761 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
762 - modified unimport to remove super and inner along with the rest
763 - altered unimport tests to handle this
766 - altered super export to populate SUPER_SLOT
769 - altered augment and override modifier application to use *_SLOT
770 - modified tests for these to unimport one test class each to test
773 - fixed issue where custom attribute metaclasses
774 where not handled correctly in roles
775 - added tests for this
778 - fixed issue where extending metaclasses with
779 roles would blow up. Thanks to Aankhen`` for
780 finding this insidious error, and it's solution.
782 ~~ lots of spelling and grammer fixes in the docs,
783 many many thanks to rlb3 and Aankhen for these :)
785 0.20 Friday, April 6th, 2007
786 >> I messed up the SKIP logic in one test
787 so this release is just to fix that.
790 - 'has' now also accepts an ARRAY ref
791 to create multiple attrs (see docs)
792 (thanks to konobi for this)
793 - added tests and docs
795 0.19 Thurs. April 5th, 2007
796 ~~ More documentation updates ~~
798 * Moose::Util::TypeConstraints
799 - 'type' now supports messages as well
800 thanks to phaylon for finding this
801 - added tests for this
802 - added &list_all_type_constraints and
803 &list_all_builtin_type_constraints
804 functions to facilitate introspection.
806 * Moose::Meta::Attribute
807 - fixed regexp 'handles' declarations
808 to build the list of delegated methods
809 correctly (and not override important
810 things like &new) thanks to ashleyb
812 - added tests and docs for this
813 - added the 'documentation' attributes
814 so that you can actually document your
815 attributes and inspect them through the
817 - added tests and docs for this
820 - when loading custom attribute metaclasses
821 it will first look in for the class in the
822 Moose::Meta::Attribute::Custom::$name, and
823 then default to just loading $name.
824 - added tests and docs for this
826 * Moose::Meta::TypeConstraint
827 - type constraints now stringify to their names.
828 - added test for this
831 - added tests to assure we work with Module::Refresh
832 - added stricter test skip logic in the Moose POOP
833 test, ask Rob Kinyon why.
834 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
836 0.18 Sat. March 10, 2007
837 ~~ Many, many documentation updates ~~
840 - We now use Class::MOP::load_class to
842 - added tests to show types and subtypes
843 working with Declare::Constraints::Simple
844 and Test::Deep as constraint engines.
847 !! You must have Class::MOP 0.37_001 !!
848 !! for this developer release to work !!
850 This release was primarily adding the immutable
851 feature to Moose. An immutable class is one which
852 you promise not to alter. When you set the class
853 as immutable it will perform various bits of
854 memoization and inline certain part of the code
855 (constructors, destructors and accessors). This
856 minimizes (and in some cases totally eliminates)
857 one of Moose's biggest performance hits. This
858 feature is not on by default, and is 100% optional.
859 It has several configurable bits as well, so you
860 can pick and choose to your specific needs.
862 The changes involved in this were fairly wide and
863 highly specific, but 100% backwards compatible, so
864 I am not going to enumerate them here. If you are
865 truely interested in what was changed, please do
868 0.17 Tues. Nov. 14, 2006
869 * Moose::Meta::Method::Accessor
870 - bugfix for read-only accessors which
871 are have a type constraint and lazy.
872 Thanks to chansen for finding it.
874 0.16 Tues. Nov. 14, 2006
876 There are some speed improvements in this release,
877 but they are only the begining, so stay tuned.
880 - BUILDALL and DEMOLISHALL no longer get
881 called unless they actually need to be.
882 This gave us a signifigant speed boost
883 for the cases when there is no BUILD or
884 DEMOLISH method present.
886 * Moose::Util::TypeConstraints
887 * Moose::Meta::TypeConstraint
888 - added an 'optimize_as' option to the
889 type constraint, which allows for a
890 hand optimized version of the type
891 constraint to be used when possible.
892 - Any internally created type constraints
893 now provide an optimized version as well.
895 0.15 Sun. Nov. 5, 2006
897 This version of Moose *must* have Class::MOP 0.36 in order
898 to work correctly. A number of small internal tweaks have
899 been made in order to be compatible with that release.
901 * Moose::Util::TypeConstraints
902 - added &unimport so that you can clean out
903 your class namespace of these exported
907 - fixed minor issue which occasionally
908 comes up during global destruction
910 - moved Moose::Meta::Method::Overriden into
914 - moved Moose::Meta::Role::Method into
917 * Moose::Meta::Attribute
918 - changed how we do type checks so that
919 we reduce the overall cost, but still
922 - moved accessor generation methods to
923 Moose::Meta::Method::Accessor to
924 conform to the API changes from
927 * Moose::Meta::TypeConstraint
928 - changed how constraints are compiled
929 so that we do less recursion and more
930 iteration. This makes the type check
932 - moved Moose::Meta::TypeConstraint::Union
935 * Moose::Meta::Method::Accessor
936 - created this from methods formerly found in
937 Moose::Meta::Attribute
939 * Moose::Meta::Role::Method
940 - moved this from Moose::Meta::Role
942 * Moose::Meta::Method::Overriden
943 - moved this from Moose::Meta::Class
945 * Moose::Meta::TypeConstraint::Union
946 - moved this from Moose::Meta::TypeConstraint
948 0.14 Mon. Oct. 9, 2006
950 * Moose::Meta::Attribute
951 - fixed lazy attributes which were not getting
952 checked with the type constraint (thanks ashley)
953 - added tests for this
954 - removed the over-enthusiastic DWIMery of the
955 automatic ArrayRef and HashRef defaults, it
956 broke predicates in an ugly way.
957 - removed tests for this
959 0.13 Sat. Sept. 30, 2006
961 This version of Moose *must* have Class::MOP 0.35 in order
962 to work correctly. A number of small internal tweaks have
963 been made in order to be compatible with that release.
966 - Removed the use of UNIVERSAL::require to be a better
967 symbol table citizen and remove a dependency
968 (thanks Adam Kennedy)
970 **~~ removed experimental & undocumented feature ~~**
971 - commented out the 'method' and 'self' keywords, see the
972 comments for more info.
975 - added a FAQ and WTF files to document frequently
976 asked questions and common problems
978 * Moose::Util::TypeConstraints
979 - added GlobRef and FileHandle type constraint
980 - added tests for this
982 * Moose::Meta::Attribute
983 - if your attribute 'isa' ArrayRef of HashRef, and you have
984 not explicitly set a default, then make the default DWIM.
985 This will also work for subtypes of ArrayRef and HashRef
987 - you can now auto-deref subtypes of ArrayRef or HashRef too.
988 - new test added for this (thanks to ashley)
991 - added basic support for runtime role composition
992 but this is still *highly experimental*, so feedback
993 is much appreciated :)
994 - added tests for this
996 * Moose::Meta::TypeConstraint
997 - the type constraint now handles the coercion process
998 through delegation, this is to support the coercion
1001 * Moose::Meta::TypeConstraint::Union
1002 - it is now possible for coercions to be performed
1004 - added tests for this (thanks to konobi)
1006 * Moose::Meta::TypeCoercion
1007 - properly capturing error when type constraint
1011 - Scalar::Util 1.18 is bad on Win32, so temporarily
1012 only require version 1.17 for Win32 and cygwin.
1013 (thanks Adam Kennedy)
1015 0.12 Sat. Sept. 1, 2006
1017 - Recipe5 (subtypes & coercion) has been written
1020 - fixed "bad meta" error message to be more descriptive
1021 - fixed &unimport to not remove the &inner and &super
1022 keywords because we need to localize them.
1023 - fixed number of spelling/grammer issues, thanks Theory :)
1025 **~~ experimental & undocumented feature ~~**
1026 - added the method and self keywords, they are basically
1027 just sugar, and they may not stay around.
1030 - added &dump method to easily Data::Dumper
1033 * Moose::Meta::TypeConstraint
1034 - added the &is_a_type_of method to check both the current
1035 and the subtype of a method (similar to &isa with classes)
1038 - this is now a subclass of Class::MOP::Module, and no longer
1039 creates the _role_meta ugliness of before.
1040 - fixed tests to reflect this change
1042 0.11 Wed. July 12, 2006
1044 - added an &unimport method to remove all the keywords
1045 that Moose will import, simply add 'no Moose' to the
1046 bottom of your class file.
1049 - fixed some test failures caused by a forgotten test
1052 0.10 Thurs. July 6, 2006
1054 - improved error message when loading modules so
1055 it is less confusing when you load a role.
1056 - added &calculate_all_roles method to
1057 Moose::Meta::Class and Moose::Meta::Role
1060 This module has been tested against Class::MOP 0.30
1061 but it does not yet utilize the optimizations
1062 it makes available. Stay tuned for that ;)
1064 0.09_03 Fri. June 23, 2006
1065 ++ DEVELOPER RELEASE ++
1067 - 'use strict' and 'use warnings' are no longer
1068 needed in Moose classes, Moose itself will
1069 turn them on for you.
1070 - added tests for this
1071 - moved code from exported subs to private methods
1072 in Moose::Meta::Class
1075 - as with Moose, strict and warnings are
1076 automatically turned on for you.
1077 - added tests for this
1080 - now handles an edge case for override errors
1081 - added tests for this
1082 - added some more edge case tests
1084 0.09_02 Tues. May 16, 2006
1085 ++ DEVELOPER RELEASE ++
1087 - added prototypes to the exported subs
1091 - added prototypes to the exported subs
1094 * Moose::Util::TypeConstraints
1095 - cleaned up prototypes for the subs
1098 0.09_01 Fri. May 12, 2006
1099 ++ DEVELOPER RELEASE ++
1100 - This release works in combination with
1101 Class::MOP 0.29_01, it is a developer
1102 release because it uses the a new
1103 instance sub-protocol and a fairly
1104 complete Role implementation. It has
1105 not yet been optimized, so it slower
1106 the the previous CPAN version. This
1107 release also lacks good updated docs,
1108 the official release will have updated docs.
1111 - refactored the keyword exports
1112 - 'with' now checks Role validaity and
1113 accepts more than one Role at a time
1114 - 'extends' makes metaclass adjustments as
1115 needed to ensure metaclass compatability
1118 - refactored the keyword exports
1119 - 'with' now checks Role validaity and
1120 accepts more than one Role at a time
1122 * Moose::Util::TypeConstraints
1123 - added the 'enum' keyword for simple
1124 string enumerations which can be used as
1126 - see example of usage in t/202_example.t
1129 - more careful checking of params to new()
1132 - much work done on the role composition
1133 - many new tests for conflict detection
1134 and composition edge cases
1135 - not enough documentation, I suggest
1136 looking at the tests
1138 * Moose::Meta::Instance
1139 - added new Instance metaclass to support
1140 the new Class::MOP instance protocol
1142 * Moose::Meta::Class
1143 - some small changes to support the new
1145 - some small additions to support Roles
1147 * Moose::Meta::Attribute
1148 - some improvements to the accessor generation code
1150 - some small changes to support the new
1152 - (still somewhat) experimental delegation support
1153 with the 'handles' option
1154 - added several tests for this
1155 - no docs for this yet
1157 0.05 Thurs. April 27, 2006
1159 - keywords are now exported with Sub::Exporter
1160 thanks to chansen for this commit
1161 - has keyword now takes a 'metaclass' option
1162 to support custom attribute meta-classes
1163 on a per-attribute basis
1164 - added tests for this
1165 - the 'has' keyword not accepts inherited slot
1166 specifications (has '+foo'). This is still an
1167 experimental feature and probably not finished
1168 see t/038_attribute_inherited_slot_specs.t for
1169 more details, or ask about it on #moose
1170 - added tests for this
1173 - keywords are now exported with Sub::Exporter
1175 * Moose::Utils::TypeConstraints
1176 - reorganized the type constraint hierarchy, thanks
1177 to nothingmuch and chansen for his help and advice
1179 - added some tests for this
1180 - keywords are now exported with Sub::Exporter
1181 thanks to chansen for this commit
1183 * Moose::Meta::Class
1184 - due to changes in Class::MOP, we had to change
1185 construct_instance (for the better)
1187 * Moose::Meta::Attribute
1188 - due to changes in Class::MOP, we had to add the
1189 initialize_instance_slot method (it's a good thing)
1191 * Moose::Meta::TypeConstraint
1192 - added type constraint unions
1193 - added tests for this
1194 - added the is_subtype_of predicate method
1195 - added tests for this
1197 0.04 Sun. April 16th, 2006
1199 - Roles can now consume other roles
1200 - added tests for this
1201 - Roles can specify required methods now with
1202 the requires() keyword
1203 - added tests for this
1206 - ripped out much of it's guts ,.. much cleaner now
1207 - added required methods and correct handling of
1208 them in apply() for both classes and roles
1209 - added tests for this
1210 - no longer adds a does() method to consuming classes
1211 it relys on the one in Moose::Object
1212 - added roles attribute and some methods to support
1213 roles consuming roles
1215 * Moose::Meta::Attribute
1216 - added support for triggers on attributes
1217 - added tests for this
1218 - added support for does option on an attribute
1219 - added tests for this
1221 * Moose::Meta::Class
1222 - added support for attribute triggers in the
1224 - added tests for this
1227 - Moose no longer creates a subtype for your class
1228 if a subtype of the same name already exists, this
1229 should DWIM in 99.9999% of all cases
1231 * Moose::Util::TypeConstraints
1232 - fixed bug where incorrect subtype conflicts were
1234 - added test for this
1237 - this class can now be extended with 'use base' if
1238 you need it, it properly loads the metaclass class now
1239 - added test for this
1241 0.03_02 Wed. April 12, 2006
1243 - you must now explictly use Moose::Util::TypeConstraints
1244 it no longer gets exported for you automatically
1247 - new() now accepts hash-refs as well as key/value lists
1248 - added does() method to check for Roles
1249 - added tests for this
1251 * Moose::Meta::Class
1252 - added roles attribute along with the add_role() and
1254 - added tests for this
1257 - now adds a does() method to consuming classes
1258 which tests the class's hierarchy for roles
1259 - added tests for this
1261 0.03_01 Mon. April 10, 2006
1263 - added new Role recipe (no content yet, only code)
1266 - added 'with' keyword for Role support
1267 - added test and docs for this
1268 - fixed subtype quoting bug
1269 - added test for this
1273 - added test and docs
1275 * Moose::Util::TypeConstraints
1276 - added the message keyword to add custom
1277 error messages to type constraints
1280 - the meta role to support Moose::Role
1281 - added tests and docs
1283 * Moose::Meta::Class
1284 - moved a number of things from Moose.pm
1285 to here, they should have been here
1288 * Moose::Meta::Attribute
1289 - moved the attribute option macros here
1290 instead of putting them in Moose.pm
1292 * Moose::Meta::TypeConstraint
1293 - added the message attributes and the
1295 - added tests and docs for this
1297 0.03 Thurs. March 30, 2006
1299 - added the Moose::Cookbook with 5 recipes,
1300 describing all the stuff Moose can do.
1303 - fixed an issue with &extends super class loading
1304 it now captures errors and deals with inline
1305 packages correctly (bug found by mst, solution
1307 - added super/override & inner/augment features
1308 - added tests and docs for these
1311 - BUILDALL now takes a reference of the %params
1312 that are passed to &new, and passes that to
1315 * Moose::Util::TypeConstraints
1316 - Type constraints now survive runtime reloading
1317 - added test for this
1319 * Moose::Meta::Class
1320 - fixed the way attribute defaults are handled
1321 during instance construction (bug found by chansen)
1323 * Moose::Meta::Attribute
1324 - read-only attributes now actually enforce their
1325 read-only-ness (this corrected in Class::MOP as
1328 0.02 Tues. March 21, 2006
1330 - many more tests, fixing some bugs and
1332 - &extends now loads the base module with
1334 - added UNIVERSAL::require to the
1337 - each new Moose class will also create
1338 and register a subtype of Object which
1339 correspond to the new Moose class.
1340 - the 'isa' option in &has now only
1341 accepts strings, and will DWIM in
1344 * Moose::Util::TypeConstraints
1345 - added type coercion features
1346 - added tests for this
1347 - added support for this in attributes
1348 and instance construction
1350 - type construction no longer creates a
1351 function, it registers the type instead.
1352 - added several functions to get the
1356 - BUILDALL and DEMOLISHALL were broken
1357 because of a mis-named hash key, Whoops :)
1359 * Moose::Meta::Attribute
1360 - adding support for coercion in the
1361 autogenerated accessors
1363 * Moose::Meta::Class
1364 - adding support for coercion in the
1365 instance construction
1367 * Moose::Meta::TypeConstraint
1368 * Moose::Meta::TypeCoercion
1369 - type constraints and coercions are now
1370 full fledges meta-objects
1372 0.01 Wed. March 15, 2006
1373 - Moooooooooooooooooose!!!