1 Revision history for Perl extension Moose
5 - documenting the use of '+name' with attributes
6 that come from recently composed roles. It makes
7 sense, people are using it, and so why not just
9 - fixing the 'extends' keyword so that it will not
10 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
13 - added the perl -Moose=+Class::Name feature to allow
14 monkeypatching of classes in one liners
17 - fixing the 'apply_all_roles' keyword so that it will not
18 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
21 - added ->create method which now supports roles (thanks to jrockway)
22 - added tests for this
23 - added ->create_anon_class which now supports roles and caching of
24 the results (thanks to jrockway)
25 - added tests for this
27 * Moose::Meta::Role::Application::ToInstance
28 - it is now possible to pass extra params to be used when
29 a role is applied to an the instance (rebless_params)
30 - added tests for this
32 * Moose::Util::TypeConstraints
33 - class_type now accepts an optional second argument for a
34 custom message. POD anotated accordingly (groditi)
35 - added tests for this
36 - it is now possible to make anon-enums by passing 'enum' an
37 ARRAY ref instead of the $name => @values. Everything else
39 - added tests for this
42 - making test for using '+name' on attributes consumed
43 from a role, it works and makes sense too.
45 * Moose::Meta::Attribute
46 - fix handles so that it doesn't return nothing
47 when the method cannot be found, not sure why
48 it ever did this originally, this means we now
49 have slightly better support for AUTOLOADed
51 - added more delegation tests
54 - localizing the Data::Dumper configurations so
55 that it does not pollute others (RT #33509)
57 0.38 Fri. Feb. 15, 2008
58 * Moose::Meta::Attribute
59 - fixed initializer to correctly do
60 type checking and coercion in the
62 - added tests for this
65 - fixed some finicky tests (thanks to konobi)
67 0.37 Thurs. Feb. 14, 2008
69 - fixed some details in Moose::init_meta
70 and its superclass handling (thanks thepler)
71 - added tests for this (thanks thepler)
72 - 'has' now dies if you don't pass in name
74 - added the 'make_immutable' keyword as a shortcut
78 Moose::Meta::Method::Constructor
79 Moose::Meta::Attribute
80 - making (init_arg => undef) work here too
81 (thanks to nothingmuch)
83 * Moose::Meta::Attribute
84 Moose::Meta::Method::Constructor
85 Moose::Meta::Method::Accessor
86 - make lazy attributes respect attr initializers (rjbs)
87 - added tests for this
89 * Moose::Util::TypeConstraints
90 Moose::Util::TypeConstraints::OptimizedConstraints
91 Moose::Meta::TypeConstraints
92 Moose::Meta::Attribute
93 Moose::Meta::Method::Constructor
94 Moose::Meta::Method::Accessor
95 - making type errors use the
96 assigned message (thanks to Sartak)
97 - added tests for this
99 * Moose::Meta::Method::Destructor
100 - making sure DESTROY gets inlined properly
101 with successive DEMOLISH calls (thanks to manito)
103 * Moose::Meta::Attribute
104 Moose::Meta::Method::Accessor
105 - fixed handling of undef with type constraints
107 - added tests for this
110 - added &get_all_init_args and &get_all_attribute_values
111 (thanks to Sartak and nothingmuch)
113 0.36 Sat. Jan. 26, 2008
115 Moose::Meta::Attribute
116 - role type tests now support when roles are
117 applied to non-Moose classes (found by ash)
118 - added tests for this (thanks to ash)
119 - couple extra tests to boost code coverage
121 * Moose::Meta::Method::Constructor
122 - improved fix for handling Class::MOP attributes
123 - added test for this
126 - handled the add_attribute($attribute_meta_object)
128 - added test for this
130 0.35 Tues. Jan. 22, 2008
131 * Moose::Meta::Method::Constructor
132 - fix to make sure even Class::MOP attributes
133 are handled correctly (Thanks to Dave Rolsky)
134 - added test for this (also Dave Rolsky)
137 - improved error message on _apply_all_roles,
138 you should now use Moose::Util::apply_all_roles
139 and you shouldnt have been using a _ prefixed
140 method in the first place ;)
142 0.34 Mon. Jan. 21, 2008
143 ~~~ more misc. doc. fixes ~~~
144 ~~ updated copyright dates ~~
146 Moose is now a postmodern object system :)
147 - (see the POD for details)
149 * <<Role System Refactoring>>
150 - this release contains a major reworking and
151 cleanup of the role system
152 - 100% backwards compat.
153 - Role application now restructured into seperate
154 classes based on type of applicants
155 - Role summation (combining of more than one role)
156 is much cleaner and anon-classes are no longer
158 - new Composite role metaclass
159 - runtime application of roles to instances
160 is now more efficient and re-uses generated
161 classes when applicable
163 * <<New Role composition features>>
164 - methods can now be excluded from a given role
166 - methods can now be aliased to another name (and
167 still retain the original as well)
169 * Moose::Util::TypeConstraints::OptimizedConstraints
170 - added this module (see above)
173 - fixed the &_process_attribute method to be called
174 by &add_attribute, so that the API is now correct
176 * Moose::Meta::Method::Accessor
177 - fixed bug when passing a list of values to
178 an accessor would get (incorrectly) ignored.
179 Thanks to Sartak for finding this ;)
180 - added tests for this (Sartak again)
182 * Moose::Meta::Method::Accessor
183 Moose::Meta::Method::Constructor
184 Moose::Meta::Attribute
185 Moose::Meta::TypeConstraint
186 Moose::Meta::TypeCoercion
187 - lots of cleanup of such things as:
189 - type constraint handling
190 - error handling/messages
191 (thanks to nothingmuch)
193 * Moose::Meta::TypeConstraint::Parameterizable
194 - added this module to support the refactor
195 in Moose::Meta::TypeConstraint::Parameterized
197 * Moose::Meta::TypeConstraint::Parameterized
198 - refactored how these types are handled so they
199 are more generic and not confined to ArrayRef
203 - shortened some file names for better VMS support (RT #32381)
205 0.33 Fri. Dec. 14, 2007
206 !! Moose now loads 2 x faster !!
207 !! with new Class::MOP 0.49 !!
209 ++ new oose.pm module to make command line
210 Moose-ness easier (see POD docs for more)
214 - several tweaks to take advantage of the
215 new method map caching in Class::MOP
217 * Moose::Meta::TypeConstraint::Parameterized
218 - allow subtypes of ArrayRef and HashRef to
219 be used as a container (sartak)
220 - added tests for this
221 - basic support for coercion to ArrayRef and
222 HashRef for containers (sartak)
223 - added tests for this
225 * Moose::Meta::TypeCoercion
226 - coercions will now create subtypes as needed
227 so you can now add coercions to parameterized
228 types without having to explictly define them
229 - added tests for this
231 * Moose::Meta::Method::Accessor
232 - allow subclasses to decide whether we need
233 to copy the value into a new variable (sartak)
235 0.32 Tues. Dec. 4, 2007
236 * Moose::Util::TypeConstraints
237 - fixing how subtype aliases of unions work
238 they should inherit the parent's coercion
239 - added tests for this
240 - you can now define multiple coercions on
241 a single type at different times instead of
242 having to do it all in one place
243 - added tests for this
245 * Moose::Meta::TypeConstraint
246 - there is now a default constraint of sub { 1 }
247 instead of Moose::Util::TypeConstraints setting
250 * Moose::Meta::TypeCoercion
251 * Moose::Meta::TypeCoercion::Union
252 - added the &has_coercion_for_type and
253 &add_type_coercions methods to support the
254 new features above (although you cannot add
255 more type coercions for Union types)
257 0.31 Mon. Nov. 26, 2007
258 * Moose::Meta::Attribute
259 - made the +attr syntax handle extending types with
260 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
261 now works if the original foo is an ArrayRef.
262 - added tests for this.
263 - delegation now works even if the attribute does not
264 have a reader method using the get_read_method_ref
265 method from Class::MOP::Attribute.
266 - added tests for this
267 - added docs for this
269 * Moose::Util::TypeConstraints
270 - passing no "additional attribute info" to
271 &find_or_create_type_constraint will no longer
272 attempt to create an __ANON__ type for you,
273 instead it will just return undef.
274 - added docs for this
276 0.30 Fri. Nov. 23, 2007
277 * Moose::Meta::Method::Constructor
278 -builder related bug in inlined constructor. (groditi)
280 * Moose::Meta::Method::Accessor
281 - genereate unnecessary calls to predicates and refactor
282 code generation for runtime speed (groditi)
284 * Moose::Util::TypeConstraints
285 - fix ClassName constraint to introspect symbol table (mst)
286 - added more tests for this (mst)
287 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
289 - added tests for this
292 - adding the link to Recipie 11 (written by Sartak)
293 - adding test for SYNOPSIS code
296 - New tests for builder bug. Upon instantiation, if an
297 attribute had a builder, no value and was not lazy the
298 builder default was not getting run, oops. (groditi)
300 0.29 Tues. Nov. 13, 2007
301 * Moose::Meta::Attribute
302 - Fix error message on missing builder method (groditi)
304 * Moose::Meta::Method::Accessor
305 - Fix error message on missing builder method (groditi)
308 - Add test to check for the correct error message when
309 builder method is missing (groditi)
311 0.28 Tues. Nov. 13, 2007
312 - 0.27 packaged incorrectly (groditi)
314 0.27 Tues. Nov. 13, 2007
315 * Moose::Meta::Attribute
316 - Added support for the new builder option (groditi)
317 - Added support for lazy_build option (groditi)
318 - Changed slot initialization for predicate changes (groditi)
320 * Moose::Meta::Method::Accessor
321 - Added support for lazy_build option (groditi)
322 - Fix inline methods to work with corrected predicate
325 * Moose::Meta::Method::Constructor
326 - Added support for lazy_build option (groditi)
329 - tests for builder and lazy_build (groditi)
331 * fixing some misc. bits in the docs that
332 got mentioned on CPAN Forum & perlmonks
335 - fixed how required methods are handled
336 when they encounter overriden or modified
337 methods from a class (thanks to confound).
338 - added tests for this
340 * Moose::Util::TypeConstraint
341 - fixed the type notation parser so that
342 the | always creates a union and so is
343 no longer a valid type char (thanks to
344 konobi, mugwump and #moose for working
346 - added more tests for this
348 0.26 Thurs. Sept. 27, 2007
351 * Parameterized Types
352 We now support parameterized collection types, such as:
353 ArrayRef[Int] # array or integers
354 HashRef[Object] # a hash with object values
355 They can also be nested:
356 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
357 And work with the type unions as well:
358 ArrayRef[Int | Str] # array of integers of strings
360 * Better Framework Extendability
361 Moose.pm is now "extendable" such that it is now much
362 easier to extend the framework and add your own keywords
363 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
364 section of the Moose.pm docs.
367 In an effort to begin documenting some of the various
368 details of Moose as well as some common idioms, we have
369 created Moose::Cookbook::Snacks as a place to find
370 small (easily digestable) nuggets of Moose code.
373 ~ Several doc updates/cleanup thanks to castaway ~
375 - converted build system to use Module::Install instead of
376 Module::Build (thanks to jrockway)
379 - added all the meta classes to the immutable list and
380 set it to inline the accessors
381 - fix import to allow Sub::Exporter like { into => }
382 and { into_level => } (perigrin)
383 - exposed and documented init_meta() to allow better
384 embedding and extending of Moose (perigrin)
387 - complete re-organization of the test suite
388 - added some new tests as well
389 - finally re-enabled the Moose::POOP test since
390 the new version of DBM::Deep now works again
394 - fixed very odd and very nasty recursion bug with
396 - added tests for this (eilara)
398 * Moose::Meta::Attribute
399 Moose::Meta::Method::Constructor
400 Moose::Meta::Method::Accessor
401 - fixed issue with overload::Overloaded getting called
402 on non-blessed items. (RT #29269)
403 - added tests for this
405 * Moose::Meta::Method::Accessor
406 - fixed issue with generated accessor code making
407 assumptions about hash based classes (thanks to dexter)
409 * Moose::Coookbook::Snacks
410 - these are bits of documentation, not quite as big as
411 Recipes but which have no clear place in the module docs.
412 So they are Snacks! (horray for castaway++)
414 * Moose::Cookbook::Recipe4
415 - updated it to use the new ArrayRef[MyType] construct
416 - updated the accompanying test as well
418 +++ Major Refactor of the Type Constraint system +++
419 +++ with new features added as well +++
421 * Moose::Util::TypeConstraint
422 - no longer uses package variable to keep track of
423 the type constraints, now uses the an instance of
424 Moose::Meta::TypeConstraint::Registry to do it
425 - added more sophisticated type notation parsing
427 - added tests for this
429 * Moose::Meta::TypeConstraint
430 - some minor adjustments to make subclassing easier
431 - added the package_defined_in attribute so that we
432 can track where the type constraints are created
434 * Moose::Meta::TypeConstraint::Union
435 - this is now been refactored to be a subclass of
436 Moose::Meta::TypeConstraint
438 * Moose::Meta::TypeCoercion::Union
439 - this has been added to service the newly refactored
440 Moose::Meta::TypeConstraint::Union and is itself
441 a subclass of Moose::Meta::TypeCoercion
443 * Moose::Meta::TypeConstraint::Parameterized
444 - added this module (taken from MooseX::AttributeHelpers)
445 to help construct nested collection types
446 - added tests for this
448 * Moose::Meta::TypeConstraint::Registry
449 - added this class to keep track of type constraints
451 0.25 Mon. Aug. 13, 2007
453 - Documentation update to reference Moose::Util::TypeConstraints
454 under 'isa' in 'has' for how to define a new type
457 * Moose::Meta::Attribute
458 - required attributes now will no longer accept undef
459 from the constructor, even if there is a default and lazy
460 - added tests for this
461 - default subroutines must return a value which passes the
463 - added tests for this
465 * Moose::Meta::Attribute
466 * Moose::Meta::Method::Constructor
467 * Moose::Meta::Method::Accessor
468 - type-constraint tests now handle overloaded objects correctly
470 - added tests for this (thanks to EvanCarroll)
472 * Moose::Meta::TypeConstraint::Union
473 - added (has_)hand_optimized_constraint to this class so that
474 it behaves as the regular Moose::Meta::TypeConstraint does.
477 - large refactoring of this code
478 - added several more tests
479 - tests for subtle conflict resolition issues
480 added, but not currently running
483 * Moose::Cookbook::Recipe7
484 - added new recipe for augment/inner functionality
486 - added test for this
489 - a formal definition of roles (still in progress)
492 - utilities for easier working with Moose classes
493 - added tests for these
496 - This contains Moose specific test functions
497 - added tests for these
499 0.24 Tues. July 3, 2007
500 ~ Some doc updates/cleanup ~
502 * Moose::Meta::Attribute
503 - added support for roles to be given as parameters
504 to the 'handles' option.
505 - added tests and docs for this
506 - the has '+foo' attribute form now accepts changes to
507 the lazy option, and the addition of a handles option
508 (but not changing the handles option)
509 - added tests and docs for this
512 - required methods are now fetched using find_method_by_name
513 so that required methods can come from superclasses
514 - adjusted tests for this
516 0.23 Mon. June 18, 2007
517 * Moose::Meta::Method::Constructor
518 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
520 - Modify make_immutable to work with the new Class::MOP immutable
521 mechanism + POD + very basic test (groditi)
522 * Moose::Meta::Attribute
523 - Fix handles to use goto() so that caller() comes out properly on
524 the other side (perigrin)
526 0.22 Thurs. May 31, 2007
527 * Moose::Util::TypeConstraints
528 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
529 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
530 prototypes for functions
531 - added the ClassName type constraint, this checks for strings
532 which will respond true to ->isa(UNIVERSAL).
533 - added tests and docs for this
534 - subtyping just in name now works correctly by making the
535 default for where be { 1 }
536 - added test for this
538 * Moose::Meta::Method::Accessor
539 - coerce and lazy now work together correctly, thanks to
540 merlyn for finding this bug
541 - tests added for this
542 - fix reader presedence bug in Moose::Meta::Attribute + tests
545 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
546 a HASH-ref and missed. This produces better error messages then
547 having it die cause undef is not a HASH.
548 - added tests for this
550 0.21 Thursday, May 2nd, 2007
552 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
553 - modified unimport to remove super and inner along with the rest
554 - altered unimport tests to handle this
557 - altered super export to populate SUPER_SLOT
560 - altered augment and override modifier application to use *_SLOT
561 - modified tests for these to unimport one test class each to test
564 - fixed issue where custom attribute metaclasses
565 where not handled correctly in roles
566 - added tests for this
569 - fixed issue where extending metaclasses with
570 roles would blow up. Thanks to Aankhen`` for
571 finding this insidious error, and it's solution.
573 ~~ lots of spelling and grammer fixes in the docs,
574 many many thanks to rlb3 and Aankhen for these :)
576 0.20 Friday, April 6th, 2007
577 >> I messed up the SKIP logic in one test
578 so this release is just to fix that.
581 - 'has' now also accepts an ARRAY ref
582 to create multiple attrs (see docs)
583 (thanks to konobi for this)
584 - added tests and docs
586 0.19 Thurs. April 5th, 2007
587 ~~ More documentation updates ~~
589 * Moose::Util::TypeConstraints
590 - 'type' now supports messages as well
591 thanks to phaylon for finding this
592 - added tests for this
593 - added &list_all_type_constraints and
594 &list_all_builtin_type_constraints
595 functions to facilitate introspection.
597 * Moose::Meta::Attribute
598 - fixed regexp 'handles' declarations
599 to build the list of delegated methods
600 correctly (and not override important
601 things like &new) thanks to ashleyb
603 - added tests and docs for this
604 - added the 'documentation' attributes
605 so that you can actually document your
606 attributes and inspect them through the
608 - added tests and docs for this
611 - when loading custom attribute metaclasses
612 it will first look in for the class in the
613 Moose::Meta::Attribute::Custom::$name, and
614 then default to just loading $name.
615 - added tests and docs for this
617 * Moose::Meta::TypeConstraint
618 - type constraints now stringify to their names.
619 - added test for this
622 - added tests to assure we work with Module::Refresh
623 - added stricter test skip logic in the Moose POOP
624 test, ask Rob Kinyon why.
625 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
627 0.18 Sat. March 10, 2007
628 ~~ Many, many documentation updates ~~
631 - We now use Class::MOP::load_class to
633 - added tests to show types and subtypes
634 working with Declare::Constraints::Simple
635 and Test::Deep as constraint engines.
638 !! You must have Class::MOP 0.37_001 !!
639 !! for this developer release to work !!
641 This release was primarily adding the immutable
642 feature to Moose. An immutable class is one which
643 you promise not to alter. When you set the class
644 as immutable it will perform various bits of
645 memoization and inline certain part of the code
646 (constructors, destructors and accessors). This
647 minimizes (and in some cases totally eliminates)
648 one of Moose's biggest performance hits. This
649 feature is not on by default, and is 100% optional.
650 It has several configurable bits as well, so you
651 can pick and choose to your specific needs.
653 The changes involved in this were fairly wide and
654 highly specific, but 100% backwards compatible, so
655 I am not going to enumerate them here. If you are
656 truely interested in what was changed, please do
659 0.17 Tues. Nov. 14, 2006
660 * Moose::Meta::Method::Accessor
661 - bugfix for read-only accessors which
662 are have a type constraint and lazy.
663 Thanks to chansen for finding it.
665 0.16 Tues. Nov. 14, 2006
667 There are some speed improvements in this release,
668 but they are only the begining, so stay tuned.
671 - BUILDALL and DEMOLISHALL no longer get
672 called unless they actually need to be.
673 This gave us a signifigant speed boost
674 for the cases when there is no BUILD or
675 DEMOLISH method present.
677 * Moose::Util::TypeConstraints
678 * Moose::Meta::TypeConstraint
679 - added an 'optimize_as' option to the
680 type constraint, which allows for a
681 hand optimized version of the type
682 constraint to be used when possible.
683 - Any internally created type constraints
684 now provide an optimized version as well.
686 0.15 Sun. Nov. 5, 2006
688 This version of Moose *must* have Class::MOP 0.36 in order
689 to work correctly. A number of small internal tweaks have
690 been made in order to be compatible with that release.
692 * Moose::Util::TypeConstraints
693 - added &unimport so that you can clean out
694 your class namespace of these exported
698 - fixed minor issue which occasionally
699 comes up during global destruction
701 - moved Moose::Meta::Method::Overriden into
705 - moved Moose::Meta::Role::Method into
708 * Moose::Meta::Attribute
709 - changed how we do type checks so that
710 we reduce the overall cost, but still
713 - moved accessor generation methods to
714 Moose::Meta::Method::Accessor to
715 conform to the API changes from
718 * Moose::Meta::TypeConstraint
719 - changed how constraints are compiled
720 so that we do less recursion and more
721 iteration. This makes the type check
723 - moved Moose::Meta::TypeConstraint::Union
726 * Moose::Meta::Method::Accessor
727 - created this from methods formerly found in
728 Moose::Meta::Attribute
730 * Moose::Meta::Role::Method
731 - moved this from Moose::Meta::Role
733 * Moose::Meta::Method::Overriden
734 - moved this from Moose::Meta::Class
736 * Moose::Meta::TypeConstraint::Union
737 - moved this from Moose::Meta::TypeConstraint
739 0.14 Mon. Oct. 9, 2006
741 * Moose::Meta::Attribute
742 - fixed lazy attributes which were not getting
743 checked with the type constraint (thanks ashley)
744 - added tests for this
745 - removed the over-enthusiastic DWIMery of the
746 automatic ArrayRef and HashRef defaults, it
747 broke predicates in an ugly way.
748 - removed tests for this
750 0.13 Sat. Sept. 30, 2006
752 This version of Moose *must* have Class::MOP 0.35 in order
753 to work correctly. A number of small internal tweaks have
754 been made in order to be compatible with that release.
757 - Removed the use of UNIVERSAL::require to be a better
758 symbol table citizen and remove a dependency
759 (thanks Adam Kennedy)
761 **~~ removed experimental & undocumented feature ~~**
762 - commented out the 'method' and 'self' keywords, see the
763 comments for more info.
766 - added a FAQ and WTF files to document frequently
767 asked questions and common problems
769 * Moose::Util::TypeConstraints
770 - added GlobRef and FileHandle type constraint
771 - added tests for this
773 * Moose::Meta::Attribute
774 - if your attribute 'isa' ArrayRef of HashRef, and you have
775 not explicitly set a default, then make the default DWIM.
776 This will also work for subtypes of ArrayRef and HashRef
778 - you can now auto-deref subtypes of ArrayRef or HashRef too.
779 - new test added for this (thanks to ashley)
782 - added basic support for runtime role composition
783 but this is still *highly experimental*, so feedback
784 is much appreciated :)
785 - added tests for this
787 * Moose::Meta::TypeConstraint
788 - the type constraint now handles the coercion process
789 through delegation, this is to support the coercion
792 * Moose::Meta::TypeConstraint::Union
793 - it is now possible for coercions to be performed
795 - added tests for this (thanks to konobi)
797 * Moose::Meta::TypeCoercion
798 - properly capturing error when type constraint
802 - Scalar::Util 1.18 is bad on Win32, so temporarily
803 only require version 1.17 for Win32 and cygwin.
804 (thanks Adam Kennedy)
806 0.12 Sat. Sept. 1, 2006
808 - Recipe5 (subtypes & coercion) has been written
811 - fixed "bad meta" error message to be more descriptive
812 - fixed &unimport to not remove the &inner and &super
813 keywords because we need to localize them.
814 - fixed number of spelling/grammer issues, thanks Theory :)
816 **~~ experimental & undocumented feature ~~**
817 - added the method and self keywords, they are basically
818 just sugar, and they may not stay around.
821 - added &dump method to easily Data::Dumper
824 * Moose::Meta::TypeConstraint
825 - added the &is_a_type_of method to check both the current
826 and the subtype of a method (similar to &isa with classes)
829 - this is now a subclass of Class::MOP::Module, and no longer
830 creates the _role_meta ugliness of before.
831 - fixed tests to reflect this change
833 0.11 Wed. July 12, 2006
835 - added an &unimport method to remove all the keywords
836 that Moose will import, simply add 'no Moose' to the
837 bottom of your class file.
840 - fixed some test failures caused by a forgotten test
843 0.10 Thurs. July 6, 2006
845 - improved error message when loading modules so
846 it is less confusing when you load a role.
847 - added &calculate_all_roles method to
848 Moose::Meta::Class and Moose::Meta::Role
851 This module has been tested against Class::MOP 0.30
852 but it does not yet utilize the optimizations
853 it makes available. Stay tuned for that ;)
855 0.09_03 Fri. June 23, 2006
856 ++ DEVELOPER RELEASE ++
858 - 'use strict' and 'use warnings' are no longer
859 needed in Moose classes, Moose itself will
860 turn them on for you.
861 - added tests for this
862 - moved code from exported subs to private methods
863 in Moose::Meta::Class
866 - as with Moose, strict and warnings are
867 automatically turned on for you.
868 - added tests for this
871 - now handles an edge case for override errors
872 - added tests for this
873 - added some more edge case tests
875 0.09_02 Tues. May 16, 2006
876 ++ DEVELOPER RELEASE ++
878 - added prototypes to the exported subs
882 - added prototypes to the exported subs
885 * Moose::Util::TypeConstraints
886 - cleaned up prototypes for the subs
889 0.09_01 Fri. May 12, 2006
890 ++ DEVELOPER RELEASE ++
891 - This release works in combination with
892 Class::MOP 0.29_01, it is a developer
893 release because it uses the a new
894 instance sub-protocol and a fairly
895 complete Role implementation. It has
896 not yet been optimized, so it slower
897 the the previous CPAN version. This
898 release also lacks good updated docs,
899 the official release will have updated docs.
902 - refactored the keyword exports
903 - 'with' now checks Role validaity and
904 accepts more than one Role at a time
905 - 'extends' makes metaclass adjustments as
906 needed to ensure metaclass compatability
909 - refactored the keyword exports
910 - 'with' now checks Role validaity and
911 accepts more than one Role at a time
913 * Moose::Util::TypeConstraints
914 - added the 'enum' keyword for simple
915 string enumerations which can be used as
917 - see example of usage in t/202_example.t
920 - more careful checking of params to new()
923 - much work done on the role composition
924 - many new tests for conflict detection
925 and composition edge cases
926 - not enough documentation, I suggest
929 * Moose::Meta::Instance
930 - added new Instance metaclass to support
931 the new Class::MOP instance protocol
934 - some small changes to support the new
936 - some small additions to support Roles
938 * Moose::Meta::Attribute
939 - some improvements to the accessor generation code
941 - some small changes to support the new
943 - (still somewhat) experimental delegation support
944 with the 'handles' option
945 - added several tests for this
946 - no docs for this yet
948 0.05 Thurs. April 27, 2006
950 - keywords are now exported with Sub::Exporter
951 thanks to chansen for this commit
952 - has keyword now takes a 'metaclass' option
953 to support custom attribute meta-classes
954 on a per-attribute basis
955 - added tests for this
956 - the 'has' keyword not accepts inherited slot
957 specifications (has '+foo'). This is still an
958 experimental feature and probably not finished
959 see t/038_attribute_inherited_slot_specs.t for
960 more details, or ask about it on #moose
961 - added tests for this
964 - keywords are now exported with Sub::Exporter
966 * Moose::Utils::TypeConstraints
967 - reorganized the type constraint hierarchy, thanks
968 to nothingmuch and chansen for his help and advice
970 - added some tests for this
971 - keywords are now exported with Sub::Exporter
972 thanks to chansen for this commit
975 - due to changes in Class::MOP, we had to change
976 construct_instance (for the better)
978 * Moose::Meta::Attribute
979 - due to changes in Class::MOP, we had to add the
980 initialize_instance_slot method (it's a good thing)
982 * Moose::Meta::TypeConstraint
983 - added type constraint unions
984 - added tests for this
985 - added the is_subtype_of predicate method
986 - added tests for this
988 0.04 Sun. April 16th, 2006
990 - Roles can now consume other roles
991 - added tests for this
992 - Roles can specify required methods now with
993 the requires() keyword
994 - added tests for this
997 - ripped out much of it's guts ,.. much cleaner now
998 - added required methods and correct handling of
999 them in apply() for both classes and roles
1000 - added tests for this
1001 - no longer adds a does() method to consuming classes
1002 it relys on the one in Moose::Object
1003 - added roles attribute and some methods to support
1004 roles consuming roles
1006 * Moose::Meta::Attribute
1007 - added support for triggers on attributes
1008 - added tests for this
1009 - added support for does option on an attribute
1010 - added tests for this
1012 * Moose::Meta::Class
1013 - added support for attribute triggers in the
1015 - added tests for this
1018 - Moose no longer creates a subtype for your class
1019 if a subtype of the same name already exists, this
1020 should DWIM in 99.9999% of all cases
1022 * Moose::Util::TypeConstraints
1023 - fixed bug where incorrect subtype conflicts were
1025 - added test for this
1028 - this class can now be extended with 'use base' if
1029 you need it, it properly loads the metaclass class now
1030 - added test for this
1032 0.03_02 Wed. April 12, 2006
1034 - you must now explictly use Moose::Util::TypeConstraints
1035 it no longer gets exported for you automatically
1038 - new() now accepts hash-refs as well as key/value lists
1039 - added does() method to check for Roles
1040 - added tests for this
1042 * Moose::Meta::Class
1043 - added roles attribute along with the add_role() and
1045 - added tests for this
1048 - now adds a does() method to consuming classes
1049 which tests the class's hierarchy for roles
1050 - added tests for this
1052 0.03_01 Mon. April 10, 2006
1054 - added new Role recipe (no content yet, only code)
1057 - added 'with' keyword for Role support
1058 - added test and docs for this
1059 - fixed subtype quoting bug
1060 - added test for this
1064 - added test and docs
1066 * Moose::Util::TypeConstraints
1067 - added the message keyword to add custom
1068 error messages to type constraints
1071 - the meta role to support Moose::Role
1072 - added tests and docs
1074 * Moose::Meta::Class
1075 - moved a number of things from Moose.pm
1076 to here, they should have been here
1079 * Moose::Meta::Attribute
1080 - moved the attribute option macros here
1081 instead of putting them in Moose.pm
1083 * Moose::Meta::TypeConstraint
1084 - added the message attributes and the
1086 - added tests and docs for this
1088 0.03 Thurs. March 30, 2006
1090 - added the Moose::Cookbook with 5 recipes,
1091 describing all the stuff Moose can do.
1094 - fixed an issue with &extends super class loading
1095 it now captures errors and deals with inline
1096 packages correctly (bug found by mst, solution
1098 - added super/override & inner/augment features
1099 - added tests and docs for these
1102 - BUILDALL now takes a reference of the %params
1103 that are passed to &new, and passes that to
1106 * Moose::Util::TypeConstraints
1107 - Type constraints now survive runtime reloading
1108 - added test for this
1110 * Moose::Meta::Class
1111 - fixed the way attribute defaults are handled
1112 during instance construction (bug found by chansen)
1114 * Moose::Meta::Attribute
1115 - read-only attributes now actually enforce their
1116 read-only-ness (this corrected in Class::MOP as
1119 0.02 Tues. March 21, 2006
1121 - many more tests, fixing some bugs and
1123 - &extends now loads the base module with
1125 - added UNIVERSAL::require to the
1128 - each new Moose class will also create
1129 and register a subtype of Object which
1130 correspond to the new Moose class.
1131 - the 'isa' option in &has now only
1132 accepts strings, and will DWIM in
1135 * Moose::Util::TypeConstraints
1136 - added type coercion features
1137 - added tests for this
1138 - added support for this in attributes
1139 and instance construction
1141 - type construction no longer creates a
1142 function, it registers the type instead.
1143 - added several functions to get the
1147 - BUILDALL and DEMOLISHALL were broken
1148 because of a mis-named hash key, Whoops :)
1150 * Moose::Meta::Attribute
1151 - adding support for coercion in the
1152 autogenerated accessors
1154 * Moose::Meta::Class
1155 - adding support for coercion in the
1156 instance construction
1158 * Moose::Meta::TypeConstraint
1159 * Moose::Meta::TypeCoercion
1160 - type constraints and coercions are now
1161 full fledges meta-objects
1163 0.01 Wed. March 15, 2006
1164 - Moooooooooooooooooose!!!