1 Revision history for Perl extension Moose
4 * Moose::Meta::Method::Constructor
5 - fixed bug where trigger was not being
6 called by the inlined immutable
8 - added test for this (thanks to Caelum)
10 * Moose::Meta::Role::Application::ToInstance
11 - now uses the metaclass of the instance
12 (if possible) to create the anon-class
13 (thanks Jonathan Rockway)
15 * Moose::Cookbook::Snack::ArrayRef
16 Moose::Cookbook::Snack::HashRef
17 Moose::Cookbook::Snack::Perl5ObjsVsMooseObjs
18 Moose::Cookbook::Snack::BUILD
19 - several new Snacks added to the cookbook
23 - fixed hash-ordering test bug that was
24 causing occasional cpantester failures
26 0.44 Sat. May 10, 2008
28 - made make_immutable warning cluck to
29 show where the error is (thanks mst)
32 - BUILDALL and DEMOLISHALL now call
33 ->body when looping through the
34 methods, to avoid the overloaded
36 - fixed issue where DEMOLISHALL was
37 eating the $@ values, and so not
38 working correctly, it still kind of
39 eats them, but so does vanilla perl
40 - added tests for this
42 * Moose::Cookbook::Recipe7
43 - added new recipe for immutable
44 functionality (thanks Dave Rolsky)
46 * Moose::Cookbook::Recipe9
47 - added new recipe for builder and
48 lazy_build (thanks Dave Rolsky)
50 * Moose::Cookbook::Recipe11
51 - added new recipe for method aliasing
52 and exclusion with Roles (thanks Dave Rolsky)
55 - fixed Win32 test failure (thanks spicyjack)
57 ~ removed Build.PL and Module::Build compat
58 since Module::Install has done that.
60 0.43 Wed. April, 30, 2008
62 drink more coffee before
63 doing release engineering
65 - whoops, forgot to do the smolder tests,
66 and we broke some of the custom meta-attr
67 modules. This fixes that.
69 0.42 Mon. April 28, 2008
70 - some bad tests slipped by, nothing else
71 changed in this release (cpantesters++)
73 - upped the Class::MOP dependency to 0.55
74 since we have tests which need the C3
77 0.41 Mon. April 28, 2008
78 ~~ numerous documentation updates ~~
80 - Changed all usage of die to Carp::croak for better
81 error reporting (initial patch by Tod Hagan)
84 - the make_immutable keyword is now deprecated, don't
85 use it in any new code and please fix your old code
86 as well. There will be 2 releases, and then it will
92 - refactored the way inner and super work to avoid
93 any method/@ISA cache penalty (nothingmuch)
96 - fixing &new_object to make sure trigger gets the
97 coerced value (spotted by Charles Alderman on the
101 * Moose::Meta::Method::Constructor
102 - immutable classes which had non-lazy attributes were calling
103 the default generating sub twice in the constructor. (bug
104 found by Jesse Luehrs, fixed by Dave Rolsky)
105 - added tests for this (Dave Rolsky)
106 - fix typo in initialize_body method (nothingmuch)
108 * Moose::Meta::Method::Destructor
109 - fix typo in initialize_body method (nothingmuch)
111 * Moose::Meta::Method::Overriden
112 Moose::Meta::Method::Augmented
113 - moved the logic for these into their own
114 classes (nothingmuch)
116 * Moose::Meta::Attribute
117 - inherited attributes may now be extended without
118 restriction on the type ('isa', 'does') (Sartak)
119 - added tests for this (Sartak)
120 - when an attribute property is malformed (such as lazy without
121 a default), give the name of the attribute in the error
123 - added the &applied_traits and &has_applied_traits methods
124 to allow introspection of traits
125 - added tests for this
126 - moved 'trait' and 'metaclass' argument handling to here from
128 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
129 '+foo' syntax) (nothingmuch)
130 - added tests for this (t0m)
133 - localize $@ inside DEMOLISHALL to avoid it
134 eating $@ (found by Ernesto)
135 - added test for this (thanks to Ernesto)
137 * Moose::Util::TypeConstraints
138 - &find_type_constraint now DWIMs when given an
139 type constraint object or name (nothingmuch)
140 - &find_or_create_type_constraint superseded with a number of more
142 - find_or_create_{isa,does}_type_constraint
143 - find_or_parse_type_constraint
145 * Moose::Meta::TypeConstraint
146 Moose::Meta::TypeConstraint::Class
147 Moose::Meta::TypeConstraint::Role
148 Moose::Meta::TypeConstraint::Enum
149 Moose::Meta::TypeConstraint::Union
150 Moose::Meta::TypeConstraint::Parameterized
151 - added the &equals method for comparing two type
152 constraints (nothingmuch)
153 - added tests for this (nothingmuch)
155 * Moose::Meta::TypeConstraint
156 - add the &parents method, which is just an alias to &parent.
157 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
159 * Moose::Meta::TypeConstraint::Class
160 - added the class attribute for introspection purposes
162 - added tests for this
164 * Moose::Meta::TypeConstraint::Enum
165 Moose::Meta::TypeConstraint::Role
166 - broke these out into their own classes (nothingmuch)
168 * Moose::Cookbook::Recipe*
169 - fixed references to test file locations in the POD
170 and updated up some text for new Moose features
174 - Added &resolve_metaclass_alias, a helper function for finding an actual
175 class for a short name (e.g. in the traits list)
177 0.40 Fri. March 14, 2008
178 - I hate Pod::Coverage
180 0.39 Fri. March 14, 2008
182 - documenting the use of '+name' with attributes
183 that come from recently composed roles. It makes
184 sense, people are using it, and so why not just
185 officially support it.
186 - fixing the 'extends' keyword so that it will not
187 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
190 - added the perl -Moose=+Class::Name feature to allow
191 monkeypatching of classes in one liners
194 - fixing the 'apply_all_roles' keyword so that it will not
195 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
198 - added ->create method which now supports roles (thanks to jrockway)
199 - added tests for this
200 - added ->create_anon_class which now supports roles and caching of
201 the results (thanks to jrockway)
202 - added tests for this
203 - made ->does_role a little more forgiving when it is
204 checking a Class::MOP era metaclasses.
206 * Moose::Meta::Role::Application::ToInstance
207 - it is now possible to pass extra params to be used when
208 a role is applied to an the instance (rebless_params)
209 - added tests for this
211 * Moose::Util::TypeConstraints
212 - class_type now accepts an optional second argument for a
213 custom message. POD anotated accordingly (groditi)
214 - added tests for this
215 - it is now possible to make anon-enums by passing 'enum' an
216 ARRAY ref instead of the $name => @values. Everything else
218 - added tests for this
221 - making test for using '+name' on attributes consumed
222 from a role, it works and makes sense too.
224 * Moose::Meta::Attribute
225 - fix handles so that it doesn't return nothing
226 when the method cannot be found, not sure why
227 it ever did this originally, this means we now
228 have slightly better support for AUTOLOADed
230 - added more delegation tests
231 - adding ->does method to this so as to better
232 support traits and their introspection.
233 - added tests for this
236 - localizing the Data::Dumper configurations so
237 that it does not pollute others (RT #33509)
238 - made ->does a little more forgiving when it is
239 passed Class::MOP era metaclasses.
241 0.38 Fri. Feb. 15, 2008
242 * Moose::Meta::Attribute
243 - fixed initializer to correctly do
244 type checking and coercion in the
246 - added tests for this
249 - fixed some finicky tests (thanks to konobi)
251 0.37 Thurs. Feb. 14, 2008
253 - fixed some details in Moose::init_meta
254 and its superclass handling (thanks thepler)
255 - added tests for this (thanks thepler)
256 - 'has' now dies if you don't pass in name
258 - added the 'make_immutable' keyword as a shortcut
262 Moose::Meta::Method::Constructor
263 Moose::Meta::Attribute
264 - making (init_arg => undef) work here too
265 (thanks to nothingmuch)
267 * Moose::Meta::Attribute
268 Moose::Meta::Method::Constructor
269 Moose::Meta::Method::Accessor
270 - make lazy attributes respect attr initializers (rjbs)
271 - added tests for this
273 * Moose::Util::TypeConstraints
274 Moose::Util::TypeConstraints::OptimizedConstraints
275 Moose::Meta::TypeConstraints
276 Moose::Meta::Attribute
277 Moose::Meta::Method::Constructor
278 Moose::Meta::Method::Accessor
279 - making type errors use the
280 assigned message (thanks to Sartak)
281 - added tests for this
283 * Moose::Meta::Method::Destructor
284 - making sure DESTROY gets inlined properly
285 with successive DEMOLISH calls (thanks to manito)
287 * Moose::Meta::Attribute
288 Moose::Meta::Method::Accessor
289 - fixed handling of undef with type constraints
291 - added tests for this
294 - added &get_all_init_args and &get_all_attribute_values
295 (thanks to Sartak and nothingmuch)
297 0.36 Sat. Jan. 26, 2008
299 Moose::Meta::Attribute
300 - role type tests now support when roles are
301 applied to non-Moose classes (found by ash)
302 - added tests for this (thanks to ash)
303 - couple extra tests to boost code coverage
305 * Moose::Meta::Method::Constructor
306 - improved fix for handling Class::MOP attributes
307 - added test for this
310 - handled the add_attribute($attribute_meta_object)
312 - added test for this
314 0.35 Tues. Jan. 22, 2008
315 * Moose::Meta::Method::Constructor
316 - fix to make sure even Class::MOP attributes
317 are handled correctly (Thanks to Dave Rolsky)
318 - added test for this (also Dave Rolsky)
321 - improved error message on _apply_all_roles,
322 you should now use Moose::Util::apply_all_roles
323 and you shouldnt have been using a _ prefixed
324 method in the first place ;)
326 0.34 Mon. Jan. 21, 2008
327 ~~~ more misc. doc. fixes ~~~
328 ~~ updated copyright dates ~~
330 Moose is now a postmodern object system :)
331 - (see the POD for details)
333 * <<Role System Refactoring>>
334 - this release contains a major reworking and
335 cleanup of the role system
336 - 100% backwards compat.
337 - Role application now restructured into seperate
338 classes based on type of applicants
339 - Role summation (combining of more than one role)
340 is much cleaner and anon-classes are no longer
342 - new Composite role metaclass
343 - runtime application of roles to instances
344 is now more efficient and re-uses generated
345 classes when applicable
347 * <<New Role composition features>>
348 - methods can now be excluded from a given role
350 - methods can now be aliased to another name (and
351 still retain the original as well)
353 * Moose::Util::TypeConstraints::OptimizedConstraints
354 - added this module (see above)
357 - fixed the &_process_attribute method to be called
358 by &add_attribute, so that the API is now correct
360 * Moose::Meta::Method::Accessor
361 - fixed bug when passing a list of values to
362 an accessor would get (incorrectly) ignored.
363 Thanks to Sartak for finding this ;)
364 - added tests for this (Sartak again)
366 * Moose::Meta::Method::Accessor
367 Moose::Meta::Method::Constructor
368 Moose::Meta::Attribute
369 Moose::Meta::TypeConstraint
370 Moose::Meta::TypeCoercion
371 - lots of cleanup of such things as:
373 - type constraint handling
374 - error handling/messages
375 (thanks to nothingmuch)
377 * Moose::Meta::TypeConstraint::Parameterizable
378 - added this module to support the refactor
379 in Moose::Meta::TypeConstraint::Parameterized
381 * Moose::Meta::TypeConstraint::Parameterized
382 - refactored how these types are handled so they
383 are more generic and not confined to ArrayRef
387 - shortened some file names for better VMS support (RT #32381)
389 0.33 Fri. Dec. 14, 2007
390 !! Moose now loads 2 x faster !!
391 !! with new Class::MOP 0.49 !!
393 ++ new oose.pm module to make command line
394 Moose-ness easier (see POD docs for more)
398 - several tweaks to take advantage of the
399 new method map caching in Class::MOP
401 * Moose::Meta::TypeConstraint::Parameterized
402 - allow subtypes of ArrayRef and HashRef to
403 be used as a container (sartak)
404 - added tests for this
405 - basic support for coercion to ArrayRef and
406 HashRef for containers (sartak)
407 - added tests for this
409 * Moose::Meta::TypeCoercion
410 - coercions will now create subtypes as needed
411 so you can now add coercions to parameterized
412 types without having to explictly define them
413 - added tests for this
415 * Moose::Meta::Method::Accessor
416 - allow subclasses to decide whether we need
417 to copy the value into a new variable (sartak)
419 0.32 Tues. Dec. 4, 2007
420 * Moose::Util::TypeConstraints
421 - fixing how subtype aliases of unions work
422 they should inherit the parent's coercion
423 - added tests for this
424 - you can now define multiple coercions on
425 a single type at different times instead of
426 having to do it all in one place
427 - added tests for this
429 * Moose::Meta::TypeConstraint
430 - there is now a default constraint of sub { 1 }
431 instead of Moose::Util::TypeConstraints setting
434 * Moose::Meta::TypeCoercion
435 * Moose::Meta::TypeCoercion::Union
436 - added the &has_coercion_for_type and
437 &add_type_coercions methods to support the
438 new features above (although you cannot add
439 more type coercions for Union types)
441 0.31 Mon. Nov. 26, 2007
442 * Moose::Meta::Attribute
443 - made the +attr syntax handle extending types with
444 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
445 now works if the original foo is an ArrayRef.
446 - added tests for this.
447 - delegation now works even if the attribute does not
448 have a reader method using the get_read_method_ref
449 method from Class::MOP::Attribute.
450 - added tests for this
451 - added docs for this
453 * Moose::Util::TypeConstraints
454 - passing no "additional attribute info" to
455 &find_or_create_type_constraint will no longer
456 attempt to create an __ANON__ type for you,
457 instead it will just return undef.
458 - added docs for this
460 0.30 Fri. Nov. 23, 2007
461 * Moose::Meta::Method::Constructor
462 -builder related bug in inlined constructor. (groditi)
464 * Moose::Meta::Method::Accessor
465 - genereate unnecessary calls to predicates and refactor
466 code generation for runtime speed (groditi)
468 * Moose::Util::TypeConstraints
469 - fix ClassName constraint to introspect symbol table (mst)
470 - added more tests for this (mst)
471 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
473 - added tests for this
476 - adding the link to Recipie 11 (written by Sartak)
477 - adding test for SYNOPSIS code
480 - New tests for builder bug. Upon instantiation, if an
481 attribute had a builder, no value and was not lazy the
482 builder default was not getting run, oops. (groditi)
484 0.29 Tues. Nov. 13, 2007
485 * Moose::Meta::Attribute
486 - Fix error message on missing builder method (groditi)
488 * Moose::Meta::Method::Accessor
489 - Fix error message on missing builder method (groditi)
492 - Add test to check for the correct error message when
493 builder method is missing (groditi)
495 0.28 Tues. Nov. 13, 2007
496 - 0.27 packaged incorrectly (groditi)
498 0.27 Tues. Nov. 13, 2007
499 * Moose::Meta::Attribute
500 - Added support for the new builder option (groditi)
501 - Added support for lazy_build option (groditi)
502 - Changed slot initialization for predicate changes (groditi)
504 * Moose::Meta::Method::Accessor
505 - Added support for lazy_build option (groditi)
506 - Fix inline methods to work with corrected predicate
509 * Moose::Meta::Method::Constructor
510 - Added support for lazy_build option (groditi)
513 - tests for builder and lazy_build (groditi)
515 * fixing some misc. bits in the docs that
516 got mentioned on CPAN Forum & perlmonks
519 - fixed how required methods are handled
520 when they encounter overriden or modified
521 methods from a class (thanks to confound).
522 - added tests for this
524 * Moose::Util::TypeConstraint
525 - fixed the type notation parser so that
526 the | always creates a union and so is
527 no longer a valid type char (thanks to
528 konobi, mugwump and #moose for working
530 - added more tests for this
532 0.26 Thurs. Sept. 27, 2007
535 * Parameterized Types
536 We now support parameterized collection types, such as:
537 ArrayRef[Int] # array or integers
538 HashRef[Object] # a hash with object values
539 They can also be nested:
540 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
541 And work with the type unions as well:
542 ArrayRef[Int | Str] # array of integers of strings
544 * Better Framework Extendability
545 Moose.pm is now "extendable" such that it is now much
546 easier to extend the framework and add your own keywords
547 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
548 section of the Moose.pm docs.
551 In an effort to begin documenting some of the various
552 details of Moose as well as some common idioms, we have
553 created Moose::Cookbook::Snacks as a place to find
554 small (easily digestable) nuggets of Moose code.
557 ~ Several doc updates/cleanup thanks to castaway ~
559 - converted build system to use Module::Install instead of
560 Module::Build (thanks to jrockway)
563 - added all the meta classes to the immutable list and
564 set it to inline the accessors
565 - fix import to allow Sub::Exporter like { into => }
566 and { into_level => } (perigrin)
567 - exposed and documented init_meta() to allow better
568 embedding and extending of Moose (perigrin)
571 - complete re-organization of the test suite
572 - added some new tests as well
573 - finally re-enabled the Moose::POOP test since
574 the new version of DBM::Deep now works again
578 - fixed very odd and very nasty recursion bug with
580 - added tests for this (eilara)
582 * Moose::Meta::Attribute
583 Moose::Meta::Method::Constructor
584 Moose::Meta::Method::Accessor
585 - fixed issue with overload::Overloaded getting called
586 on non-blessed items. (RT #29269)
587 - added tests for this
589 * Moose::Meta::Method::Accessor
590 - fixed issue with generated accessor code making
591 assumptions about hash based classes (thanks to dexter)
593 * Moose::Coookbook::Snacks
594 - these are bits of documentation, not quite as big as
595 Recipes but which have no clear place in the module docs.
596 So they are Snacks! (horray for castaway++)
598 * Moose::Cookbook::Recipe4
599 - updated it to use the new ArrayRef[MyType] construct
600 - updated the accompanying test as well
602 +++ Major Refactor of the Type Constraint system +++
603 +++ with new features added as well +++
605 * Moose::Util::TypeConstraint
606 - no longer uses package variable to keep track of
607 the type constraints, now uses the an instance of
608 Moose::Meta::TypeConstraint::Registry to do it
609 - added more sophisticated type notation parsing
611 - added tests for this
613 * Moose::Meta::TypeConstraint
614 - some minor adjustments to make subclassing easier
615 - added the package_defined_in attribute so that we
616 can track where the type constraints are created
618 * Moose::Meta::TypeConstraint::Union
619 - this is now been refactored to be a subclass of
620 Moose::Meta::TypeConstraint
622 * Moose::Meta::TypeCoercion::Union
623 - this has been added to service the newly refactored
624 Moose::Meta::TypeConstraint::Union and is itself
625 a subclass of Moose::Meta::TypeCoercion
627 * Moose::Meta::TypeConstraint::Parameterized
628 - added this module (taken from MooseX::AttributeHelpers)
629 to help construct nested collection types
630 - added tests for this
632 * Moose::Meta::TypeConstraint::Registry
633 - added this class to keep track of type constraints
635 0.25 Mon. Aug. 13, 2007
637 - Documentation update to reference Moose::Util::TypeConstraints
638 under 'isa' in 'has' for how to define a new type
641 * Moose::Meta::Attribute
642 - required attributes now will no longer accept undef
643 from the constructor, even if there is a default and lazy
644 - added tests for this
645 - default subroutines must return a value which passes the
647 - added tests for this
649 * Moose::Meta::Attribute
650 * Moose::Meta::Method::Constructor
651 * Moose::Meta::Method::Accessor
652 - type-constraint tests now handle overloaded objects correctly
654 - added tests for this (thanks to EvanCarroll)
656 * Moose::Meta::TypeConstraint::Union
657 - added (has_)hand_optimized_constraint to this class so that
658 it behaves as the regular Moose::Meta::TypeConstraint does.
661 - large refactoring of this code
662 - added several more tests
663 - tests for subtle conflict resolition issues
664 added, but not currently running
667 * Moose::Cookbook::Recipe7
668 - added new recipe for augment/inner functionality
670 - added test for this
673 - a formal definition of roles (still in progress)
676 - utilities for easier working with Moose classes
677 - added tests for these
680 - This contains Moose specific test functions
681 - added tests for these
683 0.24 Tues. July 3, 2007
684 ~ Some doc updates/cleanup ~
686 * Moose::Meta::Attribute
687 - added support for roles to be given as parameters
688 to the 'handles' option.
689 - added tests and docs for this
690 - the has '+foo' attribute form now accepts changes to
691 the lazy option, and the addition of a handles option
692 (but not changing the handles option)
693 - added tests and docs for this
696 - required methods are now fetched using find_method_by_name
697 so that required methods can come from superclasses
698 - adjusted tests for this
700 0.23 Mon. June 18, 2007
701 * Moose::Meta::Method::Constructor
702 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
704 - Modify make_immutable to work with the new Class::MOP immutable
705 mechanism + POD + very basic test (groditi)
706 * Moose::Meta::Attribute
707 - Fix handles to use goto() so that caller() comes out properly on
708 the other side (perigrin)
710 0.22 Thurs. May 31, 2007
711 * Moose::Util::TypeConstraints
712 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
713 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
714 prototypes for functions
715 - added the ClassName type constraint, this checks for strings
716 which will respond true to ->isa(UNIVERSAL).
717 - added tests and docs for this
718 - subtyping just in name now works correctly by making the
719 default for where be { 1 }
720 - added test for this
722 * Moose::Meta::Method::Accessor
723 - coerce and lazy now work together correctly, thanks to
724 merlyn for finding this bug
725 - tests added for this
726 - fix reader presedence bug in Moose::Meta::Attribute + tests
729 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
730 a HASH-ref and missed. This produces better error messages then
731 having it die cause undef is not a HASH.
732 - added tests for this
734 0.21 Thursday, May 2nd, 2007
736 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
737 - modified unimport to remove super and inner along with the rest
738 - altered unimport tests to handle this
741 - altered super export to populate SUPER_SLOT
744 - altered augment and override modifier application to use *_SLOT
745 - modified tests for these to unimport one test class each to test
748 - fixed issue where custom attribute metaclasses
749 where not handled correctly in roles
750 - added tests for this
753 - fixed issue where extending metaclasses with
754 roles would blow up. Thanks to Aankhen`` for
755 finding this insidious error, and it's solution.
757 ~~ lots of spelling and grammer fixes in the docs,
758 many many thanks to rlb3 and Aankhen for these :)
760 0.20 Friday, April 6th, 2007
761 >> I messed up the SKIP logic in one test
762 so this release is just to fix that.
765 - 'has' now also accepts an ARRAY ref
766 to create multiple attrs (see docs)
767 (thanks to konobi for this)
768 - added tests and docs
770 0.19 Thurs. April 5th, 2007
771 ~~ More documentation updates ~~
773 * Moose::Util::TypeConstraints
774 - 'type' now supports messages as well
775 thanks to phaylon for finding this
776 - added tests for this
777 - added &list_all_type_constraints and
778 &list_all_builtin_type_constraints
779 functions to facilitate introspection.
781 * Moose::Meta::Attribute
782 - fixed regexp 'handles' declarations
783 to build the list of delegated methods
784 correctly (and not override important
785 things like &new) thanks to ashleyb
787 - added tests and docs for this
788 - added the 'documentation' attributes
789 so that you can actually document your
790 attributes and inspect them through the
792 - added tests and docs for this
795 - when loading custom attribute metaclasses
796 it will first look in for the class in the
797 Moose::Meta::Attribute::Custom::$name, and
798 then default to just loading $name.
799 - added tests and docs for this
801 * Moose::Meta::TypeConstraint
802 - type constraints now stringify to their names.
803 - added test for this
806 - added tests to assure we work with Module::Refresh
807 - added stricter test skip logic in the Moose POOP
808 test, ask Rob Kinyon why.
809 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
811 0.18 Sat. March 10, 2007
812 ~~ Many, many documentation updates ~~
815 - We now use Class::MOP::load_class to
817 - added tests to show types and subtypes
818 working with Declare::Constraints::Simple
819 and Test::Deep as constraint engines.
822 !! You must have Class::MOP 0.37_001 !!
823 !! for this developer release to work !!
825 This release was primarily adding the immutable
826 feature to Moose. An immutable class is one which
827 you promise not to alter. When you set the class
828 as immutable it will perform various bits of
829 memoization and inline certain part of the code
830 (constructors, destructors and accessors). This
831 minimizes (and in some cases totally eliminates)
832 one of Moose's biggest performance hits. This
833 feature is not on by default, and is 100% optional.
834 It has several configurable bits as well, so you
835 can pick and choose to your specific needs.
837 The changes involved in this were fairly wide and
838 highly specific, but 100% backwards compatible, so
839 I am not going to enumerate them here. If you are
840 truely interested in what was changed, please do
843 0.17 Tues. Nov. 14, 2006
844 * Moose::Meta::Method::Accessor
845 - bugfix for read-only accessors which
846 are have a type constraint and lazy.
847 Thanks to chansen for finding it.
849 0.16 Tues. Nov. 14, 2006
851 There are some speed improvements in this release,
852 but they are only the begining, so stay tuned.
855 - BUILDALL and DEMOLISHALL no longer get
856 called unless they actually need to be.
857 This gave us a signifigant speed boost
858 for the cases when there is no BUILD or
859 DEMOLISH method present.
861 * Moose::Util::TypeConstraints
862 * Moose::Meta::TypeConstraint
863 - added an 'optimize_as' option to the
864 type constraint, which allows for a
865 hand optimized version of the type
866 constraint to be used when possible.
867 - Any internally created type constraints
868 now provide an optimized version as well.
870 0.15 Sun. Nov. 5, 2006
872 This version of Moose *must* have Class::MOP 0.36 in order
873 to work correctly. A number of small internal tweaks have
874 been made in order to be compatible with that release.
876 * Moose::Util::TypeConstraints
877 - added &unimport so that you can clean out
878 your class namespace of these exported
882 - fixed minor issue which occasionally
883 comes up during global destruction
885 - moved Moose::Meta::Method::Overriden into
889 - moved Moose::Meta::Role::Method into
892 * Moose::Meta::Attribute
893 - changed how we do type checks so that
894 we reduce the overall cost, but still
897 - moved accessor generation methods to
898 Moose::Meta::Method::Accessor to
899 conform to the API changes from
902 * Moose::Meta::TypeConstraint
903 - changed how constraints are compiled
904 so that we do less recursion and more
905 iteration. This makes the type check
907 - moved Moose::Meta::TypeConstraint::Union
910 * Moose::Meta::Method::Accessor
911 - created this from methods formerly found in
912 Moose::Meta::Attribute
914 * Moose::Meta::Role::Method
915 - moved this from Moose::Meta::Role
917 * Moose::Meta::Method::Overriden
918 - moved this from Moose::Meta::Class
920 * Moose::Meta::TypeConstraint::Union
921 - moved this from Moose::Meta::TypeConstraint
923 0.14 Mon. Oct. 9, 2006
925 * Moose::Meta::Attribute
926 - fixed lazy attributes which were not getting
927 checked with the type constraint (thanks ashley)
928 - added tests for this
929 - removed the over-enthusiastic DWIMery of the
930 automatic ArrayRef and HashRef defaults, it
931 broke predicates in an ugly way.
932 - removed tests for this
934 0.13 Sat. Sept. 30, 2006
936 This version of Moose *must* have Class::MOP 0.35 in order
937 to work correctly. A number of small internal tweaks have
938 been made in order to be compatible with that release.
941 - Removed the use of UNIVERSAL::require to be a better
942 symbol table citizen and remove a dependency
943 (thanks Adam Kennedy)
945 **~~ removed experimental & undocumented feature ~~**
946 - commented out the 'method' and 'self' keywords, see the
947 comments for more info.
950 - added a FAQ and WTF files to document frequently
951 asked questions and common problems
953 * Moose::Util::TypeConstraints
954 - added GlobRef and FileHandle type constraint
955 - added tests for this
957 * Moose::Meta::Attribute
958 - if your attribute 'isa' ArrayRef of HashRef, and you have
959 not explicitly set a default, then make the default DWIM.
960 This will also work for subtypes of ArrayRef and HashRef
962 - you can now auto-deref subtypes of ArrayRef or HashRef too.
963 - new test added for this (thanks to ashley)
966 - added basic support for runtime role composition
967 but this is still *highly experimental*, so feedback
968 is much appreciated :)
969 - added tests for this
971 * Moose::Meta::TypeConstraint
972 - the type constraint now handles the coercion process
973 through delegation, this is to support the coercion
976 * Moose::Meta::TypeConstraint::Union
977 - it is now possible for coercions to be performed
979 - added tests for this (thanks to konobi)
981 * Moose::Meta::TypeCoercion
982 - properly capturing error when type constraint
986 - Scalar::Util 1.18 is bad on Win32, so temporarily
987 only require version 1.17 for Win32 and cygwin.
988 (thanks Adam Kennedy)
990 0.12 Sat. Sept. 1, 2006
992 - Recipe5 (subtypes & coercion) has been written
995 - fixed "bad meta" error message to be more descriptive
996 - fixed &unimport to not remove the &inner and &super
997 keywords because we need to localize them.
998 - fixed number of spelling/grammer issues, thanks Theory :)
1000 **~~ experimental & undocumented feature ~~**
1001 - added the method and self keywords, they are basically
1002 just sugar, and they may not stay around.
1005 - added &dump method to easily Data::Dumper
1008 * Moose::Meta::TypeConstraint
1009 - added the &is_a_type_of method to check both the current
1010 and the subtype of a method (similar to &isa with classes)
1013 - this is now a subclass of Class::MOP::Module, and no longer
1014 creates the _role_meta ugliness of before.
1015 - fixed tests to reflect this change
1017 0.11 Wed. July 12, 2006
1019 - added an &unimport method to remove all the keywords
1020 that Moose will import, simply add 'no Moose' to the
1021 bottom of your class file.
1024 - fixed some test failures caused by a forgotten test
1027 0.10 Thurs. July 6, 2006
1029 - improved error message when loading modules so
1030 it is less confusing when you load a role.
1031 - added &calculate_all_roles method to
1032 Moose::Meta::Class and Moose::Meta::Role
1035 This module has been tested against Class::MOP 0.30
1036 but it does not yet utilize the optimizations
1037 it makes available. Stay tuned for that ;)
1039 0.09_03 Fri. June 23, 2006
1040 ++ DEVELOPER RELEASE ++
1042 - 'use strict' and 'use warnings' are no longer
1043 needed in Moose classes, Moose itself will
1044 turn them on for you.
1045 - added tests for this
1046 - moved code from exported subs to private methods
1047 in Moose::Meta::Class
1050 - as with Moose, strict and warnings are
1051 automatically turned on for you.
1052 - added tests for this
1055 - now handles an edge case for override errors
1056 - added tests for this
1057 - added some more edge case tests
1059 0.09_02 Tues. May 16, 2006
1060 ++ DEVELOPER RELEASE ++
1062 - added prototypes to the exported subs
1066 - added prototypes to the exported subs
1069 * Moose::Util::TypeConstraints
1070 - cleaned up prototypes for the subs
1073 0.09_01 Fri. May 12, 2006
1074 ++ DEVELOPER RELEASE ++
1075 - This release works in combination with
1076 Class::MOP 0.29_01, it is a developer
1077 release because it uses the a new
1078 instance sub-protocol and a fairly
1079 complete Role implementation. It has
1080 not yet been optimized, so it slower
1081 the the previous CPAN version. This
1082 release also lacks good updated docs,
1083 the official release will have updated docs.
1086 - refactored the keyword exports
1087 - 'with' now checks Role validaity and
1088 accepts more than one Role at a time
1089 - 'extends' makes metaclass adjustments as
1090 needed to ensure metaclass compatability
1093 - refactored the keyword exports
1094 - 'with' now checks Role validaity and
1095 accepts more than one Role at a time
1097 * Moose::Util::TypeConstraints
1098 - added the 'enum' keyword for simple
1099 string enumerations which can be used as
1101 - see example of usage in t/202_example.t
1104 - more careful checking of params to new()
1107 - much work done on the role composition
1108 - many new tests for conflict detection
1109 and composition edge cases
1110 - not enough documentation, I suggest
1111 looking at the tests
1113 * Moose::Meta::Instance
1114 - added new Instance metaclass to support
1115 the new Class::MOP instance protocol
1117 * Moose::Meta::Class
1118 - some small changes to support the new
1120 - some small additions to support Roles
1122 * Moose::Meta::Attribute
1123 - some improvements to the accessor generation code
1125 - some small changes to support the new
1127 - (still somewhat) experimental delegation support
1128 with the 'handles' option
1129 - added several tests for this
1130 - no docs for this yet
1132 0.05 Thurs. April 27, 2006
1134 - keywords are now exported with Sub::Exporter
1135 thanks to chansen for this commit
1136 - has keyword now takes a 'metaclass' option
1137 to support custom attribute meta-classes
1138 on a per-attribute basis
1139 - added tests for this
1140 - the 'has' keyword not accepts inherited slot
1141 specifications (has '+foo'). This is still an
1142 experimental feature and probably not finished
1143 see t/038_attribute_inherited_slot_specs.t for
1144 more details, or ask about it on #moose
1145 - added tests for this
1148 - keywords are now exported with Sub::Exporter
1150 * Moose::Utils::TypeConstraints
1151 - reorganized the type constraint hierarchy, thanks
1152 to nothingmuch and chansen for his help and advice
1154 - added some tests for this
1155 - keywords are now exported with Sub::Exporter
1156 thanks to chansen for this commit
1158 * Moose::Meta::Class
1159 - due to changes in Class::MOP, we had to change
1160 construct_instance (for the better)
1162 * Moose::Meta::Attribute
1163 - due to changes in Class::MOP, we had to add the
1164 initialize_instance_slot method (it's a good thing)
1166 * Moose::Meta::TypeConstraint
1167 - added type constraint unions
1168 - added tests for this
1169 - added the is_subtype_of predicate method
1170 - added tests for this
1172 0.04 Sun. April 16th, 2006
1174 - Roles can now consume other roles
1175 - added tests for this
1176 - Roles can specify required methods now with
1177 the requires() keyword
1178 - added tests for this
1181 - ripped out much of it's guts ,.. much cleaner now
1182 - added required methods and correct handling of
1183 them in apply() for both classes and roles
1184 - added tests for this
1185 - no longer adds a does() method to consuming classes
1186 it relys on the one in Moose::Object
1187 - added roles attribute and some methods to support
1188 roles consuming roles
1190 * Moose::Meta::Attribute
1191 - added support for triggers on attributes
1192 - added tests for this
1193 - added support for does option on an attribute
1194 - added tests for this
1196 * Moose::Meta::Class
1197 - added support for attribute triggers in the
1199 - added tests for this
1202 - Moose no longer creates a subtype for your class
1203 if a subtype of the same name already exists, this
1204 should DWIM in 99.9999% of all cases
1206 * Moose::Util::TypeConstraints
1207 - fixed bug where incorrect subtype conflicts were
1209 - added test for this
1212 - this class can now be extended with 'use base' if
1213 you need it, it properly loads the metaclass class now
1214 - added test for this
1216 0.03_02 Wed. April 12, 2006
1218 - you must now explictly use Moose::Util::TypeConstraints
1219 it no longer gets exported for you automatically
1222 - new() now accepts hash-refs as well as key/value lists
1223 - added does() method to check for Roles
1224 - added tests for this
1226 * Moose::Meta::Class
1227 - added roles attribute along with the add_role() and
1229 - added tests for this
1232 - now adds a does() method to consuming classes
1233 which tests the class's hierarchy for roles
1234 - added tests for this
1236 0.03_01 Mon. April 10, 2006
1238 - added new Role recipe (no content yet, only code)
1241 - added 'with' keyword for Role support
1242 - added test and docs for this
1243 - fixed subtype quoting bug
1244 - added test for this
1248 - added test and docs
1250 * Moose::Util::TypeConstraints
1251 - added the message keyword to add custom
1252 error messages to type constraints
1255 - the meta role to support Moose::Role
1256 - added tests and docs
1258 * Moose::Meta::Class
1259 - moved a number of things from Moose.pm
1260 to here, they should have been here
1263 * Moose::Meta::Attribute
1264 - moved the attribute option macros here
1265 instead of putting them in Moose.pm
1267 * Moose::Meta::TypeConstraint
1268 - added the message attributes and the
1270 - added tests and docs for this
1272 0.03 Thurs. March 30, 2006
1274 - added the Moose::Cookbook with 5 recipes,
1275 describing all the stuff Moose can do.
1278 - fixed an issue with &extends super class loading
1279 it now captures errors and deals with inline
1280 packages correctly (bug found by mst, solution
1282 - added super/override & inner/augment features
1283 - added tests and docs for these
1286 - BUILDALL now takes a reference of the %params
1287 that are passed to &new, and passes that to
1290 * Moose::Util::TypeConstraints
1291 - Type constraints now survive runtime reloading
1292 - added test for this
1294 * Moose::Meta::Class
1295 - fixed the way attribute defaults are handled
1296 during instance construction (bug found by chansen)
1298 * Moose::Meta::Attribute
1299 - read-only attributes now actually enforce their
1300 read-only-ness (this corrected in Class::MOP as
1303 0.02 Tues. March 21, 2006
1305 - many more tests, fixing some bugs and
1307 - &extends now loads the base module with
1309 - added UNIVERSAL::require to the
1312 - each new Moose class will also create
1313 and register a subtype of Object which
1314 correspond to the new Moose class.
1315 - the 'isa' option in &has now only
1316 accepts strings, and will DWIM in
1319 * Moose::Util::TypeConstraints
1320 - added type coercion features
1321 - added tests for this
1322 - added support for this in attributes
1323 and instance construction
1325 - type construction no longer creates a
1326 function, it registers the type instead.
1327 - added several functions to get the
1331 - BUILDALL and DEMOLISHALL were broken
1332 because of a mis-named hash key, Whoops :)
1334 * Moose::Meta::Attribute
1335 - adding support for coercion in the
1336 autogenerated accessors
1338 * Moose::Meta::Class
1339 - adding support for coercion in the
1340 instance construction
1342 * Moose::Meta::TypeConstraint
1343 * Moose::Meta::TypeCoercion
1344 - type constraints and coercions are now
1345 full fledges meta-objects
1347 0.01 Wed. March 15, 2006
1348 - Moooooooooooooooooose!!!