1 Revision history for Perl extension Moose
6 0.51 Thurs. Jun 26, 2008
8 - add unimport so "no Moose::Role" actually does
11 * Moose::Meta::Role::Application::ToRole
12 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
13 order to provide its own implementation, that method still got
14 added to the list of required methods for consumers of
15 RoleB. Now an aliased method is only added to the list of
16 required methods if the role doing the aliasing does not
17 provide its own implementation. See Recipe 11 for an example
18 of all this. (Dave Rolsky)
19 - added tests for this
21 * Moose::Meta::Method::Constructor
22 - when a single argument that wasn't a hashref was provided to
23 an immutabilized constructor, the error message was very
24 unhelpful, as opposed to the non-immutable error. Reported by
26 - added test for this (Dave Rolsky)
28 * Moose::Meta::Attribute
29 - added support for meta_attr->does("ShortAlias") (sartak)
30 - added tests for this (sartak)
31 - moved the bulk of the `handles` handling to the new
32 install_delegation method (Stevan)
35 - Added BUILDARGS, a new step in new()
37 * Moose::Meta::Role::Application::RoleSummation
38 - fix typos no one ever sees (sartak)
40 * Moose::Util::TypeConstraints
41 * Moose::Meta::TypeConstraint
42 * Moose::Meta::TypeCoercion
43 - Attempt to work around the ??{ } vs. threads issue
44 - Some null_constraint optimizations
46 0.50 Thurs. Jun 11, 2008
47 - Fixed a version number issue by bumping all modules
50 0.49 Thurs. Jun 11, 2008
51 !! This version now approx. 20-25% !!
52 !! faster with new Class::MOP 0.59 !!
54 * Moose::Meta::Attribute
55 - fixed how the is => (ro|rw) works with
56 custom defined reader, writer and accessor
58 - added docs for this (TODO).
59 - added tests for this (Thanks to Penfold)
60 - added the custom attribute alias for regular
61 Moose attributes which is "Moose"
62 - fix builder and default both being used
67 Moose::Meta::Attribute
69 Moose::Meta::Role::Composite
70 Moose::Util::TypeConstraints
71 - switched usage of reftype to ref because
75 - changing add_package_symbol to use the new
79 - fixed how DEMOLISHALL is called so that it
80 can be overrided in subclasses (thanks to Sartak)
81 - added test for this (thanks to Sartak)
83 * Moose::Util::TypeConstraints
84 - move the ClassName type check code to
85 Class::MOP::is_class_loaded (thanks to Sartak)
87 * Moose::Cookbook::Recipe11
88 - add tests for this (thanks to tokuhirom)
90 0.48 Thurs. May 29, 2008
91 (early morning release engineering)--
93 - fixing the version in Moose::Meta::Method::Destructor
94 which was causing the indexer to choke
96 0.47 Thurs. May 29, 2008
97 (late night release engineering)--
99 - fixing the version is META.yml, no functional
100 changes in this release
102 0.46 Wed. May 28, 2008
103 !! This version now approx. 20-25% !!
104 !! faster with new Class::MOP 0.57 !!
107 - some optimizations of the &initialize method
108 since it is called so often by &meta
112 - now use the get_all_package_symbols from the
113 updated Class::MOP, test suite is now 10 seconds
116 * Moose::Meta::Method::Destructor
117 - is_needed can now also be called as a class
118 method for immutablization to check if the
119 destructor object even needs to be created
122 * Moose::Meta::Method::Destructor
123 Moose::Meta::Method::Constructor
124 - added more descriptive error message to help
125 keep people from wasting time tracking an error
126 that is easily fixed by upgrading.
128 0.45 Saturday, May 24, 2008
130 - Because of work in Class::MOP 0.56, all
131 XS based functionality is now optional
132 and a Pure Perl version is supplied
133 - the CLASS_MOP_NO_XS environment variable
134 can now be used to force non-XS versions
136 - several of the packages have been tweaked
137 to take care of this, mostly we added
138 support for the package_name and name
139 variables in all the Method metaclasses
140 - before/around/after method modifiers now
141 support regexp matching of names
142 (thanks to Takatoshi Kitano)
143 - tests added for this
144 - NOTE: this only works for classes, it
145 is currently not supported in roles,
146 but, ... patches welcome
147 - All usage of Carp::confess have been replaced
148 by Carp::croak in the "keyword" functions since
149 the stack trace is usually not helpful
152 - All usage of Carp::confess have been replaced
153 by Carp::croak in the "keyword" functions since
154 the stack trace is usually not helpful
155 - The 'has' keyword for roles now accepts the
156 same array ref form that Moose.pm does
157 (has [qw/foo bar/] => (is => 'rw', ...))
158 - added test for this
160 * Moose::Meta::Attribute
161 - trigger on a ro-attribute is no longer an
162 error, as it's useful to trigger off of the
166 - added same 'add_package_symbol' fix as in
170 - does_role now handles non-Moose classes
172 - added tests for this
173 - added the 'add_method_modifier' function
174 (thanks to Takatoshi Kitano)
176 * Moose::Util::TypeConstraints
177 - subtypes of parameterizable types now are
178 themselves parameterizable types
180 * Moose::Meta::Method::Constructor
181 - fixed bug where trigger was not being
182 called by the inlined immutable
184 - added test for this (thanks to Caelum)
186 * Moose::Meta::Role::Application::ToInstance
187 - now uses the metaclass of the instance
188 (if possible) to create the anon-class
189 (thanks Jonathan Rockway)
191 * Moose::Cookbook::Recipe22
192 - added the meta-attribute trait recipe
196 - fixed hash-ordering test bug that was
197 causing occasional cpantester failures
198 - renamed the t/000_recipe/*.t tests to be
199 more descriptive (thanks to Sartak)
201 0.44 Sat. May 10, 2008
203 - made make_immutable warning cluck to
204 show where the error is (thanks mst)
207 - BUILDALL and DEMOLISHALL now call
208 ->body when looping through the
209 methods, to avoid the overloaded
211 - fixed issue where DEMOLISHALL was
212 eating the $@ values, and so not
213 working correctly, it still kind of
214 eats them, but so does vanilla perl
215 - added tests for this
217 * Moose::Cookbook::Recipe7
218 - added new recipe for immutable
219 functionality (thanks Dave Rolsky)
221 * Moose::Cookbook::Recipe9
222 - added new recipe for builder and
223 lazy_build (thanks Dave Rolsky)
225 * Moose::Cookbook::Recipe11
226 - added new recipe for method aliasing
227 and exclusion with Roles (thanks Dave Rolsky)
230 - fixed Win32 test failure (thanks spicyjack)
232 ~ removed Build.PL and Module::Build compat
233 since Module::Install has done that.
235 0.43 Wed. April, 30, 2008
237 drink more coffee before
238 doing release engineering
240 - whoops, forgot to do the smolder tests,
241 and we broke some of the custom meta-attr
242 modules. This fixes that.
244 0.42 Mon. April 28, 2008
245 - some bad tests slipped by, nothing else
246 changed in this release (cpantesters++)
248 - upped the Class::MOP dependency to 0.55
249 since we have tests which need the C3
252 0.41 Mon. April 28, 2008
253 ~~ numerous documentation updates ~~
255 - Changed all usage of die to Carp::croak for better
256 error reporting (initial patch by Tod Hagan)
259 - the make_immutable keyword is now deprecated, don't
260 use it in any new code and please fix your old code
261 as well. There will be 2 releases, and then it will
267 - refactored the way inner and super work to avoid
268 any method/@ISA cache penalty (nothingmuch)
271 - fixing &new_object to make sure trigger gets the
272 coerced value (spotted by Charles Alderman on the
274 - added test for this
276 * Moose::Meta::Method::Constructor
277 - immutable classes which had non-lazy attributes were calling
278 the default generating sub twice in the constructor. (bug
279 found by Jesse Luehrs, fixed by Dave Rolsky)
280 - added tests for this (Dave Rolsky)
281 - fix typo in initialize_body method (nothingmuch)
283 * Moose::Meta::Method::Destructor
284 - fix typo in initialize_body method (nothingmuch)
286 * Moose::Meta::Method::Overriden
287 Moose::Meta::Method::Augmented
288 - moved the logic for these into their own
289 classes (nothingmuch)
291 * Moose::Meta::Attribute
292 - inherited attributes may now be extended without
293 restriction on the type ('isa', 'does') (Sartak)
294 - added tests for this (Sartak)
295 - when an attribute property is malformed (such as lazy without
296 a default), give the name of the attribute in the error
298 - added the &applied_traits and &has_applied_traits methods
299 to allow introspection of traits
300 - added tests for this
301 - moved 'trait' and 'metaclass' argument handling to here from
303 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
304 '+foo' syntax) (nothingmuch)
305 - added tests for this (t0m)
308 - localize $@ inside DEMOLISHALL to avoid it
309 eating $@ (found by Ernesto)
310 - added test for this (thanks to Ernesto)
312 * Moose::Util::TypeConstraints
313 - &find_type_constraint now DWIMs when given an
314 type constraint object or name (nothingmuch)
315 - &find_or_create_type_constraint superseded with a number of more
317 - find_or_create_{isa,does}_type_constraint
318 - find_or_parse_type_constraint
320 * Moose::Meta::TypeConstraint
321 Moose::Meta::TypeConstraint::Class
322 Moose::Meta::TypeConstraint::Role
323 Moose::Meta::TypeConstraint::Enum
324 Moose::Meta::TypeConstraint::Union
325 Moose::Meta::TypeConstraint::Parameterized
326 - added the &equals method for comparing two type
327 constraints (nothingmuch)
328 - added tests for this (nothingmuch)
330 * Moose::Meta::TypeConstraint
331 - add the &parents method, which is just an alias to &parent.
332 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
334 * Moose::Meta::TypeConstraint::Class
335 - added the class attribute for introspection purposes
337 - added tests for this
339 * Moose::Meta::TypeConstraint::Enum
340 Moose::Meta::TypeConstraint::Role
341 - broke these out into their own classes (nothingmuch)
343 * Moose::Cookbook::Recipe*
344 - fixed references to test file locations in the POD
345 and updated up some text for new Moose features
349 - Added &resolve_metaclass_alias, a helper function for finding an actual
350 class for a short name (e.g. in the traits list)
352 0.40 Fri. March 14, 2008
353 - I hate Pod::Coverage
355 0.39 Fri. March 14, 2008
357 - documenting the use of '+name' with attributes
358 that come from recently composed roles. It makes
359 sense, people are using it, and so why not just
360 officially support it.
361 - fixing the 'extends' keyword so that it will not
362 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
365 - added the perl -Moose=+Class::Name feature to allow
366 monkeypatching of classes in one liners
369 - fixing the 'apply_all_roles' keyword so that it will not
370 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
373 - added ->create method which now supports roles (thanks to jrockway)
374 - added tests for this
375 - added ->create_anon_class which now supports roles and caching of
376 the results (thanks to jrockway)
377 - added tests for this
378 - made ->does_role a little more forgiving when it is
379 checking a Class::MOP era metaclasses.
381 * Moose::Meta::Role::Application::ToInstance
382 - it is now possible to pass extra params to be used when
383 a role is applied to an the instance (rebless_params)
384 - added tests for this
386 * Moose::Util::TypeConstraints
387 - class_type now accepts an optional second argument for a
388 custom message. POD anotated accordingly (groditi)
389 - added tests for this
390 - it is now possible to make anon-enums by passing 'enum' an
391 ARRAY ref instead of the $name => @values. Everything else
393 - added tests for this
396 - making test for using '+name' on attributes consumed
397 from a role, it works and makes sense too.
399 * Moose::Meta::Attribute
400 - fix handles so that it doesn't return nothing
401 when the method cannot be found, not sure why
402 it ever did this originally, this means we now
403 have slightly better support for AUTOLOADed
405 - added more delegation tests
406 - adding ->does method to this so as to better
407 support traits and their introspection.
408 - added tests for this
411 - localizing the Data::Dumper configurations so
412 that it does not pollute others (RT #33509)
413 - made ->does a little more forgiving when it is
414 passed Class::MOP era metaclasses.
416 0.38 Fri. Feb. 15, 2008
417 * Moose::Meta::Attribute
418 - fixed initializer to correctly do
419 type checking and coercion in the
421 - added tests for this
424 - fixed some finicky tests (thanks to konobi)
426 0.37 Thurs. Feb. 14, 2008
428 - fixed some details in Moose::init_meta
429 and its superclass handling (thanks thepler)
430 - added tests for this (thanks thepler)
431 - 'has' now dies if you don't pass in name
433 - added the 'make_immutable' keyword as a shortcut
437 Moose::Meta::Method::Constructor
438 Moose::Meta::Attribute
439 - making (init_arg => undef) work here too
440 (thanks to nothingmuch)
442 * Moose::Meta::Attribute
443 Moose::Meta::Method::Constructor
444 Moose::Meta::Method::Accessor
445 - make lazy attributes respect attr initializers (rjbs)
446 - added tests for this
448 * Moose::Util::TypeConstraints
449 Moose::Util::TypeConstraints::OptimizedConstraints
450 Moose::Meta::TypeConstraints
451 Moose::Meta::Attribute
452 Moose::Meta::Method::Constructor
453 Moose::Meta::Method::Accessor
454 - making type errors use the
455 assigned message (thanks to Sartak)
456 - added tests for this
458 * Moose::Meta::Method::Destructor
459 - making sure DESTROY gets inlined properly
460 with successive DEMOLISH calls (thanks to manito)
462 * Moose::Meta::Attribute
463 Moose::Meta::Method::Accessor
464 - fixed handling of undef with type constraints
466 - added tests for this
469 - added &get_all_init_args and &get_all_attribute_values
470 (thanks to Sartak and nothingmuch)
472 0.36 Sat. Jan. 26, 2008
474 Moose::Meta::Attribute
475 - role type tests now support when roles are
476 applied to non-Moose classes (found by ash)
477 - added tests for this (thanks to ash)
478 - couple extra tests to boost code coverage
480 * Moose::Meta::Method::Constructor
481 - improved fix for handling Class::MOP attributes
482 - added test for this
485 - handled the add_attribute($attribute_meta_object)
487 - added test for this
489 0.35 Tues. Jan. 22, 2008
490 * Moose::Meta::Method::Constructor
491 - fix to make sure even Class::MOP attributes
492 are handled correctly (Thanks to Dave Rolsky)
493 - added test for this (also Dave Rolsky)
496 - improved error message on _apply_all_roles,
497 you should now use Moose::Util::apply_all_roles
498 and you shouldnt have been using a _ prefixed
499 method in the first place ;)
501 0.34 Mon. Jan. 21, 2008
502 ~~~ more misc. doc. fixes ~~~
503 ~~ updated copyright dates ~~
505 Moose is now a postmodern object system :)
506 - (see the POD for details)
508 * <<Role System Refactoring>>
509 - this release contains a major reworking and
510 cleanup of the role system
511 - 100% backwards compat.
512 - Role application now restructured into seperate
513 classes based on type of applicants
514 - Role summation (combining of more than one role)
515 is much cleaner and anon-classes are no longer
517 - new Composite role metaclass
518 - runtime application of roles to instances
519 is now more efficient and re-uses generated
520 classes when applicable
522 * <<New Role composition features>>
523 - methods can now be excluded from a given role
525 - methods can now be aliased to another name (and
526 still retain the original as well)
528 * Moose::Util::TypeConstraints::OptimizedConstraints
529 - added this module (see above)
532 - fixed the &_process_attribute method to be called
533 by &add_attribute, so that the API is now correct
535 * Moose::Meta::Method::Accessor
536 - fixed bug when passing a list of values to
537 an accessor would get (incorrectly) ignored.
538 Thanks to Sartak for finding this ;)
539 - added tests for this (Sartak again)
541 * Moose::Meta::Method::Accessor
542 Moose::Meta::Method::Constructor
543 Moose::Meta::Attribute
544 Moose::Meta::TypeConstraint
545 Moose::Meta::TypeCoercion
546 - lots of cleanup of such things as:
548 - type constraint handling
549 - error handling/messages
550 (thanks to nothingmuch)
552 * Moose::Meta::TypeConstraint::Parameterizable
553 - added this module to support the refactor
554 in Moose::Meta::TypeConstraint::Parameterized
556 * Moose::Meta::TypeConstraint::Parameterized
557 - refactored how these types are handled so they
558 are more generic and not confined to ArrayRef
562 - shortened some file names for better VMS support (RT #32381)
564 0.33 Fri. Dec. 14, 2007
565 !! Moose now loads 2 x faster !!
566 !! with new Class::MOP 0.49 !!
568 ++ new oose.pm module to make command line
569 Moose-ness easier (see POD docs for more)
573 - several tweaks to take advantage of the
574 new method map caching in Class::MOP
576 * Moose::Meta::TypeConstraint::Parameterized
577 - allow subtypes of ArrayRef and HashRef to
578 be used as a container (sartak)
579 - added tests for this
580 - basic support for coercion to ArrayRef and
581 HashRef for containers (sartak)
582 - added tests for this
584 * Moose::Meta::TypeCoercion
585 - coercions will now create subtypes as needed
586 so you can now add coercions to parameterized
587 types without having to explictly define them
588 - added tests for this
590 * Moose::Meta::Method::Accessor
591 - allow subclasses to decide whether we need
592 to copy the value into a new variable (sartak)
594 0.32 Tues. Dec. 4, 2007
595 * Moose::Util::TypeConstraints
596 - fixing how subtype aliases of unions work
597 they should inherit the parent's coercion
598 - added tests for this
599 - you can now define multiple coercions on
600 a single type at different times instead of
601 having to do it all in one place
602 - added tests for this
604 * Moose::Meta::TypeConstraint
605 - there is now a default constraint of sub { 1 }
606 instead of Moose::Util::TypeConstraints setting
609 * Moose::Meta::TypeCoercion
610 * Moose::Meta::TypeCoercion::Union
611 - added the &has_coercion_for_type and
612 &add_type_coercions methods to support the
613 new features above (although you cannot add
614 more type coercions for Union types)
616 0.31 Mon. Nov. 26, 2007
617 * Moose::Meta::Attribute
618 - made the +attr syntax handle extending types with
619 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
620 now works if the original foo is an ArrayRef.
621 - added tests for this.
622 - delegation now works even if the attribute does not
623 have a reader method using the get_read_method_ref
624 method from Class::MOP::Attribute.
625 - added tests for this
626 - added docs for this
628 * Moose::Util::TypeConstraints
629 - passing no "additional attribute info" to
630 &find_or_create_type_constraint will no longer
631 attempt to create an __ANON__ type for you,
632 instead it will just return undef.
633 - added docs for this
635 0.30 Fri. Nov. 23, 2007
636 * Moose::Meta::Method::Constructor
637 -builder related bug in inlined constructor. (groditi)
639 * Moose::Meta::Method::Accessor
640 - genereate unnecessary calls to predicates and refactor
641 code generation for runtime speed (groditi)
643 * Moose::Util::TypeConstraints
644 - fix ClassName constraint to introspect symbol table (mst)
645 - added more tests for this (mst)
646 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
648 - added tests for this
651 - adding the link to Recipie 11 (written by Sartak)
652 - adding test for SYNOPSIS code
655 - New tests for builder bug. Upon instantiation, if an
656 attribute had a builder, no value and was not lazy the
657 builder default was not getting run, oops. (groditi)
659 0.29 Tues. Nov. 13, 2007
660 * Moose::Meta::Attribute
661 - Fix error message on missing builder method (groditi)
663 * Moose::Meta::Method::Accessor
664 - Fix error message on missing builder method (groditi)
667 - Add test to check for the correct error message when
668 builder method is missing (groditi)
670 0.28 Tues. Nov. 13, 2007
671 - 0.27 packaged incorrectly (groditi)
673 0.27 Tues. Nov. 13, 2007
674 * Moose::Meta::Attribute
675 - Added support for the new builder option (groditi)
676 - Added support for lazy_build option (groditi)
677 - Changed slot initialization for predicate changes (groditi)
679 * Moose::Meta::Method::Accessor
680 - Added support for lazy_build option (groditi)
681 - Fix inline methods to work with corrected predicate
684 * Moose::Meta::Method::Constructor
685 - Added support for lazy_build option (groditi)
688 - tests for builder and lazy_build (groditi)
690 * fixing some misc. bits in the docs that
691 got mentioned on CPAN Forum & perlmonks
694 - fixed how required methods are handled
695 when they encounter overriden or modified
696 methods from a class (thanks to confound).
697 - added tests for this
699 * Moose::Util::TypeConstraint
700 - fixed the type notation parser so that
701 the | always creates a union and so is
702 no longer a valid type char (thanks to
703 konobi, mugwump and #moose for working
705 - added more tests for this
707 0.26 Thurs. Sept. 27, 2007
710 * Parameterized Types
711 We now support parameterized collection types, such as:
712 ArrayRef[Int] # array or integers
713 HashRef[Object] # a hash with object values
714 They can also be nested:
715 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
716 And work with the type unions as well:
717 ArrayRef[Int | Str] # array of integers of strings
719 * Better Framework Extendability
720 Moose.pm is now "extendable" such that it is now much
721 easier to extend the framework and add your own keywords
722 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
723 section of the Moose.pm docs.
726 In an effort to begin documenting some of the various
727 details of Moose as well as some common idioms, we have
728 created Moose::Cookbook::Snacks as a place to find
729 small (easily digestable) nuggets of Moose code.
732 ~ Several doc updates/cleanup thanks to castaway ~
734 - converted build system to use Module::Install instead of
735 Module::Build (thanks to jrockway)
738 - added all the meta classes to the immutable list and
739 set it to inline the accessors
740 - fix import to allow Sub::Exporter like { into => }
741 and { into_level => } (perigrin)
742 - exposed and documented init_meta() to allow better
743 embedding and extending of Moose (perigrin)
746 - complete re-organization of the test suite
747 - added some new tests as well
748 - finally re-enabled the Moose::POOP test since
749 the new version of DBM::Deep now works again
753 - fixed very odd and very nasty recursion bug with
755 - added tests for this (eilara)
757 * Moose::Meta::Attribute
758 Moose::Meta::Method::Constructor
759 Moose::Meta::Method::Accessor
760 - fixed issue with overload::Overloaded getting called
761 on non-blessed items. (RT #29269)
762 - added tests for this
764 * Moose::Meta::Method::Accessor
765 - fixed issue with generated accessor code making
766 assumptions about hash based classes (thanks to dexter)
768 * Moose::Coookbook::Snacks
769 - these are bits of documentation, not quite as big as
770 Recipes but which have no clear place in the module docs.
771 So they are Snacks! (horray for castaway++)
773 * Moose::Cookbook::Recipe4
774 - updated it to use the new ArrayRef[MyType] construct
775 - updated the accompanying test as well
777 +++ Major Refactor of the Type Constraint system +++
778 +++ with new features added as well +++
780 * Moose::Util::TypeConstraint
781 - no longer uses package variable to keep track of
782 the type constraints, now uses the an instance of
783 Moose::Meta::TypeConstraint::Registry to do it
784 - added more sophisticated type notation parsing
786 - added tests for this
788 * Moose::Meta::TypeConstraint
789 - some minor adjustments to make subclassing easier
790 - added the package_defined_in attribute so that we
791 can track where the type constraints are created
793 * Moose::Meta::TypeConstraint::Union
794 - this is now been refactored to be a subclass of
795 Moose::Meta::TypeConstraint
797 * Moose::Meta::TypeCoercion::Union
798 - this has been added to service the newly refactored
799 Moose::Meta::TypeConstraint::Union and is itself
800 a subclass of Moose::Meta::TypeCoercion
802 * Moose::Meta::TypeConstraint::Parameterized
803 - added this module (taken from MooseX::AttributeHelpers)
804 to help construct nested collection types
805 - added tests for this
807 * Moose::Meta::TypeConstraint::Registry
808 - added this class to keep track of type constraints
810 0.25 Mon. Aug. 13, 2007
812 - Documentation update to reference Moose::Util::TypeConstraints
813 under 'isa' in 'has' for how to define a new type
816 * Moose::Meta::Attribute
817 - required attributes now will no longer accept undef
818 from the constructor, even if there is a default and lazy
819 - added tests for this
820 - default subroutines must return a value which passes the
822 - added tests for this
824 * Moose::Meta::Attribute
825 * Moose::Meta::Method::Constructor
826 * Moose::Meta::Method::Accessor
827 - type-constraint tests now handle overloaded objects correctly
829 - added tests for this (thanks to EvanCarroll)
831 * Moose::Meta::TypeConstraint::Union
832 - added (has_)hand_optimized_constraint to this class so that
833 it behaves as the regular Moose::Meta::TypeConstraint does.
836 - large refactoring of this code
837 - added several more tests
838 - tests for subtle conflict resolition issues
839 added, but not currently running
842 * Moose::Cookbook::Recipe7
843 - added new recipe for augment/inner functionality
845 - added test for this
848 - a formal definition of roles (still in progress)
851 - utilities for easier working with Moose classes
852 - added tests for these
855 - This contains Moose specific test functions
856 - added tests for these
858 0.24 Tues. July 3, 2007
859 ~ Some doc updates/cleanup ~
861 * Moose::Meta::Attribute
862 - added support for roles to be given as parameters
863 to the 'handles' option.
864 - added tests and docs for this
865 - the has '+foo' attribute form now accepts changes to
866 the lazy option, and the addition of a handles option
867 (but not changing the handles option)
868 - added tests and docs for this
871 - required methods are now fetched using find_method_by_name
872 so that required methods can come from superclasses
873 - adjusted tests for this
875 0.23 Mon. June 18, 2007
876 * Moose::Meta::Method::Constructor
877 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
879 - Modify make_immutable to work with the new Class::MOP immutable
880 mechanism + POD + very basic test (groditi)
881 * Moose::Meta::Attribute
882 - Fix handles to use goto() so that caller() comes out properly on
883 the other side (perigrin)
885 0.22 Thurs. May 31, 2007
886 * Moose::Util::TypeConstraints
887 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
888 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
889 prototypes for functions
890 - added the ClassName type constraint, this checks for strings
891 which will respond true to ->isa(UNIVERSAL).
892 - added tests and docs for this
893 - subtyping just in name now works correctly by making the
894 default for where be { 1 }
895 - added test for this
897 * Moose::Meta::Method::Accessor
898 - coerce and lazy now work together correctly, thanks to
899 merlyn for finding this bug
900 - tests added for this
901 - fix reader presedence bug in Moose::Meta::Attribute + tests
904 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
905 a HASH-ref and missed. This produces better error messages then
906 having it die cause undef is not a HASH.
907 - added tests for this
909 0.21 Thursday, May 2nd, 2007
911 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
912 - modified unimport to remove super and inner along with the rest
913 - altered unimport tests to handle this
916 - altered super export to populate SUPER_SLOT
919 - altered augment and override modifier application to use *_SLOT
920 - modified tests for these to unimport one test class each to test
923 - fixed issue where custom attribute metaclasses
924 where not handled correctly in roles
925 - added tests for this
928 - fixed issue where extending metaclasses with
929 roles would blow up. Thanks to Aankhen`` for
930 finding this insidious error, and it's solution.
932 ~~ lots of spelling and grammer fixes in the docs,
933 many many thanks to rlb3 and Aankhen for these :)
935 0.20 Friday, April 6th, 2007
936 >> I messed up the SKIP logic in one test
937 so this release is just to fix that.
940 - 'has' now also accepts an ARRAY ref
941 to create multiple attrs (see docs)
942 (thanks to konobi for this)
943 - added tests and docs
945 0.19 Thurs. April 5th, 2007
946 ~~ More documentation updates ~~
948 * Moose::Util::TypeConstraints
949 - 'type' now supports messages as well
950 thanks to phaylon for finding this
951 - added tests for this
952 - added &list_all_type_constraints and
953 &list_all_builtin_type_constraints
954 functions to facilitate introspection.
956 * Moose::Meta::Attribute
957 - fixed regexp 'handles' declarations
958 to build the list of delegated methods
959 correctly (and not override important
960 things like &new) thanks to ashleyb
962 - added tests and docs for this
963 - added the 'documentation' attributes
964 so that you can actually document your
965 attributes and inspect them through the
967 - added tests and docs for this
970 - when loading custom attribute metaclasses
971 it will first look in for the class in the
972 Moose::Meta::Attribute::Custom::$name, and
973 then default to just loading $name.
974 - added tests and docs for this
976 * Moose::Meta::TypeConstraint
977 - type constraints now stringify to their names.
978 - added test for this
981 - added tests to assure we work with Module::Refresh
982 - added stricter test skip logic in the Moose POOP
983 test, ask Rob Kinyon why.
984 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
986 0.18 Sat. March 10, 2007
987 ~~ Many, many documentation updates ~~
990 - We now use Class::MOP::load_class to
992 - added tests to show types and subtypes
993 working with Declare::Constraints::Simple
994 and Test::Deep as constraint engines.
997 !! You must have Class::MOP 0.37_001 !!
998 !! for this developer release to work !!
1000 This release was primarily adding the immutable
1001 feature to Moose. An immutable class is one which
1002 you promise not to alter. When you set the class
1003 as immutable it will perform various bits of
1004 memoization and inline certain part of the code
1005 (constructors, destructors and accessors). This
1006 minimizes (and in some cases totally eliminates)
1007 one of Moose's biggest performance hits. This
1008 feature is not on by default, and is 100% optional.
1009 It has several configurable bits as well, so you
1010 can pick and choose to your specific needs.
1012 The changes involved in this were fairly wide and
1013 highly specific, but 100% backwards compatible, so
1014 I am not going to enumerate them here. If you are
1015 truely interested in what was changed, please do
1018 0.17 Tues. Nov. 14, 2006
1019 * Moose::Meta::Method::Accessor
1020 - bugfix for read-only accessors which
1021 are have a type constraint and lazy.
1022 Thanks to chansen for finding it.
1024 0.16 Tues. Nov. 14, 2006
1026 There are some speed improvements in this release,
1027 but they are only the begining, so stay tuned.
1030 - BUILDALL and DEMOLISHALL no longer get
1031 called unless they actually need to be.
1032 This gave us a signifigant speed boost
1033 for the cases when there is no BUILD or
1034 DEMOLISH method present.
1036 * Moose::Util::TypeConstraints
1037 * Moose::Meta::TypeConstraint
1038 - added an 'optimize_as' option to the
1039 type constraint, which allows for a
1040 hand optimized version of the type
1041 constraint to be used when possible.
1042 - Any internally created type constraints
1043 now provide an optimized version as well.
1045 0.15 Sun. Nov. 5, 2006
1047 This version of Moose *must* have Class::MOP 0.36 in order
1048 to work correctly. A number of small internal tweaks have
1049 been made in order to be compatible with that release.
1051 * Moose::Util::TypeConstraints
1052 - added &unimport so that you can clean out
1053 your class namespace of these exported
1056 * Moose::Meta::Class
1057 - fixed minor issue which occasionally
1058 comes up during global destruction
1060 - moved Moose::Meta::Method::Overriden into
1064 - moved Moose::Meta::Role::Method into
1067 * Moose::Meta::Attribute
1068 - changed how we do type checks so that
1069 we reduce the overall cost, but still
1072 - moved accessor generation methods to
1073 Moose::Meta::Method::Accessor to
1074 conform to the API changes from
1077 * Moose::Meta::TypeConstraint
1078 - changed how constraints are compiled
1079 so that we do less recursion and more
1080 iteration. This makes the type check
1082 - moved Moose::Meta::TypeConstraint::Union
1085 * Moose::Meta::Method::Accessor
1086 - created this from methods formerly found in
1087 Moose::Meta::Attribute
1089 * Moose::Meta::Role::Method
1090 - moved this from Moose::Meta::Role
1092 * Moose::Meta::Method::Overriden
1093 - moved this from Moose::Meta::Class
1095 * Moose::Meta::TypeConstraint::Union
1096 - moved this from Moose::Meta::TypeConstraint
1098 0.14 Mon. Oct. 9, 2006
1100 * Moose::Meta::Attribute
1101 - fixed lazy attributes which were not getting
1102 checked with the type constraint (thanks ashley)
1103 - added tests for this
1104 - removed the over-enthusiastic DWIMery of the
1105 automatic ArrayRef and HashRef defaults, it
1106 broke predicates in an ugly way.
1107 - removed tests for this
1109 0.13 Sat. Sept. 30, 2006
1111 This version of Moose *must* have Class::MOP 0.35 in order
1112 to work correctly. A number of small internal tweaks have
1113 been made in order to be compatible with that release.
1116 - Removed the use of UNIVERSAL::require to be a better
1117 symbol table citizen and remove a dependency
1118 (thanks Adam Kennedy)
1120 **~~ removed experimental & undocumented feature ~~**
1121 - commented out the 'method' and 'self' keywords, see the
1122 comments for more info.
1125 - added a FAQ and WTF files to document frequently
1126 asked questions and common problems
1128 * Moose::Util::TypeConstraints
1129 - added GlobRef and FileHandle type constraint
1130 - added tests for this
1132 * Moose::Meta::Attribute
1133 - if your attribute 'isa' ArrayRef of HashRef, and you have
1134 not explicitly set a default, then make the default DWIM.
1135 This will also work for subtypes of ArrayRef and HashRef
1137 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1138 - new test added for this (thanks to ashley)
1141 - added basic support for runtime role composition
1142 but this is still *highly experimental*, so feedback
1143 is much appreciated :)
1144 - added tests for this
1146 * Moose::Meta::TypeConstraint
1147 - the type constraint now handles the coercion process
1148 through delegation, this is to support the coercion
1151 * Moose::Meta::TypeConstraint::Union
1152 - it is now possible for coercions to be performed
1154 - added tests for this (thanks to konobi)
1156 * Moose::Meta::TypeCoercion
1157 - properly capturing error when type constraint
1161 - Scalar::Util 1.18 is bad on Win32, so temporarily
1162 only require version 1.17 for Win32 and cygwin.
1163 (thanks Adam Kennedy)
1165 0.12 Sat. Sept. 1, 2006
1167 - Recipe5 (subtypes & coercion) has been written
1170 - fixed "bad meta" error message to be more descriptive
1171 - fixed &unimport to not remove the &inner and &super
1172 keywords because we need to localize them.
1173 - fixed number of spelling/grammer issues, thanks Theory :)
1175 **~~ experimental & undocumented feature ~~**
1176 - added the method and self keywords, they are basically
1177 just sugar, and they may not stay around.
1180 - added &dump method to easily Data::Dumper
1183 * Moose::Meta::TypeConstraint
1184 - added the &is_a_type_of method to check both the current
1185 and the subtype of a method (similar to &isa with classes)
1188 - this is now a subclass of Class::MOP::Module, and no longer
1189 creates the _role_meta ugliness of before.
1190 - fixed tests to reflect this change
1192 0.11 Wed. July 12, 2006
1194 - added an &unimport method to remove all the keywords
1195 that Moose will import, simply add 'no Moose' to the
1196 bottom of your class file.
1199 - fixed some test failures caused by a forgotten test
1202 0.10 Thurs. July 6, 2006
1204 - improved error message when loading modules so
1205 it is less confusing when you load a role.
1206 - added &calculate_all_roles method to
1207 Moose::Meta::Class and Moose::Meta::Role
1210 This module has been tested against Class::MOP 0.30
1211 but it does not yet utilize the optimizations
1212 it makes available. Stay tuned for that ;)
1214 0.09_03 Fri. June 23, 2006
1215 ++ DEVELOPER RELEASE ++
1217 - 'use strict' and 'use warnings' are no longer
1218 needed in Moose classes, Moose itself will
1219 turn them on for you.
1220 - added tests for this
1221 - moved code from exported subs to private methods
1222 in Moose::Meta::Class
1225 - as with Moose, strict and warnings are
1226 automatically turned on for you.
1227 - added tests for this
1230 - now handles an edge case for override errors
1231 - added tests for this
1232 - added some more edge case tests
1234 0.09_02 Tues. May 16, 2006
1235 ++ DEVELOPER RELEASE ++
1237 - added prototypes to the exported subs
1241 - added prototypes to the exported subs
1244 * Moose::Util::TypeConstraints
1245 - cleaned up prototypes for the subs
1248 0.09_01 Fri. May 12, 2006
1249 ++ DEVELOPER RELEASE ++
1250 - This release works in combination with
1251 Class::MOP 0.29_01, it is a developer
1252 release because it uses the a new
1253 instance sub-protocol and a fairly
1254 complete Role implementation. It has
1255 not yet been optimized, so it slower
1256 the the previous CPAN version. This
1257 release also lacks good updated docs,
1258 the official release will have updated docs.
1261 - refactored the keyword exports
1262 - 'with' now checks Role validaity and
1263 accepts more than one Role at a time
1264 - 'extends' makes metaclass adjustments as
1265 needed to ensure metaclass compatability
1268 - refactored the keyword exports
1269 - 'with' now checks Role validaity and
1270 accepts more than one Role at a time
1272 * Moose::Util::TypeConstraints
1273 - added the 'enum' keyword for simple
1274 string enumerations which can be used as
1276 - see example of usage in t/202_example.t
1279 - more careful checking of params to new()
1282 - much work done on the role composition
1283 - many new tests for conflict detection
1284 and composition edge cases
1285 - not enough documentation, I suggest
1286 looking at the tests
1288 * Moose::Meta::Instance
1289 - added new Instance metaclass to support
1290 the new Class::MOP instance protocol
1292 * Moose::Meta::Class
1293 - some small changes to support the new
1295 - some small additions to support Roles
1297 * Moose::Meta::Attribute
1298 - some improvements to the accessor generation code
1300 - some small changes to support the new
1302 - (still somewhat) experimental delegation support
1303 with the 'handles' option
1304 - added several tests for this
1305 - no docs for this yet
1307 0.05 Thurs. April 27, 2006
1309 - keywords are now exported with Sub::Exporter
1310 thanks to chansen for this commit
1311 - has keyword now takes a 'metaclass' option
1312 to support custom attribute meta-classes
1313 on a per-attribute basis
1314 - added tests for this
1315 - the 'has' keyword not accepts inherited slot
1316 specifications (has '+foo'). This is still an
1317 experimental feature and probably not finished
1318 see t/038_attribute_inherited_slot_specs.t for
1319 more details, or ask about it on #moose
1320 - added tests for this
1323 - keywords are now exported with Sub::Exporter
1325 * Moose::Utils::TypeConstraints
1326 - reorganized the type constraint hierarchy, thanks
1327 to nothingmuch and chansen for his help and advice
1329 - added some tests for this
1330 - keywords are now exported with Sub::Exporter
1331 thanks to chansen for this commit
1333 * Moose::Meta::Class
1334 - due to changes in Class::MOP, we had to change
1335 construct_instance (for the better)
1337 * Moose::Meta::Attribute
1338 - due to changes in Class::MOP, we had to add the
1339 initialize_instance_slot method (it's a good thing)
1341 * Moose::Meta::TypeConstraint
1342 - added type constraint unions
1343 - added tests for this
1344 - added the is_subtype_of predicate method
1345 - added tests for this
1347 0.04 Sun. April 16th, 2006
1349 - Roles can now consume other roles
1350 - added tests for this
1351 - Roles can specify required methods now with
1352 the requires() keyword
1353 - added tests for this
1356 - ripped out much of it's guts ,.. much cleaner now
1357 - added required methods and correct handling of
1358 them in apply() for both classes and roles
1359 - added tests for this
1360 - no longer adds a does() method to consuming classes
1361 it relys on the one in Moose::Object
1362 - added roles attribute and some methods to support
1363 roles consuming roles
1365 * Moose::Meta::Attribute
1366 - added support for triggers on attributes
1367 - added tests for this
1368 - added support for does option on an attribute
1369 - added tests for this
1371 * Moose::Meta::Class
1372 - added support for attribute triggers in the
1374 - added tests for this
1377 - Moose no longer creates a subtype for your class
1378 if a subtype of the same name already exists, this
1379 should DWIM in 99.9999% of all cases
1381 * Moose::Util::TypeConstraints
1382 - fixed bug where incorrect subtype conflicts were
1384 - added test for this
1387 - this class can now be extended with 'use base' if
1388 you need it, it properly loads the metaclass class now
1389 - added test for this
1391 0.03_02 Wed. April 12, 2006
1393 - you must now explictly use Moose::Util::TypeConstraints
1394 it no longer gets exported for you automatically
1397 - new() now accepts hash-refs as well as key/value lists
1398 - added does() method to check for Roles
1399 - added tests for this
1401 * Moose::Meta::Class
1402 - added roles attribute along with the add_role() and
1404 - added tests for this
1407 - now adds a does() method to consuming classes
1408 which tests the class's hierarchy for roles
1409 - added tests for this
1411 0.03_01 Mon. April 10, 2006
1413 - added new Role recipe (no content yet, only code)
1416 - added 'with' keyword for Role support
1417 - added test and docs for this
1418 - fixed subtype quoting bug
1419 - added test for this
1423 - added test and docs
1425 * Moose::Util::TypeConstraints
1426 - added the message keyword to add custom
1427 error messages to type constraints
1430 - the meta role to support Moose::Role
1431 - added tests and docs
1433 * Moose::Meta::Class
1434 - moved a number of things from Moose.pm
1435 to here, they should have been here
1438 * Moose::Meta::Attribute
1439 - moved the attribute option macros here
1440 instead of putting them in Moose.pm
1442 * Moose::Meta::TypeConstraint
1443 - added the message attributes and the
1445 - added tests and docs for this
1447 0.03 Thurs. March 30, 2006
1449 - added the Moose::Cookbook with 5 recipes,
1450 describing all the stuff Moose can do.
1453 - fixed an issue with &extends super class loading
1454 it now captures errors and deals with inline
1455 packages correctly (bug found by mst, solution
1457 - added super/override & inner/augment features
1458 - added tests and docs for these
1461 - BUILDALL now takes a reference of the %params
1462 that are passed to &new, and passes that to
1465 * Moose::Util::TypeConstraints
1466 - Type constraints now survive runtime reloading
1467 - added test for this
1469 * Moose::Meta::Class
1470 - fixed the way attribute defaults are handled
1471 during instance construction (bug found by chansen)
1473 * Moose::Meta::Attribute
1474 - read-only attributes now actually enforce their
1475 read-only-ness (this corrected in Class::MOP as
1478 0.02 Tues. March 21, 2006
1480 - many more tests, fixing some bugs and
1482 - &extends now loads the base module with
1484 - added UNIVERSAL::require to the
1487 - each new Moose class will also create
1488 and register a subtype of Object which
1489 correspond to the new Moose class.
1490 - the 'isa' option in &has now only
1491 accepts strings, and will DWIM in
1494 * Moose::Util::TypeConstraints
1495 - added type coercion features
1496 - added tests for this
1497 - added support for this in attributes
1498 and instance construction
1500 - type construction no longer creates a
1501 function, it registers the type instead.
1502 - added several functions to get the
1506 - BUILDALL and DEMOLISHALL were broken
1507 because of a mis-named hash key, Whoops :)
1509 * Moose::Meta::Attribute
1510 - adding support for coercion in the
1511 autogenerated accessors
1513 * Moose::Meta::Class
1514 - adding support for coercion in the
1515 instance construction
1517 * Moose::Meta::TypeConstraint
1518 * Moose::Meta::TypeCoercion
1519 - type constraints and coercions are now
1520 full fledges meta-objects
1522 0.01 Wed. March 15, 2006
1523 - Moooooooooooooooooose!!!