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
15 - before/around/after method modifiers now
16 support regexp matching of names
17 (thanks to Takatoshi Kitano)
18 - tests added for this
19 - NOTE: this only works for classes, it
20 is currently not supported in roles,
21 but, ... patches welcome
24 - added same 'add_package_symbol' fix as in
28 - does_role now handles non-Moose classes
30 - added tests for this
31 - added the 'add_method_modifier' function
32 (thanks to Takatoshi Kitano)
34 * Moose::Util::TypeConstraints
35 - subtypes of parameterizable types now are
36 themselves parameterizable types
38 * Moose::Meta::Method::Constructor
39 - fixed bug where trigger was not being
40 called by the inlined immutable
42 - added test for this (thanks to Caelum)
44 * Moose::Meta::Role::Application::ToInstance
45 - now uses the metaclass of the instance
46 (if possible) to create the anon-class
47 (thanks Jonathan Rockway)
50 - fixed hash-ordering test bug that was
51 causing occasional cpantester failures
53 0.44 Sat. May 10, 2008
55 - made make_immutable warning cluck to
56 show where the error is (thanks mst)
59 - BUILDALL and DEMOLISHALL now call
60 ->body when looping through the
61 methods, to avoid the overloaded
63 - fixed issue where DEMOLISHALL was
64 eating the $@ values, and so not
65 working correctly, it still kind of
66 eats them, but so does vanilla perl
67 - added tests for this
69 * Moose::Cookbook::Recipe7
70 - added new recipe for immutable
71 functionality (thanks Dave Rolsky)
73 * Moose::Cookbook::Recipe9
74 - added new recipe for builder and
75 lazy_build (thanks Dave Rolsky)
77 * Moose::Cookbook::Recipe11
78 - added new recipe for method aliasing
79 and exclusion with Roles (thanks Dave Rolsky)
82 - fixed Win32 test failure (thanks spicyjack)
84 ~ removed Build.PL and Module::Build compat
85 since Module::Install has done that.
87 0.43 Wed. April, 30, 2008
89 drink more coffee before
90 doing release engineering
92 - whoops, forgot to do the smolder tests,
93 and we broke some of the custom meta-attr
94 modules. This fixes that.
96 0.42 Mon. April 28, 2008
97 - some bad tests slipped by, nothing else
98 changed in this release (cpantesters++)
100 - upped the Class::MOP dependency to 0.55
101 since we have tests which need the C3
104 0.41 Mon. April 28, 2008
105 ~~ numerous documentation updates ~~
107 - Changed all usage of die to Carp::croak for better
108 error reporting (initial patch by Tod Hagan)
111 - the make_immutable keyword is now deprecated, don't
112 use it in any new code and please fix your old code
113 as well. There will be 2 releases, and then it will
119 - refactored the way inner and super work to avoid
120 any method/@ISA cache penalty (nothingmuch)
123 - fixing &new_object to make sure trigger gets the
124 coerced value (spotted by Charles Alderman on the
126 - added test for this
128 * Moose::Meta::Method::Constructor
129 - immutable classes which had non-lazy attributes were calling
130 the default generating sub twice in the constructor. (bug
131 found by Jesse Luehrs, fixed by Dave Rolsky)
132 - added tests for this (Dave Rolsky)
133 - fix typo in initialize_body method (nothingmuch)
135 * Moose::Meta::Method::Destructor
136 - fix typo in initialize_body method (nothingmuch)
138 * Moose::Meta::Method::Overriden
139 Moose::Meta::Method::Augmented
140 - moved the logic for these into their own
141 classes (nothingmuch)
143 * Moose::Meta::Attribute
144 - inherited attributes may now be extended without
145 restriction on the type ('isa', 'does') (Sartak)
146 - added tests for this (Sartak)
147 - when an attribute property is malformed (such as lazy without
148 a default), give the name of the attribute in the error
150 - added the &applied_traits and &has_applied_traits methods
151 to allow introspection of traits
152 - added tests for this
153 - moved 'trait' and 'metaclass' argument handling to here from
155 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
156 '+foo' syntax) (nothingmuch)
157 - added tests for this (t0m)
160 - localize $@ inside DEMOLISHALL to avoid it
161 eating $@ (found by Ernesto)
162 - added test for this (thanks to Ernesto)
164 * Moose::Util::TypeConstraints
165 - &find_type_constraint now DWIMs when given an
166 type constraint object or name (nothingmuch)
167 - &find_or_create_type_constraint superseded with a number of more
169 - find_or_create_{isa,does}_type_constraint
170 - find_or_parse_type_constraint
172 * Moose::Meta::TypeConstraint
173 Moose::Meta::TypeConstraint::Class
174 Moose::Meta::TypeConstraint::Role
175 Moose::Meta::TypeConstraint::Enum
176 Moose::Meta::TypeConstraint::Union
177 Moose::Meta::TypeConstraint::Parameterized
178 - added the &equals method for comparing two type
179 constraints (nothingmuch)
180 - added tests for this (nothingmuch)
182 * Moose::Meta::TypeConstraint
183 - add the &parents method, which is just an alias to &parent.
184 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
186 * Moose::Meta::TypeConstraint::Class
187 - added the class attribute for introspection purposes
189 - added tests for this
191 * Moose::Meta::TypeConstraint::Enum
192 Moose::Meta::TypeConstraint::Role
193 - broke these out into their own classes (nothingmuch)
195 * Moose::Cookbook::Recipe*
196 - fixed references to test file locations in the POD
197 and updated up some text for new Moose features
201 - Added &resolve_metaclass_alias, a helper function for finding an actual
202 class for a short name (e.g. in the traits list)
204 0.40 Fri. March 14, 2008
205 - I hate Pod::Coverage
207 0.39 Fri. March 14, 2008
209 - documenting the use of '+name' with attributes
210 that come from recently composed roles. It makes
211 sense, people are using it, and so why not just
212 officially support it.
213 - fixing the 'extends' keyword so that it will not
214 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
217 - added the perl -Moose=+Class::Name feature to allow
218 monkeypatching of classes in one liners
221 - fixing the 'apply_all_roles' keyword so that it will not
222 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
225 - added ->create method which now supports roles (thanks to jrockway)
226 - added tests for this
227 - added ->create_anon_class which now supports roles and caching of
228 the results (thanks to jrockway)
229 - added tests for this
230 - made ->does_role a little more forgiving when it is
231 checking a Class::MOP era metaclasses.
233 * Moose::Meta::Role::Application::ToInstance
234 - it is now possible to pass extra params to be used when
235 a role is applied to an the instance (rebless_params)
236 - added tests for this
238 * Moose::Util::TypeConstraints
239 - class_type now accepts an optional second argument for a
240 custom message. POD anotated accordingly (groditi)
241 - added tests for this
242 - it is now possible to make anon-enums by passing 'enum' an
243 ARRAY ref instead of the $name => @values. Everything else
245 - added tests for this
248 - making test for using '+name' on attributes consumed
249 from a role, it works and makes sense too.
251 * Moose::Meta::Attribute
252 - fix handles so that it doesn't return nothing
253 when the method cannot be found, not sure why
254 it ever did this originally, this means we now
255 have slightly better support for AUTOLOADed
257 - added more delegation tests
258 - adding ->does method to this so as to better
259 support traits and their introspection.
260 - added tests for this
263 - localizing the Data::Dumper configurations so
264 that it does not pollute others (RT #33509)
265 - made ->does a little more forgiving when it is
266 passed Class::MOP era metaclasses.
268 0.38 Fri. Feb. 15, 2008
269 * Moose::Meta::Attribute
270 - fixed initializer to correctly do
271 type checking and coercion in the
273 - added tests for this
276 - fixed some finicky tests (thanks to konobi)
278 0.37 Thurs. Feb. 14, 2008
280 - fixed some details in Moose::init_meta
281 and its superclass handling (thanks thepler)
282 - added tests for this (thanks thepler)
283 - 'has' now dies if you don't pass in name
285 - added the 'make_immutable' keyword as a shortcut
289 Moose::Meta::Method::Constructor
290 Moose::Meta::Attribute
291 - making (init_arg => undef) work here too
292 (thanks to nothingmuch)
294 * Moose::Meta::Attribute
295 Moose::Meta::Method::Constructor
296 Moose::Meta::Method::Accessor
297 - make lazy attributes respect attr initializers (rjbs)
298 - added tests for this
300 * Moose::Util::TypeConstraints
301 Moose::Util::TypeConstraints::OptimizedConstraints
302 Moose::Meta::TypeConstraints
303 Moose::Meta::Attribute
304 Moose::Meta::Method::Constructor
305 Moose::Meta::Method::Accessor
306 - making type errors use the
307 assigned message (thanks to Sartak)
308 - added tests for this
310 * Moose::Meta::Method::Destructor
311 - making sure DESTROY gets inlined properly
312 with successive DEMOLISH calls (thanks to manito)
314 * Moose::Meta::Attribute
315 Moose::Meta::Method::Accessor
316 - fixed handling of undef with type constraints
318 - added tests for this
321 - added &get_all_init_args and &get_all_attribute_values
322 (thanks to Sartak and nothingmuch)
324 0.36 Sat. Jan. 26, 2008
326 Moose::Meta::Attribute
327 - role type tests now support when roles are
328 applied to non-Moose classes (found by ash)
329 - added tests for this (thanks to ash)
330 - couple extra tests to boost code coverage
332 * Moose::Meta::Method::Constructor
333 - improved fix for handling Class::MOP attributes
334 - added test for this
337 - handled the add_attribute($attribute_meta_object)
339 - added test for this
341 0.35 Tues. Jan. 22, 2008
342 * Moose::Meta::Method::Constructor
343 - fix to make sure even Class::MOP attributes
344 are handled correctly (Thanks to Dave Rolsky)
345 - added test for this (also Dave Rolsky)
348 - improved error message on _apply_all_roles,
349 you should now use Moose::Util::apply_all_roles
350 and you shouldnt have been using a _ prefixed
351 method in the first place ;)
353 0.34 Mon. Jan. 21, 2008
354 ~~~ more misc. doc. fixes ~~~
355 ~~ updated copyright dates ~~
357 Moose is now a postmodern object system :)
358 - (see the POD for details)
360 * <<Role System Refactoring>>
361 - this release contains a major reworking and
362 cleanup of the role system
363 - 100% backwards compat.
364 - Role application now restructured into seperate
365 classes based on type of applicants
366 - Role summation (combining of more than one role)
367 is much cleaner and anon-classes are no longer
369 - new Composite role metaclass
370 - runtime application of roles to instances
371 is now more efficient and re-uses generated
372 classes when applicable
374 * <<New Role composition features>>
375 - methods can now be excluded from a given role
377 - methods can now be aliased to another name (and
378 still retain the original as well)
380 * Moose::Util::TypeConstraints::OptimizedConstraints
381 - added this module (see above)
384 - fixed the &_process_attribute method to be called
385 by &add_attribute, so that the API is now correct
387 * Moose::Meta::Method::Accessor
388 - fixed bug when passing a list of values to
389 an accessor would get (incorrectly) ignored.
390 Thanks to Sartak for finding this ;)
391 - added tests for this (Sartak again)
393 * Moose::Meta::Method::Accessor
394 Moose::Meta::Method::Constructor
395 Moose::Meta::Attribute
396 Moose::Meta::TypeConstraint
397 Moose::Meta::TypeCoercion
398 - lots of cleanup of such things as:
400 - type constraint handling
401 - error handling/messages
402 (thanks to nothingmuch)
404 * Moose::Meta::TypeConstraint::Parameterizable
405 - added this module to support the refactor
406 in Moose::Meta::TypeConstraint::Parameterized
408 * Moose::Meta::TypeConstraint::Parameterized
409 - refactored how these types are handled so they
410 are more generic and not confined to ArrayRef
414 - shortened some file names for better VMS support (RT #32381)
416 0.33 Fri. Dec. 14, 2007
417 !! Moose now loads 2 x faster !!
418 !! with new Class::MOP 0.49 !!
420 ++ new oose.pm module to make command line
421 Moose-ness easier (see POD docs for more)
425 - several tweaks to take advantage of the
426 new method map caching in Class::MOP
428 * Moose::Meta::TypeConstraint::Parameterized
429 - allow subtypes of ArrayRef and HashRef to
430 be used as a container (sartak)
431 - added tests for this
432 - basic support for coercion to ArrayRef and
433 HashRef for containers (sartak)
434 - added tests for this
436 * Moose::Meta::TypeCoercion
437 - coercions will now create subtypes as needed
438 so you can now add coercions to parameterized
439 types without having to explictly define them
440 - added tests for this
442 * Moose::Meta::Method::Accessor
443 - allow subclasses to decide whether we need
444 to copy the value into a new variable (sartak)
446 0.32 Tues. Dec. 4, 2007
447 * Moose::Util::TypeConstraints
448 - fixing how subtype aliases of unions work
449 they should inherit the parent's coercion
450 - added tests for this
451 - you can now define multiple coercions on
452 a single type at different times instead of
453 having to do it all in one place
454 - added tests for this
456 * Moose::Meta::TypeConstraint
457 - there is now a default constraint of sub { 1 }
458 instead of Moose::Util::TypeConstraints setting
461 * Moose::Meta::TypeCoercion
462 * Moose::Meta::TypeCoercion::Union
463 - added the &has_coercion_for_type and
464 &add_type_coercions methods to support the
465 new features above (although you cannot add
466 more type coercions for Union types)
468 0.31 Mon. Nov. 26, 2007
469 * Moose::Meta::Attribute
470 - made the +attr syntax handle extending types with
471 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
472 now works if the original foo is an ArrayRef.
473 - added tests for this.
474 - delegation now works even if the attribute does not
475 have a reader method using the get_read_method_ref
476 method from Class::MOP::Attribute.
477 - added tests for this
478 - added docs for this
480 * Moose::Util::TypeConstraints
481 - passing no "additional attribute info" to
482 &find_or_create_type_constraint will no longer
483 attempt to create an __ANON__ type for you,
484 instead it will just return undef.
485 - added docs for this
487 0.30 Fri. Nov. 23, 2007
488 * Moose::Meta::Method::Constructor
489 -builder related bug in inlined constructor. (groditi)
491 * Moose::Meta::Method::Accessor
492 - genereate unnecessary calls to predicates and refactor
493 code generation for runtime speed (groditi)
495 * Moose::Util::TypeConstraints
496 - fix ClassName constraint to introspect symbol table (mst)
497 - added more tests for this (mst)
498 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
500 - added tests for this
503 - adding the link to Recipie 11 (written by Sartak)
504 - adding test for SYNOPSIS code
507 - New tests for builder bug. Upon instantiation, if an
508 attribute had a builder, no value and was not lazy the
509 builder default was not getting run, oops. (groditi)
511 0.29 Tues. Nov. 13, 2007
512 * Moose::Meta::Attribute
513 - Fix error message on missing builder method (groditi)
515 * Moose::Meta::Method::Accessor
516 - Fix error message on missing builder method (groditi)
519 - Add test to check for the correct error message when
520 builder method is missing (groditi)
522 0.28 Tues. Nov. 13, 2007
523 - 0.27 packaged incorrectly (groditi)
525 0.27 Tues. Nov. 13, 2007
526 * Moose::Meta::Attribute
527 - Added support for the new builder option (groditi)
528 - Added support for lazy_build option (groditi)
529 - Changed slot initialization for predicate changes (groditi)
531 * Moose::Meta::Method::Accessor
532 - Added support for lazy_build option (groditi)
533 - Fix inline methods to work with corrected predicate
536 * Moose::Meta::Method::Constructor
537 - Added support for lazy_build option (groditi)
540 - tests for builder and lazy_build (groditi)
542 * fixing some misc. bits in the docs that
543 got mentioned on CPAN Forum & perlmonks
546 - fixed how required methods are handled
547 when they encounter overriden or modified
548 methods from a class (thanks to confound).
549 - added tests for this
551 * Moose::Util::TypeConstraint
552 - fixed the type notation parser so that
553 the | always creates a union and so is
554 no longer a valid type char (thanks to
555 konobi, mugwump and #moose for working
557 - added more tests for this
559 0.26 Thurs. Sept. 27, 2007
562 * Parameterized Types
563 We now support parameterized collection types, such as:
564 ArrayRef[Int] # array or integers
565 HashRef[Object] # a hash with object values
566 They can also be nested:
567 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
568 And work with the type unions as well:
569 ArrayRef[Int | Str] # array of integers of strings
571 * Better Framework Extendability
572 Moose.pm is now "extendable" such that it is now much
573 easier to extend the framework and add your own keywords
574 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
575 section of the Moose.pm docs.
578 In an effort to begin documenting some of the various
579 details of Moose as well as some common idioms, we have
580 created Moose::Cookbook::Snacks as a place to find
581 small (easily digestable) nuggets of Moose code.
584 ~ Several doc updates/cleanup thanks to castaway ~
586 - converted build system to use Module::Install instead of
587 Module::Build (thanks to jrockway)
590 - added all the meta classes to the immutable list and
591 set it to inline the accessors
592 - fix import to allow Sub::Exporter like { into => }
593 and { into_level => } (perigrin)
594 - exposed and documented init_meta() to allow better
595 embedding and extending of Moose (perigrin)
598 - complete re-organization of the test suite
599 - added some new tests as well
600 - finally re-enabled the Moose::POOP test since
601 the new version of DBM::Deep now works again
605 - fixed very odd and very nasty recursion bug with
607 - added tests for this (eilara)
609 * Moose::Meta::Attribute
610 Moose::Meta::Method::Constructor
611 Moose::Meta::Method::Accessor
612 - fixed issue with overload::Overloaded getting called
613 on non-blessed items. (RT #29269)
614 - added tests for this
616 * Moose::Meta::Method::Accessor
617 - fixed issue with generated accessor code making
618 assumptions about hash based classes (thanks to dexter)
620 * Moose::Coookbook::Snacks
621 - these are bits of documentation, not quite as big as
622 Recipes but which have no clear place in the module docs.
623 So they are Snacks! (horray for castaway++)
625 * Moose::Cookbook::Recipe4
626 - updated it to use the new ArrayRef[MyType] construct
627 - updated the accompanying test as well
629 +++ Major Refactor of the Type Constraint system +++
630 +++ with new features added as well +++
632 * Moose::Util::TypeConstraint
633 - no longer uses package variable to keep track of
634 the type constraints, now uses the an instance of
635 Moose::Meta::TypeConstraint::Registry to do it
636 - added more sophisticated type notation parsing
638 - added tests for this
640 * Moose::Meta::TypeConstraint
641 - some minor adjustments to make subclassing easier
642 - added the package_defined_in attribute so that we
643 can track where the type constraints are created
645 * Moose::Meta::TypeConstraint::Union
646 - this is now been refactored to be a subclass of
647 Moose::Meta::TypeConstraint
649 * Moose::Meta::TypeCoercion::Union
650 - this has been added to service the newly refactored
651 Moose::Meta::TypeConstraint::Union and is itself
652 a subclass of Moose::Meta::TypeCoercion
654 * Moose::Meta::TypeConstraint::Parameterized
655 - added this module (taken from MooseX::AttributeHelpers)
656 to help construct nested collection types
657 - added tests for this
659 * Moose::Meta::TypeConstraint::Registry
660 - added this class to keep track of type constraints
662 0.25 Mon. Aug. 13, 2007
664 - Documentation update to reference Moose::Util::TypeConstraints
665 under 'isa' in 'has' for how to define a new type
668 * Moose::Meta::Attribute
669 - required attributes now will no longer accept undef
670 from the constructor, even if there is a default and lazy
671 - added tests for this
672 - default subroutines must return a value which passes the
674 - added tests for this
676 * Moose::Meta::Attribute
677 * Moose::Meta::Method::Constructor
678 * Moose::Meta::Method::Accessor
679 - type-constraint tests now handle overloaded objects correctly
681 - added tests for this (thanks to EvanCarroll)
683 * Moose::Meta::TypeConstraint::Union
684 - added (has_)hand_optimized_constraint to this class so that
685 it behaves as the regular Moose::Meta::TypeConstraint does.
688 - large refactoring of this code
689 - added several more tests
690 - tests for subtle conflict resolition issues
691 added, but not currently running
694 * Moose::Cookbook::Recipe7
695 - added new recipe for augment/inner functionality
697 - added test for this
700 - a formal definition of roles (still in progress)
703 - utilities for easier working with Moose classes
704 - added tests for these
707 - This contains Moose specific test functions
708 - added tests for these
710 0.24 Tues. July 3, 2007
711 ~ Some doc updates/cleanup ~
713 * Moose::Meta::Attribute
714 - added support for roles to be given as parameters
715 to the 'handles' option.
716 - added tests and docs for this
717 - the has '+foo' attribute form now accepts changes to
718 the lazy option, and the addition of a handles option
719 (but not changing the handles option)
720 - added tests and docs for this
723 - required methods are now fetched using find_method_by_name
724 so that required methods can come from superclasses
725 - adjusted tests for this
727 0.23 Mon. June 18, 2007
728 * Moose::Meta::Method::Constructor
729 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
731 - Modify make_immutable to work with the new Class::MOP immutable
732 mechanism + POD + very basic test (groditi)
733 * Moose::Meta::Attribute
734 - Fix handles to use goto() so that caller() comes out properly on
735 the other side (perigrin)
737 0.22 Thurs. May 31, 2007
738 * Moose::Util::TypeConstraints
739 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
740 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
741 prototypes for functions
742 - added the ClassName type constraint, this checks for strings
743 which will respond true to ->isa(UNIVERSAL).
744 - added tests and docs for this
745 - subtyping just in name now works correctly by making the
746 default for where be { 1 }
747 - added test for this
749 * Moose::Meta::Method::Accessor
750 - coerce and lazy now work together correctly, thanks to
751 merlyn for finding this bug
752 - tests added for this
753 - fix reader presedence bug in Moose::Meta::Attribute + tests
756 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
757 a HASH-ref and missed. This produces better error messages then
758 having it die cause undef is not a HASH.
759 - added tests for this
761 0.21 Thursday, May 2nd, 2007
763 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
764 - modified unimport to remove super and inner along with the rest
765 - altered unimport tests to handle this
768 - altered super export to populate SUPER_SLOT
771 - altered augment and override modifier application to use *_SLOT
772 - modified tests for these to unimport one test class each to test
775 - fixed issue where custom attribute metaclasses
776 where not handled correctly in roles
777 - added tests for this
780 - fixed issue where extending metaclasses with
781 roles would blow up. Thanks to Aankhen`` for
782 finding this insidious error, and it's solution.
784 ~~ lots of spelling and grammer fixes in the docs,
785 many many thanks to rlb3 and Aankhen for these :)
787 0.20 Friday, April 6th, 2007
788 >> I messed up the SKIP logic in one test
789 so this release is just to fix that.
792 - 'has' now also accepts an ARRAY ref
793 to create multiple attrs (see docs)
794 (thanks to konobi for this)
795 - added tests and docs
797 0.19 Thurs. April 5th, 2007
798 ~~ More documentation updates ~~
800 * Moose::Util::TypeConstraints
801 - 'type' now supports messages as well
802 thanks to phaylon for finding this
803 - added tests for this
804 - added &list_all_type_constraints and
805 &list_all_builtin_type_constraints
806 functions to facilitate introspection.
808 * Moose::Meta::Attribute
809 - fixed regexp 'handles' declarations
810 to build the list of delegated methods
811 correctly (and not override important
812 things like &new) thanks to ashleyb
814 - added tests and docs for this
815 - added the 'documentation' attributes
816 so that you can actually document your
817 attributes and inspect them through the
819 - added tests and docs for this
822 - when loading custom attribute metaclasses
823 it will first look in for the class in the
824 Moose::Meta::Attribute::Custom::$name, and
825 then default to just loading $name.
826 - added tests and docs for this
828 * Moose::Meta::TypeConstraint
829 - type constraints now stringify to their names.
830 - added test for this
833 - added tests to assure we work with Module::Refresh
834 - added stricter test skip logic in the Moose POOP
835 test, ask Rob Kinyon why.
836 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
838 0.18 Sat. March 10, 2007
839 ~~ Many, many documentation updates ~~
842 - We now use Class::MOP::load_class to
844 - added tests to show types and subtypes
845 working with Declare::Constraints::Simple
846 and Test::Deep as constraint engines.
849 !! You must have Class::MOP 0.37_001 !!
850 !! for this developer release to work !!
852 This release was primarily adding the immutable
853 feature to Moose. An immutable class is one which
854 you promise not to alter. When you set the class
855 as immutable it will perform various bits of
856 memoization and inline certain part of the code
857 (constructors, destructors and accessors). This
858 minimizes (and in some cases totally eliminates)
859 one of Moose's biggest performance hits. This
860 feature is not on by default, and is 100% optional.
861 It has several configurable bits as well, so you
862 can pick and choose to your specific needs.
864 The changes involved in this were fairly wide and
865 highly specific, but 100% backwards compatible, so
866 I am not going to enumerate them here. If you are
867 truely interested in what was changed, please do
870 0.17 Tues. Nov. 14, 2006
871 * Moose::Meta::Method::Accessor
872 - bugfix for read-only accessors which
873 are have a type constraint and lazy.
874 Thanks to chansen for finding it.
876 0.16 Tues. Nov. 14, 2006
878 There are some speed improvements in this release,
879 but they are only the begining, so stay tuned.
882 - BUILDALL and DEMOLISHALL no longer get
883 called unless they actually need to be.
884 This gave us a signifigant speed boost
885 for the cases when there is no BUILD or
886 DEMOLISH method present.
888 * Moose::Util::TypeConstraints
889 * Moose::Meta::TypeConstraint
890 - added an 'optimize_as' option to the
891 type constraint, which allows for a
892 hand optimized version of the type
893 constraint to be used when possible.
894 - Any internally created type constraints
895 now provide an optimized version as well.
897 0.15 Sun. Nov. 5, 2006
899 This version of Moose *must* have Class::MOP 0.36 in order
900 to work correctly. A number of small internal tweaks have
901 been made in order to be compatible with that release.
903 * Moose::Util::TypeConstraints
904 - added &unimport so that you can clean out
905 your class namespace of these exported
909 - fixed minor issue which occasionally
910 comes up during global destruction
912 - moved Moose::Meta::Method::Overriden into
916 - moved Moose::Meta::Role::Method into
919 * Moose::Meta::Attribute
920 - changed how we do type checks so that
921 we reduce the overall cost, but still
924 - moved accessor generation methods to
925 Moose::Meta::Method::Accessor to
926 conform to the API changes from
929 * Moose::Meta::TypeConstraint
930 - changed how constraints are compiled
931 so that we do less recursion and more
932 iteration. This makes the type check
934 - moved Moose::Meta::TypeConstraint::Union
937 * Moose::Meta::Method::Accessor
938 - created this from methods formerly found in
939 Moose::Meta::Attribute
941 * Moose::Meta::Role::Method
942 - moved this from Moose::Meta::Role
944 * Moose::Meta::Method::Overriden
945 - moved this from Moose::Meta::Class
947 * Moose::Meta::TypeConstraint::Union
948 - moved this from Moose::Meta::TypeConstraint
950 0.14 Mon. Oct. 9, 2006
952 * Moose::Meta::Attribute
953 - fixed lazy attributes which were not getting
954 checked with the type constraint (thanks ashley)
955 - added tests for this
956 - removed the over-enthusiastic DWIMery of the
957 automatic ArrayRef and HashRef defaults, it
958 broke predicates in an ugly way.
959 - removed tests for this
961 0.13 Sat. Sept. 30, 2006
963 This version of Moose *must* have Class::MOP 0.35 in order
964 to work correctly. A number of small internal tweaks have
965 been made in order to be compatible with that release.
968 - Removed the use of UNIVERSAL::require to be a better
969 symbol table citizen and remove a dependency
970 (thanks Adam Kennedy)
972 **~~ removed experimental & undocumented feature ~~**
973 - commented out the 'method' and 'self' keywords, see the
974 comments for more info.
977 - added a FAQ and WTF files to document frequently
978 asked questions and common problems
980 * Moose::Util::TypeConstraints
981 - added GlobRef and FileHandle type constraint
982 - added tests for this
984 * Moose::Meta::Attribute
985 - if your attribute 'isa' ArrayRef of HashRef, and you have
986 not explicitly set a default, then make the default DWIM.
987 This will also work for subtypes of ArrayRef and HashRef
989 - you can now auto-deref subtypes of ArrayRef or HashRef too.
990 - new test added for this (thanks to ashley)
993 - added basic support for runtime role composition
994 but this is still *highly experimental*, so feedback
995 is much appreciated :)
996 - added tests for this
998 * Moose::Meta::TypeConstraint
999 - the type constraint now handles the coercion process
1000 through delegation, this is to support the coercion
1003 * Moose::Meta::TypeConstraint::Union
1004 - it is now possible for coercions to be performed
1006 - added tests for this (thanks to konobi)
1008 * Moose::Meta::TypeCoercion
1009 - properly capturing error when type constraint
1013 - Scalar::Util 1.18 is bad on Win32, so temporarily
1014 only require version 1.17 for Win32 and cygwin.
1015 (thanks Adam Kennedy)
1017 0.12 Sat. Sept. 1, 2006
1019 - Recipe5 (subtypes & coercion) has been written
1022 - fixed "bad meta" error message to be more descriptive
1023 - fixed &unimport to not remove the &inner and &super
1024 keywords because we need to localize them.
1025 - fixed number of spelling/grammer issues, thanks Theory :)
1027 **~~ experimental & undocumented feature ~~**
1028 - added the method and self keywords, they are basically
1029 just sugar, and they may not stay around.
1032 - added &dump method to easily Data::Dumper
1035 * Moose::Meta::TypeConstraint
1036 - added the &is_a_type_of method to check both the current
1037 and the subtype of a method (similar to &isa with classes)
1040 - this is now a subclass of Class::MOP::Module, and no longer
1041 creates the _role_meta ugliness of before.
1042 - fixed tests to reflect this change
1044 0.11 Wed. July 12, 2006
1046 - added an &unimport method to remove all the keywords
1047 that Moose will import, simply add 'no Moose' to the
1048 bottom of your class file.
1051 - fixed some test failures caused by a forgotten test
1054 0.10 Thurs. July 6, 2006
1056 - improved error message when loading modules so
1057 it is less confusing when you load a role.
1058 - added &calculate_all_roles method to
1059 Moose::Meta::Class and Moose::Meta::Role
1062 This module has been tested against Class::MOP 0.30
1063 but it does not yet utilize the optimizations
1064 it makes available. Stay tuned for that ;)
1066 0.09_03 Fri. June 23, 2006
1067 ++ DEVELOPER RELEASE ++
1069 - 'use strict' and 'use warnings' are no longer
1070 needed in Moose classes, Moose itself will
1071 turn them on for you.
1072 - added tests for this
1073 - moved code from exported subs to private methods
1074 in Moose::Meta::Class
1077 - as with Moose, strict and warnings are
1078 automatically turned on for you.
1079 - added tests for this
1082 - now handles an edge case for override errors
1083 - added tests for this
1084 - added some more edge case tests
1086 0.09_02 Tues. May 16, 2006
1087 ++ DEVELOPER RELEASE ++
1089 - added prototypes to the exported subs
1093 - added prototypes to the exported subs
1096 * Moose::Util::TypeConstraints
1097 - cleaned up prototypes for the subs
1100 0.09_01 Fri. May 12, 2006
1101 ++ DEVELOPER RELEASE ++
1102 - This release works in combination with
1103 Class::MOP 0.29_01, it is a developer
1104 release because it uses the a new
1105 instance sub-protocol and a fairly
1106 complete Role implementation. It has
1107 not yet been optimized, so it slower
1108 the the previous CPAN version. This
1109 release also lacks good updated docs,
1110 the official release will have updated docs.
1113 - refactored the keyword exports
1114 - 'with' now checks Role validaity and
1115 accepts more than one Role at a time
1116 - 'extends' makes metaclass adjustments as
1117 needed to ensure metaclass compatability
1120 - refactored the keyword exports
1121 - 'with' now checks Role validaity and
1122 accepts more than one Role at a time
1124 * Moose::Util::TypeConstraints
1125 - added the 'enum' keyword for simple
1126 string enumerations which can be used as
1128 - see example of usage in t/202_example.t
1131 - more careful checking of params to new()
1134 - much work done on the role composition
1135 - many new tests for conflict detection
1136 and composition edge cases
1137 - not enough documentation, I suggest
1138 looking at the tests
1140 * Moose::Meta::Instance
1141 - added new Instance metaclass to support
1142 the new Class::MOP instance protocol
1144 * Moose::Meta::Class
1145 - some small changes to support the new
1147 - some small additions to support Roles
1149 * Moose::Meta::Attribute
1150 - some improvements to the accessor generation code
1152 - some small changes to support the new
1154 - (still somewhat) experimental delegation support
1155 with the 'handles' option
1156 - added several tests for this
1157 - no docs for this yet
1159 0.05 Thurs. April 27, 2006
1161 - keywords are now exported with Sub::Exporter
1162 thanks to chansen for this commit
1163 - has keyword now takes a 'metaclass' option
1164 to support custom attribute meta-classes
1165 on a per-attribute basis
1166 - added tests for this
1167 - the 'has' keyword not accepts inherited slot
1168 specifications (has '+foo'). This is still an
1169 experimental feature and probably not finished
1170 see t/038_attribute_inherited_slot_specs.t for
1171 more details, or ask about it on #moose
1172 - added tests for this
1175 - keywords are now exported with Sub::Exporter
1177 * Moose::Utils::TypeConstraints
1178 - reorganized the type constraint hierarchy, thanks
1179 to nothingmuch and chansen for his help and advice
1181 - added some tests for this
1182 - keywords are now exported with Sub::Exporter
1183 thanks to chansen for this commit
1185 * Moose::Meta::Class
1186 - due to changes in Class::MOP, we had to change
1187 construct_instance (for the better)
1189 * Moose::Meta::Attribute
1190 - due to changes in Class::MOP, we had to add the
1191 initialize_instance_slot method (it's a good thing)
1193 * Moose::Meta::TypeConstraint
1194 - added type constraint unions
1195 - added tests for this
1196 - added the is_subtype_of predicate method
1197 - added tests for this
1199 0.04 Sun. April 16th, 2006
1201 - Roles can now consume other roles
1202 - added tests for this
1203 - Roles can specify required methods now with
1204 the requires() keyword
1205 - added tests for this
1208 - ripped out much of it's guts ,.. much cleaner now
1209 - added required methods and correct handling of
1210 them in apply() for both classes and roles
1211 - added tests for this
1212 - no longer adds a does() method to consuming classes
1213 it relys on the one in Moose::Object
1214 - added roles attribute and some methods to support
1215 roles consuming roles
1217 * Moose::Meta::Attribute
1218 - added support for triggers on attributes
1219 - added tests for this
1220 - added support for does option on an attribute
1221 - added tests for this
1223 * Moose::Meta::Class
1224 - added support for attribute triggers in the
1226 - added tests for this
1229 - Moose no longer creates a subtype for your class
1230 if a subtype of the same name already exists, this
1231 should DWIM in 99.9999% of all cases
1233 * Moose::Util::TypeConstraints
1234 - fixed bug where incorrect subtype conflicts were
1236 - added test for this
1239 - this class can now be extended with 'use base' if
1240 you need it, it properly loads the metaclass class now
1241 - added test for this
1243 0.03_02 Wed. April 12, 2006
1245 - you must now explictly use Moose::Util::TypeConstraints
1246 it no longer gets exported for you automatically
1249 - new() now accepts hash-refs as well as key/value lists
1250 - added does() method to check for Roles
1251 - added tests for this
1253 * Moose::Meta::Class
1254 - added roles attribute along with the add_role() and
1256 - added tests for this
1259 - now adds a does() method to consuming classes
1260 which tests the class's hierarchy for roles
1261 - added tests for this
1263 0.03_01 Mon. April 10, 2006
1265 - added new Role recipe (no content yet, only code)
1268 - added 'with' keyword for Role support
1269 - added test and docs for this
1270 - fixed subtype quoting bug
1271 - added test for this
1275 - added test and docs
1277 * Moose::Util::TypeConstraints
1278 - added the message keyword to add custom
1279 error messages to type constraints
1282 - the meta role to support Moose::Role
1283 - added tests and docs
1285 * Moose::Meta::Class
1286 - moved a number of things from Moose.pm
1287 to here, they should have been here
1290 * Moose::Meta::Attribute
1291 - moved the attribute option macros here
1292 instead of putting them in Moose.pm
1294 * Moose::Meta::TypeConstraint
1295 - added the message attributes and the
1297 - added tests and docs for this
1299 0.03 Thurs. March 30, 2006
1301 - added the Moose::Cookbook with 5 recipes,
1302 describing all the stuff Moose can do.
1305 - fixed an issue with &extends super class loading
1306 it now captures errors and deals with inline
1307 packages correctly (bug found by mst, solution
1309 - added super/override & inner/augment features
1310 - added tests and docs for these
1313 - BUILDALL now takes a reference of the %params
1314 that are passed to &new, and passes that to
1317 * Moose::Util::TypeConstraints
1318 - Type constraints now survive runtime reloading
1319 - added test for this
1321 * Moose::Meta::Class
1322 - fixed the way attribute defaults are handled
1323 during instance construction (bug found by chansen)
1325 * Moose::Meta::Attribute
1326 - read-only attributes now actually enforce their
1327 read-only-ness (this corrected in Class::MOP as
1330 0.02 Tues. March 21, 2006
1332 - many more tests, fixing some bugs and
1334 - &extends now loads the base module with
1336 - added UNIVERSAL::require to the
1339 - each new Moose class will also create
1340 and register a subtype of Object which
1341 correspond to the new Moose class.
1342 - the 'isa' option in &has now only
1343 accepts strings, and will DWIM in
1346 * Moose::Util::TypeConstraints
1347 - added type coercion features
1348 - added tests for this
1349 - added support for this in attributes
1350 and instance construction
1352 - type construction no longer creates a
1353 function, it registers the type instead.
1354 - added several functions to get the
1358 - BUILDALL and DEMOLISHALL were broken
1359 because of a mis-named hash key, Whoops :)
1361 * Moose::Meta::Attribute
1362 - adding support for coercion in the
1363 autogenerated accessors
1365 * Moose::Meta::Class
1366 - adding support for coercion in the
1367 instance construction
1369 * Moose::Meta::TypeConstraint
1370 * Moose::Meta::TypeCoercion
1371 - type constraints and coercions are now
1372 full fledges meta-objects
1374 0.01 Wed. March 15, 2006
1375 - Moooooooooooooooooose!!!