1 Revision history for Perl extension Moose
3 0.53 Thurs. July 3, 2008
4 * Whoops, I guess I should run 'make manifest' before
5 actually releasing the module. No actual changes
6 in this release, except the fact that it includes
7 the changes that I didn't include in the last
10 0.52 Thurs. July 3, 2008
12 - added "FEATURE REQUESTS" section to the Moose docs
13 to properly direct people (stevan) (RT #34333)
14 - making 'extends' croak if it is passed a Role since
15 this is not ever something you want to do
16 (fixed by stevan, found by obra)
17 - added tests for this (stevan)
20 - adding support for DOES (as in UNIVERSAL::DOES)
24 * Moose::Meta::Attribute
25 - added legal_options_for_inheritance (wreis)
26 - added tests for this (wreis)
28 * Moose::Cookbook::Snacks::*
29 - removed some of the unfinished snacks that should
30 not have been released yet. Added some more examples
31 to the 'Keywords' snack. (stevan)
33 * Moose::Cookbook::Style
34 - added general Moose "style guide" of sorts to the
35 cookbook (nothingmuch) (RT #34335)
38 - added more BUILDARGS tests (stevan)
40 0.51 Thurs. Jun 26, 2008
42 - add unimport so "no Moose::Role" actually does
45 * Moose::Meta::Role::Application::ToRole
46 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
47 order to provide its own implementation, that method still got
48 added to the list of required methods for consumers of
49 RoleB. Now an aliased method is only added to the list of
50 required methods if the role doing the aliasing does not
51 provide its own implementation. See Recipe 11 for an example
52 of all this. (Dave Rolsky)
53 - added tests for this
55 * Moose::Meta::Method::Constructor
56 - when a single argument that wasn't a hashref was provided to
57 an immutabilized constructor, the error message was very
58 unhelpful, as opposed to the non-immutable error. Reported by
60 - added test for this (Dave Rolsky)
62 * Moose::Meta::Attribute
63 - added support for meta_attr->does("ShortAlias") (sartak)
64 - added tests for this (sartak)
65 - moved the bulk of the `handles` handling to the new
66 install_delegation method (Stevan)
69 - Added BUILDARGS, a new step in new()
71 * Moose::Meta::Role::Application::RoleSummation
72 - fix typos no one ever sees (sartak)
74 * Moose::Util::TypeConstraints
75 * Moose::Meta::TypeConstraint
76 * Moose::Meta::TypeCoercion
77 - Attempt to work around the ??{ } vs. threads issue
79 - Some null_constraint optimizations
81 0.50 Thurs. Jun 11, 2008
82 - Fixed a version number issue by bumping all modules
85 0.49 Thurs. Jun 11, 2008
86 !! This version now approx. 20-25% !!
87 !! faster with new Class::MOP 0.59 !!
89 * Moose::Meta::Attribute
90 - fixed how the is => (ro|rw) works with
91 custom defined reader, writer and accessor
93 - added docs for this (TODO).
94 - added tests for this (Thanks to Penfold)
95 - added the custom attribute alias for regular
96 Moose attributes which is "Moose"
97 - fix builder and default both being used
102 Moose::Meta::Attribute
104 Moose::Meta::Role::Composite
105 Moose::Util::TypeConstraints
106 - switched usage of reftype to ref because
110 - changing add_package_symbol to use the new
114 - fixed how DEMOLISHALL is called so that it
115 can be overrided in subclasses (thanks to Sartak)
116 - added test for this (thanks to Sartak)
118 * Moose::Util::TypeConstraints
119 - move the ClassName type check code to
120 Class::MOP::is_class_loaded (thanks to Sartak)
122 * Moose::Cookbook::Recipe11
123 - add tests for this (thanks to tokuhirom)
125 0.48 Thurs. May 29, 2008
126 (early morning release engineering)--
128 - fixing the version in Moose::Meta::Method::Destructor
129 which was causing the indexer to choke
131 0.47 Thurs. May 29, 2008
132 (late night release engineering)--
134 - fixing the version is META.yml, no functional
135 changes in this release
137 0.46 Wed. May 28, 2008
138 !! This version now approx. 20-25% !!
139 !! faster with new Class::MOP 0.57 !!
142 - some optimizations of the &initialize method
143 since it is called so often by &meta
147 - now use the get_all_package_symbols from the
148 updated Class::MOP, test suite is now 10 seconds
151 * Moose::Meta::Method::Destructor
152 - is_needed can now also be called as a class
153 method for immutablization to check if the
154 destructor object even needs to be created
157 * Moose::Meta::Method::Destructor
158 Moose::Meta::Method::Constructor
159 - added more descriptive error message to help
160 keep people from wasting time tracking an error
161 that is easily fixed by upgrading.
163 0.45 Saturday, May 24, 2008
165 - Because of work in Class::MOP 0.56, all
166 XS based functionality is now optional
167 and a Pure Perl version is supplied
168 - the CLASS_MOP_NO_XS environment variable
169 can now be used to force non-XS versions
171 - several of the packages have been tweaked
172 to take care of this, mostly we added
173 support for the package_name and name
174 variables in all the Method metaclasses
175 - before/around/after method modifiers now
176 support regexp matching of names
177 (thanks to Takatoshi Kitano)
178 - tests added for this
179 - NOTE: this only works for classes, it
180 is currently not supported in roles,
181 but, ... patches welcome
182 - All usage of Carp::confess have been replaced
183 by Carp::croak in the "keyword" functions since
184 the stack trace is usually not helpful
187 - All usage of Carp::confess have been replaced
188 by Carp::croak in the "keyword" functions since
189 the stack trace is usually not helpful
190 - The 'has' keyword for roles now accepts the
191 same array ref form that Moose.pm does
192 (has [qw/foo bar/] => (is => 'rw', ...))
193 - added test for this
195 * Moose::Meta::Attribute
196 - trigger on a ro-attribute is no longer an
197 error, as it's useful to trigger off of the
201 - added same 'add_package_symbol' fix as in
205 - does_role now handles non-Moose classes
207 - added tests for this
208 - added the 'add_method_modifier' function
209 (thanks to Takatoshi Kitano)
211 * Moose::Util::TypeConstraints
212 - subtypes of parameterizable types now are
213 themselves parameterizable types
215 * Moose::Meta::Method::Constructor
216 - fixed bug where trigger was not being
217 called by the inlined immutable
219 - added test for this (thanks to Caelum)
221 * Moose::Meta::Role::Application::ToInstance
222 - now uses the metaclass of the instance
223 (if possible) to create the anon-class
224 (thanks Jonathan Rockway)
226 * Moose::Cookbook::Recipe22
227 - added the meta-attribute trait recipe
231 - fixed hash-ordering test bug that was
232 causing occasional cpantester failures
233 - renamed the t/000_recipe/*.t tests to be
234 more descriptive (thanks to Sartak)
236 0.44 Sat. May 10, 2008
238 - made make_immutable warning cluck to
239 show where the error is (thanks mst)
242 - BUILDALL and DEMOLISHALL now call
243 ->body when looping through the
244 methods, to avoid the overloaded
246 - fixed issue where DEMOLISHALL was
247 eating the $@ values, and so not
248 working correctly, it still kind of
249 eats them, but so does vanilla perl
250 - added tests for this
252 * Moose::Cookbook::Recipe7
253 - added new recipe for immutable
254 functionality (thanks Dave Rolsky)
256 * Moose::Cookbook::Recipe9
257 - added new recipe for builder and
258 lazy_build (thanks Dave Rolsky)
260 * Moose::Cookbook::Recipe11
261 - added new recipe for method aliasing
262 and exclusion with Roles (thanks Dave Rolsky)
265 - fixed Win32 test failure (thanks spicyjack)
267 ~ removed Build.PL and Module::Build compat
268 since Module::Install has done that.
270 0.43 Wed. April, 30, 2008
272 drink more coffee before
273 doing release engineering
275 - whoops, forgot to do the smolder tests,
276 and we broke some of the custom meta-attr
277 modules. This fixes that.
279 0.42 Mon. April 28, 2008
280 - some bad tests slipped by, nothing else
281 changed in this release (cpantesters++)
283 - upped the Class::MOP dependency to 0.55
284 since we have tests which need the C3
287 0.41 Mon. April 28, 2008
288 ~~ numerous documentation updates ~~
290 - Changed all usage of die to Carp::croak for better
291 error reporting (initial patch by Tod Hagan)
294 - the make_immutable keyword is now deprecated, don't
295 use it in any new code and please fix your old code
296 as well. There will be 2 releases, and then it will
302 - refactored the way inner and super work to avoid
303 any method/@ISA cache penalty (nothingmuch)
306 - fixing &new_object to make sure trigger gets the
307 coerced value (spotted by Charles Alderman on the
309 - added test for this
311 * Moose::Meta::Method::Constructor
312 - immutable classes which had non-lazy attributes were calling
313 the default generating sub twice in the constructor. (bug
314 found by Jesse Luehrs, fixed by Dave Rolsky)
315 - added tests for this (Dave Rolsky)
316 - fix typo in initialize_body method (nothingmuch)
318 * Moose::Meta::Method::Destructor
319 - fix typo in initialize_body method (nothingmuch)
321 * Moose::Meta::Method::Overriden
322 Moose::Meta::Method::Augmented
323 - moved the logic for these into their own
324 classes (nothingmuch)
326 * Moose::Meta::Attribute
327 - inherited attributes may now be extended without
328 restriction on the type ('isa', 'does') (Sartak)
329 - added tests for this (Sartak)
330 - when an attribute property is malformed (such as lazy without
331 a default), give the name of the attribute in the error
333 - added the &applied_traits and &has_applied_traits methods
334 to allow introspection of traits
335 - added tests for this
336 - moved 'trait' and 'metaclass' argument handling to here from
338 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
339 '+foo' syntax) (nothingmuch)
340 - added tests for this (t0m)
343 - localize $@ inside DEMOLISHALL to avoid it
344 eating $@ (found by Ernesto)
345 - added test for this (thanks to Ernesto)
347 * Moose::Util::TypeConstraints
348 - &find_type_constraint now DWIMs when given an
349 type constraint object or name (nothingmuch)
350 - &find_or_create_type_constraint superseded with a number of more
352 - find_or_create_{isa,does}_type_constraint
353 - find_or_parse_type_constraint
355 * Moose::Meta::TypeConstraint
356 Moose::Meta::TypeConstraint::Class
357 Moose::Meta::TypeConstraint::Role
358 Moose::Meta::TypeConstraint::Enum
359 Moose::Meta::TypeConstraint::Union
360 Moose::Meta::TypeConstraint::Parameterized
361 - added the &equals method for comparing two type
362 constraints (nothingmuch)
363 - added tests for this (nothingmuch)
365 * Moose::Meta::TypeConstraint
366 - add the &parents method, which is just an alias to &parent.
367 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
369 * Moose::Meta::TypeConstraint::Class
370 - added the class attribute for introspection purposes
372 - added tests for this
374 * Moose::Meta::TypeConstraint::Enum
375 Moose::Meta::TypeConstraint::Role
376 - broke these out into their own classes (nothingmuch)
378 * Moose::Cookbook::Recipe*
379 - fixed references to test file locations in the POD
380 and updated up some text for new Moose features
384 - Added &resolve_metaclass_alias, a helper function for finding an actual
385 class for a short name (e.g. in the traits list)
387 0.40 Fri. March 14, 2008
388 - I hate Pod::Coverage
390 0.39 Fri. March 14, 2008
392 - documenting the use of '+name' with attributes
393 that come from recently composed roles. It makes
394 sense, people are using it, and so why not just
395 officially support it.
396 - fixing the 'extends' keyword so that it will not
397 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
400 - added the perl -Moose=+Class::Name feature to allow
401 monkeypatching of classes in one liners
404 - fixing the 'apply_all_roles' keyword so that it will not
405 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
408 - added ->create method which now supports roles (thanks to jrockway)
409 - added tests for this
410 - added ->create_anon_class which now supports roles and caching of
411 the results (thanks to jrockway)
412 - added tests for this
413 - made ->does_role a little more forgiving when it is
414 checking a Class::MOP era metaclasses.
416 * Moose::Meta::Role::Application::ToInstance
417 - it is now possible to pass extra params to be used when
418 a role is applied to an the instance (rebless_params)
419 - added tests for this
421 * Moose::Util::TypeConstraints
422 - class_type now accepts an optional second argument for a
423 custom message. POD anotated accordingly (groditi)
424 - added tests for this
425 - it is now possible to make anon-enums by passing 'enum' an
426 ARRAY ref instead of the $name => @values. Everything else
428 - added tests for this
431 - making test for using '+name' on attributes consumed
432 from a role, it works and makes sense too.
434 * Moose::Meta::Attribute
435 - fix handles so that it doesn't return nothing
436 when the method cannot be found, not sure why
437 it ever did this originally, this means we now
438 have slightly better support for AUTOLOADed
440 - added more delegation tests
441 - adding ->does method to this so as to better
442 support traits and their introspection.
443 - added tests for this
446 - localizing the Data::Dumper configurations so
447 that it does not pollute others (RT #33509)
448 - made ->does a little more forgiving when it is
449 passed Class::MOP era metaclasses.
451 0.38 Fri. Feb. 15, 2008
452 * Moose::Meta::Attribute
453 - fixed initializer to correctly do
454 type checking and coercion in the
456 - added tests for this
459 - fixed some finicky tests (thanks to konobi)
461 0.37 Thurs. Feb. 14, 2008
463 - fixed some details in Moose::init_meta
464 and its superclass handling (thanks thepler)
465 - added tests for this (thanks thepler)
466 - 'has' now dies if you don't pass in name
468 - added the 'make_immutable' keyword as a shortcut
472 Moose::Meta::Method::Constructor
473 Moose::Meta::Attribute
474 - making (init_arg => undef) work here too
475 (thanks to nothingmuch)
477 * Moose::Meta::Attribute
478 Moose::Meta::Method::Constructor
479 Moose::Meta::Method::Accessor
480 - make lazy attributes respect attr initializers (rjbs)
481 - added tests for this
483 * Moose::Util::TypeConstraints
484 Moose::Util::TypeConstraints::OptimizedConstraints
485 Moose::Meta::TypeConstraints
486 Moose::Meta::Attribute
487 Moose::Meta::Method::Constructor
488 Moose::Meta::Method::Accessor
489 - making type errors use the
490 assigned message (thanks to Sartak)
491 - added tests for this
493 * Moose::Meta::Method::Destructor
494 - making sure DESTROY gets inlined properly
495 with successive DEMOLISH calls (thanks to manito)
497 * Moose::Meta::Attribute
498 Moose::Meta::Method::Accessor
499 - fixed handling of undef with type constraints
501 - added tests for this
504 - added &get_all_init_args and &get_all_attribute_values
505 (thanks to Sartak and nothingmuch)
507 0.36 Sat. Jan. 26, 2008
509 Moose::Meta::Attribute
510 - role type tests now support when roles are
511 applied to non-Moose classes (found by ash)
512 - added tests for this (thanks to ash)
513 - couple extra tests to boost code coverage
515 * Moose::Meta::Method::Constructor
516 - improved fix for handling Class::MOP attributes
517 - added test for this
520 - handled the add_attribute($attribute_meta_object)
522 - added test for this
524 0.35 Tues. Jan. 22, 2008
525 * Moose::Meta::Method::Constructor
526 - fix to make sure even Class::MOP attributes
527 are handled correctly (Thanks to Dave Rolsky)
528 - added test for this (also Dave Rolsky)
531 - improved error message on _apply_all_roles,
532 you should now use Moose::Util::apply_all_roles
533 and you shouldnt have been using a _ prefixed
534 method in the first place ;)
536 0.34 Mon. Jan. 21, 2008
537 ~~~ more misc. doc. fixes ~~~
538 ~~ updated copyright dates ~~
540 Moose is now a postmodern object system :)
541 - (see the POD for details)
543 * <<Role System Refactoring>>
544 - this release contains a major reworking and
545 cleanup of the role system
546 - 100% backwards compat.
547 - Role application now restructured into seperate
548 classes based on type of applicants
549 - Role summation (combining of more than one role)
550 is much cleaner and anon-classes are no longer
552 - new Composite role metaclass
553 - runtime application of roles to instances
554 is now more efficient and re-uses generated
555 classes when applicable
557 * <<New Role composition features>>
558 - methods can now be excluded from a given role
560 - methods can now be aliased to another name (and
561 still retain the original as well)
563 * Moose::Util::TypeConstraints::OptimizedConstraints
564 - added this module (see above)
567 - fixed the &_process_attribute method to be called
568 by &add_attribute, so that the API is now correct
570 * Moose::Meta::Method::Accessor
571 - fixed bug when passing a list of values to
572 an accessor would get (incorrectly) ignored.
573 Thanks to Sartak for finding this ;)
574 - added tests for this (Sartak again)
576 * Moose::Meta::Method::Accessor
577 Moose::Meta::Method::Constructor
578 Moose::Meta::Attribute
579 Moose::Meta::TypeConstraint
580 Moose::Meta::TypeCoercion
581 - lots of cleanup of such things as:
583 - type constraint handling
584 - error handling/messages
585 (thanks to nothingmuch)
587 * Moose::Meta::TypeConstraint::Parameterizable
588 - added this module to support the refactor
589 in Moose::Meta::TypeConstraint::Parameterized
591 * Moose::Meta::TypeConstraint::Parameterized
592 - refactored how these types are handled so they
593 are more generic and not confined to ArrayRef
597 - shortened some file names for better VMS support (RT #32381)
599 0.33 Fri. Dec. 14, 2007
600 !! Moose now loads 2 x faster !!
601 !! with new Class::MOP 0.49 !!
603 ++ new oose.pm module to make command line
604 Moose-ness easier (see POD docs for more)
608 - several tweaks to take advantage of the
609 new method map caching in Class::MOP
611 * Moose::Meta::TypeConstraint::Parameterized
612 - allow subtypes of ArrayRef and HashRef to
613 be used as a container (sartak)
614 - added tests for this
615 - basic support for coercion to ArrayRef and
616 HashRef for containers (sartak)
617 - added tests for this
619 * Moose::Meta::TypeCoercion
620 - coercions will now create subtypes as needed
621 so you can now add coercions to parameterized
622 types without having to explictly define them
623 - added tests for this
625 * Moose::Meta::Method::Accessor
626 - allow subclasses to decide whether we need
627 to copy the value into a new variable (sartak)
629 0.32 Tues. Dec. 4, 2007
630 * Moose::Util::TypeConstraints
631 - fixing how subtype aliases of unions work
632 they should inherit the parent's coercion
633 - added tests for this
634 - you can now define multiple coercions on
635 a single type at different times instead of
636 having to do it all in one place
637 - added tests for this
639 * Moose::Meta::TypeConstraint
640 - there is now a default constraint of sub { 1 }
641 instead of Moose::Util::TypeConstraints setting
644 * Moose::Meta::TypeCoercion
645 * Moose::Meta::TypeCoercion::Union
646 - added the &has_coercion_for_type and
647 &add_type_coercions methods to support the
648 new features above (although you cannot add
649 more type coercions for Union types)
651 0.31 Mon. Nov. 26, 2007
652 * Moose::Meta::Attribute
653 - made the +attr syntax handle extending types with
654 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
655 now works if the original foo is an ArrayRef.
656 - added tests for this.
657 - delegation now works even if the attribute does not
658 have a reader method using the get_read_method_ref
659 method from Class::MOP::Attribute.
660 - added tests for this
661 - added docs for this
663 * Moose::Util::TypeConstraints
664 - passing no "additional attribute info" to
665 &find_or_create_type_constraint will no longer
666 attempt to create an __ANON__ type for you,
667 instead it will just return undef.
668 - added docs for this
670 0.30 Fri. Nov. 23, 2007
671 * Moose::Meta::Method::Constructor
672 -builder related bug in inlined constructor. (groditi)
674 * Moose::Meta::Method::Accessor
675 - genereate unnecessary calls to predicates and refactor
676 code generation for runtime speed (groditi)
678 * Moose::Util::TypeConstraints
679 - fix ClassName constraint to introspect symbol table (mst)
680 - added more tests for this (mst)
681 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
683 - added tests for this
686 - adding the link to Recipie 11 (written by Sartak)
687 - adding test for SYNOPSIS code
690 - New tests for builder bug. Upon instantiation, if an
691 attribute had a builder, no value and was not lazy the
692 builder default was not getting run, oops. (groditi)
694 0.29 Tues. Nov. 13, 2007
695 * Moose::Meta::Attribute
696 - Fix error message on missing builder method (groditi)
698 * Moose::Meta::Method::Accessor
699 - Fix error message on missing builder method (groditi)
702 - Add test to check for the correct error message when
703 builder method is missing (groditi)
705 0.28 Tues. Nov. 13, 2007
706 - 0.27 packaged incorrectly (groditi)
708 0.27 Tues. Nov. 13, 2007
709 * Moose::Meta::Attribute
710 - Added support for the new builder option (groditi)
711 - Added support for lazy_build option (groditi)
712 - Changed slot initialization for predicate changes (groditi)
714 * Moose::Meta::Method::Accessor
715 - Added support for lazy_build option (groditi)
716 - Fix inline methods to work with corrected predicate
719 * Moose::Meta::Method::Constructor
720 - Added support for lazy_build option (groditi)
723 - tests for builder and lazy_build (groditi)
725 * fixing some misc. bits in the docs that
726 got mentioned on CPAN Forum & perlmonks
729 - fixed how required methods are handled
730 when they encounter overriden or modified
731 methods from a class (thanks to confound).
732 - added tests for this
734 * Moose::Util::TypeConstraint
735 - fixed the type notation parser so that
736 the | always creates a union and so is
737 no longer a valid type char (thanks to
738 konobi, mugwump and #moose for working
740 - added more tests for this
742 0.26 Thurs. Sept. 27, 2007
745 * Parameterized Types
746 We now support parameterized collection types, such as:
747 ArrayRef[Int] # array or integers
748 HashRef[Object] # a hash with object values
749 They can also be nested:
750 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
751 And work with the type unions as well:
752 ArrayRef[Int | Str] # array of integers of strings
754 * Better Framework Extendability
755 Moose.pm is now "extendable" such that it is now much
756 easier to extend the framework and add your own keywords
757 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
758 section of the Moose.pm docs.
761 In an effort to begin documenting some of the various
762 details of Moose as well as some common idioms, we have
763 created Moose::Cookbook::Snacks as a place to find
764 small (easily digestable) nuggets of Moose code.
767 ~ Several doc updates/cleanup thanks to castaway ~
769 - converted build system to use Module::Install instead of
770 Module::Build (thanks to jrockway)
773 - added all the meta classes to the immutable list and
774 set it to inline the accessors
775 - fix import to allow Sub::Exporter like { into => }
776 and { into_level => } (perigrin)
777 - exposed and documented init_meta() to allow better
778 embedding and extending of Moose (perigrin)
781 - complete re-organization of the test suite
782 - added some new tests as well
783 - finally re-enabled the Moose::POOP test since
784 the new version of DBM::Deep now works again
788 - fixed very odd and very nasty recursion bug with
790 - added tests for this (eilara)
792 * Moose::Meta::Attribute
793 Moose::Meta::Method::Constructor
794 Moose::Meta::Method::Accessor
795 - fixed issue with overload::Overloaded getting called
796 on non-blessed items. (RT #29269)
797 - added tests for this
799 * Moose::Meta::Method::Accessor
800 - fixed issue with generated accessor code making
801 assumptions about hash based classes (thanks to dexter)
803 * Moose::Coookbook::Snacks
804 - these are bits of documentation, not quite as big as
805 Recipes but which have no clear place in the module docs.
806 So they are Snacks! (horray for castaway++)
808 * Moose::Cookbook::Recipe4
809 - updated it to use the new ArrayRef[MyType] construct
810 - updated the accompanying test as well
812 +++ Major Refactor of the Type Constraint system +++
813 +++ with new features added as well +++
815 * Moose::Util::TypeConstraint
816 - no longer uses package variable to keep track of
817 the type constraints, now uses the an instance of
818 Moose::Meta::TypeConstraint::Registry to do it
819 - added more sophisticated type notation parsing
821 - added tests for this
823 * Moose::Meta::TypeConstraint
824 - some minor adjustments to make subclassing easier
825 - added the package_defined_in attribute so that we
826 can track where the type constraints are created
828 * Moose::Meta::TypeConstraint::Union
829 - this is now been refactored to be a subclass of
830 Moose::Meta::TypeConstraint
832 * Moose::Meta::TypeCoercion::Union
833 - this has been added to service the newly refactored
834 Moose::Meta::TypeConstraint::Union and is itself
835 a subclass of Moose::Meta::TypeCoercion
837 * Moose::Meta::TypeConstraint::Parameterized
838 - added this module (taken from MooseX::AttributeHelpers)
839 to help construct nested collection types
840 - added tests for this
842 * Moose::Meta::TypeConstraint::Registry
843 - added this class to keep track of type constraints
845 0.25 Mon. Aug. 13, 2007
847 - Documentation update to reference Moose::Util::TypeConstraints
848 under 'isa' in 'has' for how to define a new type
851 * Moose::Meta::Attribute
852 - required attributes now will no longer accept undef
853 from the constructor, even if there is a default and lazy
854 - added tests for this
855 - default subroutines must return a value which passes the
857 - added tests for this
859 * Moose::Meta::Attribute
860 * Moose::Meta::Method::Constructor
861 * Moose::Meta::Method::Accessor
862 - type-constraint tests now handle overloaded objects correctly
864 - added tests for this (thanks to EvanCarroll)
866 * Moose::Meta::TypeConstraint::Union
867 - added (has_)hand_optimized_constraint to this class so that
868 it behaves as the regular Moose::Meta::TypeConstraint does.
871 - large refactoring of this code
872 - added several more tests
873 - tests for subtle conflict resolition issues
874 added, but not currently running
877 * Moose::Cookbook::Recipe7
878 - added new recipe for augment/inner functionality
880 - added test for this
883 - a formal definition of roles (still in progress)
886 - utilities for easier working with Moose classes
887 - added tests for these
890 - This contains Moose specific test functions
891 - added tests for these
893 0.24 Tues. July 3, 2007
894 ~ Some doc updates/cleanup ~
896 * Moose::Meta::Attribute
897 - added support for roles to be given as parameters
898 to the 'handles' option.
899 - added tests and docs for this
900 - the has '+foo' attribute form now accepts changes to
901 the lazy option, and the addition of a handles option
902 (but not changing the handles option)
903 - added tests and docs for this
906 - required methods are now fetched using find_method_by_name
907 so that required methods can come from superclasses
908 - adjusted tests for this
910 0.23 Mon. June 18, 2007
911 * Moose::Meta::Method::Constructor
912 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
914 - Modify make_immutable to work with the new Class::MOP immutable
915 mechanism + POD + very basic test (groditi)
916 * Moose::Meta::Attribute
917 - Fix handles to use goto() so that caller() comes out properly on
918 the other side (perigrin)
920 0.22 Thurs. May 31, 2007
921 * Moose::Util::TypeConstraints
922 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
923 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
924 prototypes for functions
925 - added the ClassName type constraint, this checks for strings
926 which will respond true to ->isa(UNIVERSAL).
927 - added tests and docs for this
928 - subtyping just in name now works correctly by making the
929 default for where be { 1 }
930 - added test for this
932 * Moose::Meta::Method::Accessor
933 - coerce and lazy now work together correctly, thanks to
934 merlyn for finding this bug
935 - tests added for this
936 - fix reader presedence bug in Moose::Meta::Attribute + tests
939 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
940 a HASH-ref and missed. This produces better error messages then
941 having it die cause undef is not a HASH.
942 - added tests for this
944 0.21 Thursday, May 2nd, 2007
946 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
947 - modified unimport to remove super and inner along with the rest
948 - altered unimport tests to handle this
951 - altered super export to populate SUPER_SLOT
954 - altered augment and override modifier application to use *_SLOT
955 - modified tests for these to unimport one test class each to test
958 - fixed issue where custom attribute metaclasses
959 where not handled correctly in roles
960 - added tests for this
963 - fixed issue where extending metaclasses with
964 roles would blow up. Thanks to Aankhen`` for
965 finding this insidious error, and it's solution.
967 ~~ lots of spelling and grammer fixes in the docs,
968 many many thanks to rlb3 and Aankhen for these :)
970 0.20 Friday, April 6th, 2007
971 >> I messed up the SKIP logic in one test
972 so this release is just to fix that.
975 - 'has' now also accepts an ARRAY ref
976 to create multiple attrs (see docs)
977 (thanks to konobi for this)
978 - added tests and docs
980 0.19 Thurs. April 5th, 2007
981 ~~ More documentation updates ~~
983 * Moose::Util::TypeConstraints
984 - 'type' now supports messages as well
985 thanks to phaylon for finding this
986 - added tests for this
987 - added &list_all_type_constraints and
988 &list_all_builtin_type_constraints
989 functions to facilitate introspection.
991 * Moose::Meta::Attribute
992 - fixed regexp 'handles' declarations
993 to build the list of delegated methods
994 correctly (and not override important
995 things like &new) thanks to ashleyb
997 - added tests and docs for this
998 - added the 'documentation' attributes
999 so that you can actually document your
1000 attributes and inspect them through the
1002 - added tests and docs for this
1004 * Moose::Meta::Class
1005 - when loading custom attribute metaclasses
1006 it will first look in for the class in the
1007 Moose::Meta::Attribute::Custom::$name, and
1008 then default to just loading $name.
1009 - added tests and docs for this
1011 * Moose::Meta::TypeConstraint
1012 - type constraints now stringify to their names.
1013 - added test for this
1016 - added tests to assure we work with Module::Refresh
1017 - added stricter test skip logic in the Moose POOP
1018 test, ask Rob Kinyon why.
1019 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1021 0.18 Sat. March 10, 2007
1022 ~~ Many, many documentation updates ~~
1025 - We now use Class::MOP::load_class to
1027 - added tests to show types and subtypes
1028 working with Declare::Constraints::Simple
1029 and Test::Deep as constraint engines.
1032 !! You must have Class::MOP 0.37_001 !!
1033 !! for this developer release to work !!
1035 This release was primarily adding the immutable
1036 feature to Moose. An immutable class is one which
1037 you promise not to alter. When you set the class
1038 as immutable it will perform various bits of
1039 memoization and inline certain part of the code
1040 (constructors, destructors and accessors). This
1041 minimizes (and in some cases totally eliminates)
1042 one of Moose's biggest performance hits. This
1043 feature is not on by default, and is 100% optional.
1044 It has several configurable bits as well, so you
1045 can pick and choose to your specific needs.
1047 The changes involved in this were fairly wide and
1048 highly specific, but 100% backwards compatible, so
1049 I am not going to enumerate them here. If you are
1050 truely interested in what was changed, please do
1053 0.17 Tues. Nov. 14, 2006
1054 * Moose::Meta::Method::Accessor
1055 - bugfix for read-only accessors which
1056 are have a type constraint and lazy.
1057 Thanks to chansen for finding it.
1059 0.16 Tues. Nov. 14, 2006
1061 There are some speed improvements in this release,
1062 but they are only the begining, so stay tuned.
1065 - BUILDALL and DEMOLISHALL no longer get
1066 called unless they actually need to be.
1067 This gave us a signifigant speed boost
1068 for the cases when there is no BUILD or
1069 DEMOLISH method present.
1071 * Moose::Util::TypeConstraints
1072 * Moose::Meta::TypeConstraint
1073 - added an 'optimize_as' option to the
1074 type constraint, which allows for a
1075 hand optimized version of the type
1076 constraint to be used when possible.
1077 - Any internally created type constraints
1078 now provide an optimized version as well.
1080 0.15 Sun. Nov. 5, 2006
1082 This version of Moose *must* have Class::MOP 0.36 in order
1083 to work correctly. A number of small internal tweaks have
1084 been made in order to be compatible with that release.
1086 * Moose::Util::TypeConstraints
1087 - added &unimport so that you can clean out
1088 your class namespace of these exported
1091 * Moose::Meta::Class
1092 - fixed minor issue which occasionally
1093 comes up during global destruction
1095 - moved Moose::Meta::Method::Overriden into
1099 - moved Moose::Meta::Role::Method into
1102 * Moose::Meta::Attribute
1103 - changed how we do type checks so that
1104 we reduce the overall cost, but still
1107 - moved accessor generation methods to
1108 Moose::Meta::Method::Accessor to
1109 conform to the API changes from
1112 * Moose::Meta::TypeConstraint
1113 - changed how constraints are compiled
1114 so that we do less recursion and more
1115 iteration. This makes the type check
1117 - moved Moose::Meta::TypeConstraint::Union
1120 * Moose::Meta::Method::Accessor
1121 - created this from methods formerly found in
1122 Moose::Meta::Attribute
1124 * Moose::Meta::Role::Method
1125 - moved this from Moose::Meta::Role
1127 * Moose::Meta::Method::Overriden
1128 - moved this from Moose::Meta::Class
1130 * Moose::Meta::TypeConstraint::Union
1131 - moved this from Moose::Meta::TypeConstraint
1133 0.14 Mon. Oct. 9, 2006
1135 * Moose::Meta::Attribute
1136 - fixed lazy attributes which were not getting
1137 checked with the type constraint (thanks ashley)
1138 - added tests for this
1139 - removed the over-enthusiastic DWIMery of the
1140 automatic ArrayRef and HashRef defaults, it
1141 broke predicates in an ugly way.
1142 - removed tests for this
1144 0.13 Sat. Sept. 30, 2006
1146 This version of Moose *must* have Class::MOP 0.35 in order
1147 to work correctly. A number of small internal tweaks have
1148 been made in order to be compatible with that release.
1151 - Removed the use of UNIVERSAL::require to be a better
1152 symbol table citizen and remove a dependency
1153 (thanks Adam Kennedy)
1155 **~~ removed experimental & undocumented feature ~~**
1156 - commented out the 'method' and 'self' keywords, see the
1157 comments for more info.
1160 - added a FAQ and WTF files to document frequently
1161 asked questions and common problems
1163 * Moose::Util::TypeConstraints
1164 - added GlobRef and FileHandle type constraint
1165 - added tests for this
1167 * Moose::Meta::Attribute
1168 - if your attribute 'isa' ArrayRef of HashRef, and you have
1169 not explicitly set a default, then make the default DWIM.
1170 This will also work for subtypes of ArrayRef and HashRef
1172 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1173 - new test added for this (thanks to ashley)
1176 - added basic support for runtime role composition
1177 but this is still *highly experimental*, so feedback
1178 is much appreciated :)
1179 - added tests for this
1181 * Moose::Meta::TypeConstraint
1182 - the type constraint now handles the coercion process
1183 through delegation, this is to support the coercion
1186 * Moose::Meta::TypeConstraint::Union
1187 - it is now possible for coercions to be performed
1189 - added tests for this (thanks to konobi)
1191 * Moose::Meta::TypeCoercion
1192 - properly capturing error when type constraint
1196 - Scalar::Util 1.18 is bad on Win32, so temporarily
1197 only require version 1.17 for Win32 and cygwin.
1198 (thanks Adam Kennedy)
1200 0.12 Sat. Sept. 1, 2006
1202 - Recipe5 (subtypes & coercion) has been written
1205 - fixed "bad meta" error message to be more descriptive
1206 - fixed &unimport to not remove the &inner and &super
1207 keywords because we need to localize them.
1208 - fixed number of spelling/grammer issues, thanks Theory :)
1210 **~~ experimental & undocumented feature ~~**
1211 - added the method and self keywords, they are basically
1212 just sugar, and they may not stay around.
1215 - added &dump method to easily Data::Dumper
1218 * Moose::Meta::TypeConstraint
1219 - added the &is_a_type_of method to check both the current
1220 and the subtype of a method (similar to &isa with classes)
1223 - this is now a subclass of Class::MOP::Module, and no longer
1224 creates the _role_meta ugliness of before.
1225 - fixed tests to reflect this change
1227 0.11 Wed. July 12, 2006
1229 - added an &unimport method to remove all the keywords
1230 that Moose will import, simply add 'no Moose' to the
1231 bottom of your class file.
1234 - fixed some test failures caused by a forgotten test
1237 0.10 Thurs. July 6, 2006
1239 - improved error message when loading modules so
1240 it is less confusing when you load a role.
1241 - added &calculate_all_roles method to
1242 Moose::Meta::Class and Moose::Meta::Role
1245 This module has been tested against Class::MOP 0.30
1246 but it does not yet utilize the optimizations
1247 it makes available. Stay tuned for that ;)
1249 0.09_03 Fri. June 23, 2006
1250 ++ DEVELOPER RELEASE ++
1252 - 'use strict' and 'use warnings' are no longer
1253 needed in Moose classes, Moose itself will
1254 turn them on for you.
1255 - added tests for this
1256 - moved code from exported subs to private methods
1257 in Moose::Meta::Class
1260 - as with Moose, strict and warnings are
1261 automatically turned on for you.
1262 - added tests for this
1265 - now handles an edge case for override errors
1266 - added tests for this
1267 - added some more edge case tests
1269 0.09_02 Tues. May 16, 2006
1270 ++ DEVELOPER RELEASE ++
1272 - added prototypes to the exported subs
1276 - added prototypes to the exported subs
1279 * Moose::Util::TypeConstraints
1280 - cleaned up prototypes for the subs
1283 0.09_01 Fri. May 12, 2006
1284 ++ DEVELOPER RELEASE ++
1285 - This release works in combination with
1286 Class::MOP 0.29_01, it is a developer
1287 release because it uses the a new
1288 instance sub-protocol and a fairly
1289 complete Role implementation. It has
1290 not yet been optimized, so it slower
1291 the the previous CPAN version. This
1292 release also lacks good updated docs,
1293 the official release will have updated docs.
1296 - refactored the keyword exports
1297 - 'with' now checks Role validaity and
1298 accepts more than one Role at a time
1299 - 'extends' makes metaclass adjustments as
1300 needed to ensure metaclass compatability
1303 - refactored the keyword exports
1304 - 'with' now checks Role validaity and
1305 accepts more than one Role at a time
1307 * Moose::Util::TypeConstraints
1308 - added the 'enum' keyword for simple
1309 string enumerations which can be used as
1311 - see example of usage in t/202_example.t
1314 - more careful checking of params to new()
1317 - much work done on the role composition
1318 - many new tests for conflict detection
1319 and composition edge cases
1320 - not enough documentation, I suggest
1321 looking at the tests
1323 * Moose::Meta::Instance
1324 - added new Instance metaclass to support
1325 the new Class::MOP instance protocol
1327 * Moose::Meta::Class
1328 - some small changes to support the new
1330 - some small additions to support Roles
1332 * Moose::Meta::Attribute
1333 - some improvements to the accessor generation code
1335 - some small changes to support the new
1337 - (still somewhat) experimental delegation support
1338 with the 'handles' option
1339 - added several tests for this
1340 - no docs for this yet
1342 0.05 Thurs. April 27, 2006
1344 - keywords are now exported with Sub::Exporter
1345 thanks to chansen for this commit
1346 - has keyword now takes a 'metaclass' option
1347 to support custom attribute meta-classes
1348 on a per-attribute basis
1349 - added tests for this
1350 - the 'has' keyword not accepts inherited slot
1351 specifications (has '+foo'). This is still an
1352 experimental feature and probably not finished
1353 see t/038_attribute_inherited_slot_specs.t for
1354 more details, or ask about it on #moose
1355 - added tests for this
1358 - keywords are now exported with Sub::Exporter
1360 * Moose::Utils::TypeConstraints
1361 - reorganized the type constraint hierarchy, thanks
1362 to nothingmuch and chansen for his help and advice
1364 - added some tests for this
1365 - keywords are now exported with Sub::Exporter
1366 thanks to chansen for this commit
1368 * Moose::Meta::Class
1369 - due to changes in Class::MOP, we had to change
1370 construct_instance (for the better)
1372 * Moose::Meta::Attribute
1373 - due to changes in Class::MOP, we had to add the
1374 initialize_instance_slot method (it's a good thing)
1376 * Moose::Meta::TypeConstraint
1377 - added type constraint unions
1378 - added tests for this
1379 - added the is_subtype_of predicate method
1380 - added tests for this
1382 0.04 Sun. April 16th, 2006
1384 - Roles can now consume other roles
1385 - added tests for this
1386 - Roles can specify required methods now with
1387 the requires() keyword
1388 - added tests for this
1391 - ripped out much of it's guts ,.. much cleaner now
1392 - added required methods and correct handling of
1393 them in apply() for both classes and roles
1394 - added tests for this
1395 - no longer adds a does() method to consuming classes
1396 it relys on the one in Moose::Object
1397 - added roles attribute and some methods to support
1398 roles consuming roles
1400 * Moose::Meta::Attribute
1401 - added support for triggers on attributes
1402 - added tests for this
1403 - added support for does option on an attribute
1404 - added tests for this
1406 * Moose::Meta::Class
1407 - added support for attribute triggers in the
1409 - added tests for this
1412 - Moose no longer creates a subtype for your class
1413 if a subtype of the same name already exists, this
1414 should DWIM in 99.9999% of all cases
1416 * Moose::Util::TypeConstraints
1417 - fixed bug where incorrect subtype conflicts were
1419 - added test for this
1422 - this class can now be extended with 'use base' if
1423 you need it, it properly loads the metaclass class now
1424 - added test for this
1426 0.03_02 Wed. April 12, 2006
1428 - you must now explictly use Moose::Util::TypeConstraints
1429 it no longer gets exported for you automatically
1432 - new() now accepts hash-refs as well as key/value lists
1433 - added does() method to check for Roles
1434 - added tests for this
1436 * Moose::Meta::Class
1437 - added roles attribute along with the add_role() and
1439 - added tests for this
1442 - now adds a does() method to consuming classes
1443 which tests the class's hierarchy for roles
1444 - added tests for this
1446 0.03_01 Mon. April 10, 2006
1448 - added new Role recipe (no content yet, only code)
1451 - added 'with' keyword for Role support
1452 - added test and docs for this
1453 - fixed subtype quoting bug
1454 - added test for this
1458 - added test and docs
1460 * Moose::Util::TypeConstraints
1461 - added the message keyword to add custom
1462 error messages to type constraints
1465 - the meta role to support Moose::Role
1466 - added tests and docs
1468 * Moose::Meta::Class
1469 - moved a number of things from Moose.pm
1470 to here, they should have been here
1473 * Moose::Meta::Attribute
1474 - moved the attribute option macros here
1475 instead of putting them in Moose.pm
1477 * Moose::Meta::TypeConstraint
1478 - added the message attributes and the
1480 - added tests and docs for this
1482 0.03 Thurs. March 30, 2006
1484 - added the Moose::Cookbook with 5 recipes,
1485 describing all the stuff Moose can do.
1488 - fixed an issue with &extends super class loading
1489 it now captures errors and deals with inline
1490 packages correctly (bug found by mst, solution
1492 - added super/override & inner/augment features
1493 - added tests and docs for these
1496 - BUILDALL now takes a reference of the %params
1497 that are passed to &new, and passes that to
1500 * Moose::Util::TypeConstraints
1501 - Type constraints now survive runtime reloading
1502 - added test for this
1504 * Moose::Meta::Class
1505 - fixed the way attribute defaults are handled
1506 during instance construction (bug found by chansen)
1508 * Moose::Meta::Attribute
1509 - read-only attributes now actually enforce their
1510 read-only-ness (this corrected in Class::MOP as
1513 0.02 Tues. March 21, 2006
1515 - many more tests, fixing some bugs and
1517 - &extends now loads the base module with
1519 - added UNIVERSAL::require to the
1522 - each new Moose class will also create
1523 and register a subtype of Object which
1524 correspond to the new Moose class.
1525 - the 'isa' option in &has now only
1526 accepts strings, and will DWIM in
1529 * Moose::Util::TypeConstraints
1530 - added type coercion features
1531 - added tests for this
1532 - added support for this in attributes
1533 and instance construction
1535 - type construction no longer creates a
1536 function, it registers the type instead.
1537 - added several functions to get the
1541 - BUILDALL and DEMOLISHALL were broken
1542 because of a mis-named hash key, Whoops :)
1544 * Moose::Meta::Attribute
1545 - adding support for coercion in the
1546 autogenerated accessors
1548 * Moose::Meta::Class
1549 - adding support for coercion in the
1550 instance construction
1552 * Moose::Meta::TypeConstraint
1553 * Moose::Meta::TypeCoercion
1554 - type constraints and coercions are now
1555 full fledges meta-objects
1557 0.01 Wed. March 15, 2006
1558 - Moooooooooooooooooose!!!