1 Revision history for Perl extension Moose
5 - added same 'add_package_symbol' fix as in
9 - does_role now handles non-Moose classes
11 - added tests for this
13 * Moose::Meta::Method::Constructor
14 - fixed bug where trigger was not being
15 called by the inlined immutable
17 - added test for this (thanks to Caelum)
19 * Moose::Meta::Role::Application::ToInstance
20 - now uses the metaclass of the instance
21 (if possible) to create the anon-class
22 (thanks Jonathan Rockway)
24 * Moose::Cookbook::Snack::ArrayRef
25 Moose::Cookbook::Snack::HashRef
26 Moose::Cookbook::Snack::Perl5ObjsVsMooseObjs
27 Moose::Cookbook::Snack::BUILD
28 - several new Snacks added to the cookbook
32 - fixed hash-ordering test bug that was
33 causing occasional cpantester failures
35 0.44 Sat. May 10, 2008
37 - made make_immutable warning cluck to
38 show where the error is (thanks mst)
41 - BUILDALL and DEMOLISHALL now call
42 ->body when looping through the
43 methods, to avoid the overloaded
45 - fixed issue where DEMOLISHALL was
46 eating the $@ values, and so not
47 working correctly, it still kind of
48 eats them, but so does vanilla perl
49 - added tests for this
51 * Moose::Cookbook::Recipe7
52 - added new recipe for immutable
53 functionality (thanks Dave Rolsky)
55 * Moose::Cookbook::Recipe9
56 - added new recipe for builder and
57 lazy_build (thanks Dave Rolsky)
59 * Moose::Cookbook::Recipe11
60 - added new recipe for method aliasing
61 and exclusion with Roles (thanks Dave Rolsky)
64 - fixed Win32 test failure (thanks spicyjack)
66 ~ removed Build.PL and Module::Build compat
67 since Module::Install has done that.
69 0.43 Wed. April, 30, 2008
71 drink more coffee before
72 doing release engineering
74 - whoops, forgot to do the smolder tests,
75 and we broke some of the custom meta-attr
76 modules. This fixes that.
78 0.42 Mon. April 28, 2008
79 - some bad tests slipped by, nothing else
80 changed in this release (cpantesters++)
82 - upped the Class::MOP dependency to 0.55
83 since we have tests which need the C3
86 0.41 Mon. April 28, 2008
87 ~~ numerous documentation updates ~~
89 - Changed all usage of die to Carp::croak for better
90 error reporting (initial patch by Tod Hagan)
93 - the make_immutable keyword is now deprecated, don't
94 use it in any new code and please fix your old code
95 as well. There will be 2 releases, and then it will
101 - refactored the way inner and super work to avoid
102 any method/@ISA cache penalty (nothingmuch)
105 - fixing &new_object to make sure trigger gets the
106 coerced value (spotted by Charles Alderman on the
108 - added test for this
110 * Moose::Meta::Method::Constructor
111 - immutable classes which had non-lazy attributes were calling
112 the default generating sub twice in the constructor. (bug
113 found by Jesse Luehrs, fixed by Dave Rolsky)
114 - added tests for this (Dave Rolsky)
115 - fix typo in initialize_body method (nothingmuch)
117 * Moose::Meta::Method::Destructor
118 - fix typo in initialize_body method (nothingmuch)
120 * Moose::Meta::Method::Overriden
121 Moose::Meta::Method::Augmented
122 - moved the logic for these into their own
123 classes (nothingmuch)
125 * Moose::Meta::Attribute
126 - inherited attributes may now be extended without
127 restriction on the type ('isa', 'does') (Sartak)
128 - added tests for this (Sartak)
129 - when an attribute property is malformed (such as lazy without
130 a default), give the name of the attribute in the error
132 - added the &applied_traits and &has_applied_traits methods
133 to allow introspection of traits
134 - added tests for this
135 - moved 'trait' and 'metaclass' argument handling to here from
137 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
138 '+foo' syntax) (nothingmuch)
139 - added tests for this (t0m)
142 - localize $@ inside DEMOLISHALL to avoid it
143 eating $@ (found by Ernesto)
144 - added test for this (thanks to Ernesto)
146 * Moose::Util::TypeConstraints
147 - &find_type_constraint now DWIMs when given an
148 type constraint object or name (nothingmuch)
149 - &find_or_create_type_constraint superseded with a number of more
151 - find_or_create_{isa,does}_type_constraint
152 - find_or_parse_type_constraint
154 * Moose::Meta::TypeConstraint
155 Moose::Meta::TypeConstraint::Class
156 Moose::Meta::TypeConstraint::Role
157 Moose::Meta::TypeConstraint::Enum
158 Moose::Meta::TypeConstraint::Union
159 Moose::Meta::TypeConstraint::Parameterized
160 - added the &equals method for comparing two type
161 constraints (nothingmuch)
162 - added tests for this (nothingmuch)
164 * Moose::Meta::TypeConstraint
165 - add the &parents method, which is just an alias to &parent.
166 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
168 * Moose::Meta::TypeConstraint::Class
169 - added the class attribute for introspection purposes
171 - added tests for this
173 * Moose::Meta::TypeConstraint::Enum
174 Moose::Meta::TypeConstraint::Role
175 - broke these out into their own classes (nothingmuch)
177 * Moose::Cookbook::Recipe*
178 - fixed references to test file locations in the POD
179 and updated up some text for new Moose features
183 - Added &resolve_metaclass_alias, a helper function for finding an actual
184 class for a short name (e.g. in the traits list)
186 0.40 Fri. March 14, 2008
187 - I hate Pod::Coverage
189 0.39 Fri. March 14, 2008
191 - documenting the use of '+name' with attributes
192 that come from recently composed roles. It makes
193 sense, people are using it, and so why not just
194 officially support it.
195 - fixing the 'extends' keyword so that it will not
196 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
199 - added the perl -Moose=+Class::Name feature to allow
200 monkeypatching of classes in one liners
203 - fixing the 'apply_all_roles' keyword so that it will not
204 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
207 - added ->create method which now supports roles (thanks to jrockway)
208 - added tests for this
209 - added ->create_anon_class which now supports roles and caching of
210 the results (thanks to jrockway)
211 - added tests for this
212 - made ->does_role a little more forgiving when it is
213 checking a Class::MOP era metaclasses.
215 * Moose::Meta::Role::Application::ToInstance
216 - it is now possible to pass extra params to be used when
217 a role is applied to an the instance (rebless_params)
218 - added tests for this
220 * Moose::Util::TypeConstraints
221 - class_type now accepts an optional second argument for a
222 custom message. POD anotated accordingly (groditi)
223 - added tests for this
224 - it is now possible to make anon-enums by passing 'enum' an
225 ARRAY ref instead of the $name => @values. Everything else
227 - added tests for this
230 - making test for using '+name' on attributes consumed
231 from a role, it works and makes sense too.
233 * Moose::Meta::Attribute
234 - fix handles so that it doesn't return nothing
235 when the method cannot be found, not sure why
236 it ever did this originally, this means we now
237 have slightly better support for AUTOLOADed
239 - added more delegation tests
240 - adding ->does method to this so as to better
241 support traits and their introspection.
242 - added tests for this
245 - localizing the Data::Dumper configurations so
246 that it does not pollute others (RT #33509)
247 - made ->does a little more forgiving when it is
248 passed Class::MOP era metaclasses.
250 0.38 Fri. Feb. 15, 2008
251 * Moose::Meta::Attribute
252 - fixed initializer to correctly do
253 type checking and coercion in the
255 - added tests for this
258 - fixed some finicky tests (thanks to konobi)
260 0.37 Thurs. Feb. 14, 2008
262 - fixed some details in Moose::init_meta
263 and its superclass handling (thanks thepler)
264 - added tests for this (thanks thepler)
265 - 'has' now dies if you don't pass in name
267 - added the 'make_immutable' keyword as a shortcut
271 Moose::Meta::Method::Constructor
272 Moose::Meta::Attribute
273 - making (init_arg => undef) work here too
274 (thanks to nothingmuch)
276 * Moose::Meta::Attribute
277 Moose::Meta::Method::Constructor
278 Moose::Meta::Method::Accessor
279 - make lazy attributes respect attr initializers (rjbs)
280 - added tests for this
282 * Moose::Util::TypeConstraints
283 Moose::Util::TypeConstraints::OptimizedConstraints
284 Moose::Meta::TypeConstraints
285 Moose::Meta::Attribute
286 Moose::Meta::Method::Constructor
287 Moose::Meta::Method::Accessor
288 - making type errors use the
289 assigned message (thanks to Sartak)
290 - added tests for this
292 * Moose::Meta::Method::Destructor
293 - making sure DESTROY gets inlined properly
294 with successive DEMOLISH calls (thanks to manito)
296 * Moose::Meta::Attribute
297 Moose::Meta::Method::Accessor
298 - fixed handling of undef with type constraints
300 - added tests for this
303 - added &get_all_init_args and &get_all_attribute_values
304 (thanks to Sartak and nothingmuch)
306 0.36 Sat. Jan. 26, 2008
308 Moose::Meta::Attribute
309 - role type tests now support when roles are
310 applied to non-Moose classes (found by ash)
311 - added tests for this (thanks to ash)
312 - couple extra tests to boost code coverage
314 * Moose::Meta::Method::Constructor
315 - improved fix for handling Class::MOP attributes
316 - added test for this
319 - handled the add_attribute($attribute_meta_object)
321 - added test for this
323 0.35 Tues. Jan. 22, 2008
324 * Moose::Meta::Method::Constructor
325 - fix to make sure even Class::MOP attributes
326 are handled correctly (Thanks to Dave Rolsky)
327 - added test for this (also Dave Rolsky)
330 - improved error message on _apply_all_roles,
331 you should now use Moose::Util::apply_all_roles
332 and you shouldnt have been using a _ prefixed
333 method in the first place ;)
335 0.34 Mon. Jan. 21, 2008
336 ~~~ more misc. doc. fixes ~~~
337 ~~ updated copyright dates ~~
339 Moose is now a postmodern object system :)
340 - (see the POD for details)
342 * <<Role System Refactoring>>
343 - this release contains a major reworking and
344 cleanup of the role system
345 - 100% backwards compat.
346 - Role application now restructured into seperate
347 classes based on type of applicants
348 - Role summation (combining of more than one role)
349 is much cleaner and anon-classes are no longer
351 - new Composite role metaclass
352 - runtime application of roles to instances
353 is now more efficient and re-uses generated
354 classes when applicable
356 * <<New Role composition features>>
357 - methods can now be excluded from a given role
359 - methods can now be aliased to another name (and
360 still retain the original as well)
362 * Moose::Util::TypeConstraints::OptimizedConstraints
363 - added this module (see above)
366 - fixed the &_process_attribute method to be called
367 by &add_attribute, so that the API is now correct
369 * Moose::Meta::Method::Accessor
370 - fixed bug when passing a list of values to
371 an accessor would get (incorrectly) ignored.
372 Thanks to Sartak for finding this ;)
373 - added tests for this (Sartak again)
375 * Moose::Meta::Method::Accessor
376 Moose::Meta::Method::Constructor
377 Moose::Meta::Attribute
378 Moose::Meta::TypeConstraint
379 Moose::Meta::TypeCoercion
380 - lots of cleanup of such things as:
382 - type constraint handling
383 - error handling/messages
384 (thanks to nothingmuch)
386 * Moose::Meta::TypeConstraint::Parameterizable
387 - added this module to support the refactor
388 in Moose::Meta::TypeConstraint::Parameterized
390 * Moose::Meta::TypeConstraint::Parameterized
391 - refactored how these types are handled so they
392 are more generic and not confined to ArrayRef
396 - shortened some file names for better VMS support (RT #32381)
398 0.33 Fri. Dec. 14, 2007
399 !! Moose now loads 2 x faster !!
400 !! with new Class::MOP 0.49 !!
402 ++ new oose.pm module to make command line
403 Moose-ness easier (see POD docs for more)
407 - several tweaks to take advantage of the
408 new method map caching in Class::MOP
410 * Moose::Meta::TypeConstraint::Parameterized
411 - allow subtypes of ArrayRef and HashRef to
412 be used as a container (sartak)
413 - added tests for this
414 - basic support for coercion to ArrayRef and
415 HashRef for containers (sartak)
416 - added tests for this
418 * Moose::Meta::TypeCoercion
419 - coercions will now create subtypes as needed
420 so you can now add coercions to parameterized
421 types without having to explictly define them
422 - added tests for this
424 * Moose::Meta::Method::Accessor
425 - allow subclasses to decide whether we need
426 to copy the value into a new variable (sartak)
428 0.32 Tues. Dec. 4, 2007
429 * Moose::Util::TypeConstraints
430 - fixing how subtype aliases of unions work
431 they should inherit the parent's coercion
432 - added tests for this
433 - you can now define multiple coercions on
434 a single type at different times instead of
435 having to do it all in one place
436 - added tests for this
438 * Moose::Meta::TypeConstraint
439 - there is now a default constraint of sub { 1 }
440 instead of Moose::Util::TypeConstraints setting
443 * Moose::Meta::TypeCoercion
444 * Moose::Meta::TypeCoercion::Union
445 - added the &has_coercion_for_type and
446 &add_type_coercions methods to support the
447 new features above (although you cannot add
448 more type coercions for Union types)
450 0.31 Mon. Nov. 26, 2007
451 * Moose::Meta::Attribute
452 - made the +attr syntax handle extending types with
453 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
454 now works if the original foo is an ArrayRef.
455 - added tests for this.
456 - delegation now works even if the attribute does not
457 have a reader method using the get_read_method_ref
458 method from Class::MOP::Attribute.
459 - added tests for this
460 - added docs for this
462 * Moose::Util::TypeConstraints
463 - passing no "additional attribute info" to
464 &find_or_create_type_constraint will no longer
465 attempt to create an __ANON__ type for you,
466 instead it will just return undef.
467 - added docs for this
469 0.30 Fri. Nov. 23, 2007
470 * Moose::Meta::Method::Constructor
471 -builder related bug in inlined constructor. (groditi)
473 * Moose::Meta::Method::Accessor
474 - genereate unnecessary calls to predicates and refactor
475 code generation for runtime speed (groditi)
477 * Moose::Util::TypeConstraints
478 - fix ClassName constraint to introspect symbol table (mst)
479 - added more tests for this (mst)
480 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
482 - added tests for this
485 - adding the link to Recipie 11 (written by Sartak)
486 - adding test for SYNOPSIS code
489 - New tests for builder bug. Upon instantiation, if an
490 attribute had a builder, no value and was not lazy the
491 builder default was not getting run, oops. (groditi)
493 0.29 Tues. Nov. 13, 2007
494 * Moose::Meta::Attribute
495 - Fix error message on missing builder method (groditi)
497 * Moose::Meta::Method::Accessor
498 - Fix error message on missing builder method (groditi)
501 - Add test to check for the correct error message when
502 builder method is missing (groditi)
504 0.28 Tues. Nov. 13, 2007
505 - 0.27 packaged incorrectly (groditi)
507 0.27 Tues. Nov. 13, 2007
508 * Moose::Meta::Attribute
509 - Added support for the new builder option (groditi)
510 - Added support for lazy_build option (groditi)
511 - Changed slot initialization for predicate changes (groditi)
513 * Moose::Meta::Method::Accessor
514 - Added support for lazy_build option (groditi)
515 - Fix inline methods to work with corrected predicate
518 * Moose::Meta::Method::Constructor
519 - Added support for lazy_build option (groditi)
522 - tests for builder and lazy_build (groditi)
524 * fixing some misc. bits in the docs that
525 got mentioned on CPAN Forum & perlmonks
528 - fixed how required methods are handled
529 when they encounter overriden or modified
530 methods from a class (thanks to confound).
531 - added tests for this
533 * Moose::Util::TypeConstraint
534 - fixed the type notation parser so that
535 the | always creates a union and so is
536 no longer a valid type char (thanks to
537 konobi, mugwump and #moose for working
539 - added more tests for this
541 0.26 Thurs. Sept. 27, 2007
544 * Parameterized Types
545 We now support parameterized collection types, such as:
546 ArrayRef[Int] # array or integers
547 HashRef[Object] # a hash with object values
548 They can also be nested:
549 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
550 And work with the type unions as well:
551 ArrayRef[Int | Str] # array of integers of strings
553 * Better Framework Extendability
554 Moose.pm is now "extendable" such that it is now much
555 easier to extend the framework and add your own keywords
556 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
557 section of the Moose.pm docs.
560 In an effort to begin documenting some of the various
561 details of Moose as well as some common idioms, we have
562 created Moose::Cookbook::Snacks as a place to find
563 small (easily digestable) nuggets of Moose code.
566 ~ Several doc updates/cleanup thanks to castaway ~
568 - converted build system to use Module::Install instead of
569 Module::Build (thanks to jrockway)
572 - added all the meta classes to the immutable list and
573 set it to inline the accessors
574 - fix import to allow Sub::Exporter like { into => }
575 and { into_level => } (perigrin)
576 - exposed and documented init_meta() to allow better
577 embedding and extending of Moose (perigrin)
580 - complete re-organization of the test suite
581 - added some new tests as well
582 - finally re-enabled the Moose::POOP test since
583 the new version of DBM::Deep now works again
587 - fixed very odd and very nasty recursion bug with
589 - added tests for this (eilara)
591 * Moose::Meta::Attribute
592 Moose::Meta::Method::Constructor
593 Moose::Meta::Method::Accessor
594 - fixed issue with overload::Overloaded getting called
595 on non-blessed items. (RT #29269)
596 - added tests for this
598 * Moose::Meta::Method::Accessor
599 - fixed issue with generated accessor code making
600 assumptions about hash based classes (thanks to dexter)
602 * Moose::Coookbook::Snacks
603 - these are bits of documentation, not quite as big as
604 Recipes but which have no clear place in the module docs.
605 So they are Snacks! (horray for castaway++)
607 * Moose::Cookbook::Recipe4
608 - updated it to use the new ArrayRef[MyType] construct
609 - updated the accompanying test as well
611 +++ Major Refactor of the Type Constraint system +++
612 +++ with new features added as well +++
614 * Moose::Util::TypeConstraint
615 - no longer uses package variable to keep track of
616 the type constraints, now uses the an instance of
617 Moose::Meta::TypeConstraint::Registry to do it
618 - added more sophisticated type notation parsing
620 - added tests for this
622 * Moose::Meta::TypeConstraint
623 - some minor adjustments to make subclassing easier
624 - added the package_defined_in attribute so that we
625 can track where the type constraints are created
627 * Moose::Meta::TypeConstraint::Union
628 - this is now been refactored to be a subclass of
629 Moose::Meta::TypeConstraint
631 * Moose::Meta::TypeCoercion::Union
632 - this has been added to service the newly refactored
633 Moose::Meta::TypeConstraint::Union and is itself
634 a subclass of Moose::Meta::TypeCoercion
636 * Moose::Meta::TypeConstraint::Parameterized
637 - added this module (taken from MooseX::AttributeHelpers)
638 to help construct nested collection types
639 - added tests for this
641 * Moose::Meta::TypeConstraint::Registry
642 - added this class to keep track of type constraints
644 0.25 Mon. Aug. 13, 2007
646 - Documentation update to reference Moose::Util::TypeConstraints
647 under 'isa' in 'has' for how to define a new type
650 * Moose::Meta::Attribute
651 - required attributes now will no longer accept undef
652 from the constructor, even if there is a default and lazy
653 - added tests for this
654 - default subroutines must return a value which passes the
656 - added tests for this
658 * Moose::Meta::Attribute
659 * Moose::Meta::Method::Constructor
660 * Moose::Meta::Method::Accessor
661 - type-constraint tests now handle overloaded objects correctly
663 - added tests for this (thanks to EvanCarroll)
665 * Moose::Meta::TypeConstraint::Union
666 - added (has_)hand_optimized_constraint to this class so that
667 it behaves as the regular Moose::Meta::TypeConstraint does.
670 - large refactoring of this code
671 - added several more tests
672 - tests for subtle conflict resolition issues
673 added, but not currently running
676 * Moose::Cookbook::Recipe7
677 - added new recipe for augment/inner functionality
679 - added test for this
682 - a formal definition of roles (still in progress)
685 - utilities for easier working with Moose classes
686 - added tests for these
689 - This contains Moose specific test functions
690 - added tests for these
692 0.24 Tues. July 3, 2007
693 ~ Some doc updates/cleanup ~
695 * Moose::Meta::Attribute
696 - added support for roles to be given as parameters
697 to the 'handles' option.
698 - added tests and docs for this
699 - the has '+foo' attribute form now accepts changes to
700 the lazy option, and the addition of a handles option
701 (but not changing the handles option)
702 - added tests and docs for this
705 - required methods are now fetched using find_method_by_name
706 so that required methods can come from superclasses
707 - adjusted tests for this
709 0.23 Mon. June 18, 2007
710 * Moose::Meta::Method::Constructor
711 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
713 - Modify make_immutable to work with the new Class::MOP immutable
714 mechanism + POD + very basic test (groditi)
715 * Moose::Meta::Attribute
716 - Fix handles to use goto() so that caller() comes out properly on
717 the other side (perigrin)
719 0.22 Thurs. May 31, 2007
720 * Moose::Util::TypeConstraints
721 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
722 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
723 prototypes for functions
724 - added the ClassName type constraint, this checks for strings
725 which will respond true to ->isa(UNIVERSAL).
726 - added tests and docs for this
727 - subtyping just in name now works correctly by making the
728 default for where be { 1 }
729 - added test for this
731 * Moose::Meta::Method::Accessor
732 - coerce and lazy now work together correctly, thanks to
733 merlyn for finding this bug
734 - tests added for this
735 - fix reader presedence bug in Moose::Meta::Attribute + tests
738 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
739 a HASH-ref and missed. This produces better error messages then
740 having it die cause undef is not a HASH.
741 - added tests for this
743 0.21 Thursday, May 2nd, 2007
745 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
746 - modified unimport to remove super and inner along with the rest
747 - altered unimport tests to handle this
750 - altered super export to populate SUPER_SLOT
753 - altered augment and override modifier application to use *_SLOT
754 - modified tests for these to unimport one test class each to test
757 - fixed issue where custom attribute metaclasses
758 where not handled correctly in roles
759 - added tests for this
762 - fixed issue where extending metaclasses with
763 roles would blow up. Thanks to Aankhen`` for
764 finding this insidious error, and it's solution.
766 ~~ lots of spelling and grammer fixes in the docs,
767 many many thanks to rlb3 and Aankhen for these :)
769 0.20 Friday, April 6th, 2007
770 >> I messed up the SKIP logic in one test
771 so this release is just to fix that.
774 - 'has' now also accepts an ARRAY ref
775 to create multiple attrs (see docs)
776 (thanks to konobi for this)
777 - added tests and docs
779 0.19 Thurs. April 5th, 2007
780 ~~ More documentation updates ~~
782 * Moose::Util::TypeConstraints
783 - 'type' now supports messages as well
784 thanks to phaylon for finding this
785 - added tests for this
786 - added &list_all_type_constraints and
787 &list_all_builtin_type_constraints
788 functions to facilitate introspection.
790 * Moose::Meta::Attribute
791 - fixed regexp 'handles' declarations
792 to build the list of delegated methods
793 correctly (and not override important
794 things like &new) thanks to ashleyb
796 - added tests and docs for this
797 - added the 'documentation' attributes
798 so that you can actually document your
799 attributes and inspect them through the
801 - added tests and docs for this
804 - when loading custom attribute metaclasses
805 it will first look in for the class in the
806 Moose::Meta::Attribute::Custom::$name, and
807 then default to just loading $name.
808 - added tests and docs for this
810 * Moose::Meta::TypeConstraint
811 - type constraints now stringify to their names.
812 - added test for this
815 - added tests to assure we work with Module::Refresh
816 - added stricter test skip logic in the Moose POOP
817 test, ask Rob Kinyon why.
818 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
820 0.18 Sat. March 10, 2007
821 ~~ Many, many documentation updates ~~
824 - We now use Class::MOP::load_class to
826 - added tests to show types and subtypes
827 working with Declare::Constraints::Simple
828 and Test::Deep as constraint engines.
831 !! You must have Class::MOP 0.37_001 !!
832 !! for this developer release to work !!
834 This release was primarily adding the immutable
835 feature to Moose. An immutable class is one which
836 you promise not to alter. When you set the class
837 as immutable it will perform various bits of
838 memoization and inline certain part of the code
839 (constructors, destructors and accessors). This
840 minimizes (and in some cases totally eliminates)
841 one of Moose's biggest performance hits. This
842 feature is not on by default, and is 100% optional.
843 It has several configurable bits as well, so you
844 can pick and choose to your specific needs.
846 The changes involved in this were fairly wide and
847 highly specific, but 100% backwards compatible, so
848 I am not going to enumerate them here. If you are
849 truely interested in what was changed, please do
852 0.17 Tues. Nov. 14, 2006
853 * Moose::Meta::Method::Accessor
854 - bugfix for read-only accessors which
855 are have a type constraint and lazy.
856 Thanks to chansen for finding it.
858 0.16 Tues. Nov. 14, 2006
860 There are some speed improvements in this release,
861 but they are only the begining, so stay tuned.
864 - BUILDALL and DEMOLISHALL no longer get
865 called unless they actually need to be.
866 This gave us a signifigant speed boost
867 for the cases when there is no BUILD or
868 DEMOLISH method present.
870 * Moose::Util::TypeConstraints
871 * Moose::Meta::TypeConstraint
872 - added an 'optimize_as' option to the
873 type constraint, which allows for a
874 hand optimized version of the type
875 constraint to be used when possible.
876 - Any internally created type constraints
877 now provide an optimized version as well.
879 0.15 Sun. Nov. 5, 2006
881 This version of Moose *must* have Class::MOP 0.36 in order
882 to work correctly. A number of small internal tweaks have
883 been made in order to be compatible with that release.
885 * Moose::Util::TypeConstraints
886 - added &unimport so that you can clean out
887 your class namespace of these exported
891 - fixed minor issue which occasionally
892 comes up during global destruction
894 - moved Moose::Meta::Method::Overriden into
898 - moved Moose::Meta::Role::Method into
901 * Moose::Meta::Attribute
902 - changed how we do type checks so that
903 we reduce the overall cost, but still
906 - moved accessor generation methods to
907 Moose::Meta::Method::Accessor to
908 conform to the API changes from
911 * Moose::Meta::TypeConstraint
912 - changed how constraints are compiled
913 so that we do less recursion and more
914 iteration. This makes the type check
916 - moved Moose::Meta::TypeConstraint::Union
919 * Moose::Meta::Method::Accessor
920 - created this from methods formerly found in
921 Moose::Meta::Attribute
923 * Moose::Meta::Role::Method
924 - moved this from Moose::Meta::Role
926 * Moose::Meta::Method::Overriden
927 - moved this from Moose::Meta::Class
929 * Moose::Meta::TypeConstraint::Union
930 - moved this from Moose::Meta::TypeConstraint
932 0.14 Mon. Oct. 9, 2006
934 * Moose::Meta::Attribute
935 - fixed lazy attributes which were not getting
936 checked with the type constraint (thanks ashley)
937 - added tests for this
938 - removed the over-enthusiastic DWIMery of the
939 automatic ArrayRef and HashRef defaults, it
940 broke predicates in an ugly way.
941 - removed tests for this
943 0.13 Sat. Sept. 30, 2006
945 This version of Moose *must* have Class::MOP 0.35 in order
946 to work correctly. A number of small internal tweaks have
947 been made in order to be compatible with that release.
950 - Removed the use of UNIVERSAL::require to be a better
951 symbol table citizen and remove a dependency
952 (thanks Adam Kennedy)
954 **~~ removed experimental & undocumented feature ~~**
955 - commented out the 'method' and 'self' keywords, see the
956 comments for more info.
959 - added a FAQ and WTF files to document frequently
960 asked questions and common problems
962 * Moose::Util::TypeConstraints
963 - added GlobRef and FileHandle type constraint
964 - added tests for this
966 * Moose::Meta::Attribute
967 - if your attribute 'isa' ArrayRef of HashRef, and you have
968 not explicitly set a default, then make the default DWIM.
969 This will also work for subtypes of ArrayRef and HashRef
971 - you can now auto-deref subtypes of ArrayRef or HashRef too.
972 - new test added for this (thanks to ashley)
975 - added basic support for runtime role composition
976 but this is still *highly experimental*, so feedback
977 is much appreciated :)
978 - added tests for this
980 * Moose::Meta::TypeConstraint
981 - the type constraint now handles the coercion process
982 through delegation, this is to support the coercion
985 * Moose::Meta::TypeConstraint::Union
986 - it is now possible for coercions to be performed
988 - added tests for this (thanks to konobi)
990 * Moose::Meta::TypeCoercion
991 - properly capturing error when type constraint
995 - Scalar::Util 1.18 is bad on Win32, so temporarily
996 only require version 1.17 for Win32 and cygwin.
997 (thanks Adam Kennedy)
999 0.12 Sat. Sept. 1, 2006
1001 - Recipe5 (subtypes & coercion) has been written
1004 - fixed "bad meta" error message to be more descriptive
1005 - fixed &unimport to not remove the &inner and &super
1006 keywords because we need to localize them.
1007 - fixed number of spelling/grammer issues, thanks Theory :)
1009 **~~ experimental & undocumented feature ~~**
1010 - added the method and self keywords, they are basically
1011 just sugar, and they may not stay around.
1014 - added &dump method to easily Data::Dumper
1017 * Moose::Meta::TypeConstraint
1018 - added the &is_a_type_of method to check both the current
1019 and the subtype of a method (similar to &isa with classes)
1022 - this is now a subclass of Class::MOP::Module, and no longer
1023 creates the _role_meta ugliness of before.
1024 - fixed tests to reflect this change
1026 0.11 Wed. July 12, 2006
1028 - added an &unimport method to remove all the keywords
1029 that Moose will import, simply add 'no Moose' to the
1030 bottom of your class file.
1033 - fixed some test failures caused by a forgotten test
1036 0.10 Thurs. July 6, 2006
1038 - improved error message when loading modules so
1039 it is less confusing when you load a role.
1040 - added &calculate_all_roles method to
1041 Moose::Meta::Class and Moose::Meta::Role
1044 This module has been tested against Class::MOP 0.30
1045 but it does not yet utilize the optimizations
1046 it makes available. Stay tuned for that ;)
1048 0.09_03 Fri. June 23, 2006
1049 ++ DEVELOPER RELEASE ++
1051 - 'use strict' and 'use warnings' are no longer
1052 needed in Moose classes, Moose itself will
1053 turn them on for you.
1054 - added tests for this
1055 - moved code from exported subs to private methods
1056 in Moose::Meta::Class
1059 - as with Moose, strict and warnings are
1060 automatically turned on for you.
1061 - added tests for this
1064 - now handles an edge case for override errors
1065 - added tests for this
1066 - added some more edge case tests
1068 0.09_02 Tues. May 16, 2006
1069 ++ DEVELOPER RELEASE ++
1071 - added prototypes to the exported subs
1075 - added prototypes to the exported subs
1078 * Moose::Util::TypeConstraints
1079 - cleaned up prototypes for the subs
1082 0.09_01 Fri. May 12, 2006
1083 ++ DEVELOPER RELEASE ++
1084 - This release works in combination with
1085 Class::MOP 0.29_01, it is a developer
1086 release because it uses the a new
1087 instance sub-protocol and a fairly
1088 complete Role implementation. It has
1089 not yet been optimized, so it slower
1090 the the previous CPAN version. This
1091 release also lacks good updated docs,
1092 the official release will have updated docs.
1095 - refactored the keyword exports
1096 - 'with' now checks Role validaity and
1097 accepts more than one Role at a time
1098 - 'extends' makes metaclass adjustments as
1099 needed to ensure metaclass compatability
1102 - refactored the keyword exports
1103 - 'with' now checks Role validaity and
1104 accepts more than one Role at a time
1106 * Moose::Util::TypeConstraints
1107 - added the 'enum' keyword for simple
1108 string enumerations which can be used as
1110 - see example of usage in t/202_example.t
1113 - more careful checking of params to new()
1116 - much work done on the role composition
1117 - many new tests for conflict detection
1118 and composition edge cases
1119 - not enough documentation, I suggest
1120 looking at the tests
1122 * Moose::Meta::Instance
1123 - added new Instance metaclass to support
1124 the new Class::MOP instance protocol
1126 * Moose::Meta::Class
1127 - some small changes to support the new
1129 - some small additions to support Roles
1131 * Moose::Meta::Attribute
1132 - some improvements to the accessor generation code
1134 - some small changes to support the new
1136 - (still somewhat) experimental delegation support
1137 with the 'handles' option
1138 - added several tests for this
1139 - no docs for this yet
1141 0.05 Thurs. April 27, 2006
1143 - keywords are now exported with Sub::Exporter
1144 thanks to chansen for this commit
1145 - has keyword now takes a 'metaclass' option
1146 to support custom attribute meta-classes
1147 on a per-attribute basis
1148 - added tests for this
1149 - the 'has' keyword not accepts inherited slot
1150 specifications (has '+foo'). This is still an
1151 experimental feature and probably not finished
1152 see t/038_attribute_inherited_slot_specs.t for
1153 more details, or ask about it on #moose
1154 - added tests for this
1157 - keywords are now exported with Sub::Exporter
1159 * Moose::Utils::TypeConstraints
1160 - reorganized the type constraint hierarchy, thanks
1161 to nothingmuch and chansen for his help and advice
1163 - added some tests for this
1164 - keywords are now exported with Sub::Exporter
1165 thanks to chansen for this commit
1167 * Moose::Meta::Class
1168 - due to changes in Class::MOP, we had to change
1169 construct_instance (for the better)
1171 * Moose::Meta::Attribute
1172 - due to changes in Class::MOP, we had to add the
1173 initialize_instance_slot method (it's a good thing)
1175 * Moose::Meta::TypeConstraint
1176 - added type constraint unions
1177 - added tests for this
1178 - added the is_subtype_of predicate method
1179 - added tests for this
1181 0.04 Sun. April 16th, 2006
1183 - Roles can now consume other roles
1184 - added tests for this
1185 - Roles can specify required methods now with
1186 the requires() keyword
1187 - added tests for this
1190 - ripped out much of it's guts ,.. much cleaner now
1191 - added required methods and correct handling of
1192 them in apply() for both classes and roles
1193 - added tests for this
1194 - no longer adds a does() method to consuming classes
1195 it relys on the one in Moose::Object
1196 - added roles attribute and some methods to support
1197 roles consuming roles
1199 * Moose::Meta::Attribute
1200 - added support for triggers on attributes
1201 - added tests for this
1202 - added support for does option on an attribute
1203 - added tests for this
1205 * Moose::Meta::Class
1206 - added support for attribute triggers in the
1208 - added tests for this
1211 - Moose no longer creates a subtype for your class
1212 if a subtype of the same name already exists, this
1213 should DWIM in 99.9999% of all cases
1215 * Moose::Util::TypeConstraints
1216 - fixed bug where incorrect subtype conflicts were
1218 - added test for this
1221 - this class can now be extended with 'use base' if
1222 you need it, it properly loads the metaclass class now
1223 - added test for this
1225 0.03_02 Wed. April 12, 2006
1227 - you must now explictly use Moose::Util::TypeConstraints
1228 it no longer gets exported for you automatically
1231 - new() now accepts hash-refs as well as key/value lists
1232 - added does() method to check for Roles
1233 - added tests for this
1235 * Moose::Meta::Class
1236 - added roles attribute along with the add_role() and
1238 - added tests for this
1241 - now adds a does() method to consuming classes
1242 which tests the class's hierarchy for roles
1243 - added tests for this
1245 0.03_01 Mon. April 10, 2006
1247 - added new Role recipe (no content yet, only code)
1250 - added 'with' keyword for Role support
1251 - added test and docs for this
1252 - fixed subtype quoting bug
1253 - added test for this
1257 - added test and docs
1259 * Moose::Util::TypeConstraints
1260 - added the message keyword to add custom
1261 error messages to type constraints
1264 - the meta role to support Moose::Role
1265 - added tests and docs
1267 * Moose::Meta::Class
1268 - moved a number of things from Moose.pm
1269 to here, they should have been here
1272 * Moose::Meta::Attribute
1273 - moved the attribute option macros here
1274 instead of putting them in Moose.pm
1276 * Moose::Meta::TypeConstraint
1277 - added the message attributes and the
1279 - added tests and docs for this
1281 0.03 Thurs. March 30, 2006
1283 - added the Moose::Cookbook with 5 recipes,
1284 describing all the stuff Moose can do.
1287 - fixed an issue with &extends super class loading
1288 it now captures errors and deals with inline
1289 packages correctly (bug found by mst, solution
1291 - added super/override & inner/augment features
1292 - added tests and docs for these
1295 - BUILDALL now takes a reference of the %params
1296 that are passed to &new, and passes that to
1299 * Moose::Util::TypeConstraints
1300 - Type constraints now survive runtime reloading
1301 - added test for this
1303 * Moose::Meta::Class
1304 - fixed the way attribute defaults are handled
1305 during instance construction (bug found by chansen)
1307 * Moose::Meta::Attribute
1308 - read-only attributes now actually enforce their
1309 read-only-ness (this corrected in Class::MOP as
1312 0.02 Tues. March 21, 2006
1314 - many more tests, fixing some bugs and
1316 - &extends now loads the base module with
1318 - added UNIVERSAL::require to the
1321 - each new Moose class will also create
1322 and register a subtype of Object which
1323 correspond to the new Moose class.
1324 - the 'isa' option in &has now only
1325 accepts strings, and will DWIM in
1328 * Moose::Util::TypeConstraints
1329 - added type coercion features
1330 - added tests for this
1331 - added support for this in attributes
1332 and instance construction
1334 - type construction no longer creates a
1335 function, it registers the type instead.
1336 - added several functions to get the
1340 - BUILDALL and DEMOLISHALL were broken
1341 because of a mis-named hash key, Whoops :)
1343 * Moose::Meta::Attribute
1344 - adding support for coercion in the
1345 autogenerated accessors
1347 * Moose::Meta::Class
1348 - adding support for coercion in the
1349 instance construction
1351 * Moose::Meta::TypeConstraint
1352 * Moose::Meta::TypeCoercion
1353 - type constraints and coercions are now
1354 full fledges meta-objects
1356 0.01 Wed. March 15, 2006
1357 - Moooooooooooooooooose!!!