1 Revision history for Perl extension Moose
3 0.43 Wed. April, 30, 2008
5 drink more coffee before
6 doing release engineering
8 - whoops, forgot to do the smolder tests,
9 and we broke some of the custom meta-attr
10 modules. This fixes that.
12 0.42 Mon. April 28, 2008
13 - some bad tests slipped by, nothing else
14 changed in this release (cpantesters++)
16 - upped the Class::MOP dependency to 0.55
17 since we have tests which need the C3
20 0.41 Mon. April 28, 2008
21 ~~ numerous documentation updates ~~
23 - Changed all usage of die to Carp::croak for better
24 error reporting (initial patch by Tod Hagan)
27 - the make_immutable keyword is now deprecated, don't
28 use it in any new code and please fix your old code
29 as well. There will be 2 releases, and then it will
35 - refactored the way inner and super work to avoid
36 any method/@ISA cache penalty (nothingmuch)
39 - fixing &new_object to make sure trigger gets the
40 coerced value (spotted by Charles Alderman on the
44 * Moose::Meta::Method::Constructor
45 - immutable classes which had non-lazy attributes were calling
46 the default generating sub twice in the constructor. (bug
47 found by Jesse Luehrs, fixed by Dave Rolsky)
48 - added tests for this (Dave Rolsky)
49 - fix typo in initialize_body method (nothingmuch)
51 * Moose::Meta::Method::Destructor
52 - fix typo in initialize_body method (nothingmuch)
54 * Moose::Meta::Method::Overriden
55 Moose::Meta::Method::Augmented
56 - moved the logic for these into their own
59 * Moose::Meta::Attribute
60 - inherited attributes may now be extended without
61 restriction on the type ('isa', 'does') (Sartak)
62 - added tests for this (Sartak)
63 - when an attribute property is malformed (such as lazy without
64 a default), give the name of the attribute in the error
66 - added the &applied_traits and &has_applied_traits methods
67 to allow introspection of traits
68 - added tests for this
69 - moved 'trait' and 'metaclass' argument handling to here from
71 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
72 '+foo' syntax) (nothingmuch)
73 - added tests for this (t0m)
76 - localize $@ inside DEMOLISHALL to avoid it
77 eating $@ (found by Ernesto)
78 - added test for this (thanks to Ernesto)
80 * Moose::Util::TypeConstraints
81 - &find_type_constraint now DWIMs when given an
82 type constraint object or name (nothingmuch)
83 - &find_or_create_type_constraint superseded with a number of more
85 - find_or_create_{isa,does}_type_constraint
86 - find_or_parse_type_constraint
88 * Moose::Meta::TypeConstraint
89 Moose::Meta::TypeConstraint::Class
90 Moose::Meta::TypeConstraint::Role
91 Moose::Meta::TypeConstraint::Enum
92 Moose::Meta::TypeConstraint::Union
93 Moose::Meta::TypeConstraint::Parameterized
94 - added the &equals method for comparing two type
95 constraints (nothingmuch)
96 - added tests for this (nothingmuch)
98 * Moose::Meta::TypeConstraint
99 - add the &parents method, which is just an alias to &parent.
100 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
102 * Moose::Meta::TypeConstraint::Class
103 - added the class attribute for introspection purposes
105 - added tests for this
107 * Moose::Meta::TypeConstraint::Enum
108 Moose::Meta::TypeConstraint::Role
109 - broke these out into their own classes (nothingmuch)
111 * Moose::Cookbook::Recipe*
112 - fixed references to test file locations in the POD
113 and updated up some text for new Moose features
117 - Added &resolve_metaclass_alias, a helper function for finding an actual
118 class for a short name (e.g. in the traits list)
120 0.40 Fri. March 14, 2008
121 - I hate Pod::Coverage
123 0.39 Fri. March 14, 2008
125 - documenting the use of '+name' with attributes
126 that come from recently composed roles. It makes
127 sense, people are using it, and so why not just
128 officially support it.
129 - fixing the 'extends' keyword so that it will not
130 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
133 - added the perl -Moose=+Class::Name feature to allow
134 monkeypatching of classes in one liners
137 - fixing the 'apply_all_roles' keyword so that it will not
138 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
141 - added ->create method which now supports roles (thanks to jrockway)
142 - added tests for this
143 - added ->create_anon_class which now supports roles and caching of
144 the results (thanks to jrockway)
145 - added tests for this
146 - made ->does_role a little more forgiving when it is
147 checking a Class::MOP era metaclasses.
149 * Moose::Meta::Role::Application::ToInstance
150 - it is now possible to pass extra params to be used when
151 a role is applied to an the instance (rebless_params)
152 - added tests for this
154 * Moose::Util::TypeConstraints
155 - class_type now accepts an optional second argument for a
156 custom message. POD anotated accordingly (groditi)
157 - added tests for this
158 - it is now possible to make anon-enums by passing 'enum' an
159 ARRAY ref instead of the $name => @values. Everything else
161 - added tests for this
164 - making test for using '+name' on attributes consumed
165 from a role, it works and makes sense too.
167 * Moose::Meta::Attribute
168 - fix handles so that it doesn't return nothing
169 when the method cannot be found, not sure why
170 it ever did this originally, this means we now
171 have slightly better support for AUTOLOADed
173 - added more delegation tests
174 - adding ->does method to this so as to better
175 support traits and their introspection.
176 - added tests for this
179 - localizing the Data::Dumper configurations so
180 that it does not pollute others (RT #33509)
181 - made ->does a little more forgiving when it is
182 passed Class::MOP era metaclasses.
184 0.38 Fri. Feb. 15, 2008
185 * Moose::Meta::Attribute
186 - fixed initializer to correctly do
187 type checking and coercion in the
189 - added tests for this
192 - fixed some finicky tests (thanks to konobi)
194 0.37 Thurs. Feb. 14, 2008
196 - fixed some details in Moose::init_meta
197 and its superclass handling (thanks thepler)
198 - added tests for this (thanks thepler)
199 - 'has' now dies if you don't pass in name
201 - added the 'make_immutable' keyword as a shortcut
205 Moose::Meta::Method::Constructor
206 Moose::Meta::Attribute
207 - making (init_arg => undef) work here too
208 (thanks to nothingmuch)
210 * Moose::Meta::Attribute
211 Moose::Meta::Method::Constructor
212 Moose::Meta::Method::Accessor
213 - make lazy attributes respect attr initializers (rjbs)
214 - added tests for this
216 * Moose::Util::TypeConstraints
217 Moose::Util::TypeConstraints::OptimizedConstraints
218 Moose::Meta::TypeConstraints
219 Moose::Meta::Attribute
220 Moose::Meta::Method::Constructor
221 Moose::Meta::Method::Accessor
222 - making type errors use the
223 assigned message (thanks to Sartak)
224 - added tests for this
226 * Moose::Meta::Method::Destructor
227 - making sure DESTROY gets inlined properly
228 with successive DEMOLISH calls (thanks to manito)
230 * Moose::Meta::Attribute
231 Moose::Meta::Method::Accessor
232 - fixed handling of undef with type constraints
234 - added tests for this
237 - added &get_all_init_args and &get_all_attribute_values
238 (thanks to Sartak and nothingmuch)
240 0.36 Sat. Jan. 26, 2008
242 Moose::Meta::Attribute
243 - role type tests now support when roles are
244 applied to non-Moose classes (found by ash)
245 - added tests for this (thanks to ash)
246 - couple extra tests to boost code coverage
248 * Moose::Meta::Method::Constructor
249 - improved fix for handling Class::MOP attributes
250 - added test for this
253 - handled the add_attribute($attribute_meta_object)
255 - added test for this
257 0.35 Tues. Jan. 22, 2008
258 * Moose::Meta::Method::Constructor
259 - fix to make sure even Class::MOP attributes
260 are handled correctly (Thanks to Dave Rolsky)
261 - added test for this (also Dave Rolsky)
264 - improved error message on _apply_all_roles,
265 you should now use Moose::Util::apply_all_roles
266 and you shouldnt have been using a _ prefixed
267 method in the first place ;)
269 0.34 Mon. Jan. 21, 2008
270 ~~~ more misc. doc. fixes ~~~
271 ~~ updated copyright dates ~~
273 Moose is now a postmodern object system :)
274 - (see the POD for details)
276 * <<Role System Refactoring>>
277 - this release contains a major reworking and
278 cleanup of the role system
279 - 100% backwards compat.
280 - Role application now restructured into seperate
281 classes based on type of applicants
282 - Role summation (combining of more than one role)
283 is much cleaner and anon-classes are no longer
285 - new Composite role metaclass
286 - runtime application of roles to instances
287 is now more efficient and re-uses generated
288 classes when applicable
290 * <<New Role composition features>>
291 - methods can now be excluded from a given role
293 - methods can now be aliased to another name (and
294 still retain the original as well)
296 * Moose::Util::TypeConstraints::OptimizedConstraints
297 - added this module (see above)
300 - fixed the &_process_attribute method to be called
301 by &add_attribute, so that the API is now correct
303 * Moose::Meta::Method::Accessor
304 - fixed bug when passing a list of values to
305 an accessor would get (incorrectly) ignored.
306 Thanks to Sartak for finding this ;)
307 - added tests for this (Sartak again)
309 * Moose::Meta::Method::Accessor
310 Moose::Meta::Method::Constructor
311 Moose::Meta::Attribute
312 Moose::Meta::TypeConstraint
313 Moose::Meta::TypeCoercion
314 - lots of cleanup of such things as:
316 - type constraint handling
317 - error handling/messages
318 (thanks to nothingmuch)
320 * Moose::Meta::TypeConstraint::Parameterizable
321 - added this module to support the refactor
322 in Moose::Meta::TypeConstraint::Parameterized
324 * Moose::Meta::TypeConstraint::Parameterized
325 - refactored how these types are handled so they
326 are more generic and not confined to ArrayRef
330 - shortened some file names for better VMS support (RT #32381)
332 0.33 Fri. Dec. 14, 2007
333 !! Moose now loads 2 x faster !!
334 !! with new Class::MOP 0.49 !!
336 ++ new oose.pm module to make command line
337 Moose-ness easier (see POD docs for more)
341 - several tweaks to take advantage of the
342 new method map caching in Class::MOP
344 * Moose::Meta::TypeConstraint::Parameterized
345 - allow subtypes of ArrayRef and HashRef to
346 be used as a container (sartak)
347 - added tests for this
348 - basic support for coercion to ArrayRef and
349 HashRef for containers (sartak)
350 - added tests for this
352 * Moose::Meta::TypeCoercion
353 - coercions will now create subtypes as needed
354 so you can now add coercions to parameterized
355 types without having to explictly define them
356 - added tests for this
358 * Moose::Meta::Method::Accessor
359 - allow subclasses to decide whether we need
360 to copy the value into a new variable (sartak)
362 0.32 Tues. Dec. 4, 2007
363 * Moose::Util::TypeConstraints
364 - fixing how subtype aliases of unions work
365 they should inherit the parent's coercion
366 - added tests for this
367 - you can now define multiple coercions on
368 a single type at different times instead of
369 having to do it all in one place
370 - added tests for this
372 * Moose::Meta::TypeConstraint
373 - there is now a default constraint of sub { 1 }
374 instead of Moose::Util::TypeConstraints setting
377 * Moose::Meta::TypeCoercion
378 * Moose::Meta::TypeCoercion::Union
379 - added the &has_coercion_for_type and
380 &add_type_coercions methods to support the
381 new features above (although you cannot add
382 more type coercions for Union types)
384 0.31 Mon. Nov. 26, 2007
385 * Moose::Meta::Attribute
386 - made the +attr syntax handle extending types with
387 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
388 now works if the original foo is an ArrayRef.
389 - added tests for this.
390 - delegation now works even if the attribute does not
391 have a reader method using the get_read_method_ref
392 method from Class::MOP::Attribute.
393 - added tests for this
394 - added docs for this
396 * Moose::Util::TypeConstraints
397 - passing no "additional attribute info" to
398 &find_or_create_type_constraint will no longer
399 attempt to create an __ANON__ type for you,
400 instead it will just return undef.
401 - added docs for this
403 0.30 Fri. Nov. 23, 2007
404 * Moose::Meta::Method::Constructor
405 -builder related bug in inlined constructor. (groditi)
407 * Moose::Meta::Method::Accessor
408 - genereate unnecessary calls to predicates and refactor
409 code generation for runtime speed (groditi)
411 * Moose::Util::TypeConstraints
412 - fix ClassName constraint to introspect symbol table (mst)
413 - added more tests for this (mst)
414 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
416 - added tests for this
419 - adding the link to Recipie 11 (written by Sartak)
420 - adding test for SYNOPSIS code
423 - New tests for builder bug. Upon instantiation, if an
424 attribute had a builder, no value and was not lazy the
425 builder default was not getting run, oops. (groditi)
427 0.29 Tues. Nov. 13, 2007
428 * Moose::Meta::Attribute
429 - Fix error message on missing builder method (groditi)
431 * Moose::Meta::Method::Accessor
432 - Fix error message on missing builder method (groditi)
435 - Add test to check for the correct error message when
436 builder method is missing (groditi)
438 0.28 Tues. Nov. 13, 2007
439 - 0.27 packaged incorrectly (groditi)
441 0.27 Tues. Nov. 13, 2007
442 * Moose::Meta::Attribute
443 - Added support for the new builder option (groditi)
444 - Added support for lazy_build option (groditi)
445 - Changed slot initialization for predicate changes (groditi)
447 * Moose::Meta::Method::Accessor
448 - Added support for lazy_build option (groditi)
449 - Fix inline methods to work with corrected predicate
452 * Moose::Meta::Method::Constructor
453 - Added support for lazy_build option (groditi)
456 - tests for builder and lazy_build (groditi)
458 * fixing some misc. bits in the docs that
459 got mentioned on CPAN Forum & perlmonks
462 - fixed how required methods are handled
463 when they encounter overriden or modified
464 methods from a class (thanks to confound).
465 - added tests for this
467 * Moose::Util::TypeConstraint
468 - fixed the type notation parser so that
469 the | always creates a union and so is
470 no longer a valid type char (thanks to
471 konobi, mugwump and #moose for working
473 - added more tests for this
475 0.26 Thurs. Sept. 27, 2007
478 * Parameterized Types
479 We now support parameterized collection types, such as:
480 ArrayRef[Int] # array or integers
481 HashRef[Object] # a hash with object values
482 They can also be nested:
483 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
484 And work with the type unions as well:
485 ArrayRef[Int | Str] # array of integers of strings
487 * Better Framework Extendability
488 Moose.pm is now "extendable" such that it is now much
489 easier to extend the framework and add your own keywords
490 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
491 section of the Moose.pm docs.
494 In an effort to begin documenting some of the various
495 details of Moose as well as some common idioms, we have
496 created Moose::Cookbook::Snacks as a place to find
497 small (easily digestable) nuggets of Moose code.
500 ~ Several doc updates/cleanup thanks to castaway ~
502 - converted build system to use Module::Install instead of
503 Module::Build (thanks to jrockway)
506 - added all the meta classes to the immutable list and
507 set it to inline the accessors
508 - fix import to allow Sub::Exporter like { into => }
509 and { into_level => } (perigrin)
510 - exposed and documented init_meta() to allow better
511 embedding and extending of Moose (perigrin)
514 - complete re-organization of the test suite
515 - added some new tests as well
516 - finally re-enabled the Moose::POOP test since
517 the new version of DBM::Deep now works again
521 - fixed very odd and very nasty recursion bug with
523 - added tests for this (eilara)
525 * Moose::Meta::Attribute
526 Moose::Meta::Method::Constructor
527 Moose::Meta::Method::Accessor
528 - fixed issue with overload::Overloaded getting called
529 on non-blessed items. (RT #29269)
530 - added tests for this
532 * Moose::Meta::Method::Accessor
533 - fixed issue with generated accessor code making
534 assumptions about hash based classes (thanks to dexter)
536 * Moose::Coookbook::Snacks
537 - these are bits of documentation, not quite as big as
538 Recipes but which have no clear place in the module docs.
539 So they are Snacks! (horray for castaway++)
541 * Moose::Cookbook::Recipe4
542 - updated it to use the new ArrayRef[MyType] construct
543 - updated the accompanying test as well
545 +++ Major Refactor of the Type Constraint system +++
546 +++ with new features added as well +++
548 * Moose::Util::TypeConstraint
549 - no longer uses package variable to keep track of
550 the type constraints, now uses the an instance of
551 Moose::Meta::TypeConstraint::Registry to do it
552 - added more sophisticated type notation parsing
554 - added tests for this
556 * Moose::Meta::TypeConstraint
557 - some minor adjustments to make subclassing easier
558 - added the package_defined_in attribute so that we
559 can track where the type constraints are created
561 * Moose::Meta::TypeConstraint::Union
562 - this is now been refactored to be a subclass of
563 Moose::Meta::TypeConstraint
565 * Moose::Meta::TypeCoercion::Union
566 - this has been added to service the newly refactored
567 Moose::Meta::TypeConstraint::Union and is itself
568 a subclass of Moose::Meta::TypeCoercion
570 * Moose::Meta::TypeConstraint::Parameterized
571 - added this module (taken from MooseX::AttributeHelpers)
572 to help construct nested collection types
573 - added tests for this
575 * Moose::Meta::TypeConstraint::Registry
576 - added this class to keep track of type constraints
578 0.25 Mon. Aug. 13, 2007
580 - Documentation update to reference Moose::Util::TypeConstraints
581 under 'isa' in 'has' for how to define a new type
584 * Moose::Meta::Attribute
585 - required attributes now will no longer accept undef
586 from the constructor, even if there is a default and lazy
587 - added tests for this
588 - default subroutines must return a value which passes the
590 - added tests for this
592 * Moose::Meta::Attribute
593 * Moose::Meta::Method::Constructor
594 * Moose::Meta::Method::Accessor
595 - type-constraint tests now handle overloaded objects correctly
597 - added tests for this (thanks to EvanCarroll)
599 * Moose::Meta::TypeConstraint::Union
600 - added (has_)hand_optimized_constraint to this class so that
601 it behaves as the regular Moose::Meta::TypeConstraint does.
604 - large refactoring of this code
605 - added several more tests
606 - tests for subtle conflict resolition issues
607 added, but not currently running
610 * Moose::Cookbook::Recipe7
611 - added new recipe for augment/inner functionality
613 - added test for this
616 - a formal definition of roles (still in progress)
619 - utilities for easier working with Moose classes
620 - added tests for these
623 - This contains Moose specific test functions
624 - added tests for these
626 0.24 Tues. July 3, 2007
627 ~ Some doc updates/cleanup ~
629 * Moose::Meta::Attribute
630 - added support for roles to be given as parameters
631 to the 'handles' option.
632 - added tests and docs for this
633 - the has '+foo' attribute form now accepts changes to
634 the lazy option, and the addition of a handles option
635 (but not changing the handles option)
636 - added tests and docs for this
639 - required methods are now fetched using find_method_by_name
640 so that required methods can come from superclasses
641 - adjusted tests for this
643 0.23 Mon. June 18, 2007
644 * Moose::Meta::Method::Constructor
645 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
647 - Modify make_immutable to work with the new Class::MOP immutable
648 mechanism + POD + very basic test (groditi)
649 * Moose::Meta::Attribute
650 - Fix handles to use goto() so that caller() comes out properly on
651 the other side (perigrin)
653 0.22 Thurs. May 31, 2007
654 * Moose::Util::TypeConstraints
655 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
656 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
657 prototypes for functions
658 - added the ClassName type constraint, this checks for strings
659 which will respond true to ->isa(UNIVERSAL).
660 - added tests and docs for this
661 - subtyping just in name now works correctly by making the
662 default for where be { 1 }
663 - added test for this
665 * Moose::Meta::Method::Accessor
666 - coerce and lazy now work together correctly, thanks to
667 merlyn for finding this bug
668 - tests added for this
669 - fix reader presedence bug in Moose::Meta::Attribute + tests
672 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
673 a HASH-ref and missed. This produces better error messages then
674 having it die cause undef is not a HASH.
675 - added tests for this
677 0.21 Thursday, May 2nd, 2007
679 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
680 - modified unimport to remove super and inner along with the rest
681 - altered unimport tests to handle this
684 - altered super export to populate SUPER_SLOT
687 - altered augment and override modifier application to use *_SLOT
688 - modified tests for these to unimport one test class each to test
691 - fixed issue where custom attribute metaclasses
692 where not handled correctly in roles
693 - added tests for this
696 - fixed issue where extending metaclasses with
697 roles would blow up. Thanks to Aankhen`` for
698 finding this insidious error, and it's solution.
700 ~~ lots of spelling and grammer fixes in the docs,
701 many many thanks to rlb3 and Aankhen for these :)
703 0.20 Friday, April 6th, 2007
704 >> I messed up the SKIP logic in one test
705 so this release is just to fix that.
708 - 'has' now also accepts an ARRAY ref
709 to create multiple attrs (see docs)
710 (thanks to konobi for this)
711 - added tests and docs
713 0.19 Thurs. April 5th, 2007
714 ~~ More documentation updates ~~
716 * Moose::Util::TypeConstraints
717 - 'type' now supports messages as well
718 thanks to phaylon for finding this
719 - added tests for this
720 - added &list_all_type_constraints and
721 &list_all_builtin_type_constraints
722 functions to facilitate introspection.
724 * Moose::Meta::Attribute
725 - fixed regexp 'handles' declarations
726 to build the list of delegated methods
727 correctly (and not override important
728 things like &new) thanks to ashleyb
730 - added tests and docs for this
731 - added the 'documentation' attributes
732 so that you can actually document your
733 attributes and inspect them through the
735 - added tests and docs for this
738 - when loading custom attribute metaclasses
739 it will first look in for the class in the
740 Moose::Meta::Attribute::Custom::$name, and
741 then default to just loading $name.
742 - added tests and docs for this
744 * Moose::Meta::TypeConstraint
745 - type constraints now stringify to their names.
746 - added test for this
749 - added tests to assure we work with Module::Refresh
750 - added stricter test skip logic in the Moose POOP
751 test, ask Rob Kinyon why.
752 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
754 0.18 Sat. March 10, 2007
755 ~~ Many, many documentation updates ~~
758 - We now use Class::MOP::load_class to
760 - added tests to show types and subtypes
761 working with Declare::Constraints::Simple
762 and Test::Deep as constraint engines.
765 !! You must have Class::MOP 0.37_001 !!
766 !! for this developer release to work !!
768 This release was primarily adding the immutable
769 feature to Moose. An immutable class is one which
770 you promise not to alter. When you set the class
771 as immutable it will perform various bits of
772 memoization and inline certain part of the code
773 (constructors, destructors and accessors). This
774 minimizes (and in some cases totally eliminates)
775 one of Moose's biggest performance hits. This
776 feature is not on by default, and is 100% optional.
777 It has several configurable bits as well, so you
778 can pick and choose to your specific needs.
780 The changes involved in this were fairly wide and
781 highly specific, but 100% backwards compatible, so
782 I am not going to enumerate them here. If you are
783 truely interested in what was changed, please do
786 0.17 Tues. Nov. 14, 2006
787 * Moose::Meta::Method::Accessor
788 - bugfix for read-only accessors which
789 are have a type constraint and lazy.
790 Thanks to chansen for finding it.
792 0.16 Tues. Nov. 14, 2006
794 There are some speed improvements in this release,
795 but they are only the begining, so stay tuned.
798 - BUILDALL and DEMOLISHALL no longer get
799 called unless they actually need to be.
800 This gave us a signifigant speed boost
801 for the cases when there is no BUILD or
802 DEMOLISH method present.
804 * Moose::Util::TypeConstraints
805 * Moose::Meta::TypeConstraint
806 - added an 'optimize_as' option to the
807 type constraint, which allows for a
808 hand optimized version of the type
809 constraint to be used when possible.
810 - Any internally created type constraints
811 now provide an optimized version as well.
813 0.15 Sun. Nov. 5, 2006
815 This version of Moose *must* have Class::MOP 0.36 in order
816 to work correctly. A number of small internal tweaks have
817 been made in order to be compatible with that release.
819 * Moose::Util::TypeConstraints
820 - added &unimport so that you can clean out
821 your class namespace of these exported
825 - fixed minor issue which occasionally
826 comes up during global destruction
828 - moved Moose::Meta::Method::Overriden into
832 - moved Moose::Meta::Role::Method into
835 * Moose::Meta::Attribute
836 - changed how we do type checks so that
837 we reduce the overall cost, but still
840 - moved accessor generation methods to
841 Moose::Meta::Method::Accessor to
842 conform to the API changes from
845 * Moose::Meta::TypeConstraint
846 - changed how constraints are compiled
847 so that we do less recursion and more
848 iteration. This makes the type check
850 - moved Moose::Meta::TypeConstraint::Union
853 * Moose::Meta::Method::Accessor
854 - created this from methods formerly found in
855 Moose::Meta::Attribute
857 * Moose::Meta::Role::Method
858 - moved this from Moose::Meta::Role
860 * Moose::Meta::Method::Overriden
861 - moved this from Moose::Meta::Class
863 * Moose::Meta::TypeConstraint::Union
864 - moved this from Moose::Meta::TypeConstraint
866 0.14 Mon. Oct. 9, 2006
868 * Moose::Meta::Attribute
869 - fixed lazy attributes which were not getting
870 checked with the type constraint (thanks ashley)
871 - added tests for this
872 - removed the over-enthusiastic DWIMery of the
873 automatic ArrayRef and HashRef defaults, it
874 broke predicates in an ugly way.
875 - removed tests for this
877 0.13 Sat. Sept. 30, 2006
879 This version of Moose *must* have Class::MOP 0.35 in order
880 to work correctly. A number of small internal tweaks have
881 been made in order to be compatible with that release.
884 - Removed the use of UNIVERSAL::require to be a better
885 symbol table citizen and remove a dependency
886 (thanks Adam Kennedy)
888 **~~ removed experimental & undocumented feature ~~**
889 - commented out the 'method' and 'self' keywords, see the
890 comments for more info.
893 - added a FAQ and WTF files to document frequently
894 asked questions and common problems
896 * Moose::Util::TypeConstraints
897 - added GlobRef and FileHandle type constraint
898 - added tests for this
900 * Moose::Meta::Attribute
901 - if your attribute 'isa' ArrayRef of HashRef, and you have
902 not explicitly set a default, then make the default DWIM.
903 This will also work for subtypes of ArrayRef and HashRef
905 - you can now auto-deref subtypes of ArrayRef or HashRef too.
906 - new test added for this (thanks to ashley)
909 - added basic support for runtime role composition
910 but this is still *highly experimental*, so feedback
911 is much appreciated :)
912 - added tests for this
914 * Moose::Meta::TypeConstraint
915 - the type constraint now handles the coercion process
916 through delegation, this is to support the coercion
919 * Moose::Meta::TypeConstraint::Union
920 - it is now possible for coercions to be performed
922 - added tests for this (thanks to konobi)
924 * Moose::Meta::TypeCoercion
925 - properly capturing error when type constraint
929 - Scalar::Util 1.18 is bad on Win32, so temporarily
930 only require version 1.17 for Win32 and cygwin.
931 (thanks Adam Kennedy)
933 0.12 Sat. Sept. 1, 2006
935 - Recipe5 (subtypes & coercion) has been written
938 - fixed "bad meta" error message to be more descriptive
939 - fixed &unimport to not remove the &inner and &super
940 keywords because we need to localize them.
941 - fixed number of spelling/grammer issues, thanks Theory :)
943 **~~ experimental & undocumented feature ~~**
944 - added the method and self keywords, they are basically
945 just sugar, and they may not stay around.
948 - added &dump method to easily Data::Dumper
951 * Moose::Meta::TypeConstraint
952 - added the &is_a_type_of method to check both the current
953 and the subtype of a method (similar to &isa with classes)
956 - this is now a subclass of Class::MOP::Module, and no longer
957 creates the _role_meta ugliness of before.
958 - fixed tests to reflect this change
960 0.11 Wed. July 12, 2006
962 - added an &unimport method to remove all the keywords
963 that Moose will import, simply add 'no Moose' to the
964 bottom of your class file.
967 - fixed some test failures caused by a forgotten test
970 0.10 Thurs. July 6, 2006
972 - improved error message when loading modules so
973 it is less confusing when you load a role.
974 - added &calculate_all_roles method to
975 Moose::Meta::Class and Moose::Meta::Role
978 This module has been tested against Class::MOP 0.30
979 but it does not yet utilize the optimizations
980 it makes available. Stay tuned for that ;)
982 0.09_03 Fri. June 23, 2006
983 ++ DEVELOPER RELEASE ++
985 - 'use strict' and 'use warnings' are no longer
986 needed in Moose classes, Moose itself will
987 turn them on for you.
988 - added tests for this
989 - moved code from exported subs to private methods
990 in Moose::Meta::Class
993 - as with Moose, strict and warnings are
994 automatically turned on for you.
995 - added tests for this
998 - now handles an edge case for override errors
999 - added tests for this
1000 - added some more edge case tests
1002 0.09_02 Tues. May 16, 2006
1003 ++ DEVELOPER RELEASE ++
1005 - added prototypes to the exported subs
1009 - added prototypes to the exported subs
1012 * Moose::Util::TypeConstraints
1013 - cleaned up prototypes for the subs
1016 0.09_01 Fri. May 12, 2006
1017 ++ DEVELOPER RELEASE ++
1018 - This release works in combination with
1019 Class::MOP 0.29_01, it is a developer
1020 release because it uses the a new
1021 instance sub-protocol and a fairly
1022 complete Role implementation. It has
1023 not yet been optimized, so it slower
1024 the the previous CPAN version. This
1025 release also lacks good updated docs,
1026 the official release will have updated docs.
1029 - refactored the keyword exports
1030 - 'with' now checks Role validaity and
1031 accepts more than one Role at a time
1032 - 'extends' makes metaclass adjustments as
1033 needed to ensure metaclass compatability
1036 - refactored the keyword exports
1037 - 'with' now checks Role validaity and
1038 accepts more than one Role at a time
1040 * Moose::Util::TypeConstraints
1041 - added the 'enum' keyword for simple
1042 string enumerations which can be used as
1044 - see example of usage in t/202_example.t
1047 - more careful checking of params to new()
1050 - much work done on the role composition
1051 - many new tests for conflict detection
1052 and composition edge cases
1053 - not enough documentation, I suggest
1054 looking at the tests
1056 * Moose::Meta::Instance
1057 - added new Instance metaclass to support
1058 the new Class::MOP instance protocol
1060 * Moose::Meta::Class
1061 - some small changes to support the new
1063 - some small additions to support Roles
1065 * Moose::Meta::Attribute
1066 - some improvements to the accessor generation code
1068 - some small changes to support the new
1070 - (still somewhat) experimental delegation support
1071 with the 'handles' option
1072 - added several tests for this
1073 - no docs for this yet
1075 0.05 Thurs. April 27, 2006
1077 - keywords are now exported with Sub::Exporter
1078 thanks to chansen for this commit
1079 - has keyword now takes a 'metaclass' option
1080 to support custom attribute meta-classes
1081 on a per-attribute basis
1082 - added tests for this
1083 - the 'has' keyword not accepts inherited slot
1084 specifications (has '+foo'). This is still an
1085 experimental feature and probably not finished
1086 see t/038_attribute_inherited_slot_specs.t for
1087 more details, or ask about it on #moose
1088 - added tests for this
1091 - keywords are now exported with Sub::Exporter
1093 * Moose::Utils::TypeConstraints
1094 - reorganized the type constraint hierarchy, thanks
1095 to nothingmuch and chansen for his help and advice
1097 - added some tests for this
1098 - keywords are now exported with Sub::Exporter
1099 thanks to chansen for this commit
1101 * Moose::Meta::Class
1102 - due to changes in Class::MOP, we had to change
1103 construct_instance (for the better)
1105 * Moose::Meta::Attribute
1106 - due to changes in Class::MOP, we had to add the
1107 initialize_instance_slot method (it's a good thing)
1109 * Moose::Meta::TypeConstraint
1110 - added type constraint unions
1111 - added tests for this
1112 - added the is_subtype_of predicate method
1113 - added tests for this
1115 0.04 Sun. April 16th, 2006
1117 - Roles can now consume other roles
1118 - added tests for this
1119 - Roles can specify required methods now with
1120 the requires() keyword
1121 - added tests for this
1124 - ripped out much of it's guts ,.. much cleaner now
1125 - added required methods and correct handling of
1126 them in apply() for both classes and roles
1127 - added tests for this
1128 - no longer adds a does() method to consuming classes
1129 it relys on the one in Moose::Object
1130 - added roles attribute and some methods to support
1131 roles consuming roles
1133 * Moose::Meta::Attribute
1134 - added support for triggers on attributes
1135 - added tests for this
1136 - added support for does option on an attribute
1137 - added tests for this
1139 * Moose::Meta::Class
1140 - added support for attribute triggers in the
1142 - added tests for this
1145 - Moose no longer creates a subtype for your class
1146 if a subtype of the same name already exists, this
1147 should DWIM in 99.9999% of all cases
1149 * Moose::Util::TypeConstraints
1150 - fixed bug where incorrect subtype conflicts were
1152 - added test for this
1155 - this class can now be extended with 'use base' if
1156 you need it, it properly loads the metaclass class now
1157 - added test for this
1159 0.03_02 Wed. April 12, 2006
1161 - you must now explictly use Moose::Util::TypeConstraints
1162 it no longer gets exported for you automatically
1165 - new() now accepts hash-refs as well as key/value lists
1166 - added does() method to check for Roles
1167 - added tests for this
1169 * Moose::Meta::Class
1170 - added roles attribute along with the add_role() and
1172 - added tests for this
1175 - now adds a does() method to consuming classes
1176 which tests the class's hierarchy for roles
1177 - added tests for this
1179 0.03_01 Mon. April 10, 2006
1181 - added new Role recipe (no content yet, only code)
1184 - added 'with' keyword for Role support
1185 - added test and docs for this
1186 - fixed subtype quoting bug
1187 - added test for this
1191 - added test and docs
1193 * Moose::Util::TypeConstraints
1194 - added the message keyword to add custom
1195 error messages to type constraints
1198 - the meta role to support Moose::Role
1199 - added tests and docs
1201 * Moose::Meta::Class
1202 - moved a number of things from Moose.pm
1203 to here, they should have been here
1206 * Moose::Meta::Attribute
1207 - moved the attribute option macros here
1208 instead of putting them in Moose.pm
1210 * Moose::Meta::TypeConstraint
1211 - added the message attributes and the
1213 - added tests and docs for this
1215 0.03 Thurs. March 30, 2006
1217 - added the Moose::Cookbook with 5 recipes,
1218 describing all the stuff Moose can do.
1221 - fixed an issue with &extends super class loading
1222 it now captures errors and deals with inline
1223 packages correctly (bug found by mst, solution
1225 - added super/override & inner/augment features
1226 - added tests and docs for these
1229 - BUILDALL now takes a reference of the %params
1230 that are passed to &new, and passes that to
1233 * Moose::Util::TypeConstraints
1234 - Type constraints now survive runtime reloading
1235 - added test for this
1237 * Moose::Meta::Class
1238 - fixed the way attribute defaults are handled
1239 during instance construction (bug found by chansen)
1241 * Moose::Meta::Attribute
1242 - read-only attributes now actually enforce their
1243 read-only-ness (this corrected in Class::MOP as
1246 0.02 Tues. March 21, 2006
1248 - many more tests, fixing some bugs and
1250 - &extends now loads the base module with
1252 - added UNIVERSAL::require to the
1255 - each new Moose class will also create
1256 and register a subtype of Object which
1257 correspond to the new Moose class.
1258 - the 'isa' option in &has now only
1259 accepts strings, and will DWIM in
1262 * Moose::Util::TypeConstraints
1263 - added type coercion features
1264 - added tests for this
1265 - added support for this in attributes
1266 and instance construction
1268 - type construction no longer creates a
1269 function, it registers the type instead.
1270 - added several functions to get the
1274 - BUILDALL and DEMOLISHALL were broken
1275 because of a mis-named hash key, Whoops :)
1277 * Moose::Meta::Attribute
1278 - adding support for coercion in the
1279 autogenerated accessors
1281 * Moose::Meta::Class
1282 - adding support for coercion in the
1283 instance construction
1285 * Moose::Meta::TypeConstraint
1286 * Moose::Meta::TypeCoercion
1287 - type constraints and coercions are now
1288 full fledges meta-objects
1290 0.01 Wed. March 15, 2006
1291 - Moooooooooooooooooose!!!