1 Revision history for Perl extension Moose
3 0.50 Thurs. Jun 26, 2008
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. (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
23 - added test for this (Dave Rolsky)
25 * Moose::Meta::Attribute
26 - added support for meta_attr->does("ShortAlias") (sartak)
27 - added tests for this (sartak)
28 - moved the bulk of the `handles` handling to the new
29 install_delegation method (Stevan)
32 - Added BUILDARGS, a new step in new()
34 * Moose::Meta::Role::Application::RoleSummation
35 - fix typos no one ever sees (sartak)
37 * Moose::Util::TypeConstraints
38 * Moose::Meta::TypeConstraint
39 * Moose::Meta::TypeCoercion
40 - Attempt to work around the ??{ } vs. threads issue
41 - Some null_constraint optimizations
43 0.50 Thurs. Jun 11, 2008
44 - Fixed a version number issue by bumping all modules
47 0.49 Thurs. Jun 11, 2008
48 !! This version now approx. 20-25% !!
49 !! faster with new Class::MOP 0.59 !!
51 * Moose::Meta::Attribute
52 - fixed how the is => (ro|rw) works with
53 custom defined reader, writer and accessor
55 - added docs for this (TODO).
56 - added tests for this (Thanks to Penfold)
57 - added the custom attribute alias for regular
58 Moose attributes which is "Moose"
59 - fix builder and default both being used
64 Moose::Meta::Attribute
66 Moose::Meta::Role::Composite
67 Moose::Util::TypeConstraints
68 - switched usage of reftype to ref because
72 - changing add_package_symbol to use the new
76 - fixed how DEMOLISHALL is called so that it
77 can be overrided in subclasses (thanks to Sartak)
78 - added test for this (thanks to Sartak)
80 * Moose::Util::TypeConstraints
81 - move the ClassName type check code to
82 Class::MOP::is_class_loaded (thanks to Sartak)
84 * Moose::Cookbook::Recipe11
85 - add tests for this (thanks to tokuhirom)
87 0.48 Thurs. May 29, 2008
88 (early morning release engineering)--
90 - fixing the version in Moose::Meta::Method::Destructor
91 which was causing the indexer to choke
93 0.47 Thurs. May 29, 2008
94 (late night release engineering)--
96 - fixing the version is META.yml, no functional
97 changes in this release
99 0.46 Wed. May 28, 2008
100 !! This version now approx. 20-25% !!
101 !! faster with new Class::MOP 0.57 !!
104 - some optimizations of the &initialize method
105 since it is called so often by &meta
109 - now use the get_all_package_symbols from the
110 updated Class::MOP, test suite is now 10 seconds
113 * Moose::Meta::Method::Destructor
114 - is_needed can now also be called as a class
115 method for immutablization to check if the
116 destructor object even needs to be created
119 * Moose::Meta::Method::Destructor
120 Moose::Meta::Method::Constructor
121 - added more descriptive error message to help
122 keep people from wasting time tracking an error
123 that is easily fixed by upgrading.
125 0.45 Saturday, May 24, 2008
127 - Because of work in Class::MOP 0.56, all
128 XS based functionality is now optional
129 and a Pure Perl version is supplied
130 - the CLASS_MOP_NO_XS environment variable
131 can now be used to force non-XS versions
133 - several of the packages have been tweaked
134 to take care of this, mostly we added
135 support for the package_name and name
136 variables in all the Method metaclasses
137 - before/around/after method modifiers now
138 support regexp matching of names
139 (thanks to Takatoshi Kitano)
140 - tests added for this
141 - NOTE: this only works for classes, it
142 is currently not supported in roles,
143 but, ... patches welcome
144 - All usage of Carp::confess have been replaced
145 by Carp::croak in the "keyword" functions since
146 the stack trace is usually not helpful
149 - All usage of Carp::confess have been replaced
150 by Carp::croak in the "keyword" functions since
151 the stack trace is usually not helpful
152 - The 'has' keyword for roles now accepts the
153 same array ref form that Moose.pm does
154 (has [qw/foo bar/] => (is => 'rw', ...))
155 - added test for this
157 * Moose::Meta::Attribute
158 - trigger on a ro-attribute is no longer an
159 error, as it's useful to trigger off of the
163 - added same 'add_package_symbol' fix as in
167 - does_role now handles non-Moose classes
169 - added tests for this
170 - added the 'add_method_modifier' function
171 (thanks to Takatoshi Kitano)
173 * Moose::Util::TypeConstraints
174 - subtypes of parameterizable types now are
175 themselves parameterizable types
177 * Moose::Meta::Method::Constructor
178 - fixed bug where trigger was not being
179 called by the inlined immutable
181 - added test for this (thanks to Caelum)
183 * Moose::Meta::Role::Application::ToInstance
184 - now uses the metaclass of the instance
185 (if possible) to create the anon-class
186 (thanks Jonathan Rockway)
188 * Moose::Cookbook::Recipe22
189 - added the meta-attribute trait recipe
193 - fixed hash-ordering test bug that was
194 causing occasional cpantester failures
195 - renamed the t/000_recipe/*.t tests to be
196 more descriptive (thanks to Sartak)
198 0.44 Sat. May 10, 2008
200 - made make_immutable warning cluck to
201 show where the error is (thanks mst)
204 - BUILDALL and DEMOLISHALL now call
205 ->body when looping through the
206 methods, to avoid the overloaded
208 - fixed issue where DEMOLISHALL was
209 eating the $@ values, and so not
210 working correctly, it still kind of
211 eats them, but so does vanilla perl
212 - added tests for this
214 * Moose::Cookbook::Recipe7
215 - added new recipe for immutable
216 functionality (thanks Dave Rolsky)
218 * Moose::Cookbook::Recipe9
219 - added new recipe for builder and
220 lazy_build (thanks Dave Rolsky)
222 * Moose::Cookbook::Recipe11
223 - added new recipe for method aliasing
224 and exclusion with Roles (thanks Dave Rolsky)
227 - fixed Win32 test failure (thanks spicyjack)
229 ~ removed Build.PL and Module::Build compat
230 since Module::Install has done that.
232 0.43 Wed. April, 30, 2008
234 drink more coffee before
235 doing release engineering
237 - whoops, forgot to do the smolder tests,
238 and we broke some of the custom meta-attr
239 modules. This fixes that.
241 0.42 Mon. April 28, 2008
242 - some bad tests slipped by, nothing else
243 changed in this release (cpantesters++)
245 - upped the Class::MOP dependency to 0.55
246 since we have tests which need the C3
249 0.41 Mon. April 28, 2008
250 ~~ numerous documentation updates ~~
252 - Changed all usage of die to Carp::croak for better
253 error reporting (initial patch by Tod Hagan)
256 - the make_immutable keyword is now deprecated, don't
257 use it in any new code and please fix your old code
258 as well. There will be 2 releases, and then it will
264 - refactored the way inner and super work to avoid
265 any method/@ISA cache penalty (nothingmuch)
268 - fixing &new_object to make sure trigger gets the
269 coerced value (spotted by Charles Alderman on the
271 - added test for this
273 * Moose::Meta::Method::Constructor
274 - immutable classes which had non-lazy attributes were calling
275 the default generating sub twice in the constructor. (bug
276 found by Jesse Luehrs, fixed by Dave Rolsky)
277 - added tests for this (Dave Rolsky)
278 - fix typo in initialize_body method (nothingmuch)
280 * Moose::Meta::Method::Destructor
281 - fix typo in initialize_body method (nothingmuch)
283 * Moose::Meta::Method::Overriden
284 Moose::Meta::Method::Augmented
285 - moved the logic for these into their own
286 classes (nothingmuch)
288 * Moose::Meta::Attribute
289 - inherited attributes may now be extended without
290 restriction on the type ('isa', 'does') (Sartak)
291 - added tests for this (Sartak)
292 - when an attribute property is malformed (such as lazy without
293 a default), give the name of the attribute in the error
295 - added the &applied_traits and &has_applied_traits methods
296 to allow introspection of traits
297 - added tests for this
298 - moved 'trait' and 'metaclass' argument handling to here from
300 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
301 '+foo' syntax) (nothingmuch)
302 - added tests for this (t0m)
305 - localize $@ inside DEMOLISHALL to avoid it
306 eating $@ (found by Ernesto)
307 - added test for this (thanks to Ernesto)
309 * Moose::Util::TypeConstraints
310 - &find_type_constraint now DWIMs when given an
311 type constraint object or name (nothingmuch)
312 - &find_or_create_type_constraint superseded with a number of more
314 - find_or_create_{isa,does}_type_constraint
315 - find_or_parse_type_constraint
317 * Moose::Meta::TypeConstraint
318 Moose::Meta::TypeConstraint::Class
319 Moose::Meta::TypeConstraint::Role
320 Moose::Meta::TypeConstraint::Enum
321 Moose::Meta::TypeConstraint::Union
322 Moose::Meta::TypeConstraint::Parameterized
323 - added the &equals method for comparing two type
324 constraints (nothingmuch)
325 - added tests for this (nothingmuch)
327 * Moose::Meta::TypeConstraint
328 - add the &parents method, which is just an alias to &parent.
329 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
331 * Moose::Meta::TypeConstraint::Class
332 - added the class attribute for introspection purposes
334 - added tests for this
336 * Moose::Meta::TypeConstraint::Enum
337 Moose::Meta::TypeConstraint::Role
338 - broke these out into their own classes (nothingmuch)
340 * Moose::Cookbook::Recipe*
341 - fixed references to test file locations in the POD
342 and updated up some text for new Moose features
346 - Added &resolve_metaclass_alias, a helper function for finding an actual
347 class for a short name (e.g. in the traits list)
349 0.40 Fri. March 14, 2008
350 - I hate Pod::Coverage
352 0.39 Fri. March 14, 2008
354 - documenting the use of '+name' with attributes
355 that come from recently composed roles. It makes
356 sense, people are using it, and so why not just
357 officially support it.
358 - fixing the 'extends' keyword so that it will not
359 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
362 - added the perl -Moose=+Class::Name feature to allow
363 monkeypatching of classes in one liners
366 - fixing the 'apply_all_roles' keyword so that it will not
367 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
370 - added ->create method which now supports roles (thanks to jrockway)
371 - added tests for this
372 - added ->create_anon_class which now supports roles and caching of
373 the results (thanks to jrockway)
374 - added tests for this
375 - made ->does_role a little more forgiving when it is
376 checking a Class::MOP era metaclasses.
378 * Moose::Meta::Role::Application::ToInstance
379 - it is now possible to pass extra params to be used when
380 a role is applied to an the instance (rebless_params)
381 - added tests for this
383 * Moose::Util::TypeConstraints
384 - class_type now accepts an optional second argument for a
385 custom message. POD anotated accordingly (groditi)
386 - added tests for this
387 - it is now possible to make anon-enums by passing 'enum' an
388 ARRAY ref instead of the $name => @values. Everything else
390 - added tests for this
393 - making test for using '+name' on attributes consumed
394 from a role, it works and makes sense too.
396 * Moose::Meta::Attribute
397 - fix handles so that it doesn't return nothing
398 when the method cannot be found, not sure why
399 it ever did this originally, this means we now
400 have slightly better support for AUTOLOADed
402 - added more delegation tests
403 - adding ->does method to this so as to better
404 support traits and their introspection.
405 - added tests for this
408 - localizing the Data::Dumper configurations so
409 that it does not pollute others (RT #33509)
410 - made ->does a little more forgiving when it is
411 passed Class::MOP era metaclasses.
413 0.38 Fri. Feb. 15, 2008
414 * Moose::Meta::Attribute
415 - fixed initializer to correctly do
416 type checking and coercion in the
418 - added tests for this
421 - fixed some finicky tests (thanks to konobi)
423 0.37 Thurs. Feb. 14, 2008
425 - fixed some details in Moose::init_meta
426 and its superclass handling (thanks thepler)
427 - added tests for this (thanks thepler)
428 - 'has' now dies if you don't pass in name
430 - added the 'make_immutable' keyword as a shortcut
434 Moose::Meta::Method::Constructor
435 Moose::Meta::Attribute
436 - making (init_arg => undef) work here too
437 (thanks to nothingmuch)
439 * Moose::Meta::Attribute
440 Moose::Meta::Method::Constructor
441 Moose::Meta::Method::Accessor
442 - make lazy attributes respect attr initializers (rjbs)
443 - added tests for this
445 * Moose::Util::TypeConstraints
446 Moose::Util::TypeConstraints::OptimizedConstraints
447 Moose::Meta::TypeConstraints
448 Moose::Meta::Attribute
449 Moose::Meta::Method::Constructor
450 Moose::Meta::Method::Accessor
451 - making type errors use the
452 assigned message (thanks to Sartak)
453 - added tests for this
455 * Moose::Meta::Method::Destructor
456 - making sure DESTROY gets inlined properly
457 with successive DEMOLISH calls (thanks to manito)
459 * Moose::Meta::Attribute
460 Moose::Meta::Method::Accessor
461 - fixed handling of undef with type constraints
463 - added tests for this
466 - added &get_all_init_args and &get_all_attribute_values
467 (thanks to Sartak and nothingmuch)
469 0.36 Sat. Jan. 26, 2008
471 Moose::Meta::Attribute
472 - role type tests now support when roles are
473 applied to non-Moose classes (found by ash)
474 - added tests for this (thanks to ash)
475 - couple extra tests to boost code coverage
477 * Moose::Meta::Method::Constructor
478 - improved fix for handling Class::MOP attributes
479 - added test for this
482 - handled the add_attribute($attribute_meta_object)
484 - added test for this
486 0.35 Tues. Jan. 22, 2008
487 * Moose::Meta::Method::Constructor
488 - fix to make sure even Class::MOP attributes
489 are handled correctly (Thanks to Dave Rolsky)
490 - added test for this (also Dave Rolsky)
493 - improved error message on _apply_all_roles,
494 you should now use Moose::Util::apply_all_roles
495 and you shouldnt have been using a _ prefixed
496 method in the first place ;)
498 0.34 Mon. Jan. 21, 2008
499 ~~~ more misc. doc. fixes ~~~
500 ~~ updated copyright dates ~~
502 Moose is now a postmodern object system :)
503 - (see the POD for details)
505 * <<Role System Refactoring>>
506 - this release contains a major reworking and
507 cleanup of the role system
508 - 100% backwards compat.
509 - Role application now restructured into seperate
510 classes based on type of applicants
511 - Role summation (combining of more than one role)
512 is much cleaner and anon-classes are no longer
514 - new Composite role metaclass
515 - runtime application of roles to instances
516 is now more efficient and re-uses generated
517 classes when applicable
519 * <<New Role composition features>>
520 - methods can now be excluded from a given role
522 - methods can now be aliased to another name (and
523 still retain the original as well)
525 * Moose::Util::TypeConstraints::OptimizedConstraints
526 - added this module (see above)
529 - fixed the &_process_attribute method to be called
530 by &add_attribute, so that the API is now correct
532 * Moose::Meta::Method::Accessor
533 - fixed bug when passing a list of values to
534 an accessor would get (incorrectly) ignored.
535 Thanks to Sartak for finding this ;)
536 - added tests for this (Sartak again)
538 * Moose::Meta::Method::Accessor
539 Moose::Meta::Method::Constructor
540 Moose::Meta::Attribute
541 Moose::Meta::TypeConstraint
542 Moose::Meta::TypeCoercion
543 - lots of cleanup of such things as:
545 - type constraint handling
546 - error handling/messages
547 (thanks to nothingmuch)
549 * Moose::Meta::TypeConstraint::Parameterizable
550 - added this module to support the refactor
551 in Moose::Meta::TypeConstraint::Parameterized
553 * Moose::Meta::TypeConstraint::Parameterized
554 - refactored how these types are handled so they
555 are more generic and not confined to ArrayRef
559 - shortened some file names for better VMS support (RT #32381)
561 0.33 Fri. Dec. 14, 2007
562 !! Moose now loads 2 x faster !!
563 !! with new Class::MOP 0.49 !!
565 ++ new oose.pm module to make command line
566 Moose-ness easier (see POD docs for more)
570 - several tweaks to take advantage of the
571 new method map caching in Class::MOP
573 * Moose::Meta::TypeConstraint::Parameterized
574 - allow subtypes of ArrayRef and HashRef to
575 be used as a container (sartak)
576 - added tests for this
577 - basic support for coercion to ArrayRef and
578 HashRef for containers (sartak)
579 - added tests for this
581 * Moose::Meta::TypeCoercion
582 - coercions will now create subtypes as needed
583 so you can now add coercions to parameterized
584 types without having to explictly define them
585 - added tests for this
587 * Moose::Meta::Method::Accessor
588 - allow subclasses to decide whether we need
589 to copy the value into a new variable (sartak)
591 0.32 Tues. Dec. 4, 2007
592 * Moose::Util::TypeConstraints
593 - fixing how subtype aliases of unions work
594 they should inherit the parent's coercion
595 - added tests for this
596 - you can now define multiple coercions on
597 a single type at different times instead of
598 having to do it all in one place
599 - added tests for this
601 * Moose::Meta::TypeConstraint
602 - there is now a default constraint of sub { 1 }
603 instead of Moose::Util::TypeConstraints setting
606 * Moose::Meta::TypeCoercion
607 * Moose::Meta::TypeCoercion::Union
608 - added the &has_coercion_for_type and
609 &add_type_coercions methods to support the
610 new features above (although you cannot add
611 more type coercions for Union types)
613 0.31 Mon. Nov. 26, 2007
614 * Moose::Meta::Attribute
615 - made the +attr syntax handle extending types with
616 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
617 now works if the original foo is an ArrayRef.
618 - added tests for this.
619 - delegation now works even if the attribute does not
620 have a reader method using the get_read_method_ref
621 method from Class::MOP::Attribute.
622 - added tests for this
623 - added docs for this
625 * Moose::Util::TypeConstraints
626 - passing no "additional attribute info" to
627 &find_or_create_type_constraint will no longer
628 attempt to create an __ANON__ type for you,
629 instead it will just return undef.
630 - added docs for this
632 0.30 Fri. Nov. 23, 2007
633 * Moose::Meta::Method::Constructor
634 -builder related bug in inlined constructor. (groditi)
636 * Moose::Meta::Method::Accessor
637 - genereate unnecessary calls to predicates and refactor
638 code generation for runtime speed (groditi)
640 * Moose::Util::TypeConstraints
641 - fix ClassName constraint to introspect symbol table (mst)
642 - added more tests for this (mst)
643 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
645 - added tests for this
648 - adding the link to Recipie 11 (written by Sartak)
649 - adding test for SYNOPSIS code
652 - New tests for builder bug. Upon instantiation, if an
653 attribute had a builder, no value and was not lazy the
654 builder default was not getting run, oops. (groditi)
656 0.29 Tues. Nov. 13, 2007
657 * Moose::Meta::Attribute
658 - Fix error message on missing builder method (groditi)
660 * Moose::Meta::Method::Accessor
661 - Fix error message on missing builder method (groditi)
664 - Add test to check for the correct error message when
665 builder method is missing (groditi)
667 0.28 Tues. Nov. 13, 2007
668 - 0.27 packaged incorrectly (groditi)
670 0.27 Tues. Nov. 13, 2007
671 * Moose::Meta::Attribute
672 - Added support for the new builder option (groditi)
673 - Added support for lazy_build option (groditi)
674 - Changed slot initialization for predicate changes (groditi)
676 * Moose::Meta::Method::Accessor
677 - Added support for lazy_build option (groditi)
678 - Fix inline methods to work with corrected predicate
681 * Moose::Meta::Method::Constructor
682 - Added support for lazy_build option (groditi)
685 - tests for builder and lazy_build (groditi)
687 * fixing some misc. bits in the docs that
688 got mentioned on CPAN Forum & perlmonks
691 - fixed how required methods are handled
692 when they encounter overriden or modified
693 methods from a class (thanks to confound).
694 - added tests for this
696 * Moose::Util::TypeConstraint
697 - fixed the type notation parser so that
698 the | always creates a union and so is
699 no longer a valid type char (thanks to
700 konobi, mugwump and #moose for working
702 - added more tests for this
704 0.26 Thurs. Sept. 27, 2007
707 * Parameterized Types
708 We now support parameterized collection types, such as:
709 ArrayRef[Int] # array or integers
710 HashRef[Object] # a hash with object values
711 They can also be nested:
712 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
713 And work with the type unions as well:
714 ArrayRef[Int | Str] # array of integers of strings
716 * Better Framework Extendability
717 Moose.pm is now "extendable" such that it is now much
718 easier to extend the framework and add your own keywords
719 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
720 section of the Moose.pm docs.
723 In an effort to begin documenting some of the various
724 details of Moose as well as some common idioms, we have
725 created Moose::Cookbook::Snacks as a place to find
726 small (easily digestable) nuggets of Moose code.
729 ~ Several doc updates/cleanup thanks to castaway ~
731 - converted build system to use Module::Install instead of
732 Module::Build (thanks to jrockway)
735 - added all the meta classes to the immutable list and
736 set it to inline the accessors
737 - fix import to allow Sub::Exporter like { into => }
738 and { into_level => } (perigrin)
739 - exposed and documented init_meta() to allow better
740 embedding and extending of Moose (perigrin)
743 - complete re-organization of the test suite
744 - added some new tests as well
745 - finally re-enabled the Moose::POOP test since
746 the new version of DBM::Deep now works again
750 - fixed very odd and very nasty recursion bug with
752 - added tests for this (eilara)
754 * Moose::Meta::Attribute
755 Moose::Meta::Method::Constructor
756 Moose::Meta::Method::Accessor
757 - fixed issue with overload::Overloaded getting called
758 on non-blessed items. (RT #29269)
759 - added tests for this
761 * Moose::Meta::Method::Accessor
762 - fixed issue with generated accessor code making
763 assumptions about hash based classes (thanks to dexter)
765 * Moose::Coookbook::Snacks
766 - these are bits of documentation, not quite as big as
767 Recipes but which have no clear place in the module docs.
768 So they are Snacks! (horray for castaway++)
770 * Moose::Cookbook::Recipe4
771 - updated it to use the new ArrayRef[MyType] construct
772 - updated the accompanying test as well
774 +++ Major Refactor of the Type Constraint system +++
775 +++ with new features added as well +++
777 * Moose::Util::TypeConstraint
778 - no longer uses package variable to keep track of
779 the type constraints, now uses the an instance of
780 Moose::Meta::TypeConstraint::Registry to do it
781 - added more sophisticated type notation parsing
783 - added tests for this
785 * Moose::Meta::TypeConstraint
786 - some minor adjustments to make subclassing easier
787 - added the package_defined_in attribute so that we
788 can track where the type constraints are created
790 * Moose::Meta::TypeConstraint::Union
791 - this is now been refactored to be a subclass of
792 Moose::Meta::TypeConstraint
794 * Moose::Meta::TypeCoercion::Union
795 - this has been added to service the newly refactored
796 Moose::Meta::TypeConstraint::Union and is itself
797 a subclass of Moose::Meta::TypeCoercion
799 * Moose::Meta::TypeConstraint::Parameterized
800 - added this module (taken from MooseX::AttributeHelpers)
801 to help construct nested collection types
802 - added tests for this
804 * Moose::Meta::TypeConstraint::Registry
805 - added this class to keep track of type constraints
807 0.25 Mon. Aug. 13, 2007
809 - Documentation update to reference Moose::Util::TypeConstraints
810 under 'isa' in 'has' for how to define a new type
813 * Moose::Meta::Attribute
814 - required attributes now will no longer accept undef
815 from the constructor, even if there is a default and lazy
816 - added tests for this
817 - default subroutines must return a value which passes the
819 - added tests for this
821 * Moose::Meta::Attribute
822 * Moose::Meta::Method::Constructor
823 * Moose::Meta::Method::Accessor
824 - type-constraint tests now handle overloaded objects correctly
826 - added tests for this (thanks to EvanCarroll)
828 * Moose::Meta::TypeConstraint::Union
829 - added (has_)hand_optimized_constraint to this class so that
830 it behaves as the regular Moose::Meta::TypeConstraint does.
833 - large refactoring of this code
834 - added several more tests
835 - tests for subtle conflict resolition issues
836 added, but not currently running
839 * Moose::Cookbook::Recipe7
840 - added new recipe for augment/inner functionality
842 - added test for this
845 - a formal definition of roles (still in progress)
848 - utilities for easier working with Moose classes
849 - added tests for these
852 - This contains Moose specific test functions
853 - added tests for these
855 0.24 Tues. July 3, 2007
856 ~ Some doc updates/cleanup ~
858 * Moose::Meta::Attribute
859 - added support for roles to be given as parameters
860 to the 'handles' option.
861 - added tests and docs for this
862 - the has '+foo' attribute form now accepts changes to
863 the lazy option, and the addition of a handles option
864 (but not changing the handles option)
865 - added tests and docs for this
868 - required methods are now fetched using find_method_by_name
869 so that required methods can come from superclasses
870 - adjusted tests for this
872 0.23 Mon. June 18, 2007
873 * Moose::Meta::Method::Constructor
874 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
876 - Modify make_immutable to work with the new Class::MOP immutable
877 mechanism + POD + very basic test (groditi)
878 * Moose::Meta::Attribute
879 - Fix handles to use goto() so that caller() comes out properly on
880 the other side (perigrin)
882 0.22 Thurs. May 31, 2007
883 * Moose::Util::TypeConstraints
884 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
885 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
886 prototypes for functions
887 - added the ClassName type constraint, this checks for strings
888 which will respond true to ->isa(UNIVERSAL).
889 - added tests and docs for this
890 - subtyping just in name now works correctly by making the
891 default for where be { 1 }
892 - added test for this
894 * Moose::Meta::Method::Accessor
895 - coerce and lazy now work together correctly, thanks to
896 merlyn for finding this bug
897 - tests added for this
898 - fix reader presedence bug in Moose::Meta::Attribute + tests
901 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
902 a HASH-ref and missed. This produces better error messages then
903 having it die cause undef is not a HASH.
904 - added tests for this
906 0.21 Thursday, May 2nd, 2007
908 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
909 - modified unimport to remove super and inner along with the rest
910 - altered unimport tests to handle this
913 - altered super export to populate SUPER_SLOT
916 - altered augment and override modifier application to use *_SLOT
917 - modified tests for these to unimport one test class each to test
920 - fixed issue where custom attribute metaclasses
921 where not handled correctly in roles
922 - added tests for this
925 - fixed issue where extending metaclasses with
926 roles would blow up. Thanks to Aankhen`` for
927 finding this insidious error, and it's solution.
929 ~~ lots of spelling and grammer fixes in the docs,
930 many many thanks to rlb3 and Aankhen for these :)
932 0.20 Friday, April 6th, 2007
933 >> I messed up the SKIP logic in one test
934 so this release is just to fix that.
937 - 'has' now also accepts an ARRAY ref
938 to create multiple attrs (see docs)
939 (thanks to konobi for this)
940 - added tests and docs
942 0.19 Thurs. April 5th, 2007
943 ~~ More documentation updates ~~
945 * Moose::Util::TypeConstraints
946 - 'type' now supports messages as well
947 thanks to phaylon for finding this
948 - added tests for this
949 - added &list_all_type_constraints and
950 &list_all_builtin_type_constraints
951 functions to facilitate introspection.
953 * Moose::Meta::Attribute
954 - fixed regexp 'handles' declarations
955 to build the list of delegated methods
956 correctly (and not override important
957 things like &new) thanks to ashleyb
959 - added tests and docs for this
960 - added the 'documentation' attributes
961 so that you can actually document your
962 attributes and inspect them through the
964 - added tests and docs for this
967 - when loading custom attribute metaclasses
968 it will first look in for the class in the
969 Moose::Meta::Attribute::Custom::$name, and
970 then default to just loading $name.
971 - added tests and docs for this
973 * Moose::Meta::TypeConstraint
974 - type constraints now stringify to their names.
975 - added test for this
978 - added tests to assure we work with Module::Refresh
979 - added stricter test skip logic in the Moose POOP
980 test, ask Rob Kinyon why.
981 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
983 0.18 Sat. March 10, 2007
984 ~~ Many, many documentation updates ~~
987 - We now use Class::MOP::load_class to
989 - added tests to show types and subtypes
990 working with Declare::Constraints::Simple
991 and Test::Deep as constraint engines.
994 !! You must have Class::MOP 0.37_001 !!
995 !! for this developer release to work !!
997 This release was primarily adding the immutable
998 feature to Moose. An immutable class is one which
999 you promise not to alter. When you set the class
1000 as immutable it will perform various bits of
1001 memoization and inline certain part of the code
1002 (constructors, destructors and accessors). This
1003 minimizes (and in some cases totally eliminates)
1004 one of Moose's biggest performance hits. This
1005 feature is not on by default, and is 100% optional.
1006 It has several configurable bits as well, so you
1007 can pick and choose to your specific needs.
1009 The changes involved in this were fairly wide and
1010 highly specific, but 100% backwards compatible, so
1011 I am not going to enumerate them here. If you are
1012 truely interested in what was changed, please do
1015 0.17 Tues. Nov. 14, 2006
1016 * Moose::Meta::Method::Accessor
1017 - bugfix for read-only accessors which
1018 are have a type constraint and lazy.
1019 Thanks to chansen for finding it.
1021 0.16 Tues. Nov. 14, 2006
1023 There are some speed improvements in this release,
1024 but they are only the begining, so stay tuned.
1027 - BUILDALL and DEMOLISHALL no longer get
1028 called unless they actually need to be.
1029 This gave us a signifigant speed boost
1030 for the cases when there is no BUILD or
1031 DEMOLISH method present.
1033 * Moose::Util::TypeConstraints
1034 * Moose::Meta::TypeConstraint
1035 - added an 'optimize_as' option to the
1036 type constraint, which allows for a
1037 hand optimized version of the type
1038 constraint to be used when possible.
1039 - Any internally created type constraints
1040 now provide an optimized version as well.
1042 0.15 Sun. Nov. 5, 2006
1044 This version of Moose *must* have Class::MOP 0.36 in order
1045 to work correctly. A number of small internal tweaks have
1046 been made in order to be compatible with that release.
1048 * Moose::Util::TypeConstraints
1049 - added &unimport so that you can clean out
1050 your class namespace of these exported
1053 * Moose::Meta::Class
1054 - fixed minor issue which occasionally
1055 comes up during global destruction
1057 - moved Moose::Meta::Method::Overriden into
1061 - moved Moose::Meta::Role::Method into
1064 * Moose::Meta::Attribute
1065 - changed how we do type checks so that
1066 we reduce the overall cost, but still
1069 - moved accessor generation methods to
1070 Moose::Meta::Method::Accessor to
1071 conform to the API changes from
1074 * Moose::Meta::TypeConstraint
1075 - changed how constraints are compiled
1076 so that we do less recursion and more
1077 iteration. This makes the type check
1079 - moved Moose::Meta::TypeConstraint::Union
1082 * Moose::Meta::Method::Accessor
1083 - created this from methods formerly found in
1084 Moose::Meta::Attribute
1086 * Moose::Meta::Role::Method
1087 - moved this from Moose::Meta::Role
1089 * Moose::Meta::Method::Overriden
1090 - moved this from Moose::Meta::Class
1092 * Moose::Meta::TypeConstraint::Union
1093 - moved this from Moose::Meta::TypeConstraint
1095 0.14 Mon. Oct. 9, 2006
1097 * Moose::Meta::Attribute
1098 - fixed lazy attributes which were not getting
1099 checked with the type constraint (thanks ashley)
1100 - added tests for this
1101 - removed the over-enthusiastic DWIMery of the
1102 automatic ArrayRef and HashRef defaults, it
1103 broke predicates in an ugly way.
1104 - removed tests for this
1106 0.13 Sat. Sept. 30, 2006
1108 This version of Moose *must* have Class::MOP 0.35 in order
1109 to work correctly. A number of small internal tweaks have
1110 been made in order to be compatible with that release.
1113 - Removed the use of UNIVERSAL::require to be a better
1114 symbol table citizen and remove a dependency
1115 (thanks Adam Kennedy)
1117 **~~ removed experimental & undocumented feature ~~**
1118 - commented out the 'method' and 'self' keywords, see the
1119 comments for more info.
1122 - added a FAQ and WTF files to document frequently
1123 asked questions and common problems
1125 * Moose::Util::TypeConstraints
1126 - added GlobRef and FileHandle type constraint
1127 - added tests for this
1129 * Moose::Meta::Attribute
1130 - if your attribute 'isa' ArrayRef of HashRef, and you have
1131 not explicitly set a default, then make the default DWIM.
1132 This will also work for subtypes of ArrayRef and HashRef
1134 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1135 - new test added for this (thanks to ashley)
1138 - added basic support for runtime role composition
1139 but this is still *highly experimental*, so feedback
1140 is much appreciated :)
1141 - added tests for this
1143 * Moose::Meta::TypeConstraint
1144 - the type constraint now handles the coercion process
1145 through delegation, this is to support the coercion
1148 * Moose::Meta::TypeConstraint::Union
1149 - it is now possible for coercions to be performed
1151 - added tests for this (thanks to konobi)
1153 * Moose::Meta::TypeCoercion
1154 - properly capturing error when type constraint
1158 - Scalar::Util 1.18 is bad on Win32, so temporarily
1159 only require version 1.17 for Win32 and cygwin.
1160 (thanks Adam Kennedy)
1162 0.12 Sat. Sept. 1, 2006
1164 - Recipe5 (subtypes & coercion) has been written
1167 - fixed "bad meta" error message to be more descriptive
1168 - fixed &unimport to not remove the &inner and &super
1169 keywords because we need to localize them.
1170 - fixed number of spelling/grammer issues, thanks Theory :)
1172 **~~ experimental & undocumented feature ~~**
1173 - added the method and self keywords, they are basically
1174 just sugar, and they may not stay around.
1177 - added &dump method to easily Data::Dumper
1180 * Moose::Meta::TypeConstraint
1181 - added the &is_a_type_of method to check both the current
1182 and the subtype of a method (similar to &isa with classes)
1185 - this is now a subclass of Class::MOP::Module, and no longer
1186 creates the _role_meta ugliness of before.
1187 - fixed tests to reflect this change
1189 0.11 Wed. July 12, 2006
1191 - added an &unimport method to remove all the keywords
1192 that Moose will import, simply add 'no Moose' to the
1193 bottom of your class file.
1196 - fixed some test failures caused by a forgotten test
1199 0.10 Thurs. July 6, 2006
1201 - improved error message when loading modules so
1202 it is less confusing when you load a role.
1203 - added &calculate_all_roles method to
1204 Moose::Meta::Class and Moose::Meta::Role
1207 This module has been tested against Class::MOP 0.30
1208 but it does not yet utilize the optimizations
1209 it makes available. Stay tuned for that ;)
1211 0.09_03 Fri. June 23, 2006
1212 ++ DEVELOPER RELEASE ++
1214 - 'use strict' and 'use warnings' are no longer
1215 needed in Moose classes, Moose itself will
1216 turn them on for you.
1217 - added tests for this
1218 - moved code from exported subs to private methods
1219 in Moose::Meta::Class
1222 - as with Moose, strict and warnings are
1223 automatically turned on for you.
1224 - added tests for this
1227 - now handles an edge case for override errors
1228 - added tests for this
1229 - added some more edge case tests
1231 0.09_02 Tues. May 16, 2006
1232 ++ DEVELOPER RELEASE ++
1234 - added prototypes to the exported subs
1238 - added prototypes to the exported subs
1241 * Moose::Util::TypeConstraints
1242 - cleaned up prototypes for the subs
1245 0.09_01 Fri. May 12, 2006
1246 ++ DEVELOPER RELEASE ++
1247 - This release works in combination with
1248 Class::MOP 0.29_01, it is a developer
1249 release because it uses the a new
1250 instance sub-protocol and a fairly
1251 complete Role implementation. It has
1252 not yet been optimized, so it slower
1253 the the previous CPAN version. This
1254 release also lacks good updated docs,
1255 the official release will have updated docs.
1258 - refactored the keyword exports
1259 - 'with' now checks Role validaity and
1260 accepts more than one Role at a time
1261 - 'extends' makes metaclass adjustments as
1262 needed to ensure metaclass compatability
1265 - refactored the keyword exports
1266 - 'with' now checks Role validaity and
1267 accepts more than one Role at a time
1269 * Moose::Util::TypeConstraints
1270 - added the 'enum' keyword for simple
1271 string enumerations which can be used as
1273 - see example of usage in t/202_example.t
1276 - more careful checking of params to new()
1279 - much work done on the role composition
1280 - many new tests for conflict detection
1281 and composition edge cases
1282 - not enough documentation, I suggest
1283 looking at the tests
1285 * Moose::Meta::Instance
1286 - added new Instance metaclass to support
1287 the new Class::MOP instance protocol
1289 * Moose::Meta::Class
1290 - some small changes to support the new
1292 - some small additions to support Roles
1294 * Moose::Meta::Attribute
1295 - some improvements to the accessor generation code
1297 - some small changes to support the new
1299 - (still somewhat) experimental delegation support
1300 with the 'handles' option
1301 - added several tests for this
1302 - no docs for this yet
1304 0.05 Thurs. April 27, 2006
1306 - keywords are now exported with Sub::Exporter
1307 thanks to chansen for this commit
1308 - has keyword now takes a 'metaclass' option
1309 to support custom attribute meta-classes
1310 on a per-attribute basis
1311 - added tests for this
1312 - the 'has' keyword not accepts inherited slot
1313 specifications (has '+foo'). This is still an
1314 experimental feature and probably not finished
1315 see t/038_attribute_inherited_slot_specs.t for
1316 more details, or ask about it on #moose
1317 - added tests for this
1320 - keywords are now exported with Sub::Exporter
1322 * Moose::Utils::TypeConstraints
1323 - reorganized the type constraint hierarchy, thanks
1324 to nothingmuch and chansen for his help and advice
1326 - added some tests for this
1327 - keywords are now exported with Sub::Exporter
1328 thanks to chansen for this commit
1330 * Moose::Meta::Class
1331 - due to changes in Class::MOP, we had to change
1332 construct_instance (for the better)
1334 * Moose::Meta::Attribute
1335 - due to changes in Class::MOP, we had to add the
1336 initialize_instance_slot method (it's a good thing)
1338 * Moose::Meta::TypeConstraint
1339 - added type constraint unions
1340 - added tests for this
1341 - added the is_subtype_of predicate method
1342 - added tests for this
1344 0.04 Sun. April 16th, 2006
1346 - Roles can now consume other roles
1347 - added tests for this
1348 - Roles can specify required methods now with
1349 the requires() keyword
1350 - added tests for this
1353 - ripped out much of it's guts ,.. much cleaner now
1354 - added required methods and correct handling of
1355 them in apply() for both classes and roles
1356 - added tests for this
1357 - no longer adds a does() method to consuming classes
1358 it relys on the one in Moose::Object
1359 - added roles attribute and some methods to support
1360 roles consuming roles
1362 * Moose::Meta::Attribute
1363 - added support for triggers on attributes
1364 - added tests for this
1365 - added support for does option on an attribute
1366 - added tests for this
1368 * Moose::Meta::Class
1369 - added support for attribute triggers in the
1371 - added tests for this
1374 - Moose no longer creates a subtype for your class
1375 if a subtype of the same name already exists, this
1376 should DWIM in 99.9999% of all cases
1378 * Moose::Util::TypeConstraints
1379 - fixed bug where incorrect subtype conflicts were
1381 - added test for this
1384 - this class can now be extended with 'use base' if
1385 you need it, it properly loads the metaclass class now
1386 - added test for this
1388 0.03_02 Wed. April 12, 2006
1390 - you must now explictly use Moose::Util::TypeConstraints
1391 it no longer gets exported for you automatically
1394 - new() now accepts hash-refs as well as key/value lists
1395 - added does() method to check for Roles
1396 - added tests for this
1398 * Moose::Meta::Class
1399 - added roles attribute along with the add_role() and
1401 - added tests for this
1404 - now adds a does() method to consuming classes
1405 which tests the class's hierarchy for roles
1406 - added tests for this
1408 0.03_01 Mon. April 10, 2006
1410 - added new Role recipe (no content yet, only code)
1413 - added 'with' keyword for Role support
1414 - added test and docs for this
1415 - fixed subtype quoting bug
1416 - added test for this
1420 - added test and docs
1422 * Moose::Util::TypeConstraints
1423 - added the message keyword to add custom
1424 error messages to type constraints
1427 - the meta role to support Moose::Role
1428 - added tests and docs
1430 * Moose::Meta::Class
1431 - moved a number of things from Moose.pm
1432 to here, they should have been here
1435 * Moose::Meta::Attribute
1436 - moved the attribute option macros here
1437 instead of putting them in Moose.pm
1439 * Moose::Meta::TypeConstraint
1440 - added the message attributes and the
1442 - added tests and docs for this
1444 0.03 Thurs. March 30, 2006
1446 - added the Moose::Cookbook with 5 recipes,
1447 describing all the stuff Moose can do.
1450 - fixed an issue with &extends super class loading
1451 it now captures errors and deals with inline
1452 packages correctly (bug found by mst, solution
1454 - added super/override & inner/augment features
1455 - added tests and docs for these
1458 - BUILDALL now takes a reference of the %params
1459 that are passed to &new, and passes that to
1462 * Moose::Util::TypeConstraints
1463 - Type constraints now survive runtime reloading
1464 - added test for this
1466 * Moose::Meta::Class
1467 - fixed the way attribute defaults are handled
1468 during instance construction (bug found by chansen)
1470 * Moose::Meta::Attribute
1471 - read-only attributes now actually enforce their
1472 read-only-ness (this corrected in Class::MOP as
1475 0.02 Tues. March 21, 2006
1477 - many more tests, fixing some bugs and
1479 - &extends now loads the base module with
1481 - added UNIVERSAL::require to the
1484 - each new Moose class will also create
1485 and register a subtype of Object which
1486 correspond to the new Moose class.
1487 - the 'isa' option in &has now only
1488 accepts strings, and will DWIM in
1491 * Moose::Util::TypeConstraints
1492 - added type coercion features
1493 - added tests for this
1494 - added support for this in attributes
1495 and instance construction
1497 - type construction no longer creates a
1498 function, it registers the type instead.
1499 - added several functions to get the
1503 - BUILDALL and DEMOLISHALL were broken
1504 because of a mis-named hash key, Whoops :)
1506 * Moose::Meta::Attribute
1507 - adding support for coercion in the
1508 autogenerated accessors
1510 * Moose::Meta::Class
1511 - adding support for coercion in the
1512 instance construction
1514 * Moose::Meta::TypeConstraint
1515 * Moose::Meta::TypeCoercion
1516 - type constraints and coercions are now
1517 full fledges meta-objects
1519 0.01 Wed. March 15, 2006
1520 - Moooooooooooooooooose!!!