1 Revision history for Perl extension Moose
4 * Moose::Meta::Attribute
5 - added legal_options_for_inheritance (wreis)
7 * Moose::Cookbook::Snacks::*
8 - removed some of the unfinished snacks that should
9 not have been released yet. Added some more examples
10 and explanation to the 'Keywords' snack. (stevan)
13 - added "FEATURE REQUESTS" section to the Moose docs
14 to properly direct people (stevan) (RT #34333)
15 - making 'extends' croak if it is passed a Role since
16 this is not ever something you want to do
17 (fixed by stevan, found by obra)
18 - added tests for this (stevan)
20 * Moose::Cookbook::Style
21 - added general Moose "style guide" of sorts to the
22 cookbook (nothingmuch) (RT #34335)
25 - added more BUILDARGS tests (stevan)
27 0.51 Thurs. Jun 26, 2008
29 - add unimport so "no Moose::Role" actually does
32 * Moose::Meta::Role::Application::ToRole
33 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
34 order to provide its own implementation, that method still got
35 added to the list of required methods for consumers of
36 RoleB. Now an aliased method is only added to the list of
37 required methods if the role doing the aliasing does not
38 provide its own implementation. See Recipe 11 for an example
39 of all this. (Dave Rolsky)
40 - added tests for this
42 * Moose::Meta::Method::Constructor
43 - when a single argument that wasn't a hashref was provided to
44 an immutabilized constructor, the error message was very
45 unhelpful, as opposed to the non-immutable error. Reported by
47 - added test for this (Dave Rolsky)
49 * Moose::Meta::Attribute
50 - added support for meta_attr->does("ShortAlias") (sartak)
51 - added tests for this (sartak)
52 - moved the bulk of the `handles` handling to the new
53 install_delegation method (Stevan)
56 - Added BUILDARGS, a new step in new()
58 * Moose::Meta::Role::Application::RoleSummation
59 - fix typos no one ever sees (sartak)
61 * Moose::Util::TypeConstraints
62 * Moose::Meta::TypeConstraint
63 * Moose::Meta::TypeCoercion
64 - Attempt to work around the ??{ } vs. threads issue
66 - Some null_constraint optimizations
68 0.50 Thurs. Jun 11, 2008
69 - Fixed a version number issue by bumping all modules
72 0.49 Thurs. Jun 11, 2008
73 !! This version now approx. 20-25% !!
74 !! faster with new Class::MOP 0.59 !!
76 * Moose::Meta::Attribute
77 - fixed how the is => (ro|rw) works with
78 custom defined reader, writer and accessor
80 - added docs for this (TODO).
81 - added tests for this (Thanks to Penfold)
82 - added the custom attribute alias for regular
83 Moose attributes which is "Moose"
84 - fix builder and default both being used
89 Moose::Meta::Attribute
91 Moose::Meta::Role::Composite
92 Moose::Util::TypeConstraints
93 - switched usage of reftype to ref because
97 - changing add_package_symbol to use the new
101 - fixed how DEMOLISHALL is called so that it
102 can be overrided in subclasses (thanks to Sartak)
103 - added test for this (thanks to Sartak)
105 * Moose::Util::TypeConstraints
106 - move the ClassName type check code to
107 Class::MOP::is_class_loaded (thanks to Sartak)
109 * Moose::Cookbook::Recipe11
110 - add tests for this (thanks to tokuhirom)
112 0.48 Thurs. May 29, 2008
113 (early morning release engineering)--
115 - fixing the version in Moose::Meta::Method::Destructor
116 which was causing the indexer to choke
118 0.47 Thurs. May 29, 2008
119 (late night release engineering)--
121 - fixing the version is META.yml, no functional
122 changes in this release
124 0.46 Wed. May 28, 2008
125 !! This version now approx. 20-25% !!
126 !! faster with new Class::MOP 0.57 !!
129 - some optimizations of the &initialize method
130 since it is called so often by &meta
134 - now use the get_all_package_symbols from the
135 updated Class::MOP, test suite is now 10 seconds
138 * Moose::Meta::Method::Destructor
139 - is_needed can now also be called as a class
140 method for immutablization to check if the
141 destructor object even needs to be created
144 * Moose::Meta::Method::Destructor
145 Moose::Meta::Method::Constructor
146 - added more descriptive error message to help
147 keep people from wasting time tracking an error
148 that is easily fixed by upgrading.
150 0.45 Saturday, May 24, 2008
152 - Because of work in Class::MOP 0.56, all
153 XS based functionality is now optional
154 and a Pure Perl version is supplied
155 - the CLASS_MOP_NO_XS environment variable
156 can now be used to force non-XS versions
158 - several of the packages have been tweaked
159 to take care of this, mostly we added
160 support for the package_name and name
161 variables in all the Method metaclasses
162 - before/around/after method modifiers now
163 support regexp matching of names
164 (thanks to Takatoshi Kitano)
165 - tests added for this
166 - NOTE: this only works for classes, it
167 is currently not supported in roles,
168 but, ... patches welcome
169 - All usage of Carp::confess have been replaced
170 by Carp::croak in the "keyword" functions since
171 the stack trace is usually not helpful
174 - All usage of Carp::confess have been replaced
175 by Carp::croak in the "keyword" functions since
176 the stack trace is usually not helpful
177 - The 'has' keyword for roles now accepts the
178 same array ref form that Moose.pm does
179 (has [qw/foo bar/] => (is => 'rw', ...))
180 - added test for this
182 * Moose::Meta::Attribute
183 - trigger on a ro-attribute is no longer an
184 error, as it's useful to trigger off of the
188 - added same 'add_package_symbol' fix as in
192 - does_role now handles non-Moose classes
194 - added tests for this
195 - added the 'add_method_modifier' function
196 (thanks to Takatoshi Kitano)
198 * Moose::Util::TypeConstraints
199 - subtypes of parameterizable types now are
200 themselves parameterizable types
202 * Moose::Meta::Method::Constructor
203 - fixed bug where trigger was not being
204 called by the inlined immutable
206 - added test for this (thanks to Caelum)
208 * Moose::Meta::Role::Application::ToInstance
209 - now uses the metaclass of the instance
210 (if possible) to create the anon-class
211 (thanks Jonathan Rockway)
213 * Moose::Cookbook::Recipe22
214 - added the meta-attribute trait recipe
218 - fixed hash-ordering test bug that was
219 causing occasional cpantester failures
220 - renamed the t/000_recipe/*.t tests to be
221 more descriptive (thanks to Sartak)
223 0.44 Sat. May 10, 2008
225 - made make_immutable warning cluck to
226 show where the error is (thanks mst)
229 - BUILDALL and DEMOLISHALL now call
230 ->body when looping through the
231 methods, to avoid the overloaded
233 - fixed issue where DEMOLISHALL was
234 eating the $@ values, and so not
235 working correctly, it still kind of
236 eats them, but so does vanilla perl
237 - added tests for this
239 * Moose::Cookbook::Recipe7
240 - added new recipe for immutable
241 functionality (thanks Dave Rolsky)
243 * Moose::Cookbook::Recipe9
244 - added new recipe for builder and
245 lazy_build (thanks Dave Rolsky)
247 * Moose::Cookbook::Recipe11
248 - added new recipe for method aliasing
249 and exclusion with Roles (thanks Dave Rolsky)
252 - fixed Win32 test failure (thanks spicyjack)
254 ~ removed Build.PL and Module::Build compat
255 since Module::Install has done that.
257 0.43 Wed. April, 30, 2008
259 drink more coffee before
260 doing release engineering
262 - whoops, forgot to do the smolder tests,
263 and we broke some of the custom meta-attr
264 modules. This fixes that.
266 0.42 Mon. April 28, 2008
267 - some bad tests slipped by, nothing else
268 changed in this release (cpantesters++)
270 - upped the Class::MOP dependency to 0.55
271 since we have tests which need the C3
274 0.41 Mon. April 28, 2008
275 ~~ numerous documentation updates ~~
277 - Changed all usage of die to Carp::croak for better
278 error reporting (initial patch by Tod Hagan)
281 - the make_immutable keyword is now deprecated, don't
282 use it in any new code and please fix your old code
283 as well. There will be 2 releases, and then it will
289 - refactored the way inner and super work to avoid
290 any method/@ISA cache penalty (nothingmuch)
293 - fixing &new_object to make sure trigger gets the
294 coerced value (spotted by Charles Alderman on the
296 - added test for this
298 * Moose::Meta::Method::Constructor
299 - immutable classes which had non-lazy attributes were calling
300 the default generating sub twice in the constructor. (bug
301 found by Jesse Luehrs, fixed by Dave Rolsky)
302 - added tests for this (Dave Rolsky)
303 - fix typo in initialize_body method (nothingmuch)
305 * Moose::Meta::Method::Destructor
306 - fix typo in initialize_body method (nothingmuch)
308 * Moose::Meta::Method::Overriden
309 Moose::Meta::Method::Augmented
310 - moved the logic for these into their own
311 classes (nothingmuch)
313 * Moose::Meta::Attribute
314 - inherited attributes may now be extended without
315 restriction on the type ('isa', 'does') (Sartak)
316 - added tests for this (Sartak)
317 - when an attribute property is malformed (such as lazy without
318 a default), give the name of the attribute in the error
320 - added the &applied_traits and &has_applied_traits methods
321 to allow introspection of traits
322 - added tests for this
323 - moved 'trait' and 'metaclass' argument handling to here from
325 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
326 '+foo' syntax) (nothingmuch)
327 - added tests for this (t0m)
330 - localize $@ inside DEMOLISHALL to avoid it
331 eating $@ (found by Ernesto)
332 - added test for this (thanks to Ernesto)
334 * Moose::Util::TypeConstraints
335 - &find_type_constraint now DWIMs when given an
336 type constraint object or name (nothingmuch)
337 - &find_or_create_type_constraint superseded with a number of more
339 - find_or_create_{isa,does}_type_constraint
340 - find_or_parse_type_constraint
342 * Moose::Meta::TypeConstraint
343 Moose::Meta::TypeConstraint::Class
344 Moose::Meta::TypeConstraint::Role
345 Moose::Meta::TypeConstraint::Enum
346 Moose::Meta::TypeConstraint::Union
347 Moose::Meta::TypeConstraint::Parameterized
348 - added the &equals method for comparing two type
349 constraints (nothingmuch)
350 - added tests for this (nothingmuch)
352 * Moose::Meta::TypeConstraint
353 - add the &parents method, which is just an alias to &parent.
354 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
356 * Moose::Meta::TypeConstraint::Class
357 - added the class attribute for introspection purposes
359 - added tests for this
361 * Moose::Meta::TypeConstraint::Enum
362 Moose::Meta::TypeConstraint::Role
363 - broke these out into their own classes (nothingmuch)
365 * Moose::Cookbook::Recipe*
366 - fixed references to test file locations in the POD
367 and updated up some text for new Moose features
371 - Added &resolve_metaclass_alias, a helper function for finding an actual
372 class for a short name (e.g. in the traits list)
374 0.40 Fri. March 14, 2008
375 - I hate Pod::Coverage
377 0.39 Fri. March 14, 2008
379 - documenting the use of '+name' with attributes
380 that come from recently composed roles. It makes
381 sense, people are using it, and so why not just
382 officially support it.
383 - fixing the 'extends' keyword so that it will not
384 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
387 - added the perl -Moose=+Class::Name feature to allow
388 monkeypatching of classes in one liners
391 - fixing the 'apply_all_roles' keyword so that it will not
392 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
395 - added ->create method which now supports roles (thanks to jrockway)
396 - added tests for this
397 - added ->create_anon_class which now supports roles and caching of
398 the results (thanks to jrockway)
399 - added tests for this
400 - made ->does_role a little more forgiving when it is
401 checking a Class::MOP era metaclasses.
403 * Moose::Meta::Role::Application::ToInstance
404 - it is now possible to pass extra params to be used when
405 a role is applied to an the instance (rebless_params)
406 - added tests for this
408 * Moose::Util::TypeConstraints
409 - class_type now accepts an optional second argument for a
410 custom message. POD anotated accordingly (groditi)
411 - added tests for this
412 - it is now possible to make anon-enums by passing 'enum' an
413 ARRAY ref instead of the $name => @values. Everything else
415 - added tests for this
418 - making test for using '+name' on attributes consumed
419 from a role, it works and makes sense too.
421 * Moose::Meta::Attribute
422 - fix handles so that it doesn't return nothing
423 when the method cannot be found, not sure why
424 it ever did this originally, this means we now
425 have slightly better support for AUTOLOADed
427 - added more delegation tests
428 - adding ->does method to this so as to better
429 support traits and their introspection.
430 - added tests for this
433 - localizing the Data::Dumper configurations so
434 that it does not pollute others (RT #33509)
435 - made ->does a little more forgiving when it is
436 passed Class::MOP era metaclasses.
438 0.38 Fri. Feb. 15, 2008
439 * Moose::Meta::Attribute
440 - fixed initializer to correctly do
441 type checking and coercion in the
443 - added tests for this
446 - fixed some finicky tests (thanks to konobi)
448 0.37 Thurs. Feb. 14, 2008
450 - fixed some details in Moose::init_meta
451 and its superclass handling (thanks thepler)
452 - added tests for this (thanks thepler)
453 - 'has' now dies if you don't pass in name
455 - added the 'make_immutable' keyword as a shortcut
459 Moose::Meta::Method::Constructor
460 Moose::Meta::Attribute
461 - making (init_arg => undef) work here too
462 (thanks to nothingmuch)
464 * Moose::Meta::Attribute
465 Moose::Meta::Method::Constructor
466 Moose::Meta::Method::Accessor
467 - make lazy attributes respect attr initializers (rjbs)
468 - added tests for this
470 * Moose::Util::TypeConstraints
471 Moose::Util::TypeConstraints::OptimizedConstraints
472 Moose::Meta::TypeConstraints
473 Moose::Meta::Attribute
474 Moose::Meta::Method::Constructor
475 Moose::Meta::Method::Accessor
476 - making type errors use the
477 assigned message (thanks to Sartak)
478 - added tests for this
480 * Moose::Meta::Method::Destructor
481 - making sure DESTROY gets inlined properly
482 with successive DEMOLISH calls (thanks to manito)
484 * Moose::Meta::Attribute
485 Moose::Meta::Method::Accessor
486 - fixed handling of undef with type constraints
488 - added tests for this
491 - added &get_all_init_args and &get_all_attribute_values
492 (thanks to Sartak and nothingmuch)
494 0.36 Sat. Jan. 26, 2008
496 Moose::Meta::Attribute
497 - role type tests now support when roles are
498 applied to non-Moose classes (found by ash)
499 - added tests for this (thanks to ash)
500 - couple extra tests to boost code coverage
502 * Moose::Meta::Method::Constructor
503 - improved fix for handling Class::MOP attributes
504 - added test for this
507 - handled the add_attribute($attribute_meta_object)
509 - added test for this
511 0.35 Tues. Jan. 22, 2008
512 * Moose::Meta::Method::Constructor
513 - fix to make sure even Class::MOP attributes
514 are handled correctly (Thanks to Dave Rolsky)
515 - added test for this (also Dave Rolsky)
518 - improved error message on _apply_all_roles,
519 you should now use Moose::Util::apply_all_roles
520 and you shouldnt have been using a _ prefixed
521 method in the first place ;)
523 0.34 Mon. Jan. 21, 2008
524 ~~~ more misc. doc. fixes ~~~
525 ~~ updated copyright dates ~~
527 Moose is now a postmodern object system :)
528 - (see the POD for details)
530 * <<Role System Refactoring>>
531 - this release contains a major reworking and
532 cleanup of the role system
533 - 100% backwards compat.
534 - Role application now restructured into seperate
535 classes based on type of applicants
536 - Role summation (combining of more than one role)
537 is much cleaner and anon-classes are no longer
539 - new Composite role metaclass
540 - runtime application of roles to instances
541 is now more efficient and re-uses generated
542 classes when applicable
544 * <<New Role composition features>>
545 - methods can now be excluded from a given role
547 - methods can now be aliased to another name (and
548 still retain the original as well)
550 * Moose::Util::TypeConstraints::OptimizedConstraints
551 - added this module (see above)
554 - fixed the &_process_attribute method to be called
555 by &add_attribute, so that the API is now correct
557 * Moose::Meta::Method::Accessor
558 - fixed bug when passing a list of values to
559 an accessor would get (incorrectly) ignored.
560 Thanks to Sartak for finding this ;)
561 - added tests for this (Sartak again)
563 * Moose::Meta::Method::Accessor
564 Moose::Meta::Method::Constructor
565 Moose::Meta::Attribute
566 Moose::Meta::TypeConstraint
567 Moose::Meta::TypeCoercion
568 - lots of cleanup of such things as:
570 - type constraint handling
571 - error handling/messages
572 (thanks to nothingmuch)
574 * Moose::Meta::TypeConstraint::Parameterizable
575 - added this module to support the refactor
576 in Moose::Meta::TypeConstraint::Parameterized
578 * Moose::Meta::TypeConstraint::Parameterized
579 - refactored how these types are handled so they
580 are more generic and not confined to ArrayRef
584 - shortened some file names for better VMS support (RT #32381)
586 0.33 Fri. Dec. 14, 2007
587 !! Moose now loads 2 x faster !!
588 !! with new Class::MOP 0.49 !!
590 ++ new oose.pm module to make command line
591 Moose-ness easier (see POD docs for more)
595 - several tweaks to take advantage of the
596 new method map caching in Class::MOP
598 * Moose::Meta::TypeConstraint::Parameterized
599 - allow subtypes of ArrayRef and HashRef to
600 be used as a container (sartak)
601 - added tests for this
602 - basic support for coercion to ArrayRef and
603 HashRef for containers (sartak)
604 - added tests for this
606 * Moose::Meta::TypeCoercion
607 - coercions will now create subtypes as needed
608 so you can now add coercions to parameterized
609 types without having to explictly define them
610 - added tests for this
612 * Moose::Meta::Method::Accessor
613 - allow subclasses to decide whether we need
614 to copy the value into a new variable (sartak)
616 0.32 Tues. Dec. 4, 2007
617 * Moose::Util::TypeConstraints
618 - fixing how subtype aliases of unions work
619 they should inherit the parent's coercion
620 - added tests for this
621 - you can now define multiple coercions on
622 a single type at different times instead of
623 having to do it all in one place
624 - added tests for this
626 * Moose::Meta::TypeConstraint
627 - there is now a default constraint of sub { 1 }
628 instead of Moose::Util::TypeConstraints setting
631 * Moose::Meta::TypeCoercion
632 * Moose::Meta::TypeCoercion::Union
633 - added the &has_coercion_for_type and
634 &add_type_coercions methods to support the
635 new features above (although you cannot add
636 more type coercions for Union types)
638 0.31 Mon. Nov. 26, 2007
639 * Moose::Meta::Attribute
640 - made the +attr syntax handle extending types with
641 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
642 now works if the original foo is an ArrayRef.
643 - added tests for this.
644 - delegation now works even if the attribute does not
645 have a reader method using the get_read_method_ref
646 method from Class::MOP::Attribute.
647 - added tests for this
648 - added docs for this
650 * Moose::Util::TypeConstraints
651 - passing no "additional attribute info" to
652 &find_or_create_type_constraint will no longer
653 attempt to create an __ANON__ type for you,
654 instead it will just return undef.
655 - added docs for this
657 0.30 Fri. Nov. 23, 2007
658 * Moose::Meta::Method::Constructor
659 -builder related bug in inlined constructor. (groditi)
661 * Moose::Meta::Method::Accessor
662 - genereate unnecessary calls to predicates and refactor
663 code generation for runtime speed (groditi)
665 * Moose::Util::TypeConstraints
666 - fix ClassName constraint to introspect symbol table (mst)
667 - added more tests for this (mst)
668 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
670 - added tests for this
673 - adding the link to Recipie 11 (written by Sartak)
674 - adding test for SYNOPSIS code
677 - New tests for builder bug. Upon instantiation, if an
678 attribute had a builder, no value and was not lazy the
679 builder default was not getting run, oops. (groditi)
681 0.29 Tues. Nov. 13, 2007
682 * Moose::Meta::Attribute
683 - Fix error message on missing builder method (groditi)
685 * Moose::Meta::Method::Accessor
686 - Fix error message on missing builder method (groditi)
689 - Add test to check for the correct error message when
690 builder method is missing (groditi)
692 0.28 Tues. Nov. 13, 2007
693 - 0.27 packaged incorrectly (groditi)
695 0.27 Tues. Nov. 13, 2007
696 * Moose::Meta::Attribute
697 - Added support for the new builder option (groditi)
698 - Added support for lazy_build option (groditi)
699 - Changed slot initialization for predicate changes (groditi)
701 * Moose::Meta::Method::Accessor
702 - Added support for lazy_build option (groditi)
703 - Fix inline methods to work with corrected predicate
706 * Moose::Meta::Method::Constructor
707 - Added support for lazy_build option (groditi)
710 - tests for builder and lazy_build (groditi)
712 * fixing some misc. bits in the docs that
713 got mentioned on CPAN Forum & perlmonks
716 - fixed how required methods are handled
717 when they encounter overriden or modified
718 methods from a class (thanks to confound).
719 - added tests for this
721 * Moose::Util::TypeConstraint
722 - fixed the type notation parser so that
723 the | always creates a union and so is
724 no longer a valid type char (thanks to
725 konobi, mugwump and #moose for working
727 - added more tests for this
729 0.26 Thurs. Sept. 27, 2007
732 * Parameterized Types
733 We now support parameterized collection types, such as:
734 ArrayRef[Int] # array or integers
735 HashRef[Object] # a hash with object values
736 They can also be nested:
737 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
738 And work with the type unions as well:
739 ArrayRef[Int | Str] # array of integers of strings
741 * Better Framework Extendability
742 Moose.pm is now "extendable" such that it is now much
743 easier to extend the framework and add your own keywords
744 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
745 section of the Moose.pm docs.
748 In an effort to begin documenting some of the various
749 details of Moose as well as some common idioms, we have
750 created Moose::Cookbook::Snacks as a place to find
751 small (easily digestable) nuggets of Moose code.
754 ~ Several doc updates/cleanup thanks to castaway ~
756 - converted build system to use Module::Install instead of
757 Module::Build (thanks to jrockway)
760 - added all the meta classes to the immutable list and
761 set it to inline the accessors
762 - fix import to allow Sub::Exporter like { into => }
763 and { into_level => } (perigrin)
764 - exposed and documented init_meta() to allow better
765 embedding and extending of Moose (perigrin)
768 - complete re-organization of the test suite
769 - added some new tests as well
770 - finally re-enabled the Moose::POOP test since
771 the new version of DBM::Deep now works again
775 - fixed very odd and very nasty recursion bug with
777 - added tests for this (eilara)
779 * Moose::Meta::Attribute
780 Moose::Meta::Method::Constructor
781 Moose::Meta::Method::Accessor
782 - fixed issue with overload::Overloaded getting called
783 on non-blessed items. (RT #29269)
784 - added tests for this
786 * Moose::Meta::Method::Accessor
787 - fixed issue with generated accessor code making
788 assumptions about hash based classes (thanks to dexter)
790 * Moose::Coookbook::Snacks
791 - these are bits of documentation, not quite as big as
792 Recipes but which have no clear place in the module docs.
793 So they are Snacks! (horray for castaway++)
795 * Moose::Cookbook::Recipe4
796 - updated it to use the new ArrayRef[MyType] construct
797 - updated the accompanying test as well
799 +++ Major Refactor of the Type Constraint system +++
800 +++ with new features added as well +++
802 * Moose::Util::TypeConstraint
803 - no longer uses package variable to keep track of
804 the type constraints, now uses the an instance of
805 Moose::Meta::TypeConstraint::Registry to do it
806 - added more sophisticated type notation parsing
808 - added tests for this
810 * Moose::Meta::TypeConstraint
811 - some minor adjustments to make subclassing easier
812 - added the package_defined_in attribute so that we
813 can track where the type constraints are created
815 * Moose::Meta::TypeConstraint::Union
816 - this is now been refactored to be a subclass of
817 Moose::Meta::TypeConstraint
819 * Moose::Meta::TypeCoercion::Union
820 - this has been added to service the newly refactored
821 Moose::Meta::TypeConstraint::Union and is itself
822 a subclass of Moose::Meta::TypeCoercion
824 * Moose::Meta::TypeConstraint::Parameterized
825 - added this module (taken from MooseX::AttributeHelpers)
826 to help construct nested collection types
827 - added tests for this
829 * Moose::Meta::TypeConstraint::Registry
830 - added this class to keep track of type constraints
832 0.25 Mon. Aug. 13, 2007
834 - Documentation update to reference Moose::Util::TypeConstraints
835 under 'isa' in 'has' for how to define a new type
838 * Moose::Meta::Attribute
839 - required attributes now will no longer accept undef
840 from the constructor, even if there is a default and lazy
841 - added tests for this
842 - default subroutines must return a value which passes the
844 - added tests for this
846 * Moose::Meta::Attribute
847 * Moose::Meta::Method::Constructor
848 * Moose::Meta::Method::Accessor
849 - type-constraint tests now handle overloaded objects correctly
851 - added tests for this (thanks to EvanCarroll)
853 * Moose::Meta::TypeConstraint::Union
854 - added (has_)hand_optimized_constraint to this class so that
855 it behaves as the regular Moose::Meta::TypeConstraint does.
858 - large refactoring of this code
859 - added several more tests
860 - tests for subtle conflict resolition issues
861 added, but not currently running
864 * Moose::Cookbook::Recipe7
865 - added new recipe for augment/inner functionality
867 - added test for this
870 - a formal definition of roles (still in progress)
873 - utilities for easier working with Moose classes
874 - added tests for these
877 - This contains Moose specific test functions
878 - added tests for these
880 0.24 Tues. July 3, 2007
881 ~ Some doc updates/cleanup ~
883 * Moose::Meta::Attribute
884 - added support for roles to be given as parameters
885 to the 'handles' option.
886 - added tests and docs for this
887 - the has '+foo' attribute form now accepts changes to
888 the lazy option, and the addition of a handles option
889 (but not changing the handles option)
890 - added tests and docs for this
893 - required methods are now fetched using find_method_by_name
894 so that required methods can come from superclasses
895 - adjusted tests for this
897 0.23 Mon. June 18, 2007
898 * Moose::Meta::Method::Constructor
899 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
901 - Modify make_immutable to work with the new Class::MOP immutable
902 mechanism + POD + very basic test (groditi)
903 * Moose::Meta::Attribute
904 - Fix handles to use goto() so that caller() comes out properly on
905 the other side (perigrin)
907 0.22 Thurs. May 31, 2007
908 * Moose::Util::TypeConstraints
909 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
910 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
911 prototypes for functions
912 - added the ClassName type constraint, this checks for strings
913 which will respond true to ->isa(UNIVERSAL).
914 - added tests and docs for this
915 - subtyping just in name now works correctly by making the
916 default for where be { 1 }
917 - added test for this
919 * Moose::Meta::Method::Accessor
920 - coerce and lazy now work together correctly, thanks to
921 merlyn for finding this bug
922 - tests added for this
923 - fix reader presedence bug in Moose::Meta::Attribute + tests
926 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
927 a HASH-ref and missed. This produces better error messages then
928 having it die cause undef is not a HASH.
929 - added tests for this
931 0.21 Thursday, May 2nd, 2007
933 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
934 - modified unimport to remove super and inner along with the rest
935 - altered unimport tests to handle this
938 - altered super export to populate SUPER_SLOT
941 - altered augment and override modifier application to use *_SLOT
942 - modified tests for these to unimport one test class each to test
945 - fixed issue where custom attribute metaclasses
946 where not handled correctly in roles
947 - added tests for this
950 - fixed issue where extending metaclasses with
951 roles would blow up. Thanks to Aankhen`` for
952 finding this insidious error, and it's solution.
954 ~~ lots of spelling and grammer fixes in the docs,
955 many many thanks to rlb3 and Aankhen for these :)
957 0.20 Friday, April 6th, 2007
958 >> I messed up the SKIP logic in one test
959 so this release is just to fix that.
962 - 'has' now also accepts an ARRAY ref
963 to create multiple attrs (see docs)
964 (thanks to konobi for this)
965 - added tests and docs
967 0.19 Thurs. April 5th, 2007
968 ~~ More documentation updates ~~
970 * Moose::Util::TypeConstraints
971 - 'type' now supports messages as well
972 thanks to phaylon for finding this
973 - added tests for this
974 - added &list_all_type_constraints and
975 &list_all_builtin_type_constraints
976 functions to facilitate introspection.
978 * Moose::Meta::Attribute
979 - fixed regexp 'handles' declarations
980 to build the list of delegated methods
981 correctly (and not override important
982 things like &new) thanks to ashleyb
984 - added tests and docs for this
985 - added the 'documentation' attributes
986 so that you can actually document your
987 attributes and inspect them through the
989 - added tests and docs for this
992 - when loading custom attribute metaclasses
993 it will first look in for the class in the
994 Moose::Meta::Attribute::Custom::$name, and
995 then default to just loading $name.
996 - added tests and docs for this
998 * Moose::Meta::TypeConstraint
999 - type constraints now stringify to their names.
1000 - added test for this
1003 - added tests to assure we work with Module::Refresh
1004 - added stricter test skip logic in the Moose POOP
1005 test, ask Rob Kinyon why.
1006 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1008 0.18 Sat. March 10, 2007
1009 ~~ Many, many documentation updates ~~
1012 - We now use Class::MOP::load_class to
1014 - added tests to show types and subtypes
1015 working with Declare::Constraints::Simple
1016 and Test::Deep as constraint engines.
1019 !! You must have Class::MOP 0.37_001 !!
1020 !! for this developer release to work !!
1022 This release was primarily adding the immutable
1023 feature to Moose. An immutable class is one which
1024 you promise not to alter. When you set the class
1025 as immutable it will perform various bits of
1026 memoization and inline certain part of the code
1027 (constructors, destructors and accessors). This
1028 minimizes (and in some cases totally eliminates)
1029 one of Moose's biggest performance hits. This
1030 feature is not on by default, and is 100% optional.
1031 It has several configurable bits as well, so you
1032 can pick and choose to your specific needs.
1034 The changes involved in this were fairly wide and
1035 highly specific, but 100% backwards compatible, so
1036 I am not going to enumerate them here. If you are
1037 truely interested in what was changed, please do
1040 0.17 Tues. Nov. 14, 2006
1041 * Moose::Meta::Method::Accessor
1042 - bugfix for read-only accessors which
1043 are have a type constraint and lazy.
1044 Thanks to chansen for finding it.
1046 0.16 Tues. Nov. 14, 2006
1048 There are some speed improvements in this release,
1049 but they are only the begining, so stay tuned.
1052 - BUILDALL and DEMOLISHALL no longer get
1053 called unless they actually need to be.
1054 This gave us a signifigant speed boost
1055 for the cases when there is no BUILD or
1056 DEMOLISH method present.
1058 * Moose::Util::TypeConstraints
1059 * Moose::Meta::TypeConstraint
1060 - added an 'optimize_as' option to the
1061 type constraint, which allows for a
1062 hand optimized version of the type
1063 constraint to be used when possible.
1064 - Any internally created type constraints
1065 now provide an optimized version as well.
1067 0.15 Sun. Nov. 5, 2006
1069 This version of Moose *must* have Class::MOP 0.36 in order
1070 to work correctly. A number of small internal tweaks have
1071 been made in order to be compatible with that release.
1073 * Moose::Util::TypeConstraints
1074 - added &unimport so that you can clean out
1075 your class namespace of these exported
1078 * Moose::Meta::Class
1079 - fixed minor issue which occasionally
1080 comes up during global destruction
1082 - moved Moose::Meta::Method::Overriden into
1086 - moved Moose::Meta::Role::Method into
1089 * Moose::Meta::Attribute
1090 - changed how we do type checks so that
1091 we reduce the overall cost, but still
1094 - moved accessor generation methods to
1095 Moose::Meta::Method::Accessor to
1096 conform to the API changes from
1099 * Moose::Meta::TypeConstraint
1100 - changed how constraints are compiled
1101 so that we do less recursion and more
1102 iteration. This makes the type check
1104 - moved Moose::Meta::TypeConstraint::Union
1107 * Moose::Meta::Method::Accessor
1108 - created this from methods formerly found in
1109 Moose::Meta::Attribute
1111 * Moose::Meta::Role::Method
1112 - moved this from Moose::Meta::Role
1114 * Moose::Meta::Method::Overriden
1115 - moved this from Moose::Meta::Class
1117 * Moose::Meta::TypeConstraint::Union
1118 - moved this from Moose::Meta::TypeConstraint
1120 0.14 Mon. Oct. 9, 2006
1122 * Moose::Meta::Attribute
1123 - fixed lazy attributes which were not getting
1124 checked with the type constraint (thanks ashley)
1125 - added tests for this
1126 - removed the over-enthusiastic DWIMery of the
1127 automatic ArrayRef and HashRef defaults, it
1128 broke predicates in an ugly way.
1129 - removed tests for this
1131 0.13 Sat. Sept. 30, 2006
1133 This version of Moose *must* have Class::MOP 0.35 in order
1134 to work correctly. A number of small internal tweaks have
1135 been made in order to be compatible with that release.
1138 - Removed the use of UNIVERSAL::require to be a better
1139 symbol table citizen and remove a dependency
1140 (thanks Adam Kennedy)
1142 **~~ removed experimental & undocumented feature ~~**
1143 - commented out the 'method' and 'self' keywords, see the
1144 comments for more info.
1147 - added a FAQ and WTF files to document frequently
1148 asked questions and common problems
1150 * Moose::Util::TypeConstraints
1151 - added GlobRef and FileHandle type constraint
1152 - added tests for this
1154 * Moose::Meta::Attribute
1155 - if your attribute 'isa' ArrayRef of HashRef, and you have
1156 not explicitly set a default, then make the default DWIM.
1157 This will also work for subtypes of ArrayRef and HashRef
1159 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1160 - new test added for this (thanks to ashley)
1163 - added basic support for runtime role composition
1164 but this is still *highly experimental*, so feedback
1165 is much appreciated :)
1166 - added tests for this
1168 * Moose::Meta::TypeConstraint
1169 - the type constraint now handles the coercion process
1170 through delegation, this is to support the coercion
1173 * Moose::Meta::TypeConstraint::Union
1174 - it is now possible for coercions to be performed
1176 - added tests for this (thanks to konobi)
1178 * Moose::Meta::TypeCoercion
1179 - properly capturing error when type constraint
1183 - Scalar::Util 1.18 is bad on Win32, so temporarily
1184 only require version 1.17 for Win32 and cygwin.
1185 (thanks Adam Kennedy)
1187 0.12 Sat. Sept. 1, 2006
1189 - Recipe5 (subtypes & coercion) has been written
1192 - fixed "bad meta" error message to be more descriptive
1193 - fixed &unimport to not remove the &inner and &super
1194 keywords because we need to localize them.
1195 - fixed number of spelling/grammer issues, thanks Theory :)
1197 **~~ experimental & undocumented feature ~~**
1198 - added the method and self keywords, they are basically
1199 just sugar, and they may not stay around.
1202 - added &dump method to easily Data::Dumper
1205 * Moose::Meta::TypeConstraint
1206 - added the &is_a_type_of method to check both the current
1207 and the subtype of a method (similar to &isa with classes)
1210 - this is now a subclass of Class::MOP::Module, and no longer
1211 creates the _role_meta ugliness of before.
1212 - fixed tests to reflect this change
1214 0.11 Wed. July 12, 2006
1216 - added an &unimport method to remove all the keywords
1217 that Moose will import, simply add 'no Moose' to the
1218 bottom of your class file.
1221 - fixed some test failures caused by a forgotten test
1224 0.10 Thurs. July 6, 2006
1226 - improved error message when loading modules so
1227 it is less confusing when you load a role.
1228 - added &calculate_all_roles method to
1229 Moose::Meta::Class and Moose::Meta::Role
1232 This module has been tested against Class::MOP 0.30
1233 but it does not yet utilize the optimizations
1234 it makes available. Stay tuned for that ;)
1236 0.09_03 Fri. June 23, 2006
1237 ++ DEVELOPER RELEASE ++
1239 - 'use strict' and 'use warnings' are no longer
1240 needed in Moose classes, Moose itself will
1241 turn them on for you.
1242 - added tests for this
1243 - moved code from exported subs to private methods
1244 in Moose::Meta::Class
1247 - as with Moose, strict and warnings are
1248 automatically turned on for you.
1249 - added tests for this
1252 - now handles an edge case for override errors
1253 - added tests for this
1254 - added some more edge case tests
1256 0.09_02 Tues. May 16, 2006
1257 ++ DEVELOPER RELEASE ++
1259 - added prototypes to the exported subs
1263 - added prototypes to the exported subs
1266 * Moose::Util::TypeConstraints
1267 - cleaned up prototypes for the subs
1270 0.09_01 Fri. May 12, 2006
1271 ++ DEVELOPER RELEASE ++
1272 - This release works in combination with
1273 Class::MOP 0.29_01, it is a developer
1274 release because it uses the a new
1275 instance sub-protocol and a fairly
1276 complete Role implementation. It has
1277 not yet been optimized, so it slower
1278 the the previous CPAN version. This
1279 release also lacks good updated docs,
1280 the official release will have updated docs.
1283 - refactored the keyword exports
1284 - 'with' now checks Role validaity and
1285 accepts more than one Role at a time
1286 - 'extends' makes metaclass adjustments as
1287 needed to ensure metaclass compatability
1290 - refactored the keyword exports
1291 - 'with' now checks Role validaity and
1292 accepts more than one Role at a time
1294 * Moose::Util::TypeConstraints
1295 - added the 'enum' keyword for simple
1296 string enumerations which can be used as
1298 - see example of usage in t/202_example.t
1301 - more careful checking of params to new()
1304 - much work done on the role composition
1305 - many new tests for conflict detection
1306 and composition edge cases
1307 - not enough documentation, I suggest
1308 looking at the tests
1310 * Moose::Meta::Instance
1311 - added new Instance metaclass to support
1312 the new Class::MOP instance protocol
1314 * Moose::Meta::Class
1315 - some small changes to support the new
1317 - some small additions to support Roles
1319 * Moose::Meta::Attribute
1320 - some improvements to the accessor generation code
1322 - some small changes to support the new
1324 - (still somewhat) experimental delegation support
1325 with the 'handles' option
1326 - added several tests for this
1327 - no docs for this yet
1329 0.05 Thurs. April 27, 2006
1331 - keywords are now exported with Sub::Exporter
1332 thanks to chansen for this commit
1333 - has keyword now takes a 'metaclass' option
1334 to support custom attribute meta-classes
1335 on a per-attribute basis
1336 - added tests for this
1337 - the 'has' keyword not accepts inherited slot
1338 specifications (has '+foo'). This is still an
1339 experimental feature and probably not finished
1340 see t/038_attribute_inherited_slot_specs.t for
1341 more details, or ask about it on #moose
1342 - added tests for this
1345 - keywords are now exported with Sub::Exporter
1347 * Moose::Utils::TypeConstraints
1348 - reorganized the type constraint hierarchy, thanks
1349 to nothingmuch and chansen for his help and advice
1351 - added some tests for this
1352 - keywords are now exported with Sub::Exporter
1353 thanks to chansen for this commit
1355 * Moose::Meta::Class
1356 - due to changes in Class::MOP, we had to change
1357 construct_instance (for the better)
1359 * Moose::Meta::Attribute
1360 - due to changes in Class::MOP, we had to add the
1361 initialize_instance_slot method (it's a good thing)
1363 * Moose::Meta::TypeConstraint
1364 - added type constraint unions
1365 - added tests for this
1366 - added the is_subtype_of predicate method
1367 - added tests for this
1369 0.04 Sun. April 16th, 2006
1371 - Roles can now consume other roles
1372 - added tests for this
1373 - Roles can specify required methods now with
1374 the requires() keyword
1375 - added tests for this
1378 - ripped out much of it's guts ,.. much cleaner now
1379 - added required methods and correct handling of
1380 them in apply() for both classes and roles
1381 - added tests for this
1382 - no longer adds a does() method to consuming classes
1383 it relys on the one in Moose::Object
1384 - added roles attribute and some methods to support
1385 roles consuming roles
1387 * Moose::Meta::Attribute
1388 - added support for triggers on attributes
1389 - added tests for this
1390 - added support for does option on an attribute
1391 - added tests for this
1393 * Moose::Meta::Class
1394 - added support for attribute triggers in the
1396 - added tests for this
1399 - Moose no longer creates a subtype for your class
1400 if a subtype of the same name already exists, this
1401 should DWIM in 99.9999% of all cases
1403 * Moose::Util::TypeConstraints
1404 - fixed bug where incorrect subtype conflicts were
1406 - added test for this
1409 - this class can now be extended with 'use base' if
1410 you need it, it properly loads the metaclass class now
1411 - added test for this
1413 0.03_02 Wed. April 12, 2006
1415 - you must now explictly use Moose::Util::TypeConstraints
1416 it no longer gets exported for you automatically
1419 - new() now accepts hash-refs as well as key/value lists
1420 - added does() method to check for Roles
1421 - added tests for this
1423 * Moose::Meta::Class
1424 - added roles attribute along with the add_role() and
1426 - added tests for this
1429 - now adds a does() method to consuming classes
1430 which tests the class's hierarchy for roles
1431 - added tests for this
1433 0.03_01 Mon. April 10, 2006
1435 - added new Role recipe (no content yet, only code)
1438 - added 'with' keyword for Role support
1439 - added test and docs for this
1440 - fixed subtype quoting bug
1441 - added test for this
1445 - added test and docs
1447 * Moose::Util::TypeConstraints
1448 - added the message keyword to add custom
1449 error messages to type constraints
1452 - the meta role to support Moose::Role
1453 - added tests and docs
1455 * Moose::Meta::Class
1456 - moved a number of things from Moose.pm
1457 to here, they should have been here
1460 * Moose::Meta::Attribute
1461 - moved the attribute option macros here
1462 instead of putting them in Moose.pm
1464 * Moose::Meta::TypeConstraint
1465 - added the message attributes and the
1467 - added tests and docs for this
1469 0.03 Thurs. March 30, 2006
1471 - added the Moose::Cookbook with 5 recipes,
1472 describing all the stuff Moose can do.
1475 - fixed an issue with &extends super class loading
1476 it now captures errors and deals with inline
1477 packages correctly (bug found by mst, solution
1479 - added super/override & inner/augment features
1480 - added tests and docs for these
1483 - BUILDALL now takes a reference of the %params
1484 that are passed to &new, and passes that to
1487 * Moose::Util::TypeConstraints
1488 - Type constraints now survive runtime reloading
1489 - added test for this
1491 * Moose::Meta::Class
1492 - fixed the way attribute defaults are handled
1493 during instance construction (bug found by chansen)
1495 * Moose::Meta::Attribute
1496 - read-only attributes now actually enforce their
1497 read-only-ness (this corrected in Class::MOP as
1500 0.02 Tues. March 21, 2006
1502 - many more tests, fixing some bugs and
1504 - &extends now loads the base module with
1506 - added UNIVERSAL::require to the
1509 - each new Moose class will also create
1510 and register a subtype of Object which
1511 correspond to the new Moose class.
1512 - the 'isa' option in &has now only
1513 accepts strings, and will DWIM in
1516 * Moose::Util::TypeConstraints
1517 - added type coercion features
1518 - added tests for this
1519 - added support for this in attributes
1520 and instance construction
1522 - type construction no longer creates a
1523 function, it registers the type instead.
1524 - added several functions to get the
1528 - BUILDALL and DEMOLISHALL were broken
1529 because of a mis-named hash key, Whoops :)
1531 * Moose::Meta::Attribute
1532 - adding support for coercion in the
1533 autogenerated accessors
1535 * Moose::Meta::Class
1536 - adding support for coercion in the
1537 instance construction
1539 * Moose::Meta::TypeConstraint
1540 * Moose::Meta::TypeCoercion
1541 - type constraints and coercions are now
1542 full fledges meta-objects
1544 0.01 Wed. March 15, 2006
1545 - Moooooooooooooooooose!!!