1 Revision history for Perl extension Moose
5 0.52 Thurs. July 3, 2008
7 - added "FEATURE REQUESTS" section to the Moose docs
8 to properly direct people (stevan) (RT #34333)
9 - making 'extends' croak if it is passed a Role since
10 this is not ever something you want to do
11 (fixed by stevan, found by obra)
12 - added tests for this (stevan)
15 - adding support for DOES (as in UNIVERSAL::DOES)
19 * Moose::Meta::Attribute
20 - added legal_options_for_inheritance (wreis)
21 - added tests for this (wreis)
23 * Moose::Cookbook::Snacks::*
24 - removed some of the unfinished snacks that should
25 not have been released yet. Added some more examples
26 to the 'Keywords' snack. (stevan)
28 * Moose::Cookbook::Style
29 - added general Moose "style guide" of sorts to the
30 cookbook (nothingmuch) (RT #34335)
33 - added more BUILDARGS tests (stevan)
35 0.51 Thurs. Jun 26, 2008
37 - add unimport so "no Moose::Role" actually does
40 * Moose::Meta::Role::Application::ToRole
41 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
42 order to provide its own implementation, that method still got
43 added to the list of required methods for consumers of
44 RoleB. Now an aliased method is only added to the list of
45 required methods if the role doing the aliasing does not
46 provide its own implementation. See Recipe 11 for an example
47 of all this. (Dave Rolsky)
48 - added tests for this
50 * Moose::Meta::Method::Constructor
51 - when a single argument that wasn't a hashref was provided to
52 an immutabilized constructor, the error message was very
53 unhelpful, as opposed to the non-immutable error. Reported by
55 - added test for this (Dave Rolsky)
57 * Moose::Meta::Attribute
58 - added support for meta_attr->does("ShortAlias") (sartak)
59 - added tests for this (sartak)
60 - moved the bulk of the `handles` handling to the new
61 install_delegation method (Stevan)
64 - Added BUILDARGS, a new step in new()
66 * Moose::Meta::Role::Application::RoleSummation
67 - fix typos no one ever sees (sartak)
69 * Moose::Util::TypeConstraints
70 * Moose::Meta::TypeConstraint
71 * Moose::Meta::TypeCoercion
72 - Attempt to work around the ??{ } vs. threads issue
74 - Some null_constraint optimizations
76 0.50 Thurs. Jun 11, 2008
77 - Fixed a version number issue by bumping all modules
80 0.49 Thurs. Jun 11, 2008
81 !! This version now approx. 20-25% !!
82 !! faster with new Class::MOP 0.59 !!
84 * Moose::Meta::Attribute
85 - fixed how the is => (ro|rw) works with
86 custom defined reader, writer and accessor
88 - added docs for this (TODO).
89 - added tests for this (Thanks to Penfold)
90 - added the custom attribute alias for regular
91 Moose attributes which is "Moose"
92 - fix builder and default both being used
97 Moose::Meta::Attribute
99 Moose::Meta::Role::Composite
100 Moose::Util::TypeConstraints
101 - switched usage of reftype to ref because
105 - changing add_package_symbol to use the new
109 - fixed how DEMOLISHALL is called so that it
110 can be overrided in subclasses (thanks to Sartak)
111 - added test for this (thanks to Sartak)
113 * Moose::Util::TypeConstraints
114 - move the ClassName type check code to
115 Class::MOP::is_class_loaded (thanks to Sartak)
117 * Moose::Cookbook::Recipe11
118 - add tests for this (thanks to tokuhirom)
120 0.48 Thurs. May 29, 2008
121 (early morning release engineering)--
123 - fixing the version in Moose::Meta::Method::Destructor
124 which was causing the indexer to choke
126 0.47 Thurs. May 29, 2008
127 (late night release engineering)--
129 - fixing the version is META.yml, no functional
130 changes in this release
132 0.46 Wed. May 28, 2008
133 !! This version now approx. 20-25% !!
134 !! faster with new Class::MOP 0.57 !!
137 - some optimizations of the &initialize method
138 since it is called so often by &meta
142 - now use the get_all_package_symbols from the
143 updated Class::MOP, test suite is now 10 seconds
146 * Moose::Meta::Method::Destructor
147 - is_needed can now also be called as a class
148 method for immutablization to check if the
149 destructor object even needs to be created
152 * Moose::Meta::Method::Destructor
153 Moose::Meta::Method::Constructor
154 - added more descriptive error message to help
155 keep people from wasting time tracking an error
156 that is easily fixed by upgrading.
158 0.45 Saturday, May 24, 2008
160 - Because of work in Class::MOP 0.56, all
161 XS based functionality is now optional
162 and a Pure Perl version is supplied
163 - the CLASS_MOP_NO_XS environment variable
164 can now be used to force non-XS versions
166 - several of the packages have been tweaked
167 to take care of this, mostly we added
168 support for the package_name and name
169 variables in all the Method metaclasses
170 - before/around/after method modifiers now
171 support regexp matching of names
172 (thanks to Takatoshi Kitano)
173 - tests added for this
174 - NOTE: this only works for classes, it
175 is currently not supported in roles,
176 but, ... patches welcome
177 - All usage of Carp::confess have been replaced
178 by Carp::croak in the "keyword" functions since
179 the stack trace is usually not helpful
182 - All usage of Carp::confess have been replaced
183 by Carp::croak in the "keyword" functions since
184 the stack trace is usually not helpful
185 - The 'has' keyword for roles now accepts the
186 same array ref form that Moose.pm does
187 (has [qw/foo bar/] => (is => 'rw', ...))
188 - added test for this
190 * Moose::Meta::Attribute
191 - trigger on a ro-attribute is no longer an
192 error, as it's useful to trigger off of the
196 - added same 'add_package_symbol' fix as in
200 - does_role now handles non-Moose classes
202 - added tests for this
203 - added the 'add_method_modifier' function
204 (thanks to Takatoshi Kitano)
206 * Moose::Util::TypeConstraints
207 - subtypes of parameterizable types now are
208 themselves parameterizable types
210 * Moose::Meta::Method::Constructor
211 - fixed bug where trigger was not being
212 called by the inlined immutable
214 - added test for this (thanks to Caelum)
216 * Moose::Meta::Role::Application::ToInstance
217 - now uses the metaclass of the instance
218 (if possible) to create the anon-class
219 (thanks Jonathan Rockway)
221 * Moose::Cookbook::Recipe22
222 - added the meta-attribute trait recipe
226 - fixed hash-ordering test bug that was
227 causing occasional cpantester failures
228 - renamed the t/000_recipe/*.t tests to be
229 more descriptive (thanks to Sartak)
231 0.44 Sat. May 10, 2008
233 - made make_immutable warning cluck to
234 show where the error is (thanks mst)
237 - BUILDALL and DEMOLISHALL now call
238 ->body when looping through the
239 methods, to avoid the overloaded
241 - fixed issue where DEMOLISHALL was
242 eating the $@ values, and so not
243 working correctly, it still kind of
244 eats them, but so does vanilla perl
245 - added tests for this
247 * Moose::Cookbook::Recipe7
248 - added new recipe for immutable
249 functionality (thanks Dave Rolsky)
251 * Moose::Cookbook::Recipe9
252 - added new recipe for builder and
253 lazy_build (thanks Dave Rolsky)
255 * Moose::Cookbook::Recipe11
256 - added new recipe for method aliasing
257 and exclusion with Roles (thanks Dave Rolsky)
260 - fixed Win32 test failure (thanks spicyjack)
262 ~ removed Build.PL and Module::Build compat
263 since Module::Install has done that.
265 0.43 Wed. April, 30, 2008
267 drink more coffee before
268 doing release engineering
270 - whoops, forgot to do the smolder tests,
271 and we broke some of the custom meta-attr
272 modules. This fixes that.
274 0.42 Mon. April 28, 2008
275 - some bad tests slipped by, nothing else
276 changed in this release (cpantesters++)
278 - upped the Class::MOP dependency to 0.55
279 since we have tests which need the C3
282 0.41 Mon. April 28, 2008
283 ~~ numerous documentation updates ~~
285 - Changed all usage of die to Carp::croak for better
286 error reporting (initial patch by Tod Hagan)
289 - the make_immutable keyword is now deprecated, don't
290 use it in any new code and please fix your old code
291 as well. There will be 2 releases, and then it will
297 - refactored the way inner and super work to avoid
298 any method/@ISA cache penalty (nothingmuch)
301 - fixing &new_object to make sure trigger gets the
302 coerced value (spotted by Charles Alderman on the
304 - added test for this
306 * Moose::Meta::Method::Constructor
307 - immutable classes which had non-lazy attributes were calling
308 the default generating sub twice in the constructor. (bug
309 found by Jesse Luehrs, fixed by Dave Rolsky)
310 - added tests for this (Dave Rolsky)
311 - fix typo in initialize_body method (nothingmuch)
313 * Moose::Meta::Method::Destructor
314 - fix typo in initialize_body method (nothingmuch)
316 * Moose::Meta::Method::Overriden
317 Moose::Meta::Method::Augmented
318 - moved the logic for these into their own
319 classes (nothingmuch)
321 * Moose::Meta::Attribute
322 - inherited attributes may now be extended without
323 restriction on the type ('isa', 'does') (Sartak)
324 - added tests for this (Sartak)
325 - when an attribute property is malformed (such as lazy without
326 a default), give the name of the attribute in the error
328 - added the &applied_traits and &has_applied_traits methods
329 to allow introspection of traits
330 - added tests for this
331 - moved 'trait' and 'metaclass' argument handling to here from
333 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
334 '+foo' syntax) (nothingmuch)
335 - added tests for this (t0m)
338 - localize $@ inside DEMOLISHALL to avoid it
339 eating $@ (found by Ernesto)
340 - added test for this (thanks to Ernesto)
342 * Moose::Util::TypeConstraints
343 - &find_type_constraint now DWIMs when given an
344 type constraint object or name (nothingmuch)
345 - &find_or_create_type_constraint superseded with a number of more
347 - find_or_create_{isa,does}_type_constraint
348 - find_or_parse_type_constraint
350 * Moose::Meta::TypeConstraint
351 Moose::Meta::TypeConstraint::Class
352 Moose::Meta::TypeConstraint::Role
353 Moose::Meta::TypeConstraint::Enum
354 Moose::Meta::TypeConstraint::Union
355 Moose::Meta::TypeConstraint::Parameterized
356 - added the &equals method for comparing two type
357 constraints (nothingmuch)
358 - added tests for this (nothingmuch)
360 * Moose::Meta::TypeConstraint
361 - add the &parents method, which is just an alias to &parent.
362 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
364 * Moose::Meta::TypeConstraint::Class
365 - added the class attribute for introspection purposes
367 - added tests for this
369 * Moose::Meta::TypeConstraint::Enum
370 Moose::Meta::TypeConstraint::Role
371 - broke these out into their own classes (nothingmuch)
373 * Moose::Cookbook::Recipe*
374 - fixed references to test file locations in the POD
375 and updated up some text for new Moose features
379 - Added &resolve_metaclass_alias, a helper function for finding an actual
380 class for a short name (e.g. in the traits list)
382 0.40 Fri. March 14, 2008
383 - I hate Pod::Coverage
385 0.39 Fri. March 14, 2008
387 - documenting the use of '+name' with attributes
388 that come from recently composed roles. It makes
389 sense, people are using it, and so why not just
390 officially support it.
391 - fixing the 'extends' keyword so that it will not
392 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
395 - added the perl -Moose=+Class::Name feature to allow
396 monkeypatching of classes in one liners
399 - fixing the 'apply_all_roles' keyword so that it will not
400 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
403 - added ->create method which now supports roles (thanks to jrockway)
404 - added tests for this
405 - added ->create_anon_class which now supports roles and caching of
406 the results (thanks to jrockway)
407 - added tests for this
408 - made ->does_role a little more forgiving when it is
409 checking a Class::MOP era metaclasses.
411 * Moose::Meta::Role::Application::ToInstance
412 - it is now possible to pass extra params to be used when
413 a role is applied to an the instance (rebless_params)
414 - added tests for this
416 * Moose::Util::TypeConstraints
417 - class_type now accepts an optional second argument for a
418 custom message. POD anotated accordingly (groditi)
419 - added tests for this
420 - it is now possible to make anon-enums by passing 'enum' an
421 ARRAY ref instead of the $name => @values. Everything else
423 - added tests for this
426 - making test for using '+name' on attributes consumed
427 from a role, it works and makes sense too.
429 * Moose::Meta::Attribute
430 - fix handles so that it doesn't return nothing
431 when the method cannot be found, not sure why
432 it ever did this originally, this means we now
433 have slightly better support for AUTOLOADed
435 - added more delegation tests
436 - adding ->does method to this so as to better
437 support traits and their introspection.
438 - added tests for this
441 - localizing the Data::Dumper configurations so
442 that it does not pollute others (RT #33509)
443 - made ->does a little more forgiving when it is
444 passed Class::MOP era metaclasses.
446 0.38 Fri. Feb. 15, 2008
447 * Moose::Meta::Attribute
448 - fixed initializer to correctly do
449 type checking and coercion in the
451 - added tests for this
454 - fixed some finicky tests (thanks to konobi)
456 0.37 Thurs. Feb. 14, 2008
458 - fixed some details in Moose::init_meta
459 and its superclass handling (thanks thepler)
460 - added tests for this (thanks thepler)
461 - 'has' now dies if you don't pass in name
463 - added the 'make_immutable' keyword as a shortcut
467 Moose::Meta::Method::Constructor
468 Moose::Meta::Attribute
469 - making (init_arg => undef) work here too
470 (thanks to nothingmuch)
472 * Moose::Meta::Attribute
473 Moose::Meta::Method::Constructor
474 Moose::Meta::Method::Accessor
475 - make lazy attributes respect attr initializers (rjbs)
476 - added tests for this
478 * Moose::Util::TypeConstraints
479 Moose::Util::TypeConstraints::OptimizedConstraints
480 Moose::Meta::TypeConstraints
481 Moose::Meta::Attribute
482 Moose::Meta::Method::Constructor
483 Moose::Meta::Method::Accessor
484 - making type errors use the
485 assigned message (thanks to Sartak)
486 - added tests for this
488 * Moose::Meta::Method::Destructor
489 - making sure DESTROY gets inlined properly
490 with successive DEMOLISH calls (thanks to manito)
492 * Moose::Meta::Attribute
493 Moose::Meta::Method::Accessor
494 - fixed handling of undef with type constraints
496 - added tests for this
499 - added &get_all_init_args and &get_all_attribute_values
500 (thanks to Sartak and nothingmuch)
502 0.36 Sat. Jan. 26, 2008
504 Moose::Meta::Attribute
505 - role type tests now support when roles are
506 applied to non-Moose classes (found by ash)
507 - added tests for this (thanks to ash)
508 - couple extra tests to boost code coverage
510 * Moose::Meta::Method::Constructor
511 - improved fix for handling Class::MOP attributes
512 - added test for this
515 - handled the add_attribute($attribute_meta_object)
517 - added test for this
519 0.35 Tues. Jan. 22, 2008
520 * Moose::Meta::Method::Constructor
521 - fix to make sure even Class::MOP attributes
522 are handled correctly (Thanks to Dave Rolsky)
523 - added test for this (also Dave Rolsky)
526 - improved error message on _apply_all_roles,
527 you should now use Moose::Util::apply_all_roles
528 and you shouldnt have been using a _ prefixed
529 method in the first place ;)
531 0.34 Mon. Jan. 21, 2008
532 ~~~ more misc. doc. fixes ~~~
533 ~~ updated copyright dates ~~
535 Moose is now a postmodern object system :)
536 - (see the POD for details)
538 * <<Role System Refactoring>>
539 - this release contains a major reworking and
540 cleanup of the role system
541 - 100% backwards compat.
542 - Role application now restructured into seperate
543 classes based on type of applicants
544 - Role summation (combining of more than one role)
545 is much cleaner and anon-classes are no longer
547 - new Composite role metaclass
548 - runtime application of roles to instances
549 is now more efficient and re-uses generated
550 classes when applicable
552 * <<New Role composition features>>
553 - methods can now be excluded from a given role
555 - methods can now be aliased to another name (and
556 still retain the original as well)
558 * Moose::Util::TypeConstraints::OptimizedConstraints
559 - added this module (see above)
562 - fixed the &_process_attribute method to be called
563 by &add_attribute, so that the API is now correct
565 * Moose::Meta::Method::Accessor
566 - fixed bug when passing a list of values to
567 an accessor would get (incorrectly) ignored.
568 Thanks to Sartak for finding this ;)
569 - added tests for this (Sartak again)
571 * Moose::Meta::Method::Accessor
572 Moose::Meta::Method::Constructor
573 Moose::Meta::Attribute
574 Moose::Meta::TypeConstraint
575 Moose::Meta::TypeCoercion
576 - lots of cleanup of such things as:
578 - type constraint handling
579 - error handling/messages
580 (thanks to nothingmuch)
582 * Moose::Meta::TypeConstraint::Parameterizable
583 - added this module to support the refactor
584 in Moose::Meta::TypeConstraint::Parameterized
586 * Moose::Meta::TypeConstraint::Parameterized
587 - refactored how these types are handled so they
588 are more generic and not confined to ArrayRef
592 - shortened some file names for better VMS support (RT #32381)
594 0.33 Fri. Dec. 14, 2007
595 !! Moose now loads 2 x faster !!
596 !! with new Class::MOP 0.49 !!
598 ++ new oose.pm module to make command line
599 Moose-ness easier (see POD docs for more)
603 - several tweaks to take advantage of the
604 new method map caching in Class::MOP
606 * Moose::Meta::TypeConstraint::Parameterized
607 - allow subtypes of ArrayRef and HashRef to
608 be used as a container (sartak)
609 - added tests for this
610 - basic support for coercion to ArrayRef and
611 HashRef for containers (sartak)
612 - added tests for this
614 * Moose::Meta::TypeCoercion
615 - coercions will now create subtypes as needed
616 so you can now add coercions to parameterized
617 types without having to explictly define them
618 - added tests for this
620 * Moose::Meta::Method::Accessor
621 - allow subclasses to decide whether we need
622 to copy the value into a new variable (sartak)
624 0.32 Tues. Dec. 4, 2007
625 * Moose::Util::TypeConstraints
626 - fixing how subtype aliases of unions work
627 they should inherit the parent's coercion
628 - added tests for this
629 - you can now define multiple coercions on
630 a single type at different times instead of
631 having to do it all in one place
632 - added tests for this
634 * Moose::Meta::TypeConstraint
635 - there is now a default constraint of sub { 1 }
636 instead of Moose::Util::TypeConstraints setting
639 * Moose::Meta::TypeCoercion
640 * Moose::Meta::TypeCoercion::Union
641 - added the &has_coercion_for_type and
642 &add_type_coercions methods to support the
643 new features above (although you cannot add
644 more type coercions for Union types)
646 0.31 Mon. Nov. 26, 2007
647 * Moose::Meta::Attribute
648 - made the +attr syntax handle extending types with
649 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
650 now works if the original foo is an ArrayRef.
651 - added tests for this.
652 - delegation now works even if the attribute does not
653 have a reader method using the get_read_method_ref
654 method from Class::MOP::Attribute.
655 - added tests for this
656 - added docs for this
658 * Moose::Util::TypeConstraints
659 - passing no "additional attribute info" to
660 &find_or_create_type_constraint will no longer
661 attempt to create an __ANON__ type for you,
662 instead it will just return undef.
663 - added docs for this
665 0.30 Fri. Nov. 23, 2007
666 * Moose::Meta::Method::Constructor
667 -builder related bug in inlined constructor. (groditi)
669 * Moose::Meta::Method::Accessor
670 - genereate unnecessary calls to predicates and refactor
671 code generation for runtime speed (groditi)
673 * Moose::Util::TypeConstraints
674 - fix ClassName constraint to introspect symbol table (mst)
675 - added more tests for this (mst)
676 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
678 - added tests for this
681 - adding the link to Recipie 11 (written by Sartak)
682 - adding test for SYNOPSIS code
685 - New tests for builder bug. Upon instantiation, if an
686 attribute had a builder, no value and was not lazy the
687 builder default was not getting run, oops. (groditi)
689 0.29 Tues. Nov. 13, 2007
690 * Moose::Meta::Attribute
691 - Fix error message on missing builder method (groditi)
693 * Moose::Meta::Method::Accessor
694 - Fix error message on missing builder method (groditi)
697 - Add test to check for the correct error message when
698 builder method is missing (groditi)
700 0.28 Tues. Nov. 13, 2007
701 - 0.27 packaged incorrectly (groditi)
703 0.27 Tues. Nov. 13, 2007
704 * Moose::Meta::Attribute
705 - Added support for the new builder option (groditi)
706 - Added support for lazy_build option (groditi)
707 - Changed slot initialization for predicate changes (groditi)
709 * Moose::Meta::Method::Accessor
710 - Added support for lazy_build option (groditi)
711 - Fix inline methods to work with corrected predicate
714 * Moose::Meta::Method::Constructor
715 - Added support for lazy_build option (groditi)
718 - tests for builder and lazy_build (groditi)
720 * fixing some misc. bits in the docs that
721 got mentioned on CPAN Forum & perlmonks
724 - fixed how required methods are handled
725 when they encounter overriden or modified
726 methods from a class (thanks to confound).
727 - added tests for this
729 * Moose::Util::TypeConstraint
730 - fixed the type notation parser so that
731 the | always creates a union and so is
732 no longer a valid type char (thanks to
733 konobi, mugwump and #moose for working
735 - added more tests for this
737 0.26 Thurs. Sept. 27, 2007
740 * Parameterized Types
741 We now support parameterized collection types, such as:
742 ArrayRef[Int] # array or integers
743 HashRef[Object] # a hash with object values
744 They can also be nested:
745 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
746 And work with the type unions as well:
747 ArrayRef[Int | Str] # array of integers of strings
749 * Better Framework Extendability
750 Moose.pm is now "extendable" such that it is now much
751 easier to extend the framework and add your own keywords
752 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
753 section of the Moose.pm docs.
756 In an effort to begin documenting some of the various
757 details of Moose as well as some common idioms, we have
758 created Moose::Cookbook::Snacks as a place to find
759 small (easily digestable) nuggets of Moose code.
762 ~ Several doc updates/cleanup thanks to castaway ~
764 - converted build system to use Module::Install instead of
765 Module::Build (thanks to jrockway)
768 - added all the meta classes to the immutable list and
769 set it to inline the accessors
770 - fix import to allow Sub::Exporter like { into => }
771 and { into_level => } (perigrin)
772 - exposed and documented init_meta() to allow better
773 embedding and extending of Moose (perigrin)
776 - complete re-organization of the test suite
777 - added some new tests as well
778 - finally re-enabled the Moose::POOP test since
779 the new version of DBM::Deep now works again
783 - fixed very odd and very nasty recursion bug with
785 - added tests for this (eilara)
787 * Moose::Meta::Attribute
788 Moose::Meta::Method::Constructor
789 Moose::Meta::Method::Accessor
790 - fixed issue with overload::Overloaded getting called
791 on non-blessed items. (RT #29269)
792 - added tests for this
794 * Moose::Meta::Method::Accessor
795 - fixed issue with generated accessor code making
796 assumptions about hash based classes (thanks to dexter)
798 * Moose::Coookbook::Snacks
799 - these are bits of documentation, not quite as big as
800 Recipes but which have no clear place in the module docs.
801 So they are Snacks! (horray for castaway++)
803 * Moose::Cookbook::Recipe4
804 - updated it to use the new ArrayRef[MyType] construct
805 - updated the accompanying test as well
807 +++ Major Refactor of the Type Constraint system +++
808 +++ with new features added as well +++
810 * Moose::Util::TypeConstraint
811 - no longer uses package variable to keep track of
812 the type constraints, now uses the an instance of
813 Moose::Meta::TypeConstraint::Registry to do it
814 - added more sophisticated type notation parsing
816 - added tests for this
818 * Moose::Meta::TypeConstraint
819 - some minor adjustments to make subclassing easier
820 - added the package_defined_in attribute so that we
821 can track where the type constraints are created
823 * Moose::Meta::TypeConstraint::Union
824 - this is now been refactored to be a subclass of
825 Moose::Meta::TypeConstraint
827 * Moose::Meta::TypeCoercion::Union
828 - this has been added to service the newly refactored
829 Moose::Meta::TypeConstraint::Union and is itself
830 a subclass of Moose::Meta::TypeCoercion
832 * Moose::Meta::TypeConstraint::Parameterized
833 - added this module (taken from MooseX::AttributeHelpers)
834 to help construct nested collection types
835 - added tests for this
837 * Moose::Meta::TypeConstraint::Registry
838 - added this class to keep track of type constraints
840 0.25 Mon. Aug. 13, 2007
842 - Documentation update to reference Moose::Util::TypeConstraints
843 under 'isa' in 'has' for how to define a new type
846 * Moose::Meta::Attribute
847 - required attributes now will no longer accept undef
848 from the constructor, even if there is a default and lazy
849 - added tests for this
850 - default subroutines must return a value which passes the
852 - added tests for this
854 * Moose::Meta::Attribute
855 * Moose::Meta::Method::Constructor
856 * Moose::Meta::Method::Accessor
857 - type-constraint tests now handle overloaded objects correctly
859 - added tests for this (thanks to EvanCarroll)
861 * Moose::Meta::TypeConstraint::Union
862 - added (has_)hand_optimized_constraint to this class so that
863 it behaves as the regular Moose::Meta::TypeConstraint does.
866 - large refactoring of this code
867 - added several more tests
868 - tests for subtle conflict resolition issues
869 added, but not currently running
872 * Moose::Cookbook::Recipe7
873 - added new recipe for augment/inner functionality
875 - added test for this
878 - a formal definition of roles (still in progress)
881 - utilities for easier working with Moose classes
882 - added tests for these
885 - This contains Moose specific test functions
886 - added tests for these
888 0.24 Tues. July 3, 2007
889 ~ Some doc updates/cleanup ~
891 * Moose::Meta::Attribute
892 - added support for roles to be given as parameters
893 to the 'handles' option.
894 - added tests and docs for this
895 - the has '+foo' attribute form now accepts changes to
896 the lazy option, and the addition of a handles option
897 (but not changing the handles option)
898 - added tests and docs for this
901 - required methods are now fetched using find_method_by_name
902 so that required methods can come from superclasses
903 - adjusted tests for this
905 0.23 Mon. June 18, 2007
906 * Moose::Meta::Method::Constructor
907 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
909 - Modify make_immutable to work with the new Class::MOP immutable
910 mechanism + POD + very basic test (groditi)
911 * Moose::Meta::Attribute
912 - Fix handles to use goto() so that caller() comes out properly on
913 the other side (perigrin)
915 0.22 Thurs. May 31, 2007
916 * Moose::Util::TypeConstraints
917 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
918 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
919 prototypes for functions
920 - added the ClassName type constraint, this checks for strings
921 which will respond true to ->isa(UNIVERSAL).
922 - added tests and docs for this
923 - subtyping just in name now works correctly by making the
924 default for where be { 1 }
925 - added test for this
927 * Moose::Meta::Method::Accessor
928 - coerce and lazy now work together correctly, thanks to
929 merlyn for finding this bug
930 - tests added for this
931 - fix reader presedence bug in Moose::Meta::Attribute + tests
934 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
935 a HASH-ref and missed. This produces better error messages then
936 having it die cause undef is not a HASH.
937 - added tests for this
939 0.21 Thursday, May 2nd, 2007
941 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
942 - modified unimport to remove super and inner along with the rest
943 - altered unimport tests to handle this
946 - altered super export to populate SUPER_SLOT
949 - altered augment and override modifier application to use *_SLOT
950 - modified tests for these to unimport one test class each to test
953 - fixed issue where custom attribute metaclasses
954 where not handled correctly in roles
955 - added tests for this
958 - fixed issue where extending metaclasses with
959 roles would blow up. Thanks to Aankhen`` for
960 finding this insidious error, and it's solution.
962 ~~ lots of spelling and grammer fixes in the docs,
963 many many thanks to rlb3 and Aankhen for these :)
965 0.20 Friday, April 6th, 2007
966 >> I messed up the SKIP logic in one test
967 so this release is just to fix that.
970 - 'has' now also accepts an ARRAY ref
971 to create multiple attrs (see docs)
972 (thanks to konobi for this)
973 - added tests and docs
975 0.19 Thurs. April 5th, 2007
976 ~~ More documentation updates ~~
978 * Moose::Util::TypeConstraints
979 - 'type' now supports messages as well
980 thanks to phaylon for finding this
981 - added tests for this
982 - added &list_all_type_constraints and
983 &list_all_builtin_type_constraints
984 functions to facilitate introspection.
986 * Moose::Meta::Attribute
987 - fixed regexp 'handles' declarations
988 to build the list of delegated methods
989 correctly (and not override important
990 things like &new) thanks to ashleyb
992 - added tests and docs for this
993 - added the 'documentation' attributes
994 so that you can actually document your
995 attributes and inspect them through the
997 - added tests and docs for this
1000 - when loading custom attribute metaclasses
1001 it will first look in for the class in the
1002 Moose::Meta::Attribute::Custom::$name, and
1003 then default to just loading $name.
1004 - added tests and docs for this
1006 * Moose::Meta::TypeConstraint
1007 - type constraints now stringify to their names.
1008 - added test for this
1011 - added tests to assure we work with Module::Refresh
1012 - added stricter test skip logic in the Moose POOP
1013 test, ask Rob Kinyon why.
1014 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1016 0.18 Sat. March 10, 2007
1017 ~~ Many, many documentation updates ~~
1020 - We now use Class::MOP::load_class to
1022 - added tests to show types and subtypes
1023 working with Declare::Constraints::Simple
1024 and Test::Deep as constraint engines.
1027 !! You must have Class::MOP 0.37_001 !!
1028 !! for this developer release to work !!
1030 This release was primarily adding the immutable
1031 feature to Moose. An immutable class is one which
1032 you promise not to alter. When you set the class
1033 as immutable it will perform various bits of
1034 memoization and inline certain part of the code
1035 (constructors, destructors and accessors). This
1036 minimizes (and in some cases totally eliminates)
1037 one of Moose's biggest performance hits. This
1038 feature is not on by default, and is 100% optional.
1039 It has several configurable bits as well, so you
1040 can pick and choose to your specific needs.
1042 The changes involved in this were fairly wide and
1043 highly specific, but 100% backwards compatible, so
1044 I am not going to enumerate them here. If you are
1045 truely interested in what was changed, please do
1048 0.17 Tues. Nov. 14, 2006
1049 * Moose::Meta::Method::Accessor
1050 - bugfix for read-only accessors which
1051 are have a type constraint and lazy.
1052 Thanks to chansen for finding it.
1054 0.16 Tues. Nov. 14, 2006
1056 There are some speed improvements in this release,
1057 but they are only the begining, so stay tuned.
1060 - BUILDALL and DEMOLISHALL no longer get
1061 called unless they actually need to be.
1062 This gave us a signifigant speed boost
1063 for the cases when there is no BUILD or
1064 DEMOLISH method present.
1066 * Moose::Util::TypeConstraints
1067 * Moose::Meta::TypeConstraint
1068 - added an 'optimize_as' option to the
1069 type constraint, which allows for a
1070 hand optimized version of the type
1071 constraint to be used when possible.
1072 - Any internally created type constraints
1073 now provide an optimized version as well.
1075 0.15 Sun. Nov. 5, 2006
1077 This version of Moose *must* have Class::MOP 0.36 in order
1078 to work correctly. A number of small internal tweaks have
1079 been made in order to be compatible with that release.
1081 * Moose::Util::TypeConstraints
1082 - added &unimport so that you can clean out
1083 your class namespace of these exported
1086 * Moose::Meta::Class
1087 - fixed minor issue which occasionally
1088 comes up during global destruction
1090 - moved Moose::Meta::Method::Overriden into
1094 - moved Moose::Meta::Role::Method into
1097 * Moose::Meta::Attribute
1098 - changed how we do type checks so that
1099 we reduce the overall cost, but still
1102 - moved accessor generation methods to
1103 Moose::Meta::Method::Accessor to
1104 conform to the API changes from
1107 * Moose::Meta::TypeConstraint
1108 - changed how constraints are compiled
1109 so that we do less recursion and more
1110 iteration. This makes the type check
1112 - moved Moose::Meta::TypeConstraint::Union
1115 * Moose::Meta::Method::Accessor
1116 - created this from methods formerly found in
1117 Moose::Meta::Attribute
1119 * Moose::Meta::Role::Method
1120 - moved this from Moose::Meta::Role
1122 * Moose::Meta::Method::Overriden
1123 - moved this from Moose::Meta::Class
1125 * Moose::Meta::TypeConstraint::Union
1126 - moved this from Moose::Meta::TypeConstraint
1128 0.14 Mon. Oct. 9, 2006
1130 * Moose::Meta::Attribute
1131 - fixed lazy attributes which were not getting
1132 checked with the type constraint (thanks ashley)
1133 - added tests for this
1134 - removed the over-enthusiastic DWIMery of the
1135 automatic ArrayRef and HashRef defaults, it
1136 broke predicates in an ugly way.
1137 - removed tests for this
1139 0.13 Sat. Sept. 30, 2006
1141 This version of Moose *must* have Class::MOP 0.35 in order
1142 to work correctly. A number of small internal tweaks have
1143 been made in order to be compatible with that release.
1146 - Removed the use of UNIVERSAL::require to be a better
1147 symbol table citizen and remove a dependency
1148 (thanks Adam Kennedy)
1150 **~~ removed experimental & undocumented feature ~~**
1151 - commented out the 'method' and 'self' keywords, see the
1152 comments for more info.
1155 - added a FAQ and WTF files to document frequently
1156 asked questions and common problems
1158 * Moose::Util::TypeConstraints
1159 - added GlobRef and FileHandle type constraint
1160 - added tests for this
1162 * Moose::Meta::Attribute
1163 - if your attribute 'isa' ArrayRef of HashRef, and you have
1164 not explicitly set a default, then make the default DWIM.
1165 This will also work for subtypes of ArrayRef and HashRef
1167 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1168 - new test added for this (thanks to ashley)
1171 - added basic support for runtime role composition
1172 but this is still *highly experimental*, so feedback
1173 is much appreciated :)
1174 - added tests for this
1176 * Moose::Meta::TypeConstraint
1177 - the type constraint now handles the coercion process
1178 through delegation, this is to support the coercion
1181 * Moose::Meta::TypeConstraint::Union
1182 - it is now possible for coercions to be performed
1184 - added tests for this (thanks to konobi)
1186 * Moose::Meta::TypeCoercion
1187 - properly capturing error when type constraint
1191 - Scalar::Util 1.18 is bad on Win32, so temporarily
1192 only require version 1.17 for Win32 and cygwin.
1193 (thanks Adam Kennedy)
1195 0.12 Sat. Sept. 1, 2006
1197 - Recipe5 (subtypes & coercion) has been written
1200 - fixed "bad meta" error message to be more descriptive
1201 - fixed &unimport to not remove the &inner and &super
1202 keywords because we need to localize them.
1203 - fixed number of spelling/grammer issues, thanks Theory :)
1205 **~~ experimental & undocumented feature ~~**
1206 - added the method and self keywords, they are basically
1207 just sugar, and they may not stay around.
1210 - added &dump method to easily Data::Dumper
1213 * Moose::Meta::TypeConstraint
1214 - added the &is_a_type_of method to check both the current
1215 and the subtype of a method (similar to &isa with classes)
1218 - this is now a subclass of Class::MOP::Module, and no longer
1219 creates the _role_meta ugliness of before.
1220 - fixed tests to reflect this change
1222 0.11 Wed. July 12, 2006
1224 - added an &unimport method to remove all the keywords
1225 that Moose will import, simply add 'no Moose' to the
1226 bottom of your class file.
1229 - fixed some test failures caused by a forgotten test
1232 0.10 Thurs. July 6, 2006
1234 - improved error message when loading modules so
1235 it is less confusing when you load a role.
1236 - added &calculate_all_roles method to
1237 Moose::Meta::Class and Moose::Meta::Role
1240 This module has been tested against Class::MOP 0.30
1241 but it does not yet utilize the optimizations
1242 it makes available. Stay tuned for that ;)
1244 0.09_03 Fri. June 23, 2006
1245 ++ DEVELOPER RELEASE ++
1247 - 'use strict' and 'use warnings' are no longer
1248 needed in Moose classes, Moose itself will
1249 turn them on for you.
1250 - added tests for this
1251 - moved code from exported subs to private methods
1252 in Moose::Meta::Class
1255 - as with Moose, strict and warnings are
1256 automatically turned on for you.
1257 - added tests for this
1260 - now handles an edge case for override errors
1261 - added tests for this
1262 - added some more edge case tests
1264 0.09_02 Tues. May 16, 2006
1265 ++ DEVELOPER RELEASE ++
1267 - added prototypes to the exported subs
1271 - added prototypes to the exported subs
1274 * Moose::Util::TypeConstraints
1275 - cleaned up prototypes for the subs
1278 0.09_01 Fri. May 12, 2006
1279 ++ DEVELOPER RELEASE ++
1280 - This release works in combination with
1281 Class::MOP 0.29_01, it is a developer
1282 release because it uses the a new
1283 instance sub-protocol and a fairly
1284 complete Role implementation. It has
1285 not yet been optimized, so it slower
1286 the the previous CPAN version. This
1287 release also lacks good updated docs,
1288 the official release will have updated docs.
1291 - refactored the keyword exports
1292 - 'with' now checks Role validaity and
1293 accepts more than one Role at a time
1294 - 'extends' makes metaclass adjustments as
1295 needed to ensure metaclass compatability
1298 - refactored the keyword exports
1299 - 'with' now checks Role validaity and
1300 accepts more than one Role at a time
1302 * Moose::Util::TypeConstraints
1303 - added the 'enum' keyword for simple
1304 string enumerations which can be used as
1306 - see example of usage in t/202_example.t
1309 - more careful checking of params to new()
1312 - much work done on the role composition
1313 - many new tests for conflict detection
1314 and composition edge cases
1315 - not enough documentation, I suggest
1316 looking at the tests
1318 * Moose::Meta::Instance
1319 - added new Instance metaclass to support
1320 the new Class::MOP instance protocol
1322 * Moose::Meta::Class
1323 - some small changes to support the new
1325 - some small additions to support Roles
1327 * Moose::Meta::Attribute
1328 - some improvements to the accessor generation code
1330 - some small changes to support the new
1332 - (still somewhat) experimental delegation support
1333 with the 'handles' option
1334 - added several tests for this
1335 - no docs for this yet
1337 0.05 Thurs. April 27, 2006
1339 - keywords are now exported with Sub::Exporter
1340 thanks to chansen for this commit
1341 - has keyword now takes a 'metaclass' option
1342 to support custom attribute meta-classes
1343 on a per-attribute basis
1344 - added tests for this
1345 - the 'has' keyword not accepts inherited slot
1346 specifications (has '+foo'). This is still an
1347 experimental feature and probably not finished
1348 see t/038_attribute_inherited_slot_specs.t for
1349 more details, or ask about it on #moose
1350 - added tests for this
1353 - keywords are now exported with Sub::Exporter
1355 * Moose::Utils::TypeConstraints
1356 - reorganized the type constraint hierarchy, thanks
1357 to nothingmuch and chansen for his help and advice
1359 - added some tests for this
1360 - keywords are now exported with Sub::Exporter
1361 thanks to chansen for this commit
1363 * Moose::Meta::Class
1364 - due to changes in Class::MOP, we had to change
1365 construct_instance (for the better)
1367 * Moose::Meta::Attribute
1368 - due to changes in Class::MOP, we had to add the
1369 initialize_instance_slot method (it's a good thing)
1371 * Moose::Meta::TypeConstraint
1372 - added type constraint unions
1373 - added tests for this
1374 - added the is_subtype_of predicate method
1375 - added tests for this
1377 0.04 Sun. April 16th, 2006
1379 - Roles can now consume other roles
1380 - added tests for this
1381 - Roles can specify required methods now with
1382 the requires() keyword
1383 - added tests for this
1386 - ripped out much of it's guts ,.. much cleaner now
1387 - added required methods and correct handling of
1388 them in apply() for both classes and roles
1389 - added tests for this
1390 - no longer adds a does() method to consuming classes
1391 it relys on the one in Moose::Object
1392 - added roles attribute and some methods to support
1393 roles consuming roles
1395 * Moose::Meta::Attribute
1396 - added support for triggers on attributes
1397 - added tests for this
1398 - added support for does option on an attribute
1399 - added tests for this
1401 * Moose::Meta::Class
1402 - added support for attribute triggers in the
1404 - added tests for this
1407 - Moose no longer creates a subtype for your class
1408 if a subtype of the same name already exists, this
1409 should DWIM in 99.9999% of all cases
1411 * Moose::Util::TypeConstraints
1412 - fixed bug where incorrect subtype conflicts were
1414 - added test for this
1417 - this class can now be extended with 'use base' if
1418 you need it, it properly loads the metaclass class now
1419 - added test for this
1421 0.03_02 Wed. April 12, 2006
1423 - you must now explictly use Moose::Util::TypeConstraints
1424 it no longer gets exported for you automatically
1427 - new() now accepts hash-refs as well as key/value lists
1428 - added does() method to check for Roles
1429 - added tests for this
1431 * Moose::Meta::Class
1432 - added roles attribute along with the add_role() and
1434 - added tests for this
1437 - now adds a does() method to consuming classes
1438 which tests the class's hierarchy for roles
1439 - added tests for this
1441 0.03_01 Mon. April 10, 2006
1443 - added new Role recipe (no content yet, only code)
1446 - added 'with' keyword for Role support
1447 - added test and docs for this
1448 - fixed subtype quoting bug
1449 - added test for this
1453 - added test and docs
1455 * Moose::Util::TypeConstraints
1456 - added the message keyword to add custom
1457 error messages to type constraints
1460 - the meta role to support Moose::Role
1461 - added tests and docs
1463 * Moose::Meta::Class
1464 - moved a number of things from Moose.pm
1465 to here, they should have been here
1468 * Moose::Meta::Attribute
1469 - moved the attribute option macros here
1470 instead of putting them in Moose.pm
1472 * Moose::Meta::TypeConstraint
1473 - added the message attributes and the
1475 - added tests and docs for this
1477 0.03 Thurs. March 30, 2006
1479 - added the Moose::Cookbook with 5 recipes,
1480 describing all the stuff Moose can do.
1483 - fixed an issue with &extends super class loading
1484 it now captures errors and deals with inline
1485 packages correctly (bug found by mst, solution
1487 - added super/override & inner/augment features
1488 - added tests and docs for these
1491 - BUILDALL now takes a reference of the %params
1492 that are passed to &new, and passes that to
1495 * Moose::Util::TypeConstraints
1496 - Type constraints now survive runtime reloading
1497 - added test for this
1499 * Moose::Meta::Class
1500 - fixed the way attribute defaults are handled
1501 during instance construction (bug found by chansen)
1503 * Moose::Meta::Attribute
1504 - read-only attributes now actually enforce their
1505 read-only-ness (this corrected in Class::MOP as
1508 0.02 Tues. March 21, 2006
1510 - many more tests, fixing some bugs and
1512 - &extends now loads the base module with
1514 - added UNIVERSAL::require to the
1517 - each new Moose class will also create
1518 and register a subtype of Object which
1519 correspond to the new Moose class.
1520 - the 'isa' option in &has now only
1521 accepts strings, and will DWIM in
1524 * Moose::Util::TypeConstraints
1525 - added type coercion features
1526 - added tests for this
1527 - added support for this in attributes
1528 and instance construction
1530 - type construction no longer creates a
1531 function, it registers the type instead.
1532 - added several functions to get the
1536 - BUILDALL and DEMOLISHALL were broken
1537 because of a mis-named hash key, Whoops :)
1539 * Moose::Meta::Attribute
1540 - adding support for coercion in the
1541 autogenerated accessors
1543 * Moose::Meta::Class
1544 - adding support for coercion in the
1545 instance construction
1547 * Moose::Meta::TypeConstraint
1548 * Moose::Meta::TypeCoercion
1549 - type constraints and coercions are now
1550 full fledges meta-objects
1552 0.01 Wed. March 15, 2006
1553 - Moooooooooooooooooose!!!