1 Revision history for Perl extension Moose
5 - Because of work in Class::MOP 0.56, all
6 XS based functionality is now optional
7 and a Pure Perl version is supplied
8 - the CLASS_MOP_NO_XS environment variable
9 can now be used to force non-XS versions
11 - several of the packages have been tweaked
12 to take care of this, mostly we added
13 support for the package_name and name
14 variables in all the Method metaclasses
15 - before/around/after method modifiers now
16 support regexp matching of names
17 (thanks to Takatoshi Kitano)
18 - tests added for this
21 - added same 'add_package_symbol' fix as in
25 - does_role now handles non-Moose classes
27 - added tests for this
28 - added the 'add_method_modifier' function
29 (thanks to Takatoshi Kitano)
31 * Moose::Util::TypeConstraints
32 - subtypes of parameterizable types now are
33 themselves parameterizable types
35 * Moose::Meta::Method::Constructor
36 - fixed bug where trigger was not being
37 called by the inlined immutable
39 - added test for this (thanks to Caelum)
41 * Moose::Meta::Role::Application::ToInstance
42 - now uses the metaclass of the instance
43 (if possible) to create the anon-class
44 (thanks Jonathan Rockway)
47 - fixed hash-ordering test bug that was
48 causing occasional cpantester failures
50 0.44 Sat. May 10, 2008
52 - made make_immutable warning cluck to
53 show where the error is (thanks mst)
56 - BUILDALL and DEMOLISHALL now call
57 ->body when looping through the
58 methods, to avoid the overloaded
60 - fixed issue where DEMOLISHALL was
61 eating the $@ values, and so not
62 working correctly, it still kind of
63 eats them, but so does vanilla perl
64 - added tests for this
66 * Moose::Cookbook::Recipe7
67 - added new recipe for immutable
68 functionality (thanks Dave Rolsky)
70 * Moose::Cookbook::Recipe9
71 - added new recipe for builder and
72 lazy_build (thanks Dave Rolsky)
74 * Moose::Cookbook::Recipe11
75 - added new recipe for method aliasing
76 and exclusion with Roles (thanks Dave Rolsky)
79 - fixed Win32 test failure (thanks spicyjack)
81 ~ removed Build.PL and Module::Build compat
82 since Module::Install has done that.
84 0.43 Wed. April, 30, 2008
86 drink more coffee before
87 doing release engineering
89 - whoops, forgot to do the smolder tests,
90 and we broke some of the custom meta-attr
91 modules. This fixes that.
93 0.42 Mon. April 28, 2008
94 - some bad tests slipped by, nothing else
95 changed in this release (cpantesters++)
97 - upped the Class::MOP dependency to 0.55
98 since we have tests which need the C3
101 0.41 Mon. April 28, 2008
102 ~~ numerous documentation updates ~~
104 - Changed all usage of die to Carp::croak for better
105 error reporting (initial patch by Tod Hagan)
108 - the make_immutable keyword is now deprecated, don't
109 use it in any new code and please fix your old code
110 as well. There will be 2 releases, and then it will
116 - refactored the way inner and super work to avoid
117 any method/@ISA cache penalty (nothingmuch)
120 - fixing &new_object to make sure trigger gets the
121 coerced value (spotted by Charles Alderman on the
123 - added test for this
125 * Moose::Meta::Method::Constructor
126 - immutable classes which had non-lazy attributes were calling
127 the default generating sub twice in the constructor. (bug
128 found by Jesse Luehrs, fixed by Dave Rolsky)
129 - added tests for this (Dave Rolsky)
130 - fix typo in initialize_body method (nothingmuch)
132 * Moose::Meta::Method::Destructor
133 - fix typo in initialize_body method (nothingmuch)
135 * Moose::Meta::Method::Overriden
136 Moose::Meta::Method::Augmented
137 - moved the logic for these into their own
138 classes (nothingmuch)
140 * Moose::Meta::Attribute
141 - inherited attributes may now be extended without
142 restriction on the type ('isa', 'does') (Sartak)
143 - added tests for this (Sartak)
144 - when an attribute property is malformed (such as lazy without
145 a default), give the name of the attribute in the error
147 - added the &applied_traits and &has_applied_traits methods
148 to allow introspection of traits
149 - added tests for this
150 - moved 'trait' and 'metaclass' argument handling to here from
152 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
153 '+foo' syntax) (nothingmuch)
154 - added tests for this (t0m)
157 - localize $@ inside DEMOLISHALL to avoid it
158 eating $@ (found by Ernesto)
159 - added test for this (thanks to Ernesto)
161 * Moose::Util::TypeConstraints
162 - &find_type_constraint now DWIMs when given an
163 type constraint object or name (nothingmuch)
164 - &find_or_create_type_constraint superseded with a number of more
166 - find_or_create_{isa,does}_type_constraint
167 - find_or_parse_type_constraint
169 * Moose::Meta::TypeConstraint
170 Moose::Meta::TypeConstraint::Class
171 Moose::Meta::TypeConstraint::Role
172 Moose::Meta::TypeConstraint::Enum
173 Moose::Meta::TypeConstraint::Union
174 Moose::Meta::TypeConstraint::Parameterized
175 - added the &equals method for comparing two type
176 constraints (nothingmuch)
177 - added tests for this (nothingmuch)
179 * Moose::Meta::TypeConstraint
180 - add the &parents method, which is just an alias to &parent.
181 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
183 * Moose::Meta::TypeConstraint::Class
184 - added the class attribute for introspection purposes
186 - added tests for this
188 * Moose::Meta::TypeConstraint::Enum
189 Moose::Meta::TypeConstraint::Role
190 - broke these out into their own classes (nothingmuch)
192 * Moose::Cookbook::Recipe*
193 - fixed references to test file locations in the POD
194 and updated up some text for new Moose features
198 - Added &resolve_metaclass_alias, a helper function for finding an actual
199 class for a short name (e.g. in the traits list)
201 0.40 Fri. March 14, 2008
202 - I hate Pod::Coverage
204 0.39 Fri. March 14, 2008
206 - documenting the use of '+name' with attributes
207 that come from recently composed roles. It makes
208 sense, people are using it, and so why not just
209 officially support it.
210 - fixing the 'extends' keyword so that it will not
211 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
214 - added the perl -Moose=+Class::Name feature to allow
215 monkeypatching of classes in one liners
218 - fixing the 'apply_all_roles' keyword so that it will not
219 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
222 - added ->create method which now supports roles (thanks to jrockway)
223 - added tests for this
224 - added ->create_anon_class which now supports roles and caching of
225 the results (thanks to jrockway)
226 - added tests for this
227 - made ->does_role a little more forgiving when it is
228 checking a Class::MOP era metaclasses.
230 * Moose::Meta::Role::Application::ToInstance
231 - it is now possible to pass extra params to be used when
232 a role is applied to an the instance (rebless_params)
233 - added tests for this
235 * Moose::Util::TypeConstraints
236 - class_type now accepts an optional second argument for a
237 custom message. POD anotated accordingly (groditi)
238 - added tests for this
239 - it is now possible to make anon-enums by passing 'enum' an
240 ARRAY ref instead of the $name => @values. Everything else
242 - added tests for this
245 - making test for using '+name' on attributes consumed
246 from a role, it works and makes sense too.
248 * Moose::Meta::Attribute
249 - fix handles so that it doesn't return nothing
250 when the method cannot be found, not sure why
251 it ever did this originally, this means we now
252 have slightly better support for AUTOLOADed
254 - added more delegation tests
255 - adding ->does method to this so as to better
256 support traits and their introspection.
257 - added tests for this
260 - localizing the Data::Dumper configurations so
261 that it does not pollute others (RT #33509)
262 - made ->does a little more forgiving when it is
263 passed Class::MOP era metaclasses.
265 0.38 Fri. Feb. 15, 2008
266 * Moose::Meta::Attribute
267 - fixed initializer to correctly do
268 type checking and coercion in the
270 - added tests for this
273 - fixed some finicky tests (thanks to konobi)
275 0.37 Thurs. Feb. 14, 2008
277 - fixed some details in Moose::init_meta
278 and its superclass handling (thanks thepler)
279 - added tests for this (thanks thepler)
280 - 'has' now dies if you don't pass in name
282 - added the 'make_immutable' keyword as a shortcut
286 Moose::Meta::Method::Constructor
287 Moose::Meta::Attribute
288 - making (init_arg => undef) work here too
289 (thanks to nothingmuch)
291 * Moose::Meta::Attribute
292 Moose::Meta::Method::Constructor
293 Moose::Meta::Method::Accessor
294 - make lazy attributes respect attr initializers (rjbs)
295 - added tests for this
297 * Moose::Util::TypeConstraints
298 Moose::Util::TypeConstraints::OptimizedConstraints
299 Moose::Meta::TypeConstraints
300 Moose::Meta::Attribute
301 Moose::Meta::Method::Constructor
302 Moose::Meta::Method::Accessor
303 - making type errors use the
304 assigned message (thanks to Sartak)
305 - added tests for this
307 * Moose::Meta::Method::Destructor
308 - making sure DESTROY gets inlined properly
309 with successive DEMOLISH calls (thanks to manito)
311 * Moose::Meta::Attribute
312 Moose::Meta::Method::Accessor
313 - fixed handling of undef with type constraints
315 - added tests for this
318 - added &get_all_init_args and &get_all_attribute_values
319 (thanks to Sartak and nothingmuch)
321 0.36 Sat. Jan. 26, 2008
323 Moose::Meta::Attribute
324 - role type tests now support when roles are
325 applied to non-Moose classes (found by ash)
326 - added tests for this (thanks to ash)
327 - couple extra tests to boost code coverage
329 * Moose::Meta::Method::Constructor
330 - improved fix for handling Class::MOP attributes
331 - added test for this
334 - handled the add_attribute($attribute_meta_object)
336 - added test for this
338 0.35 Tues. Jan. 22, 2008
339 * Moose::Meta::Method::Constructor
340 - fix to make sure even Class::MOP attributes
341 are handled correctly (Thanks to Dave Rolsky)
342 - added test for this (also Dave Rolsky)
345 - improved error message on _apply_all_roles,
346 you should now use Moose::Util::apply_all_roles
347 and you shouldnt have been using a _ prefixed
348 method in the first place ;)
350 0.34 Mon. Jan. 21, 2008
351 ~~~ more misc. doc. fixes ~~~
352 ~~ updated copyright dates ~~
354 Moose is now a postmodern object system :)
355 - (see the POD for details)
357 * <<Role System Refactoring>>
358 - this release contains a major reworking and
359 cleanup of the role system
360 - 100% backwards compat.
361 - Role application now restructured into seperate
362 classes based on type of applicants
363 - Role summation (combining of more than one role)
364 is much cleaner and anon-classes are no longer
366 - new Composite role metaclass
367 - runtime application of roles to instances
368 is now more efficient and re-uses generated
369 classes when applicable
371 * <<New Role composition features>>
372 - methods can now be excluded from a given role
374 - methods can now be aliased to another name (and
375 still retain the original as well)
377 * Moose::Util::TypeConstraints::OptimizedConstraints
378 - added this module (see above)
381 - fixed the &_process_attribute method to be called
382 by &add_attribute, so that the API is now correct
384 * Moose::Meta::Method::Accessor
385 - fixed bug when passing a list of values to
386 an accessor would get (incorrectly) ignored.
387 Thanks to Sartak for finding this ;)
388 - added tests for this (Sartak again)
390 * Moose::Meta::Method::Accessor
391 Moose::Meta::Method::Constructor
392 Moose::Meta::Attribute
393 Moose::Meta::TypeConstraint
394 Moose::Meta::TypeCoercion
395 - lots of cleanup of such things as:
397 - type constraint handling
398 - error handling/messages
399 (thanks to nothingmuch)
401 * Moose::Meta::TypeConstraint::Parameterizable
402 - added this module to support the refactor
403 in Moose::Meta::TypeConstraint::Parameterized
405 * Moose::Meta::TypeConstraint::Parameterized
406 - refactored how these types are handled so they
407 are more generic and not confined to ArrayRef
411 - shortened some file names for better VMS support (RT #32381)
413 0.33 Fri. Dec. 14, 2007
414 !! Moose now loads 2 x faster !!
415 !! with new Class::MOP 0.49 !!
417 ++ new oose.pm module to make command line
418 Moose-ness easier (see POD docs for more)
422 - several tweaks to take advantage of the
423 new method map caching in Class::MOP
425 * Moose::Meta::TypeConstraint::Parameterized
426 - allow subtypes of ArrayRef and HashRef to
427 be used as a container (sartak)
428 - added tests for this
429 - basic support for coercion to ArrayRef and
430 HashRef for containers (sartak)
431 - added tests for this
433 * Moose::Meta::TypeCoercion
434 - coercions will now create subtypes as needed
435 so you can now add coercions to parameterized
436 types without having to explictly define them
437 - added tests for this
439 * Moose::Meta::Method::Accessor
440 - allow subclasses to decide whether we need
441 to copy the value into a new variable (sartak)
443 0.32 Tues. Dec. 4, 2007
444 * Moose::Util::TypeConstraints
445 - fixing how subtype aliases of unions work
446 they should inherit the parent's coercion
447 - added tests for this
448 - you can now define multiple coercions on
449 a single type at different times instead of
450 having to do it all in one place
451 - added tests for this
453 * Moose::Meta::TypeConstraint
454 - there is now a default constraint of sub { 1 }
455 instead of Moose::Util::TypeConstraints setting
458 * Moose::Meta::TypeCoercion
459 * Moose::Meta::TypeCoercion::Union
460 - added the &has_coercion_for_type and
461 &add_type_coercions methods to support the
462 new features above (although you cannot add
463 more type coercions for Union types)
465 0.31 Mon. Nov. 26, 2007
466 * Moose::Meta::Attribute
467 - made the +attr syntax handle extending types with
468 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
469 now works if the original foo is an ArrayRef.
470 - added tests for this.
471 - delegation now works even if the attribute does not
472 have a reader method using the get_read_method_ref
473 method from Class::MOP::Attribute.
474 - added tests for this
475 - added docs for this
477 * Moose::Util::TypeConstraints
478 - passing no "additional attribute info" to
479 &find_or_create_type_constraint will no longer
480 attempt to create an __ANON__ type for you,
481 instead it will just return undef.
482 - added docs for this
484 0.30 Fri. Nov. 23, 2007
485 * Moose::Meta::Method::Constructor
486 -builder related bug in inlined constructor. (groditi)
488 * Moose::Meta::Method::Accessor
489 - genereate unnecessary calls to predicates and refactor
490 code generation for runtime speed (groditi)
492 * Moose::Util::TypeConstraints
493 - fix ClassName constraint to introspect symbol table (mst)
494 - added more tests for this (mst)
495 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
497 - added tests for this
500 - adding the link to Recipie 11 (written by Sartak)
501 - adding test for SYNOPSIS code
504 - New tests for builder bug. Upon instantiation, if an
505 attribute had a builder, no value and was not lazy the
506 builder default was not getting run, oops. (groditi)
508 0.29 Tues. Nov. 13, 2007
509 * Moose::Meta::Attribute
510 - Fix error message on missing builder method (groditi)
512 * Moose::Meta::Method::Accessor
513 - Fix error message on missing builder method (groditi)
516 - Add test to check for the correct error message when
517 builder method is missing (groditi)
519 0.28 Tues. Nov. 13, 2007
520 - 0.27 packaged incorrectly (groditi)
522 0.27 Tues. Nov. 13, 2007
523 * Moose::Meta::Attribute
524 - Added support for the new builder option (groditi)
525 - Added support for lazy_build option (groditi)
526 - Changed slot initialization for predicate changes (groditi)
528 * Moose::Meta::Method::Accessor
529 - Added support for lazy_build option (groditi)
530 - Fix inline methods to work with corrected predicate
533 * Moose::Meta::Method::Constructor
534 - Added support for lazy_build option (groditi)
537 - tests for builder and lazy_build (groditi)
539 * fixing some misc. bits in the docs that
540 got mentioned on CPAN Forum & perlmonks
543 - fixed how required methods are handled
544 when they encounter overriden or modified
545 methods from a class (thanks to confound).
546 - added tests for this
548 * Moose::Util::TypeConstraint
549 - fixed the type notation parser so that
550 the | always creates a union and so is
551 no longer a valid type char (thanks to
552 konobi, mugwump and #moose for working
554 - added more tests for this
556 0.26 Thurs. Sept. 27, 2007
559 * Parameterized Types
560 We now support parameterized collection types, such as:
561 ArrayRef[Int] # array or integers
562 HashRef[Object] # a hash with object values
563 They can also be nested:
564 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
565 And work with the type unions as well:
566 ArrayRef[Int | Str] # array of integers of strings
568 * Better Framework Extendability
569 Moose.pm is now "extendable" such that it is now much
570 easier to extend the framework and add your own keywords
571 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
572 section of the Moose.pm docs.
575 In an effort to begin documenting some of the various
576 details of Moose as well as some common idioms, we have
577 created Moose::Cookbook::Snacks as a place to find
578 small (easily digestable) nuggets of Moose code.
581 ~ Several doc updates/cleanup thanks to castaway ~
583 - converted build system to use Module::Install instead of
584 Module::Build (thanks to jrockway)
587 - added all the meta classes to the immutable list and
588 set it to inline the accessors
589 - fix import to allow Sub::Exporter like { into => }
590 and { into_level => } (perigrin)
591 - exposed and documented init_meta() to allow better
592 embedding and extending of Moose (perigrin)
595 - complete re-organization of the test suite
596 - added some new tests as well
597 - finally re-enabled the Moose::POOP test since
598 the new version of DBM::Deep now works again
602 - fixed very odd and very nasty recursion bug with
604 - added tests for this (eilara)
606 * Moose::Meta::Attribute
607 Moose::Meta::Method::Constructor
608 Moose::Meta::Method::Accessor
609 - fixed issue with overload::Overloaded getting called
610 on non-blessed items. (RT #29269)
611 - added tests for this
613 * Moose::Meta::Method::Accessor
614 - fixed issue with generated accessor code making
615 assumptions about hash based classes (thanks to dexter)
617 * Moose::Coookbook::Snacks
618 - these are bits of documentation, not quite as big as
619 Recipes but which have no clear place in the module docs.
620 So they are Snacks! (horray for castaway++)
622 * Moose::Cookbook::Recipe4
623 - updated it to use the new ArrayRef[MyType] construct
624 - updated the accompanying test as well
626 +++ Major Refactor of the Type Constraint system +++
627 +++ with new features added as well +++
629 * Moose::Util::TypeConstraint
630 - no longer uses package variable to keep track of
631 the type constraints, now uses the an instance of
632 Moose::Meta::TypeConstraint::Registry to do it
633 - added more sophisticated type notation parsing
635 - added tests for this
637 * Moose::Meta::TypeConstraint
638 - some minor adjustments to make subclassing easier
639 - added the package_defined_in attribute so that we
640 can track where the type constraints are created
642 * Moose::Meta::TypeConstraint::Union
643 - this is now been refactored to be a subclass of
644 Moose::Meta::TypeConstraint
646 * Moose::Meta::TypeCoercion::Union
647 - this has been added to service the newly refactored
648 Moose::Meta::TypeConstraint::Union and is itself
649 a subclass of Moose::Meta::TypeCoercion
651 * Moose::Meta::TypeConstraint::Parameterized
652 - added this module (taken from MooseX::AttributeHelpers)
653 to help construct nested collection types
654 - added tests for this
656 * Moose::Meta::TypeConstraint::Registry
657 - added this class to keep track of type constraints
659 0.25 Mon. Aug. 13, 2007
661 - Documentation update to reference Moose::Util::TypeConstraints
662 under 'isa' in 'has' for how to define a new type
665 * Moose::Meta::Attribute
666 - required attributes now will no longer accept undef
667 from the constructor, even if there is a default and lazy
668 - added tests for this
669 - default subroutines must return a value which passes the
671 - added tests for this
673 * Moose::Meta::Attribute
674 * Moose::Meta::Method::Constructor
675 * Moose::Meta::Method::Accessor
676 - type-constraint tests now handle overloaded objects correctly
678 - added tests for this (thanks to EvanCarroll)
680 * Moose::Meta::TypeConstraint::Union
681 - added (has_)hand_optimized_constraint to this class so that
682 it behaves as the regular Moose::Meta::TypeConstraint does.
685 - large refactoring of this code
686 - added several more tests
687 - tests for subtle conflict resolition issues
688 added, but not currently running
691 * Moose::Cookbook::Recipe7
692 - added new recipe for augment/inner functionality
694 - added test for this
697 - a formal definition of roles (still in progress)
700 - utilities for easier working with Moose classes
701 - added tests for these
704 - This contains Moose specific test functions
705 - added tests for these
707 0.24 Tues. July 3, 2007
708 ~ Some doc updates/cleanup ~
710 * Moose::Meta::Attribute
711 - added support for roles to be given as parameters
712 to the 'handles' option.
713 - added tests and docs for this
714 - the has '+foo' attribute form now accepts changes to
715 the lazy option, and the addition of a handles option
716 (but not changing the handles option)
717 - added tests and docs for this
720 - required methods are now fetched using find_method_by_name
721 so that required methods can come from superclasses
722 - adjusted tests for this
724 0.23 Mon. June 18, 2007
725 * Moose::Meta::Method::Constructor
726 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
728 - Modify make_immutable to work with the new Class::MOP immutable
729 mechanism + POD + very basic test (groditi)
730 * Moose::Meta::Attribute
731 - Fix handles to use goto() so that caller() comes out properly on
732 the other side (perigrin)
734 0.22 Thurs. May 31, 2007
735 * Moose::Util::TypeConstraints
736 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
737 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
738 prototypes for functions
739 - added the ClassName type constraint, this checks for strings
740 which will respond true to ->isa(UNIVERSAL).
741 - added tests and docs for this
742 - subtyping just in name now works correctly by making the
743 default for where be { 1 }
744 - added test for this
746 * Moose::Meta::Method::Accessor
747 - coerce and lazy now work together correctly, thanks to
748 merlyn for finding this bug
749 - tests added for this
750 - fix reader presedence bug in Moose::Meta::Attribute + tests
753 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
754 a HASH-ref and missed. This produces better error messages then
755 having it die cause undef is not a HASH.
756 - added tests for this
758 0.21 Thursday, May 2nd, 2007
760 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
761 - modified unimport to remove super and inner along with the rest
762 - altered unimport tests to handle this
765 - altered super export to populate SUPER_SLOT
768 - altered augment and override modifier application to use *_SLOT
769 - modified tests for these to unimport one test class each to test
772 - fixed issue where custom attribute metaclasses
773 where not handled correctly in roles
774 - added tests for this
777 - fixed issue where extending metaclasses with
778 roles would blow up. Thanks to Aankhen`` for
779 finding this insidious error, and it's solution.
781 ~~ lots of spelling and grammer fixes in the docs,
782 many many thanks to rlb3 and Aankhen for these :)
784 0.20 Friday, April 6th, 2007
785 >> I messed up the SKIP logic in one test
786 so this release is just to fix that.
789 - 'has' now also accepts an ARRAY ref
790 to create multiple attrs (see docs)
791 (thanks to konobi for this)
792 - added tests and docs
794 0.19 Thurs. April 5th, 2007
795 ~~ More documentation updates ~~
797 * Moose::Util::TypeConstraints
798 - 'type' now supports messages as well
799 thanks to phaylon for finding this
800 - added tests for this
801 - added &list_all_type_constraints and
802 &list_all_builtin_type_constraints
803 functions to facilitate introspection.
805 * Moose::Meta::Attribute
806 - fixed regexp 'handles' declarations
807 to build the list of delegated methods
808 correctly (and not override important
809 things like &new) thanks to ashleyb
811 - added tests and docs for this
812 - added the 'documentation' attributes
813 so that you can actually document your
814 attributes and inspect them through the
816 - added tests and docs for this
819 - when loading custom attribute metaclasses
820 it will first look in for the class in the
821 Moose::Meta::Attribute::Custom::$name, and
822 then default to just loading $name.
823 - added tests and docs for this
825 * Moose::Meta::TypeConstraint
826 - type constraints now stringify to their names.
827 - added test for this
830 - added tests to assure we work with Module::Refresh
831 - added stricter test skip logic in the Moose POOP
832 test, ask Rob Kinyon why.
833 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
835 0.18 Sat. March 10, 2007
836 ~~ Many, many documentation updates ~~
839 - We now use Class::MOP::load_class to
841 - added tests to show types and subtypes
842 working with Declare::Constraints::Simple
843 and Test::Deep as constraint engines.
846 !! You must have Class::MOP 0.37_001 !!
847 !! for this developer release to work !!
849 This release was primarily adding the immutable
850 feature to Moose. An immutable class is one which
851 you promise not to alter. When you set the class
852 as immutable it will perform various bits of
853 memoization and inline certain part of the code
854 (constructors, destructors and accessors). This
855 minimizes (and in some cases totally eliminates)
856 one of Moose's biggest performance hits. This
857 feature is not on by default, and is 100% optional.
858 It has several configurable bits as well, so you
859 can pick and choose to your specific needs.
861 The changes involved in this were fairly wide and
862 highly specific, but 100% backwards compatible, so
863 I am not going to enumerate them here. If you are
864 truely interested in what was changed, please do
867 0.17 Tues. Nov. 14, 2006
868 * Moose::Meta::Method::Accessor
869 - bugfix for read-only accessors which
870 are have a type constraint and lazy.
871 Thanks to chansen for finding it.
873 0.16 Tues. Nov. 14, 2006
875 There are some speed improvements in this release,
876 but they are only the begining, so stay tuned.
879 - BUILDALL and DEMOLISHALL no longer get
880 called unless they actually need to be.
881 This gave us a signifigant speed boost
882 for the cases when there is no BUILD or
883 DEMOLISH method present.
885 * Moose::Util::TypeConstraints
886 * Moose::Meta::TypeConstraint
887 - added an 'optimize_as' option to the
888 type constraint, which allows for a
889 hand optimized version of the type
890 constraint to be used when possible.
891 - Any internally created type constraints
892 now provide an optimized version as well.
894 0.15 Sun. Nov. 5, 2006
896 This version of Moose *must* have Class::MOP 0.36 in order
897 to work correctly. A number of small internal tweaks have
898 been made in order to be compatible with that release.
900 * Moose::Util::TypeConstraints
901 - added &unimport so that you can clean out
902 your class namespace of these exported
906 - fixed minor issue which occasionally
907 comes up during global destruction
909 - moved Moose::Meta::Method::Overriden into
913 - moved Moose::Meta::Role::Method into
916 * Moose::Meta::Attribute
917 - changed how we do type checks so that
918 we reduce the overall cost, but still
921 - moved accessor generation methods to
922 Moose::Meta::Method::Accessor to
923 conform to the API changes from
926 * Moose::Meta::TypeConstraint
927 - changed how constraints are compiled
928 so that we do less recursion and more
929 iteration. This makes the type check
931 - moved Moose::Meta::TypeConstraint::Union
934 * Moose::Meta::Method::Accessor
935 - created this from methods formerly found in
936 Moose::Meta::Attribute
938 * Moose::Meta::Role::Method
939 - moved this from Moose::Meta::Role
941 * Moose::Meta::Method::Overriden
942 - moved this from Moose::Meta::Class
944 * Moose::Meta::TypeConstraint::Union
945 - moved this from Moose::Meta::TypeConstraint
947 0.14 Mon. Oct. 9, 2006
949 * Moose::Meta::Attribute
950 - fixed lazy attributes which were not getting
951 checked with the type constraint (thanks ashley)
952 - added tests for this
953 - removed the over-enthusiastic DWIMery of the
954 automatic ArrayRef and HashRef defaults, it
955 broke predicates in an ugly way.
956 - removed tests for this
958 0.13 Sat. Sept. 30, 2006
960 This version of Moose *must* have Class::MOP 0.35 in order
961 to work correctly. A number of small internal tweaks have
962 been made in order to be compatible with that release.
965 - Removed the use of UNIVERSAL::require to be a better
966 symbol table citizen and remove a dependency
967 (thanks Adam Kennedy)
969 **~~ removed experimental & undocumented feature ~~**
970 - commented out the 'method' and 'self' keywords, see the
971 comments for more info.
974 - added a FAQ and WTF files to document frequently
975 asked questions and common problems
977 * Moose::Util::TypeConstraints
978 - added GlobRef and FileHandle type constraint
979 - added tests for this
981 * Moose::Meta::Attribute
982 - if your attribute 'isa' ArrayRef of HashRef, and you have
983 not explicitly set a default, then make the default DWIM.
984 This will also work for subtypes of ArrayRef and HashRef
986 - you can now auto-deref subtypes of ArrayRef or HashRef too.
987 - new test added for this (thanks to ashley)
990 - added basic support for runtime role composition
991 but this is still *highly experimental*, so feedback
992 is much appreciated :)
993 - added tests for this
995 * Moose::Meta::TypeConstraint
996 - the type constraint now handles the coercion process
997 through delegation, this is to support the coercion
1000 * Moose::Meta::TypeConstraint::Union
1001 - it is now possible for coercions to be performed
1003 - added tests for this (thanks to konobi)
1005 * Moose::Meta::TypeCoercion
1006 - properly capturing error when type constraint
1010 - Scalar::Util 1.18 is bad on Win32, so temporarily
1011 only require version 1.17 for Win32 and cygwin.
1012 (thanks Adam Kennedy)
1014 0.12 Sat. Sept. 1, 2006
1016 - Recipe5 (subtypes & coercion) has been written
1019 - fixed "bad meta" error message to be more descriptive
1020 - fixed &unimport to not remove the &inner and &super
1021 keywords because we need to localize them.
1022 - fixed number of spelling/grammer issues, thanks Theory :)
1024 **~~ experimental & undocumented feature ~~**
1025 - added the method and self keywords, they are basically
1026 just sugar, and they may not stay around.
1029 - added &dump method to easily Data::Dumper
1032 * Moose::Meta::TypeConstraint
1033 - added the &is_a_type_of method to check both the current
1034 and the subtype of a method (similar to &isa with classes)
1037 - this is now a subclass of Class::MOP::Module, and no longer
1038 creates the _role_meta ugliness of before.
1039 - fixed tests to reflect this change
1041 0.11 Wed. July 12, 2006
1043 - added an &unimport method to remove all the keywords
1044 that Moose will import, simply add 'no Moose' to the
1045 bottom of your class file.
1048 - fixed some test failures caused by a forgotten test
1051 0.10 Thurs. July 6, 2006
1053 - improved error message when loading modules so
1054 it is less confusing when you load a role.
1055 - added &calculate_all_roles method to
1056 Moose::Meta::Class and Moose::Meta::Role
1059 This module has been tested against Class::MOP 0.30
1060 but it does not yet utilize the optimizations
1061 it makes available. Stay tuned for that ;)
1063 0.09_03 Fri. June 23, 2006
1064 ++ DEVELOPER RELEASE ++
1066 - 'use strict' and 'use warnings' are no longer
1067 needed in Moose classes, Moose itself will
1068 turn them on for you.
1069 - added tests for this
1070 - moved code from exported subs to private methods
1071 in Moose::Meta::Class
1074 - as with Moose, strict and warnings are
1075 automatically turned on for you.
1076 - added tests for this
1079 - now handles an edge case for override errors
1080 - added tests for this
1081 - added some more edge case tests
1083 0.09_02 Tues. May 16, 2006
1084 ++ DEVELOPER RELEASE ++
1086 - added prototypes to the exported subs
1090 - added prototypes to the exported subs
1093 * Moose::Util::TypeConstraints
1094 - cleaned up prototypes for the subs
1097 0.09_01 Fri. May 12, 2006
1098 ++ DEVELOPER RELEASE ++
1099 - This release works in combination with
1100 Class::MOP 0.29_01, it is a developer
1101 release because it uses the a new
1102 instance sub-protocol and a fairly
1103 complete Role implementation. It has
1104 not yet been optimized, so it slower
1105 the the previous CPAN version. This
1106 release also lacks good updated docs,
1107 the official release will have updated docs.
1110 - refactored the keyword exports
1111 - 'with' now checks Role validaity and
1112 accepts more than one Role at a time
1113 - 'extends' makes metaclass adjustments as
1114 needed to ensure metaclass compatability
1117 - refactored the keyword exports
1118 - 'with' now checks Role validaity and
1119 accepts more than one Role at a time
1121 * Moose::Util::TypeConstraints
1122 - added the 'enum' keyword for simple
1123 string enumerations which can be used as
1125 - see example of usage in t/202_example.t
1128 - more careful checking of params to new()
1131 - much work done on the role composition
1132 - many new tests for conflict detection
1133 and composition edge cases
1134 - not enough documentation, I suggest
1135 looking at the tests
1137 * Moose::Meta::Instance
1138 - added new Instance metaclass to support
1139 the new Class::MOP instance protocol
1141 * Moose::Meta::Class
1142 - some small changes to support the new
1144 - some small additions to support Roles
1146 * Moose::Meta::Attribute
1147 - some improvements to the accessor generation code
1149 - some small changes to support the new
1151 - (still somewhat) experimental delegation support
1152 with the 'handles' option
1153 - added several tests for this
1154 - no docs for this yet
1156 0.05 Thurs. April 27, 2006
1158 - keywords are now exported with Sub::Exporter
1159 thanks to chansen for this commit
1160 - has keyword now takes a 'metaclass' option
1161 to support custom attribute meta-classes
1162 on a per-attribute basis
1163 - added tests for this
1164 - the 'has' keyword not accepts inherited slot
1165 specifications (has '+foo'). This is still an
1166 experimental feature and probably not finished
1167 see t/038_attribute_inherited_slot_specs.t for
1168 more details, or ask about it on #moose
1169 - added tests for this
1172 - keywords are now exported with Sub::Exporter
1174 * Moose::Utils::TypeConstraints
1175 - reorganized the type constraint hierarchy, thanks
1176 to nothingmuch and chansen for his help and advice
1178 - added some tests for this
1179 - keywords are now exported with Sub::Exporter
1180 thanks to chansen for this commit
1182 * Moose::Meta::Class
1183 - due to changes in Class::MOP, we had to change
1184 construct_instance (for the better)
1186 * Moose::Meta::Attribute
1187 - due to changes in Class::MOP, we had to add the
1188 initialize_instance_slot method (it's a good thing)
1190 * Moose::Meta::TypeConstraint
1191 - added type constraint unions
1192 - added tests for this
1193 - added the is_subtype_of predicate method
1194 - added tests for this
1196 0.04 Sun. April 16th, 2006
1198 - Roles can now consume other roles
1199 - added tests for this
1200 - Roles can specify required methods now with
1201 the requires() keyword
1202 - added tests for this
1205 - ripped out much of it's guts ,.. much cleaner now
1206 - added required methods and correct handling of
1207 them in apply() for both classes and roles
1208 - added tests for this
1209 - no longer adds a does() method to consuming classes
1210 it relys on the one in Moose::Object
1211 - added roles attribute and some methods to support
1212 roles consuming roles
1214 * Moose::Meta::Attribute
1215 - added support for triggers on attributes
1216 - added tests for this
1217 - added support for does option on an attribute
1218 - added tests for this
1220 * Moose::Meta::Class
1221 - added support for attribute triggers in the
1223 - added tests for this
1226 - Moose no longer creates a subtype for your class
1227 if a subtype of the same name already exists, this
1228 should DWIM in 99.9999% of all cases
1230 * Moose::Util::TypeConstraints
1231 - fixed bug where incorrect subtype conflicts were
1233 - added test for this
1236 - this class can now be extended with 'use base' if
1237 you need it, it properly loads the metaclass class now
1238 - added test for this
1240 0.03_02 Wed. April 12, 2006
1242 - you must now explictly use Moose::Util::TypeConstraints
1243 it no longer gets exported for you automatically
1246 - new() now accepts hash-refs as well as key/value lists
1247 - added does() method to check for Roles
1248 - added tests for this
1250 * Moose::Meta::Class
1251 - added roles attribute along with the add_role() and
1253 - added tests for this
1256 - now adds a does() method to consuming classes
1257 which tests the class's hierarchy for roles
1258 - added tests for this
1260 0.03_01 Mon. April 10, 2006
1262 - added new Role recipe (no content yet, only code)
1265 - added 'with' keyword for Role support
1266 - added test and docs for this
1267 - fixed subtype quoting bug
1268 - added test for this
1272 - added test and docs
1274 * Moose::Util::TypeConstraints
1275 - added the message keyword to add custom
1276 error messages to type constraints
1279 - the meta role to support Moose::Role
1280 - added tests and docs
1282 * Moose::Meta::Class
1283 - moved a number of things from Moose.pm
1284 to here, they should have been here
1287 * Moose::Meta::Attribute
1288 - moved the attribute option macros here
1289 instead of putting them in Moose.pm
1291 * Moose::Meta::TypeConstraint
1292 - added the message attributes and the
1294 - added tests and docs for this
1296 0.03 Thurs. March 30, 2006
1298 - added the Moose::Cookbook with 5 recipes,
1299 describing all the stuff Moose can do.
1302 - fixed an issue with &extends super class loading
1303 it now captures errors and deals with inline
1304 packages correctly (bug found by mst, solution
1306 - added super/override & inner/augment features
1307 - added tests and docs for these
1310 - BUILDALL now takes a reference of the %params
1311 that are passed to &new, and passes that to
1314 * Moose::Util::TypeConstraints
1315 - Type constraints now survive runtime reloading
1316 - added test for this
1318 * Moose::Meta::Class
1319 - fixed the way attribute defaults are handled
1320 during instance construction (bug found by chansen)
1322 * Moose::Meta::Attribute
1323 - read-only attributes now actually enforce their
1324 read-only-ness (this corrected in Class::MOP as
1327 0.02 Tues. March 21, 2006
1329 - many more tests, fixing some bugs and
1331 - &extends now loads the base module with
1333 - added UNIVERSAL::require to the
1336 - each new Moose class will also create
1337 and register a subtype of Object which
1338 correspond to the new Moose class.
1339 - the 'isa' option in &has now only
1340 accepts strings, and will DWIM in
1343 * Moose::Util::TypeConstraints
1344 - added type coercion features
1345 - added tests for this
1346 - added support for this in attributes
1347 and instance construction
1349 - type construction no longer creates a
1350 function, it registers the type instead.
1351 - added several functions to get the
1355 - BUILDALL and DEMOLISHALL were broken
1356 because of a mis-named hash key, Whoops :)
1358 * Moose::Meta::Attribute
1359 - adding support for coercion in the
1360 autogenerated accessors
1362 * Moose::Meta::Class
1363 - adding support for coercion in the
1364 instance construction
1366 * Moose::Meta::TypeConstraint
1367 * Moose::Meta::TypeCoercion
1368 - type constraints and coercions are now
1369 full fledges meta-objects
1371 0.01 Wed. March 15, 2006
1372 - Moooooooooooooooooose!!!