1 Revision history for Perl extension Moose
5 - made make_immutable warning cluck to
6 show where the error is (thanks mst)
9 - BUILDALL and DEMOLISHALL now call
10 ->body when looping through the
11 methods, to avoid the overloaded
13 - fixed issue where DEMOLISHALL was
14 eating the $@ values, and so not
15 working correctly, it still kind of
16 eats them, but so does vanilla perl
17 - added tests for this
19 * Moose::Cookbook::Recipe7
20 - added new recipe for immutable
21 functionality (thanks Dave Rolsky)
23 * Moose::Cookbook::Recipe9
24 - added new recipe for builder and
25 lazy_build (thanks Dave Rolsky)
27 * Moose::Cookbook::Recipe1
28 - added new recipe for method aliasing
29 and exclusion with Roles (thanks Dave Rolsky)
32 - fixed Win32 test failure (thanks spicyjack)
34 0.43 Wed. April, 30, 2008
36 drink more coffee before
37 doing release engineering
39 - whoops, forgot to do the smolder tests,
40 and we broke some of the custom meta-attr
41 modules. This fixes that.
43 0.42 Mon. April 28, 2008
44 - some bad tests slipped by, nothing else
45 changed in this release (cpantesters++)
47 - upped the Class::MOP dependency to 0.55
48 since we have tests which need the C3
51 0.41 Mon. April 28, 2008
52 ~~ numerous documentation updates ~~
54 - Changed all usage of die to Carp::croak for better
55 error reporting (initial patch by Tod Hagan)
58 - the make_immutable keyword is now deprecated, don't
59 use it in any new code and please fix your old code
60 as well. There will be 2 releases, and then it will
66 - refactored the way inner and super work to avoid
67 any method/@ISA cache penalty (nothingmuch)
70 - fixing &new_object to make sure trigger gets the
71 coerced value (spotted by Charles Alderman on the
75 * Moose::Meta::Method::Constructor
76 - immutable classes which had non-lazy attributes were calling
77 the default generating sub twice in the constructor. (bug
78 found by Jesse Luehrs, fixed by Dave Rolsky)
79 - added tests for this (Dave Rolsky)
80 - fix typo in initialize_body method (nothingmuch)
82 * Moose::Meta::Method::Destructor
83 - fix typo in initialize_body method (nothingmuch)
85 * Moose::Meta::Method::Overriden
86 Moose::Meta::Method::Augmented
87 - moved the logic for these into their own
90 * Moose::Meta::Attribute
91 - inherited attributes may now be extended without
92 restriction on the type ('isa', 'does') (Sartak)
93 - added tests for this (Sartak)
94 - when an attribute property is malformed (such as lazy without
95 a default), give the name of the attribute in the error
97 - added the &applied_traits and &has_applied_traits methods
98 to allow introspection of traits
99 - added tests for this
100 - moved 'trait' and 'metaclass' argument handling to here from
102 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
103 '+foo' syntax) (nothingmuch)
104 - added tests for this (t0m)
107 - localize $@ inside DEMOLISHALL to avoid it
108 eating $@ (found by Ernesto)
109 - added test for this (thanks to Ernesto)
111 * Moose::Util::TypeConstraints
112 - &find_type_constraint now DWIMs when given an
113 type constraint object or name (nothingmuch)
114 - &find_or_create_type_constraint superseded with a number of more
116 - find_or_create_{isa,does}_type_constraint
117 - find_or_parse_type_constraint
119 * Moose::Meta::TypeConstraint
120 Moose::Meta::TypeConstraint::Class
121 Moose::Meta::TypeConstraint::Role
122 Moose::Meta::TypeConstraint::Enum
123 Moose::Meta::TypeConstraint::Union
124 Moose::Meta::TypeConstraint::Parameterized
125 - added the &equals method for comparing two type
126 constraints (nothingmuch)
127 - added tests for this (nothingmuch)
129 * Moose::Meta::TypeConstraint
130 - add the &parents method, which is just an alias to &parent.
131 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
133 * Moose::Meta::TypeConstraint::Class
134 - added the class attribute for introspection purposes
136 - added tests for this
138 * Moose::Meta::TypeConstraint::Enum
139 Moose::Meta::TypeConstraint::Role
140 - broke these out into their own classes (nothingmuch)
142 * Moose::Cookbook::Recipe*
143 - fixed references to test file locations in the POD
144 and updated up some text for new Moose features
148 - Added &resolve_metaclass_alias, a helper function for finding an actual
149 class for a short name (e.g. in the traits list)
151 0.40 Fri. March 14, 2008
152 - I hate Pod::Coverage
154 0.39 Fri. March 14, 2008
156 - documenting the use of '+name' with attributes
157 that come from recently composed roles. It makes
158 sense, people are using it, and so why not just
159 officially support it.
160 - fixing the 'extends' keyword so that it will not
161 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
164 - added the perl -Moose=+Class::Name feature to allow
165 monkeypatching of classes in one liners
168 - fixing the 'apply_all_roles' keyword so that it will not
169 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
172 - added ->create method which now supports roles (thanks to jrockway)
173 - added tests for this
174 - added ->create_anon_class which now supports roles and caching of
175 the results (thanks to jrockway)
176 - added tests for this
177 - made ->does_role a little more forgiving when it is
178 checking a Class::MOP era metaclasses.
180 * Moose::Meta::Role::Application::ToInstance
181 - it is now possible to pass extra params to be used when
182 a role is applied to an the instance (rebless_params)
183 - added tests for this
185 * Moose::Util::TypeConstraints
186 - class_type now accepts an optional second argument for a
187 custom message. POD anotated accordingly (groditi)
188 - added tests for this
189 - it is now possible to make anon-enums by passing 'enum' an
190 ARRAY ref instead of the $name => @values. Everything else
192 - added tests for this
195 - making test for using '+name' on attributes consumed
196 from a role, it works and makes sense too.
198 * Moose::Meta::Attribute
199 - fix handles so that it doesn't return nothing
200 when the method cannot be found, not sure why
201 it ever did this originally, this means we now
202 have slightly better support for AUTOLOADed
204 - added more delegation tests
205 - adding ->does method to this so as to better
206 support traits and their introspection.
207 - added tests for this
210 - localizing the Data::Dumper configurations so
211 that it does not pollute others (RT #33509)
212 - made ->does a little more forgiving when it is
213 passed Class::MOP era metaclasses.
215 0.38 Fri. Feb. 15, 2008
216 * Moose::Meta::Attribute
217 - fixed initializer to correctly do
218 type checking and coercion in the
220 - added tests for this
223 - fixed some finicky tests (thanks to konobi)
225 0.37 Thurs. Feb. 14, 2008
227 - fixed some details in Moose::init_meta
228 and its superclass handling (thanks thepler)
229 - added tests for this (thanks thepler)
230 - 'has' now dies if you don't pass in name
232 - added the 'make_immutable' keyword as a shortcut
236 Moose::Meta::Method::Constructor
237 Moose::Meta::Attribute
238 - making (init_arg => undef) work here too
239 (thanks to nothingmuch)
241 * Moose::Meta::Attribute
242 Moose::Meta::Method::Constructor
243 Moose::Meta::Method::Accessor
244 - make lazy attributes respect attr initializers (rjbs)
245 - added tests for this
247 * Moose::Util::TypeConstraints
248 Moose::Util::TypeConstraints::OptimizedConstraints
249 Moose::Meta::TypeConstraints
250 Moose::Meta::Attribute
251 Moose::Meta::Method::Constructor
252 Moose::Meta::Method::Accessor
253 - making type errors use the
254 assigned message (thanks to Sartak)
255 - added tests for this
257 * Moose::Meta::Method::Destructor
258 - making sure DESTROY gets inlined properly
259 with successive DEMOLISH calls (thanks to manito)
261 * Moose::Meta::Attribute
262 Moose::Meta::Method::Accessor
263 - fixed handling of undef with type constraints
265 - added tests for this
268 - added &get_all_init_args and &get_all_attribute_values
269 (thanks to Sartak and nothingmuch)
271 0.36 Sat. Jan. 26, 2008
273 Moose::Meta::Attribute
274 - role type tests now support when roles are
275 applied to non-Moose classes (found by ash)
276 - added tests for this (thanks to ash)
277 - couple extra tests to boost code coverage
279 * Moose::Meta::Method::Constructor
280 - improved fix for handling Class::MOP attributes
281 - added test for this
284 - handled the add_attribute($attribute_meta_object)
286 - added test for this
288 0.35 Tues. Jan. 22, 2008
289 * Moose::Meta::Method::Constructor
290 - fix to make sure even Class::MOP attributes
291 are handled correctly (Thanks to Dave Rolsky)
292 - added test for this (also Dave Rolsky)
295 - improved error message on _apply_all_roles,
296 you should now use Moose::Util::apply_all_roles
297 and you shouldnt have been using a _ prefixed
298 method in the first place ;)
300 0.34 Mon. Jan. 21, 2008
301 ~~~ more misc. doc. fixes ~~~
302 ~~ updated copyright dates ~~
304 Moose is now a postmodern object system :)
305 - (see the POD for details)
307 * <<Role System Refactoring>>
308 - this release contains a major reworking and
309 cleanup of the role system
310 - 100% backwards compat.
311 - Role application now restructured into seperate
312 classes based on type of applicants
313 - Role summation (combining of more than one role)
314 is much cleaner and anon-classes are no longer
316 - new Composite role metaclass
317 - runtime application of roles to instances
318 is now more efficient and re-uses generated
319 classes when applicable
321 * <<New Role composition features>>
322 - methods can now be excluded from a given role
324 - methods can now be aliased to another name (and
325 still retain the original as well)
327 * Moose::Util::TypeConstraints::OptimizedConstraints
328 - added this module (see above)
331 - fixed the &_process_attribute method to be called
332 by &add_attribute, so that the API is now correct
334 * Moose::Meta::Method::Accessor
335 - fixed bug when passing a list of values to
336 an accessor would get (incorrectly) ignored.
337 Thanks to Sartak for finding this ;)
338 - added tests for this (Sartak again)
340 * Moose::Meta::Method::Accessor
341 Moose::Meta::Method::Constructor
342 Moose::Meta::Attribute
343 Moose::Meta::TypeConstraint
344 Moose::Meta::TypeCoercion
345 - lots of cleanup of such things as:
347 - type constraint handling
348 - error handling/messages
349 (thanks to nothingmuch)
351 * Moose::Meta::TypeConstraint::Parameterizable
352 - added this module to support the refactor
353 in Moose::Meta::TypeConstraint::Parameterized
355 * Moose::Meta::TypeConstraint::Parameterized
356 - refactored how these types are handled so they
357 are more generic and not confined to ArrayRef
361 - shortened some file names for better VMS support (RT #32381)
363 0.33 Fri. Dec. 14, 2007
364 !! Moose now loads 2 x faster !!
365 !! with new Class::MOP 0.49 !!
367 ++ new oose.pm module to make command line
368 Moose-ness easier (see POD docs for more)
372 - several tweaks to take advantage of the
373 new method map caching in Class::MOP
375 * Moose::Meta::TypeConstraint::Parameterized
376 - allow subtypes of ArrayRef and HashRef to
377 be used as a container (sartak)
378 - added tests for this
379 - basic support for coercion to ArrayRef and
380 HashRef for containers (sartak)
381 - added tests for this
383 * Moose::Meta::TypeCoercion
384 - coercions will now create subtypes as needed
385 so you can now add coercions to parameterized
386 types without having to explictly define them
387 - added tests for this
389 * Moose::Meta::Method::Accessor
390 - allow subclasses to decide whether we need
391 to copy the value into a new variable (sartak)
393 0.32 Tues. Dec. 4, 2007
394 * Moose::Util::TypeConstraints
395 - fixing how subtype aliases of unions work
396 they should inherit the parent's coercion
397 - added tests for this
398 - you can now define multiple coercions on
399 a single type at different times instead of
400 having to do it all in one place
401 - added tests for this
403 * Moose::Meta::TypeConstraint
404 - there is now a default constraint of sub { 1 }
405 instead of Moose::Util::TypeConstraints setting
408 * Moose::Meta::TypeCoercion
409 * Moose::Meta::TypeCoercion::Union
410 - added the &has_coercion_for_type and
411 &add_type_coercions methods to support the
412 new features above (although you cannot add
413 more type coercions for Union types)
415 0.31 Mon. Nov. 26, 2007
416 * Moose::Meta::Attribute
417 - made the +attr syntax handle extending types with
418 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
419 now works if the original foo is an ArrayRef.
420 - added tests for this.
421 - delegation now works even if the attribute does not
422 have a reader method using the get_read_method_ref
423 method from Class::MOP::Attribute.
424 - added tests for this
425 - added docs for this
427 * Moose::Util::TypeConstraints
428 - passing no "additional attribute info" to
429 &find_or_create_type_constraint will no longer
430 attempt to create an __ANON__ type for you,
431 instead it will just return undef.
432 - added docs for this
434 0.30 Fri. Nov. 23, 2007
435 * Moose::Meta::Method::Constructor
436 -builder related bug in inlined constructor. (groditi)
438 * Moose::Meta::Method::Accessor
439 - genereate unnecessary calls to predicates and refactor
440 code generation for runtime speed (groditi)
442 * Moose::Util::TypeConstraints
443 - fix ClassName constraint to introspect symbol table (mst)
444 - added more tests for this (mst)
445 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
447 - added tests for this
450 - adding the link to Recipie 11 (written by Sartak)
451 - adding test for SYNOPSIS code
454 - New tests for builder bug. Upon instantiation, if an
455 attribute had a builder, no value and was not lazy the
456 builder default was not getting run, oops. (groditi)
458 0.29 Tues. Nov. 13, 2007
459 * Moose::Meta::Attribute
460 - Fix error message on missing builder method (groditi)
462 * Moose::Meta::Method::Accessor
463 - Fix error message on missing builder method (groditi)
466 - Add test to check for the correct error message when
467 builder method is missing (groditi)
469 0.28 Tues. Nov. 13, 2007
470 - 0.27 packaged incorrectly (groditi)
472 0.27 Tues. Nov. 13, 2007
473 * Moose::Meta::Attribute
474 - Added support for the new builder option (groditi)
475 - Added support for lazy_build option (groditi)
476 - Changed slot initialization for predicate changes (groditi)
478 * Moose::Meta::Method::Accessor
479 - Added support for lazy_build option (groditi)
480 - Fix inline methods to work with corrected predicate
483 * Moose::Meta::Method::Constructor
484 - Added support for lazy_build option (groditi)
487 - tests for builder and lazy_build (groditi)
489 * fixing some misc. bits in the docs that
490 got mentioned on CPAN Forum & perlmonks
493 - fixed how required methods are handled
494 when they encounter overriden or modified
495 methods from a class (thanks to confound).
496 - added tests for this
498 * Moose::Util::TypeConstraint
499 - fixed the type notation parser so that
500 the | always creates a union and so is
501 no longer a valid type char (thanks to
502 konobi, mugwump and #moose for working
504 - added more tests for this
506 0.26 Thurs. Sept. 27, 2007
509 * Parameterized Types
510 We now support parameterized collection types, such as:
511 ArrayRef[Int] # array or integers
512 HashRef[Object] # a hash with object values
513 They can also be nested:
514 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
515 And work with the type unions as well:
516 ArrayRef[Int | Str] # array of integers of strings
518 * Better Framework Extendability
519 Moose.pm is now "extendable" such that it is now much
520 easier to extend the framework and add your own keywords
521 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
522 section of the Moose.pm docs.
525 In an effort to begin documenting some of the various
526 details of Moose as well as some common idioms, we have
527 created Moose::Cookbook::Snacks as a place to find
528 small (easily digestable) nuggets of Moose code.
531 ~ Several doc updates/cleanup thanks to castaway ~
533 - converted build system to use Module::Install instead of
534 Module::Build (thanks to jrockway)
537 - added all the meta classes to the immutable list and
538 set it to inline the accessors
539 - fix import to allow Sub::Exporter like { into => }
540 and { into_level => } (perigrin)
541 - exposed and documented init_meta() to allow better
542 embedding and extending of Moose (perigrin)
545 - complete re-organization of the test suite
546 - added some new tests as well
547 - finally re-enabled the Moose::POOP test since
548 the new version of DBM::Deep now works again
552 - fixed very odd and very nasty recursion bug with
554 - added tests for this (eilara)
556 * Moose::Meta::Attribute
557 Moose::Meta::Method::Constructor
558 Moose::Meta::Method::Accessor
559 - fixed issue with overload::Overloaded getting called
560 on non-blessed items. (RT #29269)
561 - added tests for this
563 * Moose::Meta::Method::Accessor
564 - fixed issue with generated accessor code making
565 assumptions about hash based classes (thanks to dexter)
567 * Moose::Coookbook::Snacks
568 - these are bits of documentation, not quite as big as
569 Recipes but which have no clear place in the module docs.
570 So they are Snacks! (horray for castaway++)
572 * Moose::Cookbook::Recipe4
573 - updated it to use the new ArrayRef[MyType] construct
574 - updated the accompanying test as well
576 +++ Major Refactor of the Type Constraint system +++
577 +++ with new features added as well +++
579 * Moose::Util::TypeConstraint
580 - no longer uses package variable to keep track of
581 the type constraints, now uses the an instance of
582 Moose::Meta::TypeConstraint::Registry to do it
583 - added more sophisticated type notation parsing
585 - added tests for this
587 * Moose::Meta::TypeConstraint
588 - some minor adjustments to make subclassing easier
589 - added the package_defined_in attribute so that we
590 can track where the type constraints are created
592 * Moose::Meta::TypeConstraint::Union
593 - this is now been refactored to be a subclass of
594 Moose::Meta::TypeConstraint
596 * Moose::Meta::TypeCoercion::Union
597 - this has been added to service the newly refactored
598 Moose::Meta::TypeConstraint::Union and is itself
599 a subclass of Moose::Meta::TypeCoercion
601 * Moose::Meta::TypeConstraint::Parameterized
602 - added this module (taken from MooseX::AttributeHelpers)
603 to help construct nested collection types
604 - added tests for this
606 * Moose::Meta::TypeConstraint::Registry
607 - added this class to keep track of type constraints
609 0.25 Mon. Aug. 13, 2007
611 - Documentation update to reference Moose::Util::TypeConstraints
612 under 'isa' in 'has' for how to define a new type
615 * Moose::Meta::Attribute
616 - required attributes now will no longer accept undef
617 from the constructor, even if there is a default and lazy
618 - added tests for this
619 - default subroutines must return a value which passes the
621 - added tests for this
623 * Moose::Meta::Attribute
624 * Moose::Meta::Method::Constructor
625 * Moose::Meta::Method::Accessor
626 - type-constraint tests now handle overloaded objects correctly
628 - added tests for this (thanks to EvanCarroll)
630 * Moose::Meta::TypeConstraint::Union
631 - added (has_)hand_optimized_constraint to this class so that
632 it behaves as the regular Moose::Meta::TypeConstraint does.
635 - large refactoring of this code
636 - added several more tests
637 - tests for subtle conflict resolition issues
638 added, but not currently running
641 * Moose::Cookbook::Recipe7
642 - added new recipe for augment/inner functionality
644 - added test for this
647 - a formal definition of roles (still in progress)
650 - utilities for easier working with Moose classes
651 - added tests for these
654 - This contains Moose specific test functions
655 - added tests for these
657 0.24 Tues. July 3, 2007
658 ~ Some doc updates/cleanup ~
660 * Moose::Meta::Attribute
661 - added support for roles to be given as parameters
662 to the 'handles' option.
663 - added tests and docs for this
664 - the has '+foo' attribute form now accepts changes to
665 the lazy option, and the addition of a handles option
666 (but not changing the handles option)
667 - added tests and docs for this
670 - required methods are now fetched using find_method_by_name
671 so that required methods can come from superclasses
672 - adjusted tests for this
674 0.23 Mon. June 18, 2007
675 * Moose::Meta::Method::Constructor
676 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
678 - Modify make_immutable to work with the new Class::MOP immutable
679 mechanism + POD + very basic test (groditi)
680 * Moose::Meta::Attribute
681 - Fix handles to use goto() so that caller() comes out properly on
682 the other side (perigrin)
684 0.22 Thurs. May 31, 2007
685 * Moose::Util::TypeConstraints
686 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
687 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
688 prototypes for functions
689 - added the ClassName type constraint, this checks for strings
690 which will respond true to ->isa(UNIVERSAL).
691 - added tests and docs for this
692 - subtyping just in name now works correctly by making the
693 default for where be { 1 }
694 - added test for this
696 * Moose::Meta::Method::Accessor
697 - coerce and lazy now work together correctly, thanks to
698 merlyn for finding this bug
699 - tests added for this
700 - fix reader presedence bug in Moose::Meta::Attribute + tests
703 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
704 a HASH-ref and missed. This produces better error messages then
705 having it die cause undef is not a HASH.
706 - added tests for this
708 0.21 Thursday, May 2nd, 2007
710 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
711 - modified unimport to remove super and inner along with the rest
712 - altered unimport tests to handle this
715 - altered super export to populate SUPER_SLOT
718 - altered augment and override modifier application to use *_SLOT
719 - modified tests for these to unimport one test class each to test
722 - fixed issue where custom attribute metaclasses
723 where not handled correctly in roles
724 - added tests for this
727 - fixed issue where extending metaclasses with
728 roles would blow up. Thanks to Aankhen`` for
729 finding this insidious error, and it's solution.
731 ~~ lots of spelling and grammer fixes in the docs,
732 many many thanks to rlb3 and Aankhen for these :)
734 0.20 Friday, April 6th, 2007
735 >> I messed up the SKIP logic in one test
736 so this release is just to fix that.
739 - 'has' now also accepts an ARRAY ref
740 to create multiple attrs (see docs)
741 (thanks to konobi for this)
742 - added tests and docs
744 0.19 Thurs. April 5th, 2007
745 ~~ More documentation updates ~~
747 * Moose::Util::TypeConstraints
748 - 'type' now supports messages as well
749 thanks to phaylon for finding this
750 - added tests for this
751 - added &list_all_type_constraints and
752 &list_all_builtin_type_constraints
753 functions to facilitate introspection.
755 * Moose::Meta::Attribute
756 - fixed regexp 'handles' declarations
757 to build the list of delegated methods
758 correctly (and not override important
759 things like &new) thanks to ashleyb
761 - added tests and docs for this
762 - added the 'documentation' attributes
763 so that you can actually document your
764 attributes and inspect them through the
766 - added tests and docs for this
769 - when loading custom attribute metaclasses
770 it will first look in for the class in the
771 Moose::Meta::Attribute::Custom::$name, and
772 then default to just loading $name.
773 - added tests and docs for this
775 * Moose::Meta::TypeConstraint
776 - type constraints now stringify to their names.
777 - added test for this
780 - added tests to assure we work with Module::Refresh
781 - added stricter test skip logic in the Moose POOP
782 test, ask Rob Kinyon why.
783 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
785 0.18 Sat. March 10, 2007
786 ~~ Many, many documentation updates ~~
789 - We now use Class::MOP::load_class to
791 - added tests to show types and subtypes
792 working with Declare::Constraints::Simple
793 and Test::Deep as constraint engines.
796 !! You must have Class::MOP 0.37_001 !!
797 !! for this developer release to work !!
799 This release was primarily adding the immutable
800 feature to Moose. An immutable class is one which
801 you promise not to alter. When you set the class
802 as immutable it will perform various bits of
803 memoization and inline certain part of the code
804 (constructors, destructors and accessors). This
805 minimizes (and in some cases totally eliminates)
806 one of Moose's biggest performance hits. This
807 feature is not on by default, and is 100% optional.
808 It has several configurable bits as well, so you
809 can pick and choose to your specific needs.
811 The changes involved in this were fairly wide and
812 highly specific, but 100% backwards compatible, so
813 I am not going to enumerate them here. If you are
814 truely interested in what was changed, please do
817 0.17 Tues. Nov. 14, 2006
818 * Moose::Meta::Method::Accessor
819 - bugfix for read-only accessors which
820 are have a type constraint and lazy.
821 Thanks to chansen for finding it.
823 0.16 Tues. Nov. 14, 2006
825 There are some speed improvements in this release,
826 but they are only the begining, so stay tuned.
829 - BUILDALL and DEMOLISHALL no longer get
830 called unless they actually need to be.
831 This gave us a signifigant speed boost
832 for the cases when there is no BUILD or
833 DEMOLISH method present.
835 * Moose::Util::TypeConstraints
836 * Moose::Meta::TypeConstraint
837 - added an 'optimize_as' option to the
838 type constraint, which allows for a
839 hand optimized version of the type
840 constraint to be used when possible.
841 - Any internally created type constraints
842 now provide an optimized version as well.
844 0.15 Sun. Nov. 5, 2006
846 This version of Moose *must* have Class::MOP 0.36 in order
847 to work correctly. A number of small internal tweaks have
848 been made in order to be compatible with that release.
850 * Moose::Util::TypeConstraints
851 - added &unimport so that you can clean out
852 your class namespace of these exported
856 - fixed minor issue which occasionally
857 comes up during global destruction
859 - moved Moose::Meta::Method::Overriden into
863 - moved Moose::Meta::Role::Method into
866 * Moose::Meta::Attribute
867 - changed how we do type checks so that
868 we reduce the overall cost, but still
871 - moved accessor generation methods to
872 Moose::Meta::Method::Accessor to
873 conform to the API changes from
876 * Moose::Meta::TypeConstraint
877 - changed how constraints are compiled
878 so that we do less recursion and more
879 iteration. This makes the type check
881 - moved Moose::Meta::TypeConstraint::Union
884 * Moose::Meta::Method::Accessor
885 - created this from methods formerly found in
886 Moose::Meta::Attribute
888 * Moose::Meta::Role::Method
889 - moved this from Moose::Meta::Role
891 * Moose::Meta::Method::Overriden
892 - moved this from Moose::Meta::Class
894 * Moose::Meta::TypeConstraint::Union
895 - moved this from Moose::Meta::TypeConstraint
897 0.14 Mon. Oct. 9, 2006
899 * Moose::Meta::Attribute
900 - fixed lazy attributes which were not getting
901 checked with the type constraint (thanks ashley)
902 - added tests for this
903 - removed the over-enthusiastic DWIMery of the
904 automatic ArrayRef and HashRef defaults, it
905 broke predicates in an ugly way.
906 - removed tests for this
908 0.13 Sat. Sept. 30, 2006
910 This version of Moose *must* have Class::MOP 0.35 in order
911 to work correctly. A number of small internal tweaks have
912 been made in order to be compatible with that release.
915 - Removed the use of UNIVERSAL::require to be a better
916 symbol table citizen and remove a dependency
917 (thanks Adam Kennedy)
919 **~~ removed experimental & undocumented feature ~~**
920 - commented out the 'method' and 'self' keywords, see the
921 comments for more info.
924 - added a FAQ and WTF files to document frequently
925 asked questions and common problems
927 * Moose::Util::TypeConstraints
928 - added GlobRef and FileHandle type constraint
929 - added tests for this
931 * Moose::Meta::Attribute
932 - if your attribute 'isa' ArrayRef of HashRef, and you have
933 not explicitly set a default, then make the default DWIM.
934 This will also work for subtypes of ArrayRef and HashRef
936 - you can now auto-deref subtypes of ArrayRef or HashRef too.
937 - new test added for this (thanks to ashley)
940 - added basic support for runtime role composition
941 but this is still *highly experimental*, so feedback
942 is much appreciated :)
943 - added tests for this
945 * Moose::Meta::TypeConstraint
946 - the type constraint now handles the coercion process
947 through delegation, this is to support the coercion
950 * Moose::Meta::TypeConstraint::Union
951 - it is now possible for coercions to be performed
953 - added tests for this (thanks to konobi)
955 * Moose::Meta::TypeCoercion
956 - properly capturing error when type constraint
960 - Scalar::Util 1.18 is bad on Win32, so temporarily
961 only require version 1.17 for Win32 and cygwin.
962 (thanks Adam Kennedy)
964 0.12 Sat. Sept. 1, 2006
966 - Recipe5 (subtypes & coercion) has been written
969 - fixed "bad meta" error message to be more descriptive
970 - fixed &unimport to not remove the &inner and &super
971 keywords because we need to localize them.
972 - fixed number of spelling/grammer issues, thanks Theory :)
974 **~~ experimental & undocumented feature ~~**
975 - added the method and self keywords, they are basically
976 just sugar, and they may not stay around.
979 - added &dump method to easily Data::Dumper
982 * Moose::Meta::TypeConstraint
983 - added the &is_a_type_of method to check both the current
984 and the subtype of a method (similar to &isa with classes)
987 - this is now a subclass of Class::MOP::Module, and no longer
988 creates the _role_meta ugliness of before.
989 - fixed tests to reflect this change
991 0.11 Wed. July 12, 2006
993 - added an &unimport method to remove all the keywords
994 that Moose will import, simply add 'no Moose' to the
995 bottom of your class file.
998 - fixed some test failures caused by a forgotten test
1001 0.10 Thurs. July 6, 2006
1003 - improved error message when loading modules so
1004 it is less confusing when you load a role.
1005 - added &calculate_all_roles method to
1006 Moose::Meta::Class and Moose::Meta::Role
1009 This module has been tested against Class::MOP 0.30
1010 but it does not yet utilize the optimizations
1011 it makes available. Stay tuned for that ;)
1013 0.09_03 Fri. June 23, 2006
1014 ++ DEVELOPER RELEASE ++
1016 - 'use strict' and 'use warnings' are no longer
1017 needed in Moose classes, Moose itself will
1018 turn them on for you.
1019 - added tests for this
1020 - moved code from exported subs to private methods
1021 in Moose::Meta::Class
1024 - as with Moose, strict and warnings are
1025 automatically turned on for you.
1026 - added tests for this
1029 - now handles an edge case for override errors
1030 - added tests for this
1031 - added some more edge case tests
1033 0.09_02 Tues. May 16, 2006
1034 ++ DEVELOPER RELEASE ++
1036 - added prototypes to the exported subs
1040 - added prototypes to the exported subs
1043 * Moose::Util::TypeConstraints
1044 - cleaned up prototypes for the subs
1047 0.09_01 Fri. May 12, 2006
1048 ++ DEVELOPER RELEASE ++
1049 - This release works in combination with
1050 Class::MOP 0.29_01, it is a developer
1051 release because it uses the a new
1052 instance sub-protocol and a fairly
1053 complete Role implementation. It has
1054 not yet been optimized, so it slower
1055 the the previous CPAN version. This
1056 release also lacks good updated docs,
1057 the official release will have updated docs.
1060 - refactored the keyword exports
1061 - 'with' now checks Role validaity and
1062 accepts more than one Role at a time
1063 - 'extends' makes metaclass adjustments as
1064 needed to ensure metaclass compatability
1067 - refactored the keyword exports
1068 - 'with' now checks Role validaity and
1069 accepts more than one Role at a time
1071 * Moose::Util::TypeConstraints
1072 - added the 'enum' keyword for simple
1073 string enumerations which can be used as
1075 - see example of usage in t/202_example.t
1078 - more careful checking of params to new()
1081 - much work done on the role composition
1082 - many new tests for conflict detection
1083 and composition edge cases
1084 - not enough documentation, I suggest
1085 looking at the tests
1087 * Moose::Meta::Instance
1088 - added new Instance metaclass to support
1089 the new Class::MOP instance protocol
1091 * Moose::Meta::Class
1092 - some small changes to support the new
1094 - some small additions to support Roles
1096 * Moose::Meta::Attribute
1097 - some improvements to the accessor generation code
1099 - some small changes to support the new
1101 - (still somewhat) experimental delegation support
1102 with the 'handles' option
1103 - added several tests for this
1104 - no docs for this yet
1106 0.05 Thurs. April 27, 2006
1108 - keywords are now exported with Sub::Exporter
1109 thanks to chansen for this commit
1110 - has keyword now takes a 'metaclass' option
1111 to support custom attribute meta-classes
1112 on a per-attribute basis
1113 - added tests for this
1114 - the 'has' keyword not accepts inherited slot
1115 specifications (has '+foo'). This is still an
1116 experimental feature and probably not finished
1117 see t/038_attribute_inherited_slot_specs.t for
1118 more details, or ask about it on #moose
1119 - added tests for this
1122 - keywords are now exported with Sub::Exporter
1124 * Moose::Utils::TypeConstraints
1125 - reorganized the type constraint hierarchy, thanks
1126 to nothingmuch and chansen for his help and advice
1128 - added some tests for this
1129 - keywords are now exported with Sub::Exporter
1130 thanks to chansen for this commit
1132 * Moose::Meta::Class
1133 - due to changes in Class::MOP, we had to change
1134 construct_instance (for the better)
1136 * Moose::Meta::Attribute
1137 - due to changes in Class::MOP, we had to add the
1138 initialize_instance_slot method (it's a good thing)
1140 * Moose::Meta::TypeConstraint
1141 - added type constraint unions
1142 - added tests for this
1143 - added the is_subtype_of predicate method
1144 - added tests for this
1146 0.04 Sun. April 16th, 2006
1148 - Roles can now consume other roles
1149 - added tests for this
1150 - Roles can specify required methods now with
1151 the requires() keyword
1152 - added tests for this
1155 - ripped out much of it's guts ,.. much cleaner now
1156 - added required methods and correct handling of
1157 them in apply() for both classes and roles
1158 - added tests for this
1159 - no longer adds a does() method to consuming classes
1160 it relys on the one in Moose::Object
1161 - added roles attribute and some methods to support
1162 roles consuming roles
1164 * Moose::Meta::Attribute
1165 - added support for triggers on attributes
1166 - added tests for this
1167 - added support for does option on an attribute
1168 - added tests for this
1170 * Moose::Meta::Class
1171 - added support for attribute triggers in the
1173 - added tests for this
1176 - Moose no longer creates a subtype for your class
1177 if a subtype of the same name already exists, this
1178 should DWIM in 99.9999% of all cases
1180 * Moose::Util::TypeConstraints
1181 - fixed bug where incorrect subtype conflicts were
1183 - added test for this
1186 - this class can now be extended with 'use base' if
1187 you need it, it properly loads the metaclass class now
1188 - added test for this
1190 0.03_02 Wed. April 12, 2006
1192 - you must now explictly use Moose::Util::TypeConstraints
1193 it no longer gets exported for you automatically
1196 - new() now accepts hash-refs as well as key/value lists
1197 - added does() method to check for Roles
1198 - added tests for this
1200 * Moose::Meta::Class
1201 - added roles attribute along with the add_role() and
1203 - added tests for this
1206 - now adds a does() method to consuming classes
1207 which tests the class's hierarchy for roles
1208 - added tests for this
1210 0.03_01 Mon. April 10, 2006
1212 - added new Role recipe (no content yet, only code)
1215 - added 'with' keyword for Role support
1216 - added test and docs for this
1217 - fixed subtype quoting bug
1218 - added test for this
1222 - added test and docs
1224 * Moose::Util::TypeConstraints
1225 - added the message keyword to add custom
1226 error messages to type constraints
1229 - the meta role to support Moose::Role
1230 - added tests and docs
1232 * Moose::Meta::Class
1233 - moved a number of things from Moose.pm
1234 to here, they should have been here
1237 * Moose::Meta::Attribute
1238 - moved the attribute option macros here
1239 instead of putting them in Moose.pm
1241 * Moose::Meta::TypeConstraint
1242 - added the message attributes and the
1244 - added tests and docs for this
1246 0.03 Thurs. March 30, 2006
1248 - added the Moose::Cookbook with 5 recipes,
1249 describing all the stuff Moose can do.
1252 - fixed an issue with &extends super class loading
1253 it now captures errors and deals with inline
1254 packages correctly (bug found by mst, solution
1256 - added super/override & inner/augment features
1257 - added tests and docs for these
1260 - BUILDALL now takes a reference of the %params
1261 that are passed to &new, and passes that to
1264 * Moose::Util::TypeConstraints
1265 - Type constraints now survive runtime reloading
1266 - added test for this
1268 * Moose::Meta::Class
1269 - fixed the way attribute defaults are handled
1270 during instance construction (bug found by chansen)
1272 * Moose::Meta::Attribute
1273 - read-only attributes now actually enforce their
1274 read-only-ness (this corrected in Class::MOP as
1277 0.02 Tues. March 21, 2006
1279 - many more tests, fixing some bugs and
1281 - &extends now loads the base module with
1283 - added UNIVERSAL::require to the
1286 - each new Moose class will also create
1287 and register a subtype of Object which
1288 correspond to the new Moose class.
1289 - the 'isa' option in &has now only
1290 accepts strings, and will DWIM in
1293 * Moose::Util::TypeConstraints
1294 - added type coercion features
1295 - added tests for this
1296 - added support for this in attributes
1297 and instance construction
1299 - type construction no longer creates a
1300 function, it registers the type instead.
1301 - added several functions to get the
1305 - BUILDALL and DEMOLISHALL were broken
1306 because of a mis-named hash key, Whoops :)
1308 * Moose::Meta::Attribute
1309 - adding support for coercion in the
1310 autogenerated accessors
1312 * Moose::Meta::Class
1313 - adding support for coercion in the
1314 instance construction
1316 * Moose::Meta::TypeConstraint
1317 * Moose::Meta::TypeCoercion
1318 - type constraints and coercions are now
1319 full fledges meta-objects
1321 0.01 Wed. March 15, 2006
1322 - Moooooooooooooooooose!!!