1 Revision history for Perl extension Moose
3 0.54 Thurs. July 3, 2008
4 ... this is not my day today ...
6 * Moose::Meta::Attribute
7 - fixed legal_options_for_inheritance such that
8 clone_and_inherit options still works for
9 Class::MOP::Attribute objects and therefore
10 does not break MooseX::AttributeHelpers
13 0.53 Thurs. July 3, 2008
14 * Whoops, I guess I should run 'make manifest' before
15 actually releasing the module. No actual changes
16 in this release, except the fact that it includes
17 the changes that I didn't include in the last
20 0.52 Thurs. July 3, 2008
22 - added "FEATURE REQUESTS" section to the Moose docs
23 to properly direct people (stevan) (RT #34333)
24 - making 'extends' croak if it is passed a Role since
25 this is not ever something you want to do
26 (fixed by stevan, found by obra)
27 - added tests for this (stevan)
30 - adding support for DOES (as in UNIVERSAL::DOES)
34 * Moose::Meta::Attribute
35 - added legal_options_for_inheritance (wreis)
36 - added tests for this (wreis)
38 * Moose::Cookbook::Snacks::*
39 - removed some of the unfinished snacks that should
40 not have been released yet. Added some more examples
41 to the 'Keywords' snack. (stevan)
43 * Moose::Cookbook::Style
44 - added general Moose "style guide" of sorts to the
45 cookbook (nothingmuch) (RT #34335)
48 - added more BUILDARGS tests (stevan)
50 0.51 Thurs. Jun 26, 2008
52 - add unimport so "no Moose::Role" actually does
55 * Moose::Meta::Role::Application::ToRole
56 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
57 order to provide its own implementation, that method still got
58 added to the list of required methods for consumers of
59 RoleB. Now an aliased method is only added to the list of
60 required methods if the role doing the aliasing does not
61 provide its own implementation. See Recipe 11 for an example
62 of all this. (Dave Rolsky)
63 - added tests for this
65 * Moose::Meta::Method::Constructor
66 - when a single argument that wasn't a hashref was provided to
67 an immutabilized constructor, the error message was very
68 unhelpful, as opposed to the non-immutable error. Reported by
70 - added test for this (Dave Rolsky)
72 * Moose::Meta::Attribute
73 - added support for meta_attr->does("ShortAlias") (sartak)
74 - added tests for this (sartak)
75 - moved the bulk of the `handles` handling to the new
76 install_delegation method (Stevan)
79 - Added BUILDARGS, a new step in new()
81 * Moose::Meta::Role::Application::RoleSummation
82 - fix typos no one ever sees (sartak)
84 * Moose::Util::TypeConstraints
85 * Moose::Meta::TypeConstraint
86 * Moose::Meta::TypeCoercion
87 - Attempt to work around the ??{ } vs. threads issue
89 - Some null_constraint optimizations
91 0.50 Thurs. Jun 11, 2008
92 - Fixed a version number issue by bumping all modules
95 0.49 Thurs. Jun 11, 2008
96 !! This version now approx. 20-25% !!
97 !! faster with new Class::MOP 0.59 !!
99 * Moose::Meta::Attribute
100 - fixed how the is => (ro|rw) works with
101 custom defined reader, writer and accessor
103 - added docs for this (TODO).
104 - added tests for this (Thanks to Penfold)
105 - added the custom attribute alias for regular
106 Moose attributes which is "Moose"
107 - fix builder and default both being used
112 Moose::Meta::Attribute
114 Moose::Meta::Role::Composite
115 Moose::Util::TypeConstraints
116 - switched usage of reftype to ref because
120 - changing add_package_symbol to use the new
124 - fixed how DEMOLISHALL is called so that it
125 can be overrided in subclasses (thanks to Sartak)
126 - added test for this (thanks to Sartak)
128 * Moose::Util::TypeConstraints
129 - move the ClassName type check code to
130 Class::MOP::is_class_loaded (thanks to Sartak)
132 * Moose::Cookbook::Recipe11
133 - add tests for this (thanks to tokuhirom)
135 0.48 Thurs. May 29, 2008
136 (early morning release engineering)--
138 - fixing the version in Moose::Meta::Method::Destructor
139 which was causing the indexer to choke
141 0.47 Thurs. May 29, 2008
142 (late night release engineering)--
144 - fixing the version is META.yml, no functional
145 changes in this release
147 0.46 Wed. May 28, 2008
148 !! This version now approx. 20-25% !!
149 !! faster with new Class::MOP 0.57 !!
152 - some optimizations of the &initialize method
153 since it is called so often by &meta
157 - now use the get_all_package_symbols from the
158 updated Class::MOP, test suite is now 10 seconds
161 * Moose::Meta::Method::Destructor
162 - is_needed can now also be called as a class
163 method for immutablization to check if the
164 destructor object even needs to be created
167 * Moose::Meta::Method::Destructor
168 Moose::Meta::Method::Constructor
169 - added more descriptive error message to help
170 keep people from wasting time tracking an error
171 that is easily fixed by upgrading.
173 0.45 Saturday, May 24, 2008
175 - Because of work in Class::MOP 0.56, all
176 XS based functionality is now optional
177 and a Pure Perl version is supplied
178 - the CLASS_MOP_NO_XS environment variable
179 can now be used to force non-XS versions
181 - several of the packages have been tweaked
182 to take care of this, mostly we added
183 support for the package_name and name
184 variables in all the Method metaclasses
185 - before/around/after method modifiers now
186 support regexp matching of names
187 (thanks to Takatoshi Kitano)
188 - tests added for this
189 - NOTE: this only works for classes, it
190 is currently not supported in roles,
191 but, ... patches welcome
192 - All usage of Carp::confess have been replaced
193 by Carp::croak in the "keyword" functions since
194 the stack trace is usually not helpful
197 - All usage of Carp::confess have been replaced
198 by Carp::croak in the "keyword" functions since
199 the stack trace is usually not helpful
200 - The 'has' keyword for roles now accepts the
201 same array ref form that Moose.pm does
202 (has [qw/foo bar/] => (is => 'rw', ...))
203 - added test for this
205 * Moose::Meta::Attribute
206 - trigger on a ro-attribute is no longer an
207 error, as it's useful to trigger off of the
211 - added same 'add_package_symbol' fix as in
215 - does_role now handles non-Moose classes
217 - added tests for this
218 - added the 'add_method_modifier' function
219 (thanks to Takatoshi Kitano)
221 * Moose::Util::TypeConstraints
222 - subtypes of parameterizable types now are
223 themselves parameterizable types
225 * Moose::Meta::Method::Constructor
226 - fixed bug where trigger was not being
227 called by the inlined immutable
229 - added test for this (thanks to Caelum)
231 * Moose::Meta::Role::Application::ToInstance
232 - now uses the metaclass of the instance
233 (if possible) to create the anon-class
234 (thanks Jonathan Rockway)
236 * Moose::Cookbook::Recipe22
237 - added the meta-attribute trait recipe
241 - fixed hash-ordering test bug that was
242 causing occasional cpantester failures
243 - renamed the t/000_recipe/*.t tests to be
244 more descriptive (thanks to Sartak)
246 0.44 Sat. May 10, 2008
248 - made make_immutable warning cluck to
249 show where the error is (thanks mst)
252 - BUILDALL and DEMOLISHALL now call
253 ->body when looping through the
254 methods, to avoid the overloaded
256 - fixed issue where DEMOLISHALL was
257 eating the $@ values, and so not
258 working correctly, it still kind of
259 eats them, but so does vanilla perl
260 - added tests for this
262 * Moose::Cookbook::Recipe7
263 - added new recipe for immutable
264 functionality (thanks Dave Rolsky)
266 * Moose::Cookbook::Recipe9
267 - added new recipe for builder and
268 lazy_build (thanks Dave Rolsky)
270 * Moose::Cookbook::Recipe11
271 - added new recipe for method aliasing
272 and exclusion with Roles (thanks Dave Rolsky)
275 - fixed Win32 test failure (thanks spicyjack)
277 ~ removed Build.PL and Module::Build compat
278 since Module::Install has done that.
280 0.43 Wed. April, 30, 2008
282 drink more coffee before
283 doing release engineering
285 - whoops, forgot to do the smolder tests,
286 and we broke some of the custom meta-attr
287 modules. This fixes that.
289 0.42 Mon. April 28, 2008
290 - some bad tests slipped by, nothing else
291 changed in this release (cpantesters++)
293 - upped the Class::MOP dependency to 0.55
294 since we have tests which need the C3
297 0.41 Mon. April 28, 2008
298 ~~ numerous documentation updates ~~
300 - Changed all usage of die to Carp::croak for better
301 error reporting (initial patch by Tod Hagan)
304 - the make_immutable keyword is now deprecated, don't
305 use it in any new code and please fix your old code
306 as well. There will be 2 releases, and then it will
312 - refactored the way inner and super work to avoid
313 any method/@ISA cache penalty (nothingmuch)
316 - fixing &new_object to make sure trigger gets the
317 coerced value (spotted by Charles Alderman on the
319 - added test for this
321 * Moose::Meta::Method::Constructor
322 - immutable classes which had non-lazy attributes were calling
323 the default generating sub twice in the constructor. (bug
324 found by Jesse Luehrs, fixed by Dave Rolsky)
325 - added tests for this (Dave Rolsky)
326 - fix typo in initialize_body method (nothingmuch)
328 * Moose::Meta::Method::Destructor
329 - fix typo in initialize_body method (nothingmuch)
331 * Moose::Meta::Method::Overriden
332 Moose::Meta::Method::Augmented
333 - moved the logic for these into their own
334 classes (nothingmuch)
336 * Moose::Meta::Attribute
337 - inherited attributes may now be extended without
338 restriction on the type ('isa', 'does') (Sartak)
339 - added tests for this (Sartak)
340 - when an attribute property is malformed (such as lazy without
341 a default), give the name of the attribute in the error
343 - added the &applied_traits and &has_applied_traits methods
344 to allow introspection of traits
345 - added tests for this
346 - moved 'trait' and 'metaclass' argument handling to here from
348 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
349 '+foo' syntax) (nothingmuch)
350 - added tests for this (t0m)
353 - localize $@ inside DEMOLISHALL to avoid it
354 eating $@ (found by Ernesto)
355 - added test for this (thanks to Ernesto)
357 * Moose::Util::TypeConstraints
358 - &find_type_constraint now DWIMs when given an
359 type constraint object or name (nothingmuch)
360 - &find_or_create_type_constraint superseded with a number of more
362 - find_or_create_{isa,does}_type_constraint
363 - find_or_parse_type_constraint
365 * Moose::Meta::TypeConstraint
366 Moose::Meta::TypeConstraint::Class
367 Moose::Meta::TypeConstraint::Role
368 Moose::Meta::TypeConstraint::Enum
369 Moose::Meta::TypeConstraint::Union
370 Moose::Meta::TypeConstraint::Parameterized
371 - added the &equals method for comparing two type
372 constraints (nothingmuch)
373 - added tests for this (nothingmuch)
375 * Moose::Meta::TypeConstraint
376 - add the &parents method, which is just an alias to &parent.
377 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
379 * Moose::Meta::TypeConstraint::Class
380 - added the class attribute for introspection purposes
382 - added tests for this
384 * Moose::Meta::TypeConstraint::Enum
385 Moose::Meta::TypeConstraint::Role
386 - broke these out into their own classes (nothingmuch)
388 * Moose::Cookbook::Recipe*
389 - fixed references to test file locations in the POD
390 and updated up some text for new Moose features
394 - Added &resolve_metaclass_alias, a helper function for finding an actual
395 class for a short name (e.g. in the traits list)
397 0.40 Fri. March 14, 2008
398 - I hate Pod::Coverage
400 0.39 Fri. March 14, 2008
402 - documenting the use of '+name' with attributes
403 that come from recently composed roles. It makes
404 sense, people are using it, and so why not just
405 officially support it.
406 - fixing the 'extends' keyword so that it will not
407 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
410 - added the perl -Moose=+Class::Name feature to allow
411 monkeypatching of classes in one liners
414 - fixing the 'apply_all_roles' keyword so that it will not
415 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
418 - added ->create method which now supports roles (thanks to jrockway)
419 - added tests for this
420 - added ->create_anon_class which now supports roles and caching of
421 the results (thanks to jrockway)
422 - added tests for this
423 - made ->does_role a little more forgiving when it is
424 checking a Class::MOP era metaclasses.
426 * Moose::Meta::Role::Application::ToInstance
427 - it is now possible to pass extra params to be used when
428 a role is applied to an the instance (rebless_params)
429 - added tests for this
431 * Moose::Util::TypeConstraints
432 - class_type now accepts an optional second argument for a
433 custom message. POD anotated accordingly (groditi)
434 - added tests for this
435 - it is now possible to make anon-enums by passing 'enum' an
436 ARRAY ref instead of the $name => @values. Everything else
438 - added tests for this
441 - making test for using '+name' on attributes consumed
442 from a role, it works and makes sense too.
444 * Moose::Meta::Attribute
445 - fix handles so that it doesn't return nothing
446 when the method cannot be found, not sure why
447 it ever did this originally, this means we now
448 have slightly better support for AUTOLOADed
450 - added more delegation tests
451 - adding ->does method to this so as to better
452 support traits and their introspection.
453 - added tests for this
456 - localizing the Data::Dumper configurations so
457 that it does not pollute others (RT #33509)
458 - made ->does a little more forgiving when it is
459 passed Class::MOP era metaclasses.
461 0.38 Fri. Feb. 15, 2008
462 * Moose::Meta::Attribute
463 - fixed initializer to correctly do
464 type checking and coercion in the
466 - added tests for this
469 - fixed some finicky tests (thanks to konobi)
471 0.37 Thurs. Feb. 14, 2008
473 - fixed some details in Moose::init_meta
474 and its superclass handling (thanks thepler)
475 - added tests for this (thanks thepler)
476 - 'has' now dies if you don't pass in name
478 - added the 'make_immutable' keyword as a shortcut
482 Moose::Meta::Method::Constructor
483 Moose::Meta::Attribute
484 - making (init_arg => undef) work here too
485 (thanks to nothingmuch)
487 * Moose::Meta::Attribute
488 Moose::Meta::Method::Constructor
489 Moose::Meta::Method::Accessor
490 - make lazy attributes respect attr initializers (rjbs)
491 - added tests for this
493 * Moose::Util::TypeConstraints
494 Moose::Util::TypeConstraints::OptimizedConstraints
495 Moose::Meta::TypeConstraints
496 Moose::Meta::Attribute
497 Moose::Meta::Method::Constructor
498 Moose::Meta::Method::Accessor
499 - making type errors use the
500 assigned message (thanks to Sartak)
501 - added tests for this
503 * Moose::Meta::Method::Destructor
504 - making sure DESTROY gets inlined properly
505 with successive DEMOLISH calls (thanks to manito)
507 * Moose::Meta::Attribute
508 Moose::Meta::Method::Accessor
509 - fixed handling of undef with type constraints
511 - added tests for this
514 - added &get_all_init_args and &get_all_attribute_values
515 (thanks to Sartak and nothingmuch)
517 0.36 Sat. Jan. 26, 2008
519 Moose::Meta::Attribute
520 - role type tests now support when roles are
521 applied to non-Moose classes (found by ash)
522 - added tests for this (thanks to ash)
523 - couple extra tests to boost code coverage
525 * Moose::Meta::Method::Constructor
526 - improved fix for handling Class::MOP attributes
527 - added test for this
530 - handled the add_attribute($attribute_meta_object)
532 - added test for this
534 0.35 Tues. Jan. 22, 2008
535 * Moose::Meta::Method::Constructor
536 - fix to make sure even Class::MOP attributes
537 are handled correctly (Thanks to Dave Rolsky)
538 - added test for this (also Dave Rolsky)
541 - improved error message on _apply_all_roles,
542 you should now use Moose::Util::apply_all_roles
543 and you shouldnt have been using a _ prefixed
544 method in the first place ;)
546 0.34 Mon. Jan. 21, 2008
547 ~~~ more misc. doc. fixes ~~~
548 ~~ updated copyright dates ~~
550 Moose is now a postmodern object system :)
551 - (see the POD for details)
553 * <<Role System Refactoring>>
554 - this release contains a major reworking and
555 cleanup of the role system
556 - 100% backwards compat.
557 - Role application now restructured into seperate
558 classes based on type of applicants
559 - Role summation (combining of more than one role)
560 is much cleaner and anon-classes are no longer
562 - new Composite role metaclass
563 - runtime application of roles to instances
564 is now more efficient and re-uses generated
565 classes when applicable
567 * <<New Role composition features>>
568 - methods can now be excluded from a given role
570 - methods can now be aliased to another name (and
571 still retain the original as well)
573 * Moose::Util::TypeConstraints::OptimizedConstraints
574 - added this module (see above)
577 - fixed the &_process_attribute method to be called
578 by &add_attribute, so that the API is now correct
580 * Moose::Meta::Method::Accessor
581 - fixed bug when passing a list of values to
582 an accessor would get (incorrectly) ignored.
583 Thanks to Sartak for finding this ;)
584 - added tests for this (Sartak again)
586 * Moose::Meta::Method::Accessor
587 Moose::Meta::Method::Constructor
588 Moose::Meta::Attribute
589 Moose::Meta::TypeConstraint
590 Moose::Meta::TypeCoercion
591 - lots of cleanup of such things as:
593 - type constraint handling
594 - error handling/messages
595 (thanks to nothingmuch)
597 * Moose::Meta::TypeConstraint::Parameterizable
598 - added this module to support the refactor
599 in Moose::Meta::TypeConstraint::Parameterized
601 * Moose::Meta::TypeConstraint::Parameterized
602 - refactored how these types are handled so they
603 are more generic and not confined to ArrayRef
607 - shortened some file names for better VMS support (RT #32381)
609 0.33 Fri. Dec. 14, 2007
610 !! Moose now loads 2 x faster !!
611 !! with new Class::MOP 0.49 !!
613 ++ new oose.pm module to make command line
614 Moose-ness easier (see POD docs for more)
618 - several tweaks to take advantage of the
619 new method map caching in Class::MOP
621 * Moose::Meta::TypeConstraint::Parameterized
622 - allow subtypes of ArrayRef and HashRef to
623 be used as a container (sartak)
624 - added tests for this
625 - basic support for coercion to ArrayRef and
626 HashRef for containers (sartak)
627 - added tests for this
629 * Moose::Meta::TypeCoercion
630 - coercions will now create subtypes as needed
631 so you can now add coercions to parameterized
632 types without having to explictly define them
633 - added tests for this
635 * Moose::Meta::Method::Accessor
636 - allow subclasses to decide whether we need
637 to copy the value into a new variable (sartak)
639 0.32 Tues. Dec. 4, 2007
640 * Moose::Util::TypeConstraints
641 - fixing how subtype aliases of unions work
642 they should inherit the parent's coercion
643 - added tests for this
644 - you can now define multiple coercions on
645 a single type at different times instead of
646 having to do it all in one place
647 - added tests for this
649 * Moose::Meta::TypeConstraint
650 - there is now a default constraint of sub { 1 }
651 instead of Moose::Util::TypeConstraints setting
654 * Moose::Meta::TypeCoercion
655 * Moose::Meta::TypeCoercion::Union
656 - added the &has_coercion_for_type and
657 &add_type_coercions methods to support the
658 new features above (although you cannot add
659 more type coercions for Union types)
661 0.31 Mon. Nov. 26, 2007
662 * Moose::Meta::Attribute
663 - made the +attr syntax handle extending types with
664 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
665 now works if the original foo is an ArrayRef.
666 - added tests for this.
667 - delegation now works even if the attribute does not
668 have a reader method using the get_read_method_ref
669 method from Class::MOP::Attribute.
670 - added tests for this
671 - added docs for this
673 * Moose::Util::TypeConstraints
674 - passing no "additional attribute info" to
675 &find_or_create_type_constraint will no longer
676 attempt to create an __ANON__ type for you,
677 instead it will just return undef.
678 - added docs for this
680 0.30 Fri. Nov. 23, 2007
681 * Moose::Meta::Method::Constructor
682 -builder related bug in inlined constructor. (groditi)
684 * Moose::Meta::Method::Accessor
685 - genereate unnecessary calls to predicates and refactor
686 code generation for runtime speed (groditi)
688 * Moose::Util::TypeConstraints
689 - fix ClassName constraint to introspect symbol table (mst)
690 - added more tests for this (mst)
691 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
693 - added tests for this
696 - adding the link to Recipie 11 (written by Sartak)
697 - adding test for SYNOPSIS code
700 - New tests for builder bug. Upon instantiation, if an
701 attribute had a builder, no value and was not lazy the
702 builder default was not getting run, oops. (groditi)
704 0.29 Tues. Nov. 13, 2007
705 * Moose::Meta::Attribute
706 - Fix error message on missing builder method (groditi)
708 * Moose::Meta::Method::Accessor
709 - Fix error message on missing builder method (groditi)
712 - Add test to check for the correct error message when
713 builder method is missing (groditi)
715 0.28 Tues. Nov. 13, 2007
716 - 0.27 packaged incorrectly (groditi)
718 0.27 Tues. Nov. 13, 2007
719 * Moose::Meta::Attribute
720 - Added support for the new builder option (groditi)
721 - Added support for lazy_build option (groditi)
722 - Changed slot initialization for predicate changes (groditi)
724 * Moose::Meta::Method::Accessor
725 - Added support for lazy_build option (groditi)
726 - Fix inline methods to work with corrected predicate
729 * Moose::Meta::Method::Constructor
730 - Added support for lazy_build option (groditi)
733 - tests for builder and lazy_build (groditi)
735 * fixing some misc. bits in the docs that
736 got mentioned on CPAN Forum & perlmonks
739 - fixed how required methods are handled
740 when they encounter overriden or modified
741 methods from a class (thanks to confound).
742 - added tests for this
744 * Moose::Util::TypeConstraint
745 - fixed the type notation parser so that
746 the | always creates a union and so is
747 no longer a valid type char (thanks to
748 konobi, mugwump and #moose for working
750 - added more tests for this
752 0.26 Thurs. Sept. 27, 2007
755 * Parameterized Types
756 We now support parameterized collection types, such as:
757 ArrayRef[Int] # array or integers
758 HashRef[Object] # a hash with object values
759 They can also be nested:
760 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
761 And work with the type unions as well:
762 ArrayRef[Int | Str] # array of integers of strings
764 * Better Framework Extendability
765 Moose.pm is now "extendable" such that it is now much
766 easier to extend the framework and add your own keywords
767 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
768 section of the Moose.pm docs.
771 In an effort to begin documenting some of the various
772 details of Moose as well as some common idioms, we have
773 created Moose::Cookbook::Snacks as a place to find
774 small (easily digestable) nuggets of Moose code.
777 ~ Several doc updates/cleanup thanks to castaway ~
779 - converted build system to use Module::Install instead of
780 Module::Build (thanks to jrockway)
783 - added all the meta classes to the immutable list and
784 set it to inline the accessors
785 - fix import to allow Sub::Exporter like { into => }
786 and { into_level => } (perigrin)
787 - exposed and documented init_meta() to allow better
788 embedding and extending of Moose (perigrin)
791 - complete re-organization of the test suite
792 - added some new tests as well
793 - finally re-enabled the Moose::POOP test since
794 the new version of DBM::Deep now works again
798 - fixed very odd and very nasty recursion bug with
800 - added tests for this (eilara)
802 * Moose::Meta::Attribute
803 Moose::Meta::Method::Constructor
804 Moose::Meta::Method::Accessor
805 - fixed issue with overload::Overloaded getting called
806 on non-blessed items. (RT #29269)
807 - added tests for this
809 * Moose::Meta::Method::Accessor
810 - fixed issue with generated accessor code making
811 assumptions about hash based classes (thanks to dexter)
813 * Moose::Coookbook::Snacks
814 - these are bits of documentation, not quite as big as
815 Recipes but which have no clear place in the module docs.
816 So they are Snacks! (horray for castaway++)
818 * Moose::Cookbook::Recipe4
819 - updated it to use the new ArrayRef[MyType] construct
820 - updated the accompanying test as well
822 +++ Major Refactor of the Type Constraint system +++
823 +++ with new features added as well +++
825 * Moose::Util::TypeConstraint
826 - no longer uses package variable to keep track of
827 the type constraints, now uses the an instance of
828 Moose::Meta::TypeConstraint::Registry to do it
829 - added more sophisticated type notation parsing
831 - added tests for this
833 * Moose::Meta::TypeConstraint
834 - some minor adjustments to make subclassing easier
835 - added the package_defined_in attribute so that we
836 can track where the type constraints are created
838 * Moose::Meta::TypeConstraint::Union
839 - this is now been refactored to be a subclass of
840 Moose::Meta::TypeConstraint
842 * Moose::Meta::TypeCoercion::Union
843 - this has been added to service the newly refactored
844 Moose::Meta::TypeConstraint::Union and is itself
845 a subclass of Moose::Meta::TypeCoercion
847 * Moose::Meta::TypeConstraint::Parameterized
848 - added this module (taken from MooseX::AttributeHelpers)
849 to help construct nested collection types
850 - added tests for this
852 * Moose::Meta::TypeConstraint::Registry
853 - added this class to keep track of type constraints
855 0.25 Mon. Aug. 13, 2007
857 - Documentation update to reference Moose::Util::TypeConstraints
858 under 'isa' in 'has' for how to define a new type
861 * Moose::Meta::Attribute
862 - required attributes now will no longer accept undef
863 from the constructor, even if there is a default and lazy
864 - added tests for this
865 - default subroutines must return a value which passes the
867 - added tests for this
869 * Moose::Meta::Attribute
870 * Moose::Meta::Method::Constructor
871 * Moose::Meta::Method::Accessor
872 - type-constraint tests now handle overloaded objects correctly
874 - added tests for this (thanks to EvanCarroll)
876 * Moose::Meta::TypeConstraint::Union
877 - added (has_)hand_optimized_constraint to this class so that
878 it behaves as the regular Moose::Meta::TypeConstraint does.
881 - large refactoring of this code
882 - added several more tests
883 - tests for subtle conflict resolition issues
884 added, but not currently running
887 * Moose::Cookbook::Recipe7
888 - added new recipe for augment/inner functionality
890 - added test for this
893 - a formal definition of roles (still in progress)
896 - utilities for easier working with Moose classes
897 - added tests for these
900 - This contains Moose specific test functions
901 - added tests for these
903 0.24 Tues. July 3, 2007
904 ~ Some doc updates/cleanup ~
906 * Moose::Meta::Attribute
907 - added support for roles to be given as parameters
908 to the 'handles' option.
909 - added tests and docs for this
910 - the has '+foo' attribute form now accepts changes to
911 the lazy option, and the addition of a handles option
912 (but not changing the handles option)
913 - added tests and docs for this
916 - required methods are now fetched using find_method_by_name
917 so that required methods can come from superclasses
918 - adjusted tests for this
920 0.23 Mon. June 18, 2007
921 * Moose::Meta::Method::Constructor
922 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
924 - Modify make_immutable to work with the new Class::MOP immutable
925 mechanism + POD + very basic test (groditi)
926 * Moose::Meta::Attribute
927 - Fix handles to use goto() so that caller() comes out properly on
928 the other side (perigrin)
930 0.22 Thurs. May 31, 2007
931 * Moose::Util::TypeConstraints
932 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
933 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
934 prototypes for functions
935 - added the ClassName type constraint, this checks for strings
936 which will respond true to ->isa(UNIVERSAL).
937 - added tests and docs for this
938 - subtyping just in name now works correctly by making the
939 default for where be { 1 }
940 - added test for this
942 * Moose::Meta::Method::Accessor
943 - coerce and lazy now work together correctly, thanks to
944 merlyn for finding this bug
945 - tests added for this
946 - fix reader presedence bug in Moose::Meta::Attribute + tests
949 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
950 a HASH-ref and missed. This produces better error messages then
951 having it die cause undef is not a HASH.
952 - added tests for this
954 0.21 Thursday, May 2nd, 2007
956 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
957 - modified unimport to remove super and inner along with the rest
958 - altered unimport tests to handle this
961 - altered super export to populate SUPER_SLOT
964 - altered augment and override modifier application to use *_SLOT
965 - modified tests for these to unimport one test class each to test
968 - fixed issue where custom attribute metaclasses
969 where not handled correctly in roles
970 - added tests for this
973 - fixed issue where extending metaclasses with
974 roles would blow up. Thanks to Aankhen`` for
975 finding this insidious error, and it's solution.
977 ~~ lots of spelling and grammer fixes in the docs,
978 many many thanks to rlb3 and Aankhen for these :)
980 0.20 Friday, April 6th, 2007
981 >> I messed up the SKIP logic in one test
982 so this release is just to fix that.
985 - 'has' now also accepts an ARRAY ref
986 to create multiple attrs (see docs)
987 (thanks to konobi for this)
988 - added tests and docs
990 0.19 Thurs. April 5th, 2007
991 ~~ More documentation updates ~~
993 * Moose::Util::TypeConstraints
994 - 'type' now supports messages as well
995 thanks to phaylon for finding this
996 - added tests for this
997 - added &list_all_type_constraints and
998 &list_all_builtin_type_constraints
999 functions to facilitate introspection.
1001 * Moose::Meta::Attribute
1002 - fixed regexp 'handles' declarations
1003 to build the list of delegated methods
1004 correctly (and not override important
1005 things like &new) thanks to ashleyb
1007 - added tests and docs for this
1008 - added the 'documentation' attributes
1009 so that you can actually document your
1010 attributes and inspect them through the
1012 - added tests and docs for this
1014 * Moose::Meta::Class
1015 - when loading custom attribute metaclasses
1016 it will first look in for the class in the
1017 Moose::Meta::Attribute::Custom::$name, and
1018 then default to just loading $name.
1019 - added tests and docs for this
1021 * Moose::Meta::TypeConstraint
1022 - type constraints now stringify to their names.
1023 - added test for this
1026 - added tests to assure we work with Module::Refresh
1027 - added stricter test skip logic in the Moose POOP
1028 test, ask Rob Kinyon why.
1029 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1031 0.18 Sat. March 10, 2007
1032 ~~ Many, many documentation updates ~~
1035 - We now use Class::MOP::load_class to
1037 - added tests to show types and subtypes
1038 working with Declare::Constraints::Simple
1039 and Test::Deep as constraint engines.
1042 !! You must have Class::MOP 0.37_001 !!
1043 !! for this developer release to work !!
1045 This release was primarily adding the immutable
1046 feature to Moose. An immutable class is one which
1047 you promise not to alter. When you set the class
1048 as immutable it will perform various bits of
1049 memoization and inline certain part of the code
1050 (constructors, destructors and accessors). This
1051 minimizes (and in some cases totally eliminates)
1052 one of Moose's biggest performance hits. This
1053 feature is not on by default, and is 100% optional.
1054 It has several configurable bits as well, so you
1055 can pick and choose to your specific needs.
1057 The changes involved in this were fairly wide and
1058 highly specific, but 100% backwards compatible, so
1059 I am not going to enumerate them here. If you are
1060 truely interested in what was changed, please do
1063 0.17 Tues. Nov. 14, 2006
1064 * Moose::Meta::Method::Accessor
1065 - bugfix for read-only accessors which
1066 are have a type constraint and lazy.
1067 Thanks to chansen for finding it.
1069 0.16 Tues. Nov. 14, 2006
1071 There are some speed improvements in this release,
1072 but they are only the begining, so stay tuned.
1075 - BUILDALL and DEMOLISHALL no longer get
1076 called unless they actually need to be.
1077 This gave us a signifigant speed boost
1078 for the cases when there is no BUILD or
1079 DEMOLISH method present.
1081 * Moose::Util::TypeConstraints
1082 * Moose::Meta::TypeConstraint
1083 - added an 'optimize_as' option to the
1084 type constraint, which allows for a
1085 hand optimized version of the type
1086 constraint to be used when possible.
1087 - Any internally created type constraints
1088 now provide an optimized version as well.
1090 0.15 Sun. Nov. 5, 2006
1092 This version of Moose *must* have Class::MOP 0.36 in order
1093 to work correctly. A number of small internal tweaks have
1094 been made in order to be compatible with that release.
1096 * Moose::Util::TypeConstraints
1097 - added &unimport so that you can clean out
1098 your class namespace of these exported
1101 * Moose::Meta::Class
1102 - fixed minor issue which occasionally
1103 comes up during global destruction
1105 - moved Moose::Meta::Method::Overriden into
1109 - moved Moose::Meta::Role::Method into
1112 * Moose::Meta::Attribute
1113 - changed how we do type checks so that
1114 we reduce the overall cost, but still
1117 - moved accessor generation methods to
1118 Moose::Meta::Method::Accessor to
1119 conform to the API changes from
1122 * Moose::Meta::TypeConstraint
1123 - changed how constraints are compiled
1124 so that we do less recursion and more
1125 iteration. This makes the type check
1127 - moved Moose::Meta::TypeConstraint::Union
1130 * Moose::Meta::Method::Accessor
1131 - created this from methods formerly found in
1132 Moose::Meta::Attribute
1134 * Moose::Meta::Role::Method
1135 - moved this from Moose::Meta::Role
1137 * Moose::Meta::Method::Overriden
1138 - moved this from Moose::Meta::Class
1140 * Moose::Meta::TypeConstraint::Union
1141 - moved this from Moose::Meta::TypeConstraint
1143 0.14 Mon. Oct. 9, 2006
1145 * Moose::Meta::Attribute
1146 - fixed lazy attributes which were not getting
1147 checked with the type constraint (thanks ashley)
1148 - added tests for this
1149 - removed the over-enthusiastic DWIMery of the
1150 automatic ArrayRef and HashRef defaults, it
1151 broke predicates in an ugly way.
1152 - removed tests for this
1154 0.13 Sat. Sept. 30, 2006
1156 This version of Moose *must* have Class::MOP 0.35 in order
1157 to work correctly. A number of small internal tweaks have
1158 been made in order to be compatible with that release.
1161 - Removed the use of UNIVERSAL::require to be a better
1162 symbol table citizen and remove a dependency
1163 (thanks Adam Kennedy)
1165 **~~ removed experimental & undocumented feature ~~**
1166 - commented out the 'method' and 'self' keywords, see the
1167 comments for more info.
1170 - added a FAQ and WTF files to document frequently
1171 asked questions and common problems
1173 * Moose::Util::TypeConstraints
1174 - added GlobRef and FileHandle type constraint
1175 - added tests for this
1177 * Moose::Meta::Attribute
1178 - if your attribute 'isa' ArrayRef of HashRef, and you have
1179 not explicitly set a default, then make the default DWIM.
1180 This will also work for subtypes of ArrayRef and HashRef
1182 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1183 - new test added for this (thanks to ashley)
1186 - added basic support for runtime role composition
1187 but this is still *highly experimental*, so feedback
1188 is much appreciated :)
1189 - added tests for this
1191 * Moose::Meta::TypeConstraint
1192 - the type constraint now handles the coercion process
1193 through delegation, this is to support the coercion
1196 * Moose::Meta::TypeConstraint::Union
1197 - it is now possible for coercions to be performed
1199 - added tests for this (thanks to konobi)
1201 * Moose::Meta::TypeCoercion
1202 - properly capturing error when type constraint
1206 - Scalar::Util 1.18 is bad on Win32, so temporarily
1207 only require version 1.17 for Win32 and cygwin.
1208 (thanks Adam Kennedy)
1210 0.12 Sat. Sept. 1, 2006
1212 - Recipe5 (subtypes & coercion) has been written
1215 - fixed "bad meta" error message to be more descriptive
1216 - fixed &unimport to not remove the &inner and &super
1217 keywords because we need to localize them.
1218 - fixed number of spelling/grammer issues, thanks Theory :)
1220 **~~ experimental & undocumented feature ~~**
1221 - added the method and self keywords, they are basically
1222 just sugar, and they may not stay around.
1225 - added &dump method to easily Data::Dumper
1228 * Moose::Meta::TypeConstraint
1229 - added the &is_a_type_of method to check both the current
1230 and the subtype of a method (similar to &isa with classes)
1233 - this is now a subclass of Class::MOP::Module, and no longer
1234 creates the _role_meta ugliness of before.
1235 - fixed tests to reflect this change
1237 0.11 Wed. July 12, 2006
1239 - added an &unimport method to remove all the keywords
1240 that Moose will import, simply add 'no Moose' to the
1241 bottom of your class file.
1244 - fixed some test failures caused by a forgotten test
1247 0.10 Thurs. July 6, 2006
1249 - improved error message when loading modules so
1250 it is less confusing when you load a role.
1251 - added &calculate_all_roles method to
1252 Moose::Meta::Class and Moose::Meta::Role
1255 This module has been tested against Class::MOP 0.30
1256 but it does not yet utilize the optimizations
1257 it makes available. Stay tuned for that ;)
1259 0.09_03 Fri. June 23, 2006
1260 ++ DEVELOPER RELEASE ++
1262 - 'use strict' and 'use warnings' are no longer
1263 needed in Moose classes, Moose itself will
1264 turn them on for you.
1265 - added tests for this
1266 - moved code from exported subs to private methods
1267 in Moose::Meta::Class
1270 - as with Moose, strict and warnings are
1271 automatically turned on for you.
1272 - added tests for this
1275 - now handles an edge case for override errors
1276 - added tests for this
1277 - added some more edge case tests
1279 0.09_02 Tues. May 16, 2006
1280 ++ DEVELOPER RELEASE ++
1282 - added prototypes to the exported subs
1286 - added prototypes to the exported subs
1289 * Moose::Util::TypeConstraints
1290 - cleaned up prototypes for the subs
1293 0.09_01 Fri. May 12, 2006
1294 ++ DEVELOPER RELEASE ++
1295 - This release works in combination with
1296 Class::MOP 0.29_01, it is a developer
1297 release because it uses the a new
1298 instance sub-protocol and a fairly
1299 complete Role implementation. It has
1300 not yet been optimized, so it slower
1301 the the previous CPAN version. This
1302 release also lacks good updated docs,
1303 the official release will have updated docs.
1306 - refactored the keyword exports
1307 - 'with' now checks Role validaity and
1308 accepts more than one Role at a time
1309 - 'extends' makes metaclass adjustments as
1310 needed to ensure metaclass compatability
1313 - refactored the keyword exports
1314 - 'with' now checks Role validaity and
1315 accepts more than one Role at a time
1317 * Moose::Util::TypeConstraints
1318 - added the 'enum' keyword for simple
1319 string enumerations which can be used as
1321 - see example of usage in t/202_example.t
1324 - more careful checking of params to new()
1327 - much work done on the role composition
1328 - many new tests for conflict detection
1329 and composition edge cases
1330 - not enough documentation, I suggest
1331 looking at the tests
1333 * Moose::Meta::Instance
1334 - added new Instance metaclass to support
1335 the new Class::MOP instance protocol
1337 * Moose::Meta::Class
1338 - some small changes to support the new
1340 - some small additions to support Roles
1342 * Moose::Meta::Attribute
1343 - some improvements to the accessor generation code
1345 - some small changes to support the new
1347 - (still somewhat) experimental delegation support
1348 with the 'handles' option
1349 - added several tests for this
1350 - no docs for this yet
1352 0.05 Thurs. April 27, 2006
1354 - keywords are now exported with Sub::Exporter
1355 thanks to chansen for this commit
1356 - has keyword now takes a 'metaclass' option
1357 to support custom attribute meta-classes
1358 on a per-attribute basis
1359 - added tests for this
1360 - the 'has' keyword not accepts inherited slot
1361 specifications (has '+foo'). This is still an
1362 experimental feature and probably not finished
1363 see t/038_attribute_inherited_slot_specs.t for
1364 more details, or ask about it on #moose
1365 - added tests for this
1368 - keywords are now exported with Sub::Exporter
1370 * Moose::Utils::TypeConstraints
1371 - reorganized the type constraint hierarchy, thanks
1372 to nothingmuch and chansen for his help and advice
1374 - added some tests for this
1375 - keywords are now exported with Sub::Exporter
1376 thanks to chansen for this commit
1378 * Moose::Meta::Class
1379 - due to changes in Class::MOP, we had to change
1380 construct_instance (for the better)
1382 * Moose::Meta::Attribute
1383 - due to changes in Class::MOP, we had to add the
1384 initialize_instance_slot method (it's a good thing)
1386 * Moose::Meta::TypeConstraint
1387 - added type constraint unions
1388 - added tests for this
1389 - added the is_subtype_of predicate method
1390 - added tests for this
1392 0.04 Sun. April 16th, 2006
1394 - Roles can now consume other roles
1395 - added tests for this
1396 - Roles can specify required methods now with
1397 the requires() keyword
1398 - added tests for this
1401 - ripped out much of it's guts ,.. much cleaner now
1402 - added required methods and correct handling of
1403 them in apply() for both classes and roles
1404 - added tests for this
1405 - no longer adds a does() method to consuming classes
1406 it relys on the one in Moose::Object
1407 - added roles attribute and some methods to support
1408 roles consuming roles
1410 * Moose::Meta::Attribute
1411 - added support for triggers on attributes
1412 - added tests for this
1413 - added support for does option on an attribute
1414 - added tests for this
1416 * Moose::Meta::Class
1417 - added support for attribute triggers in the
1419 - added tests for this
1422 - Moose no longer creates a subtype for your class
1423 if a subtype of the same name already exists, this
1424 should DWIM in 99.9999% of all cases
1426 * Moose::Util::TypeConstraints
1427 - fixed bug where incorrect subtype conflicts were
1429 - added test for this
1432 - this class can now be extended with 'use base' if
1433 you need it, it properly loads the metaclass class now
1434 - added test for this
1436 0.03_02 Wed. April 12, 2006
1438 - you must now explictly use Moose::Util::TypeConstraints
1439 it no longer gets exported for you automatically
1442 - new() now accepts hash-refs as well as key/value lists
1443 - added does() method to check for Roles
1444 - added tests for this
1446 * Moose::Meta::Class
1447 - added roles attribute along with the add_role() and
1449 - added tests for this
1452 - now adds a does() method to consuming classes
1453 which tests the class's hierarchy for roles
1454 - added tests for this
1456 0.03_01 Mon. April 10, 2006
1458 - added new Role recipe (no content yet, only code)
1461 - added 'with' keyword for Role support
1462 - added test and docs for this
1463 - fixed subtype quoting bug
1464 - added test for this
1468 - added test and docs
1470 * Moose::Util::TypeConstraints
1471 - added the message keyword to add custom
1472 error messages to type constraints
1475 - the meta role to support Moose::Role
1476 - added tests and docs
1478 * Moose::Meta::Class
1479 - moved a number of things from Moose.pm
1480 to here, they should have been here
1483 * Moose::Meta::Attribute
1484 - moved the attribute option macros here
1485 instead of putting them in Moose.pm
1487 * Moose::Meta::TypeConstraint
1488 - added the message attributes and the
1490 - added tests and docs for this
1492 0.03 Thurs. March 30, 2006
1494 - added the Moose::Cookbook with 5 recipes,
1495 describing all the stuff Moose can do.
1498 - fixed an issue with &extends super class loading
1499 it now captures errors and deals with inline
1500 packages correctly (bug found by mst, solution
1502 - added super/override & inner/augment features
1503 - added tests and docs for these
1506 - BUILDALL now takes a reference of the %params
1507 that are passed to &new, and passes that to
1510 * Moose::Util::TypeConstraints
1511 - Type constraints now survive runtime reloading
1512 - added test for this
1514 * Moose::Meta::Class
1515 - fixed the way attribute defaults are handled
1516 during instance construction (bug found by chansen)
1518 * Moose::Meta::Attribute
1519 - read-only attributes now actually enforce their
1520 read-only-ness (this corrected in Class::MOP as
1523 0.02 Tues. March 21, 2006
1525 - many more tests, fixing some bugs and
1527 - &extends now loads the base module with
1529 - added UNIVERSAL::require to the
1532 - each new Moose class will also create
1533 and register a subtype of Object which
1534 correspond to the new Moose class.
1535 - the 'isa' option in &has now only
1536 accepts strings, and will DWIM in
1539 * Moose::Util::TypeConstraints
1540 - added type coercion features
1541 - added tests for this
1542 - added support for this in attributes
1543 and instance construction
1545 - type construction no longer creates a
1546 function, it registers the type instead.
1547 - added several functions to get the
1551 - BUILDALL and DEMOLISHALL were broken
1552 because of a mis-named hash key, Whoops :)
1554 * Moose::Meta::Attribute
1555 - adding support for coercion in the
1556 autogenerated accessors
1558 * Moose::Meta::Class
1559 - adding support for coercion in the
1560 instance construction
1562 * Moose::Meta::TypeConstraint
1563 * Moose::Meta::TypeCoercion
1564 - type constraints and coercions are now
1565 full fledges meta-objects
1567 0.01 Wed. March 15, 2006
1568 - Moooooooooooooooooose!!!