1 Revision history for Perl extension Moose
4 * Moose::Meta::Attribute
5 - breaking down the way 'handles' methods are
6 created so that the process can be more easily
7 overridden by subclasses (stevan)
9 * Moose::Meta::TypeConstraint
10 - fixing what is passed into a ->message with
11 the type constraints (RT #37569)
12 - added tests for this (Charles Alderman)
14 * Moose::Util::TypeConstraints
15 - fix coerce to accept anon types like subtype can
18 - reorganized the recipes into sections - Basics, Roles, Meta,
19 Extending - and wrote abstracts for each section (Dave Rolsky)
21 * Moose::Cookbook::Basics::Recipe10
22 - A new recipe that demonstrates operator overloading
23 in combination with Moose. (bluefeet)
25 * Moose::Cookbook::Meta::Recipe1
26 - an introduction to what meta is and why you'd want to make
27 your own metaclass extensions (Dave Rolsky)
29 * Moose::Cookbook::Meta::Recipe4
30 - a very simple metaclass example (Dave Rolsky)
32 * Moose::Cookbook::Extending::Recipe2
33 - how to write modules with an API just like C<Moose.pm> (Dave
36 0.54 Thurs. July 3, 2008
37 ... this is not my day today ...
39 * Moose::Meta::Attribute
40 - fixed legal_options_for_inheritance such that
41 clone_and_inherit options still works for
42 Class::MOP::Attribute objects and therefore
43 does not break MooseX::AttributeHelpers
46 0.53 Thurs. July 3, 2008
47 * Whoops, I guess I should run 'make manifest' before
48 actually releasing the module. No actual changes
49 in this release, except the fact that it includes
50 the changes that I didn't include in the last
53 0.52 Thurs. July 3, 2008
55 - added "FEATURE REQUESTS" section to the Moose docs
56 to properly direct people (stevan) (RT #34333)
57 - making 'extends' croak if it is passed a Role since
58 this is not ever something you want to do
59 (fixed by stevan, found by obra)
60 - added tests for this (stevan)
63 - adding support for DOES (as in UNIVERSAL::DOES)
67 * Moose::Meta::Attribute
68 - added legal_options_for_inheritance (wreis)
69 - added tests for this (wreis)
71 * Moose::Cookbook::Snacks::*
72 - removed some of the unfinished snacks that should
73 not have been released yet. Added some more examples
74 to the 'Keywords' snack. (stevan)
76 * Moose::Cookbook::Style
77 - added general Moose "style guide" of sorts to the
78 cookbook (nothingmuch) (RT #34335)
81 - added more BUILDARGS tests (stevan)
83 0.51 Thurs. Jun 26, 2008
85 - add unimport so "no Moose::Role" actually does
88 * Moose::Meta::Role::Application::ToRole
89 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
90 order to provide its own implementation, that method still got
91 added to the list of required methods for consumers of
92 RoleB. Now an aliased method is only added to the list of
93 required methods if the role doing the aliasing does not
94 provide its own implementation. See Recipe 11 for an example
95 of all this. (Dave Rolsky)
96 - added tests for this
98 * Moose::Meta::Method::Constructor
99 - when a single argument that wasn't a hashref was provided to
100 an immutabilized constructor, the error message was very
101 unhelpful, as opposed to the non-immutable error. Reported by
103 - added test for this (Dave Rolsky)
105 * Moose::Meta::Attribute
106 - added support for meta_attr->does("ShortAlias") (sartak)
107 - added tests for this (sartak)
108 - moved the bulk of the `handles` handling to the new
109 install_delegation method (Stevan)
112 - Added BUILDARGS, a new step in new()
114 * Moose::Meta::Role::Application::RoleSummation
115 - fix typos no one ever sees (sartak)
117 * Moose::Util::TypeConstraints
118 * Moose::Meta::TypeConstraint
119 * Moose::Meta::TypeCoercion
120 - Attempt to work around the ??{ } vs. threads issue
122 - Some null_constraint optimizations
124 0.50 Thurs. Jun 11, 2008
125 - Fixed a version number issue by bumping all modules
128 0.49 Thurs. Jun 11, 2008
129 !! This version now approx. 20-25% !!
130 !! faster with new Class::MOP 0.59 !!
132 * Moose::Meta::Attribute
133 - fixed how the is => (ro|rw) works with
134 custom defined reader, writer and accessor
136 - added docs for this (TODO).
137 - added tests for this (Thanks to Penfold)
138 - added the custom attribute alias for regular
139 Moose attributes which is "Moose"
140 - fix builder and default both being used
145 Moose::Meta::Attribute
147 Moose::Meta::Role::Composite
148 Moose::Util::TypeConstraints
149 - switched usage of reftype to ref because
153 - changing add_package_symbol to use the new
157 - fixed how DEMOLISHALL is called so that it
158 can be overrided in subclasses (thanks to Sartak)
159 - added test for this (thanks to Sartak)
161 * Moose::Util::TypeConstraints
162 - move the ClassName type check code to
163 Class::MOP::is_class_loaded (thanks to Sartak)
165 * Moose::Cookbook::Recipe11
166 - add tests for this (thanks to tokuhirom)
168 0.48 Thurs. May 29, 2008
169 (early morning release engineering)--
171 - fixing the version in Moose::Meta::Method::Destructor
172 which was causing the indexer to choke
174 0.47 Thurs. May 29, 2008
175 (late night release engineering)--
177 - fixing the version is META.yml, no functional
178 changes in this release
180 0.46 Wed. May 28, 2008
181 !! This version now approx. 20-25% !!
182 !! faster with new Class::MOP 0.57 !!
185 - some optimizations of the &initialize method
186 since it is called so often by &meta
190 - now use the get_all_package_symbols from the
191 updated Class::MOP, test suite is now 10 seconds
194 * Moose::Meta::Method::Destructor
195 - is_needed can now also be called as a class
196 method for immutablization to check if the
197 destructor object even needs to be created
200 * Moose::Meta::Method::Destructor
201 Moose::Meta::Method::Constructor
202 - added more descriptive error message to help
203 keep people from wasting time tracking an error
204 that is easily fixed by upgrading.
206 0.45 Saturday, May 24, 2008
208 - Because of work in Class::MOP 0.56, all
209 XS based functionality is now optional
210 and a Pure Perl version is supplied
211 - the CLASS_MOP_NO_XS environment variable
212 can now be used to force non-XS versions
214 - several of the packages have been tweaked
215 to take care of this, mostly we added
216 support for the package_name and name
217 variables in all the Method metaclasses
218 - before/around/after method modifiers now
219 support regexp matching of names
220 (thanks to Takatoshi Kitano)
221 - tests added for this
222 - NOTE: this only works for classes, it
223 is currently not supported in roles,
224 but, ... patches welcome
225 - All usage of Carp::confess have been replaced
226 by Carp::croak in the "keyword" functions since
227 the stack trace is usually not helpful
230 - All usage of Carp::confess have been replaced
231 by Carp::croak in the "keyword" functions since
232 the stack trace is usually not helpful
233 - The 'has' keyword for roles now accepts the
234 same array ref form that Moose.pm does
235 (has [qw/foo bar/] => (is => 'rw', ...))
236 - added test for this
238 * Moose::Meta::Attribute
239 - trigger on a ro-attribute is no longer an
240 error, as it's useful to trigger off of the
244 - added same 'add_package_symbol' fix as in
248 - does_role now handles non-Moose classes
250 - added tests for this
251 - added the 'add_method_modifier' function
252 (thanks to Takatoshi Kitano)
254 * Moose::Util::TypeConstraints
255 - subtypes of parameterizable types now are
256 themselves parameterizable types
258 * Moose::Meta::Method::Constructor
259 - fixed bug where trigger was not being
260 called by the inlined immutable
262 - added test for this (thanks to Caelum)
264 * Moose::Meta::Role::Application::ToInstance
265 - now uses the metaclass of the instance
266 (if possible) to create the anon-class
267 (thanks Jonathan Rockway)
269 * Moose::Cookbook::Recipe22
270 - added the meta-attribute trait recipe
274 - fixed hash-ordering test bug that was
275 causing occasional cpantester failures
276 - renamed the t/000_recipe/*.t tests to be
277 more descriptive (thanks to Sartak)
279 0.44 Sat. May 10, 2008
281 - made make_immutable warning cluck to
282 show where the error is (thanks mst)
285 - BUILDALL and DEMOLISHALL now call
286 ->body when looping through the
287 methods, to avoid the overloaded
289 - fixed issue where DEMOLISHALL was
290 eating the $@ values, and so not
291 working correctly, it still kind of
292 eats them, but so does vanilla perl
293 - added tests for this
295 * Moose::Cookbook::Recipe7
296 - added new recipe for immutable
297 functionality (thanks Dave Rolsky)
299 * Moose::Cookbook::Recipe9
300 - added new recipe for builder and
301 lazy_build (thanks Dave Rolsky)
303 * Moose::Cookbook::Recipe11
304 - added new recipe for method aliasing
305 and exclusion with Roles (thanks Dave Rolsky)
308 - fixed Win32 test failure (thanks spicyjack)
310 ~ removed Build.PL and Module::Build compat
311 since Module::Install has done that.
313 0.43 Wed. April, 30, 2008
315 drink more coffee before
316 doing release engineering
318 - whoops, forgot to do the smolder tests,
319 and we broke some of the custom meta-attr
320 modules. This fixes that.
322 0.42 Mon. April 28, 2008
323 - some bad tests slipped by, nothing else
324 changed in this release (cpantesters++)
326 - upped the Class::MOP dependency to 0.55
327 since we have tests which need the C3
330 0.41 Mon. April 28, 2008
331 ~~ numerous documentation updates ~~
333 - Changed all usage of die to Carp::croak for better
334 error reporting (initial patch by Tod Hagan)
337 - the make_immutable keyword is now deprecated, don't
338 use it in any new code and please fix your old code
339 as well. There will be 2 releases, and then it will
345 - refactored the way inner and super work to avoid
346 any method/@ISA cache penalty (nothingmuch)
349 - fixing &new_object to make sure trigger gets the
350 coerced value (spotted by Charles Alderman on the
352 - added test for this
354 * Moose::Meta::Method::Constructor
355 - immutable classes which had non-lazy attributes were calling
356 the default generating sub twice in the constructor. (bug
357 found by Jesse Luehrs, fixed by Dave Rolsky)
358 - added tests for this (Dave Rolsky)
359 - fix typo in initialize_body method (nothingmuch)
361 * Moose::Meta::Method::Destructor
362 - fix typo in initialize_body method (nothingmuch)
364 * Moose::Meta::Method::Overriden
365 Moose::Meta::Method::Augmented
366 - moved the logic for these into their own
367 classes (nothingmuch)
369 * Moose::Meta::Attribute
370 - inherited attributes may now be extended without
371 restriction on the type ('isa', 'does') (Sartak)
372 - added tests for this (Sartak)
373 - when an attribute property is malformed (such as lazy without
374 a default), give the name of the attribute in the error
376 - added the &applied_traits and &has_applied_traits methods
377 to allow introspection of traits
378 - added tests for this
379 - moved 'trait' and 'metaclass' argument handling to here from
381 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
382 '+foo' syntax) (nothingmuch)
383 - added tests for this (t0m)
386 - localize $@ inside DEMOLISHALL to avoid it
387 eating $@ (found by Ernesto)
388 - added test for this (thanks to Ernesto)
390 * Moose::Util::TypeConstraints
391 - &find_type_constraint now DWIMs when given an
392 type constraint object or name (nothingmuch)
393 - &find_or_create_type_constraint superseded with a number of more
395 - find_or_create_{isa,does}_type_constraint
396 - find_or_parse_type_constraint
398 * Moose::Meta::TypeConstraint
399 Moose::Meta::TypeConstraint::Class
400 Moose::Meta::TypeConstraint::Role
401 Moose::Meta::TypeConstraint::Enum
402 Moose::Meta::TypeConstraint::Union
403 Moose::Meta::TypeConstraint::Parameterized
404 - added the &equals method for comparing two type
405 constraints (nothingmuch)
406 - added tests for this (nothingmuch)
408 * Moose::Meta::TypeConstraint
409 - add the &parents method, which is just an alias to &parent.
410 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
412 * Moose::Meta::TypeConstraint::Class
413 - added the class attribute for introspection purposes
415 - added tests for this
417 * Moose::Meta::TypeConstraint::Enum
418 Moose::Meta::TypeConstraint::Role
419 - broke these out into their own classes (nothingmuch)
421 * Moose::Cookbook::Recipe*
422 - fixed references to test file locations in the POD
423 and updated up some text for new Moose features
427 - Added &resolve_metaclass_alias, a helper function for finding an actual
428 class for a short name (e.g. in the traits list)
430 0.40 Fri. March 14, 2008
431 - I hate Pod::Coverage
433 0.39 Fri. March 14, 2008
435 - documenting the use of '+name' with attributes
436 that come from recently composed roles. It makes
437 sense, people are using it, and so why not just
438 officially support it.
439 - fixing the 'extends' keyword so that it will not
440 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
443 - added the perl -Moose=+Class::Name feature to allow
444 monkeypatching of classes in one liners
447 - fixing the 'apply_all_roles' keyword so that it will not
448 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
451 - added ->create method which now supports roles (thanks to jrockway)
452 - added tests for this
453 - added ->create_anon_class which now supports roles and caching of
454 the results (thanks to jrockway)
455 - added tests for this
456 - made ->does_role a little more forgiving when it is
457 checking a Class::MOP era metaclasses.
459 * Moose::Meta::Role::Application::ToInstance
460 - it is now possible to pass extra params to be used when
461 a role is applied to an the instance (rebless_params)
462 - added tests for this
464 * Moose::Util::TypeConstraints
465 - class_type now accepts an optional second argument for a
466 custom message. POD anotated accordingly (groditi)
467 - added tests for this
468 - it is now possible to make anon-enums by passing 'enum' an
469 ARRAY ref instead of the $name => @values. Everything else
471 - added tests for this
474 - making test for using '+name' on attributes consumed
475 from a role, it works and makes sense too.
477 * Moose::Meta::Attribute
478 - fix handles so that it doesn't return nothing
479 when the method cannot be found, not sure why
480 it ever did this originally, this means we now
481 have slightly better support for AUTOLOADed
483 - added more delegation tests
484 - adding ->does method to this so as to better
485 support traits and their introspection.
486 - added tests for this
489 - localizing the Data::Dumper configurations so
490 that it does not pollute others (RT #33509)
491 - made ->does a little more forgiving when it is
492 passed Class::MOP era metaclasses.
494 0.38 Fri. Feb. 15, 2008
495 * Moose::Meta::Attribute
496 - fixed initializer to correctly do
497 type checking and coercion in the
499 - added tests for this
502 - fixed some finicky tests (thanks to konobi)
504 0.37 Thurs. Feb. 14, 2008
506 - fixed some details in Moose::init_meta
507 and its superclass handling (thanks thepler)
508 - added tests for this (thanks thepler)
509 - 'has' now dies if you don't pass in name
511 - added the 'make_immutable' keyword as a shortcut
515 Moose::Meta::Method::Constructor
516 Moose::Meta::Attribute
517 - making (init_arg => undef) work here too
518 (thanks to nothingmuch)
520 * Moose::Meta::Attribute
521 Moose::Meta::Method::Constructor
522 Moose::Meta::Method::Accessor
523 - make lazy attributes respect attr initializers (rjbs)
524 - added tests for this
526 * Moose::Util::TypeConstraints
527 Moose::Util::TypeConstraints::OptimizedConstraints
528 Moose::Meta::TypeConstraints
529 Moose::Meta::Attribute
530 Moose::Meta::Method::Constructor
531 Moose::Meta::Method::Accessor
532 - making type errors use the
533 assigned message (thanks to Sartak)
534 - added tests for this
536 * Moose::Meta::Method::Destructor
537 - making sure DESTROY gets inlined properly
538 with successive DEMOLISH calls (thanks to manito)
540 * Moose::Meta::Attribute
541 Moose::Meta::Method::Accessor
542 - fixed handling of undef with type constraints
544 - added tests for this
547 - added &get_all_init_args and &get_all_attribute_values
548 (thanks to Sartak and nothingmuch)
550 0.36 Sat. Jan. 26, 2008
552 Moose::Meta::Attribute
553 - role type tests now support when roles are
554 applied to non-Moose classes (found by ash)
555 - added tests for this (thanks to ash)
556 - couple extra tests to boost code coverage
558 * Moose::Meta::Method::Constructor
559 - improved fix for handling Class::MOP attributes
560 - added test for this
563 - handled the add_attribute($attribute_meta_object)
565 - added test for this
567 0.35 Tues. Jan. 22, 2008
568 * Moose::Meta::Method::Constructor
569 - fix to make sure even Class::MOP attributes
570 are handled correctly (Thanks to Dave Rolsky)
571 - added test for this (also Dave Rolsky)
574 - improved error message on _apply_all_roles,
575 you should now use Moose::Util::apply_all_roles
576 and you shouldnt have been using a _ prefixed
577 method in the first place ;)
579 0.34 Mon. Jan. 21, 2008
580 ~~~ more misc. doc. fixes ~~~
581 ~~ updated copyright dates ~~
583 Moose is now a postmodern object system :)
584 - (see the POD for details)
586 * <<Role System Refactoring>>
587 - this release contains a major reworking and
588 cleanup of the role system
589 - 100% backwards compat.
590 - Role application now restructured into seperate
591 classes based on type of applicants
592 - Role summation (combining of more than one role)
593 is much cleaner and anon-classes are no longer
595 - new Composite role metaclass
596 - runtime application of roles to instances
597 is now more efficient and re-uses generated
598 classes when applicable
600 * <<New Role composition features>>
601 - methods can now be excluded from a given role
603 - methods can now be aliased to another name (and
604 still retain the original as well)
606 * Moose::Util::TypeConstraints::OptimizedConstraints
607 - added this module (see above)
610 - fixed the &_process_attribute method to be called
611 by &add_attribute, so that the API is now correct
613 * Moose::Meta::Method::Accessor
614 - fixed bug when passing a list of values to
615 an accessor would get (incorrectly) ignored.
616 Thanks to Sartak for finding this ;)
617 - added tests for this (Sartak again)
619 * Moose::Meta::Method::Accessor
620 Moose::Meta::Method::Constructor
621 Moose::Meta::Attribute
622 Moose::Meta::TypeConstraint
623 Moose::Meta::TypeCoercion
624 - lots of cleanup of such things as:
626 - type constraint handling
627 - error handling/messages
628 (thanks to nothingmuch)
630 * Moose::Meta::TypeConstraint::Parameterizable
631 - added this module to support the refactor
632 in Moose::Meta::TypeConstraint::Parameterized
634 * Moose::Meta::TypeConstraint::Parameterized
635 - refactored how these types are handled so they
636 are more generic and not confined to ArrayRef
640 - shortened some file names for better VMS support (RT #32381)
642 0.33 Fri. Dec. 14, 2007
643 !! Moose now loads 2 x faster !!
644 !! with new Class::MOP 0.49 !!
646 ++ new oose.pm module to make command line
647 Moose-ness easier (see POD docs for more)
651 - several tweaks to take advantage of the
652 new method map caching in Class::MOP
654 * Moose::Meta::TypeConstraint::Parameterized
655 - allow subtypes of ArrayRef and HashRef to
656 be used as a container (sartak)
657 - added tests for this
658 - basic support for coercion to ArrayRef and
659 HashRef for containers (sartak)
660 - added tests for this
662 * Moose::Meta::TypeCoercion
663 - coercions will now create subtypes as needed
664 so you can now add coercions to parameterized
665 types without having to explictly define them
666 - added tests for this
668 * Moose::Meta::Method::Accessor
669 - allow subclasses to decide whether we need
670 to copy the value into a new variable (sartak)
672 0.32 Tues. Dec. 4, 2007
673 * Moose::Util::TypeConstraints
674 - fixing how subtype aliases of unions work
675 they should inherit the parent's coercion
676 - added tests for this
677 - you can now define multiple coercions on
678 a single type at different times instead of
679 having to do it all in one place
680 - added tests for this
682 * Moose::Meta::TypeConstraint
683 - there is now a default constraint of sub { 1 }
684 instead of Moose::Util::TypeConstraints setting
687 * Moose::Meta::TypeCoercion
688 * Moose::Meta::TypeCoercion::Union
689 - added the &has_coercion_for_type and
690 &add_type_coercions methods to support the
691 new features above (although you cannot add
692 more type coercions for Union types)
694 0.31 Mon. Nov. 26, 2007
695 * Moose::Meta::Attribute
696 - made the +attr syntax handle extending types with
697 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
698 now works if the original foo is an ArrayRef.
699 - added tests for this.
700 - delegation now works even if the attribute does not
701 have a reader method using the get_read_method_ref
702 method from Class::MOP::Attribute.
703 - added tests for this
704 - added docs for this
706 * Moose::Util::TypeConstraints
707 - passing no "additional attribute info" to
708 &find_or_create_type_constraint will no longer
709 attempt to create an __ANON__ type for you,
710 instead it will just return undef.
711 - added docs for this
713 0.30 Fri. Nov. 23, 2007
714 * Moose::Meta::Method::Constructor
715 -builder related bug in inlined constructor. (groditi)
717 * Moose::Meta::Method::Accessor
718 - genereate unnecessary calls to predicates and refactor
719 code generation for runtime speed (groditi)
721 * Moose::Util::TypeConstraints
722 - fix ClassName constraint to introspect symbol table (mst)
723 - added more tests for this (mst)
724 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
726 - added tests for this
729 - adding the link to Recipie 11 (written by Sartak)
730 - adding test for SYNOPSIS code
733 - New tests for builder bug. Upon instantiation, if an
734 attribute had a builder, no value and was not lazy the
735 builder default was not getting run, oops. (groditi)
737 0.29 Tues. Nov. 13, 2007
738 * Moose::Meta::Attribute
739 - Fix error message on missing builder method (groditi)
741 * Moose::Meta::Method::Accessor
742 - Fix error message on missing builder method (groditi)
745 - Add test to check for the correct error message when
746 builder method is missing (groditi)
748 0.28 Tues. Nov. 13, 2007
749 - 0.27 packaged incorrectly (groditi)
751 0.27 Tues. Nov. 13, 2007
752 * Moose::Meta::Attribute
753 - Added support for the new builder option (groditi)
754 - Added support for lazy_build option (groditi)
755 - Changed slot initialization for predicate changes (groditi)
757 * Moose::Meta::Method::Accessor
758 - Added support for lazy_build option (groditi)
759 - Fix inline methods to work with corrected predicate
762 * Moose::Meta::Method::Constructor
763 - Added support for lazy_build option (groditi)
766 - tests for builder and lazy_build (groditi)
768 * fixing some misc. bits in the docs that
769 got mentioned on CPAN Forum & perlmonks
772 - fixed how required methods are handled
773 when they encounter overriden or modified
774 methods from a class (thanks to confound).
775 - added tests for this
777 * Moose::Util::TypeConstraint
778 - fixed the type notation parser so that
779 the | always creates a union and so is
780 no longer a valid type char (thanks to
781 konobi, mugwump and #moose for working
783 - added more tests for this
785 0.26 Thurs. Sept. 27, 2007
788 * Parameterized Types
789 We now support parameterized collection types, such as:
790 ArrayRef[Int] # array or integers
791 HashRef[Object] # a hash with object values
792 They can also be nested:
793 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
794 And work with the type unions as well:
795 ArrayRef[Int | Str] # array of integers of strings
797 * Better Framework Extendability
798 Moose.pm is now "extendable" such that it is now much
799 easier to extend the framework and add your own keywords
800 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
801 section of the Moose.pm docs.
804 In an effort to begin documenting some of the various
805 details of Moose as well as some common idioms, we have
806 created Moose::Cookbook::Snacks as a place to find
807 small (easily digestable) nuggets of Moose code.
810 ~ Several doc updates/cleanup thanks to castaway ~
812 - converted build system to use Module::Install instead of
813 Module::Build (thanks to jrockway)
816 - added all the meta classes to the immutable list and
817 set it to inline the accessors
818 - fix import to allow Sub::Exporter like { into => }
819 and { into_level => } (perigrin)
820 - exposed and documented init_meta() to allow better
821 embedding and extending of Moose (perigrin)
824 - complete re-organization of the test suite
825 - added some new tests as well
826 - finally re-enabled the Moose::POOP test since
827 the new version of DBM::Deep now works again
831 - fixed very odd and very nasty recursion bug with
833 - added tests for this (eilara)
835 * Moose::Meta::Attribute
836 Moose::Meta::Method::Constructor
837 Moose::Meta::Method::Accessor
838 - fixed issue with overload::Overloaded getting called
839 on non-blessed items. (RT #29269)
840 - added tests for this
842 * Moose::Meta::Method::Accessor
843 - fixed issue with generated accessor code making
844 assumptions about hash based classes (thanks to dexter)
846 * Moose::Coookbook::Snacks
847 - these are bits of documentation, not quite as big as
848 Recipes but which have no clear place in the module docs.
849 So they are Snacks! (horray for castaway++)
851 * Moose::Cookbook::Recipe4
852 - updated it to use the new ArrayRef[MyType] construct
853 - updated the accompanying test as well
855 +++ Major Refactor of the Type Constraint system +++
856 +++ with new features added as well +++
858 * Moose::Util::TypeConstraint
859 - no longer uses package variable to keep track of
860 the type constraints, now uses the an instance of
861 Moose::Meta::TypeConstraint::Registry to do it
862 - added more sophisticated type notation parsing
864 - added tests for this
866 * Moose::Meta::TypeConstraint
867 - some minor adjustments to make subclassing easier
868 - added the package_defined_in attribute so that we
869 can track where the type constraints are created
871 * Moose::Meta::TypeConstraint::Union
872 - this is now been refactored to be a subclass of
873 Moose::Meta::TypeConstraint
875 * Moose::Meta::TypeCoercion::Union
876 - this has been added to service the newly refactored
877 Moose::Meta::TypeConstraint::Union and is itself
878 a subclass of Moose::Meta::TypeCoercion
880 * Moose::Meta::TypeConstraint::Parameterized
881 - added this module (taken from MooseX::AttributeHelpers)
882 to help construct nested collection types
883 - added tests for this
885 * Moose::Meta::TypeConstraint::Registry
886 - added this class to keep track of type constraints
888 0.25 Mon. Aug. 13, 2007
890 - Documentation update to reference Moose::Util::TypeConstraints
891 under 'isa' in 'has' for how to define a new type
894 * Moose::Meta::Attribute
895 - required attributes now will no longer accept undef
896 from the constructor, even if there is a default and lazy
897 - added tests for this
898 - default subroutines must return a value which passes the
900 - added tests for this
902 * Moose::Meta::Attribute
903 * Moose::Meta::Method::Constructor
904 * Moose::Meta::Method::Accessor
905 - type-constraint tests now handle overloaded objects correctly
907 - added tests for this (thanks to EvanCarroll)
909 * Moose::Meta::TypeConstraint::Union
910 - added (has_)hand_optimized_constraint to this class so that
911 it behaves as the regular Moose::Meta::TypeConstraint does.
914 - large refactoring of this code
915 - added several more tests
916 - tests for subtle conflict resolition issues
917 added, but not currently running
920 * Moose::Cookbook::Recipe7
921 - added new recipe for augment/inner functionality
923 - added test for this
926 - a formal definition of roles (still in progress)
929 - utilities for easier working with Moose classes
930 - added tests for these
933 - This contains Moose specific test functions
934 - added tests for these
936 0.24 Tues. July 3, 2007
937 ~ Some doc updates/cleanup ~
939 * Moose::Meta::Attribute
940 - added support for roles to be given as parameters
941 to the 'handles' option.
942 - added tests and docs for this
943 - the has '+foo' attribute form now accepts changes to
944 the lazy option, and the addition of a handles option
945 (but not changing the handles option)
946 - added tests and docs for this
949 - required methods are now fetched using find_method_by_name
950 so that required methods can come from superclasses
951 - adjusted tests for this
953 0.23 Mon. June 18, 2007
954 * Moose::Meta::Method::Constructor
955 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
957 - Modify make_immutable to work with the new Class::MOP immutable
958 mechanism + POD + very basic test (groditi)
959 * Moose::Meta::Attribute
960 - Fix handles to use goto() so that caller() comes out properly on
961 the other side (perigrin)
963 0.22 Thurs. May 31, 2007
964 * Moose::Util::TypeConstraints
965 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
966 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
967 prototypes for functions
968 - added the ClassName type constraint, this checks for strings
969 which will respond true to ->isa(UNIVERSAL).
970 - added tests and docs for this
971 - subtyping just in name now works correctly by making the
972 default for where be { 1 }
973 - added test for this
975 * Moose::Meta::Method::Accessor
976 - coerce and lazy now work together correctly, thanks to
977 merlyn for finding this bug
978 - tests added for this
979 - fix reader presedence bug in Moose::Meta::Attribute + tests
982 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
983 a HASH-ref and missed. This produces better error messages then
984 having it die cause undef is not a HASH.
985 - added tests for this
987 0.21 Thursday, May 2nd, 2007
989 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
990 - modified unimport to remove super and inner along with the rest
991 - altered unimport tests to handle this
994 - altered super export to populate SUPER_SLOT
997 - altered augment and override modifier application to use *_SLOT
998 - modified tests for these to unimport one test class each to test
1001 - fixed issue where custom attribute metaclasses
1002 where not handled correctly in roles
1003 - added tests for this
1005 * Moose::Meta::Class
1006 - fixed issue where extending metaclasses with
1007 roles would blow up. Thanks to Aankhen`` for
1008 finding this insidious error, and it's solution.
1010 ~~ lots of spelling and grammer fixes in the docs,
1011 many many thanks to rlb3 and Aankhen for these :)
1013 0.20 Friday, April 6th, 2007
1014 >> I messed up the SKIP logic in one test
1015 so this release is just to fix that.
1018 - 'has' now also accepts an ARRAY ref
1019 to create multiple attrs (see docs)
1020 (thanks to konobi for this)
1021 - added tests and docs
1023 0.19 Thurs. April 5th, 2007
1024 ~~ More documentation updates ~~
1026 * Moose::Util::TypeConstraints
1027 - 'type' now supports messages as well
1028 thanks to phaylon for finding this
1029 - added tests for this
1030 - added &list_all_type_constraints and
1031 &list_all_builtin_type_constraints
1032 functions to facilitate introspection.
1034 * Moose::Meta::Attribute
1035 - fixed regexp 'handles' declarations
1036 to build the list of delegated methods
1037 correctly (and not override important
1038 things like &new) thanks to ashleyb
1040 - added tests and docs for this
1041 - added the 'documentation' attributes
1042 so that you can actually document your
1043 attributes and inspect them through the
1045 - added tests and docs for this
1047 * Moose::Meta::Class
1048 - when loading custom attribute metaclasses
1049 it will first look in for the class in the
1050 Moose::Meta::Attribute::Custom::$name, and
1051 then default to just loading $name.
1052 - added tests and docs for this
1054 * Moose::Meta::TypeConstraint
1055 - type constraints now stringify to their names.
1056 - added test for this
1059 - added tests to assure we work with Module::Refresh
1060 - added stricter test skip logic in the Moose POOP
1061 test, ask Rob Kinyon why.
1062 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1064 0.18 Sat. March 10, 2007
1065 ~~ Many, many documentation updates ~~
1068 - We now use Class::MOP::load_class to
1070 - added tests to show types and subtypes
1071 working with Declare::Constraints::Simple
1072 and Test::Deep as constraint engines.
1075 !! You must have Class::MOP 0.37_001 !!
1076 !! for this developer release to work !!
1078 This release was primarily adding the immutable
1079 feature to Moose. An immutable class is one which
1080 you promise not to alter. When you set the class
1081 as immutable it will perform various bits of
1082 memoization and inline certain part of the code
1083 (constructors, destructors and accessors). This
1084 minimizes (and in some cases totally eliminates)
1085 one of Moose's biggest performance hits. This
1086 feature is not on by default, and is 100% optional.
1087 It has several configurable bits as well, so you
1088 can pick and choose to your specific needs.
1090 The changes involved in this were fairly wide and
1091 highly specific, but 100% backwards compatible, so
1092 I am not going to enumerate them here. If you are
1093 truely interested in what was changed, please do
1096 0.17 Tues. Nov. 14, 2006
1097 * Moose::Meta::Method::Accessor
1098 - bugfix for read-only accessors which
1099 are have a type constraint and lazy.
1100 Thanks to chansen for finding it.
1102 0.16 Tues. Nov. 14, 2006
1104 There are some speed improvements in this release,
1105 but they are only the begining, so stay tuned.
1108 - BUILDALL and DEMOLISHALL no longer get
1109 called unless they actually need to be.
1110 This gave us a signifigant speed boost
1111 for the cases when there is no BUILD or
1112 DEMOLISH method present.
1114 * Moose::Util::TypeConstraints
1115 * Moose::Meta::TypeConstraint
1116 - added an 'optimize_as' option to the
1117 type constraint, which allows for a
1118 hand optimized version of the type
1119 constraint to be used when possible.
1120 - Any internally created type constraints
1121 now provide an optimized version as well.
1123 0.15 Sun. Nov. 5, 2006
1125 This version of Moose *must* have Class::MOP 0.36 in order
1126 to work correctly. A number of small internal tweaks have
1127 been made in order to be compatible with that release.
1129 * Moose::Util::TypeConstraints
1130 - added &unimport so that you can clean out
1131 your class namespace of these exported
1134 * Moose::Meta::Class
1135 - fixed minor issue which occasionally
1136 comes up during global destruction
1138 - moved Moose::Meta::Method::Overriden into
1142 - moved Moose::Meta::Role::Method into
1145 * Moose::Meta::Attribute
1146 - changed how we do type checks so that
1147 we reduce the overall cost, but still
1150 - moved accessor generation methods to
1151 Moose::Meta::Method::Accessor to
1152 conform to the API changes from
1155 * Moose::Meta::TypeConstraint
1156 - changed how constraints are compiled
1157 so that we do less recursion and more
1158 iteration. This makes the type check
1160 - moved Moose::Meta::TypeConstraint::Union
1163 * Moose::Meta::Method::Accessor
1164 - created this from methods formerly found in
1165 Moose::Meta::Attribute
1167 * Moose::Meta::Role::Method
1168 - moved this from Moose::Meta::Role
1170 * Moose::Meta::Method::Overriden
1171 - moved this from Moose::Meta::Class
1173 * Moose::Meta::TypeConstraint::Union
1174 - moved this from Moose::Meta::TypeConstraint
1176 0.14 Mon. Oct. 9, 2006
1178 * Moose::Meta::Attribute
1179 - fixed lazy attributes which were not getting
1180 checked with the type constraint (thanks ashley)
1181 - added tests for this
1182 - removed the over-enthusiastic DWIMery of the
1183 automatic ArrayRef and HashRef defaults, it
1184 broke predicates in an ugly way.
1185 - removed tests for this
1187 0.13 Sat. Sept. 30, 2006
1189 This version of Moose *must* have Class::MOP 0.35 in order
1190 to work correctly. A number of small internal tweaks have
1191 been made in order to be compatible with that release.
1194 - Removed the use of UNIVERSAL::require to be a better
1195 symbol table citizen and remove a dependency
1196 (thanks Adam Kennedy)
1198 **~~ removed experimental & undocumented feature ~~**
1199 - commented out the 'method' and 'self' keywords, see the
1200 comments for more info.
1203 - added a FAQ and WTF files to document frequently
1204 asked questions and common problems
1206 * Moose::Util::TypeConstraints
1207 - added GlobRef and FileHandle type constraint
1208 - added tests for this
1210 * Moose::Meta::Attribute
1211 - if your attribute 'isa' ArrayRef of HashRef, and you have
1212 not explicitly set a default, then make the default DWIM.
1213 This will also work for subtypes of ArrayRef and HashRef
1215 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1216 - new test added for this (thanks to ashley)
1219 - added basic support for runtime role composition
1220 but this is still *highly experimental*, so feedback
1221 is much appreciated :)
1222 - added tests for this
1224 * Moose::Meta::TypeConstraint
1225 - the type constraint now handles the coercion process
1226 through delegation, this is to support the coercion
1229 * Moose::Meta::TypeConstraint::Union
1230 - it is now possible for coercions to be performed
1232 - added tests for this (thanks to konobi)
1234 * Moose::Meta::TypeCoercion
1235 - properly capturing error when type constraint
1239 - Scalar::Util 1.18 is bad on Win32, so temporarily
1240 only require version 1.17 for Win32 and cygwin.
1241 (thanks Adam Kennedy)
1243 0.12 Sat. Sept. 1, 2006
1245 - Recipe5 (subtypes & coercion) has been written
1248 - fixed "bad meta" error message to be more descriptive
1249 - fixed &unimport to not remove the &inner and &super
1250 keywords because we need to localize them.
1251 - fixed number of spelling/grammer issues, thanks Theory :)
1253 **~~ experimental & undocumented feature ~~**
1254 - added the method and self keywords, they are basically
1255 just sugar, and they may not stay around.
1258 - added &dump method to easily Data::Dumper
1261 * Moose::Meta::TypeConstraint
1262 - added the &is_a_type_of method to check both the current
1263 and the subtype of a method (similar to &isa with classes)
1266 - this is now a subclass of Class::MOP::Module, and no longer
1267 creates the _role_meta ugliness of before.
1268 - fixed tests to reflect this change
1270 0.11 Wed. July 12, 2006
1272 - added an &unimport method to remove all the keywords
1273 that Moose will import, simply add 'no Moose' to the
1274 bottom of your class file.
1277 - fixed some test failures caused by a forgotten test
1280 0.10 Thurs. July 6, 2006
1282 - improved error message when loading modules so
1283 it is less confusing when you load a role.
1284 - added &calculate_all_roles method to
1285 Moose::Meta::Class and Moose::Meta::Role
1288 This module has been tested against Class::MOP 0.30
1289 but it does not yet utilize the optimizations
1290 it makes available. Stay tuned for that ;)
1292 0.09_03 Fri. June 23, 2006
1293 ++ DEVELOPER RELEASE ++
1295 - 'use strict' and 'use warnings' are no longer
1296 needed in Moose classes, Moose itself will
1297 turn them on for you.
1298 - added tests for this
1299 - moved code from exported subs to private methods
1300 in Moose::Meta::Class
1303 - as with Moose, strict and warnings are
1304 automatically turned on for you.
1305 - added tests for this
1308 - now handles an edge case for override errors
1309 - added tests for this
1310 - added some more edge case tests
1312 0.09_02 Tues. May 16, 2006
1313 ++ DEVELOPER RELEASE ++
1315 - added prototypes to the exported subs
1319 - added prototypes to the exported subs
1322 * Moose::Util::TypeConstraints
1323 - cleaned up prototypes for the subs
1326 0.09_01 Fri. May 12, 2006
1327 ++ DEVELOPER RELEASE ++
1328 - This release works in combination with
1329 Class::MOP 0.29_01, it is a developer
1330 release because it uses the a new
1331 instance sub-protocol and a fairly
1332 complete Role implementation. It has
1333 not yet been optimized, so it slower
1334 the the previous CPAN version. This
1335 release also lacks good updated docs,
1336 the official release will have updated docs.
1339 - refactored the keyword exports
1340 - 'with' now checks Role validaity and
1341 accepts more than one Role at a time
1342 - 'extends' makes metaclass adjustments as
1343 needed to ensure metaclass compatability
1346 - refactored the keyword exports
1347 - 'with' now checks Role validaity and
1348 accepts more than one Role at a time
1350 * Moose::Util::TypeConstraints
1351 - added the 'enum' keyword for simple
1352 string enumerations which can be used as
1354 - see example of usage in t/202_example.t
1357 - more careful checking of params to new()
1360 - much work done on the role composition
1361 - many new tests for conflict detection
1362 and composition edge cases
1363 - not enough documentation, I suggest
1364 looking at the tests
1366 * Moose::Meta::Instance
1367 - added new Instance metaclass to support
1368 the new Class::MOP instance protocol
1370 * Moose::Meta::Class
1371 - some small changes to support the new
1373 - some small additions to support Roles
1375 * Moose::Meta::Attribute
1376 - some improvements to the accessor generation code
1378 - some small changes to support the new
1380 - (still somewhat) experimental delegation support
1381 with the 'handles' option
1382 - added several tests for this
1383 - no docs for this yet
1385 0.05 Thurs. April 27, 2006
1387 - keywords are now exported with Sub::Exporter
1388 thanks to chansen for this commit
1389 - has keyword now takes a 'metaclass' option
1390 to support custom attribute meta-classes
1391 on a per-attribute basis
1392 - added tests for this
1393 - the 'has' keyword not accepts inherited slot
1394 specifications (has '+foo'). This is still an
1395 experimental feature and probably not finished
1396 see t/038_attribute_inherited_slot_specs.t for
1397 more details, or ask about it on #moose
1398 - added tests for this
1401 - keywords are now exported with Sub::Exporter
1403 * Moose::Utils::TypeConstraints
1404 - reorganized the type constraint hierarchy, thanks
1405 to nothingmuch and chansen for his help and advice
1407 - added some tests for this
1408 - keywords are now exported with Sub::Exporter
1409 thanks to chansen for this commit
1411 * Moose::Meta::Class
1412 - due to changes in Class::MOP, we had to change
1413 construct_instance (for the better)
1415 * Moose::Meta::Attribute
1416 - due to changes in Class::MOP, we had to add the
1417 initialize_instance_slot method (it's a good thing)
1419 * Moose::Meta::TypeConstraint
1420 - added type constraint unions
1421 - added tests for this
1422 - added the is_subtype_of predicate method
1423 - added tests for this
1425 0.04 Sun. April 16th, 2006
1427 - Roles can now consume other roles
1428 - added tests for this
1429 - Roles can specify required methods now with
1430 the requires() keyword
1431 - added tests for this
1434 - ripped out much of it's guts ,.. much cleaner now
1435 - added required methods and correct handling of
1436 them in apply() for both classes and roles
1437 - added tests for this
1438 - no longer adds a does() method to consuming classes
1439 it relys on the one in Moose::Object
1440 - added roles attribute and some methods to support
1441 roles consuming roles
1443 * Moose::Meta::Attribute
1444 - added support for triggers on attributes
1445 - added tests for this
1446 - added support for does option on an attribute
1447 - added tests for this
1449 * Moose::Meta::Class
1450 - added support for attribute triggers in the
1452 - added tests for this
1455 - Moose no longer creates a subtype for your class
1456 if a subtype of the same name already exists, this
1457 should DWIM in 99.9999% of all cases
1459 * Moose::Util::TypeConstraints
1460 - fixed bug where incorrect subtype conflicts were
1462 - added test for this
1465 - this class can now be extended with 'use base' if
1466 you need it, it properly loads the metaclass class now
1467 - added test for this
1469 0.03_02 Wed. April 12, 2006
1471 - you must now explictly use Moose::Util::TypeConstraints
1472 it no longer gets exported for you automatically
1475 - new() now accepts hash-refs as well as key/value lists
1476 - added does() method to check for Roles
1477 - added tests for this
1479 * Moose::Meta::Class
1480 - added roles attribute along with the add_role() and
1482 - added tests for this
1485 - now adds a does() method to consuming classes
1486 which tests the class's hierarchy for roles
1487 - added tests for this
1489 0.03_01 Mon. April 10, 2006
1491 - added new Role recipe (no content yet, only code)
1494 - added 'with' keyword for Role support
1495 - added test and docs for this
1496 - fixed subtype quoting bug
1497 - added test for this
1501 - added test and docs
1503 * Moose::Util::TypeConstraints
1504 - added the message keyword to add custom
1505 error messages to type constraints
1508 - the meta role to support Moose::Role
1509 - added tests and docs
1511 * Moose::Meta::Class
1512 - moved a number of things from Moose.pm
1513 to here, they should have been here
1516 * Moose::Meta::Attribute
1517 - moved the attribute option macros here
1518 instead of putting them in Moose.pm
1520 * Moose::Meta::TypeConstraint
1521 - added the message attributes and the
1523 - added tests and docs for this
1525 0.03 Thurs. March 30, 2006
1527 - added the Moose::Cookbook with 5 recipes,
1528 describing all the stuff Moose can do.
1531 - fixed an issue with &extends super class loading
1532 it now captures errors and deals with inline
1533 packages correctly (bug found by mst, solution
1535 - added super/override & inner/augment features
1536 - added tests and docs for these
1539 - BUILDALL now takes a reference of the %params
1540 that are passed to &new, and passes that to
1543 * Moose::Util::TypeConstraints
1544 - Type constraints now survive runtime reloading
1545 - added test for this
1547 * Moose::Meta::Class
1548 - fixed the way attribute defaults are handled
1549 during instance construction (bug found by chansen)
1551 * Moose::Meta::Attribute
1552 - read-only attributes now actually enforce their
1553 read-only-ness (this corrected in Class::MOP as
1556 0.02 Tues. March 21, 2006
1558 - many more tests, fixing some bugs and
1560 - &extends now loads the base module with
1562 - added UNIVERSAL::require to the
1565 - each new Moose class will also create
1566 and register a subtype of Object which
1567 correspond to the new Moose class.
1568 - the 'isa' option in &has now only
1569 accepts strings, and will DWIM in
1572 * Moose::Util::TypeConstraints
1573 - added type coercion features
1574 - added tests for this
1575 - added support for this in attributes
1576 and instance construction
1578 - type construction no longer creates a
1579 function, it registers the type instead.
1580 - added several functions to get the
1584 - BUILDALL and DEMOLISHALL were broken
1585 because of a mis-named hash key, Whoops :)
1587 * Moose::Meta::Attribute
1588 - adding support for coercion in the
1589 autogenerated accessors
1591 * Moose::Meta::Class
1592 - adding support for coercion in the
1593 instance construction
1595 * Moose::Meta::TypeConstraint
1596 * Moose::Meta::TypeCoercion
1597 - type constraints and coercions are now
1598 full fledges meta-objects
1600 0.01 Wed. March 15, 2006
1601 - Moooooooooooooooooose!!!