1 Revision history for Perl extension Moose
5 - add unimport so "no Moose::Role" actually does something
6 * Moose::Meta::Role::Application::ToRole
7 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
8 order to provide its own implementation, that method still got
9 added to the list of required methods for consumers of
10 RoleB. Now an aliased method is only added to the list of
11 required methods if the role doing the aliasing does not
12 provide its own implementation. See Recipe 11 for an example
13 of all this. (thanks Dave Rolsky)
14 - added tests for this
15 * Moose::Meta::Method::Constructor
16 - when a single argument that wasn't a hashref was provided to
17 an immutabilized constructor, the error message was very
18 unhelpful, as opposed to the non-immutable error. Reported by
19 dew. (Thanks to Dave Rolsky)
20 - added test for this (also Dave Rolsky)
22 0.50 Thurs. Jun 11, 2008
23 - Fixed a version number issue by bumping all modules
26 0.49 Thurs. Jun 11, 2008
27 !! This version now approx. 20-25% !!
28 !! faster with new Class::MOP 0.59 !!
30 * Moose::Meta::Attribute
31 - fixed how the is => (ro|rw) works with
32 custom defined reader, writer and accessor
34 - added docs for this (TODO).
35 - added tests for this (Thanks to Penfold)
36 - added the custom attribute alias for regular
37 Moose attributes which is "Moose"
38 - fix builder and default both being used
43 Moose::Meta::Attribute
45 Moose::Meta::Role::Composite
46 Moose::Util::TypeConstraints
47 - switched usage of reftype to ref because
51 - changing add_package_symbol to use the new
55 - fixed how DEMOLISHALL is called so that it
56 can be overrided in subclasses (thanks to Sartak)
57 - added test for this (thanks to Sartak)
59 * Moose::Util::TypeConstraints
60 - move the ClassName type check code to
61 Class::MOP::is_class_loaded (thanks to Sartak)
63 * Moose::Cookbook::Recipe11
64 - add tests for this (thanks to tokuhirom)
66 0.48 Thurs. May 29, 2008
67 (early morning release engineering)--
69 - fixing the version in Moose::Meta::Method::Destructor
70 which was causing the indexer to choke
72 0.47 Thurs. May 29, 2008
73 (late night release engineering)--
75 - fixing the version is META.yml, no functional
76 changes in this release
78 0.46 Wed. May 28, 2008
79 !! This version now approx. 20-25% !!
80 !! faster with new Class::MOP 0.57 !!
83 - some optimizations of the &initialize method
84 since it is called so often by &meta
88 - now use the get_all_package_symbols from the
89 updated Class::MOP, test suite is now 10 seconds
92 * Moose::Meta::Method::Destructor
93 - is_needed can now also be called as a class
94 method for immutablization to check if the
95 destructor object even needs to be created
98 * Moose::Meta::Method::Destructor
99 Moose::Meta::Method::Constructor
100 - added more descriptive error message to help
101 keep people from wasting time tracking an error
102 that is easily fixed by upgrading.
104 0.45 Saturday, May 24, 2008
106 - Because of work in Class::MOP 0.56, all
107 XS based functionality is now optional
108 and a Pure Perl version is supplied
109 - the CLASS_MOP_NO_XS environment variable
110 can now be used to force non-XS versions
112 - several of the packages have been tweaked
113 to take care of this, mostly we added
114 support for the package_name and name
115 variables in all the Method metaclasses
116 - before/around/after method modifiers now
117 support regexp matching of names
118 (thanks to Takatoshi Kitano)
119 - tests added for this
120 - NOTE: this only works for classes, it
121 is currently not supported in roles,
122 but, ... patches welcome
123 - All usage of Carp::confess have been replaced
124 by Carp::croak in the "keyword" functions since
125 the stack trace is usually not helpful
128 - All usage of Carp::confess have been replaced
129 by Carp::croak in the "keyword" functions since
130 the stack trace is usually not helpful
131 - The 'has' keyword for roles now accepts the
132 same array ref form that Moose.pm does
133 (has [qw/foo bar/] => (is => 'rw', ...))
134 - added test for this
136 * Moose::Meta::Attribute
137 - trigger on a ro-attribute is no longer an
138 error, as it's useful to trigger off of the
142 - added same 'add_package_symbol' fix as in
146 - does_role now handles non-Moose classes
148 - added tests for this
149 - added the 'add_method_modifier' function
150 (thanks to Takatoshi Kitano)
152 * Moose::Util::TypeConstraints
153 - subtypes of parameterizable types now are
154 themselves parameterizable types
156 * Moose::Meta::Method::Constructor
157 - fixed bug where trigger was not being
158 called by the inlined immutable
160 - added test for this (thanks to Caelum)
162 * Moose::Meta::Role::Application::ToInstance
163 - now uses the metaclass of the instance
164 (if possible) to create the anon-class
165 (thanks Jonathan Rockway)
167 * Moose::Cookbook::Recipe22
168 - added the meta-attribute trait recipe
172 - fixed hash-ordering test bug that was
173 causing occasional cpantester failures
174 - renamed the t/000_recipe/*.t tests to be
175 more descriptive (thanks to Sartak)
177 0.44 Sat. May 10, 2008
179 - made make_immutable warning cluck to
180 show where the error is (thanks mst)
183 - BUILDALL and DEMOLISHALL now call
184 ->body when looping through the
185 methods, to avoid the overloaded
187 - fixed issue where DEMOLISHALL was
188 eating the $@ values, and so not
189 working correctly, it still kind of
190 eats them, but so does vanilla perl
191 - added tests for this
193 * Moose::Cookbook::Recipe7
194 - added new recipe for immutable
195 functionality (thanks Dave Rolsky)
197 * Moose::Cookbook::Recipe9
198 - added new recipe for builder and
199 lazy_build (thanks Dave Rolsky)
201 * Moose::Cookbook::Recipe11
202 - added new recipe for method aliasing
203 and exclusion with Roles (thanks Dave Rolsky)
206 - fixed Win32 test failure (thanks spicyjack)
208 ~ removed Build.PL and Module::Build compat
209 since Module::Install has done that.
211 0.43 Wed. April, 30, 2008
213 drink more coffee before
214 doing release engineering
216 - whoops, forgot to do the smolder tests,
217 and we broke some of the custom meta-attr
218 modules. This fixes that.
220 0.42 Mon. April 28, 2008
221 - some bad tests slipped by, nothing else
222 changed in this release (cpantesters++)
224 - upped the Class::MOP dependency to 0.55
225 since we have tests which need the C3
228 0.41 Mon. April 28, 2008
229 ~~ numerous documentation updates ~~
231 - Changed all usage of die to Carp::croak for better
232 error reporting (initial patch by Tod Hagan)
235 - the make_immutable keyword is now deprecated, don't
236 use it in any new code and please fix your old code
237 as well. There will be 2 releases, and then it will
243 - refactored the way inner and super work to avoid
244 any method/@ISA cache penalty (nothingmuch)
247 - fixing &new_object to make sure trigger gets the
248 coerced value (spotted by Charles Alderman on the
250 - added test for this
252 * Moose::Meta::Method::Constructor
253 - immutable classes which had non-lazy attributes were calling
254 the default generating sub twice in the constructor. (bug
255 found by Jesse Luehrs, fixed by Dave Rolsky)
256 - added tests for this (Dave Rolsky)
257 - fix typo in initialize_body method (nothingmuch)
259 * Moose::Meta::Method::Destructor
260 - fix typo in initialize_body method (nothingmuch)
262 * Moose::Meta::Method::Overriden
263 Moose::Meta::Method::Augmented
264 - moved the logic for these into their own
265 classes (nothingmuch)
267 * Moose::Meta::Attribute
268 - inherited attributes may now be extended without
269 restriction on the type ('isa', 'does') (Sartak)
270 - added tests for this (Sartak)
271 - when an attribute property is malformed (such as lazy without
272 a default), give the name of the attribute in the error
274 - added the &applied_traits and &has_applied_traits methods
275 to allow introspection of traits
276 - added tests for this
277 - moved 'trait' and 'metaclass' argument handling to here from
279 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
280 '+foo' syntax) (nothingmuch)
281 - added tests for this (t0m)
284 - localize $@ inside DEMOLISHALL to avoid it
285 eating $@ (found by Ernesto)
286 - added test for this (thanks to Ernesto)
288 * Moose::Util::TypeConstraints
289 - &find_type_constraint now DWIMs when given an
290 type constraint object or name (nothingmuch)
291 - &find_or_create_type_constraint superseded with a number of more
293 - find_or_create_{isa,does}_type_constraint
294 - find_or_parse_type_constraint
296 * Moose::Meta::TypeConstraint
297 Moose::Meta::TypeConstraint::Class
298 Moose::Meta::TypeConstraint::Role
299 Moose::Meta::TypeConstraint::Enum
300 Moose::Meta::TypeConstraint::Union
301 Moose::Meta::TypeConstraint::Parameterized
302 - added the &equals method for comparing two type
303 constraints (nothingmuch)
304 - added tests for this (nothingmuch)
306 * Moose::Meta::TypeConstraint
307 - add the &parents method, which is just an alias to &parent.
308 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
310 * Moose::Meta::TypeConstraint::Class
311 - added the class attribute for introspection purposes
313 - added tests for this
315 * Moose::Meta::TypeConstraint::Enum
316 Moose::Meta::TypeConstraint::Role
317 - broke these out into their own classes (nothingmuch)
319 * Moose::Cookbook::Recipe*
320 - fixed references to test file locations in the POD
321 and updated up some text for new Moose features
325 - Added &resolve_metaclass_alias, a helper function for finding an actual
326 class for a short name (e.g. in the traits list)
328 0.40 Fri. March 14, 2008
329 - I hate Pod::Coverage
331 0.39 Fri. March 14, 2008
333 - documenting the use of '+name' with attributes
334 that come from recently composed roles. It makes
335 sense, people are using it, and so why not just
336 officially support it.
337 - fixing the 'extends' keyword so that it will not
338 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
341 - added the perl -Moose=+Class::Name feature to allow
342 monkeypatching of classes in one liners
345 - fixing the 'apply_all_roles' keyword so that it will not
346 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
349 - added ->create method which now supports roles (thanks to jrockway)
350 - added tests for this
351 - added ->create_anon_class which now supports roles and caching of
352 the results (thanks to jrockway)
353 - added tests for this
354 - made ->does_role a little more forgiving when it is
355 checking a Class::MOP era metaclasses.
357 * Moose::Meta::Role::Application::ToInstance
358 - it is now possible to pass extra params to be used when
359 a role is applied to an the instance (rebless_params)
360 - added tests for this
362 * Moose::Util::TypeConstraints
363 - class_type now accepts an optional second argument for a
364 custom message. POD anotated accordingly (groditi)
365 - added tests for this
366 - it is now possible to make anon-enums by passing 'enum' an
367 ARRAY ref instead of the $name => @values. Everything else
369 - added tests for this
372 - making test for using '+name' on attributes consumed
373 from a role, it works and makes sense too.
375 * Moose::Meta::Attribute
376 - fix handles so that it doesn't return nothing
377 when the method cannot be found, not sure why
378 it ever did this originally, this means we now
379 have slightly better support for AUTOLOADed
381 - added more delegation tests
382 - adding ->does method to this so as to better
383 support traits and their introspection.
384 - added tests for this
387 - localizing the Data::Dumper configurations so
388 that it does not pollute others (RT #33509)
389 - made ->does a little more forgiving when it is
390 passed Class::MOP era metaclasses.
392 0.38 Fri. Feb. 15, 2008
393 * Moose::Meta::Attribute
394 - fixed initializer to correctly do
395 type checking and coercion in the
397 - added tests for this
400 - fixed some finicky tests (thanks to konobi)
402 0.37 Thurs. Feb. 14, 2008
404 - fixed some details in Moose::init_meta
405 and its superclass handling (thanks thepler)
406 - added tests for this (thanks thepler)
407 - 'has' now dies if you don't pass in name
409 - added the 'make_immutable' keyword as a shortcut
413 Moose::Meta::Method::Constructor
414 Moose::Meta::Attribute
415 - making (init_arg => undef) work here too
416 (thanks to nothingmuch)
418 * Moose::Meta::Attribute
419 Moose::Meta::Method::Constructor
420 Moose::Meta::Method::Accessor
421 - make lazy attributes respect attr initializers (rjbs)
422 - added tests for this
424 * Moose::Util::TypeConstraints
425 Moose::Util::TypeConstraints::OptimizedConstraints
426 Moose::Meta::TypeConstraints
427 Moose::Meta::Attribute
428 Moose::Meta::Method::Constructor
429 Moose::Meta::Method::Accessor
430 - making type errors use the
431 assigned message (thanks to Sartak)
432 - added tests for this
434 * Moose::Meta::Method::Destructor
435 - making sure DESTROY gets inlined properly
436 with successive DEMOLISH calls (thanks to manito)
438 * Moose::Meta::Attribute
439 Moose::Meta::Method::Accessor
440 - fixed handling of undef with type constraints
442 - added tests for this
445 - added &get_all_init_args and &get_all_attribute_values
446 (thanks to Sartak and nothingmuch)
448 0.36 Sat. Jan. 26, 2008
450 Moose::Meta::Attribute
451 - role type tests now support when roles are
452 applied to non-Moose classes (found by ash)
453 - added tests for this (thanks to ash)
454 - couple extra tests to boost code coverage
456 * Moose::Meta::Method::Constructor
457 - improved fix for handling Class::MOP attributes
458 - added test for this
461 - handled the add_attribute($attribute_meta_object)
463 - added test for this
465 0.35 Tues. Jan. 22, 2008
466 * Moose::Meta::Method::Constructor
467 - fix to make sure even Class::MOP attributes
468 are handled correctly (Thanks to Dave Rolsky)
469 - added test for this (also Dave Rolsky)
472 - improved error message on _apply_all_roles,
473 you should now use Moose::Util::apply_all_roles
474 and you shouldnt have been using a _ prefixed
475 method in the first place ;)
477 0.34 Mon. Jan. 21, 2008
478 ~~~ more misc. doc. fixes ~~~
479 ~~ updated copyright dates ~~
481 Moose is now a postmodern object system :)
482 - (see the POD for details)
484 * <<Role System Refactoring>>
485 - this release contains a major reworking and
486 cleanup of the role system
487 - 100% backwards compat.
488 - Role application now restructured into seperate
489 classes based on type of applicants
490 - Role summation (combining of more than one role)
491 is much cleaner and anon-classes are no longer
493 - new Composite role metaclass
494 - runtime application of roles to instances
495 is now more efficient and re-uses generated
496 classes when applicable
498 * <<New Role composition features>>
499 - methods can now be excluded from a given role
501 - methods can now be aliased to another name (and
502 still retain the original as well)
504 * Moose::Util::TypeConstraints::OptimizedConstraints
505 - added this module (see above)
508 - fixed the &_process_attribute method to be called
509 by &add_attribute, so that the API is now correct
511 * Moose::Meta::Method::Accessor
512 - fixed bug when passing a list of values to
513 an accessor would get (incorrectly) ignored.
514 Thanks to Sartak for finding this ;)
515 - added tests for this (Sartak again)
517 * Moose::Meta::Method::Accessor
518 Moose::Meta::Method::Constructor
519 Moose::Meta::Attribute
520 Moose::Meta::TypeConstraint
521 Moose::Meta::TypeCoercion
522 - lots of cleanup of such things as:
524 - type constraint handling
525 - error handling/messages
526 (thanks to nothingmuch)
528 * Moose::Meta::TypeConstraint::Parameterizable
529 - added this module to support the refactor
530 in Moose::Meta::TypeConstraint::Parameterized
532 * Moose::Meta::TypeConstraint::Parameterized
533 - refactored how these types are handled so they
534 are more generic and not confined to ArrayRef
538 - shortened some file names for better VMS support (RT #32381)
540 0.33 Fri. Dec. 14, 2007
541 !! Moose now loads 2 x faster !!
542 !! with new Class::MOP 0.49 !!
544 ++ new oose.pm module to make command line
545 Moose-ness easier (see POD docs for more)
549 - several tweaks to take advantage of the
550 new method map caching in Class::MOP
552 * Moose::Meta::TypeConstraint::Parameterized
553 - allow subtypes of ArrayRef and HashRef to
554 be used as a container (sartak)
555 - added tests for this
556 - basic support for coercion to ArrayRef and
557 HashRef for containers (sartak)
558 - added tests for this
560 * Moose::Meta::TypeCoercion
561 - coercions will now create subtypes as needed
562 so you can now add coercions to parameterized
563 types without having to explictly define them
564 - added tests for this
566 * Moose::Meta::Method::Accessor
567 - allow subclasses to decide whether we need
568 to copy the value into a new variable (sartak)
570 0.32 Tues. Dec. 4, 2007
571 * Moose::Util::TypeConstraints
572 - fixing how subtype aliases of unions work
573 they should inherit the parent's coercion
574 - added tests for this
575 - you can now define multiple coercions on
576 a single type at different times instead of
577 having to do it all in one place
578 - added tests for this
580 * Moose::Meta::TypeConstraint
581 - there is now a default constraint of sub { 1 }
582 instead of Moose::Util::TypeConstraints setting
585 * Moose::Meta::TypeCoercion
586 * Moose::Meta::TypeCoercion::Union
587 - added the &has_coercion_for_type and
588 &add_type_coercions methods to support the
589 new features above (although you cannot add
590 more type coercions for Union types)
592 0.31 Mon. Nov. 26, 2007
593 * Moose::Meta::Attribute
594 - made the +attr syntax handle extending types with
595 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
596 now works if the original foo is an ArrayRef.
597 - added tests for this.
598 - delegation now works even if the attribute does not
599 have a reader method using the get_read_method_ref
600 method from Class::MOP::Attribute.
601 - added tests for this
602 - added docs for this
604 * Moose::Util::TypeConstraints
605 - passing no "additional attribute info" to
606 &find_or_create_type_constraint will no longer
607 attempt to create an __ANON__ type for you,
608 instead it will just return undef.
609 - added docs for this
611 0.30 Fri. Nov. 23, 2007
612 * Moose::Meta::Method::Constructor
613 -builder related bug in inlined constructor. (groditi)
615 * Moose::Meta::Method::Accessor
616 - genereate unnecessary calls to predicates and refactor
617 code generation for runtime speed (groditi)
619 * Moose::Util::TypeConstraints
620 - fix ClassName constraint to introspect symbol table (mst)
621 - added more tests for this (mst)
622 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
624 - added tests for this
627 - adding the link to Recipie 11 (written by Sartak)
628 - adding test for SYNOPSIS code
631 - New tests for builder bug. Upon instantiation, if an
632 attribute had a builder, no value and was not lazy the
633 builder default was not getting run, oops. (groditi)
635 0.29 Tues. Nov. 13, 2007
636 * Moose::Meta::Attribute
637 - Fix error message on missing builder method (groditi)
639 * Moose::Meta::Method::Accessor
640 - Fix error message on missing builder method (groditi)
643 - Add test to check for the correct error message when
644 builder method is missing (groditi)
646 0.28 Tues. Nov. 13, 2007
647 - 0.27 packaged incorrectly (groditi)
649 0.27 Tues. Nov. 13, 2007
650 * Moose::Meta::Attribute
651 - Added support for the new builder option (groditi)
652 - Added support for lazy_build option (groditi)
653 - Changed slot initialization for predicate changes (groditi)
655 * Moose::Meta::Method::Accessor
656 - Added support for lazy_build option (groditi)
657 - Fix inline methods to work with corrected predicate
660 * Moose::Meta::Method::Constructor
661 - Added support for lazy_build option (groditi)
664 - tests for builder and lazy_build (groditi)
666 * fixing some misc. bits in the docs that
667 got mentioned on CPAN Forum & perlmonks
670 - fixed how required methods are handled
671 when they encounter overriden or modified
672 methods from a class (thanks to confound).
673 - added tests for this
675 * Moose::Util::TypeConstraint
676 - fixed the type notation parser so that
677 the | always creates a union and so is
678 no longer a valid type char (thanks to
679 konobi, mugwump and #moose for working
681 - added more tests for this
683 0.26 Thurs. Sept. 27, 2007
686 * Parameterized Types
687 We now support parameterized collection types, such as:
688 ArrayRef[Int] # array or integers
689 HashRef[Object] # a hash with object values
690 They can also be nested:
691 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
692 And work with the type unions as well:
693 ArrayRef[Int | Str] # array of integers of strings
695 * Better Framework Extendability
696 Moose.pm is now "extendable" such that it is now much
697 easier to extend the framework and add your own keywords
698 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
699 section of the Moose.pm docs.
702 In an effort to begin documenting some of the various
703 details of Moose as well as some common idioms, we have
704 created Moose::Cookbook::Snacks as a place to find
705 small (easily digestable) nuggets of Moose code.
708 ~ Several doc updates/cleanup thanks to castaway ~
710 - converted build system to use Module::Install instead of
711 Module::Build (thanks to jrockway)
714 - added all the meta classes to the immutable list and
715 set it to inline the accessors
716 - fix import to allow Sub::Exporter like { into => }
717 and { into_level => } (perigrin)
718 - exposed and documented init_meta() to allow better
719 embedding and extending of Moose (perigrin)
722 - complete re-organization of the test suite
723 - added some new tests as well
724 - finally re-enabled the Moose::POOP test since
725 the new version of DBM::Deep now works again
729 - fixed very odd and very nasty recursion bug with
731 - added tests for this (eilara)
733 * Moose::Meta::Attribute
734 Moose::Meta::Method::Constructor
735 Moose::Meta::Method::Accessor
736 - fixed issue with overload::Overloaded getting called
737 on non-blessed items. (RT #29269)
738 - added tests for this
740 * Moose::Meta::Method::Accessor
741 - fixed issue with generated accessor code making
742 assumptions about hash based classes (thanks to dexter)
744 * Moose::Coookbook::Snacks
745 - these are bits of documentation, not quite as big as
746 Recipes but which have no clear place in the module docs.
747 So they are Snacks! (horray for castaway++)
749 * Moose::Cookbook::Recipe4
750 - updated it to use the new ArrayRef[MyType] construct
751 - updated the accompanying test as well
753 +++ Major Refactor of the Type Constraint system +++
754 +++ with new features added as well +++
756 * Moose::Util::TypeConstraint
757 - no longer uses package variable to keep track of
758 the type constraints, now uses the an instance of
759 Moose::Meta::TypeConstraint::Registry to do it
760 - added more sophisticated type notation parsing
762 - added tests for this
764 * Moose::Meta::TypeConstraint
765 - some minor adjustments to make subclassing easier
766 - added the package_defined_in attribute so that we
767 can track where the type constraints are created
769 * Moose::Meta::TypeConstraint::Union
770 - this is now been refactored to be a subclass of
771 Moose::Meta::TypeConstraint
773 * Moose::Meta::TypeCoercion::Union
774 - this has been added to service the newly refactored
775 Moose::Meta::TypeConstraint::Union and is itself
776 a subclass of Moose::Meta::TypeCoercion
778 * Moose::Meta::TypeConstraint::Parameterized
779 - added this module (taken from MooseX::AttributeHelpers)
780 to help construct nested collection types
781 - added tests for this
783 * Moose::Meta::TypeConstraint::Registry
784 - added this class to keep track of type constraints
786 0.25 Mon. Aug. 13, 2007
788 - Documentation update to reference Moose::Util::TypeConstraints
789 under 'isa' in 'has' for how to define a new type
792 * Moose::Meta::Attribute
793 - required attributes now will no longer accept undef
794 from the constructor, even if there is a default and lazy
795 - added tests for this
796 - default subroutines must return a value which passes the
798 - added tests for this
800 * Moose::Meta::Attribute
801 * Moose::Meta::Method::Constructor
802 * Moose::Meta::Method::Accessor
803 - type-constraint tests now handle overloaded objects correctly
805 - added tests for this (thanks to EvanCarroll)
807 * Moose::Meta::TypeConstraint::Union
808 - added (has_)hand_optimized_constraint to this class so that
809 it behaves as the regular Moose::Meta::TypeConstraint does.
812 - large refactoring of this code
813 - added several more tests
814 - tests for subtle conflict resolition issues
815 added, but not currently running
818 * Moose::Cookbook::Recipe7
819 - added new recipe for augment/inner functionality
821 - added test for this
824 - a formal definition of roles (still in progress)
827 - utilities for easier working with Moose classes
828 - added tests for these
831 - This contains Moose specific test functions
832 - added tests for these
834 0.24 Tues. July 3, 2007
835 ~ Some doc updates/cleanup ~
837 * Moose::Meta::Attribute
838 - added support for roles to be given as parameters
839 to the 'handles' option.
840 - added tests and docs for this
841 - the has '+foo' attribute form now accepts changes to
842 the lazy option, and the addition of a handles option
843 (but not changing the handles option)
844 - added tests and docs for this
847 - required methods are now fetched using find_method_by_name
848 so that required methods can come from superclasses
849 - adjusted tests for this
851 0.23 Mon. June 18, 2007
852 * Moose::Meta::Method::Constructor
853 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
855 - Modify make_immutable to work with the new Class::MOP immutable
856 mechanism + POD + very basic test (groditi)
857 * Moose::Meta::Attribute
858 - Fix handles to use goto() so that caller() comes out properly on
859 the other side (perigrin)
861 0.22 Thurs. May 31, 2007
862 * Moose::Util::TypeConstraints
863 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
864 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
865 prototypes for functions
866 - added the ClassName type constraint, this checks for strings
867 which will respond true to ->isa(UNIVERSAL).
868 - added tests and docs for this
869 - subtyping just in name now works correctly by making the
870 default for where be { 1 }
871 - added test for this
873 * Moose::Meta::Method::Accessor
874 - coerce and lazy now work together correctly, thanks to
875 merlyn for finding this bug
876 - tests added for this
877 - fix reader presedence bug in Moose::Meta::Attribute + tests
880 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
881 a HASH-ref and missed. This produces better error messages then
882 having it die cause undef is not a HASH.
883 - added tests for this
885 0.21 Thursday, May 2nd, 2007
887 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
888 - modified unimport to remove super and inner along with the rest
889 - altered unimport tests to handle this
892 - altered super export to populate SUPER_SLOT
895 - altered augment and override modifier application to use *_SLOT
896 - modified tests for these to unimport one test class each to test
899 - fixed issue where custom attribute metaclasses
900 where not handled correctly in roles
901 - added tests for this
904 - fixed issue where extending metaclasses with
905 roles would blow up. Thanks to Aankhen`` for
906 finding this insidious error, and it's solution.
908 ~~ lots of spelling and grammer fixes in the docs,
909 many many thanks to rlb3 and Aankhen for these :)
911 0.20 Friday, April 6th, 2007
912 >> I messed up the SKIP logic in one test
913 so this release is just to fix that.
916 - 'has' now also accepts an ARRAY ref
917 to create multiple attrs (see docs)
918 (thanks to konobi for this)
919 - added tests and docs
921 0.19 Thurs. April 5th, 2007
922 ~~ More documentation updates ~~
924 * Moose::Util::TypeConstraints
925 - 'type' now supports messages as well
926 thanks to phaylon for finding this
927 - added tests for this
928 - added &list_all_type_constraints and
929 &list_all_builtin_type_constraints
930 functions to facilitate introspection.
932 * Moose::Meta::Attribute
933 - fixed regexp 'handles' declarations
934 to build the list of delegated methods
935 correctly (and not override important
936 things like &new) thanks to ashleyb
938 - added tests and docs for this
939 - added the 'documentation' attributes
940 so that you can actually document your
941 attributes and inspect them through the
943 - added tests and docs for this
946 - when loading custom attribute metaclasses
947 it will first look in for the class in the
948 Moose::Meta::Attribute::Custom::$name, and
949 then default to just loading $name.
950 - added tests and docs for this
952 * Moose::Meta::TypeConstraint
953 - type constraints now stringify to their names.
954 - added test for this
957 - added tests to assure we work with Module::Refresh
958 - added stricter test skip logic in the Moose POOP
959 test, ask Rob Kinyon why.
960 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
962 0.18 Sat. March 10, 2007
963 ~~ Many, many documentation updates ~~
966 - We now use Class::MOP::load_class to
968 - added tests to show types and subtypes
969 working with Declare::Constraints::Simple
970 and Test::Deep as constraint engines.
973 !! You must have Class::MOP 0.37_001 !!
974 !! for this developer release to work !!
976 This release was primarily adding the immutable
977 feature to Moose. An immutable class is one which
978 you promise not to alter. When you set the class
979 as immutable it will perform various bits of
980 memoization and inline certain part of the code
981 (constructors, destructors and accessors). This
982 minimizes (and in some cases totally eliminates)
983 one of Moose's biggest performance hits. This
984 feature is not on by default, and is 100% optional.
985 It has several configurable bits as well, so you
986 can pick and choose to your specific needs.
988 The changes involved in this were fairly wide and
989 highly specific, but 100% backwards compatible, so
990 I am not going to enumerate them here. If you are
991 truely interested in what was changed, please do
994 0.17 Tues. Nov. 14, 2006
995 * Moose::Meta::Method::Accessor
996 - bugfix for read-only accessors which
997 are have a type constraint and lazy.
998 Thanks to chansen for finding it.
1000 0.16 Tues. Nov. 14, 2006
1002 There are some speed improvements in this release,
1003 but they are only the begining, so stay tuned.
1006 - BUILDALL and DEMOLISHALL no longer get
1007 called unless they actually need to be.
1008 This gave us a signifigant speed boost
1009 for the cases when there is no BUILD or
1010 DEMOLISH method present.
1012 * Moose::Util::TypeConstraints
1013 * Moose::Meta::TypeConstraint
1014 - added an 'optimize_as' option to the
1015 type constraint, which allows for a
1016 hand optimized version of the type
1017 constraint to be used when possible.
1018 - Any internally created type constraints
1019 now provide an optimized version as well.
1021 0.15 Sun. Nov. 5, 2006
1023 This version of Moose *must* have Class::MOP 0.36 in order
1024 to work correctly. A number of small internal tweaks have
1025 been made in order to be compatible with that release.
1027 * Moose::Util::TypeConstraints
1028 - added &unimport so that you can clean out
1029 your class namespace of these exported
1032 * Moose::Meta::Class
1033 - fixed minor issue which occasionally
1034 comes up during global destruction
1036 - moved Moose::Meta::Method::Overriden into
1040 - moved Moose::Meta::Role::Method into
1043 * Moose::Meta::Attribute
1044 - changed how we do type checks so that
1045 we reduce the overall cost, but still
1048 - moved accessor generation methods to
1049 Moose::Meta::Method::Accessor to
1050 conform to the API changes from
1053 * Moose::Meta::TypeConstraint
1054 - changed how constraints are compiled
1055 so that we do less recursion and more
1056 iteration. This makes the type check
1058 - moved Moose::Meta::TypeConstraint::Union
1061 * Moose::Meta::Method::Accessor
1062 - created this from methods formerly found in
1063 Moose::Meta::Attribute
1065 * Moose::Meta::Role::Method
1066 - moved this from Moose::Meta::Role
1068 * Moose::Meta::Method::Overriden
1069 - moved this from Moose::Meta::Class
1071 * Moose::Meta::TypeConstraint::Union
1072 - moved this from Moose::Meta::TypeConstraint
1074 0.14 Mon. Oct. 9, 2006
1076 * Moose::Meta::Attribute
1077 - fixed lazy attributes which were not getting
1078 checked with the type constraint (thanks ashley)
1079 - added tests for this
1080 - removed the over-enthusiastic DWIMery of the
1081 automatic ArrayRef and HashRef defaults, it
1082 broke predicates in an ugly way.
1083 - removed tests for this
1085 0.13 Sat. Sept. 30, 2006
1087 This version of Moose *must* have Class::MOP 0.35 in order
1088 to work correctly. A number of small internal tweaks have
1089 been made in order to be compatible with that release.
1092 - Removed the use of UNIVERSAL::require to be a better
1093 symbol table citizen and remove a dependency
1094 (thanks Adam Kennedy)
1096 **~~ removed experimental & undocumented feature ~~**
1097 - commented out the 'method' and 'self' keywords, see the
1098 comments for more info.
1101 - added a FAQ and WTF files to document frequently
1102 asked questions and common problems
1104 * Moose::Util::TypeConstraints
1105 - added GlobRef and FileHandle type constraint
1106 - added tests for this
1108 * Moose::Meta::Attribute
1109 - if your attribute 'isa' ArrayRef of HashRef, and you have
1110 not explicitly set a default, then make the default DWIM.
1111 This will also work for subtypes of ArrayRef and HashRef
1113 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1114 - new test added for this (thanks to ashley)
1117 - added basic support for runtime role composition
1118 but this is still *highly experimental*, so feedback
1119 is much appreciated :)
1120 - added tests for this
1122 * Moose::Meta::TypeConstraint
1123 - the type constraint now handles the coercion process
1124 through delegation, this is to support the coercion
1127 * Moose::Meta::TypeConstraint::Union
1128 - it is now possible for coercions to be performed
1130 - added tests for this (thanks to konobi)
1132 * Moose::Meta::TypeCoercion
1133 - properly capturing error when type constraint
1137 - Scalar::Util 1.18 is bad on Win32, so temporarily
1138 only require version 1.17 for Win32 and cygwin.
1139 (thanks Adam Kennedy)
1141 0.12 Sat. Sept. 1, 2006
1143 - Recipe5 (subtypes & coercion) has been written
1146 - fixed "bad meta" error message to be more descriptive
1147 - fixed &unimport to not remove the &inner and &super
1148 keywords because we need to localize them.
1149 - fixed number of spelling/grammer issues, thanks Theory :)
1151 **~~ experimental & undocumented feature ~~**
1152 - added the method and self keywords, they are basically
1153 just sugar, and they may not stay around.
1156 - added &dump method to easily Data::Dumper
1159 * Moose::Meta::TypeConstraint
1160 - added the &is_a_type_of method to check both the current
1161 and the subtype of a method (similar to &isa with classes)
1164 - this is now a subclass of Class::MOP::Module, and no longer
1165 creates the _role_meta ugliness of before.
1166 - fixed tests to reflect this change
1168 0.11 Wed. July 12, 2006
1170 - added an &unimport method to remove all the keywords
1171 that Moose will import, simply add 'no Moose' to the
1172 bottom of your class file.
1175 - fixed some test failures caused by a forgotten test
1178 0.10 Thurs. July 6, 2006
1180 - improved error message when loading modules so
1181 it is less confusing when you load a role.
1182 - added &calculate_all_roles method to
1183 Moose::Meta::Class and Moose::Meta::Role
1186 This module has been tested against Class::MOP 0.30
1187 but it does not yet utilize the optimizations
1188 it makes available. Stay tuned for that ;)
1190 0.09_03 Fri. June 23, 2006
1191 ++ DEVELOPER RELEASE ++
1193 - 'use strict' and 'use warnings' are no longer
1194 needed in Moose classes, Moose itself will
1195 turn them on for you.
1196 - added tests for this
1197 - moved code from exported subs to private methods
1198 in Moose::Meta::Class
1201 - as with Moose, strict and warnings are
1202 automatically turned on for you.
1203 - added tests for this
1206 - now handles an edge case for override errors
1207 - added tests for this
1208 - added some more edge case tests
1210 0.09_02 Tues. May 16, 2006
1211 ++ DEVELOPER RELEASE ++
1213 - added prototypes to the exported subs
1217 - added prototypes to the exported subs
1220 * Moose::Util::TypeConstraints
1221 - cleaned up prototypes for the subs
1224 0.09_01 Fri. May 12, 2006
1225 ++ DEVELOPER RELEASE ++
1226 - This release works in combination with
1227 Class::MOP 0.29_01, it is a developer
1228 release because it uses the a new
1229 instance sub-protocol and a fairly
1230 complete Role implementation. It has
1231 not yet been optimized, so it slower
1232 the the previous CPAN version. This
1233 release also lacks good updated docs,
1234 the official release will have updated docs.
1237 - refactored the keyword exports
1238 - 'with' now checks Role validaity and
1239 accepts more than one Role at a time
1240 - 'extends' makes metaclass adjustments as
1241 needed to ensure metaclass compatability
1244 - refactored the keyword exports
1245 - 'with' now checks Role validaity and
1246 accepts more than one Role at a time
1248 * Moose::Util::TypeConstraints
1249 - added the 'enum' keyword for simple
1250 string enumerations which can be used as
1252 - see example of usage in t/202_example.t
1255 - more careful checking of params to new()
1258 - much work done on the role composition
1259 - many new tests for conflict detection
1260 and composition edge cases
1261 - not enough documentation, I suggest
1262 looking at the tests
1264 * Moose::Meta::Instance
1265 - added new Instance metaclass to support
1266 the new Class::MOP instance protocol
1268 * Moose::Meta::Class
1269 - some small changes to support the new
1271 - some small additions to support Roles
1273 * Moose::Meta::Attribute
1274 - some improvements to the accessor generation code
1276 - some small changes to support the new
1278 - (still somewhat) experimental delegation support
1279 with the 'handles' option
1280 - added several tests for this
1281 - no docs for this yet
1283 0.05 Thurs. April 27, 2006
1285 - keywords are now exported with Sub::Exporter
1286 thanks to chansen for this commit
1287 - has keyword now takes a 'metaclass' option
1288 to support custom attribute meta-classes
1289 on a per-attribute basis
1290 - added tests for this
1291 - the 'has' keyword not accepts inherited slot
1292 specifications (has '+foo'). This is still an
1293 experimental feature and probably not finished
1294 see t/038_attribute_inherited_slot_specs.t for
1295 more details, or ask about it on #moose
1296 - added tests for this
1299 - keywords are now exported with Sub::Exporter
1301 * Moose::Utils::TypeConstraints
1302 - reorganized the type constraint hierarchy, thanks
1303 to nothingmuch and chansen for his help and advice
1305 - added some tests for this
1306 - keywords are now exported with Sub::Exporter
1307 thanks to chansen for this commit
1309 * Moose::Meta::Class
1310 - due to changes in Class::MOP, we had to change
1311 construct_instance (for the better)
1313 * Moose::Meta::Attribute
1314 - due to changes in Class::MOP, we had to add the
1315 initialize_instance_slot method (it's a good thing)
1317 * Moose::Meta::TypeConstraint
1318 - added type constraint unions
1319 - added tests for this
1320 - added the is_subtype_of predicate method
1321 - added tests for this
1323 0.04 Sun. April 16th, 2006
1325 - Roles can now consume other roles
1326 - added tests for this
1327 - Roles can specify required methods now with
1328 the requires() keyword
1329 - added tests for this
1332 - ripped out much of it's guts ,.. much cleaner now
1333 - added required methods and correct handling of
1334 them in apply() for both classes and roles
1335 - added tests for this
1336 - no longer adds a does() method to consuming classes
1337 it relys on the one in Moose::Object
1338 - added roles attribute and some methods to support
1339 roles consuming roles
1341 * Moose::Meta::Attribute
1342 - added support for triggers on attributes
1343 - added tests for this
1344 - added support for does option on an attribute
1345 - added tests for this
1347 * Moose::Meta::Class
1348 - added support for attribute triggers in the
1350 - added tests for this
1353 - Moose no longer creates a subtype for your class
1354 if a subtype of the same name already exists, this
1355 should DWIM in 99.9999% of all cases
1357 * Moose::Util::TypeConstraints
1358 - fixed bug where incorrect subtype conflicts were
1360 - added test for this
1363 - this class can now be extended with 'use base' if
1364 you need it, it properly loads the metaclass class now
1365 - added test for this
1367 0.03_02 Wed. April 12, 2006
1369 - you must now explictly use Moose::Util::TypeConstraints
1370 it no longer gets exported for you automatically
1373 - new() now accepts hash-refs as well as key/value lists
1374 - added does() method to check for Roles
1375 - added tests for this
1377 * Moose::Meta::Class
1378 - added roles attribute along with the add_role() and
1380 - added tests for this
1383 - now adds a does() method to consuming classes
1384 which tests the class's hierarchy for roles
1385 - added tests for this
1387 0.03_01 Mon. April 10, 2006
1389 - added new Role recipe (no content yet, only code)
1392 - added 'with' keyword for Role support
1393 - added test and docs for this
1394 - fixed subtype quoting bug
1395 - added test for this
1399 - added test and docs
1401 * Moose::Util::TypeConstraints
1402 - added the message keyword to add custom
1403 error messages to type constraints
1406 - the meta role to support Moose::Role
1407 - added tests and docs
1409 * Moose::Meta::Class
1410 - moved a number of things from Moose.pm
1411 to here, they should have been here
1414 * Moose::Meta::Attribute
1415 - moved the attribute option macros here
1416 instead of putting them in Moose.pm
1418 * Moose::Meta::TypeConstraint
1419 - added the message attributes and the
1421 - added tests and docs for this
1423 0.03 Thurs. March 30, 2006
1425 - added the Moose::Cookbook with 5 recipes,
1426 describing all the stuff Moose can do.
1429 - fixed an issue with &extends super class loading
1430 it now captures errors and deals with inline
1431 packages correctly (bug found by mst, solution
1433 - added super/override & inner/augment features
1434 - added tests and docs for these
1437 - BUILDALL now takes a reference of the %params
1438 that are passed to &new, and passes that to
1441 * Moose::Util::TypeConstraints
1442 - Type constraints now survive runtime reloading
1443 - added test for this
1445 * Moose::Meta::Class
1446 - fixed the way attribute defaults are handled
1447 during instance construction (bug found by chansen)
1449 * Moose::Meta::Attribute
1450 - read-only attributes now actually enforce their
1451 read-only-ness (this corrected in Class::MOP as
1454 0.02 Tues. March 21, 2006
1456 - many more tests, fixing some bugs and
1458 - &extends now loads the base module with
1460 - added UNIVERSAL::require to the
1463 - each new Moose class will also create
1464 and register a subtype of Object which
1465 correspond to the new Moose class.
1466 - the 'isa' option in &has now only
1467 accepts strings, and will DWIM in
1470 * Moose::Util::TypeConstraints
1471 - added type coercion features
1472 - added tests for this
1473 - added support for this in attributes
1474 and instance construction
1476 - type construction no longer creates a
1477 function, it registers the type instead.
1478 - added several functions to get the
1482 - BUILDALL and DEMOLISHALL were broken
1483 because of a mis-named hash key, Whoops :)
1485 * Moose::Meta::Attribute
1486 - adding support for coercion in the
1487 autogenerated accessors
1489 * Moose::Meta::Class
1490 - adding support for coercion in the
1491 instance construction
1493 * Moose::Meta::TypeConstraint
1494 * Moose::Meta::TypeCoercion
1495 - type constraints and coercions are now
1496 full fledges meta-objects
1498 0.01 Wed. March 15, 2006
1499 - Moooooooooooooooooose!!!