1 Revision history for Perl extension Moose
5 - add unimport so "no Moose::Role" actually does
8 * Moose::Meta::Role::Application::ToRole
9 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
10 order to provide its own implementation, that method still got
11 added to the list of required methods for consumers of
12 RoleB. Now an aliased method is only added to the list of
13 required methods if the role doing the aliasing does not
14 provide its own implementation. See Recipe 11 for an example
15 of all this. (thanks Dave Rolsky)
16 - added tests for this
18 * Moose::Meta::Method::Constructor
19 - when a single argument that wasn't a hashref was provided to
20 an immutabilized constructor, the error message was very
21 unhelpful, as opposed to the non-immutable error. Reported by
22 dew. (Thanks to Dave Rolsky)
23 - added test for this (also Dave Rolsky)
25 * Moose::Meta::Attribute
26 - added support for meta_attr->does("ShortAlias") (sartak)
27 - added tests for this (sartak)
30 * Moose::Meta::Role::Application::RoleSummation
31 - fix typos no one ever sees (sartak)
33 0.50 Thurs. Jun 11, 2008
34 - Fixed a version number issue by bumping all modules
37 0.49 Thurs. Jun 11, 2008
38 !! This version now approx. 20-25% !!
39 !! faster with new Class::MOP 0.59 !!
41 * Moose::Meta::Attribute
42 - fixed how the is => (ro|rw) works with
43 custom defined reader, writer and accessor
45 - added docs for this (TODO).
46 - added tests for this (Thanks to Penfold)
47 - added the custom attribute alias for regular
48 Moose attributes which is "Moose"
49 - fix builder and default both being used
54 Moose::Meta::Attribute
56 Moose::Meta::Role::Composite
57 Moose::Util::TypeConstraints
58 - switched usage of reftype to ref because
62 - changing add_package_symbol to use the new
66 - fixed how DEMOLISHALL is called so that it
67 can be overrided in subclasses (thanks to Sartak)
68 - added test for this (thanks to Sartak)
70 * Moose::Util::TypeConstraints
71 - move the ClassName type check code to
72 Class::MOP::is_class_loaded (thanks to Sartak)
74 * Moose::Cookbook::Recipe11
75 - add tests for this (thanks to tokuhirom)
77 0.48 Thurs. May 29, 2008
78 (early morning release engineering)--
80 - fixing the version in Moose::Meta::Method::Destructor
81 which was causing the indexer to choke
83 0.47 Thurs. May 29, 2008
84 (late night release engineering)--
86 - fixing the version is META.yml, no functional
87 changes in this release
89 0.46 Wed. May 28, 2008
90 !! This version now approx. 20-25% !!
91 !! faster with new Class::MOP 0.57 !!
94 - some optimizations of the &initialize method
95 since it is called so often by &meta
99 - now use the get_all_package_symbols from the
100 updated Class::MOP, test suite is now 10 seconds
103 * Moose::Meta::Method::Destructor
104 - is_needed can now also be called as a class
105 method for immutablization to check if the
106 destructor object even needs to be created
109 * Moose::Meta::Method::Destructor
110 Moose::Meta::Method::Constructor
111 - added more descriptive error message to help
112 keep people from wasting time tracking an error
113 that is easily fixed by upgrading.
115 0.45 Saturday, May 24, 2008
117 - Because of work in Class::MOP 0.56, all
118 XS based functionality is now optional
119 and a Pure Perl version is supplied
120 - the CLASS_MOP_NO_XS environment variable
121 can now be used to force non-XS versions
123 - several of the packages have been tweaked
124 to take care of this, mostly we added
125 support for the package_name and name
126 variables in all the Method metaclasses
127 - before/around/after method modifiers now
128 support regexp matching of names
129 (thanks to Takatoshi Kitano)
130 - tests added for this
131 - NOTE: this only works for classes, it
132 is currently not supported in roles,
133 but, ... patches welcome
134 - All usage of Carp::confess have been replaced
135 by Carp::croak in the "keyword" functions since
136 the stack trace is usually not helpful
139 - All usage of Carp::confess have been replaced
140 by Carp::croak in the "keyword" functions since
141 the stack trace is usually not helpful
142 - The 'has' keyword for roles now accepts the
143 same array ref form that Moose.pm does
144 (has [qw/foo bar/] => (is => 'rw', ...))
145 - added test for this
147 * Moose::Meta::Attribute
148 - trigger on a ro-attribute is no longer an
149 error, as it's useful to trigger off of the
153 - added same 'add_package_symbol' fix as in
157 - does_role now handles non-Moose classes
159 - added tests for this
160 - added the 'add_method_modifier' function
161 (thanks to Takatoshi Kitano)
163 * Moose::Util::TypeConstraints
164 - subtypes of parameterizable types now are
165 themselves parameterizable types
167 * Moose::Meta::Method::Constructor
168 - fixed bug where trigger was not being
169 called by the inlined immutable
171 - added test for this (thanks to Caelum)
173 * Moose::Meta::Role::Application::ToInstance
174 - now uses the metaclass of the instance
175 (if possible) to create the anon-class
176 (thanks Jonathan Rockway)
178 * Moose::Cookbook::Recipe22
179 - added the meta-attribute trait recipe
183 - fixed hash-ordering test bug that was
184 causing occasional cpantester failures
185 - renamed the t/000_recipe/*.t tests to be
186 more descriptive (thanks to Sartak)
188 0.44 Sat. May 10, 2008
190 - made make_immutable warning cluck to
191 show where the error is (thanks mst)
194 - BUILDALL and DEMOLISHALL now call
195 ->body when looping through the
196 methods, to avoid the overloaded
198 - fixed issue where DEMOLISHALL was
199 eating the $@ values, and so not
200 working correctly, it still kind of
201 eats them, but so does vanilla perl
202 - added tests for this
204 * Moose::Cookbook::Recipe7
205 - added new recipe for immutable
206 functionality (thanks Dave Rolsky)
208 * Moose::Cookbook::Recipe9
209 - added new recipe for builder and
210 lazy_build (thanks Dave Rolsky)
212 * Moose::Cookbook::Recipe11
213 - added new recipe for method aliasing
214 and exclusion with Roles (thanks Dave Rolsky)
217 - fixed Win32 test failure (thanks spicyjack)
219 ~ removed Build.PL and Module::Build compat
220 since Module::Install has done that.
222 0.43 Wed. April, 30, 2008
224 drink more coffee before
225 doing release engineering
227 - whoops, forgot to do the smolder tests,
228 and we broke some of the custom meta-attr
229 modules. This fixes that.
231 0.42 Mon. April 28, 2008
232 - some bad tests slipped by, nothing else
233 changed in this release (cpantesters++)
235 - upped the Class::MOP dependency to 0.55
236 since we have tests which need the C3
239 0.41 Mon. April 28, 2008
240 ~~ numerous documentation updates ~~
242 - Changed all usage of die to Carp::croak for better
243 error reporting (initial patch by Tod Hagan)
246 - the make_immutable keyword is now deprecated, don't
247 use it in any new code and please fix your old code
248 as well. There will be 2 releases, and then it will
254 - refactored the way inner and super work to avoid
255 any method/@ISA cache penalty (nothingmuch)
258 - fixing &new_object to make sure trigger gets the
259 coerced value (spotted by Charles Alderman on the
261 - added test for this
263 * Moose::Meta::Method::Constructor
264 - immutable classes which had non-lazy attributes were calling
265 the default generating sub twice in the constructor. (bug
266 found by Jesse Luehrs, fixed by Dave Rolsky)
267 - added tests for this (Dave Rolsky)
268 - fix typo in initialize_body method (nothingmuch)
270 * Moose::Meta::Method::Destructor
271 - fix typo in initialize_body method (nothingmuch)
273 * Moose::Meta::Method::Overriden
274 Moose::Meta::Method::Augmented
275 - moved the logic for these into their own
276 classes (nothingmuch)
278 * Moose::Meta::Attribute
279 - inherited attributes may now be extended without
280 restriction on the type ('isa', 'does') (Sartak)
281 - added tests for this (Sartak)
282 - when an attribute property is malformed (such as lazy without
283 a default), give the name of the attribute in the error
285 - added the &applied_traits and &has_applied_traits methods
286 to allow introspection of traits
287 - added tests for this
288 - moved 'trait' and 'metaclass' argument handling to here from
290 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
291 '+foo' syntax) (nothingmuch)
292 - added tests for this (t0m)
295 - localize $@ inside DEMOLISHALL to avoid it
296 eating $@ (found by Ernesto)
297 - added test for this (thanks to Ernesto)
299 * Moose::Util::TypeConstraints
300 - &find_type_constraint now DWIMs when given an
301 type constraint object or name (nothingmuch)
302 - &find_or_create_type_constraint superseded with a number of more
304 - find_or_create_{isa,does}_type_constraint
305 - find_or_parse_type_constraint
307 * Moose::Meta::TypeConstraint
308 Moose::Meta::TypeConstraint::Class
309 Moose::Meta::TypeConstraint::Role
310 Moose::Meta::TypeConstraint::Enum
311 Moose::Meta::TypeConstraint::Union
312 Moose::Meta::TypeConstraint::Parameterized
313 - added the &equals method for comparing two type
314 constraints (nothingmuch)
315 - added tests for this (nothingmuch)
317 * Moose::Meta::TypeConstraint
318 - add the &parents method, which is just an alias to &parent.
319 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
321 * Moose::Meta::TypeConstraint::Class
322 - added the class attribute for introspection purposes
324 - added tests for this
326 * Moose::Meta::TypeConstraint::Enum
327 Moose::Meta::TypeConstraint::Role
328 - broke these out into their own classes (nothingmuch)
330 * Moose::Cookbook::Recipe*
331 - fixed references to test file locations in the POD
332 and updated up some text for new Moose features
336 - Added &resolve_metaclass_alias, a helper function for finding an actual
337 class for a short name (e.g. in the traits list)
339 0.40 Fri. March 14, 2008
340 - I hate Pod::Coverage
342 0.39 Fri. March 14, 2008
344 - documenting the use of '+name' with attributes
345 that come from recently composed roles. It makes
346 sense, people are using it, and so why not just
347 officially support it.
348 - fixing the 'extends' keyword so that it will not
349 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
352 - added the perl -Moose=+Class::Name feature to allow
353 monkeypatching of classes in one liners
356 - fixing the 'apply_all_roles' keyword so that it will not
357 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
360 - added ->create method which now supports roles (thanks to jrockway)
361 - added tests for this
362 - added ->create_anon_class which now supports roles and caching of
363 the results (thanks to jrockway)
364 - added tests for this
365 - made ->does_role a little more forgiving when it is
366 checking a Class::MOP era metaclasses.
368 * Moose::Meta::Role::Application::ToInstance
369 - it is now possible to pass extra params to be used when
370 a role is applied to an the instance (rebless_params)
371 - added tests for this
373 * Moose::Util::TypeConstraints
374 - class_type now accepts an optional second argument for a
375 custom message. POD anotated accordingly (groditi)
376 - added tests for this
377 - it is now possible to make anon-enums by passing 'enum' an
378 ARRAY ref instead of the $name => @values. Everything else
380 - added tests for this
383 - making test for using '+name' on attributes consumed
384 from a role, it works and makes sense too.
386 * Moose::Meta::Attribute
387 - fix handles so that it doesn't return nothing
388 when the method cannot be found, not sure why
389 it ever did this originally, this means we now
390 have slightly better support for AUTOLOADed
392 - added more delegation tests
393 - adding ->does method to this so as to better
394 support traits and their introspection.
395 - added tests for this
398 - localizing the Data::Dumper configurations so
399 that it does not pollute others (RT #33509)
400 - made ->does a little more forgiving when it is
401 passed Class::MOP era metaclasses.
403 0.38 Fri. Feb. 15, 2008
404 * Moose::Meta::Attribute
405 - fixed initializer to correctly do
406 type checking and coercion in the
408 - added tests for this
411 - fixed some finicky tests (thanks to konobi)
413 0.37 Thurs. Feb. 14, 2008
415 - fixed some details in Moose::init_meta
416 and its superclass handling (thanks thepler)
417 - added tests for this (thanks thepler)
418 - 'has' now dies if you don't pass in name
420 - added the 'make_immutable' keyword as a shortcut
424 Moose::Meta::Method::Constructor
425 Moose::Meta::Attribute
426 - making (init_arg => undef) work here too
427 (thanks to nothingmuch)
429 * Moose::Meta::Attribute
430 Moose::Meta::Method::Constructor
431 Moose::Meta::Method::Accessor
432 - make lazy attributes respect attr initializers (rjbs)
433 - added tests for this
435 * Moose::Util::TypeConstraints
436 Moose::Util::TypeConstraints::OptimizedConstraints
437 Moose::Meta::TypeConstraints
438 Moose::Meta::Attribute
439 Moose::Meta::Method::Constructor
440 Moose::Meta::Method::Accessor
441 - making type errors use the
442 assigned message (thanks to Sartak)
443 - added tests for this
445 * Moose::Meta::Method::Destructor
446 - making sure DESTROY gets inlined properly
447 with successive DEMOLISH calls (thanks to manito)
449 * Moose::Meta::Attribute
450 Moose::Meta::Method::Accessor
451 - fixed handling of undef with type constraints
453 - added tests for this
456 - added &get_all_init_args and &get_all_attribute_values
457 (thanks to Sartak and nothingmuch)
459 0.36 Sat. Jan. 26, 2008
461 Moose::Meta::Attribute
462 - role type tests now support when roles are
463 applied to non-Moose classes (found by ash)
464 - added tests for this (thanks to ash)
465 - couple extra tests to boost code coverage
467 * Moose::Meta::Method::Constructor
468 - improved fix for handling Class::MOP attributes
469 - added test for this
472 - handled the add_attribute($attribute_meta_object)
474 - added test for this
476 0.35 Tues. Jan. 22, 2008
477 * Moose::Meta::Method::Constructor
478 - fix to make sure even Class::MOP attributes
479 are handled correctly (Thanks to Dave Rolsky)
480 - added test for this (also Dave Rolsky)
483 - improved error message on _apply_all_roles,
484 you should now use Moose::Util::apply_all_roles
485 and you shouldnt have been using a _ prefixed
486 method in the first place ;)
488 0.34 Mon. Jan. 21, 2008
489 ~~~ more misc. doc. fixes ~~~
490 ~~ updated copyright dates ~~
492 Moose is now a postmodern object system :)
493 - (see the POD for details)
495 * <<Role System Refactoring>>
496 - this release contains a major reworking and
497 cleanup of the role system
498 - 100% backwards compat.
499 - Role application now restructured into seperate
500 classes based on type of applicants
501 - Role summation (combining of more than one role)
502 is much cleaner and anon-classes are no longer
504 - new Composite role metaclass
505 - runtime application of roles to instances
506 is now more efficient and re-uses generated
507 classes when applicable
509 * <<New Role composition features>>
510 - methods can now be excluded from a given role
512 - methods can now be aliased to another name (and
513 still retain the original as well)
515 * Moose::Util::TypeConstraints::OptimizedConstraints
516 - added this module (see above)
519 - fixed the &_process_attribute method to be called
520 by &add_attribute, so that the API is now correct
522 * Moose::Meta::Method::Accessor
523 - fixed bug when passing a list of values to
524 an accessor would get (incorrectly) ignored.
525 Thanks to Sartak for finding this ;)
526 - added tests for this (Sartak again)
528 * Moose::Meta::Method::Accessor
529 Moose::Meta::Method::Constructor
530 Moose::Meta::Attribute
531 Moose::Meta::TypeConstraint
532 Moose::Meta::TypeCoercion
533 - lots of cleanup of such things as:
535 - type constraint handling
536 - error handling/messages
537 (thanks to nothingmuch)
539 * Moose::Meta::TypeConstraint::Parameterizable
540 - added this module to support the refactor
541 in Moose::Meta::TypeConstraint::Parameterized
543 * Moose::Meta::TypeConstraint::Parameterized
544 - refactored how these types are handled so they
545 are more generic and not confined to ArrayRef
549 - shortened some file names for better VMS support (RT #32381)
551 0.33 Fri. Dec. 14, 2007
552 !! Moose now loads 2 x faster !!
553 !! with new Class::MOP 0.49 !!
555 ++ new oose.pm module to make command line
556 Moose-ness easier (see POD docs for more)
560 - several tweaks to take advantage of the
561 new method map caching in Class::MOP
563 * Moose::Meta::TypeConstraint::Parameterized
564 - allow subtypes of ArrayRef and HashRef to
565 be used as a container (sartak)
566 - added tests for this
567 - basic support for coercion to ArrayRef and
568 HashRef for containers (sartak)
569 - added tests for this
571 * Moose::Meta::TypeCoercion
572 - coercions will now create subtypes as needed
573 so you can now add coercions to parameterized
574 types without having to explictly define them
575 - added tests for this
577 * Moose::Meta::Method::Accessor
578 - allow subclasses to decide whether we need
579 to copy the value into a new variable (sartak)
581 0.32 Tues. Dec. 4, 2007
582 * Moose::Util::TypeConstraints
583 - fixing how subtype aliases of unions work
584 they should inherit the parent's coercion
585 - added tests for this
586 - you can now define multiple coercions on
587 a single type at different times instead of
588 having to do it all in one place
589 - added tests for this
591 * Moose::Meta::TypeConstraint
592 - there is now a default constraint of sub { 1 }
593 instead of Moose::Util::TypeConstraints setting
596 * Moose::Meta::TypeCoercion
597 * Moose::Meta::TypeCoercion::Union
598 - added the &has_coercion_for_type and
599 &add_type_coercions methods to support the
600 new features above (although you cannot add
601 more type coercions for Union types)
603 0.31 Mon. Nov. 26, 2007
604 * Moose::Meta::Attribute
605 - made the +attr syntax handle extending types with
606 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
607 now works if the original foo is an ArrayRef.
608 - added tests for this.
609 - delegation now works even if the attribute does not
610 have a reader method using the get_read_method_ref
611 method from Class::MOP::Attribute.
612 - added tests for this
613 - added docs for this
615 * Moose::Util::TypeConstraints
616 - passing no "additional attribute info" to
617 &find_or_create_type_constraint will no longer
618 attempt to create an __ANON__ type for you,
619 instead it will just return undef.
620 - added docs for this
622 0.30 Fri. Nov. 23, 2007
623 * Moose::Meta::Method::Constructor
624 -builder related bug in inlined constructor. (groditi)
626 * Moose::Meta::Method::Accessor
627 - genereate unnecessary calls to predicates and refactor
628 code generation for runtime speed (groditi)
630 * Moose::Util::TypeConstraints
631 - fix ClassName constraint to introspect symbol table (mst)
632 - added more tests for this (mst)
633 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
635 - added tests for this
638 - adding the link to Recipie 11 (written by Sartak)
639 - adding test for SYNOPSIS code
642 - New tests for builder bug. Upon instantiation, if an
643 attribute had a builder, no value and was not lazy the
644 builder default was not getting run, oops. (groditi)
646 0.29 Tues. Nov. 13, 2007
647 * Moose::Meta::Attribute
648 - Fix error message on missing builder method (groditi)
650 * Moose::Meta::Method::Accessor
651 - Fix error message on missing builder method (groditi)
654 - Add test to check for the correct error message when
655 builder method is missing (groditi)
657 0.28 Tues. Nov. 13, 2007
658 - 0.27 packaged incorrectly (groditi)
660 0.27 Tues. Nov. 13, 2007
661 * Moose::Meta::Attribute
662 - Added support for the new builder option (groditi)
663 - Added support for lazy_build option (groditi)
664 - Changed slot initialization for predicate changes (groditi)
666 * Moose::Meta::Method::Accessor
667 - Added support for lazy_build option (groditi)
668 - Fix inline methods to work with corrected predicate
671 * Moose::Meta::Method::Constructor
672 - Added support for lazy_build option (groditi)
675 - tests for builder and lazy_build (groditi)
677 * fixing some misc. bits in the docs that
678 got mentioned on CPAN Forum & perlmonks
681 - fixed how required methods are handled
682 when they encounter overriden or modified
683 methods from a class (thanks to confound).
684 - added tests for this
686 * Moose::Util::TypeConstraint
687 - fixed the type notation parser so that
688 the | always creates a union and so is
689 no longer a valid type char (thanks to
690 konobi, mugwump and #moose for working
692 - added more tests for this
694 0.26 Thurs. Sept. 27, 2007
697 * Parameterized Types
698 We now support parameterized collection types, such as:
699 ArrayRef[Int] # array or integers
700 HashRef[Object] # a hash with object values
701 They can also be nested:
702 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
703 And work with the type unions as well:
704 ArrayRef[Int | Str] # array of integers of strings
706 * Better Framework Extendability
707 Moose.pm is now "extendable" such that it is now much
708 easier to extend the framework and add your own keywords
709 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
710 section of the Moose.pm docs.
713 In an effort to begin documenting some of the various
714 details of Moose as well as some common idioms, we have
715 created Moose::Cookbook::Snacks as a place to find
716 small (easily digestable) nuggets of Moose code.
719 ~ Several doc updates/cleanup thanks to castaway ~
721 - converted build system to use Module::Install instead of
722 Module::Build (thanks to jrockway)
725 - added all the meta classes to the immutable list and
726 set it to inline the accessors
727 - fix import to allow Sub::Exporter like { into => }
728 and { into_level => } (perigrin)
729 - exposed and documented init_meta() to allow better
730 embedding and extending of Moose (perigrin)
733 - complete re-organization of the test suite
734 - added some new tests as well
735 - finally re-enabled the Moose::POOP test since
736 the new version of DBM::Deep now works again
740 - fixed very odd and very nasty recursion bug with
742 - added tests for this (eilara)
744 * Moose::Meta::Attribute
745 Moose::Meta::Method::Constructor
746 Moose::Meta::Method::Accessor
747 - fixed issue with overload::Overloaded getting called
748 on non-blessed items. (RT #29269)
749 - added tests for this
751 * Moose::Meta::Method::Accessor
752 - fixed issue with generated accessor code making
753 assumptions about hash based classes (thanks to dexter)
755 * Moose::Coookbook::Snacks
756 - these are bits of documentation, not quite as big as
757 Recipes but which have no clear place in the module docs.
758 So they are Snacks! (horray for castaway++)
760 * Moose::Cookbook::Recipe4
761 - updated it to use the new ArrayRef[MyType] construct
762 - updated the accompanying test as well
764 +++ Major Refactor of the Type Constraint system +++
765 +++ with new features added as well +++
767 * Moose::Util::TypeConstraint
768 - no longer uses package variable to keep track of
769 the type constraints, now uses the an instance of
770 Moose::Meta::TypeConstraint::Registry to do it
771 - added more sophisticated type notation parsing
773 - added tests for this
775 * Moose::Meta::TypeConstraint
776 - some minor adjustments to make subclassing easier
777 - added the package_defined_in attribute so that we
778 can track where the type constraints are created
780 * Moose::Meta::TypeConstraint::Union
781 - this is now been refactored to be a subclass of
782 Moose::Meta::TypeConstraint
784 * Moose::Meta::TypeCoercion::Union
785 - this has been added to service the newly refactored
786 Moose::Meta::TypeConstraint::Union and is itself
787 a subclass of Moose::Meta::TypeCoercion
789 * Moose::Meta::TypeConstraint::Parameterized
790 - added this module (taken from MooseX::AttributeHelpers)
791 to help construct nested collection types
792 - added tests for this
794 * Moose::Meta::TypeConstraint::Registry
795 - added this class to keep track of type constraints
797 0.25 Mon. Aug. 13, 2007
799 - Documentation update to reference Moose::Util::TypeConstraints
800 under 'isa' in 'has' for how to define a new type
803 * Moose::Meta::Attribute
804 - required attributes now will no longer accept undef
805 from the constructor, even if there is a default and lazy
806 - added tests for this
807 - default subroutines must return a value which passes the
809 - added tests for this
811 * Moose::Meta::Attribute
812 * Moose::Meta::Method::Constructor
813 * Moose::Meta::Method::Accessor
814 - type-constraint tests now handle overloaded objects correctly
816 - added tests for this (thanks to EvanCarroll)
818 * Moose::Meta::TypeConstraint::Union
819 - added (has_)hand_optimized_constraint to this class so that
820 it behaves as the regular Moose::Meta::TypeConstraint does.
823 - large refactoring of this code
824 - added several more tests
825 - tests for subtle conflict resolition issues
826 added, but not currently running
829 * Moose::Cookbook::Recipe7
830 - added new recipe for augment/inner functionality
832 - added test for this
835 - a formal definition of roles (still in progress)
838 - utilities for easier working with Moose classes
839 - added tests for these
842 - This contains Moose specific test functions
843 - added tests for these
845 0.24 Tues. July 3, 2007
846 ~ Some doc updates/cleanup ~
848 * Moose::Meta::Attribute
849 - added support for roles to be given as parameters
850 to the 'handles' option.
851 - added tests and docs for this
852 - the has '+foo' attribute form now accepts changes to
853 the lazy option, and the addition of a handles option
854 (but not changing the handles option)
855 - added tests and docs for this
858 - required methods are now fetched using find_method_by_name
859 so that required methods can come from superclasses
860 - adjusted tests for this
862 0.23 Mon. June 18, 2007
863 * Moose::Meta::Method::Constructor
864 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
866 - Modify make_immutable to work with the new Class::MOP immutable
867 mechanism + POD + very basic test (groditi)
868 * Moose::Meta::Attribute
869 - Fix handles to use goto() so that caller() comes out properly on
870 the other side (perigrin)
872 0.22 Thurs. May 31, 2007
873 * Moose::Util::TypeConstraints
874 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
875 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
876 prototypes for functions
877 - added the ClassName type constraint, this checks for strings
878 which will respond true to ->isa(UNIVERSAL).
879 - added tests and docs for this
880 - subtyping just in name now works correctly by making the
881 default for where be { 1 }
882 - added test for this
884 * Moose::Meta::Method::Accessor
885 - coerce and lazy now work together correctly, thanks to
886 merlyn for finding this bug
887 - tests added for this
888 - fix reader presedence bug in Moose::Meta::Attribute + tests
891 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
892 a HASH-ref and missed. This produces better error messages then
893 having it die cause undef is not a HASH.
894 - added tests for this
896 0.21 Thursday, May 2nd, 2007
898 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
899 - modified unimport to remove super and inner along with the rest
900 - altered unimport tests to handle this
903 - altered super export to populate SUPER_SLOT
906 - altered augment and override modifier application to use *_SLOT
907 - modified tests for these to unimport one test class each to test
910 - fixed issue where custom attribute metaclasses
911 where not handled correctly in roles
912 - added tests for this
915 - fixed issue where extending metaclasses with
916 roles would blow up. Thanks to Aankhen`` for
917 finding this insidious error, and it's solution.
919 ~~ lots of spelling and grammer fixes in the docs,
920 many many thanks to rlb3 and Aankhen for these :)
922 0.20 Friday, April 6th, 2007
923 >> I messed up the SKIP logic in one test
924 so this release is just to fix that.
927 - 'has' now also accepts an ARRAY ref
928 to create multiple attrs (see docs)
929 (thanks to konobi for this)
930 - added tests and docs
932 0.19 Thurs. April 5th, 2007
933 ~~ More documentation updates ~~
935 * Moose::Util::TypeConstraints
936 - 'type' now supports messages as well
937 thanks to phaylon for finding this
938 - added tests for this
939 - added &list_all_type_constraints and
940 &list_all_builtin_type_constraints
941 functions to facilitate introspection.
943 * Moose::Meta::Attribute
944 - fixed regexp 'handles' declarations
945 to build the list of delegated methods
946 correctly (and not override important
947 things like &new) thanks to ashleyb
949 - added tests and docs for this
950 - added the 'documentation' attributes
951 so that you can actually document your
952 attributes and inspect them through the
954 - added tests and docs for this
957 - when loading custom attribute metaclasses
958 it will first look in for the class in the
959 Moose::Meta::Attribute::Custom::$name, and
960 then default to just loading $name.
961 - added tests and docs for this
963 * Moose::Meta::TypeConstraint
964 - type constraints now stringify to their names.
965 - added test for this
968 - added tests to assure we work with Module::Refresh
969 - added stricter test skip logic in the Moose POOP
970 test, ask Rob Kinyon why.
971 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
973 0.18 Sat. March 10, 2007
974 ~~ Many, many documentation updates ~~
977 - We now use Class::MOP::load_class to
979 - added tests to show types and subtypes
980 working with Declare::Constraints::Simple
981 and Test::Deep as constraint engines.
984 !! You must have Class::MOP 0.37_001 !!
985 !! for this developer release to work !!
987 This release was primarily adding the immutable
988 feature to Moose. An immutable class is one which
989 you promise not to alter. When you set the class
990 as immutable it will perform various bits of
991 memoization and inline certain part of the code
992 (constructors, destructors and accessors). This
993 minimizes (and in some cases totally eliminates)
994 one of Moose's biggest performance hits. This
995 feature is not on by default, and is 100% optional.
996 It has several configurable bits as well, so you
997 can pick and choose to your specific needs.
999 The changes involved in this were fairly wide and
1000 highly specific, but 100% backwards compatible, so
1001 I am not going to enumerate them here. If you are
1002 truely interested in what was changed, please do
1005 0.17 Tues. Nov. 14, 2006
1006 * Moose::Meta::Method::Accessor
1007 - bugfix for read-only accessors which
1008 are have a type constraint and lazy.
1009 Thanks to chansen for finding it.
1011 0.16 Tues. Nov. 14, 2006
1013 There are some speed improvements in this release,
1014 but they are only the begining, so stay tuned.
1017 - BUILDALL and DEMOLISHALL no longer get
1018 called unless they actually need to be.
1019 This gave us a signifigant speed boost
1020 for the cases when there is no BUILD or
1021 DEMOLISH method present.
1023 * Moose::Util::TypeConstraints
1024 * Moose::Meta::TypeConstraint
1025 - added an 'optimize_as' option to the
1026 type constraint, which allows for a
1027 hand optimized version of the type
1028 constraint to be used when possible.
1029 - Any internally created type constraints
1030 now provide an optimized version as well.
1032 0.15 Sun. Nov. 5, 2006
1034 This version of Moose *must* have Class::MOP 0.36 in order
1035 to work correctly. A number of small internal tweaks have
1036 been made in order to be compatible with that release.
1038 * Moose::Util::TypeConstraints
1039 - added &unimport so that you can clean out
1040 your class namespace of these exported
1043 * Moose::Meta::Class
1044 - fixed minor issue which occasionally
1045 comes up during global destruction
1047 - moved Moose::Meta::Method::Overriden into
1051 - moved Moose::Meta::Role::Method into
1054 * Moose::Meta::Attribute
1055 - changed how we do type checks so that
1056 we reduce the overall cost, but still
1059 - moved accessor generation methods to
1060 Moose::Meta::Method::Accessor to
1061 conform to the API changes from
1064 * Moose::Meta::TypeConstraint
1065 - changed how constraints are compiled
1066 so that we do less recursion and more
1067 iteration. This makes the type check
1069 - moved Moose::Meta::TypeConstraint::Union
1072 * Moose::Meta::Method::Accessor
1073 - created this from methods formerly found in
1074 Moose::Meta::Attribute
1076 * Moose::Meta::Role::Method
1077 - moved this from Moose::Meta::Role
1079 * Moose::Meta::Method::Overriden
1080 - moved this from Moose::Meta::Class
1082 * Moose::Meta::TypeConstraint::Union
1083 - moved this from Moose::Meta::TypeConstraint
1085 0.14 Mon. Oct. 9, 2006
1087 * Moose::Meta::Attribute
1088 - fixed lazy attributes which were not getting
1089 checked with the type constraint (thanks ashley)
1090 - added tests for this
1091 - removed the over-enthusiastic DWIMery of the
1092 automatic ArrayRef and HashRef defaults, it
1093 broke predicates in an ugly way.
1094 - removed tests for this
1096 0.13 Sat. Sept. 30, 2006
1098 This version of Moose *must* have Class::MOP 0.35 in order
1099 to work correctly. A number of small internal tweaks have
1100 been made in order to be compatible with that release.
1103 - Removed the use of UNIVERSAL::require to be a better
1104 symbol table citizen and remove a dependency
1105 (thanks Adam Kennedy)
1107 **~~ removed experimental & undocumented feature ~~**
1108 - commented out the 'method' and 'self' keywords, see the
1109 comments for more info.
1112 - added a FAQ and WTF files to document frequently
1113 asked questions and common problems
1115 * Moose::Util::TypeConstraints
1116 - added GlobRef and FileHandle type constraint
1117 - added tests for this
1119 * Moose::Meta::Attribute
1120 - if your attribute 'isa' ArrayRef of HashRef, and you have
1121 not explicitly set a default, then make the default DWIM.
1122 This will also work for subtypes of ArrayRef and HashRef
1124 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1125 - new test added for this (thanks to ashley)
1128 - added basic support for runtime role composition
1129 but this is still *highly experimental*, so feedback
1130 is much appreciated :)
1131 - added tests for this
1133 * Moose::Meta::TypeConstraint
1134 - the type constraint now handles the coercion process
1135 through delegation, this is to support the coercion
1138 * Moose::Meta::TypeConstraint::Union
1139 - it is now possible for coercions to be performed
1141 - added tests for this (thanks to konobi)
1143 * Moose::Meta::TypeCoercion
1144 - properly capturing error when type constraint
1148 - Scalar::Util 1.18 is bad on Win32, so temporarily
1149 only require version 1.17 for Win32 and cygwin.
1150 (thanks Adam Kennedy)
1152 0.12 Sat. Sept. 1, 2006
1154 - Recipe5 (subtypes & coercion) has been written
1157 - fixed "bad meta" error message to be more descriptive
1158 - fixed &unimport to not remove the &inner and &super
1159 keywords because we need to localize them.
1160 - fixed number of spelling/grammer issues, thanks Theory :)
1162 **~~ experimental & undocumented feature ~~**
1163 - added the method and self keywords, they are basically
1164 just sugar, and they may not stay around.
1167 - added &dump method to easily Data::Dumper
1170 * Moose::Meta::TypeConstraint
1171 - added the &is_a_type_of method to check both the current
1172 and the subtype of a method (similar to &isa with classes)
1175 - this is now a subclass of Class::MOP::Module, and no longer
1176 creates the _role_meta ugliness of before.
1177 - fixed tests to reflect this change
1179 0.11 Wed. July 12, 2006
1181 - added an &unimport method to remove all the keywords
1182 that Moose will import, simply add 'no Moose' to the
1183 bottom of your class file.
1186 - fixed some test failures caused by a forgotten test
1189 0.10 Thurs. July 6, 2006
1191 - improved error message when loading modules so
1192 it is less confusing when you load a role.
1193 - added &calculate_all_roles method to
1194 Moose::Meta::Class and Moose::Meta::Role
1197 This module has been tested against Class::MOP 0.30
1198 but it does not yet utilize the optimizations
1199 it makes available. Stay tuned for that ;)
1201 0.09_03 Fri. June 23, 2006
1202 ++ DEVELOPER RELEASE ++
1204 - 'use strict' and 'use warnings' are no longer
1205 needed in Moose classes, Moose itself will
1206 turn them on for you.
1207 - added tests for this
1208 - moved code from exported subs to private methods
1209 in Moose::Meta::Class
1212 - as with Moose, strict and warnings are
1213 automatically turned on for you.
1214 - added tests for this
1217 - now handles an edge case for override errors
1218 - added tests for this
1219 - added some more edge case tests
1221 0.09_02 Tues. May 16, 2006
1222 ++ DEVELOPER RELEASE ++
1224 - added prototypes to the exported subs
1228 - added prototypes to the exported subs
1231 * Moose::Util::TypeConstraints
1232 - cleaned up prototypes for the subs
1235 0.09_01 Fri. May 12, 2006
1236 ++ DEVELOPER RELEASE ++
1237 - This release works in combination with
1238 Class::MOP 0.29_01, it is a developer
1239 release because it uses the a new
1240 instance sub-protocol and a fairly
1241 complete Role implementation. It has
1242 not yet been optimized, so it slower
1243 the the previous CPAN version. This
1244 release also lacks good updated docs,
1245 the official release will have updated docs.
1248 - refactored the keyword exports
1249 - 'with' now checks Role validaity and
1250 accepts more than one Role at a time
1251 - 'extends' makes metaclass adjustments as
1252 needed to ensure metaclass compatability
1255 - refactored the keyword exports
1256 - 'with' now checks Role validaity and
1257 accepts more than one Role at a time
1259 * Moose::Util::TypeConstraints
1260 - added the 'enum' keyword for simple
1261 string enumerations which can be used as
1263 - see example of usage in t/202_example.t
1266 - more careful checking of params to new()
1269 - much work done on the role composition
1270 - many new tests for conflict detection
1271 and composition edge cases
1272 - not enough documentation, I suggest
1273 looking at the tests
1275 * Moose::Meta::Instance
1276 - added new Instance metaclass to support
1277 the new Class::MOP instance protocol
1279 * Moose::Meta::Class
1280 - some small changes to support the new
1282 - some small additions to support Roles
1284 * Moose::Meta::Attribute
1285 - some improvements to the accessor generation code
1287 - some small changes to support the new
1289 - (still somewhat) experimental delegation support
1290 with the 'handles' option
1291 - added several tests for this
1292 - no docs for this yet
1294 0.05 Thurs. April 27, 2006
1296 - keywords are now exported with Sub::Exporter
1297 thanks to chansen for this commit
1298 - has keyword now takes a 'metaclass' option
1299 to support custom attribute meta-classes
1300 on a per-attribute basis
1301 - added tests for this
1302 - the 'has' keyword not accepts inherited slot
1303 specifications (has '+foo'). This is still an
1304 experimental feature and probably not finished
1305 see t/038_attribute_inherited_slot_specs.t for
1306 more details, or ask about it on #moose
1307 - added tests for this
1310 - keywords are now exported with Sub::Exporter
1312 * Moose::Utils::TypeConstraints
1313 - reorganized the type constraint hierarchy, thanks
1314 to nothingmuch and chansen for his help and advice
1316 - added some tests for this
1317 - keywords are now exported with Sub::Exporter
1318 thanks to chansen for this commit
1320 * Moose::Meta::Class
1321 - due to changes in Class::MOP, we had to change
1322 construct_instance (for the better)
1324 * Moose::Meta::Attribute
1325 - due to changes in Class::MOP, we had to add the
1326 initialize_instance_slot method (it's a good thing)
1328 * Moose::Meta::TypeConstraint
1329 - added type constraint unions
1330 - added tests for this
1331 - added the is_subtype_of predicate method
1332 - added tests for this
1334 0.04 Sun. April 16th, 2006
1336 - Roles can now consume other roles
1337 - added tests for this
1338 - Roles can specify required methods now with
1339 the requires() keyword
1340 - added tests for this
1343 - ripped out much of it's guts ,.. much cleaner now
1344 - added required methods and correct handling of
1345 them in apply() for both classes and roles
1346 - added tests for this
1347 - no longer adds a does() method to consuming classes
1348 it relys on the one in Moose::Object
1349 - added roles attribute and some methods to support
1350 roles consuming roles
1352 * Moose::Meta::Attribute
1353 - added support for triggers on attributes
1354 - added tests for this
1355 - added support for does option on an attribute
1356 - added tests for this
1358 * Moose::Meta::Class
1359 - added support for attribute triggers in the
1361 - added tests for this
1364 - Moose no longer creates a subtype for your class
1365 if a subtype of the same name already exists, this
1366 should DWIM in 99.9999% of all cases
1368 * Moose::Util::TypeConstraints
1369 - fixed bug where incorrect subtype conflicts were
1371 - added test for this
1374 - this class can now be extended with 'use base' if
1375 you need it, it properly loads the metaclass class now
1376 - added test for this
1378 0.03_02 Wed. April 12, 2006
1380 - you must now explictly use Moose::Util::TypeConstraints
1381 it no longer gets exported for you automatically
1384 - new() now accepts hash-refs as well as key/value lists
1385 - added does() method to check for Roles
1386 - added tests for this
1388 * Moose::Meta::Class
1389 - added roles attribute along with the add_role() and
1391 - added tests for this
1394 - now adds a does() method to consuming classes
1395 which tests the class's hierarchy for roles
1396 - added tests for this
1398 0.03_01 Mon. April 10, 2006
1400 - added new Role recipe (no content yet, only code)
1403 - added 'with' keyword for Role support
1404 - added test and docs for this
1405 - fixed subtype quoting bug
1406 - added test for this
1410 - added test and docs
1412 * Moose::Util::TypeConstraints
1413 - added the message keyword to add custom
1414 error messages to type constraints
1417 - the meta role to support Moose::Role
1418 - added tests and docs
1420 * Moose::Meta::Class
1421 - moved a number of things from Moose.pm
1422 to here, they should have been here
1425 * Moose::Meta::Attribute
1426 - moved the attribute option macros here
1427 instead of putting them in Moose.pm
1429 * Moose::Meta::TypeConstraint
1430 - added the message attributes and the
1432 - added tests and docs for this
1434 0.03 Thurs. March 30, 2006
1436 - added the Moose::Cookbook with 5 recipes,
1437 describing all the stuff Moose can do.
1440 - fixed an issue with &extends super class loading
1441 it now captures errors and deals with inline
1442 packages correctly (bug found by mst, solution
1444 - added super/override & inner/augment features
1445 - added tests and docs for these
1448 - BUILDALL now takes a reference of the %params
1449 that are passed to &new, and passes that to
1452 * Moose::Util::TypeConstraints
1453 - Type constraints now survive runtime reloading
1454 - added test for this
1456 * Moose::Meta::Class
1457 - fixed the way attribute defaults are handled
1458 during instance construction (bug found by chansen)
1460 * Moose::Meta::Attribute
1461 - read-only attributes now actually enforce their
1462 read-only-ness (this corrected in Class::MOP as
1465 0.02 Tues. March 21, 2006
1467 - many more tests, fixing some bugs and
1469 - &extends now loads the base module with
1471 - added UNIVERSAL::require to the
1474 - each new Moose class will also create
1475 and register a subtype of Object which
1476 correspond to the new Moose class.
1477 - the 'isa' option in &has now only
1478 accepts strings, and will DWIM in
1481 * Moose::Util::TypeConstraints
1482 - added type coercion features
1483 - added tests for this
1484 - added support for this in attributes
1485 and instance construction
1487 - type construction no longer creates a
1488 function, it registers the type instead.
1489 - added several functions to get the
1493 - BUILDALL and DEMOLISHALL were broken
1494 because of a mis-named hash key, Whoops :)
1496 * Moose::Meta::Attribute
1497 - adding support for coercion in the
1498 autogenerated accessors
1500 * Moose::Meta::Class
1501 - adding support for coercion in the
1502 instance construction
1504 * Moose::Meta::TypeConstraint
1505 * Moose::Meta::TypeCoercion
1506 - type constraints and coercions are now
1507 full fledges meta-objects
1509 0.01 Wed. March 15, 2006
1510 - Moooooooooooooooooose!!!