1 Revision history for Perl extension Moose
4 ~~ numerous documentation updates ~~
6 - Changed all usage of die to Carp::croak for better
7 error reporting (initial patch by Tod Hagan)
10 - the make_immutable keyword is now deprecated, don't
11 use it in any new code and please fix your old code
12 as well. There will be 2 releases, and then it will
15 * Moose::Meta::Method::Constructor
16 - immutable classes which had non-lazy attributes were calling
17 the default generating sub twice in the constructor. (bug
18 found by Jesse Luehrs, fixed by Dave Rolsky)
19 - added tests for this (Dave Rolsky)
21 * Moose::Meta::Attribute
22 - inherited attributes may now be extended without
23 restriction on the type ('isa') (Sartak)
24 - added tests for this (Sartak)
25 - when an attribute property is malformed (such as lazy without
26 a default), give the name of the attribute in the error
30 0.40 Fri. March 14, 2008
31 - I hate Pod::Coverage
33 0.39 Fri. March 14, 2008
35 - documenting the use of '+name' with attributes
36 that come from recently composed roles. It makes
37 sense, people are using it, and so why not just
38 officially support it.
39 - fixing the 'extends' keyword so that it will not
40 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
43 - added the perl -Moose=+Class::Name feature to allow
44 monkeypatching of classes in one liners
47 - fixing the 'apply_all_roles' keyword so that it will not
48 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
51 - added ->create method which now supports roles (thanks to jrockway)
52 - added tests for this
53 - added ->create_anon_class which now supports roles and caching of
54 the results (thanks to jrockway)
55 - added tests for this
56 - made ->does_role a little more forgiving when it is
57 checking a Class::MOP era metaclasses.
59 * Moose::Meta::Role::Application::ToInstance
60 - it is now possible to pass extra params to be used when
61 a role is applied to an the instance (rebless_params)
62 - added tests for this
64 * Moose::Util::TypeConstraints
65 - class_type now accepts an optional second argument for a
66 custom message. POD anotated accordingly (groditi)
67 - added tests for this
68 - it is now possible to make anon-enums by passing 'enum' an
69 ARRAY ref instead of the $name => @values. Everything else
71 - added tests for this
74 - making test for using '+name' on attributes consumed
75 from a role, it works and makes sense too.
77 * Moose::Meta::Attribute
78 - fix handles so that it doesn't return nothing
79 when the method cannot be found, not sure why
80 it ever did this originally, this means we now
81 have slightly better support for AUTOLOADed
83 - added more delegation tests
84 - adding ->does method to this so as to better
85 support traits and their introspection.
86 - added tests for this
89 - localizing the Data::Dumper configurations so
90 that it does not pollute others (RT #33509)
91 - made ->does a little more forgiving when it is
92 passed Class::MOP era metaclasses.
94 0.38 Fri. Feb. 15, 2008
95 * Moose::Meta::Attribute
96 - fixed initializer to correctly do
97 type checking and coercion in the
99 - added tests for this
102 - fixed some finicky tests (thanks to konobi)
104 0.37 Thurs. Feb. 14, 2008
106 - fixed some details in Moose::init_meta
107 and its superclass handling (thanks thepler)
108 - added tests for this (thanks thepler)
109 - 'has' now dies if you don't pass in name
111 - added the 'make_immutable' keyword as a shortcut
115 Moose::Meta::Method::Constructor
116 Moose::Meta::Attribute
117 - making (init_arg => undef) work here too
118 (thanks to nothingmuch)
120 * Moose::Meta::Attribute
121 Moose::Meta::Method::Constructor
122 Moose::Meta::Method::Accessor
123 - make lazy attributes respect attr initializers (rjbs)
124 - added tests for this
126 * Moose::Util::TypeConstraints
127 Moose::Util::TypeConstraints::OptimizedConstraints
128 Moose::Meta::TypeConstraints
129 Moose::Meta::Attribute
130 Moose::Meta::Method::Constructor
131 Moose::Meta::Method::Accessor
132 - making type errors use the
133 assigned message (thanks to Sartak)
134 - added tests for this
136 * Moose::Meta::Method::Destructor
137 - making sure DESTROY gets inlined properly
138 with successive DEMOLISH calls (thanks to manito)
140 * Moose::Meta::Attribute
141 Moose::Meta::Method::Accessor
142 - fixed handling of undef with type constraints
144 - added tests for this
147 - added &get_all_init_args and &get_all_attribute_values
148 (thanks to Sartak and nothingmuch)
150 0.36 Sat. Jan. 26, 2008
152 Moose::Meta::Attribute
153 - role type tests now support when roles are
154 applied to non-Moose classes (found by ash)
155 - added tests for this (thanks to ash)
156 - couple extra tests to boost code coverage
158 * Moose::Meta::Method::Constructor
159 - improved fix for handling Class::MOP attributes
160 - added test for this
163 - handled the add_attribute($attribute_meta_object)
165 - added test for this
167 0.35 Tues. Jan. 22, 2008
168 * Moose::Meta::Method::Constructor
169 - fix to make sure even Class::MOP attributes
170 are handled correctly (Thanks to Dave Rolsky)
171 - added test for this (also Dave Rolsky)
174 - improved error message on _apply_all_roles,
175 you should now use Moose::Util::apply_all_roles
176 and you shouldnt have been using a _ prefixed
177 method in the first place ;)
179 0.34 Mon. Jan. 21, 2008
180 ~~~ more misc. doc. fixes ~~~
181 ~~ updated copyright dates ~~
183 Moose is now a postmodern object system :)
184 - (see the POD for details)
186 * <<Role System Refactoring>>
187 - this release contains a major reworking and
188 cleanup of the role system
189 - 100% backwards compat.
190 - Role application now restructured into seperate
191 classes based on type of applicants
192 - Role summation (combining of more than one role)
193 is much cleaner and anon-classes are no longer
195 - new Composite role metaclass
196 - runtime application of roles to instances
197 is now more efficient and re-uses generated
198 classes when applicable
200 * <<New Role composition features>>
201 - methods can now be excluded from a given role
203 - methods can now be aliased to another name (and
204 still retain the original as well)
206 * Moose::Util::TypeConstraints::OptimizedConstraints
207 - added this module (see above)
210 - fixed the &_process_attribute method to be called
211 by &add_attribute, so that the API is now correct
213 * Moose::Meta::Method::Accessor
214 - fixed bug when passing a list of values to
215 an accessor would get (incorrectly) ignored.
216 Thanks to Sartak for finding this ;)
217 - added tests for this (Sartak again)
219 * Moose::Meta::Method::Accessor
220 Moose::Meta::Method::Constructor
221 Moose::Meta::Attribute
222 Moose::Meta::TypeConstraint
223 Moose::Meta::TypeCoercion
224 - lots of cleanup of such things as:
226 - type constraint handling
227 - error handling/messages
228 (thanks to nothingmuch)
230 * Moose::Meta::TypeConstraint::Parameterizable
231 - added this module to support the refactor
232 in Moose::Meta::TypeConstraint::Parameterized
234 * Moose::Meta::TypeConstraint::Parameterized
235 - refactored how these types are handled so they
236 are more generic and not confined to ArrayRef
240 - shortened some file names for better VMS support (RT #32381)
242 0.33 Fri. Dec. 14, 2007
243 !! Moose now loads 2 x faster !!
244 !! with new Class::MOP 0.49 !!
246 ++ new oose.pm module to make command line
247 Moose-ness easier (see POD docs for more)
251 - several tweaks to take advantage of the
252 new method map caching in Class::MOP
254 * Moose::Meta::TypeConstraint::Parameterized
255 - allow subtypes of ArrayRef and HashRef to
256 be used as a container (sartak)
257 - added tests for this
258 - basic support for coercion to ArrayRef and
259 HashRef for containers (sartak)
260 - added tests for this
262 * Moose::Meta::TypeCoercion
263 - coercions will now create subtypes as needed
264 so you can now add coercions to parameterized
265 types without having to explictly define them
266 - added tests for this
268 * Moose::Meta::Method::Accessor
269 - allow subclasses to decide whether we need
270 to copy the value into a new variable (sartak)
272 0.32 Tues. Dec. 4, 2007
273 * Moose::Util::TypeConstraints
274 - fixing how subtype aliases of unions work
275 they should inherit the parent's coercion
276 - added tests for this
277 - you can now define multiple coercions on
278 a single type at different times instead of
279 having to do it all in one place
280 - added tests for this
282 * Moose::Meta::TypeConstraint
283 - there is now a default constraint of sub { 1 }
284 instead of Moose::Util::TypeConstraints setting
287 * Moose::Meta::TypeCoercion
288 * Moose::Meta::TypeCoercion::Union
289 - added the &has_coercion_for_type and
290 &add_type_coercions methods to support the
291 new features above (although you cannot add
292 more type coercions for Union types)
294 0.31 Mon. Nov. 26, 2007
295 * Moose::Meta::Attribute
296 - made the +attr syntax handle extending types with
297 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
298 now works if the original foo is an ArrayRef.
299 - added tests for this.
300 - delegation now works even if the attribute does not
301 have a reader method using the get_read_method_ref
302 method from Class::MOP::Attribute.
303 - added tests for this
304 - added docs for this
306 * Moose::Util::TypeConstraints
307 - passing no "additional attribute info" to
308 &find_or_create_type_constraint will no longer
309 attempt to create an __ANON__ type for you,
310 instead it will just return undef.
311 - added docs for this
313 0.30 Fri. Nov. 23, 2007
314 * Moose::Meta::Method::Constructor
315 -builder related bug in inlined constructor. (groditi)
317 * Moose::Meta::Method::Accessor
318 - genereate unnecessary calls to predicates and refactor
319 code generation for runtime speed (groditi)
321 * Moose::Util::TypeConstraints
322 - fix ClassName constraint to introspect symbol table (mst)
323 - added more tests for this (mst)
324 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
326 - added tests for this
329 - adding the link to Recipie 11 (written by Sartak)
330 - adding test for SYNOPSIS code
333 - New tests for builder bug. Upon instantiation, if an
334 attribute had a builder, no value and was not lazy the
335 builder default was not getting run, oops. (groditi)
337 0.29 Tues. Nov. 13, 2007
338 * Moose::Meta::Attribute
339 - Fix error message on missing builder method (groditi)
341 * Moose::Meta::Method::Accessor
342 - Fix error message on missing builder method (groditi)
345 - Add test to check for the correct error message when
346 builder method is missing (groditi)
348 0.28 Tues. Nov. 13, 2007
349 - 0.27 packaged incorrectly (groditi)
351 0.27 Tues. Nov. 13, 2007
352 * Moose::Meta::Attribute
353 - Added support for the new builder option (groditi)
354 - Added support for lazy_build option (groditi)
355 - Changed slot initialization for predicate changes (groditi)
357 * Moose::Meta::Method::Accessor
358 - Added support for lazy_build option (groditi)
359 - Fix inline methods to work with corrected predicate
362 * Moose::Meta::Method::Constructor
363 - Added support for lazy_build option (groditi)
366 - tests for builder and lazy_build (groditi)
368 * fixing some misc. bits in the docs that
369 got mentioned on CPAN Forum & perlmonks
372 - fixed how required methods are handled
373 when they encounter overriden or modified
374 methods from a class (thanks to confound).
375 - added tests for this
377 * Moose::Util::TypeConstraint
378 - fixed the type notation parser so that
379 the | always creates a union and so is
380 no longer a valid type char (thanks to
381 konobi, mugwump and #moose for working
383 - added more tests for this
385 0.26 Thurs. Sept. 27, 2007
388 * Parameterized Types
389 We now support parameterized collection types, such as:
390 ArrayRef[Int] # array or integers
391 HashRef[Object] # a hash with object values
392 They can also be nested:
393 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
394 And work with the type unions as well:
395 ArrayRef[Int | Str] # array of integers of strings
397 * Better Framework Extendability
398 Moose.pm is now "extendable" such that it is now much
399 easier to extend the framework and add your own keywords
400 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
401 section of the Moose.pm docs.
404 In an effort to begin documenting some of the various
405 details of Moose as well as some common idioms, we have
406 created Moose::Cookbook::Snacks as a place to find
407 small (easily digestable) nuggets of Moose code.
410 ~ Several doc updates/cleanup thanks to castaway ~
412 - converted build system to use Module::Install instead of
413 Module::Build (thanks to jrockway)
416 - added all the meta classes to the immutable list and
417 set it to inline the accessors
418 - fix import to allow Sub::Exporter like { into => }
419 and { into_level => } (perigrin)
420 - exposed and documented init_meta() to allow better
421 embedding and extending of Moose (perigrin)
424 - complete re-organization of the test suite
425 - added some new tests as well
426 - finally re-enabled the Moose::POOP test since
427 the new version of DBM::Deep now works again
431 - fixed very odd and very nasty recursion bug with
433 - added tests for this (eilara)
435 * Moose::Meta::Attribute
436 Moose::Meta::Method::Constructor
437 Moose::Meta::Method::Accessor
438 - fixed issue with overload::Overloaded getting called
439 on non-blessed items. (RT #29269)
440 - added tests for this
442 * Moose::Meta::Method::Accessor
443 - fixed issue with generated accessor code making
444 assumptions about hash based classes (thanks to dexter)
446 * Moose::Coookbook::Snacks
447 - these are bits of documentation, not quite as big as
448 Recipes but which have no clear place in the module docs.
449 So they are Snacks! (horray for castaway++)
451 * Moose::Cookbook::Recipe4
452 - updated it to use the new ArrayRef[MyType] construct
453 - updated the accompanying test as well
455 +++ Major Refactor of the Type Constraint system +++
456 +++ with new features added as well +++
458 * Moose::Util::TypeConstraint
459 - no longer uses package variable to keep track of
460 the type constraints, now uses the an instance of
461 Moose::Meta::TypeConstraint::Registry to do it
462 - added more sophisticated type notation parsing
464 - added tests for this
466 * Moose::Meta::TypeConstraint
467 - some minor adjustments to make subclassing easier
468 - added the package_defined_in attribute so that we
469 can track where the type constraints are created
471 * Moose::Meta::TypeConstraint::Union
472 - this is now been refactored to be a subclass of
473 Moose::Meta::TypeConstraint
475 * Moose::Meta::TypeCoercion::Union
476 - this has been added to service the newly refactored
477 Moose::Meta::TypeConstraint::Union and is itself
478 a subclass of Moose::Meta::TypeCoercion
480 * Moose::Meta::TypeConstraint::Parameterized
481 - added this module (taken from MooseX::AttributeHelpers)
482 to help construct nested collection types
483 - added tests for this
485 * Moose::Meta::TypeConstraint::Registry
486 - added this class to keep track of type constraints
488 0.25 Mon. Aug. 13, 2007
490 - Documentation update to reference Moose::Util::TypeConstraints
491 under 'isa' in 'has' for how to define a new type
494 * Moose::Meta::Attribute
495 - required attributes now will no longer accept undef
496 from the constructor, even if there is a default and lazy
497 - added tests for this
498 - default subroutines must return a value which passes the
500 - added tests for this
502 * Moose::Meta::Attribute
503 * Moose::Meta::Method::Constructor
504 * Moose::Meta::Method::Accessor
505 - type-constraint tests now handle overloaded objects correctly
507 - added tests for this (thanks to EvanCarroll)
509 * Moose::Meta::TypeConstraint::Union
510 - added (has_)hand_optimized_constraint to this class so that
511 it behaves as the regular Moose::Meta::TypeConstraint does.
514 - large refactoring of this code
515 - added several more tests
516 - tests for subtle conflict resolition issues
517 added, but not currently running
520 * Moose::Cookbook::Recipe7
521 - added new recipe for augment/inner functionality
523 - added test for this
526 - a formal definition of roles (still in progress)
529 - utilities for easier working with Moose classes
530 - added tests for these
533 - This contains Moose specific test functions
534 - added tests for these
536 0.24 Tues. July 3, 2007
537 ~ Some doc updates/cleanup ~
539 * Moose::Meta::Attribute
540 - added support for roles to be given as parameters
541 to the 'handles' option.
542 - added tests and docs for this
543 - the has '+foo' attribute form now accepts changes to
544 the lazy option, and the addition of a handles option
545 (but not changing the handles option)
546 - added tests and docs for this
549 - required methods are now fetched using find_method_by_name
550 so that required methods can come from superclasses
551 - adjusted tests for this
553 0.23 Mon. June 18, 2007
554 * Moose::Meta::Method::Constructor
555 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
557 - Modify make_immutable to work with the new Class::MOP immutable
558 mechanism + POD + very basic test (groditi)
559 * Moose::Meta::Attribute
560 - Fix handles to use goto() so that caller() comes out properly on
561 the other side (perigrin)
563 0.22 Thurs. May 31, 2007
564 * Moose::Util::TypeConstraints
565 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
566 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
567 prototypes for functions
568 - added the ClassName type constraint, this checks for strings
569 which will respond true to ->isa(UNIVERSAL).
570 - added tests and docs for this
571 - subtyping just in name now works correctly by making the
572 default for where be { 1 }
573 - added test for this
575 * Moose::Meta::Method::Accessor
576 - coerce and lazy now work together correctly, thanks to
577 merlyn for finding this bug
578 - tests added for this
579 - fix reader presedence bug in Moose::Meta::Attribute + tests
582 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
583 a HASH-ref and missed. This produces better error messages then
584 having it die cause undef is not a HASH.
585 - added tests for this
587 0.21 Thursday, May 2nd, 2007
589 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
590 - modified unimport to remove super and inner along with the rest
591 - altered unimport tests to handle this
594 - altered super export to populate SUPER_SLOT
597 - altered augment and override modifier application to use *_SLOT
598 - modified tests for these to unimport one test class each to test
601 - fixed issue where custom attribute metaclasses
602 where not handled correctly in roles
603 - added tests for this
606 - fixed issue where extending metaclasses with
607 roles would blow up. Thanks to Aankhen`` for
608 finding this insidious error, and it's solution.
610 ~~ lots of spelling and grammer fixes in the docs,
611 many many thanks to rlb3 and Aankhen for these :)
613 0.20 Friday, April 6th, 2007
614 >> I messed up the SKIP logic in one test
615 so this release is just to fix that.
618 - 'has' now also accepts an ARRAY ref
619 to create multiple attrs (see docs)
620 (thanks to konobi for this)
621 - added tests and docs
623 0.19 Thurs. April 5th, 2007
624 ~~ More documentation updates ~~
626 * Moose::Util::TypeConstraints
627 - 'type' now supports messages as well
628 thanks to phaylon for finding this
629 - added tests for this
630 - added &list_all_type_constraints and
631 &list_all_builtin_type_constraints
632 functions to facilitate introspection.
634 * Moose::Meta::Attribute
635 - fixed regexp 'handles' declarations
636 to build the list of delegated methods
637 correctly (and not override important
638 things like &new) thanks to ashleyb
640 - added tests and docs for this
641 - added the 'documentation' attributes
642 so that you can actually document your
643 attributes and inspect them through the
645 - added tests and docs for this
648 - when loading custom attribute metaclasses
649 it will first look in for the class in the
650 Moose::Meta::Attribute::Custom::$name, and
651 then default to just loading $name.
652 - added tests and docs for this
654 * Moose::Meta::TypeConstraint
655 - type constraints now stringify to their names.
656 - added test for this
659 - added tests to assure we work with Module::Refresh
660 - added stricter test skip logic in the Moose POOP
661 test, ask Rob Kinyon why.
662 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
664 0.18 Sat. March 10, 2007
665 ~~ Many, many documentation updates ~~
668 - We now use Class::MOP::load_class to
670 - added tests to show types and subtypes
671 working with Declare::Constraints::Simple
672 and Test::Deep as constraint engines.
675 !! You must have Class::MOP 0.37_001 !!
676 !! for this developer release to work !!
678 This release was primarily adding the immutable
679 feature to Moose. An immutable class is one which
680 you promise not to alter. When you set the class
681 as immutable it will perform various bits of
682 memoization and inline certain part of the code
683 (constructors, destructors and accessors). This
684 minimizes (and in some cases totally eliminates)
685 one of Moose's biggest performance hits. This
686 feature is not on by default, and is 100% optional.
687 It has several configurable bits as well, so you
688 can pick and choose to your specific needs.
690 The changes involved in this were fairly wide and
691 highly specific, but 100% backwards compatible, so
692 I am not going to enumerate them here. If you are
693 truely interested in what was changed, please do
696 0.17 Tues. Nov. 14, 2006
697 * Moose::Meta::Method::Accessor
698 - bugfix for read-only accessors which
699 are have a type constraint and lazy.
700 Thanks to chansen for finding it.
702 0.16 Tues. Nov. 14, 2006
704 There are some speed improvements in this release,
705 but they are only the begining, so stay tuned.
708 - BUILDALL and DEMOLISHALL no longer get
709 called unless they actually need to be.
710 This gave us a signifigant speed boost
711 for the cases when there is no BUILD or
712 DEMOLISH method present.
714 * Moose::Util::TypeConstraints
715 * Moose::Meta::TypeConstraint
716 - added an 'optimize_as' option to the
717 type constraint, which allows for a
718 hand optimized version of the type
719 constraint to be used when possible.
720 - Any internally created type constraints
721 now provide an optimized version as well.
723 0.15 Sun. Nov. 5, 2006
725 This version of Moose *must* have Class::MOP 0.36 in order
726 to work correctly. A number of small internal tweaks have
727 been made in order to be compatible with that release.
729 * Moose::Util::TypeConstraints
730 - added &unimport so that you can clean out
731 your class namespace of these exported
735 - fixed minor issue which occasionally
736 comes up during global destruction
738 - moved Moose::Meta::Method::Overriden into
742 - moved Moose::Meta::Role::Method into
745 * Moose::Meta::Attribute
746 - changed how we do type checks so that
747 we reduce the overall cost, but still
750 - moved accessor generation methods to
751 Moose::Meta::Method::Accessor to
752 conform to the API changes from
755 * Moose::Meta::TypeConstraint
756 - changed how constraints are compiled
757 so that we do less recursion and more
758 iteration. This makes the type check
760 - moved Moose::Meta::TypeConstraint::Union
763 * Moose::Meta::Method::Accessor
764 - created this from methods formerly found in
765 Moose::Meta::Attribute
767 * Moose::Meta::Role::Method
768 - moved this from Moose::Meta::Role
770 * Moose::Meta::Method::Overriden
771 - moved this from Moose::Meta::Class
773 * Moose::Meta::TypeConstraint::Union
774 - moved this from Moose::Meta::TypeConstraint
776 0.14 Mon. Oct. 9, 2006
778 * Moose::Meta::Attribute
779 - fixed lazy attributes which were not getting
780 checked with the type constraint (thanks ashley)
781 - added tests for this
782 - removed the over-enthusiastic DWIMery of the
783 automatic ArrayRef and HashRef defaults, it
784 broke predicates in an ugly way.
785 - removed tests for this
787 0.13 Sat. Sept. 30, 2006
789 This version of Moose *must* have Class::MOP 0.35 in order
790 to work correctly. A number of small internal tweaks have
791 been made in order to be compatible with that release.
794 - Removed the use of UNIVERSAL::require to be a better
795 symbol table citizen and remove a dependency
796 (thanks Adam Kennedy)
798 **~~ removed experimental & undocumented feature ~~**
799 - commented out the 'method' and 'self' keywords, see the
800 comments for more info.
803 - added a FAQ and WTF files to document frequently
804 asked questions and common problems
806 * Moose::Util::TypeConstraints
807 - added GlobRef and FileHandle type constraint
808 - added tests for this
810 * Moose::Meta::Attribute
811 - if your attribute 'isa' ArrayRef of HashRef, and you have
812 not explicitly set a default, then make the default DWIM.
813 This will also work for subtypes of ArrayRef and HashRef
815 - you can now auto-deref subtypes of ArrayRef or HashRef too.
816 - new test added for this (thanks to ashley)
819 - added basic support for runtime role composition
820 but this is still *highly experimental*, so feedback
821 is much appreciated :)
822 - added tests for this
824 * Moose::Meta::TypeConstraint
825 - the type constraint now handles the coercion process
826 through delegation, this is to support the coercion
829 * Moose::Meta::TypeConstraint::Union
830 - it is now possible for coercions to be performed
832 - added tests for this (thanks to konobi)
834 * Moose::Meta::TypeCoercion
835 - properly capturing error when type constraint
839 - Scalar::Util 1.18 is bad on Win32, so temporarily
840 only require version 1.17 for Win32 and cygwin.
841 (thanks Adam Kennedy)
843 0.12 Sat. Sept. 1, 2006
845 - Recipe5 (subtypes & coercion) has been written
848 - fixed "bad meta" error message to be more descriptive
849 - fixed &unimport to not remove the &inner and &super
850 keywords because we need to localize them.
851 - fixed number of spelling/grammer issues, thanks Theory :)
853 **~~ experimental & undocumented feature ~~**
854 - added the method and self keywords, they are basically
855 just sugar, and they may not stay around.
858 - added &dump method to easily Data::Dumper
861 * Moose::Meta::TypeConstraint
862 - added the &is_a_type_of method to check both the current
863 and the subtype of a method (similar to &isa with classes)
866 - this is now a subclass of Class::MOP::Module, and no longer
867 creates the _role_meta ugliness of before.
868 - fixed tests to reflect this change
870 0.11 Wed. July 12, 2006
872 - added an &unimport method to remove all the keywords
873 that Moose will import, simply add 'no Moose' to the
874 bottom of your class file.
877 - fixed some test failures caused by a forgotten test
880 0.10 Thurs. July 6, 2006
882 - improved error message when loading modules so
883 it is less confusing when you load a role.
884 - added &calculate_all_roles method to
885 Moose::Meta::Class and Moose::Meta::Role
888 This module has been tested against Class::MOP 0.30
889 but it does not yet utilize the optimizations
890 it makes available. Stay tuned for that ;)
892 0.09_03 Fri. June 23, 2006
893 ++ DEVELOPER RELEASE ++
895 - 'use strict' and 'use warnings' are no longer
896 needed in Moose classes, Moose itself will
897 turn them on for you.
898 - added tests for this
899 - moved code from exported subs to private methods
900 in Moose::Meta::Class
903 - as with Moose, strict and warnings are
904 automatically turned on for you.
905 - added tests for this
908 - now handles an edge case for override errors
909 - added tests for this
910 - added some more edge case tests
912 0.09_02 Tues. May 16, 2006
913 ++ DEVELOPER RELEASE ++
915 - added prototypes to the exported subs
919 - added prototypes to the exported subs
922 * Moose::Util::TypeConstraints
923 - cleaned up prototypes for the subs
926 0.09_01 Fri. May 12, 2006
927 ++ DEVELOPER RELEASE ++
928 - This release works in combination with
929 Class::MOP 0.29_01, it is a developer
930 release because it uses the a new
931 instance sub-protocol and a fairly
932 complete Role implementation. It has
933 not yet been optimized, so it slower
934 the the previous CPAN version. This
935 release also lacks good updated docs,
936 the official release will have updated docs.
939 - refactored the keyword exports
940 - 'with' now checks Role validaity and
941 accepts more than one Role at a time
942 - 'extends' makes metaclass adjustments as
943 needed to ensure metaclass compatability
946 - refactored the keyword exports
947 - 'with' now checks Role validaity and
948 accepts more than one Role at a time
950 * Moose::Util::TypeConstraints
951 - added the 'enum' keyword for simple
952 string enumerations which can be used as
954 - see example of usage in t/202_example.t
957 - more careful checking of params to new()
960 - much work done on the role composition
961 - many new tests for conflict detection
962 and composition edge cases
963 - not enough documentation, I suggest
966 * Moose::Meta::Instance
967 - added new Instance metaclass to support
968 the new Class::MOP instance protocol
971 - some small changes to support the new
973 - some small additions to support Roles
975 * Moose::Meta::Attribute
976 - some improvements to the accessor generation code
978 - some small changes to support the new
980 - (still somewhat) experimental delegation support
981 with the 'handles' option
982 - added several tests for this
983 - no docs for this yet
985 0.05 Thurs. April 27, 2006
987 - keywords are now exported with Sub::Exporter
988 thanks to chansen for this commit
989 - has keyword now takes a 'metaclass' option
990 to support custom attribute meta-classes
991 on a per-attribute basis
992 - added tests for this
993 - the 'has' keyword not accepts inherited slot
994 specifications (has '+foo'). This is still an
995 experimental feature and probably not finished
996 see t/038_attribute_inherited_slot_specs.t for
997 more details, or ask about it on #moose
998 - added tests for this
1001 - keywords are now exported with Sub::Exporter
1003 * Moose::Utils::TypeConstraints
1004 - reorganized the type constraint hierarchy, thanks
1005 to nothingmuch and chansen for his help and advice
1007 - added some tests for this
1008 - keywords are now exported with Sub::Exporter
1009 thanks to chansen for this commit
1011 * Moose::Meta::Class
1012 - due to changes in Class::MOP, we had to change
1013 construct_instance (for the better)
1015 * Moose::Meta::Attribute
1016 - due to changes in Class::MOP, we had to add the
1017 initialize_instance_slot method (it's a good thing)
1019 * Moose::Meta::TypeConstraint
1020 - added type constraint unions
1021 - added tests for this
1022 - added the is_subtype_of predicate method
1023 - added tests for this
1025 0.04 Sun. April 16th, 2006
1027 - Roles can now consume other roles
1028 - added tests for this
1029 - Roles can specify required methods now with
1030 the requires() keyword
1031 - added tests for this
1034 - ripped out much of it's guts ,.. much cleaner now
1035 - added required methods and correct handling of
1036 them in apply() for both classes and roles
1037 - added tests for this
1038 - no longer adds a does() method to consuming classes
1039 it relys on the one in Moose::Object
1040 - added roles attribute and some methods to support
1041 roles consuming roles
1043 * Moose::Meta::Attribute
1044 - added support for triggers on attributes
1045 - added tests for this
1046 - added support for does option on an attribute
1047 - added tests for this
1049 * Moose::Meta::Class
1050 - added support for attribute triggers in the
1052 - added tests for this
1055 - Moose no longer creates a subtype for your class
1056 if a subtype of the same name already exists, this
1057 should DWIM in 99.9999% of all cases
1059 * Moose::Util::TypeConstraints
1060 - fixed bug where incorrect subtype conflicts were
1062 - added test for this
1065 - this class can now be extended with 'use base' if
1066 you need it, it properly loads the metaclass class now
1067 - added test for this
1069 0.03_02 Wed. April 12, 2006
1071 - you must now explictly use Moose::Util::TypeConstraints
1072 it no longer gets exported for you automatically
1075 - new() now accepts hash-refs as well as key/value lists
1076 - added does() method to check for Roles
1077 - added tests for this
1079 * Moose::Meta::Class
1080 - added roles attribute along with the add_role() and
1082 - added tests for this
1085 - now adds a does() method to consuming classes
1086 which tests the class's hierarchy for roles
1087 - added tests for this
1089 0.03_01 Mon. April 10, 2006
1091 - added new Role recipe (no content yet, only code)
1094 - added 'with' keyword for Role support
1095 - added test and docs for this
1096 - fixed subtype quoting bug
1097 - added test for this
1101 - added test and docs
1103 * Moose::Util::TypeConstraints
1104 - added the message keyword to add custom
1105 error messages to type constraints
1108 - the meta role to support Moose::Role
1109 - added tests and docs
1111 * Moose::Meta::Class
1112 - moved a number of things from Moose.pm
1113 to here, they should have been here
1116 * Moose::Meta::Attribute
1117 - moved the attribute option macros here
1118 instead of putting them in Moose.pm
1120 * Moose::Meta::TypeConstraint
1121 - added the message attributes and the
1123 - added tests and docs for this
1125 0.03 Thurs. March 30, 2006
1127 - added the Moose::Cookbook with 5 recipes,
1128 describing all the stuff Moose can do.
1131 - fixed an issue with &extends super class loading
1132 it now captures errors and deals with inline
1133 packages correctly (bug found by mst, solution
1135 - added super/override & inner/augment features
1136 - added tests and docs for these
1139 - BUILDALL now takes a reference of the %params
1140 that are passed to &new, and passes that to
1143 * Moose::Util::TypeConstraints
1144 - Type constraints now survive runtime reloading
1145 - added test for this
1147 * Moose::Meta::Class
1148 - fixed the way attribute defaults are handled
1149 during instance construction (bug found by chansen)
1151 * Moose::Meta::Attribute
1152 - read-only attributes now actually enforce their
1153 read-only-ness (this corrected in Class::MOP as
1156 0.02 Tues. March 21, 2006
1158 - many more tests, fixing some bugs and
1160 - &extends now loads the base module with
1162 - added UNIVERSAL::require to the
1165 - each new Moose class will also create
1166 and register a subtype of Object which
1167 correspond to the new Moose class.
1168 - the 'isa' option in &has now only
1169 accepts strings, and will DWIM in
1172 * Moose::Util::TypeConstraints
1173 - added type coercion features
1174 - added tests for this
1175 - added support for this in attributes
1176 and instance construction
1178 - type construction no longer creates a
1179 function, it registers the type instead.
1180 - added several functions to get the
1184 - BUILDALL and DEMOLISHALL were broken
1185 because of a mis-named hash key, Whoops :)
1187 * Moose::Meta::Attribute
1188 - adding support for coercion in the
1189 autogenerated accessors
1191 * Moose::Meta::Class
1192 - adding support for coercion in the
1193 instance construction
1195 * Moose::Meta::TypeConstraint
1196 * Moose::Meta::TypeCoercion
1197 - type constraints and coercions are now
1198 full fledges meta-objects
1200 0.01 Wed. March 15, 2006
1201 - Moooooooooooooooooose!!!