1 Revision history for Perl extension Moose
4 ~~ numerous documentation updates ~~
7 - the make_immutable keyword is now deprecated, don't
8 use it in any new code and please fix your old code
9 as well. There will be 2 releases, and then it will
12 * Moose::Meta::Method::Constructor
13 - immutable classes which had non-lazy attributes were calling
14 the default generating sub twice in the constructor. (bug
15 found by Jesse Luehrs, fixed by Dave Rolsky)
16 - added tests for this (Dave Rolsky)
18 * Moose::Meta::Attribute
19 - inherited attributes may now be extended without restriction on type
20 and some other attributes (Sartak)
22 0.40 Fri. March 14, 2008
23 - I hate Pod::Coverage
25 0.39 Fri. March 14, 2008
27 - documenting the use of '+name' with attributes
28 that come from recently composed roles. It makes
29 sense, people are using it, and so why not just
30 officially support it.
31 - fixing the 'extends' keyword so that it will not
32 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
35 - added the perl -Moose=+Class::Name feature to allow
36 monkeypatching of classes in one liners
39 - fixing the 'apply_all_roles' keyword so that it will not
40 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
43 - added ->create method which now supports roles (thanks to jrockway)
44 - added tests for this
45 - added ->create_anon_class which now supports roles and caching of
46 the results (thanks to jrockway)
47 - added tests for this
48 - made ->does_role a little more forgiving when it is
49 checking a Class::MOP era metaclasses.
51 * Moose::Meta::Role::Application::ToInstance
52 - it is now possible to pass extra params to be used when
53 a role is applied to an the instance (rebless_params)
54 - added tests for this
56 * Moose::Util::TypeConstraints
57 - class_type now accepts an optional second argument for a
58 custom message. POD anotated accordingly (groditi)
59 - added tests for this
60 - it is now possible to make anon-enums by passing 'enum' an
61 ARRAY ref instead of the $name => @values. Everything else
63 - added tests for this
66 - making test for using '+name' on attributes consumed
67 from a role, it works and makes sense too.
69 * Moose::Meta::Attribute
70 - fix handles so that it doesn't return nothing
71 when the method cannot be found, not sure why
72 it ever did this originally, this means we now
73 have slightly better support for AUTOLOADed
75 - added more delegation tests
76 - adding ->does method to this so as to better
77 support traits and their introspection.
78 - added tests for this
81 - localizing the Data::Dumper configurations so
82 that it does not pollute others (RT #33509)
83 - made ->does a little more forgiving when it is
84 passed Class::MOP era metaclasses.
86 0.38 Fri. Feb. 15, 2008
87 * Moose::Meta::Attribute
88 - fixed initializer to correctly do
89 type checking and coercion in the
91 - added tests for this
94 - fixed some finicky tests (thanks to konobi)
96 0.37 Thurs. Feb. 14, 2008
98 - fixed some details in Moose::init_meta
99 and its superclass handling (thanks thepler)
100 - added tests for this (thanks thepler)
101 - 'has' now dies if you don't pass in name
103 - added the 'make_immutable' keyword as a shortcut
107 Moose::Meta::Method::Constructor
108 Moose::Meta::Attribute
109 - making (init_arg => undef) work here too
110 (thanks to nothingmuch)
112 * Moose::Meta::Attribute
113 Moose::Meta::Method::Constructor
114 Moose::Meta::Method::Accessor
115 - make lazy attributes respect attr initializers (rjbs)
116 - added tests for this
118 * Moose::Util::TypeConstraints
119 Moose::Util::TypeConstraints::OptimizedConstraints
120 Moose::Meta::TypeConstraints
121 Moose::Meta::Attribute
122 Moose::Meta::Method::Constructor
123 Moose::Meta::Method::Accessor
124 - making type errors use the
125 assigned message (thanks to Sartak)
126 - added tests for this
128 * Moose::Meta::Method::Destructor
129 - making sure DESTROY gets inlined properly
130 with successive DEMOLISH calls (thanks to manito)
132 * Moose::Meta::Attribute
133 Moose::Meta::Method::Accessor
134 - fixed handling of undef with type constraints
136 - added tests for this
139 - added &get_all_init_args and &get_all_attribute_values
140 (thanks to Sartak and nothingmuch)
142 0.36 Sat. Jan. 26, 2008
144 Moose::Meta::Attribute
145 - role type tests now support when roles are
146 applied to non-Moose classes (found by ash)
147 - added tests for this (thanks to ash)
148 - couple extra tests to boost code coverage
150 * Moose::Meta::Method::Constructor
151 - improved fix for handling Class::MOP attributes
152 - added test for this
155 - handled the add_attribute($attribute_meta_object)
157 - added test for this
159 0.35 Tues. Jan. 22, 2008
160 * Moose::Meta::Method::Constructor
161 - fix to make sure even Class::MOP attributes
162 are handled correctly (Thanks to Dave Rolsky)
163 - added test for this (also Dave Rolsky)
166 - improved error message on _apply_all_roles,
167 you should now use Moose::Util::apply_all_roles
168 and you shouldnt have been using a _ prefixed
169 method in the first place ;)
171 0.34 Mon. Jan. 21, 2008
172 ~~~ more misc. doc. fixes ~~~
173 ~~ updated copyright dates ~~
175 Moose is now a postmodern object system :)
176 - (see the POD for details)
178 * <<Role System Refactoring>>
179 - this release contains a major reworking and
180 cleanup of the role system
181 - 100% backwards compat.
182 - Role application now restructured into seperate
183 classes based on type of applicants
184 - Role summation (combining of more than one role)
185 is much cleaner and anon-classes are no longer
187 - new Composite role metaclass
188 - runtime application of roles to instances
189 is now more efficient and re-uses generated
190 classes when applicable
192 * <<New Role composition features>>
193 - methods can now be excluded from a given role
195 - methods can now be aliased to another name (and
196 still retain the original as well)
198 * Moose::Util::TypeConstraints::OptimizedConstraints
199 - added this module (see above)
202 - fixed the &_process_attribute method to be called
203 by &add_attribute, so that the API is now correct
205 * Moose::Meta::Method::Accessor
206 - fixed bug when passing a list of values to
207 an accessor would get (incorrectly) ignored.
208 Thanks to Sartak for finding this ;)
209 - added tests for this (Sartak again)
211 * Moose::Meta::Method::Accessor
212 Moose::Meta::Method::Constructor
213 Moose::Meta::Attribute
214 Moose::Meta::TypeConstraint
215 Moose::Meta::TypeCoercion
216 - lots of cleanup of such things as:
218 - type constraint handling
219 - error handling/messages
220 (thanks to nothingmuch)
222 * Moose::Meta::TypeConstraint::Parameterizable
223 - added this module to support the refactor
224 in Moose::Meta::TypeConstraint::Parameterized
226 * Moose::Meta::TypeConstraint::Parameterized
227 - refactored how these types are handled so they
228 are more generic and not confined to ArrayRef
232 - shortened some file names for better VMS support (RT #32381)
234 0.33 Fri. Dec. 14, 2007
235 !! Moose now loads 2 x faster !!
236 !! with new Class::MOP 0.49 !!
238 ++ new oose.pm module to make command line
239 Moose-ness easier (see POD docs for more)
243 - several tweaks to take advantage of the
244 new method map caching in Class::MOP
246 * Moose::Meta::TypeConstraint::Parameterized
247 - allow subtypes of ArrayRef and HashRef to
248 be used as a container (sartak)
249 - added tests for this
250 - basic support for coercion to ArrayRef and
251 HashRef for containers (sartak)
252 - added tests for this
254 * Moose::Meta::TypeCoercion
255 - coercions will now create subtypes as needed
256 so you can now add coercions to parameterized
257 types without having to explictly define them
258 - added tests for this
260 * Moose::Meta::Method::Accessor
261 - allow subclasses to decide whether we need
262 to copy the value into a new variable (sartak)
264 0.32 Tues. Dec. 4, 2007
265 * Moose::Util::TypeConstraints
266 - fixing how subtype aliases of unions work
267 they should inherit the parent's coercion
268 - added tests for this
269 - you can now define multiple coercions on
270 a single type at different times instead of
271 having to do it all in one place
272 - added tests for this
274 * Moose::Meta::TypeConstraint
275 - there is now a default constraint of sub { 1 }
276 instead of Moose::Util::TypeConstraints setting
279 * Moose::Meta::TypeCoercion
280 * Moose::Meta::TypeCoercion::Union
281 - added the &has_coercion_for_type and
282 &add_type_coercions methods to support the
283 new features above (although you cannot add
284 more type coercions for Union types)
286 0.31 Mon. Nov. 26, 2007
287 * Moose::Meta::Attribute
288 - made the +attr syntax handle extending types with
289 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
290 now works if the original foo is an ArrayRef.
291 - added tests for this.
292 - delegation now works even if the attribute does not
293 have a reader method using the get_read_method_ref
294 method from Class::MOP::Attribute.
295 - added tests for this
296 - added docs for this
298 * Moose::Util::TypeConstraints
299 - passing no "additional attribute info" to
300 &find_or_create_type_constraint will no longer
301 attempt to create an __ANON__ type for you,
302 instead it will just return undef.
303 - added docs for this
305 0.30 Fri. Nov. 23, 2007
306 * Moose::Meta::Method::Constructor
307 -builder related bug in inlined constructor. (groditi)
309 * Moose::Meta::Method::Accessor
310 - genereate unnecessary calls to predicates and refactor
311 code generation for runtime speed (groditi)
313 * Moose::Util::TypeConstraints
314 - fix ClassName constraint to introspect symbol table (mst)
315 - added more tests for this (mst)
316 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
318 - added tests for this
321 - adding the link to Recipie 11 (written by Sartak)
322 - adding test for SYNOPSIS code
325 - New tests for builder bug. Upon instantiation, if an
326 attribute had a builder, no value and was not lazy the
327 builder default was not getting run, oops. (groditi)
329 0.29 Tues. Nov. 13, 2007
330 * Moose::Meta::Attribute
331 - Fix error message on missing builder method (groditi)
333 * Moose::Meta::Method::Accessor
334 - Fix error message on missing builder method (groditi)
337 - Add test to check for the correct error message when
338 builder method is missing (groditi)
340 0.28 Tues. Nov. 13, 2007
341 - 0.27 packaged incorrectly (groditi)
343 0.27 Tues. Nov. 13, 2007
344 * Moose::Meta::Attribute
345 - Added support for the new builder option (groditi)
346 - Added support for lazy_build option (groditi)
347 - Changed slot initialization for predicate changes (groditi)
349 * Moose::Meta::Method::Accessor
350 - Added support for lazy_build option (groditi)
351 - Fix inline methods to work with corrected predicate
354 * Moose::Meta::Method::Constructor
355 - Added support for lazy_build option (groditi)
358 - tests for builder and lazy_build (groditi)
360 * fixing some misc. bits in the docs that
361 got mentioned on CPAN Forum & perlmonks
364 - fixed how required methods are handled
365 when they encounter overriden or modified
366 methods from a class (thanks to confound).
367 - added tests for this
369 * Moose::Util::TypeConstraint
370 - fixed the type notation parser so that
371 the | always creates a union and so is
372 no longer a valid type char (thanks to
373 konobi, mugwump and #moose for working
375 - added more tests for this
377 0.26 Thurs. Sept. 27, 2007
380 * Parameterized Types
381 We now support parameterized collection types, such as:
382 ArrayRef[Int] # array or integers
383 HashRef[Object] # a hash with object values
384 They can also be nested:
385 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
386 And work with the type unions as well:
387 ArrayRef[Int | Str] # array of integers of strings
389 * Better Framework Extendability
390 Moose.pm is now "extendable" such that it is now much
391 easier to extend the framework and add your own keywords
392 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
393 section of the Moose.pm docs.
396 In an effort to begin documenting some of the various
397 details of Moose as well as some common idioms, we have
398 created Moose::Cookbook::Snacks as a place to find
399 small (easily digestable) nuggets of Moose code.
402 ~ Several doc updates/cleanup thanks to castaway ~
404 - converted build system to use Module::Install instead of
405 Module::Build (thanks to jrockway)
408 - added all the meta classes to the immutable list and
409 set it to inline the accessors
410 - fix import to allow Sub::Exporter like { into => }
411 and { into_level => } (perigrin)
412 - exposed and documented init_meta() to allow better
413 embedding and extending of Moose (perigrin)
416 - complete re-organization of the test suite
417 - added some new tests as well
418 - finally re-enabled the Moose::POOP test since
419 the new version of DBM::Deep now works again
423 - fixed very odd and very nasty recursion bug with
425 - added tests for this (eilara)
427 * Moose::Meta::Attribute
428 Moose::Meta::Method::Constructor
429 Moose::Meta::Method::Accessor
430 - fixed issue with overload::Overloaded getting called
431 on non-blessed items. (RT #29269)
432 - added tests for this
434 * Moose::Meta::Method::Accessor
435 - fixed issue with generated accessor code making
436 assumptions about hash based classes (thanks to dexter)
438 * Moose::Coookbook::Snacks
439 - these are bits of documentation, not quite as big as
440 Recipes but which have no clear place in the module docs.
441 So they are Snacks! (horray for castaway++)
443 * Moose::Cookbook::Recipe4
444 - updated it to use the new ArrayRef[MyType] construct
445 - updated the accompanying test as well
447 +++ Major Refactor of the Type Constraint system +++
448 +++ with new features added as well +++
450 * Moose::Util::TypeConstraint
451 - no longer uses package variable to keep track of
452 the type constraints, now uses the an instance of
453 Moose::Meta::TypeConstraint::Registry to do it
454 - added more sophisticated type notation parsing
456 - added tests for this
458 * Moose::Meta::TypeConstraint
459 - some minor adjustments to make subclassing easier
460 - added the package_defined_in attribute so that we
461 can track where the type constraints are created
463 * Moose::Meta::TypeConstraint::Union
464 - this is now been refactored to be a subclass of
465 Moose::Meta::TypeConstraint
467 * Moose::Meta::TypeCoercion::Union
468 - this has been added to service the newly refactored
469 Moose::Meta::TypeConstraint::Union and is itself
470 a subclass of Moose::Meta::TypeCoercion
472 * Moose::Meta::TypeConstraint::Parameterized
473 - added this module (taken from MooseX::AttributeHelpers)
474 to help construct nested collection types
475 - added tests for this
477 * Moose::Meta::TypeConstraint::Registry
478 - added this class to keep track of type constraints
480 0.25 Mon. Aug. 13, 2007
482 - Documentation update to reference Moose::Util::TypeConstraints
483 under 'isa' in 'has' for how to define a new type
486 * Moose::Meta::Attribute
487 - required attributes now will no longer accept undef
488 from the constructor, even if there is a default and lazy
489 - added tests for this
490 - default subroutines must return a value which passes the
492 - added tests for this
494 * Moose::Meta::Attribute
495 * Moose::Meta::Method::Constructor
496 * Moose::Meta::Method::Accessor
497 - type-constraint tests now handle overloaded objects correctly
499 - added tests for this (thanks to EvanCarroll)
501 * Moose::Meta::TypeConstraint::Union
502 - added (has_)hand_optimized_constraint to this class so that
503 it behaves as the regular Moose::Meta::TypeConstraint does.
506 - large refactoring of this code
507 - added several more tests
508 - tests for subtle conflict resolition issues
509 added, but not currently running
512 * Moose::Cookbook::Recipe7
513 - added new recipe for augment/inner functionality
515 - added test for this
518 - a formal definition of roles (still in progress)
521 - utilities for easier working with Moose classes
522 - added tests for these
525 - This contains Moose specific test functions
526 - added tests for these
528 0.24 Tues. July 3, 2007
529 ~ Some doc updates/cleanup ~
531 * Moose::Meta::Attribute
532 - added support for roles to be given as parameters
533 to the 'handles' option.
534 - added tests and docs for this
535 - the has '+foo' attribute form now accepts changes to
536 the lazy option, and the addition of a handles option
537 (but not changing the handles option)
538 - added tests and docs for this
541 - required methods are now fetched using find_method_by_name
542 so that required methods can come from superclasses
543 - adjusted tests for this
545 0.23 Mon. June 18, 2007
546 * Moose::Meta::Method::Constructor
547 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
549 - Modify make_immutable to work with the new Class::MOP immutable
550 mechanism + POD + very basic test (groditi)
551 * Moose::Meta::Attribute
552 - Fix handles to use goto() so that caller() comes out properly on
553 the other side (perigrin)
555 0.22 Thurs. May 31, 2007
556 * Moose::Util::TypeConstraints
557 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
558 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
559 prototypes for functions
560 - added the ClassName type constraint, this checks for strings
561 which will respond true to ->isa(UNIVERSAL).
562 - added tests and docs for this
563 - subtyping just in name now works correctly by making the
564 default for where be { 1 }
565 - added test for this
567 * Moose::Meta::Method::Accessor
568 - coerce and lazy now work together correctly, thanks to
569 merlyn for finding this bug
570 - tests added for this
571 - fix reader presedence bug in Moose::Meta::Attribute + tests
574 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
575 a HASH-ref and missed. This produces better error messages then
576 having it die cause undef is not a HASH.
577 - added tests for this
579 0.21 Thursday, May 2nd, 2007
581 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
582 - modified unimport to remove super and inner along with the rest
583 - altered unimport tests to handle this
586 - altered super export to populate SUPER_SLOT
589 - altered augment and override modifier application to use *_SLOT
590 - modified tests for these to unimport one test class each to test
593 - fixed issue where custom attribute metaclasses
594 where not handled correctly in roles
595 - added tests for this
598 - fixed issue where extending metaclasses with
599 roles would blow up. Thanks to Aankhen`` for
600 finding this insidious error, and it's solution.
602 ~~ lots of spelling and grammer fixes in the docs,
603 many many thanks to rlb3 and Aankhen for these :)
605 0.20 Friday, April 6th, 2007
606 >> I messed up the SKIP logic in one test
607 so this release is just to fix that.
610 - 'has' now also accepts an ARRAY ref
611 to create multiple attrs (see docs)
612 (thanks to konobi for this)
613 - added tests and docs
615 0.19 Thurs. April 5th, 2007
616 ~~ More documentation updates ~~
618 * Moose::Util::TypeConstraints
619 - 'type' now supports messages as well
620 thanks to phaylon for finding this
621 - added tests for this
622 - added &list_all_type_constraints and
623 &list_all_builtin_type_constraints
624 functions to facilitate introspection.
626 * Moose::Meta::Attribute
627 - fixed regexp 'handles' declarations
628 to build the list of delegated methods
629 correctly (and not override important
630 things like &new) thanks to ashleyb
632 - added tests and docs for this
633 - added the 'documentation' attributes
634 so that you can actually document your
635 attributes and inspect them through the
637 - added tests and docs for this
640 - when loading custom attribute metaclasses
641 it will first look in for the class in the
642 Moose::Meta::Attribute::Custom::$name, and
643 then default to just loading $name.
644 - added tests and docs for this
646 * Moose::Meta::TypeConstraint
647 - type constraints now stringify to their names.
648 - added test for this
651 - added tests to assure we work with Module::Refresh
652 - added stricter test skip logic in the Moose POOP
653 test, ask Rob Kinyon why.
654 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
656 0.18 Sat. March 10, 2007
657 ~~ Many, many documentation updates ~~
660 - We now use Class::MOP::load_class to
662 - added tests to show types and subtypes
663 working with Declare::Constraints::Simple
664 and Test::Deep as constraint engines.
667 !! You must have Class::MOP 0.37_001 !!
668 !! for this developer release to work !!
670 This release was primarily adding the immutable
671 feature to Moose. An immutable class is one which
672 you promise not to alter. When you set the class
673 as immutable it will perform various bits of
674 memoization and inline certain part of the code
675 (constructors, destructors and accessors). This
676 minimizes (and in some cases totally eliminates)
677 one of Moose's biggest performance hits. This
678 feature is not on by default, and is 100% optional.
679 It has several configurable bits as well, so you
680 can pick and choose to your specific needs.
682 The changes involved in this were fairly wide and
683 highly specific, but 100% backwards compatible, so
684 I am not going to enumerate them here. If you are
685 truely interested in what was changed, please do
688 0.17 Tues. Nov. 14, 2006
689 * Moose::Meta::Method::Accessor
690 - bugfix for read-only accessors which
691 are have a type constraint and lazy.
692 Thanks to chansen for finding it.
694 0.16 Tues. Nov. 14, 2006
696 There are some speed improvements in this release,
697 but they are only the begining, so stay tuned.
700 - BUILDALL and DEMOLISHALL no longer get
701 called unless they actually need to be.
702 This gave us a signifigant speed boost
703 for the cases when there is no BUILD or
704 DEMOLISH method present.
706 * Moose::Util::TypeConstraints
707 * Moose::Meta::TypeConstraint
708 - added an 'optimize_as' option to the
709 type constraint, which allows for a
710 hand optimized version of the type
711 constraint to be used when possible.
712 - Any internally created type constraints
713 now provide an optimized version as well.
715 0.15 Sun. Nov. 5, 2006
717 This version of Moose *must* have Class::MOP 0.36 in order
718 to work correctly. A number of small internal tweaks have
719 been made in order to be compatible with that release.
721 * Moose::Util::TypeConstraints
722 - added &unimport so that you can clean out
723 your class namespace of these exported
727 - fixed minor issue which occasionally
728 comes up during global destruction
730 - moved Moose::Meta::Method::Overriden into
734 - moved Moose::Meta::Role::Method into
737 * Moose::Meta::Attribute
738 - changed how we do type checks so that
739 we reduce the overall cost, but still
742 - moved accessor generation methods to
743 Moose::Meta::Method::Accessor to
744 conform to the API changes from
747 * Moose::Meta::TypeConstraint
748 - changed how constraints are compiled
749 so that we do less recursion and more
750 iteration. This makes the type check
752 - moved Moose::Meta::TypeConstraint::Union
755 * Moose::Meta::Method::Accessor
756 - created this from methods formerly found in
757 Moose::Meta::Attribute
759 * Moose::Meta::Role::Method
760 - moved this from Moose::Meta::Role
762 * Moose::Meta::Method::Overriden
763 - moved this from Moose::Meta::Class
765 * Moose::Meta::TypeConstraint::Union
766 - moved this from Moose::Meta::TypeConstraint
768 0.14 Mon. Oct. 9, 2006
770 * Moose::Meta::Attribute
771 - fixed lazy attributes which were not getting
772 checked with the type constraint (thanks ashley)
773 - added tests for this
774 - removed the over-enthusiastic DWIMery of the
775 automatic ArrayRef and HashRef defaults, it
776 broke predicates in an ugly way.
777 - removed tests for this
779 0.13 Sat. Sept. 30, 2006
781 This version of Moose *must* have Class::MOP 0.35 in order
782 to work correctly. A number of small internal tweaks have
783 been made in order to be compatible with that release.
786 - Removed the use of UNIVERSAL::require to be a better
787 symbol table citizen and remove a dependency
788 (thanks Adam Kennedy)
790 **~~ removed experimental & undocumented feature ~~**
791 - commented out the 'method' and 'self' keywords, see the
792 comments for more info.
795 - added a FAQ and WTF files to document frequently
796 asked questions and common problems
798 * Moose::Util::TypeConstraints
799 - added GlobRef and FileHandle type constraint
800 - added tests for this
802 * Moose::Meta::Attribute
803 - if your attribute 'isa' ArrayRef of HashRef, and you have
804 not explicitly set a default, then make the default DWIM.
805 This will also work for subtypes of ArrayRef and HashRef
807 - you can now auto-deref subtypes of ArrayRef or HashRef too.
808 - new test added for this (thanks to ashley)
811 - added basic support for runtime role composition
812 but this is still *highly experimental*, so feedback
813 is much appreciated :)
814 - added tests for this
816 * Moose::Meta::TypeConstraint
817 - the type constraint now handles the coercion process
818 through delegation, this is to support the coercion
821 * Moose::Meta::TypeConstraint::Union
822 - it is now possible for coercions to be performed
824 - added tests for this (thanks to konobi)
826 * Moose::Meta::TypeCoercion
827 - properly capturing error when type constraint
831 - Scalar::Util 1.18 is bad on Win32, so temporarily
832 only require version 1.17 for Win32 and cygwin.
833 (thanks Adam Kennedy)
835 0.12 Sat. Sept. 1, 2006
837 - Recipe5 (subtypes & coercion) has been written
840 - fixed "bad meta" error message to be more descriptive
841 - fixed &unimport to not remove the &inner and &super
842 keywords because we need to localize them.
843 - fixed number of spelling/grammer issues, thanks Theory :)
845 **~~ experimental & undocumented feature ~~**
846 - added the method and self keywords, they are basically
847 just sugar, and they may not stay around.
850 - added &dump method to easily Data::Dumper
853 * Moose::Meta::TypeConstraint
854 - added the &is_a_type_of method to check both the current
855 and the subtype of a method (similar to &isa with classes)
858 - this is now a subclass of Class::MOP::Module, and no longer
859 creates the _role_meta ugliness of before.
860 - fixed tests to reflect this change
862 0.11 Wed. July 12, 2006
864 - added an &unimport method to remove all the keywords
865 that Moose will import, simply add 'no Moose' to the
866 bottom of your class file.
869 - fixed some test failures caused by a forgotten test
872 0.10 Thurs. July 6, 2006
874 - improved error message when loading modules so
875 it is less confusing when you load a role.
876 - added &calculate_all_roles method to
877 Moose::Meta::Class and Moose::Meta::Role
880 This module has been tested against Class::MOP 0.30
881 but it does not yet utilize the optimizations
882 it makes available. Stay tuned for that ;)
884 0.09_03 Fri. June 23, 2006
885 ++ DEVELOPER RELEASE ++
887 - 'use strict' and 'use warnings' are no longer
888 needed in Moose classes, Moose itself will
889 turn them on for you.
890 - added tests for this
891 - moved code from exported subs to private methods
892 in Moose::Meta::Class
895 - as with Moose, strict and warnings are
896 automatically turned on for you.
897 - added tests for this
900 - now handles an edge case for override errors
901 - added tests for this
902 - added some more edge case tests
904 0.09_02 Tues. May 16, 2006
905 ++ DEVELOPER RELEASE ++
907 - added prototypes to the exported subs
911 - added prototypes to the exported subs
914 * Moose::Util::TypeConstraints
915 - cleaned up prototypes for the subs
918 0.09_01 Fri. May 12, 2006
919 ++ DEVELOPER RELEASE ++
920 - This release works in combination with
921 Class::MOP 0.29_01, it is a developer
922 release because it uses the a new
923 instance sub-protocol and a fairly
924 complete Role implementation. It has
925 not yet been optimized, so it slower
926 the the previous CPAN version. This
927 release also lacks good updated docs,
928 the official release will have updated docs.
931 - refactored the keyword exports
932 - 'with' now checks Role validaity and
933 accepts more than one Role at a time
934 - 'extends' makes metaclass adjustments as
935 needed to ensure metaclass compatability
938 - refactored the keyword exports
939 - 'with' now checks Role validaity and
940 accepts more than one Role at a time
942 * Moose::Util::TypeConstraints
943 - added the 'enum' keyword for simple
944 string enumerations which can be used as
946 - see example of usage in t/202_example.t
949 - more careful checking of params to new()
952 - much work done on the role composition
953 - many new tests for conflict detection
954 and composition edge cases
955 - not enough documentation, I suggest
958 * Moose::Meta::Instance
959 - added new Instance metaclass to support
960 the new Class::MOP instance protocol
963 - some small changes to support the new
965 - some small additions to support Roles
967 * Moose::Meta::Attribute
968 - some improvements to the accessor generation code
970 - some small changes to support the new
972 - (still somewhat) experimental delegation support
973 with the 'handles' option
974 - added several tests for this
975 - no docs for this yet
977 0.05 Thurs. April 27, 2006
979 - keywords are now exported with Sub::Exporter
980 thanks to chansen for this commit
981 - has keyword now takes a 'metaclass' option
982 to support custom attribute meta-classes
983 on a per-attribute basis
984 - added tests for this
985 - the 'has' keyword not accepts inherited slot
986 specifications (has '+foo'). This is still an
987 experimental feature and probably not finished
988 see t/038_attribute_inherited_slot_specs.t for
989 more details, or ask about it on #moose
990 - added tests for this
993 - keywords are now exported with Sub::Exporter
995 * Moose::Utils::TypeConstraints
996 - reorganized the type constraint hierarchy, thanks
997 to nothingmuch and chansen for his help and advice
999 - added some tests for this
1000 - keywords are now exported with Sub::Exporter
1001 thanks to chansen for this commit
1003 * Moose::Meta::Class
1004 - due to changes in Class::MOP, we had to change
1005 construct_instance (for the better)
1007 * Moose::Meta::Attribute
1008 - due to changes in Class::MOP, we had to add the
1009 initialize_instance_slot method (it's a good thing)
1011 * Moose::Meta::TypeConstraint
1012 - added type constraint unions
1013 - added tests for this
1014 - added the is_subtype_of predicate method
1015 - added tests for this
1017 0.04 Sun. April 16th, 2006
1019 - Roles can now consume other roles
1020 - added tests for this
1021 - Roles can specify required methods now with
1022 the requires() keyword
1023 - added tests for this
1026 - ripped out much of it's guts ,.. much cleaner now
1027 - added required methods and correct handling of
1028 them in apply() for both classes and roles
1029 - added tests for this
1030 - no longer adds a does() method to consuming classes
1031 it relys on the one in Moose::Object
1032 - added roles attribute and some methods to support
1033 roles consuming roles
1035 * Moose::Meta::Attribute
1036 - added support for triggers on attributes
1037 - added tests for this
1038 - added support for does option on an attribute
1039 - added tests for this
1041 * Moose::Meta::Class
1042 - added support for attribute triggers in the
1044 - added tests for this
1047 - Moose no longer creates a subtype for your class
1048 if a subtype of the same name already exists, this
1049 should DWIM in 99.9999% of all cases
1051 * Moose::Util::TypeConstraints
1052 - fixed bug where incorrect subtype conflicts were
1054 - added test for this
1057 - this class can now be extended with 'use base' if
1058 you need it, it properly loads the metaclass class now
1059 - added test for this
1061 0.03_02 Wed. April 12, 2006
1063 - you must now explictly use Moose::Util::TypeConstraints
1064 it no longer gets exported for you automatically
1067 - new() now accepts hash-refs as well as key/value lists
1068 - added does() method to check for Roles
1069 - added tests for this
1071 * Moose::Meta::Class
1072 - added roles attribute along with the add_role() and
1074 - added tests for this
1077 - now adds a does() method to consuming classes
1078 which tests the class's hierarchy for roles
1079 - added tests for this
1081 0.03_01 Mon. April 10, 2006
1083 - added new Role recipe (no content yet, only code)
1086 - added 'with' keyword for Role support
1087 - added test and docs for this
1088 - fixed subtype quoting bug
1089 - added test for this
1093 - added test and docs
1095 * Moose::Util::TypeConstraints
1096 - added the message keyword to add custom
1097 error messages to type constraints
1100 - the meta role to support Moose::Role
1101 - added tests and docs
1103 * Moose::Meta::Class
1104 - moved a number of things from Moose.pm
1105 to here, they should have been here
1108 * Moose::Meta::Attribute
1109 - moved the attribute option macros here
1110 instead of putting them in Moose.pm
1112 * Moose::Meta::TypeConstraint
1113 - added the message attributes and the
1115 - added tests and docs for this
1117 0.03 Thurs. March 30, 2006
1119 - added the Moose::Cookbook with 5 recipes,
1120 describing all the stuff Moose can do.
1123 - fixed an issue with &extends super class loading
1124 it now captures errors and deals with inline
1125 packages correctly (bug found by mst, solution
1127 - added super/override & inner/augment features
1128 - added tests and docs for these
1131 - BUILDALL now takes a reference of the %params
1132 that are passed to &new, and passes that to
1135 * Moose::Util::TypeConstraints
1136 - Type constraints now survive runtime reloading
1137 - added test for this
1139 * Moose::Meta::Class
1140 - fixed the way attribute defaults are handled
1141 during instance construction (bug found by chansen)
1143 * Moose::Meta::Attribute
1144 - read-only attributes now actually enforce their
1145 read-only-ness (this corrected in Class::MOP as
1148 0.02 Tues. March 21, 2006
1150 - many more tests, fixing some bugs and
1152 - &extends now loads the base module with
1154 - added UNIVERSAL::require to the
1157 - each new Moose class will also create
1158 and register a subtype of Object which
1159 correspond to the new Moose class.
1160 - the 'isa' option in &has now only
1161 accepts strings, and will DWIM in
1164 * Moose::Util::TypeConstraints
1165 - added type coercion features
1166 - added tests for this
1167 - added support for this in attributes
1168 and instance construction
1170 - type construction no longer creates a
1171 function, it registers the type instead.
1172 - added several functions to get the
1176 - BUILDALL and DEMOLISHALL were broken
1177 because of a mis-named hash key, Whoops :)
1179 * Moose::Meta::Attribute
1180 - adding support for coercion in the
1181 autogenerated accessors
1183 * Moose::Meta::Class
1184 - adding support for coercion in the
1185 instance construction
1187 * Moose::Meta::TypeConstraint
1188 * Moose::Meta::TypeCoercion
1189 - type constraints and coercions are now
1190 full fledges meta-objects
1192 0.01 Wed. March 15, 2006
1193 - Moooooooooooooooooose!!!