1 Revision history for Perl extension Moose
4 * Moose::Cookbook::Snacks::*
5 - removed some of the unfinished snacks that should
6 not have been released yet. Added some more examples
7 and explination to the 'Keywords' snack. (stevan)
10 - added "FEATURE REQUESTS" section to the Moose docs
11 to properly direct people (stevan) (RT #34333)
12 - making 'extends' croak if it is passed a Role since
13 this is not ever something you want to do
14 (fixed by stevan, found by obra)
15 - added tests for this (stevan)
17 * Moose::Cookbook::Style
18 - added general Moose "style guide" of sorts to the
19 cookbook (nothingmuch) (RT #34335)
22 - added more BUILDARGS tests (stevan)
24 0.51 Thurs. Jun 26, 2008
26 - add unimport so "no Moose::Role" actually does
29 * Moose::Meta::Role::Application::ToRole
30 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
31 order to provide its own implementation, that method still got
32 added to the list of required methods for consumers of
33 RoleB. Now an aliased method is only added to the list of
34 required methods if the role doing the aliasing does not
35 provide its own implementation. See Recipe 11 for an example
36 of all this. (Dave Rolsky)
37 - added tests for this
39 * Moose::Meta::Method::Constructor
40 - when a single argument that wasn't a hashref was provided to
41 an immutabilized constructor, the error message was very
42 unhelpful, as opposed to the non-immutable error. Reported by
44 - added test for this (Dave Rolsky)
46 * Moose::Meta::Attribute
47 - added support for meta_attr->does("ShortAlias") (sartak)
48 - added tests for this (sartak)
49 - moved the bulk of the `handles` handling to the new
50 install_delegation method (Stevan)
53 - Added BUILDARGS, a new step in new()
55 * Moose::Meta::Role::Application::RoleSummation
56 - fix typos no one ever sees (sartak)
58 * Moose::Util::TypeConstraints
59 * Moose::Meta::TypeConstraint
60 * Moose::Meta::TypeCoercion
61 - Attempt to work around the ??{ } vs. threads issue
63 - Some null_constraint optimizations
65 0.50 Thurs. Jun 11, 2008
66 - Fixed a version number issue by bumping all modules
69 0.49 Thurs. Jun 11, 2008
70 !! This version now approx. 20-25% !!
71 !! faster with new Class::MOP 0.59 !!
73 * Moose::Meta::Attribute
74 - fixed how the is => (ro|rw) works with
75 custom defined reader, writer and accessor
77 - added docs for this (TODO).
78 - added tests for this (Thanks to Penfold)
79 - added the custom attribute alias for regular
80 Moose attributes which is "Moose"
81 - fix builder and default both being used
86 Moose::Meta::Attribute
88 Moose::Meta::Role::Composite
89 Moose::Util::TypeConstraints
90 - switched usage of reftype to ref because
94 - changing add_package_symbol to use the new
98 - fixed how DEMOLISHALL is called so that it
99 can be overrided in subclasses (thanks to Sartak)
100 - added test for this (thanks to Sartak)
102 * Moose::Util::TypeConstraints
103 - move the ClassName type check code to
104 Class::MOP::is_class_loaded (thanks to Sartak)
106 * Moose::Cookbook::Recipe11
107 - add tests for this (thanks to tokuhirom)
109 0.48 Thurs. May 29, 2008
110 (early morning release engineering)--
112 - fixing the version in Moose::Meta::Method::Destructor
113 which was causing the indexer to choke
115 0.47 Thurs. May 29, 2008
116 (late night release engineering)--
118 - fixing the version is META.yml, no functional
119 changes in this release
121 0.46 Wed. May 28, 2008
122 !! This version now approx. 20-25% !!
123 !! faster with new Class::MOP 0.57 !!
126 - some optimizations of the &initialize method
127 since it is called so often by &meta
131 - now use the get_all_package_symbols from the
132 updated Class::MOP, test suite is now 10 seconds
135 * Moose::Meta::Method::Destructor
136 - is_needed can now also be called as a class
137 method for immutablization to check if the
138 destructor object even needs to be created
141 * Moose::Meta::Method::Destructor
142 Moose::Meta::Method::Constructor
143 - added more descriptive error message to help
144 keep people from wasting time tracking an error
145 that is easily fixed by upgrading.
147 0.45 Saturday, May 24, 2008
149 - Because of work in Class::MOP 0.56, all
150 XS based functionality is now optional
151 and a Pure Perl version is supplied
152 - the CLASS_MOP_NO_XS environment variable
153 can now be used to force non-XS versions
155 - several of the packages have been tweaked
156 to take care of this, mostly we added
157 support for the package_name and name
158 variables in all the Method metaclasses
159 - before/around/after method modifiers now
160 support regexp matching of names
161 (thanks to Takatoshi Kitano)
162 - tests added for this
163 - NOTE: this only works for classes, it
164 is currently not supported in roles,
165 but, ... patches welcome
166 - All usage of Carp::confess have been replaced
167 by Carp::croak in the "keyword" functions since
168 the stack trace is usually not helpful
171 - All usage of Carp::confess have been replaced
172 by Carp::croak in the "keyword" functions since
173 the stack trace is usually not helpful
174 - The 'has' keyword for roles now accepts the
175 same array ref form that Moose.pm does
176 (has [qw/foo bar/] => (is => 'rw', ...))
177 - added test for this
179 * Moose::Meta::Attribute
180 - trigger on a ro-attribute is no longer an
181 error, as it's useful to trigger off of the
185 - added same 'add_package_symbol' fix as in
189 - does_role now handles non-Moose classes
191 - added tests for this
192 - added the 'add_method_modifier' function
193 (thanks to Takatoshi Kitano)
195 * Moose::Util::TypeConstraints
196 - subtypes of parameterizable types now are
197 themselves parameterizable types
199 * Moose::Meta::Method::Constructor
200 - fixed bug where trigger was not being
201 called by the inlined immutable
203 - added test for this (thanks to Caelum)
205 * Moose::Meta::Role::Application::ToInstance
206 - now uses the metaclass of the instance
207 (if possible) to create the anon-class
208 (thanks Jonathan Rockway)
210 * Moose::Cookbook::Recipe22
211 - added the meta-attribute trait recipe
215 - fixed hash-ordering test bug that was
216 causing occasional cpantester failures
217 - renamed the t/000_recipe/*.t tests to be
218 more descriptive (thanks to Sartak)
220 0.44 Sat. May 10, 2008
222 - made make_immutable warning cluck to
223 show where the error is (thanks mst)
226 - BUILDALL and DEMOLISHALL now call
227 ->body when looping through the
228 methods, to avoid the overloaded
230 - fixed issue where DEMOLISHALL was
231 eating the $@ values, and so not
232 working correctly, it still kind of
233 eats them, but so does vanilla perl
234 - added tests for this
236 * Moose::Cookbook::Recipe7
237 - added new recipe for immutable
238 functionality (thanks Dave Rolsky)
240 * Moose::Cookbook::Recipe9
241 - added new recipe for builder and
242 lazy_build (thanks Dave Rolsky)
244 * Moose::Cookbook::Recipe11
245 - added new recipe for method aliasing
246 and exclusion with Roles (thanks Dave Rolsky)
249 - fixed Win32 test failure (thanks spicyjack)
251 ~ removed Build.PL and Module::Build compat
252 since Module::Install has done that.
254 0.43 Wed. April, 30, 2008
256 drink more coffee before
257 doing release engineering
259 - whoops, forgot to do the smolder tests,
260 and we broke some of the custom meta-attr
261 modules. This fixes that.
263 0.42 Mon. April 28, 2008
264 - some bad tests slipped by, nothing else
265 changed in this release (cpantesters++)
267 - upped the Class::MOP dependency to 0.55
268 since we have tests which need the C3
271 0.41 Mon. April 28, 2008
272 ~~ numerous documentation updates ~~
274 - Changed all usage of die to Carp::croak for better
275 error reporting (initial patch by Tod Hagan)
278 - the make_immutable keyword is now deprecated, don't
279 use it in any new code and please fix your old code
280 as well. There will be 2 releases, and then it will
286 - refactored the way inner and super work to avoid
287 any method/@ISA cache penalty (nothingmuch)
290 - fixing &new_object to make sure trigger gets the
291 coerced value (spotted by Charles Alderman on the
293 - added test for this
295 * Moose::Meta::Method::Constructor
296 - immutable classes which had non-lazy attributes were calling
297 the default generating sub twice in the constructor. (bug
298 found by Jesse Luehrs, fixed by Dave Rolsky)
299 - added tests for this (Dave Rolsky)
300 - fix typo in initialize_body method (nothingmuch)
302 * Moose::Meta::Method::Destructor
303 - fix typo in initialize_body method (nothingmuch)
305 * Moose::Meta::Method::Overriden
306 Moose::Meta::Method::Augmented
307 - moved the logic for these into their own
308 classes (nothingmuch)
310 * Moose::Meta::Attribute
311 - inherited attributes may now be extended without
312 restriction on the type ('isa', 'does') (Sartak)
313 - added tests for this (Sartak)
314 - when an attribute property is malformed (such as lazy without
315 a default), give the name of the attribute in the error
317 - added the &applied_traits and &has_applied_traits methods
318 to allow introspection of traits
319 - added tests for this
320 - moved 'trait' and 'metaclass' argument handling to here from
322 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
323 '+foo' syntax) (nothingmuch)
324 - added tests for this (t0m)
327 - localize $@ inside DEMOLISHALL to avoid it
328 eating $@ (found by Ernesto)
329 - added test for this (thanks to Ernesto)
331 * Moose::Util::TypeConstraints
332 - &find_type_constraint now DWIMs when given an
333 type constraint object or name (nothingmuch)
334 - &find_or_create_type_constraint superseded with a number of more
336 - find_or_create_{isa,does}_type_constraint
337 - find_or_parse_type_constraint
339 * Moose::Meta::TypeConstraint
340 Moose::Meta::TypeConstraint::Class
341 Moose::Meta::TypeConstraint::Role
342 Moose::Meta::TypeConstraint::Enum
343 Moose::Meta::TypeConstraint::Union
344 Moose::Meta::TypeConstraint::Parameterized
345 - added the &equals method for comparing two type
346 constraints (nothingmuch)
347 - added tests for this (nothingmuch)
349 * Moose::Meta::TypeConstraint
350 - add the &parents method, which is just an alias to &parent.
351 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
353 * Moose::Meta::TypeConstraint::Class
354 - added the class attribute for introspection purposes
356 - added tests for this
358 * Moose::Meta::TypeConstraint::Enum
359 Moose::Meta::TypeConstraint::Role
360 - broke these out into their own classes (nothingmuch)
362 * Moose::Cookbook::Recipe*
363 - fixed references to test file locations in the POD
364 and updated up some text for new Moose features
368 - Added &resolve_metaclass_alias, a helper function for finding an actual
369 class for a short name (e.g. in the traits list)
371 0.40 Fri. March 14, 2008
372 - I hate Pod::Coverage
374 0.39 Fri. March 14, 2008
376 - documenting the use of '+name' with attributes
377 that come from recently composed roles. It makes
378 sense, people are using it, and so why not just
379 officially support it.
380 - fixing the 'extends' keyword so that it will not
381 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
384 - added the perl -Moose=+Class::Name feature to allow
385 monkeypatching of classes in one liners
388 - fixing the 'apply_all_roles' keyword so that it will not
389 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
392 - added ->create method which now supports roles (thanks to jrockway)
393 - added tests for this
394 - added ->create_anon_class which now supports roles and caching of
395 the results (thanks to jrockway)
396 - added tests for this
397 - made ->does_role a little more forgiving when it is
398 checking a Class::MOP era metaclasses.
400 * Moose::Meta::Role::Application::ToInstance
401 - it is now possible to pass extra params to be used when
402 a role is applied to an the instance (rebless_params)
403 - added tests for this
405 * Moose::Util::TypeConstraints
406 - class_type now accepts an optional second argument for a
407 custom message. POD anotated accordingly (groditi)
408 - added tests for this
409 - it is now possible to make anon-enums by passing 'enum' an
410 ARRAY ref instead of the $name => @values. Everything else
412 - added tests for this
415 - making test for using '+name' on attributes consumed
416 from a role, it works and makes sense too.
418 * Moose::Meta::Attribute
419 - fix handles so that it doesn't return nothing
420 when the method cannot be found, not sure why
421 it ever did this originally, this means we now
422 have slightly better support for AUTOLOADed
424 - added more delegation tests
425 - adding ->does method to this so as to better
426 support traits and their introspection.
427 - added tests for this
430 - localizing the Data::Dumper configurations so
431 that it does not pollute others (RT #33509)
432 - made ->does a little more forgiving when it is
433 passed Class::MOP era metaclasses.
435 0.38 Fri. Feb. 15, 2008
436 * Moose::Meta::Attribute
437 - fixed initializer to correctly do
438 type checking and coercion in the
440 - added tests for this
443 - fixed some finicky tests (thanks to konobi)
445 0.37 Thurs. Feb. 14, 2008
447 - fixed some details in Moose::init_meta
448 and its superclass handling (thanks thepler)
449 - added tests for this (thanks thepler)
450 - 'has' now dies if you don't pass in name
452 - added the 'make_immutable' keyword as a shortcut
456 Moose::Meta::Method::Constructor
457 Moose::Meta::Attribute
458 - making (init_arg => undef) work here too
459 (thanks to nothingmuch)
461 * Moose::Meta::Attribute
462 Moose::Meta::Method::Constructor
463 Moose::Meta::Method::Accessor
464 - make lazy attributes respect attr initializers (rjbs)
465 - added tests for this
467 * Moose::Util::TypeConstraints
468 Moose::Util::TypeConstraints::OptimizedConstraints
469 Moose::Meta::TypeConstraints
470 Moose::Meta::Attribute
471 Moose::Meta::Method::Constructor
472 Moose::Meta::Method::Accessor
473 - making type errors use the
474 assigned message (thanks to Sartak)
475 - added tests for this
477 * Moose::Meta::Method::Destructor
478 - making sure DESTROY gets inlined properly
479 with successive DEMOLISH calls (thanks to manito)
481 * Moose::Meta::Attribute
482 Moose::Meta::Method::Accessor
483 - fixed handling of undef with type constraints
485 - added tests for this
488 - added &get_all_init_args and &get_all_attribute_values
489 (thanks to Sartak and nothingmuch)
491 0.36 Sat. Jan. 26, 2008
493 Moose::Meta::Attribute
494 - role type tests now support when roles are
495 applied to non-Moose classes (found by ash)
496 - added tests for this (thanks to ash)
497 - couple extra tests to boost code coverage
499 * Moose::Meta::Method::Constructor
500 - improved fix for handling Class::MOP attributes
501 - added test for this
504 - handled the add_attribute($attribute_meta_object)
506 - added test for this
508 0.35 Tues. Jan. 22, 2008
509 * Moose::Meta::Method::Constructor
510 - fix to make sure even Class::MOP attributes
511 are handled correctly (Thanks to Dave Rolsky)
512 - added test for this (also Dave Rolsky)
515 - improved error message on _apply_all_roles,
516 you should now use Moose::Util::apply_all_roles
517 and you shouldnt have been using a _ prefixed
518 method in the first place ;)
520 0.34 Mon. Jan. 21, 2008
521 ~~~ more misc. doc. fixes ~~~
522 ~~ updated copyright dates ~~
524 Moose is now a postmodern object system :)
525 - (see the POD for details)
527 * <<Role System Refactoring>>
528 - this release contains a major reworking and
529 cleanup of the role system
530 - 100% backwards compat.
531 - Role application now restructured into seperate
532 classes based on type of applicants
533 - Role summation (combining of more than one role)
534 is much cleaner and anon-classes are no longer
536 - new Composite role metaclass
537 - runtime application of roles to instances
538 is now more efficient and re-uses generated
539 classes when applicable
541 * <<New Role composition features>>
542 - methods can now be excluded from a given role
544 - methods can now be aliased to another name (and
545 still retain the original as well)
547 * Moose::Util::TypeConstraints::OptimizedConstraints
548 - added this module (see above)
551 - fixed the &_process_attribute method to be called
552 by &add_attribute, so that the API is now correct
554 * Moose::Meta::Method::Accessor
555 - fixed bug when passing a list of values to
556 an accessor would get (incorrectly) ignored.
557 Thanks to Sartak for finding this ;)
558 - added tests for this (Sartak again)
560 * Moose::Meta::Method::Accessor
561 Moose::Meta::Method::Constructor
562 Moose::Meta::Attribute
563 Moose::Meta::TypeConstraint
564 Moose::Meta::TypeCoercion
565 - lots of cleanup of such things as:
567 - type constraint handling
568 - error handling/messages
569 (thanks to nothingmuch)
571 * Moose::Meta::TypeConstraint::Parameterizable
572 - added this module to support the refactor
573 in Moose::Meta::TypeConstraint::Parameterized
575 * Moose::Meta::TypeConstraint::Parameterized
576 - refactored how these types are handled so they
577 are more generic and not confined to ArrayRef
581 - shortened some file names for better VMS support (RT #32381)
583 0.33 Fri. Dec. 14, 2007
584 !! Moose now loads 2 x faster !!
585 !! with new Class::MOP 0.49 !!
587 ++ new oose.pm module to make command line
588 Moose-ness easier (see POD docs for more)
592 - several tweaks to take advantage of the
593 new method map caching in Class::MOP
595 * Moose::Meta::TypeConstraint::Parameterized
596 - allow subtypes of ArrayRef and HashRef to
597 be used as a container (sartak)
598 - added tests for this
599 - basic support for coercion to ArrayRef and
600 HashRef for containers (sartak)
601 - added tests for this
603 * Moose::Meta::TypeCoercion
604 - coercions will now create subtypes as needed
605 so you can now add coercions to parameterized
606 types without having to explictly define them
607 - added tests for this
609 * Moose::Meta::Method::Accessor
610 - allow subclasses to decide whether we need
611 to copy the value into a new variable (sartak)
613 0.32 Tues. Dec. 4, 2007
614 * Moose::Util::TypeConstraints
615 - fixing how subtype aliases of unions work
616 they should inherit the parent's coercion
617 - added tests for this
618 - you can now define multiple coercions on
619 a single type at different times instead of
620 having to do it all in one place
621 - added tests for this
623 * Moose::Meta::TypeConstraint
624 - there is now a default constraint of sub { 1 }
625 instead of Moose::Util::TypeConstraints setting
628 * Moose::Meta::TypeCoercion
629 * Moose::Meta::TypeCoercion::Union
630 - added the &has_coercion_for_type and
631 &add_type_coercions methods to support the
632 new features above (although you cannot add
633 more type coercions for Union types)
635 0.31 Mon. Nov. 26, 2007
636 * Moose::Meta::Attribute
637 - made the +attr syntax handle extending types with
638 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
639 now works if the original foo is an ArrayRef.
640 - added tests for this.
641 - delegation now works even if the attribute does not
642 have a reader method using the get_read_method_ref
643 method from Class::MOP::Attribute.
644 - added tests for this
645 - added docs for this
647 * Moose::Util::TypeConstraints
648 - passing no "additional attribute info" to
649 &find_or_create_type_constraint will no longer
650 attempt to create an __ANON__ type for you,
651 instead it will just return undef.
652 - added docs for this
654 0.30 Fri. Nov. 23, 2007
655 * Moose::Meta::Method::Constructor
656 -builder related bug in inlined constructor. (groditi)
658 * Moose::Meta::Method::Accessor
659 - genereate unnecessary calls to predicates and refactor
660 code generation for runtime speed (groditi)
662 * Moose::Util::TypeConstraints
663 - fix ClassName constraint to introspect symbol table (mst)
664 - added more tests for this (mst)
665 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
667 - added tests for this
670 - adding the link to Recipie 11 (written by Sartak)
671 - adding test for SYNOPSIS code
674 - New tests for builder bug. Upon instantiation, if an
675 attribute had a builder, no value and was not lazy the
676 builder default was not getting run, oops. (groditi)
678 0.29 Tues. Nov. 13, 2007
679 * Moose::Meta::Attribute
680 - Fix error message on missing builder method (groditi)
682 * Moose::Meta::Method::Accessor
683 - Fix error message on missing builder method (groditi)
686 - Add test to check for the correct error message when
687 builder method is missing (groditi)
689 0.28 Tues. Nov. 13, 2007
690 - 0.27 packaged incorrectly (groditi)
692 0.27 Tues. Nov. 13, 2007
693 * Moose::Meta::Attribute
694 - Added support for the new builder option (groditi)
695 - Added support for lazy_build option (groditi)
696 - Changed slot initialization for predicate changes (groditi)
698 * Moose::Meta::Method::Accessor
699 - Added support for lazy_build option (groditi)
700 - Fix inline methods to work with corrected predicate
703 * Moose::Meta::Method::Constructor
704 - Added support for lazy_build option (groditi)
707 - tests for builder and lazy_build (groditi)
709 * fixing some misc. bits in the docs that
710 got mentioned on CPAN Forum & perlmonks
713 - fixed how required methods are handled
714 when they encounter overriden or modified
715 methods from a class (thanks to confound).
716 - added tests for this
718 * Moose::Util::TypeConstraint
719 - fixed the type notation parser so that
720 the | always creates a union and so is
721 no longer a valid type char (thanks to
722 konobi, mugwump and #moose for working
724 - added more tests for this
726 0.26 Thurs. Sept. 27, 2007
729 * Parameterized Types
730 We now support parameterized collection types, such as:
731 ArrayRef[Int] # array or integers
732 HashRef[Object] # a hash with object values
733 They can also be nested:
734 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
735 And work with the type unions as well:
736 ArrayRef[Int | Str] # array of integers of strings
738 * Better Framework Extendability
739 Moose.pm is now "extendable" such that it is now much
740 easier to extend the framework and add your own keywords
741 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
742 section of the Moose.pm docs.
745 In an effort to begin documenting some of the various
746 details of Moose as well as some common idioms, we have
747 created Moose::Cookbook::Snacks as a place to find
748 small (easily digestable) nuggets of Moose code.
751 ~ Several doc updates/cleanup thanks to castaway ~
753 - converted build system to use Module::Install instead of
754 Module::Build (thanks to jrockway)
757 - added all the meta classes to the immutable list and
758 set it to inline the accessors
759 - fix import to allow Sub::Exporter like { into => }
760 and { into_level => } (perigrin)
761 - exposed and documented init_meta() to allow better
762 embedding and extending of Moose (perigrin)
765 - complete re-organization of the test suite
766 - added some new tests as well
767 - finally re-enabled the Moose::POOP test since
768 the new version of DBM::Deep now works again
772 - fixed very odd and very nasty recursion bug with
774 - added tests for this (eilara)
776 * Moose::Meta::Attribute
777 Moose::Meta::Method::Constructor
778 Moose::Meta::Method::Accessor
779 - fixed issue with overload::Overloaded getting called
780 on non-blessed items. (RT #29269)
781 - added tests for this
783 * Moose::Meta::Method::Accessor
784 - fixed issue with generated accessor code making
785 assumptions about hash based classes (thanks to dexter)
787 * Moose::Coookbook::Snacks
788 - these are bits of documentation, not quite as big as
789 Recipes but which have no clear place in the module docs.
790 So they are Snacks! (horray for castaway++)
792 * Moose::Cookbook::Recipe4
793 - updated it to use the new ArrayRef[MyType] construct
794 - updated the accompanying test as well
796 +++ Major Refactor of the Type Constraint system +++
797 +++ with new features added as well +++
799 * Moose::Util::TypeConstraint
800 - no longer uses package variable to keep track of
801 the type constraints, now uses the an instance of
802 Moose::Meta::TypeConstraint::Registry to do it
803 - added more sophisticated type notation parsing
805 - added tests for this
807 * Moose::Meta::TypeConstraint
808 - some minor adjustments to make subclassing easier
809 - added the package_defined_in attribute so that we
810 can track where the type constraints are created
812 * Moose::Meta::TypeConstraint::Union
813 - this is now been refactored to be a subclass of
814 Moose::Meta::TypeConstraint
816 * Moose::Meta::TypeCoercion::Union
817 - this has been added to service the newly refactored
818 Moose::Meta::TypeConstraint::Union and is itself
819 a subclass of Moose::Meta::TypeCoercion
821 * Moose::Meta::TypeConstraint::Parameterized
822 - added this module (taken from MooseX::AttributeHelpers)
823 to help construct nested collection types
824 - added tests for this
826 * Moose::Meta::TypeConstraint::Registry
827 - added this class to keep track of type constraints
829 0.25 Mon. Aug. 13, 2007
831 - Documentation update to reference Moose::Util::TypeConstraints
832 under 'isa' in 'has' for how to define a new type
835 * Moose::Meta::Attribute
836 - required attributes now will no longer accept undef
837 from the constructor, even if there is a default and lazy
838 - added tests for this
839 - default subroutines must return a value which passes the
841 - added tests for this
843 * Moose::Meta::Attribute
844 * Moose::Meta::Method::Constructor
845 * Moose::Meta::Method::Accessor
846 - type-constraint tests now handle overloaded objects correctly
848 - added tests for this (thanks to EvanCarroll)
850 * Moose::Meta::TypeConstraint::Union
851 - added (has_)hand_optimized_constraint to this class so that
852 it behaves as the regular Moose::Meta::TypeConstraint does.
855 - large refactoring of this code
856 - added several more tests
857 - tests for subtle conflict resolition issues
858 added, but not currently running
861 * Moose::Cookbook::Recipe7
862 - added new recipe for augment/inner functionality
864 - added test for this
867 - a formal definition of roles (still in progress)
870 - utilities for easier working with Moose classes
871 - added tests for these
874 - This contains Moose specific test functions
875 - added tests for these
877 0.24 Tues. July 3, 2007
878 ~ Some doc updates/cleanup ~
880 * Moose::Meta::Attribute
881 - added support for roles to be given as parameters
882 to the 'handles' option.
883 - added tests and docs for this
884 - the has '+foo' attribute form now accepts changes to
885 the lazy option, and the addition of a handles option
886 (but not changing the handles option)
887 - added tests and docs for this
890 - required methods are now fetched using find_method_by_name
891 so that required methods can come from superclasses
892 - adjusted tests for this
894 0.23 Mon. June 18, 2007
895 * Moose::Meta::Method::Constructor
896 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
898 - Modify make_immutable to work with the new Class::MOP immutable
899 mechanism + POD + very basic test (groditi)
900 * Moose::Meta::Attribute
901 - Fix handles to use goto() so that caller() comes out properly on
902 the other side (perigrin)
904 0.22 Thurs. May 31, 2007
905 * Moose::Util::TypeConstraints
906 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
907 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
908 prototypes for functions
909 - added the ClassName type constraint, this checks for strings
910 which will respond true to ->isa(UNIVERSAL).
911 - added tests and docs for this
912 - subtyping just in name now works correctly by making the
913 default for where be { 1 }
914 - added test for this
916 * Moose::Meta::Method::Accessor
917 - coerce and lazy now work together correctly, thanks to
918 merlyn for finding this bug
919 - tests added for this
920 - fix reader presedence bug in Moose::Meta::Attribute + tests
923 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
924 a HASH-ref and missed. This produces better error messages then
925 having it die cause undef is not a HASH.
926 - added tests for this
928 0.21 Thursday, May 2nd, 2007
930 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
931 - modified unimport to remove super and inner along with the rest
932 - altered unimport tests to handle this
935 - altered super export to populate SUPER_SLOT
938 - altered augment and override modifier application to use *_SLOT
939 - modified tests for these to unimport one test class each to test
942 - fixed issue where custom attribute metaclasses
943 where not handled correctly in roles
944 - added tests for this
947 - fixed issue where extending metaclasses with
948 roles would blow up. Thanks to Aankhen`` for
949 finding this insidious error, and it's solution.
951 ~~ lots of spelling and grammer fixes in the docs,
952 many many thanks to rlb3 and Aankhen for these :)
954 0.20 Friday, April 6th, 2007
955 >> I messed up the SKIP logic in one test
956 so this release is just to fix that.
959 - 'has' now also accepts an ARRAY ref
960 to create multiple attrs (see docs)
961 (thanks to konobi for this)
962 - added tests and docs
964 0.19 Thurs. April 5th, 2007
965 ~~ More documentation updates ~~
967 * Moose::Util::TypeConstraints
968 - 'type' now supports messages as well
969 thanks to phaylon for finding this
970 - added tests for this
971 - added &list_all_type_constraints and
972 &list_all_builtin_type_constraints
973 functions to facilitate introspection.
975 * Moose::Meta::Attribute
976 - fixed regexp 'handles' declarations
977 to build the list of delegated methods
978 correctly (and not override important
979 things like &new) thanks to ashleyb
981 - added tests and docs for this
982 - added the 'documentation' attributes
983 so that you can actually document your
984 attributes and inspect them through the
986 - added tests and docs for this
989 - when loading custom attribute metaclasses
990 it will first look in for the class in the
991 Moose::Meta::Attribute::Custom::$name, and
992 then default to just loading $name.
993 - added tests and docs for this
995 * Moose::Meta::TypeConstraint
996 - type constraints now stringify to their names.
997 - added test for this
1000 - added tests to assure we work with Module::Refresh
1001 - added stricter test skip logic in the Moose POOP
1002 test, ask Rob Kinyon why.
1003 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1005 0.18 Sat. March 10, 2007
1006 ~~ Many, many documentation updates ~~
1009 - We now use Class::MOP::load_class to
1011 - added tests to show types and subtypes
1012 working with Declare::Constraints::Simple
1013 and Test::Deep as constraint engines.
1016 !! You must have Class::MOP 0.37_001 !!
1017 !! for this developer release to work !!
1019 This release was primarily adding the immutable
1020 feature to Moose. An immutable class is one which
1021 you promise not to alter. When you set the class
1022 as immutable it will perform various bits of
1023 memoization and inline certain part of the code
1024 (constructors, destructors and accessors). This
1025 minimizes (and in some cases totally eliminates)
1026 one of Moose's biggest performance hits. This
1027 feature is not on by default, and is 100% optional.
1028 It has several configurable bits as well, so you
1029 can pick and choose to your specific needs.
1031 The changes involved in this were fairly wide and
1032 highly specific, but 100% backwards compatible, so
1033 I am not going to enumerate them here. If you are
1034 truely interested in what was changed, please do
1037 0.17 Tues. Nov. 14, 2006
1038 * Moose::Meta::Method::Accessor
1039 - bugfix for read-only accessors which
1040 are have a type constraint and lazy.
1041 Thanks to chansen for finding it.
1043 0.16 Tues. Nov. 14, 2006
1045 There are some speed improvements in this release,
1046 but they are only the begining, so stay tuned.
1049 - BUILDALL and DEMOLISHALL no longer get
1050 called unless they actually need to be.
1051 This gave us a signifigant speed boost
1052 for the cases when there is no BUILD or
1053 DEMOLISH method present.
1055 * Moose::Util::TypeConstraints
1056 * Moose::Meta::TypeConstraint
1057 - added an 'optimize_as' option to the
1058 type constraint, which allows for a
1059 hand optimized version of the type
1060 constraint to be used when possible.
1061 - Any internally created type constraints
1062 now provide an optimized version as well.
1064 0.15 Sun. Nov. 5, 2006
1066 This version of Moose *must* have Class::MOP 0.36 in order
1067 to work correctly. A number of small internal tweaks have
1068 been made in order to be compatible with that release.
1070 * Moose::Util::TypeConstraints
1071 - added &unimport so that you can clean out
1072 your class namespace of these exported
1075 * Moose::Meta::Class
1076 - fixed minor issue which occasionally
1077 comes up during global destruction
1079 - moved Moose::Meta::Method::Overriden into
1083 - moved Moose::Meta::Role::Method into
1086 * Moose::Meta::Attribute
1087 - changed how we do type checks so that
1088 we reduce the overall cost, but still
1091 - moved accessor generation methods to
1092 Moose::Meta::Method::Accessor to
1093 conform to the API changes from
1096 * Moose::Meta::TypeConstraint
1097 - changed how constraints are compiled
1098 so that we do less recursion and more
1099 iteration. This makes the type check
1101 - moved Moose::Meta::TypeConstraint::Union
1104 * Moose::Meta::Method::Accessor
1105 - created this from methods formerly found in
1106 Moose::Meta::Attribute
1108 * Moose::Meta::Role::Method
1109 - moved this from Moose::Meta::Role
1111 * Moose::Meta::Method::Overriden
1112 - moved this from Moose::Meta::Class
1114 * Moose::Meta::TypeConstraint::Union
1115 - moved this from Moose::Meta::TypeConstraint
1117 0.14 Mon. Oct. 9, 2006
1119 * Moose::Meta::Attribute
1120 - fixed lazy attributes which were not getting
1121 checked with the type constraint (thanks ashley)
1122 - added tests for this
1123 - removed the over-enthusiastic DWIMery of the
1124 automatic ArrayRef and HashRef defaults, it
1125 broke predicates in an ugly way.
1126 - removed tests for this
1128 0.13 Sat. Sept. 30, 2006
1130 This version of Moose *must* have Class::MOP 0.35 in order
1131 to work correctly. A number of small internal tweaks have
1132 been made in order to be compatible with that release.
1135 - Removed the use of UNIVERSAL::require to be a better
1136 symbol table citizen and remove a dependency
1137 (thanks Adam Kennedy)
1139 **~~ removed experimental & undocumented feature ~~**
1140 - commented out the 'method' and 'self' keywords, see the
1141 comments for more info.
1144 - added a FAQ and WTF files to document frequently
1145 asked questions and common problems
1147 * Moose::Util::TypeConstraints
1148 - added GlobRef and FileHandle type constraint
1149 - added tests for this
1151 * Moose::Meta::Attribute
1152 - if your attribute 'isa' ArrayRef of HashRef, and you have
1153 not explicitly set a default, then make the default DWIM.
1154 This will also work for subtypes of ArrayRef and HashRef
1156 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1157 - new test added for this (thanks to ashley)
1160 - added basic support for runtime role composition
1161 but this is still *highly experimental*, so feedback
1162 is much appreciated :)
1163 - added tests for this
1165 * Moose::Meta::TypeConstraint
1166 - the type constraint now handles the coercion process
1167 through delegation, this is to support the coercion
1170 * Moose::Meta::TypeConstraint::Union
1171 - it is now possible for coercions to be performed
1173 - added tests for this (thanks to konobi)
1175 * Moose::Meta::TypeCoercion
1176 - properly capturing error when type constraint
1180 - Scalar::Util 1.18 is bad on Win32, so temporarily
1181 only require version 1.17 for Win32 and cygwin.
1182 (thanks Adam Kennedy)
1184 0.12 Sat. Sept. 1, 2006
1186 - Recipe5 (subtypes & coercion) has been written
1189 - fixed "bad meta" error message to be more descriptive
1190 - fixed &unimport to not remove the &inner and &super
1191 keywords because we need to localize them.
1192 - fixed number of spelling/grammer issues, thanks Theory :)
1194 **~~ experimental & undocumented feature ~~**
1195 - added the method and self keywords, they are basically
1196 just sugar, and they may not stay around.
1199 - added &dump method to easily Data::Dumper
1202 * Moose::Meta::TypeConstraint
1203 - added the &is_a_type_of method to check both the current
1204 and the subtype of a method (similar to &isa with classes)
1207 - this is now a subclass of Class::MOP::Module, and no longer
1208 creates the _role_meta ugliness of before.
1209 - fixed tests to reflect this change
1211 0.11 Wed. July 12, 2006
1213 - added an &unimport method to remove all the keywords
1214 that Moose will import, simply add 'no Moose' to the
1215 bottom of your class file.
1218 - fixed some test failures caused by a forgotten test
1221 0.10 Thurs. July 6, 2006
1223 - improved error message when loading modules so
1224 it is less confusing when you load a role.
1225 - added &calculate_all_roles method to
1226 Moose::Meta::Class and Moose::Meta::Role
1229 This module has been tested against Class::MOP 0.30
1230 but it does not yet utilize the optimizations
1231 it makes available. Stay tuned for that ;)
1233 0.09_03 Fri. June 23, 2006
1234 ++ DEVELOPER RELEASE ++
1236 - 'use strict' and 'use warnings' are no longer
1237 needed in Moose classes, Moose itself will
1238 turn them on for you.
1239 - added tests for this
1240 - moved code from exported subs to private methods
1241 in Moose::Meta::Class
1244 - as with Moose, strict and warnings are
1245 automatically turned on for you.
1246 - added tests for this
1249 - now handles an edge case for override errors
1250 - added tests for this
1251 - added some more edge case tests
1253 0.09_02 Tues. May 16, 2006
1254 ++ DEVELOPER RELEASE ++
1256 - added prototypes to the exported subs
1260 - added prototypes to the exported subs
1263 * Moose::Util::TypeConstraints
1264 - cleaned up prototypes for the subs
1267 0.09_01 Fri. May 12, 2006
1268 ++ DEVELOPER RELEASE ++
1269 - This release works in combination with
1270 Class::MOP 0.29_01, it is a developer
1271 release because it uses the a new
1272 instance sub-protocol and a fairly
1273 complete Role implementation. It has
1274 not yet been optimized, so it slower
1275 the the previous CPAN version. This
1276 release also lacks good updated docs,
1277 the official release will have updated docs.
1280 - refactored the keyword exports
1281 - 'with' now checks Role validaity and
1282 accepts more than one Role at a time
1283 - 'extends' makes metaclass adjustments as
1284 needed to ensure metaclass compatability
1287 - refactored the keyword exports
1288 - 'with' now checks Role validaity and
1289 accepts more than one Role at a time
1291 * Moose::Util::TypeConstraints
1292 - added the 'enum' keyword for simple
1293 string enumerations which can be used as
1295 - see example of usage in t/202_example.t
1298 - more careful checking of params to new()
1301 - much work done on the role composition
1302 - many new tests for conflict detection
1303 and composition edge cases
1304 - not enough documentation, I suggest
1305 looking at the tests
1307 * Moose::Meta::Instance
1308 - added new Instance metaclass to support
1309 the new Class::MOP instance protocol
1311 * Moose::Meta::Class
1312 - some small changes to support the new
1314 - some small additions to support Roles
1316 * Moose::Meta::Attribute
1317 - some improvements to the accessor generation code
1319 - some small changes to support the new
1321 - (still somewhat) experimental delegation support
1322 with the 'handles' option
1323 - added several tests for this
1324 - no docs for this yet
1326 0.05 Thurs. April 27, 2006
1328 - keywords are now exported with Sub::Exporter
1329 thanks to chansen for this commit
1330 - has keyword now takes a 'metaclass' option
1331 to support custom attribute meta-classes
1332 on a per-attribute basis
1333 - added tests for this
1334 - the 'has' keyword not accepts inherited slot
1335 specifications (has '+foo'). This is still an
1336 experimental feature and probably not finished
1337 see t/038_attribute_inherited_slot_specs.t for
1338 more details, or ask about it on #moose
1339 - added tests for this
1342 - keywords are now exported with Sub::Exporter
1344 * Moose::Utils::TypeConstraints
1345 - reorganized the type constraint hierarchy, thanks
1346 to nothingmuch and chansen for his help and advice
1348 - added some tests for this
1349 - keywords are now exported with Sub::Exporter
1350 thanks to chansen for this commit
1352 * Moose::Meta::Class
1353 - due to changes in Class::MOP, we had to change
1354 construct_instance (for the better)
1356 * Moose::Meta::Attribute
1357 - due to changes in Class::MOP, we had to add the
1358 initialize_instance_slot method (it's a good thing)
1360 * Moose::Meta::TypeConstraint
1361 - added type constraint unions
1362 - added tests for this
1363 - added the is_subtype_of predicate method
1364 - added tests for this
1366 0.04 Sun. April 16th, 2006
1368 - Roles can now consume other roles
1369 - added tests for this
1370 - Roles can specify required methods now with
1371 the requires() keyword
1372 - added tests for this
1375 - ripped out much of it's guts ,.. much cleaner now
1376 - added required methods and correct handling of
1377 them in apply() for both classes and roles
1378 - added tests for this
1379 - no longer adds a does() method to consuming classes
1380 it relys on the one in Moose::Object
1381 - added roles attribute and some methods to support
1382 roles consuming roles
1384 * Moose::Meta::Attribute
1385 - added support for triggers on attributes
1386 - added tests for this
1387 - added support for does option on an attribute
1388 - added tests for this
1390 * Moose::Meta::Class
1391 - added support for attribute triggers in the
1393 - added tests for this
1396 - Moose no longer creates a subtype for your class
1397 if a subtype of the same name already exists, this
1398 should DWIM in 99.9999% of all cases
1400 * Moose::Util::TypeConstraints
1401 - fixed bug where incorrect subtype conflicts were
1403 - added test for this
1406 - this class can now be extended with 'use base' if
1407 you need it, it properly loads the metaclass class now
1408 - added test for this
1410 0.03_02 Wed. April 12, 2006
1412 - you must now explictly use Moose::Util::TypeConstraints
1413 it no longer gets exported for you automatically
1416 - new() now accepts hash-refs as well as key/value lists
1417 - added does() method to check for Roles
1418 - added tests for this
1420 * Moose::Meta::Class
1421 - added roles attribute along with the add_role() and
1423 - added tests for this
1426 - now adds a does() method to consuming classes
1427 which tests the class's hierarchy for roles
1428 - added tests for this
1430 0.03_01 Mon. April 10, 2006
1432 - added new Role recipe (no content yet, only code)
1435 - added 'with' keyword for Role support
1436 - added test and docs for this
1437 - fixed subtype quoting bug
1438 - added test for this
1442 - added test and docs
1444 * Moose::Util::TypeConstraints
1445 - added the message keyword to add custom
1446 error messages to type constraints
1449 - the meta role to support Moose::Role
1450 - added tests and docs
1452 * Moose::Meta::Class
1453 - moved a number of things from Moose.pm
1454 to here, they should have been here
1457 * Moose::Meta::Attribute
1458 - moved the attribute option macros here
1459 instead of putting them in Moose.pm
1461 * Moose::Meta::TypeConstraint
1462 - added the message attributes and the
1464 - added tests and docs for this
1466 0.03 Thurs. March 30, 2006
1468 - added the Moose::Cookbook with 5 recipes,
1469 describing all the stuff Moose can do.
1472 - fixed an issue with &extends super class loading
1473 it now captures errors and deals with inline
1474 packages correctly (bug found by mst, solution
1476 - added super/override & inner/augment features
1477 - added tests and docs for these
1480 - BUILDALL now takes a reference of the %params
1481 that are passed to &new, and passes that to
1484 * Moose::Util::TypeConstraints
1485 - Type constraints now survive runtime reloading
1486 - added test for this
1488 * Moose::Meta::Class
1489 - fixed the way attribute defaults are handled
1490 during instance construction (bug found by chansen)
1492 * Moose::Meta::Attribute
1493 - read-only attributes now actually enforce their
1494 read-only-ness (this corrected in Class::MOP as
1497 0.02 Tues. March 21, 2006
1499 - many more tests, fixing some bugs and
1501 - &extends now loads the base module with
1503 - added UNIVERSAL::require to the
1506 - each new Moose class will also create
1507 and register a subtype of Object which
1508 correspond to the new Moose class.
1509 - the 'isa' option in &has now only
1510 accepts strings, and will DWIM in
1513 * Moose::Util::TypeConstraints
1514 - added type coercion features
1515 - added tests for this
1516 - added support for this in attributes
1517 and instance construction
1519 - type construction no longer creates a
1520 function, it registers the type instead.
1521 - added several functions to get the
1525 - BUILDALL and DEMOLISHALL were broken
1526 because of a mis-named hash key, Whoops :)
1528 * Moose::Meta::Attribute
1529 - adding support for coercion in the
1530 autogenerated accessors
1532 * Moose::Meta::Class
1533 - adding support for coercion in the
1534 instance construction
1536 * Moose::Meta::TypeConstraint
1537 * Moose::Meta::TypeCoercion
1538 - type constraints and coercions are now
1539 full fledges meta-objects
1541 0.01 Wed. March 15, 2006
1542 - Moooooooooooooooooose!!!