1 Revision history for Perl extension Moose
5 0.53 Thurs. July 3, 2008
6 * Whoops, I guess I should run 'make manifest' before
7 actually releasing the module. No actual changes
8 in this release, except the fact that it includes
9 the changes that I didn't include in the last
12 0.52 Thurs. July 3, 2008
14 - added "FEATURE REQUESTS" section to the Moose docs
15 to properly direct people (stevan) (RT #34333)
16 - making 'extends' croak if it is passed a Role since
17 this is not ever something you want to do
18 (fixed by stevan, found by obra)
19 - added tests for this (stevan)
22 - adding support for DOES (as in UNIVERSAL::DOES)
26 * Moose::Meta::Attribute
27 - added legal_options_for_inheritance (wreis)
28 - added tests for this (wreis)
30 * Moose::Cookbook::Snacks::*
31 - removed some of the unfinished snacks that should
32 not have been released yet. Added some more examples
33 to the 'Keywords' snack. (stevan)
35 * Moose::Cookbook::Style
36 - added general Moose "style guide" of sorts to the
37 cookbook (nothingmuch) (RT #34335)
40 - added more BUILDARGS tests (stevan)
42 0.51 Thurs. Jun 26, 2008
44 - add unimport so "no Moose::Role" actually does
47 * Moose::Meta::Role::Application::ToRole
48 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
49 order to provide its own implementation, that method still got
50 added to the list of required methods for consumers of
51 RoleB. Now an aliased method is only added to the list of
52 required methods if the role doing the aliasing does not
53 provide its own implementation. See Recipe 11 for an example
54 of all this. (Dave Rolsky)
55 - added tests for this
57 * Moose::Meta::Method::Constructor
58 - when a single argument that wasn't a hashref was provided to
59 an immutabilized constructor, the error message was very
60 unhelpful, as opposed to the non-immutable error. Reported by
62 - added test for this (Dave Rolsky)
64 * Moose::Meta::Attribute
65 - added support for meta_attr->does("ShortAlias") (sartak)
66 - added tests for this (sartak)
67 - moved the bulk of the `handles` handling to the new
68 install_delegation method (Stevan)
71 - Added BUILDARGS, a new step in new()
73 * Moose::Meta::Role::Application::RoleSummation
74 - fix typos no one ever sees (sartak)
76 * Moose::Util::TypeConstraints
77 * Moose::Meta::TypeConstraint
78 * Moose::Meta::TypeCoercion
79 - Attempt to work around the ??{ } vs. threads issue
81 - Some null_constraint optimizations
83 0.50 Thurs. Jun 11, 2008
84 - Fixed a version number issue by bumping all modules
87 0.49 Thurs. Jun 11, 2008
88 !! This version now approx. 20-25% !!
89 !! faster with new Class::MOP 0.59 !!
91 * Moose::Meta::Attribute
92 - fixed how the is => (ro|rw) works with
93 custom defined reader, writer and accessor
95 - added docs for this (TODO).
96 - added tests for this (Thanks to Penfold)
97 - added the custom attribute alias for regular
98 Moose attributes which is "Moose"
99 - fix builder and default both being used
104 Moose::Meta::Attribute
106 Moose::Meta::Role::Composite
107 Moose::Util::TypeConstraints
108 - switched usage of reftype to ref because
112 - changing add_package_symbol to use the new
116 - fixed how DEMOLISHALL is called so that it
117 can be overrided in subclasses (thanks to Sartak)
118 - added test for this (thanks to Sartak)
120 * Moose::Util::TypeConstraints
121 - move the ClassName type check code to
122 Class::MOP::is_class_loaded (thanks to Sartak)
124 * Moose::Cookbook::Recipe11
125 - add tests for this (thanks to tokuhirom)
127 0.48 Thurs. May 29, 2008
128 (early morning release engineering)--
130 - fixing the version in Moose::Meta::Method::Destructor
131 which was causing the indexer to choke
133 0.47 Thurs. May 29, 2008
134 (late night release engineering)--
136 - fixing the version is META.yml, no functional
137 changes in this release
139 0.46 Wed. May 28, 2008
140 !! This version now approx. 20-25% !!
141 !! faster with new Class::MOP 0.57 !!
144 - some optimizations of the &initialize method
145 since it is called so often by &meta
149 - now use the get_all_package_symbols from the
150 updated Class::MOP, test suite is now 10 seconds
153 * Moose::Meta::Method::Destructor
154 - is_needed can now also be called as a class
155 method for immutablization to check if the
156 destructor object even needs to be created
159 * Moose::Meta::Method::Destructor
160 Moose::Meta::Method::Constructor
161 - added more descriptive error message to help
162 keep people from wasting time tracking an error
163 that is easily fixed by upgrading.
165 0.45 Saturday, May 24, 2008
167 - Because of work in Class::MOP 0.56, all
168 XS based functionality is now optional
169 and a Pure Perl version is supplied
170 - the CLASS_MOP_NO_XS environment variable
171 can now be used to force non-XS versions
173 - several of the packages have been tweaked
174 to take care of this, mostly we added
175 support for the package_name and name
176 variables in all the Method metaclasses
177 - before/around/after method modifiers now
178 support regexp matching of names
179 (thanks to Takatoshi Kitano)
180 - tests added for this
181 - NOTE: this only works for classes, it
182 is currently not supported in roles,
183 but, ... patches welcome
184 - All usage of Carp::confess have been replaced
185 by Carp::croak in the "keyword" functions since
186 the stack trace is usually not helpful
189 - All usage of Carp::confess have been replaced
190 by Carp::croak in the "keyword" functions since
191 the stack trace is usually not helpful
192 - The 'has' keyword for roles now accepts the
193 same array ref form that Moose.pm does
194 (has [qw/foo bar/] => (is => 'rw', ...))
195 - added test for this
197 * Moose::Meta::Attribute
198 - trigger on a ro-attribute is no longer an
199 error, as it's useful to trigger off of the
203 - added same 'add_package_symbol' fix as in
207 - does_role now handles non-Moose classes
209 - added tests for this
210 - added the 'add_method_modifier' function
211 (thanks to Takatoshi Kitano)
213 * Moose::Util::TypeConstraints
214 - subtypes of parameterizable types now are
215 themselves parameterizable types
217 * Moose::Meta::Method::Constructor
218 - fixed bug where trigger was not being
219 called by the inlined immutable
221 - added test for this (thanks to Caelum)
223 * Moose::Meta::Role::Application::ToInstance
224 - now uses the metaclass of the instance
225 (if possible) to create the anon-class
226 (thanks Jonathan Rockway)
228 * Moose::Cookbook::Recipe22
229 - added the meta-attribute trait recipe
233 - fixed hash-ordering test bug that was
234 causing occasional cpantester failures
235 - renamed the t/000_recipe/*.t tests to be
236 more descriptive (thanks to Sartak)
238 0.44 Sat. May 10, 2008
240 - made make_immutable warning cluck to
241 show where the error is (thanks mst)
244 - BUILDALL and DEMOLISHALL now call
245 ->body when looping through the
246 methods, to avoid the overloaded
248 - fixed issue where DEMOLISHALL was
249 eating the $@ values, and so not
250 working correctly, it still kind of
251 eats them, but so does vanilla perl
252 - added tests for this
254 * Moose::Cookbook::Recipe7
255 - added new recipe for immutable
256 functionality (thanks Dave Rolsky)
258 * Moose::Cookbook::Recipe9
259 - added new recipe for builder and
260 lazy_build (thanks Dave Rolsky)
262 * Moose::Cookbook::Recipe11
263 - added new recipe for method aliasing
264 and exclusion with Roles (thanks Dave Rolsky)
267 - fixed Win32 test failure (thanks spicyjack)
269 ~ removed Build.PL and Module::Build compat
270 since Module::Install has done that.
272 0.43 Wed. April, 30, 2008
274 drink more coffee before
275 doing release engineering
277 - whoops, forgot to do the smolder tests,
278 and we broke some of the custom meta-attr
279 modules. This fixes that.
281 0.42 Mon. April 28, 2008
282 - some bad tests slipped by, nothing else
283 changed in this release (cpantesters++)
285 - upped the Class::MOP dependency to 0.55
286 since we have tests which need the C3
289 0.41 Mon. April 28, 2008
290 ~~ numerous documentation updates ~~
292 - Changed all usage of die to Carp::croak for better
293 error reporting (initial patch by Tod Hagan)
296 - the make_immutable keyword is now deprecated, don't
297 use it in any new code and please fix your old code
298 as well. There will be 2 releases, and then it will
304 - refactored the way inner and super work to avoid
305 any method/@ISA cache penalty (nothingmuch)
308 - fixing &new_object to make sure trigger gets the
309 coerced value (spotted by Charles Alderman on the
311 - added test for this
313 * Moose::Meta::Method::Constructor
314 - immutable classes which had non-lazy attributes were calling
315 the default generating sub twice in the constructor. (bug
316 found by Jesse Luehrs, fixed by Dave Rolsky)
317 - added tests for this (Dave Rolsky)
318 - fix typo in initialize_body method (nothingmuch)
320 * Moose::Meta::Method::Destructor
321 - fix typo in initialize_body method (nothingmuch)
323 * Moose::Meta::Method::Overriden
324 Moose::Meta::Method::Augmented
325 - moved the logic for these into their own
326 classes (nothingmuch)
328 * Moose::Meta::Attribute
329 - inherited attributes may now be extended without
330 restriction on the type ('isa', 'does') (Sartak)
331 - added tests for this (Sartak)
332 - when an attribute property is malformed (such as lazy without
333 a default), give the name of the attribute in the error
335 - added the &applied_traits and &has_applied_traits methods
336 to allow introspection of traits
337 - added tests for this
338 - moved 'trait' and 'metaclass' argument handling to here from
340 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
341 '+foo' syntax) (nothingmuch)
342 - added tests for this (t0m)
345 - localize $@ inside DEMOLISHALL to avoid it
346 eating $@ (found by Ernesto)
347 - added test for this (thanks to Ernesto)
349 * Moose::Util::TypeConstraints
350 - &find_type_constraint now DWIMs when given an
351 type constraint object or name (nothingmuch)
352 - &find_or_create_type_constraint superseded with a number of more
354 - find_or_create_{isa,does}_type_constraint
355 - find_or_parse_type_constraint
357 * Moose::Meta::TypeConstraint
358 Moose::Meta::TypeConstraint::Class
359 Moose::Meta::TypeConstraint::Role
360 Moose::Meta::TypeConstraint::Enum
361 Moose::Meta::TypeConstraint::Union
362 Moose::Meta::TypeConstraint::Parameterized
363 - added the &equals method for comparing two type
364 constraints (nothingmuch)
365 - added tests for this (nothingmuch)
367 * Moose::Meta::TypeConstraint
368 - add the &parents method, which is just an alias to &parent.
369 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
371 * Moose::Meta::TypeConstraint::Class
372 - added the class attribute for introspection purposes
374 - added tests for this
376 * Moose::Meta::TypeConstraint::Enum
377 Moose::Meta::TypeConstraint::Role
378 - broke these out into their own classes (nothingmuch)
380 * Moose::Cookbook::Recipe*
381 - fixed references to test file locations in the POD
382 and updated up some text for new Moose features
386 - Added &resolve_metaclass_alias, a helper function for finding an actual
387 class for a short name (e.g. in the traits list)
389 0.40 Fri. March 14, 2008
390 - I hate Pod::Coverage
392 0.39 Fri. March 14, 2008
394 - documenting the use of '+name' with attributes
395 that come from recently composed roles. It makes
396 sense, people are using it, and so why not just
397 officially support it.
398 - fixing the 'extends' keyword so that it will not
399 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
402 - added the perl -Moose=+Class::Name feature to allow
403 monkeypatching of classes in one liners
406 - fixing the 'apply_all_roles' keyword so that it will not
407 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
410 - added ->create method which now supports roles (thanks to jrockway)
411 - added tests for this
412 - added ->create_anon_class which now supports roles and caching of
413 the results (thanks to jrockway)
414 - added tests for this
415 - made ->does_role a little more forgiving when it is
416 checking a Class::MOP era metaclasses.
418 * Moose::Meta::Role::Application::ToInstance
419 - it is now possible to pass extra params to be used when
420 a role is applied to an the instance (rebless_params)
421 - added tests for this
423 * Moose::Util::TypeConstraints
424 - class_type now accepts an optional second argument for a
425 custom message. POD anotated accordingly (groditi)
426 - added tests for this
427 - it is now possible to make anon-enums by passing 'enum' an
428 ARRAY ref instead of the $name => @values. Everything else
430 - added tests for this
433 - making test for using '+name' on attributes consumed
434 from a role, it works and makes sense too.
436 * Moose::Meta::Attribute
437 - fix handles so that it doesn't return nothing
438 when the method cannot be found, not sure why
439 it ever did this originally, this means we now
440 have slightly better support for AUTOLOADed
442 - added more delegation tests
443 - adding ->does method to this so as to better
444 support traits and their introspection.
445 - added tests for this
448 - localizing the Data::Dumper configurations so
449 that it does not pollute others (RT #33509)
450 - made ->does a little more forgiving when it is
451 passed Class::MOP era metaclasses.
453 0.38 Fri. Feb. 15, 2008
454 * Moose::Meta::Attribute
455 - fixed initializer to correctly do
456 type checking and coercion in the
458 - added tests for this
461 - fixed some finicky tests (thanks to konobi)
463 0.37 Thurs. Feb. 14, 2008
465 - fixed some details in Moose::init_meta
466 and its superclass handling (thanks thepler)
467 - added tests for this (thanks thepler)
468 - 'has' now dies if you don't pass in name
470 - added the 'make_immutable' keyword as a shortcut
474 Moose::Meta::Method::Constructor
475 Moose::Meta::Attribute
476 - making (init_arg => undef) work here too
477 (thanks to nothingmuch)
479 * Moose::Meta::Attribute
480 Moose::Meta::Method::Constructor
481 Moose::Meta::Method::Accessor
482 - make lazy attributes respect attr initializers (rjbs)
483 - added tests for this
485 * Moose::Util::TypeConstraints
486 Moose::Util::TypeConstraints::OptimizedConstraints
487 Moose::Meta::TypeConstraints
488 Moose::Meta::Attribute
489 Moose::Meta::Method::Constructor
490 Moose::Meta::Method::Accessor
491 - making type errors use the
492 assigned message (thanks to Sartak)
493 - added tests for this
495 * Moose::Meta::Method::Destructor
496 - making sure DESTROY gets inlined properly
497 with successive DEMOLISH calls (thanks to manito)
499 * Moose::Meta::Attribute
500 Moose::Meta::Method::Accessor
501 - fixed handling of undef with type constraints
503 - added tests for this
506 - added &get_all_init_args and &get_all_attribute_values
507 (thanks to Sartak and nothingmuch)
509 0.36 Sat. Jan. 26, 2008
511 Moose::Meta::Attribute
512 - role type tests now support when roles are
513 applied to non-Moose classes (found by ash)
514 - added tests for this (thanks to ash)
515 - couple extra tests to boost code coverage
517 * Moose::Meta::Method::Constructor
518 - improved fix for handling Class::MOP attributes
519 - added test for this
522 - handled the add_attribute($attribute_meta_object)
524 - added test for this
526 0.35 Tues. Jan. 22, 2008
527 * Moose::Meta::Method::Constructor
528 - fix to make sure even Class::MOP attributes
529 are handled correctly (Thanks to Dave Rolsky)
530 - added test for this (also Dave Rolsky)
533 - improved error message on _apply_all_roles,
534 you should now use Moose::Util::apply_all_roles
535 and you shouldnt have been using a _ prefixed
536 method in the first place ;)
538 0.34 Mon. Jan. 21, 2008
539 ~~~ more misc. doc. fixes ~~~
540 ~~ updated copyright dates ~~
542 Moose is now a postmodern object system :)
543 - (see the POD for details)
545 * <<Role System Refactoring>>
546 - this release contains a major reworking and
547 cleanup of the role system
548 - 100% backwards compat.
549 - Role application now restructured into seperate
550 classes based on type of applicants
551 - Role summation (combining of more than one role)
552 is much cleaner and anon-classes are no longer
554 - new Composite role metaclass
555 - runtime application of roles to instances
556 is now more efficient and re-uses generated
557 classes when applicable
559 * <<New Role composition features>>
560 - methods can now be excluded from a given role
562 - methods can now be aliased to another name (and
563 still retain the original as well)
565 * Moose::Util::TypeConstraints::OptimizedConstraints
566 - added this module (see above)
569 - fixed the &_process_attribute method to be called
570 by &add_attribute, so that the API is now correct
572 * Moose::Meta::Method::Accessor
573 - fixed bug when passing a list of values to
574 an accessor would get (incorrectly) ignored.
575 Thanks to Sartak for finding this ;)
576 - added tests for this (Sartak again)
578 * Moose::Meta::Method::Accessor
579 Moose::Meta::Method::Constructor
580 Moose::Meta::Attribute
581 Moose::Meta::TypeConstraint
582 Moose::Meta::TypeCoercion
583 - lots of cleanup of such things as:
585 - type constraint handling
586 - error handling/messages
587 (thanks to nothingmuch)
589 * Moose::Meta::TypeConstraint::Parameterizable
590 - added this module to support the refactor
591 in Moose::Meta::TypeConstraint::Parameterized
593 * Moose::Meta::TypeConstraint::Parameterized
594 - refactored how these types are handled so they
595 are more generic and not confined to ArrayRef
599 - shortened some file names for better VMS support (RT #32381)
601 0.33 Fri. Dec. 14, 2007
602 !! Moose now loads 2 x faster !!
603 !! with new Class::MOP 0.49 !!
605 ++ new oose.pm module to make command line
606 Moose-ness easier (see POD docs for more)
610 - several tweaks to take advantage of the
611 new method map caching in Class::MOP
613 * Moose::Meta::TypeConstraint::Parameterized
614 - allow subtypes of ArrayRef and HashRef to
615 be used as a container (sartak)
616 - added tests for this
617 - basic support for coercion to ArrayRef and
618 HashRef for containers (sartak)
619 - added tests for this
621 * Moose::Meta::TypeCoercion
622 - coercions will now create subtypes as needed
623 so you can now add coercions to parameterized
624 types without having to explictly define them
625 - added tests for this
627 * Moose::Meta::Method::Accessor
628 - allow subclasses to decide whether we need
629 to copy the value into a new variable (sartak)
631 0.32 Tues. Dec. 4, 2007
632 * Moose::Util::TypeConstraints
633 - fixing how subtype aliases of unions work
634 they should inherit the parent's coercion
635 - added tests for this
636 - you can now define multiple coercions on
637 a single type at different times instead of
638 having to do it all in one place
639 - added tests for this
641 * Moose::Meta::TypeConstraint
642 - there is now a default constraint of sub { 1 }
643 instead of Moose::Util::TypeConstraints setting
646 * Moose::Meta::TypeCoercion
647 * Moose::Meta::TypeCoercion::Union
648 - added the &has_coercion_for_type and
649 &add_type_coercions methods to support the
650 new features above (although you cannot add
651 more type coercions for Union types)
653 0.31 Mon. Nov. 26, 2007
654 * Moose::Meta::Attribute
655 - made the +attr syntax handle extending types with
656 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
657 now works if the original foo is an ArrayRef.
658 - added tests for this.
659 - delegation now works even if the attribute does not
660 have a reader method using the get_read_method_ref
661 method from Class::MOP::Attribute.
662 - added tests for this
663 - added docs for this
665 * Moose::Util::TypeConstraints
666 - passing no "additional attribute info" to
667 &find_or_create_type_constraint will no longer
668 attempt to create an __ANON__ type for you,
669 instead it will just return undef.
670 - added docs for this
672 0.30 Fri. Nov. 23, 2007
673 * Moose::Meta::Method::Constructor
674 -builder related bug in inlined constructor. (groditi)
676 * Moose::Meta::Method::Accessor
677 - genereate unnecessary calls to predicates and refactor
678 code generation for runtime speed (groditi)
680 * Moose::Util::TypeConstraints
681 - fix ClassName constraint to introspect symbol table (mst)
682 - added more tests for this (mst)
683 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
685 - added tests for this
688 - adding the link to Recipie 11 (written by Sartak)
689 - adding test for SYNOPSIS code
692 - New tests for builder bug. Upon instantiation, if an
693 attribute had a builder, no value and was not lazy the
694 builder default was not getting run, oops. (groditi)
696 0.29 Tues. Nov. 13, 2007
697 * Moose::Meta::Attribute
698 - Fix error message on missing builder method (groditi)
700 * Moose::Meta::Method::Accessor
701 - Fix error message on missing builder method (groditi)
704 - Add test to check for the correct error message when
705 builder method is missing (groditi)
707 0.28 Tues. Nov. 13, 2007
708 - 0.27 packaged incorrectly (groditi)
710 0.27 Tues. Nov. 13, 2007
711 * Moose::Meta::Attribute
712 - Added support for the new builder option (groditi)
713 - Added support for lazy_build option (groditi)
714 - Changed slot initialization for predicate changes (groditi)
716 * Moose::Meta::Method::Accessor
717 - Added support for lazy_build option (groditi)
718 - Fix inline methods to work with corrected predicate
721 * Moose::Meta::Method::Constructor
722 - Added support for lazy_build option (groditi)
725 - tests for builder and lazy_build (groditi)
727 * fixing some misc. bits in the docs that
728 got mentioned on CPAN Forum & perlmonks
731 - fixed how required methods are handled
732 when they encounter overriden or modified
733 methods from a class (thanks to confound).
734 - added tests for this
736 * Moose::Util::TypeConstraint
737 - fixed the type notation parser so that
738 the | always creates a union and so is
739 no longer a valid type char (thanks to
740 konobi, mugwump and #moose for working
742 - added more tests for this
744 0.26 Thurs. Sept. 27, 2007
747 * Parameterized Types
748 We now support parameterized collection types, such as:
749 ArrayRef[Int] # array or integers
750 HashRef[Object] # a hash with object values
751 They can also be nested:
752 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
753 And work with the type unions as well:
754 ArrayRef[Int | Str] # array of integers of strings
756 * Better Framework Extendability
757 Moose.pm is now "extendable" such that it is now much
758 easier to extend the framework and add your own keywords
759 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
760 section of the Moose.pm docs.
763 In an effort to begin documenting some of the various
764 details of Moose as well as some common idioms, we have
765 created Moose::Cookbook::Snacks as a place to find
766 small (easily digestable) nuggets of Moose code.
769 ~ Several doc updates/cleanup thanks to castaway ~
771 - converted build system to use Module::Install instead of
772 Module::Build (thanks to jrockway)
775 - added all the meta classes to the immutable list and
776 set it to inline the accessors
777 - fix import to allow Sub::Exporter like { into => }
778 and { into_level => } (perigrin)
779 - exposed and documented init_meta() to allow better
780 embedding and extending of Moose (perigrin)
783 - complete re-organization of the test suite
784 - added some new tests as well
785 - finally re-enabled the Moose::POOP test since
786 the new version of DBM::Deep now works again
790 - fixed very odd and very nasty recursion bug with
792 - added tests for this (eilara)
794 * Moose::Meta::Attribute
795 Moose::Meta::Method::Constructor
796 Moose::Meta::Method::Accessor
797 - fixed issue with overload::Overloaded getting called
798 on non-blessed items. (RT #29269)
799 - added tests for this
801 * Moose::Meta::Method::Accessor
802 - fixed issue with generated accessor code making
803 assumptions about hash based classes (thanks to dexter)
805 * Moose::Coookbook::Snacks
806 - these are bits of documentation, not quite as big as
807 Recipes but which have no clear place in the module docs.
808 So they are Snacks! (horray for castaway++)
810 * Moose::Cookbook::Recipe4
811 - updated it to use the new ArrayRef[MyType] construct
812 - updated the accompanying test as well
814 +++ Major Refactor of the Type Constraint system +++
815 +++ with new features added as well +++
817 * Moose::Util::TypeConstraint
818 - no longer uses package variable to keep track of
819 the type constraints, now uses the an instance of
820 Moose::Meta::TypeConstraint::Registry to do it
821 - added more sophisticated type notation parsing
823 - added tests for this
825 * Moose::Meta::TypeConstraint
826 - some minor adjustments to make subclassing easier
827 - added the package_defined_in attribute so that we
828 can track where the type constraints are created
830 * Moose::Meta::TypeConstraint::Union
831 - this is now been refactored to be a subclass of
832 Moose::Meta::TypeConstraint
834 * Moose::Meta::TypeCoercion::Union
835 - this has been added to service the newly refactored
836 Moose::Meta::TypeConstraint::Union and is itself
837 a subclass of Moose::Meta::TypeCoercion
839 * Moose::Meta::TypeConstraint::Parameterized
840 - added this module (taken from MooseX::AttributeHelpers)
841 to help construct nested collection types
842 - added tests for this
844 * Moose::Meta::TypeConstraint::Registry
845 - added this class to keep track of type constraints
847 0.25 Mon. Aug. 13, 2007
849 - Documentation update to reference Moose::Util::TypeConstraints
850 under 'isa' in 'has' for how to define a new type
853 * Moose::Meta::Attribute
854 - required attributes now will no longer accept undef
855 from the constructor, even if there is a default and lazy
856 - added tests for this
857 - default subroutines must return a value which passes the
859 - added tests for this
861 * Moose::Meta::Attribute
862 * Moose::Meta::Method::Constructor
863 * Moose::Meta::Method::Accessor
864 - type-constraint tests now handle overloaded objects correctly
866 - added tests for this (thanks to EvanCarroll)
868 * Moose::Meta::TypeConstraint::Union
869 - added (has_)hand_optimized_constraint to this class so that
870 it behaves as the regular Moose::Meta::TypeConstraint does.
873 - large refactoring of this code
874 - added several more tests
875 - tests for subtle conflict resolition issues
876 added, but not currently running
879 * Moose::Cookbook::Recipe7
880 - added new recipe for augment/inner functionality
882 - added test for this
885 - a formal definition of roles (still in progress)
888 - utilities for easier working with Moose classes
889 - added tests for these
892 - This contains Moose specific test functions
893 - added tests for these
895 0.24 Tues. July 3, 2007
896 ~ Some doc updates/cleanup ~
898 * Moose::Meta::Attribute
899 - added support for roles to be given as parameters
900 to the 'handles' option.
901 - added tests and docs for this
902 - the has '+foo' attribute form now accepts changes to
903 the lazy option, and the addition of a handles option
904 (but not changing the handles option)
905 - added tests and docs for this
908 - required methods are now fetched using find_method_by_name
909 so that required methods can come from superclasses
910 - adjusted tests for this
912 0.23 Mon. June 18, 2007
913 * Moose::Meta::Method::Constructor
914 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
916 - Modify make_immutable to work with the new Class::MOP immutable
917 mechanism + POD + very basic test (groditi)
918 * Moose::Meta::Attribute
919 - Fix handles to use goto() so that caller() comes out properly on
920 the other side (perigrin)
922 0.22 Thurs. May 31, 2007
923 * Moose::Util::TypeConstraints
924 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
925 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
926 prototypes for functions
927 - added the ClassName type constraint, this checks for strings
928 which will respond true to ->isa(UNIVERSAL).
929 - added tests and docs for this
930 - subtyping just in name now works correctly by making the
931 default for where be { 1 }
932 - added test for this
934 * Moose::Meta::Method::Accessor
935 - coerce and lazy now work together correctly, thanks to
936 merlyn for finding this bug
937 - tests added for this
938 - fix reader presedence bug in Moose::Meta::Attribute + tests
941 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
942 a HASH-ref and missed. This produces better error messages then
943 having it die cause undef is not a HASH.
944 - added tests for this
946 0.21 Thursday, May 2nd, 2007
948 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
949 - modified unimport to remove super and inner along with the rest
950 - altered unimport tests to handle this
953 - altered super export to populate SUPER_SLOT
956 - altered augment and override modifier application to use *_SLOT
957 - modified tests for these to unimport one test class each to test
960 - fixed issue where custom attribute metaclasses
961 where not handled correctly in roles
962 - added tests for this
965 - fixed issue where extending metaclasses with
966 roles would blow up. Thanks to Aankhen`` for
967 finding this insidious error, and it's solution.
969 ~~ lots of spelling and grammer fixes in the docs,
970 many many thanks to rlb3 and Aankhen for these :)
972 0.20 Friday, April 6th, 2007
973 >> I messed up the SKIP logic in one test
974 so this release is just to fix that.
977 - 'has' now also accepts an ARRAY ref
978 to create multiple attrs (see docs)
979 (thanks to konobi for this)
980 - added tests and docs
982 0.19 Thurs. April 5th, 2007
983 ~~ More documentation updates ~~
985 * Moose::Util::TypeConstraints
986 - 'type' now supports messages as well
987 thanks to phaylon for finding this
988 - added tests for this
989 - added &list_all_type_constraints and
990 &list_all_builtin_type_constraints
991 functions to facilitate introspection.
993 * Moose::Meta::Attribute
994 - fixed regexp 'handles' declarations
995 to build the list of delegated methods
996 correctly (and not override important
997 things like &new) thanks to ashleyb
999 - added tests and docs for this
1000 - added the 'documentation' attributes
1001 so that you can actually document your
1002 attributes and inspect them through the
1004 - added tests and docs for this
1006 * Moose::Meta::Class
1007 - when loading custom attribute metaclasses
1008 it will first look in for the class in the
1009 Moose::Meta::Attribute::Custom::$name, and
1010 then default to just loading $name.
1011 - added tests and docs for this
1013 * Moose::Meta::TypeConstraint
1014 - type constraints now stringify to their names.
1015 - added test for this
1018 - added tests to assure we work with Module::Refresh
1019 - added stricter test skip logic in the Moose POOP
1020 test, ask Rob Kinyon why.
1021 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1023 0.18 Sat. March 10, 2007
1024 ~~ Many, many documentation updates ~~
1027 - We now use Class::MOP::load_class to
1029 - added tests to show types and subtypes
1030 working with Declare::Constraints::Simple
1031 and Test::Deep as constraint engines.
1034 !! You must have Class::MOP 0.37_001 !!
1035 !! for this developer release to work !!
1037 This release was primarily adding the immutable
1038 feature to Moose. An immutable class is one which
1039 you promise not to alter. When you set the class
1040 as immutable it will perform various bits of
1041 memoization and inline certain part of the code
1042 (constructors, destructors and accessors). This
1043 minimizes (and in some cases totally eliminates)
1044 one of Moose's biggest performance hits. This
1045 feature is not on by default, and is 100% optional.
1046 It has several configurable bits as well, so you
1047 can pick and choose to your specific needs.
1049 The changes involved in this were fairly wide and
1050 highly specific, but 100% backwards compatible, so
1051 I am not going to enumerate them here. If you are
1052 truely interested in what was changed, please do
1055 0.17 Tues. Nov. 14, 2006
1056 * Moose::Meta::Method::Accessor
1057 - bugfix for read-only accessors which
1058 are have a type constraint and lazy.
1059 Thanks to chansen for finding it.
1061 0.16 Tues. Nov. 14, 2006
1063 There are some speed improvements in this release,
1064 but they are only the begining, so stay tuned.
1067 - BUILDALL and DEMOLISHALL no longer get
1068 called unless they actually need to be.
1069 This gave us a signifigant speed boost
1070 for the cases when there is no BUILD or
1071 DEMOLISH method present.
1073 * Moose::Util::TypeConstraints
1074 * Moose::Meta::TypeConstraint
1075 - added an 'optimize_as' option to the
1076 type constraint, which allows for a
1077 hand optimized version of the type
1078 constraint to be used when possible.
1079 - Any internally created type constraints
1080 now provide an optimized version as well.
1082 0.15 Sun. Nov. 5, 2006
1084 This version of Moose *must* have Class::MOP 0.36 in order
1085 to work correctly. A number of small internal tweaks have
1086 been made in order to be compatible with that release.
1088 * Moose::Util::TypeConstraints
1089 - added &unimport so that you can clean out
1090 your class namespace of these exported
1093 * Moose::Meta::Class
1094 - fixed minor issue which occasionally
1095 comes up during global destruction
1097 - moved Moose::Meta::Method::Overriden into
1101 - moved Moose::Meta::Role::Method into
1104 * Moose::Meta::Attribute
1105 - changed how we do type checks so that
1106 we reduce the overall cost, but still
1109 - moved accessor generation methods to
1110 Moose::Meta::Method::Accessor to
1111 conform to the API changes from
1114 * Moose::Meta::TypeConstraint
1115 - changed how constraints are compiled
1116 so that we do less recursion and more
1117 iteration. This makes the type check
1119 - moved Moose::Meta::TypeConstraint::Union
1122 * Moose::Meta::Method::Accessor
1123 - created this from methods formerly found in
1124 Moose::Meta::Attribute
1126 * Moose::Meta::Role::Method
1127 - moved this from Moose::Meta::Role
1129 * Moose::Meta::Method::Overriden
1130 - moved this from Moose::Meta::Class
1132 * Moose::Meta::TypeConstraint::Union
1133 - moved this from Moose::Meta::TypeConstraint
1135 0.14 Mon. Oct. 9, 2006
1137 * Moose::Meta::Attribute
1138 - fixed lazy attributes which were not getting
1139 checked with the type constraint (thanks ashley)
1140 - added tests for this
1141 - removed the over-enthusiastic DWIMery of the
1142 automatic ArrayRef and HashRef defaults, it
1143 broke predicates in an ugly way.
1144 - removed tests for this
1146 0.13 Sat. Sept. 30, 2006
1148 This version of Moose *must* have Class::MOP 0.35 in order
1149 to work correctly. A number of small internal tweaks have
1150 been made in order to be compatible with that release.
1153 - Removed the use of UNIVERSAL::require to be a better
1154 symbol table citizen and remove a dependency
1155 (thanks Adam Kennedy)
1157 **~~ removed experimental & undocumented feature ~~**
1158 - commented out the 'method' and 'self' keywords, see the
1159 comments for more info.
1162 - added a FAQ and WTF files to document frequently
1163 asked questions and common problems
1165 * Moose::Util::TypeConstraints
1166 - added GlobRef and FileHandle type constraint
1167 - added tests for this
1169 * Moose::Meta::Attribute
1170 - if your attribute 'isa' ArrayRef of HashRef, and you have
1171 not explicitly set a default, then make the default DWIM.
1172 This will also work for subtypes of ArrayRef and HashRef
1174 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1175 - new test added for this (thanks to ashley)
1178 - added basic support for runtime role composition
1179 but this is still *highly experimental*, so feedback
1180 is much appreciated :)
1181 - added tests for this
1183 * Moose::Meta::TypeConstraint
1184 - the type constraint now handles the coercion process
1185 through delegation, this is to support the coercion
1188 * Moose::Meta::TypeConstraint::Union
1189 - it is now possible for coercions to be performed
1191 - added tests for this (thanks to konobi)
1193 * Moose::Meta::TypeCoercion
1194 - properly capturing error when type constraint
1198 - Scalar::Util 1.18 is bad on Win32, so temporarily
1199 only require version 1.17 for Win32 and cygwin.
1200 (thanks Adam Kennedy)
1202 0.12 Sat. Sept. 1, 2006
1204 - Recipe5 (subtypes & coercion) has been written
1207 - fixed "bad meta" error message to be more descriptive
1208 - fixed &unimport to not remove the &inner and &super
1209 keywords because we need to localize them.
1210 - fixed number of spelling/grammer issues, thanks Theory :)
1212 **~~ experimental & undocumented feature ~~**
1213 - added the method and self keywords, they are basically
1214 just sugar, and they may not stay around.
1217 - added &dump method to easily Data::Dumper
1220 * Moose::Meta::TypeConstraint
1221 - added the &is_a_type_of method to check both the current
1222 and the subtype of a method (similar to &isa with classes)
1225 - this is now a subclass of Class::MOP::Module, and no longer
1226 creates the _role_meta ugliness of before.
1227 - fixed tests to reflect this change
1229 0.11 Wed. July 12, 2006
1231 - added an &unimport method to remove all the keywords
1232 that Moose will import, simply add 'no Moose' to the
1233 bottom of your class file.
1236 - fixed some test failures caused by a forgotten test
1239 0.10 Thurs. July 6, 2006
1241 - improved error message when loading modules so
1242 it is less confusing when you load a role.
1243 - added &calculate_all_roles method to
1244 Moose::Meta::Class and Moose::Meta::Role
1247 This module has been tested against Class::MOP 0.30
1248 but it does not yet utilize the optimizations
1249 it makes available. Stay tuned for that ;)
1251 0.09_03 Fri. June 23, 2006
1252 ++ DEVELOPER RELEASE ++
1254 - 'use strict' and 'use warnings' are no longer
1255 needed in Moose classes, Moose itself will
1256 turn them on for you.
1257 - added tests for this
1258 - moved code from exported subs to private methods
1259 in Moose::Meta::Class
1262 - as with Moose, strict and warnings are
1263 automatically turned on for you.
1264 - added tests for this
1267 - now handles an edge case for override errors
1268 - added tests for this
1269 - added some more edge case tests
1271 0.09_02 Tues. May 16, 2006
1272 ++ DEVELOPER RELEASE ++
1274 - added prototypes to the exported subs
1278 - added prototypes to the exported subs
1281 * Moose::Util::TypeConstraints
1282 - cleaned up prototypes for the subs
1285 0.09_01 Fri. May 12, 2006
1286 ++ DEVELOPER RELEASE ++
1287 - This release works in combination with
1288 Class::MOP 0.29_01, it is a developer
1289 release because it uses the a new
1290 instance sub-protocol and a fairly
1291 complete Role implementation. It has
1292 not yet been optimized, so it slower
1293 the the previous CPAN version. This
1294 release also lacks good updated docs,
1295 the official release will have updated docs.
1298 - refactored the keyword exports
1299 - 'with' now checks Role validaity and
1300 accepts more than one Role at a time
1301 - 'extends' makes metaclass adjustments as
1302 needed to ensure metaclass compatability
1305 - refactored the keyword exports
1306 - 'with' now checks Role validaity and
1307 accepts more than one Role at a time
1309 * Moose::Util::TypeConstraints
1310 - added the 'enum' keyword for simple
1311 string enumerations which can be used as
1313 - see example of usage in t/202_example.t
1316 - more careful checking of params to new()
1319 - much work done on the role composition
1320 - many new tests for conflict detection
1321 and composition edge cases
1322 - not enough documentation, I suggest
1323 looking at the tests
1325 * Moose::Meta::Instance
1326 - added new Instance metaclass to support
1327 the new Class::MOP instance protocol
1329 * Moose::Meta::Class
1330 - some small changes to support the new
1332 - some small additions to support Roles
1334 * Moose::Meta::Attribute
1335 - some improvements to the accessor generation code
1337 - some small changes to support the new
1339 - (still somewhat) experimental delegation support
1340 with the 'handles' option
1341 - added several tests for this
1342 - no docs for this yet
1344 0.05 Thurs. April 27, 2006
1346 - keywords are now exported with Sub::Exporter
1347 thanks to chansen for this commit
1348 - has keyword now takes a 'metaclass' option
1349 to support custom attribute meta-classes
1350 on a per-attribute basis
1351 - added tests for this
1352 - the 'has' keyword not accepts inherited slot
1353 specifications (has '+foo'). This is still an
1354 experimental feature and probably not finished
1355 see t/038_attribute_inherited_slot_specs.t for
1356 more details, or ask about it on #moose
1357 - added tests for this
1360 - keywords are now exported with Sub::Exporter
1362 * Moose::Utils::TypeConstraints
1363 - reorganized the type constraint hierarchy, thanks
1364 to nothingmuch and chansen for his help and advice
1366 - added some tests for this
1367 - keywords are now exported with Sub::Exporter
1368 thanks to chansen for this commit
1370 * Moose::Meta::Class
1371 - due to changes in Class::MOP, we had to change
1372 construct_instance (for the better)
1374 * Moose::Meta::Attribute
1375 - due to changes in Class::MOP, we had to add the
1376 initialize_instance_slot method (it's a good thing)
1378 * Moose::Meta::TypeConstraint
1379 - added type constraint unions
1380 - added tests for this
1381 - added the is_subtype_of predicate method
1382 - added tests for this
1384 0.04 Sun. April 16th, 2006
1386 - Roles can now consume other roles
1387 - added tests for this
1388 - Roles can specify required methods now with
1389 the requires() keyword
1390 - added tests for this
1393 - ripped out much of it's guts ,.. much cleaner now
1394 - added required methods and correct handling of
1395 them in apply() for both classes and roles
1396 - added tests for this
1397 - no longer adds a does() method to consuming classes
1398 it relys on the one in Moose::Object
1399 - added roles attribute and some methods to support
1400 roles consuming roles
1402 * Moose::Meta::Attribute
1403 - added support for triggers on attributes
1404 - added tests for this
1405 - added support for does option on an attribute
1406 - added tests for this
1408 * Moose::Meta::Class
1409 - added support for attribute triggers in the
1411 - added tests for this
1414 - Moose no longer creates a subtype for your class
1415 if a subtype of the same name already exists, this
1416 should DWIM in 99.9999% of all cases
1418 * Moose::Util::TypeConstraints
1419 - fixed bug where incorrect subtype conflicts were
1421 - added test for this
1424 - this class can now be extended with 'use base' if
1425 you need it, it properly loads the metaclass class now
1426 - added test for this
1428 0.03_02 Wed. April 12, 2006
1430 - you must now explictly use Moose::Util::TypeConstraints
1431 it no longer gets exported for you automatically
1434 - new() now accepts hash-refs as well as key/value lists
1435 - added does() method to check for Roles
1436 - added tests for this
1438 * Moose::Meta::Class
1439 - added roles attribute along with the add_role() and
1441 - added tests for this
1444 - now adds a does() method to consuming classes
1445 which tests the class's hierarchy for roles
1446 - added tests for this
1448 0.03_01 Mon. April 10, 2006
1450 - added new Role recipe (no content yet, only code)
1453 - added 'with' keyword for Role support
1454 - added test and docs for this
1455 - fixed subtype quoting bug
1456 - added test for this
1460 - added test and docs
1462 * Moose::Util::TypeConstraints
1463 - added the message keyword to add custom
1464 error messages to type constraints
1467 - the meta role to support Moose::Role
1468 - added tests and docs
1470 * Moose::Meta::Class
1471 - moved a number of things from Moose.pm
1472 to here, they should have been here
1475 * Moose::Meta::Attribute
1476 - moved the attribute option macros here
1477 instead of putting them in Moose.pm
1479 * Moose::Meta::TypeConstraint
1480 - added the message attributes and the
1482 - added tests and docs for this
1484 0.03 Thurs. March 30, 2006
1486 - added the Moose::Cookbook with 5 recipes,
1487 describing all the stuff Moose can do.
1490 - fixed an issue with &extends super class loading
1491 it now captures errors and deals with inline
1492 packages correctly (bug found by mst, solution
1494 - added super/override & inner/augment features
1495 - added tests and docs for these
1498 - BUILDALL now takes a reference of the %params
1499 that are passed to &new, and passes that to
1502 * Moose::Util::TypeConstraints
1503 - Type constraints now survive runtime reloading
1504 - added test for this
1506 * Moose::Meta::Class
1507 - fixed the way attribute defaults are handled
1508 during instance construction (bug found by chansen)
1510 * Moose::Meta::Attribute
1511 - read-only attributes now actually enforce their
1512 read-only-ness (this corrected in Class::MOP as
1515 0.02 Tues. March 21, 2006
1517 - many more tests, fixing some bugs and
1519 - &extends now loads the base module with
1521 - added UNIVERSAL::require to the
1524 - each new Moose class will also create
1525 and register a subtype of Object which
1526 correspond to the new Moose class.
1527 - the 'isa' option in &has now only
1528 accepts strings, and will DWIM in
1531 * Moose::Util::TypeConstraints
1532 - added type coercion features
1533 - added tests for this
1534 - added support for this in attributes
1535 and instance construction
1537 - type construction no longer creates a
1538 function, it registers the type instead.
1539 - added several functions to get the
1543 - BUILDALL and DEMOLISHALL were broken
1544 because of a mis-named hash key, Whoops :)
1546 * Moose::Meta::Attribute
1547 - adding support for coercion in the
1548 autogenerated accessors
1550 * Moose::Meta::Class
1551 - adding support for coercion in the
1552 instance construction
1554 * Moose::Meta::TypeConstraint
1555 * Moose::Meta::TypeCoercion
1556 - type constraints and coercions are now
1557 full fledges meta-objects
1559 0.01 Wed. March 15, 2006
1560 - Moooooooooooooooooose!!!