1 Revision history for Perl extension Moose
4 * Moose::Meta::Attribute
5 - fixed how the is => (ro|rw) works with
6 custom defined reader, writer and accessor
8 - added docs for this (TODO).
9 - added tests for this (Thanks to Penfold)
10 - added the custom attribute alias for regular
11 Moose attributes which is "Moose"
15 Moose::Meta::Attribute
17 Moose::Meta::Role::Composite
18 Moose::Util::TypeConstraints
21 0.48 Thurs. May 29, 2008
22 (early morning release engineering)--
24 - fixing the version in Moose::Meta::Method::Destructor
25 which was causing the indexer to choke
27 0.47 Thurs. May 29, 2008
28 (late night release engineering)--
30 - fixing the version is META.yml, no functional
31 changes in this release
33 0.46 Wed. May 28, 2008
34 !! This version now approx. 20-25% !!
35 !! faster with new Class::MOP 0.57 !!
38 - some optimizations of the &initialize method
39 since it is called so often by &meta
43 - now use the get_all_package_symbols from the
44 updated Class::MOP, test suite is now 10 seconds
47 * Moose::Meta::Method::Destructor
48 - is_needed can now also be called as a class
49 method for immutablization to check if the
50 destructor object even needs to be created
53 * Moose::Meta::Method::Destructor
54 Moose::Meta::Method::Constructor
55 - added more descriptive error message to help
56 keep people from wasting time tracking an error
57 that is easily fixed by upgrading.
59 0.45 Saturday, May 24, 2008
61 - Because of work in Class::MOP 0.56, all
62 XS based functionality is now optional
63 and a Pure Perl version is supplied
64 - the CLASS_MOP_NO_XS environment variable
65 can now be used to force non-XS versions
67 - several of the packages have been tweaked
68 to take care of this, mostly we added
69 support for the package_name and name
70 variables in all the Method metaclasses
71 - before/around/after method modifiers now
72 support regexp matching of names
73 (thanks to Takatoshi Kitano)
74 - tests added for this
75 - NOTE: this only works for classes, it
76 is currently not supported in roles,
77 but, ... patches welcome
78 - All usage of Carp::confess have been replaced
79 by Carp::croak in the "keyword" functions since
80 the stack trace is usually not helpful
83 - All usage of Carp::confess have been replaced
84 by Carp::croak in the "keyword" functions since
85 the stack trace is usually not helpful
86 - The 'has' keyword for roles now accepts the
87 same array ref form that Moose.pm does
88 (has [qw/foo bar/] => (is => 'rw', ...))
91 * Moose::Meta::Attribute
92 - trigger on a ro-attribute is no longer an
93 error, as it's useful to trigger off of the
97 - added same 'add_package_symbol' fix as in
101 - does_role now handles non-Moose classes
103 - added tests for this
104 - added the 'add_method_modifier' function
105 (thanks to Takatoshi Kitano)
107 * Moose::Util::TypeConstraints
108 - subtypes of parameterizable types now are
109 themselves parameterizable types
111 * Moose::Meta::Method::Constructor
112 - fixed bug where trigger was not being
113 called by the inlined immutable
115 - added test for this (thanks to Caelum)
117 * Moose::Meta::Role::Application::ToInstance
118 - now uses the metaclass of the instance
119 (if possible) to create the anon-class
120 (thanks Jonathan Rockway)
122 * Moose::Cookbook::Recipe22
123 - added the meta-attribute trait recipe
127 - fixed hash-ordering test bug that was
128 causing occasional cpantester failures
129 - renamed the t/000_recipe/*.t tests to be
130 more descriptive (thanks to Sartak)
132 0.44 Sat. May 10, 2008
134 - made make_immutable warning cluck to
135 show where the error is (thanks mst)
138 - BUILDALL and DEMOLISHALL now call
139 ->body when looping through the
140 methods, to avoid the overloaded
142 - fixed issue where DEMOLISHALL was
143 eating the $@ values, and so not
144 working correctly, it still kind of
145 eats them, but so does vanilla perl
146 - added tests for this
148 * Moose::Cookbook::Recipe7
149 - added new recipe for immutable
150 functionality (thanks Dave Rolsky)
152 * Moose::Cookbook::Recipe9
153 - added new recipe for builder and
154 lazy_build (thanks Dave Rolsky)
156 * Moose::Cookbook::Recipe11
157 - added new recipe for method aliasing
158 and exclusion with Roles (thanks Dave Rolsky)
161 - fixed Win32 test failure (thanks spicyjack)
163 ~ removed Build.PL and Module::Build compat
164 since Module::Install has done that.
166 0.43 Wed. April, 30, 2008
168 drink more coffee before
169 doing release engineering
171 - whoops, forgot to do the smolder tests,
172 and we broke some of the custom meta-attr
173 modules. This fixes that.
175 0.42 Mon. April 28, 2008
176 - some bad tests slipped by, nothing else
177 changed in this release (cpantesters++)
179 - upped the Class::MOP dependency to 0.55
180 since we have tests which need the C3
183 0.41 Mon. April 28, 2008
184 ~~ numerous documentation updates ~~
186 - Changed all usage of die to Carp::croak for better
187 error reporting (initial patch by Tod Hagan)
190 - the make_immutable keyword is now deprecated, don't
191 use it in any new code and please fix your old code
192 as well. There will be 2 releases, and then it will
198 - refactored the way inner and super work to avoid
199 any method/@ISA cache penalty (nothingmuch)
202 - fixing &new_object to make sure trigger gets the
203 coerced value (spotted by Charles Alderman on the
205 - added test for this
207 * Moose::Meta::Method::Constructor
208 - immutable classes which had non-lazy attributes were calling
209 the default generating sub twice in the constructor. (bug
210 found by Jesse Luehrs, fixed by Dave Rolsky)
211 - added tests for this (Dave Rolsky)
212 - fix typo in initialize_body method (nothingmuch)
214 * Moose::Meta::Method::Destructor
215 - fix typo in initialize_body method (nothingmuch)
217 * Moose::Meta::Method::Overriden
218 Moose::Meta::Method::Augmented
219 - moved the logic for these into their own
220 classes (nothingmuch)
222 * Moose::Meta::Attribute
223 - inherited attributes may now be extended without
224 restriction on the type ('isa', 'does') (Sartak)
225 - added tests for this (Sartak)
226 - when an attribute property is malformed (such as lazy without
227 a default), give the name of the attribute in the error
229 - added the &applied_traits and &has_applied_traits methods
230 to allow introspection of traits
231 - added tests for this
232 - moved 'trait' and 'metaclass' argument handling to here from
234 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
235 '+foo' syntax) (nothingmuch)
236 - added tests for this (t0m)
239 - localize $@ inside DEMOLISHALL to avoid it
240 eating $@ (found by Ernesto)
241 - added test for this (thanks to Ernesto)
243 * Moose::Util::TypeConstraints
244 - &find_type_constraint now DWIMs when given an
245 type constraint object or name (nothingmuch)
246 - &find_or_create_type_constraint superseded with a number of more
248 - find_or_create_{isa,does}_type_constraint
249 - find_or_parse_type_constraint
251 * Moose::Meta::TypeConstraint
252 Moose::Meta::TypeConstraint::Class
253 Moose::Meta::TypeConstraint::Role
254 Moose::Meta::TypeConstraint::Enum
255 Moose::Meta::TypeConstraint::Union
256 Moose::Meta::TypeConstraint::Parameterized
257 - added the &equals method for comparing two type
258 constraints (nothingmuch)
259 - added tests for this (nothingmuch)
261 * Moose::Meta::TypeConstraint
262 - add the &parents method, which is just an alias to &parent.
263 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
265 * Moose::Meta::TypeConstraint::Class
266 - added the class attribute for introspection purposes
268 - added tests for this
270 * Moose::Meta::TypeConstraint::Enum
271 Moose::Meta::TypeConstraint::Role
272 - broke these out into their own classes (nothingmuch)
274 * Moose::Cookbook::Recipe*
275 - fixed references to test file locations in the POD
276 and updated up some text for new Moose features
280 - Added &resolve_metaclass_alias, a helper function for finding an actual
281 class for a short name (e.g. in the traits list)
283 0.40 Fri. March 14, 2008
284 - I hate Pod::Coverage
286 0.39 Fri. March 14, 2008
288 - documenting the use of '+name' with attributes
289 that come from recently composed roles. It makes
290 sense, people are using it, and so why not just
291 officially support it.
292 - fixing the 'extends' keyword so that it will not
293 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
296 - added the perl -Moose=+Class::Name feature to allow
297 monkeypatching of classes in one liners
300 - fixing the 'apply_all_roles' keyword so that it will not
301 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
304 - added ->create method which now supports roles (thanks to jrockway)
305 - added tests for this
306 - added ->create_anon_class which now supports roles and caching of
307 the results (thanks to jrockway)
308 - added tests for this
309 - made ->does_role a little more forgiving when it is
310 checking a Class::MOP era metaclasses.
312 * Moose::Meta::Role::Application::ToInstance
313 - it is now possible to pass extra params to be used when
314 a role is applied to an the instance (rebless_params)
315 - added tests for this
317 * Moose::Util::TypeConstraints
318 - class_type now accepts an optional second argument for a
319 custom message. POD anotated accordingly (groditi)
320 - added tests for this
321 - it is now possible to make anon-enums by passing 'enum' an
322 ARRAY ref instead of the $name => @values. Everything else
324 - added tests for this
327 - making test for using '+name' on attributes consumed
328 from a role, it works and makes sense too.
330 * Moose::Meta::Attribute
331 - fix handles so that it doesn't return nothing
332 when the method cannot be found, not sure why
333 it ever did this originally, this means we now
334 have slightly better support for AUTOLOADed
336 - added more delegation tests
337 - adding ->does method to this so as to better
338 support traits and their introspection.
339 - added tests for this
342 - localizing the Data::Dumper configurations so
343 that it does not pollute others (RT #33509)
344 - made ->does a little more forgiving when it is
345 passed Class::MOP era metaclasses.
347 0.38 Fri. Feb. 15, 2008
348 * Moose::Meta::Attribute
349 - fixed initializer to correctly do
350 type checking and coercion in the
352 - added tests for this
355 - fixed some finicky tests (thanks to konobi)
357 0.37 Thurs. Feb. 14, 2008
359 - fixed some details in Moose::init_meta
360 and its superclass handling (thanks thepler)
361 - added tests for this (thanks thepler)
362 - 'has' now dies if you don't pass in name
364 - added the 'make_immutable' keyword as a shortcut
368 Moose::Meta::Method::Constructor
369 Moose::Meta::Attribute
370 - making (init_arg => undef) work here too
371 (thanks to nothingmuch)
373 * Moose::Meta::Attribute
374 Moose::Meta::Method::Constructor
375 Moose::Meta::Method::Accessor
376 - make lazy attributes respect attr initializers (rjbs)
377 - added tests for this
379 * Moose::Util::TypeConstraints
380 Moose::Util::TypeConstraints::OptimizedConstraints
381 Moose::Meta::TypeConstraints
382 Moose::Meta::Attribute
383 Moose::Meta::Method::Constructor
384 Moose::Meta::Method::Accessor
385 - making type errors use the
386 assigned message (thanks to Sartak)
387 - added tests for this
389 * Moose::Meta::Method::Destructor
390 - making sure DESTROY gets inlined properly
391 with successive DEMOLISH calls (thanks to manito)
393 * Moose::Meta::Attribute
394 Moose::Meta::Method::Accessor
395 - fixed handling of undef with type constraints
397 - added tests for this
400 - added &get_all_init_args and &get_all_attribute_values
401 (thanks to Sartak and nothingmuch)
403 0.36 Sat. Jan. 26, 2008
405 Moose::Meta::Attribute
406 - role type tests now support when roles are
407 applied to non-Moose classes (found by ash)
408 - added tests for this (thanks to ash)
409 - couple extra tests to boost code coverage
411 * Moose::Meta::Method::Constructor
412 - improved fix for handling Class::MOP attributes
413 - added test for this
416 - handled the add_attribute($attribute_meta_object)
418 - added test for this
420 0.35 Tues. Jan. 22, 2008
421 * Moose::Meta::Method::Constructor
422 - fix to make sure even Class::MOP attributes
423 are handled correctly (Thanks to Dave Rolsky)
424 - added test for this (also Dave Rolsky)
427 - improved error message on _apply_all_roles,
428 you should now use Moose::Util::apply_all_roles
429 and you shouldnt have been using a _ prefixed
430 method in the first place ;)
432 0.34 Mon. Jan. 21, 2008
433 ~~~ more misc. doc. fixes ~~~
434 ~~ updated copyright dates ~~
436 Moose is now a postmodern object system :)
437 - (see the POD for details)
439 * <<Role System Refactoring>>
440 - this release contains a major reworking and
441 cleanup of the role system
442 - 100% backwards compat.
443 - Role application now restructured into seperate
444 classes based on type of applicants
445 - Role summation (combining of more than one role)
446 is much cleaner and anon-classes are no longer
448 - new Composite role metaclass
449 - runtime application of roles to instances
450 is now more efficient and re-uses generated
451 classes when applicable
453 * <<New Role composition features>>
454 - methods can now be excluded from a given role
456 - methods can now be aliased to another name (and
457 still retain the original as well)
459 * Moose::Util::TypeConstraints::OptimizedConstraints
460 - added this module (see above)
463 - fixed the &_process_attribute method to be called
464 by &add_attribute, so that the API is now correct
466 * Moose::Meta::Method::Accessor
467 - fixed bug when passing a list of values to
468 an accessor would get (incorrectly) ignored.
469 Thanks to Sartak for finding this ;)
470 - added tests for this (Sartak again)
472 * Moose::Meta::Method::Accessor
473 Moose::Meta::Method::Constructor
474 Moose::Meta::Attribute
475 Moose::Meta::TypeConstraint
476 Moose::Meta::TypeCoercion
477 - lots of cleanup of such things as:
479 - type constraint handling
480 - error handling/messages
481 (thanks to nothingmuch)
483 * Moose::Meta::TypeConstraint::Parameterizable
484 - added this module to support the refactor
485 in Moose::Meta::TypeConstraint::Parameterized
487 * Moose::Meta::TypeConstraint::Parameterized
488 - refactored how these types are handled so they
489 are more generic and not confined to ArrayRef
493 - shortened some file names for better VMS support (RT #32381)
495 0.33 Fri. Dec. 14, 2007
496 !! Moose now loads 2 x faster !!
497 !! with new Class::MOP 0.49 !!
499 ++ new oose.pm module to make command line
500 Moose-ness easier (see POD docs for more)
504 - several tweaks to take advantage of the
505 new method map caching in Class::MOP
507 * Moose::Meta::TypeConstraint::Parameterized
508 - allow subtypes of ArrayRef and HashRef to
509 be used as a container (sartak)
510 - added tests for this
511 - basic support for coercion to ArrayRef and
512 HashRef for containers (sartak)
513 - added tests for this
515 * Moose::Meta::TypeCoercion
516 - coercions will now create subtypes as needed
517 so you can now add coercions to parameterized
518 types without having to explictly define them
519 - added tests for this
521 * Moose::Meta::Method::Accessor
522 - allow subclasses to decide whether we need
523 to copy the value into a new variable (sartak)
525 0.32 Tues. Dec. 4, 2007
526 * Moose::Util::TypeConstraints
527 - fixing how subtype aliases of unions work
528 they should inherit the parent's coercion
529 - added tests for this
530 - you can now define multiple coercions on
531 a single type at different times instead of
532 having to do it all in one place
533 - added tests for this
535 * Moose::Meta::TypeConstraint
536 - there is now a default constraint of sub { 1 }
537 instead of Moose::Util::TypeConstraints setting
540 * Moose::Meta::TypeCoercion
541 * Moose::Meta::TypeCoercion::Union
542 - added the &has_coercion_for_type and
543 &add_type_coercions methods to support the
544 new features above (although you cannot add
545 more type coercions for Union types)
547 0.31 Mon. Nov. 26, 2007
548 * Moose::Meta::Attribute
549 - made the +attr syntax handle extending types with
550 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
551 now works if the original foo is an ArrayRef.
552 - added tests for this.
553 - delegation now works even if the attribute does not
554 have a reader method using the get_read_method_ref
555 method from Class::MOP::Attribute.
556 - added tests for this
557 - added docs for this
559 * Moose::Util::TypeConstraints
560 - passing no "additional attribute info" to
561 &find_or_create_type_constraint will no longer
562 attempt to create an __ANON__ type for you,
563 instead it will just return undef.
564 - added docs for this
566 0.30 Fri. Nov. 23, 2007
567 * Moose::Meta::Method::Constructor
568 -builder related bug in inlined constructor. (groditi)
570 * Moose::Meta::Method::Accessor
571 - genereate unnecessary calls to predicates and refactor
572 code generation for runtime speed (groditi)
574 * Moose::Util::TypeConstraints
575 - fix ClassName constraint to introspect symbol table (mst)
576 - added more tests for this (mst)
577 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
579 - added tests for this
582 - adding the link to Recipie 11 (written by Sartak)
583 - adding test for SYNOPSIS code
586 - New tests for builder bug. Upon instantiation, if an
587 attribute had a builder, no value and was not lazy the
588 builder default was not getting run, oops. (groditi)
590 0.29 Tues. Nov. 13, 2007
591 * Moose::Meta::Attribute
592 - Fix error message on missing builder method (groditi)
594 * Moose::Meta::Method::Accessor
595 - Fix error message on missing builder method (groditi)
598 - Add test to check for the correct error message when
599 builder method is missing (groditi)
601 0.28 Tues. Nov. 13, 2007
602 - 0.27 packaged incorrectly (groditi)
604 0.27 Tues. Nov. 13, 2007
605 * Moose::Meta::Attribute
606 - Added support for the new builder option (groditi)
607 - Added support for lazy_build option (groditi)
608 - Changed slot initialization for predicate changes (groditi)
610 * Moose::Meta::Method::Accessor
611 - Added support for lazy_build option (groditi)
612 - Fix inline methods to work with corrected predicate
615 * Moose::Meta::Method::Constructor
616 - Added support for lazy_build option (groditi)
619 - tests for builder and lazy_build (groditi)
621 * fixing some misc. bits in the docs that
622 got mentioned on CPAN Forum & perlmonks
625 - fixed how required methods are handled
626 when they encounter overriden or modified
627 methods from a class (thanks to confound).
628 - added tests for this
630 * Moose::Util::TypeConstraint
631 - fixed the type notation parser so that
632 the | always creates a union and so is
633 no longer a valid type char (thanks to
634 konobi, mugwump and #moose for working
636 - added more tests for this
638 0.26 Thurs. Sept. 27, 2007
641 * Parameterized Types
642 We now support parameterized collection types, such as:
643 ArrayRef[Int] # array or integers
644 HashRef[Object] # a hash with object values
645 They can also be nested:
646 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
647 And work with the type unions as well:
648 ArrayRef[Int | Str] # array of integers of strings
650 * Better Framework Extendability
651 Moose.pm is now "extendable" such that it is now much
652 easier to extend the framework and add your own keywords
653 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
654 section of the Moose.pm docs.
657 In an effort to begin documenting some of the various
658 details of Moose as well as some common idioms, we have
659 created Moose::Cookbook::Snacks as a place to find
660 small (easily digestable) nuggets of Moose code.
663 ~ Several doc updates/cleanup thanks to castaway ~
665 - converted build system to use Module::Install instead of
666 Module::Build (thanks to jrockway)
669 - added all the meta classes to the immutable list and
670 set it to inline the accessors
671 - fix import to allow Sub::Exporter like { into => }
672 and { into_level => } (perigrin)
673 - exposed and documented init_meta() to allow better
674 embedding and extending of Moose (perigrin)
677 - complete re-organization of the test suite
678 - added some new tests as well
679 - finally re-enabled the Moose::POOP test since
680 the new version of DBM::Deep now works again
684 - fixed very odd and very nasty recursion bug with
686 - added tests for this (eilara)
688 * Moose::Meta::Attribute
689 Moose::Meta::Method::Constructor
690 Moose::Meta::Method::Accessor
691 - fixed issue with overload::Overloaded getting called
692 on non-blessed items. (RT #29269)
693 - added tests for this
695 * Moose::Meta::Method::Accessor
696 - fixed issue with generated accessor code making
697 assumptions about hash based classes (thanks to dexter)
699 * Moose::Coookbook::Snacks
700 - these are bits of documentation, not quite as big as
701 Recipes but which have no clear place in the module docs.
702 So they are Snacks! (horray for castaway++)
704 * Moose::Cookbook::Recipe4
705 - updated it to use the new ArrayRef[MyType] construct
706 - updated the accompanying test as well
708 +++ Major Refactor of the Type Constraint system +++
709 +++ with new features added as well +++
711 * Moose::Util::TypeConstraint
712 - no longer uses package variable to keep track of
713 the type constraints, now uses the an instance of
714 Moose::Meta::TypeConstraint::Registry to do it
715 - added more sophisticated type notation parsing
717 - added tests for this
719 * Moose::Meta::TypeConstraint
720 - some minor adjustments to make subclassing easier
721 - added the package_defined_in attribute so that we
722 can track where the type constraints are created
724 * Moose::Meta::TypeConstraint::Union
725 - this is now been refactored to be a subclass of
726 Moose::Meta::TypeConstraint
728 * Moose::Meta::TypeCoercion::Union
729 - this has been added to service the newly refactored
730 Moose::Meta::TypeConstraint::Union and is itself
731 a subclass of Moose::Meta::TypeCoercion
733 * Moose::Meta::TypeConstraint::Parameterized
734 - added this module (taken from MooseX::AttributeHelpers)
735 to help construct nested collection types
736 - added tests for this
738 * Moose::Meta::TypeConstraint::Registry
739 - added this class to keep track of type constraints
741 0.25 Mon. Aug. 13, 2007
743 - Documentation update to reference Moose::Util::TypeConstraints
744 under 'isa' in 'has' for how to define a new type
747 * Moose::Meta::Attribute
748 - required attributes now will no longer accept undef
749 from the constructor, even if there is a default and lazy
750 - added tests for this
751 - default subroutines must return a value which passes the
753 - added tests for this
755 * Moose::Meta::Attribute
756 * Moose::Meta::Method::Constructor
757 * Moose::Meta::Method::Accessor
758 - type-constraint tests now handle overloaded objects correctly
760 - added tests for this (thanks to EvanCarroll)
762 * Moose::Meta::TypeConstraint::Union
763 - added (has_)hand_optimized_constraint to this class so that
764 it behaves as the regular Moose::Meta::TypeConstraint does.
767 - large refactoring of this code
768 - added several more tests
769 - tests for subtle conflict resolition issues
770 added, but not currently running
773 * Moose::Cookbook::Recipe7
774 - added new recipe for augment/inner functionality
776 - added test for this
779 - a formal definition of roles (still in progress)
782 - utilities for easier working with Moose classes
783 - added tests for these
786 - This contains Moose specific test functions
787 - added tests for these
789 0.24 Tues. July 3, 2007
790 ~ Some doc updates/cleanup ~
792 * Moose::Meta::Attribute
793 - added support for roles to be given as parameters
794 to the 'handles' option.
795 - added tests and docs for this
796 - the has '+foo' attribute form now accepts changes to
797 the lazy option, and the addition of a handles option
798 (but not changing the handles option)
799 - added tests and docs for this
802 - required methods are now fetched using find_method_by_name
803 so that required methods can come from superclasses
804 - adjusted tests for this
806 0.23 Mon. June 18, 2007
807 * Moose::Meta::Method::Constructor
808 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
810 - Modify make_immutable to work with the new Class::MOP immutable
811 mechanism + POD + very basic test (groditi)
812 * Moose::Meta::Attribute
813 - Fix handles to use goto() so that caller() comes out properly on
814 the other side (perigrin)
816 0.22 Thurs. May 31, 2007
817 * Moose::Util::TypeConstraints
818 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
819 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
820 prototypes for functions
821 - added the ClassName type constraint, this checks for strings
822 which will respond true to ->isa(UNIVERSAL).
823 - added tests and docs for this
824 - subtyping just in name now works correctly by making the
825 default for where be { 1 }
826 - added test for this
828 * Moose::Meta::Method::Accessor
829 - coerce and lazy now work together correctly, thanks to
830 merlyn for finding this bug
831 - tests added for this
832 - fix reader presedence bug in Moose::Meta::Attribute + tests
835 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
836 a HASH-ref and missed. This produces better error messages then
837 having it die cause undef is not a HASH.
838 - added tests for this
840 0.21 Thursday, May 2nd, 2007
842 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
843 - modified unimport to remove super and inner along with the rest
844 - altered unimport tests to handle this
847 - altered super export to populate SUPER_SLOT
850 - altered augment and override modifier application to use *_SLOT
851 - modified tests for these to unimport one test class each to test
854 - fixed issue where custom attribute metaclasses
855 where not handled correctly in roles
856 - added tests for this
859 - fixed issue where extending metaclasses with
860 roles would blow up. Thanks to Aankhen`` for
861 finding this insidious error, and it's solution.
863 ~~ lots of spelling and grammer fixes in the docs,
864 many many thanks to rlb3 and Aankhen for these :)
866 0.20 Friday, April 6th, 2007
867 >> I messed up the SKIP logic in one test
868 so this release is just to fix that.
871 - 'has' now also accepts an ARRAY ref
872 to create multiple attrs (see docs)
873 (thanks to konobi for this)
874 - added tests and docs
876 0.19 Thurs. April 5th, 2007
877 ~~ More documentation updates ~~
879 * Moose::Util::TypeConstraints
880 - 'type' now supports messages as well
881 thanks to phaylon for finding this
882 - added tests for this
883 - added &list_all_type_constraints and
884 &list_all_builtin_type_constraints
885 functions to facilitate introspection.
887 * Moose::Meta::Attribute
888 - fixed regexp 'handles' declarations
889 to build the list of delegated methods
890 correctly (and not override important
891 things like &new) thanks to ashleyb
893 - added tests and docs for this
894 - added the 'documentation' attributes
895 so that you can actually document your
896 attributes and inspect them through the
898 - added tests and docs for this
901 - when loading custom attribute metaclasses
902 it will first look in for the class in the
903 Moose::Meta::Attribute::Custom::$name, and
904 then default to just loading $name.
905 - added tests and docs for this
907 * Moose::Meta::TypeConstraint
908 - type constraints now stringify to their names.
909 - added test for this
912 - added tests to assure we work with Module::Refresh
913 - added stricter test skip logic in the Moose POOP
914 test, ask Rob Kinyon why.
915 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
917 0.18 Sat. March 10, 2007
918 ~~ Many, many documentation updates ~~
921 - We now use Class::MOP::load_class to
923 - added tests to show types and subtypes
924 working with Declare::Constraints::Simple
925 and Test::Deep as constraint engines.
928 !! You must have Class::MOP 0.37_001 !!
929 !! for this developer release to work !!
931 This release was primarily adding the immutable
932 feature to Moose. An immutable class is one which
933 you promise not to alter. When you set the class
934 as immutable it will perform various bits of
935 memoization and inline certain part of the code
936 (constructors, destructors and accessors). This
937 minimizes (and in some cases totally eliminates)
938 one of Moose's biggest performance hits. This
939 feature is not on by default, and is 100% optional.
940 It has several configurable bits as well, so you
941 can pick and choose to your specific needs.
943 The changes involved in this were fairly wide and
944 highly specific, but 100% backwards compatible, so
945 I am not going to enumerate them here. If you are
946 truely interested in what was changed, please do
949 0.17 Tues. Nov. 14, 2006
950 * Moose::Meta::Method::Accessor
951 - bugfix for read-only accessors which
952 are have a type constraint and lazy.
953 Thanks to chansen for finding it.
955 0.16 Tues. Nov. 14, 2006
957 There are some speed improvements in this release,
958 but they are only the begining, so stay tuned.
961 - BUILDALL and DEMOLISHALL no longer get
962 called unless they actually need to be.
963 This gave us a signifigant speed boost
964 for the cases when there is no BUILD or
965 DEMOLISH method present.
967 * Moose::Util::TypeConstraints
968 * Moose::Meta::TypeConstraint
969 - added an 'optimize_as' option to the
970 type constraint, which allows for a
971 hand optimized version of the type
972 constraint to be used when possible.
973 - Any internally created type constraints
974 now provide an optimized version as well.
976 0.15 Sun. Nov. 5, 2006
978 This version of Moose *must* have Class::MOP 0.36 in order
979 to work correctly. A number of small internal tweaks have
980 been made in order to be compatible with that release.
982 * Moose::Util::TypeConstraints
983 - added &unimport so that you can clean out
984 your class namespace of these exported
988 - fixed minor issue which occasionally
989 comes up during global destruction
991 - moved Moose::Meta::Method::Overriden into
995 - moved Moose::Meta::Role::Method into
998 * Moose::Meta::Attribute
999 - changed how we do type checks so that
1000 we reduce the overall cost, but still
1003 - moved accessor generation methods to
1004 Moose::Meta::Method::Accessor to
1005 conform to the API changes from
1008 * Moose::Meta::TypeConstraint
1009 - changed how constraints are compiled
1010 so that we do less recursion and more
1011 iteration. This makes the type check
1013 - moved Moose::Meta::TypeConstraint::Union
1016 * Moose::Meta::Method::Accessor
1017 - created this from methods formerly found in
1018 Moose::Meta::Attribute
1020 * Moose::Meta::Role::Method
1021 - moved this from Moose::Meta::Role
1023 * Moose::Meta::Method::Overriden
1024 - moved this from Moose::Meta::Class
1026 * Moose::Meta::TypeConstraint::Union
1027 - moved this from Moose::Meta::TypeConstraint
1029 0.14 Mon. Oct. 9, 2006
1031 * Moose::Meta::Attribute
1032 - fixed lazy attributes which were not getting
1033 checked with the type constraint (thanks ashley)
1034 - added tests for this
1035 - removed the over-enthusiastic DWIMery of the
1036 automatic ArrayRef and HashRef defaults, it
1037 broke predicates in an ugly way.
1038 - removed tests for this
1040 0.13 Sat. Sept. 30, 2006
1042 This version of Moose *must* have Class::MOP 0.35 in order
1043 to work correctly. A number of small internal tweaks have
1044 been made in order to be compatible with that release.
1047 - Removed the use of UNIVERSAL::require to be a better
1048 symbol table citizen and remove a dependency
1049 (thanks Adam Kennedy)
1051 **~~ removed experimental & undocumented feature ~~**
1052 - commented out the 'method' and 'self' keywords, see the
1053 comments for more info.
1056 - added a FAQ and WTF files to document frequently
1057 asked questions and common problems
1059 * Moose::Util::TypeConstraints
1060 - added GlobRef and FileHandle type constraint
1061 - added tests for this
1063 * Moose::Meta::Attribute
1064 - if your attribute 'isa' ArrayRef of HashRef, and you have
1065 not explicitly set a default, then make the default DWIM.
1066 This will also work for subtypes of ArrayRef and HashRef
1068 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1069 - new test added for this (thanks to ashley)
1072 - added basic support for runtime role composition
1073 but this is still *highly experimental*, so feedback
1074 is much appreciated :)
1075 - added tests for this
1077 * Moose::Meta::TypeConstraint
1078 - the type constraint now handles the coercion process
1079 through delegation, this is to support the coercion
1082 * Moose::Meta::TypeConstraint::Union
1083 - it is now possible for coercions to be performed
1085 - added tests for this (thanks to konobi)
1087 * Moose::Meta::TypeCoercion
1088 - properly capturing error when type constraint
1092 - Scalar::Util 1.18 is bad on Win32, so temporarily
1093 only require version 1.17 for Win32 and cygwin.
1094 (thanks Adam Kennedy)
1096 0.12 Sat. Sept. 1, 2006
1098 - Recipe5 (subtypes & coercion) has been written
1101 - fixed "bad meta" error message to be more descriptive
1102 - fixed &unimport to not remove the &inner and &super
1103 keywords because we need to localize them.
1104 - fixed number of spelling/grammer issues, thanks Theory :)
1106 **~~ experimental & undocumented feature ~~**
1107 - added the method and self keywords, they are basically
1108 just sugar, and they may not stay around.
1111 - added &dump method to easily Data::Dumper
1114 * Moose::Meta::TypeConstraint
1115 - added the &is_a_type_of method to check both the current
1116 and the subtype of a method (similar to &isa with classes)
1119 - this is now a subclass of Class::MOP::Module, and no longer
1120 creates the _role_meta ugliness of before.
1121 - fixed tests to reflect this change
1123 0.11 Wed. July 12, 2006
1125 - added an &unimport method to remove all the keywords
1126 that Moose will import, simply add 'no Moose' to the
1127 bottom of your class file.
1130 - fixed some test failures caused by a forgotten test
1133 0.10 Thurs. July 6, 2006
1135 - improved error message when loading modules so
1136 it is less confusing when you load a role.
1137 - added &calculate_all_roles method to
1138 Moose::Meta::Class and Moose::Meta::Role
1141 This module has been tested against Class::MOP 0.30
1142 but it does not yet utilize the optimizations
1143 it makes available. Stay tuned for that ;)
1145 0.09_03 Fri. June 23, 2006
1146 ++ DEVELOPER RELEASE ++
1148 - 'use strict' and 'use warnings' are no longer
1149 needed in Moose classes, Moose itself will
1150 turn them on for you.
1151 - added tests for this
1152 - moved code from exported subs to private methods
1153 in Moose::Meta::Class
1156 - as with Moose, strict and warnings are
1157 automatically turned on for you.
1158 - added tests for this
1161 - now handles an edge case for override errors
1162 - added tests for this
1163 - added some more edge case tests
1165 0.09_02 Tues. May 16, 2006
1166 ++ DEVELOPER RELEASE ++
1168 - added prototypes to the exported subs
1172 - added prototypes to the exported subs
1175 * Moose::Util::TypeConstraints
1176 - cleaned up prototypes for the subs
1179 0.09_01 Fri. May 12, 2006
1180 ++ DEVELOPER RELEASE ++
1181 - This release works in combination with
1182 Class::MOP 0.29_01, it is a developer
1183 release because it uses the a new
1184 instance sub-protocol and a fairly
1185 complete Role implementation. It has
1186 not yet been optimized, so it slower
1187 the the previous CPAN version. This
1188 release also lacks good updated docs,
1189 the official release will have updated docs.
1192 - refactored the keyword exports
1193 - 'with' now checks Role validaity and
1194 accepts more than one Role at a time
1195 - 'extends' makes metaclass adjustments as
1196 needed to ensure metaclass compatability
1199 - refactored the keyword exports
1200 - 'with' now checks Role validaity and
1201 accepts more than one Role at a time
1203 * Moose::Util::TypeConstraints
1204 - added the 'enum' keyword for simple
1205 string enumerations which can be used as
1207 - see example of usage in t/202_example.t
1210 - more careful checking of params to new()
1213 - much work done on the role composition
1214 - many new tests for conflict detection
1215 and composition edge cases
1216 - not enough documentation, I suggest
1217 looking at the tests
1219 * Moose::Meta::Instance
1220 - added new Instance metaclass to support
1221 the new Class::MOP instance protocol
1223 * Moose::Meta::Class
1224 - some small changes to support the new
1226 - some small additions to support Roles
1228 * Moose::Meta::Attribute
1229 - some improvements to the accessor generation code
1231 - some small changes to support the new
1233 - (still somewhat) experimental delegation support
1234 with the 'handles' option
1235 - added several tests for this
1236 - no docs for this yet
1238 0.05 Thurs. April 27, 2006
1240 - keywords are now exported with Sub::Exporter
1241 thanks to chansen for this commit
1242 - has keyword now takes a 'metaclass' option
1243 to support custom attribute meta-classes
1244 on a per-attribute basis
1245 - added tests for this
1246 - the 'has' keyword not accepts inherited slot
1247 specifications (has '+foo'). This is still an
1248 experimental feature and probably not finished
1249 see t/038_attribute_inherited_slot_specs.t for
1250 more details, or ask about it on #moose
1251 - added tests for this
1254 - keywords are now exported with Sub::Exporter
1256 * Moose::Utils::TypeConstraints
1257 - reorganized the type constraint hierarchy, thanks
1258 to nothingmuch and chansen for his help and advice
1260 - added some tests for this
1261 - keywords are now exported with Sub::Exporter
1262 thanks to chansen for this commit
1264 * Moose::Meta::Class
1265 - due to changes in Class::MOP, we had to change
1266 construct_instance (for the better)
1268 * Moose::Meta::Attribute
1269 - due to changes in Class::MOP, we had to add the
1270 initialize_instance_slot method (it's a good thing)
1272 * Moose::Meta::TypeConstraint
1273 - added type constraint unions
1274 - added tests for this
1275 - added the is_subtype_of predicate method
1276 - added tests for this
1278 0.04 Sun. April 16th, 2006
1280 - Roles can now consume other roles
1281 - added tests for this
1282 - Roles can specify required methods now with
1283 the requires() keyword
1284 - added tests for this
1287 - ripped out much of it's guts ,.. much cleaner now
1288 - added required methods and correct handling of
1289 them in apply() for both classes and roles
1290 - added tests for this
1291 - no longer adds a does() method to consuming classes
1292 it relys on the one in Moose::Object
1293 - added roles attribute and some methods to support
1294 roles consuming roles
1296 * Moose::Meta::Attribute
1297 - added support for triggers on attributes
1298 - added tests for this
1299 - added support for does option on an attribute
1300 - added tests for this
1302 * Moose::Meta::Class
1303 - added support for attribute triggers in the
1305 - added tests for this
1308 - Moose no longer creates a subtype for your class
1309 if a subtype of the same name already exists, this
1310 should DWIM in 99.9999% of all cases
1312 * Moose::Util::TypeConstraints
1313 - fixed bug where incorrect subtype conflicts were
1315 - added test for this
1318 - this class can now be extended with 'use base' if
1319 you need it, it properly loads the metaclass class now
1320 - added test for this
1322 0.03_02 Wed. April 12, 2006
1324 - you must now explictly use Moose::Util::TypeConstraints
1325 it no longer gets exported for you automatically
1328 - new() now accepts hash-refs as well as key/value lists
1329 - added does() method to check for Roles
1330 - added tests for this
1332 * Moose::Meta::Class
1333 - added roles attribute along with the add_role() and
1335 - added tests for this
1338 - now adds a does() method to consuming classes
1339 which tests the class's hierarchy for roles
1340 - added tests for this
1342 0.03_01 Mon. April 10, 2006
1344 - added new Role recipe (no content yet, only code)
1347 - added 'with' keyword for Role support
1348 - added test and docs for this
1349 - fixed subtype quoting bug
1350 - added test for this
1354 - added test and docs
1356 * Moose::Util::TypeConstraints
1357 - added the message keyword to add custom
1358 error messages to type constraints
1361 - the meta role to support Moose::Role
1362 - added tests and docs
1364 * Moose::Meta::Class
1365 - moved a number of things from Moose.pm
1366 to here, they should have been here
1369 * Moose::Meta::Attribute
1370 - moved the attribute option macros here
1371 instead of putting them in Moose.pm
1373 * Moose::Meta::TypeConstraint
1374 - added the message attributes and the
1376 - added tests and docs for this
1378 0.03 Thurs. March 30, 2006
1380 - added the Moose::Cookbook with 5 recipes,
1381 describing all the stuff Moose can do.
1384 - fixed an issue with &extends super class loading
1385 it now captures errors and deals with inline
1386 packages correctly (bug found by mst, solution
1388 - added super/override & inner/augment features
1389 - added tests and docs for these
1392 - BUILDALL now takes a reference of the %params
1393 that are passed to &new, and passes that to
1396 * Moose::Util::TypeConstraints
1397 - Type constraints now survive runtime reloading
1398 - added test for this
1400 * Moose::Meta::Class
1401 - fixed the way attribute defaults are handled
1402 during instance construction (bug found by chansen)
1404 * Moose::Meta::Attribute
1405 - read-only attributes now actually enforce their
1406 read-only-ness (this corrected in Class::MOP as
1409 0.02 Tues. March 21, 2006
1411 - many more tests, fixing some bugs and
1413 - &extends now loads the base module with
1415 - added UNIVERSAL::require to the
1418 - each new Moose class will also create
1419 and register a subtype of Object which
1420 correspond to the new Moose class.
1421 - the 'isa' option in &has now only
1422 accepts strings, and will DWIM in
1425 * Moose::Util::TypeConstraints
1426 - added type coercion features
1427 - added tests for this
1428 - added support for this in attributes
1429 and instance construction
1431 - type construction no longer creates a
1432 function, it registers the type instead.
1433 - added several functions to get the
1437 - BUILDALL and DEMOLISHALL were broken
1438 because of a mis-named hash key, Whoops :)
1440 * Moose::Meta::Attribute
1441 - adding support for coercion in the
1442 autogenerated accessors
1444 * Moose::Meta::Class
1445 - adding support for coercion in the
1446 instance construction
1448 * Moose::Meta::TypeConstraint
1449 * Moose::Meta::TypeCoercion
1450 - type constraints and coercions are now
1451 full fledges meta-objects
1453 0.01 Wed. March 15, 2006
1454 - Moooooooooooooooooose!!!