1 Revision history for Perl extension Moose
3 0.48 Thurs. May 29, 2008
4 (early morning release engineering)--
6 - fixing the version in Moose::Meta::Method::Destructor
7 which was causing the indexer to choke
9 0.47 Thurs. May 29, 2008
10 (late night release engineering)--
12 - fixing the version is META.yml, no functional
13 changes in this release
15 0.46 Wed. May 28, 2008
16 !! This version now approx. 20-25% !!
17 !! faster with new Class::MOP 0.57 !!
20 - some optimizations of the &initialize method
21 since it is called so often by &meta
25 - now use the get_all_package_symbols from the
26 updated Class::MOP, test suite is now 10 seconds
29 * Moose::Meta::Method::Destructor
30 - is_needed can now also be called as a class
31 method for immutablization to check if the
32 destructor object even needs to be created
35 * Moose::Meta::Method::Destructor
36 Moose::Meta::Method::Constructor
37 - added more descriptive error message to help
38 keep people from wasting time tracking an error
39 that is easily fixed by upgrading.
41 0.45 Saturday, May 24, 2008
43 - Because of work in Class::MOP 0.56, all
44 XS based functionality is now optional
45 and a Pure Perl version is supplied
46 - the CLASS_MOP_NO_XS environment variable
47 can now be used to force non-XS versions
49 - several of the packages have been tweaked
50 to take care of this, mostly we added
51 support for the package_name and name
52 variables in all the Method metaclasses
53 - before/around/after method modifiers now
54 support regexp matching of names
55 (thanks to Takatoshi Kitano)
56 - tests added for this
57 - NOTE: this only works for classes, it
58 is currently not supported in roles,
59 but, ... patches welcome
60 - All usage of Carp::confess have been replaced
61 by Carp::croak in the "keyword" functions since
62 the stack trace is usually not helpful
65 - All usage of Carp::confess have been replaced
66 by Carp::croak in the "keyword" functions since
67 the stack trace is usually not helpful
68 - The 'has' keyword for roles now accepts the
69 same array ref form that Moose.pm does
70 (has [qw/foo bar/] => (is => 'rw', ...))
73 * Moose::Meta::Attribute
74 - trigger on a ro-attribute is no longer an
75 error, as it's useful to trigger off of the
79 - added same 'add_package_symbol' fix as in
83 - does_role now handles non-Moose classes
85 - added tests for this
86 - added the 'add_method_modifier' function
87 (thanks to Takatoshi Kitano)
89 * Moose::Util::TypeConstraints
90 - subtypes of parameterizable types now are
91 themselves parameterizable types
93 * Moose::Meta::Method::Constructor
94 - fixed bug where trigger was not being
95 called by the inlined immutable
97 - added test for this (thanks to Caelum)
99 * Moose::Meta::Role::Application::ToInstance
100 - now uses the metaclass of the instance
101 (if possible) to create the anon-class
102 (thanks Jonathan Rockway)
104 * Moose::Cookbook::Recipe22
105 - added the meta-attribute trait recipe
109 - fixed hash-ordering test bug that was
110 causing occasional cpantester failures
111 - renamed the t/000_recipe/*.t tests to be
112 more descriptive (thanks to Sartak)
114 0.44 Sat. May 10, 2008
116 - made make_immutable warning cluck to
117 show where the error is (thanks mst)
120 - BUILDALL and DEMOLISHALL now call
121 ->body when looping through the
122 methods, to avoid the overloaded
124 - fixed issue where DEMOLISHALL was
125 eating the $@ values, and so not
126 working correctly, it still kind of
127 eats them, but so does vanilla perl
128 - added tests for this
130 * Moose::Cookbook::Recipe7
131 - added new recipe for immutable
132 functionality (thanks Dave Rolsky)
134 * Moose::Cookbook::Recipe9
135 - added new recipe for builder and
136 lazy_build (thanks Dave Rolsky)
138 * Moose::Cookbook::Recipe11
139 - added new recipe for method aliasing
140 and exclusion with Roles (thanks Dave Rolsky)
143 - fixed Win32 test failure (thanks spicyjack)
145 ~ removed Build.PL and Module::Build compat
146 since Module::Install has done that.
148 0.43 Wed. April, 30, 2008
150 drink more coffee before
151 doing release engineering
153 - whoops, forgot to do the smolder tests,
154 and we broke some of the custom meta-attr
155 modules. This fixes that.
157 0.42 Mon. April 28, 2008
158 - some bad tests slipped by, nothing else
159 changed in this release (cpantesters++)
161 - upped the Class::MOP dependency to 0.55
162 since we have tests which need the C3
165 0.41 Mon. April 28, 2008
166 ~~ numerous documentation updates ~~
168 - Changed all usage of die to Carp::croak for better
169 error reporting (initial patch by Tod Hagan)
172 - the make_immutable keyword is now deprecated, don't
173 use it in any new code and please fix your old code
174 as well. There will be 2 releases, and then it will
180 - refactored the way inner and super work to avoid
181 any method/@ISA cache penalty (nothingmuch)
184 - fixing &new_object to make sure trigger gets the
185 coerced value (spotted by Charles Alderman on the
187 - added test for this
189 * Moose::Meta::Method::Constructor
190 - immutable classes which had non-lazy attributes were calling
191 the default generating sub twice in the constructor. (bug
192 found by Jesse Luehrs, fixed by Dave Rolsky)
193 - added tests for this (Dave Rolsky)
194 - fix typo in initialize_body method (nothingmuch)
196 * Moose::Meta::Method::Destructor
197 - fix typo in initialize_body method (nothingmuch)
199 * Moose::Meta::Method::Overriden
200 Moose::Meta::Method::Augmented
201 - moved the logic for these into their own
202 classes (nothingmuch)
204 * Moose::Meta::Attribute
205 - inherited attributes may now be extended without
206 restriction on the type ('isa', 'does') (Sartak)
207 - added tests for this (Sartak)
208 - when an attribute property is malformed (such as lazy without
209 a default), give the name of the attribute in the error
211 - added the &applied_traits and &has_applied_traits methods
212 to allow introspection of traits
213 - added tests for this
214 - moved 'trait' and 'metaclass' argument handling to here from
216 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
217 '+foo' syntax) (nothingmuch)
218 - added tests for this (t0m)
221 - localize $@ inside DEMOLISHALL to avoid it
222 eating $@ (found by Ernesto)
223 - added test for this (thanks to Ernesto)
225 * Moose::Util::TypeConstraints
226 - &find_type_constraint now DWIMs when given an
227 type constraint object or name (nothingmuch)
228 - &find_or_create_type_constraint superseded with a number of more
230 - find_or_create_{isa,does}_type_constraint
231 - find_or_parse_type_constraint
233 * Moose::Meta::TypeConstraint
234 Moose::Meta::TypeConstraint::Class
235 Moose::Meta::TypeConstraint::Role
236 Moose::Meta::TypeConstraint::Enum
237 Moose::Meta::TypeConstraint::Union
238 Moose::Meta::TypeConstraint::Parameterized
239 - added the &equals method for comparing two type
240 constraints (nothingmuch)
241 - added tests for this (nothingmuch)
243 * Moose::Meta::TypeConstraint
244 - add the &parents method, which is just an alias to &parent.
245 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
247 * Moose::Meta::TypeConstraint::Class
248 - added the class attribute for introspection purposes
250 - added tests for this
252 * Moose::Meta::TypeConstraint::Enum
253 Moose::Meta::TypeConstraint::Role
254 - broke these out into their own classes (nothingmuch)
256 * Moose::Cookbook::Recipe*
257 - fixed references to test file locations in the POD
258 and updated up some text for new Moose features
262 - Added &resolve_metaclass_alias, a helper function for finding an actual
263 class for a short name (e.g. in the traits list)
265 0.40 Fri. March 14, 2008
266 - I hate Pod::Coverage
268 0.39 Fri. March 14, 2008
270 - documenting the use of '+name' with attributes
271 that come from recently composed roles. It makes
272 sense, people are using it, and so why not just
273 officially support it.
274 - fixing the 'extends' keyword so that it will not
275 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
278 - added the perl -Moose=+Class::Name feature to allow
279 monkeypatching of classes in one liners
282 - fixing the 'apply_all_roles' keyword so that it will not
283 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
286 - added ->create method which now supports roles (thanks to jrockway)
287 - added tests for this
288 - added ->create_anon_class which now supports roles and caching of
289 the results (thanks to jrockway)
290 - added tests for this
291 - made ->does_role a little more forgiving when it is
292 checking a Class::MOP era metaclasses.
294 * Moose::Meta::Role::Application::ToInstance
295 - it is now possible to pass extra params to be used when
296 a role is applied to an the instance (rebless_params)
297 - added tests for this
299 * Moose::Util::TypeConstraints
300 - class_type now accepts an optional second argument for a
301 custom message. POD anotated accordingly (groditi)
302 - added tests for this
303 - it is now possible to make anon-enums by passing 'enum' an
304 ARRAY ref instead of the $name => @values. Everything else
306 - added tests for this
309 - making test for using '+name' on attributes consumed
310 from a role, it works and makes sense too.
312 * Moose::Meta::Attribute
313 - fix handles so that it doesn't return nothing
314 when the method cannot be found, not sure why
315 it ever did this originally, this means we now
316 have slightly better support for AUTOLOADed
318 - added more delegation tests
319 - adding ->does method to this so as to better
320 support traits and their introspection.
321 - added tests for this
324 - localizing the Data::Dumper configurations so
325 that it does not pollute others (RT #33509)
326 - made ->does a little more forgiving when it is
327 passed Class::MOP era metaclasses.
329 0.38 Fri. Feb. 15, 2008
330 * Moose::Meta::Attribute
331 - fixed initializer to correctly do
332 type checking and coercion in the
334 - added tests for this
337 - fixed some finicky tests (thanks to konobi)
339 0.37 Thurs. Feb. 14, 2008
341 - fixed some details in Moose::init_meta
342 and its superclass handling (thanks thepler)
343 - added tests for this (thanks thepler)
344 - 'has' now dies if you don't pass in name
346 - added the 'make_immutable' keyword as a shortcut
350 Moose::Meta::Method::Constructor
351 Moose::Meta::Attribute
352 - making (init_arg => undef) work here too
353 (thanks to nothingmuch)
355 * Moose::Meta::Attribute
356 Moose::Meta::Method::Constructor
357 Moose::Meta::Method::Accessor
358 - make lazy attributes respect attr initializers (rjbs)
359 - added tests for this
361 * Moose::Util::TypeConstraints
362 Moose::Util::TypeConstraints::OptimizedConstraints
363 Moose::Meta::TypeConstraints
364 Moose::Meta::Attribute
365 Moose::Meta::Method::Constructor
366 Moose::Meta::Method::Accessor
367 - making type errors use the
368 assigned message (thanks to Sartak)
369 - added tests for this
371 * Moose::Meta::Method::Destructor
372 - making sure DESTROY gets inlined properly
373 with successive DEMOLISH calls (thanks to manito)
375 * Moose::Meta::Attribute
376 Moose::Meta::Method::Accessor
377 - fixed handling of undef with type constraints
379 - added tests for this
382 - added &get_all_init_args and &get_all_attribute_values
383 (thanks to Sartak and nothingmuch)
385 0.36 Sat. Jan. 26, 2008
387 Moose::Meta::Attribute
388 - role type tests now support when roles are
389 applied to non-Moose classes (found by ash)
390 - added tests for this (thanks to ash)
391 - couple extra tests to boost code coverage
393 * Moose::Meta::Method::Constructor
394 - improved fix for handling Class::MOP attributes
395 - added test for this
398 - handled the add_attribute($attribute_meta_object)
400 - added test for this
402 0.35 Tues. Jan. 22, 2008
403 * Moose::Meta::Method::Constructor
404 - fix to make sure even Class::MOP attributes
405 are handled correctly (Thanks to Dave Rolsky)
406 - added test for this (also Dave Rolsky)
409 - improved error message on _apply_all_roles,
410 you should now use Moose::Util::apply_all_roles
411 and you shouldnt have been using a _ prefixed
412 method in the first place ;)
414 0.34 Mon. Jan. 21, 2008
415 ~~~ more misc. doc. fixes ~~~
416 ~~ updated copyright dates ~~
418 Moose is now a postmodern object system :)
419 - (see the POD for details)
421 * <<Role System Refactoring>>
422 - this release contains a major reworking and
423 cleanup of the role system
424 - 100% backwards compat.
425 - Role application now restructured into seperate
426 classes based on type of applicants
427 - Role summation (combining of more than one role)
428 is much cleaner and anon-classes are no longer
430 - new Composite role metaclass
431 - runtime application of roles to instances
432 is now more efficient and re-uses generated
433 classes when applicable
435 * <<New Role composition features>>
436 - methods can now be excluded from a given role
438 - methods can now be aliased to another name (and
439 still retain the original as well)
441 * Moose::Util::TypeConstraints::OptimizedConstraints
442 - added this module (see above)
445 - fixed the &_process_attribute method to be called
446 by &add_attribute, so that the API is now correct
448 * Moose::Meta::Method::Accessor
449 - fixed bug when passing a list of values to
450 an accessor would get (incorrectly) ignored.
451 Thanks to Sartak for finding this ;)
452 - added tests for this (Sartak again)
454 * Moose::Meta::Method::Accessor
455 Moose::Meta::Method::Constructor
456 Moose::Meta::Attribute
457 Moose::Meta::TypeConstraint
458 Moose::Meta::TypeCoercion
459 - lots of cleanup of such things as:
461 - type constraint handling
462 - error handling/messages
463 (thanks to nothingmuch)
465 * Moose::Meta::TypeConstraint::Parameterizable
466 - added this module to support the refactor
467 in Moose::Meta::TypeConstraint::Parameterized
469 * Moose::Meta::TypeConstraint::Parameterized
470 - refactored how these types are handled so they
471 are more generic and not confined to ArrayRef
475 - shortened some file names for better VMS support (RT #32381)
477 0.33 Fri. Dec. 14, 2007
478 !! Moose now loads 2 x faster !!
479 !! with new Class::MOP 0.49 !!
481 ++ new oose.pm module to make command line
482 Moose-ness easier (see POD docs for more)
486 - several tweaks to take advantage of the
487 new method map caching in Class::MOP
489 * Moose::Meta::TypeConstraint::Parameterized
490 - allow subtypes of ArrayRef and HashRef to
491 be used as a container (sartak)
492 - added tests for this
493 - basic support for coercion to ArrayRef and
494 HashRef for containers (sartak)
495 - added tests for this
497 * Moose::Meta::TypeCoercion
498 - coercions will now create subtypes as needed
499 so you can now add coercions to parameterized
500 types without having to explictly define them
501 - added tests for this
503 * Moose::Meta::Method::Accessor
504 - allow subclasses to decide whether we need
505 to copy the value into a new variable (sartak)
507 0.32 Tues. Dec. 4, 2007
508 * Moose::Util::TypeConstraints
509 - fixing how subtype aliases of unions work
510 they should inherit the parent's coercion
511 - added tests for this
512 - you can now define multiple coercions on
513 a single type at different times instead of
514 having to do it all in one place
515 - added tests for this
517 * Moose::Meta::TypeConstraint
518 - there is now a default constraint of sub { 1 }
519 instead of Moose::Util::TypeConstraints setting
522 * Moose::Meta::TypeCoercion
523 * Moose::Meta::TypeCoercion::Union
524 - added the &has_coercion_for_type and
525 &add_type_coercions methods to support the
526 new features above (although you cannot add
527 more type coercions for Union types)
529 0.31 Mon. Nov. 26, 2007
530 * Moose::Meta::Attribute
531 - made the +attr syntax handle extending types with
532 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
533 now works if the original foo is an ArrayRef.
534 - added tests for this.
535 - delegation now works even if the attribute does not
536 have a reader method using the get_read_method_ref
537 method from Class::MOP::Attribute.
538 - added tests for this
539 - added docs for this
541 * Moose::Util::TypeConstraints
542 - passing no "additional attribute info" to
543 &find_or_create_type_constraint will no longer
544 attempt to create an __ANON__ type for you,
545 instead it will just return undef.
546 - added docs for this
548 0.30 Fri. Nov. 23, 2007
549 * Moose::Meta::Method::Constructor
550 -builder related bug in inlined constructor. (groditi)
552 * Moose::Meta::Method::Accessor
553 - genereate unnecessary calls to predicates and refactor
554 code generation for runtime speed (groditi)
556 * Moose::Util::TypeConstraints
557 - fix ClassName constraint to introspect symbol table (mst)
558 - added more tests for this (mst)
559 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
561 - added tests for this
564 - adding the link to Recipie 11 (written by Sartak)
565 - adding test for SYNOPSIS code
568 - New tests for builder bug. Upon instantiation, if an
569 attribute had a builder, no value and was not lazy the
570 builder default was not getting run, oops. (groditi)
572 0.29 Tues. Nov. 13, 2007
573 * Moose::Meta::Attribute
574 - Fix error message on missing builder method (groditi)
576 * Moose::Meta::Method::Accessor
577 - Fix error message on missing builder method (groditi)
580 - Add test to check for the correct error message when
581 builder method is missing (groditi)
583 0.28 Tues. Nov. 13, 2007
584 - 0.27 packaged incorrectly (groditi)
586 0.27 Tues. Nov. 13, 2007
587 * Moose::Meta::Attribute
588 - Added support for the new builder option (groditi)
589 - Added support for lazy_build option (groditi)
590 - Changed slot initialization for predicate changes (groditi)
592 * Moose::Meta::Method::Accessor
593 - Added support for lazy_build option (groditi)
594 - Fix inline methods to work with corrected predicate
597 * Moose::Meta::Method::Constructor
598 - Added support for lazy_build option (groditi)
601 - tests for builder and lazy_build (groditi)
603 * fixing some misc. bits in the docs that
604 got mentioned on CPAN Forum & perlmonks
607 - fixed how required methods are handled
608 when they encounter overriden or modified
609 methods from a class (thanks to confound).
610 - added tests for this
612 * Moose::Util::TypeConstraint
613 - fixed the type notation parser so that
614 the | always creates a union and so is
615 no longer a valid type char (thanks to
616 konobi, mugwump and #moose for working
618 - added more tests for this
620 0.26 Thurs. Sept. 27, 2007
623 * Parameterized Types
624 We now support parameterized collection types, such as:
625 ArrayRef[Int] # array or integers
626 HashRef[Object] # a hash with object values
627 They can also be nested:
628 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
629 And work with the type unions as well:
630 ArrayRef[Int | Str] # array of integers of strings
632 * Better Framework Extendability
633 Moose.pm is now "extendable" such that it is now much
634 easier to extend the framework and add your own keywords
635 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
636 section of the Moose.pm docs.
639 In an effort to begin documenting some of the various
640 details of Moose as well as some common idioms, we have
641 created Moose::Cookbook::Snacks as a place to find
642 small (easily digestable) nuggets of Moose code.
645 ~ Several doc updates/cleanup thanks to castaway ~
647 - converted build system to use Module::Install instead of
648 Module::Build (thanks to jrockway)
651 - added all the meta classes to the immutable list and
652 set it to inline the accessors
653 - fix import to allow Sub::Exporter like { into => }
654 and { into_level => } (perigrin)
655 - exposed and documented init_meta() to allow better
656 embedding and extending of Moose (perigrin)
659 - complete re-organization of the test suite
660 - added some new tests as well
661 - finally re-enabled the Moose::POOP test since
662 the new version of DBM::Deep now works again
666 - fixed very odd and very nasty recursion bug with
668 - added tests for this (eilara)
670 * Moose::Meta::Attribute
671 Moose::Meta::Method::Constructor
672 Moose::Meta::Method::Accessor
673 - fixed issue with overload::Overloaded getting called
674 on non-blessed items. (RT #29269)
675 - added tests for this
677 * Moose::Meta::Method::Accessor
678 - fixed issue with generated accessor code making
679 assumptions about hash based classes (thanks to dexter)
681 * Moose::Coookbook::Snacks
682 - these are bits of documentation, not quite as big as
683 Recipes but which have no clear place in the module docs.
684 So they are Snacks! (horray for castaway++)
686 * Moose::Cookbook::Recipe4
687 - updated it to use the new ArrayRef[MyType] construct
688 - updated the accompanying test as well
690 +++ Major Refactor of the Type Constraint system +++
691 +++ with new features added as well +++
693 * Moose::Util::TypeConstraint
694 - no longer uses package variable to keep track of
695 the type constraints, now uses the an instance of
696 Moose::Meta::TypeConstraint::Registry to do it
697 - added more sophisticated type notation parsing
699 - added tests for this
701 * Moose::Meta::TypeConstraint
702 - some minor adjustments to make subclassing easier
703 - added the package_defined_in attribute so that we
704 can track where the type constraints are created
706 * Moose::Meta::TypeConstraint::Union
707 - this is now been refactored to be a subclass of
708 Moose::Meta::TypeConstraint
710 * Moose::Meta::TypeCoercion::Union
711 - this has been added to service the newly refactored
712 Moose::Meta::TypeConstraint::Union and is itself
713 a subclass of Moose::Meta::TypeCoercion
715 * Moose::Meta::TypeConstraint::Parameterized
716 - added this module (taken from MooseX::AttributeHelpers)
717 to help construct nested collection types
718 - added tests for this
720 * Moose::Meta::TypeConstraint::Registry
721 - added this class to keep track of type constraints
723 0.25 Mon. Aug. 13, 2007
725 - Documentation update to reference Moose::Util::TypeConstraints
726 under 'isa' in 'has' for how to define a new type
729 * Moose::Meta::Attribute
730 - required attributes now will no longer accept undef
731 from the constructor, even if there is a default and lazy
732 - added tests for this
733 - default subroutines must return a value which passes the
735 - added tests for this
737 * Moose::Meta::Attribute
738 * Moose::Meta::Method::Constructor
739 * Moose::Meta::Method::Accessor
740 - type-constraint tests now handle overloaded objects correctly
742 - added tests for this (thanks to EvanCarroll)
744 * Moose::Meta::TypeConstraint::Union
745 - added (has_)hand_optimized_constraint to this class so that
746 it behaves as the regular Moose::Meta::TypeConstraint does.
749 - large refactoring of this code
750 - added several more tests
751 - tests for subtle conflict resolition issues
752 added, but not currently running
755 * Moose::Cookbook::Recipe7
756 - added new recipe for augment/inner functionality
758 - added test for this
761 - a formal definition of roles (still in progress)
764 - utilities for easier working with Moose classes
765 - added tests for these
768 - This contains Moose specific test functions
769 - added tests for these
771 0.24 Tues. July 3, 2007
772 ~ Some doc updates/cleanup ~
774 * Moose::Meta::Attribute
775 - added support for roles to be given as parameters
776 to the 'handles' option.
777 - added tests and docs for this
778 - the has '+foo' attribute form now accepts changes to
779 the lazy option, and the addition of a handles option
780 (but not changing the handles option)
781 - added tests and docs for this
784 - required methods are now fetched using find_method_by_name
785 so that required methods can come from superclasses
786 - adjusted tests for this
788 0.23 Mon. June 18, 2007
789 * Moose::Meta::Method::Constructor
790 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
792 - Modify make_immutable to work with the new Class::MOP immutable
793 mechanism + POD + very basic test (groditi)
794 * Moose::Meta::Attribute
795 - Fix handles to use goto() so that caller() comes out properly on
796 the other side (perigrin)
798 0.22 Thurs. May 31, 2007
799 * Moose::Util::TypeConstraints
800 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
801 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
802 prototypes for functions
803 - added the ClassName type constraint, this checks for strings
804 which will respond true to ->isa(UNIVERSAL).
805 - added tests and docs for this
806 - subtyping just in name now works correctly by making the
807 default for where be { 1 }
808 - added test for this
810 * Moose::Meta::Method::Accessor
811 - coerce and lazy now work together correctly, thanks to
812 merlyn for finding this bug
813 - tests added for this
814 - fix reader presedence bug in Moose::Meta::Attribute + tests
817 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
818 a HASH-ref and missed. This produces better error messages then
819 having it die cause undef is not a HASH.
820 - added tests for this
822 0.21 Thursday, May 2nd, 2007
824 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
825 - modified unimport to remove super and inner along with the rest
826 - altered unimport tests to handle this
829 - altered super export to populate SUPER_SLOT
832 - altered augment and override modifier application to use *_SLOT
833 - modified tests for these to unimport one test class each to test
836 - fixed issue where custom attribute metaclasses
837 where not handled correctly in roles
838 - added tests for this
841 - fixed issue where extending metaclasses with
842 roles would blow up. Thanks to Aankhen`` for
843 finding this insidious error, and it's solution.
845 ~~ lots of spelling and grammer fixes in the docs,
846 many many thanks to rlb3 and Aankhen for these :)
848 0.20 Friday, April 6th, 2007
849 >> I messed up the SKIP logic in one test
850 so this release is just to fix that.
853 - 'has' now also accepts an ARRAY ref
854 to create multiple attrs (see docs)
855 (thanks to konobi for this)
856 - added tests and docs
858 0.19 Thurs. April 5th, 2007
859 ~~ More documentation updates ~~
861 * Moose::Util::TypeConstraints
862 - 'type' now supports messages as well
863 thanks to phaylon for finding this
864 - added tests for this
865 - added &list_all_type_constraints and
866 &list_all_builtin_type_constraints
867 functions to facilitate introspection.
869 * Moose::Meta::Attribute
870 - fixed regexp 'handles' declarations
871 to build the list of delegated methods
872 correctly (and not override important
873 things like &new) thanks to ashleyb
875 - added tests and docs for this
876 - added the 'documentation' attributes
877 so that you can actually document your
878 attributes and inspect them through the
880 - added tests and docs for this
883 - when loading custom attribute metaclasses
884 it will first look in for the class in the
885 Moose::Meta::Attribute::Custom::$name, and
886 then default to just loading $name.
887 - added tests and docs for this
889 * Moose::Meta::TypeConstraint
890 - type constraints now stringify to their names.
891 - added test for this
894 - added tests to assure we work with Module::Refresh
895 - added stricter test skip logic in the Moose POOP
896 test, ask Rob Kinyon why.
897 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
899 0.18 Sat. March 10, 2007
900 ~~ Many, many documentation updates ~~
903 - We now use Class::MOP::load_class to
905 - added tests to show types and subtypes
906 working with Declare::Constraints::Simple
907 and Test::Deep as constraint engines.
910 !! You must have Class::MOP 0.37_001 !!
911 !! for this developer release to work !!
913 This release was primarily adding the immutable
914 feature to Moose. An immutable class is one which
915 you promise not to alter. When you set the class
916 as immutable it will perform various bits of
917 memoization and inline certain part of the code
918 (constructors, destructors and accessors). This
919 minimizes (and in some cases totally eliminates)
920 one of Moose's biggest performance hits. This
921 feature is not on by default, and is 100% optional.
922 It has several configurable bits as well, so you
923 can pick and choose to your specific needs.
925 The changes involved in this were fairly wide and
926 highly specific, but 100% backwards compatible, so
927 I am not going to enumerate them here. If you are
928 truely interested in what was changed, please do
931 0.17 Tues. Nov. 14, 2006
932 * Moose::Meta::Method::Accessor
933 - bugfix for read-only accessors which
934 are have a type constraint and lazy.
935 Thanks to chansen for finding it.
937 0.16 Tues. Nov. 14, 2006
939 There are some speed improvements in this release,
940 but they are only the begining, so stay tuned.
943 - BUILDALL and DEMOLISHALL no longer get
944 called unless they actually need to be.
945 This gave us a signifigant speed boost
946 for the cases when there is no BUILD or
947 DEMOLISH method present.
949 * Moose::Util::TypeConstraints
950 * Moose::Meta::TypeConstraint
951 - added an 'optimize_as' option to the
952 type constraint, which allows for a
953 hand optimized version of the type
954 constraint to be used when possible.
955 - Any internally created type constraints
956 now provide an optimized version as well.
958 0.15 Sun. Nov. 5, 2006
960 This version of Moose *must* have Class::MOP 0.36 in order
961 to work correctly. A number of small internal tweaks have
962 been made in order to be compatible with that release.
964 * Moose::Util::TypeConstraints
965 - added &unimport so that you can clean out
966 your class namespace of these exported
970 - fixed minor issue which occasionally
971 comes up during global destruction
973 - moved Moose::Meta::Method::Overriden into
977 - moved Moose::Meta::Role::Method into
980 * Moose::Meta::Attribute
981 - changed how we do type checks so that
982 we reduce the overall cost, but still
985 - moved accessor generation methods to
986 Moose::Meta::Method::Accessor to
987 conform to the API changes from
990 * Moose::Meta::TypeConstraint
991 - changed how constraints are compiled
992 so that we do less recursion and more
993 iteration. This makes the type check
995 - moved Moose::Meta::TypeConstraint::Union
998 * Moose::Meta::Method::Accessor
999 - created this from methods formerly found in
1000 Moose::Meta::Attribute
1002 * Moose::Meta::Role::Method
1003 - moved this from Moose::Meta::Role
1005 * Moose::Meta::Method::Overriden
1006 - moved this from Moose::Meta::Class
1008 * Moose::Meta::TypeConstraint::Union
1009 - moved this from Moose::Meta::TypeConstraint
1011 0.14 Mon. Oct. 9, 2006
1013 * Moose::Meta::Attribute
1014 - fixed lazy attributes which were not getting
1015 checked with the type constraint (thanks ashley)
1016 - added tests for this
1017 - removed the over-enthusiastic DWIMery of the
1018 automatic ArrayRef and HashRef defaults, it
1019 broke predicates in an ugly way.
1020 - removed tests for this
1022 0.13 Sat. Sept. 30, 2006
1024 This version of Moose *must* have Class::MOP 0.35 in order
1025 to work correctly. A number of small internal tweaks have
1026 been made in order to be compatible with that release.
1029 - Removed the use of UNIVERSAL::require to be a better
1030 symbol table citizen and remove a dependency
1031 (thanks Adam Kennedy)
1033 **~~ removed experimental & undocumented feature ~~**
1034 - commented out the 'method' and 'self' keywords, see the
1035 comments for more info.
1038 - added a FAQ and WTF files to document frequently
1039 asked questions and common problems
1041 * Moose::Util::TypeConstraints
1042 - added GlobRef and FileHandle type constraint
1043 - added tests for this
1045 * Moose::Meta::Attribute
1046 - if your attribute 'isa' ArrayRef of HashRef, and you have
1047 not explicitly set a default, then make the default DWIM.
1048 This will also work for subtypes of ArrayRef and HashRef
1050 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1051 - new test added for this (thanks to ashley)
1054 - added basic support for runtime role composition
1055 but this is still *highly experimental*, so feedback
1056 is much appreciated :)
1057 - added tests for this
1059 * Moose::Meta::TypeConstraint
1060 - the type constraint now handles the coercion process
1061 through delegation, this is to support the coercion
1064 * Moose::Meta::TypeConstraint::Union
1065 - it is now possible for coercions to be performed
1067 - added tests for this (thanks to konobi)
1069 * Moose::Meta::TypeCoercion
1070 - properly capturing error when type constraint
1074 - Scalar::Util 1.18 is bad on Win32, so temporarily
1075 only require version 1.17 for Win32 and cygwin.
1076 (thanks Adam Kennedy)
1078 0.12 Sat. Sept. 1, 2006
1080 - Recipe5 (subtypes & coercion) has been written
1083 - fixed "bad meta" error message to be more descriptive
1084 - fixed &unimport to not remove the &inner and &super
1085 keywords because we need to localize them.
1086 - fixed number of spelling/grammer issues, thanks Theory :)
1088 **~~ experimental & undocumented feature ~~**
1089 - added the method and self keywords, they are basically
1090 just sugar, and they may not stay around.
1093 - added &dump method to easily Data::Dumper
1096 * Moose::Meta::TypeConstraint
1097 - added the &is_a_type_of method to check both the current
1098 and the subtype of a method (similar to &isa with classes)
1101 - this is now a subclass of Class::MOP::Module, and no longer
1102 creates the _role_meta ugliness of before.
1103 - fixed tests to reflect this change
1105 0.11 Wed. July 12, 2006
1107 - added an &unimport method to remove all the keywords
1108 that Moose will import, simply add 'no Moose' to the
1109 bottom of your class file.
1112 - fixed some test failures caused by a forgotten test
1115 0.10 Thurs. July 6, 2006
1117 - improved error message when loading modules so
1118 it is less confusing when you load a role.
1119 - added &calculate_all_roles method to
1120 Moose::Meta::Class and Moose::Meta::Role
1123 This module has been tested against Class::MOP 0.30
1124 but it does not yet utilize the optimizations
1125 it makes available. Stay tuned for that ;)
1127 0.09_03 Fri. June 23, 2006
1128 ++ DEVELOPER RELEASE ++
1130 - 'use strict' and 'use warnings' are no longer
1131 needed in Moose classes, Moose itself will
1132 turn them on for you.
1133 - added tests for this
1134 - moved code from exported subs to private methods
1135 in Moose::Meta::Class
1138 - as with Moose, strict and warnings are
1139 automatically turned on for you.
1140 - added tests for this
1143 - now handles an edge case for override errors
1144 - added tests for this
1145 - added some more edge case tests
1147 0.09_02 Tues. May 16, 2006
1148 ++ DEVELOPER RELEASE ++
1150 - added prototypes to the exported subs
1154 - added prototypes to the exported subs
1157 * Moose::Util::TypeConstraints
1158 - cleaned up prototypes for the subs
1161 0.09_01 Fri. May 12, 2006
1162 ++ DEVELOPER RELEASE ++
1163 - This release works in combination with
1164 Class::MOP 0.29_01, it is a developer
1165 release because it uses the a new
1166 instance sub-protocol and a fairly
1167 complete Role implementation. It has
1168 not yet been optimized, so it slower
1169 the the previous CPAN version. This
1170 release also lacks good updated docs,
1171 the official release will have updated docs.
1174 - refactored the keyword exports
1175 - 'with' now checks Role validaity and
1176 accepts more than one Role at a time
1177 - 'extends' makes metaclass adjustments as
1178 needed to ensure metaclass compatability
1181 - refactored the keyword exports
1182 - 'with' now checks Role validaity and
1183 accepts more than one Role at a time
1185 * Moose::Util::TypeConstraints
1186 - added the 'enum' keyword for simple
1187 string enumerations which can be used as
1189 - see example of usage in t/202_example.t
1192 - more careful checking of params to new()
1195 - much work done on the role composition
1196 - many new tests for conflict detection
1197 and composition edge cases
1198 - not enough documentation, I suggest
1199 looking at the tests
1201 * Moose::Meta::Instance
1202 - added new Instance metaclass to support
1203 the new Class::MOP instance protocol
1205 * Moose::Meta::Class
1206 - some small changes to support the new
1208 - some small additions to support Roles
1210 * Moose::Meta::Attribute
1211 - some improvements to the accessor generation code
1213 - some small changes to support the new
1215 - (still somewhat) experimental delegation support
1216 with the 'handles' option
1217 - added several tests for this
1218 - no docs for this yet
1220 0.05 Thurs. April 27, 2006
1222 - keywords are now exported with Sub::Exporter
1223 thanks to chansen for this commit
1224 - has keyword now takes a 'metaclass' option
1225 to support custom attribute meta-classes
1226 on a per-attribute basis
1227 - added tests for this
1228 - the 'has' keyword not accepts inherited slot
1229 specifications (has '+foo'). This is still an
1230 experimental feature and probably not finished
1231 see t/038_attribute_inherited_slot_specs.t for
1232 more details, or ask about it on #moose
1233 - added tests for this
1236 - keywords are now exported with Sub::Exporter
1238 * Moose::Utils::TypeConstraints
1239 - reorganized the type constraint hierarchy, thanks
1240 to nothingmuch and chansen for his help and advice
1242 - added some tests for this
1243 - keywords are now exported with Sub::Exporter
1244 thanks to chansen for this commit
1246 * Moose::Meta::Class
1247 - due to changes in Class::MOP, we had to change
1248 construct_instance (for the better)
1250 * Moose::Meta::Attribute
1251 - due to changes in Class::MOP, we had to add the
1252 initialize_instance_slot method (it's a good thing)
1254 * Moose::Meta::TypeConstraint
1255 - added type constraint unions
1256 - added tests for this
1257 - added the is_subtype_of predicate method
1258 - added tests for this
1260 0.04 Sun. April 16th, 2006
1262 - Roles can now consume other roles
1263 - added tests for this
1264 - Roles can specify required methods now with
1265 the requires() keyword
1266 - added tests for this
1269 - ripped out much of it's guts ,.. much cleaner now
1270 - added required methods and correct handling of
1271 them in apply() for both classes and roles
1272 - added tests for this
1273 - no longer adds a does() method to consuming classes
1274 it relys on the one in Moose::Object
1275 - added roles attribute and some methods to support
1276 roles consuming roles
1278 * Moose::Meta::Attribute
1279 - added support for triggers on attributes
1280 - added tests for this
1281 - added support for does option on an attribute
1282 - added tests for this
1284 * Moose::Meta::Class
1285 - added support for attribute triggers in the
1287 - added tests for this
1290 - Moose no longer creates a subtype for your class
1291 if a subtype of the same name already exists, this
1292 should DWIM in 99.9999% of all cases
1294 * Moose::Util::TypeConstraints
1295 - fixed bug where incorrect subtype conflicts were
1297 - added test for this
1300 - this class can now be extended with 'use base' if
1301 you need it, it properly loads the metaclass class now
1302 - added test for this
1304 0.03_02 Wed. April 12, 2006
1306 - you must now explictly use Moose::Util::TypeConstraints
1307 it no longer gets exported for you automatically
1310 - new() now accepts hash-refs as well as key/value lists
1311 - added does() method to check for Roles
1312 - added tests for this
1314 * Moose::Meta::Class
1315 - added roles attribute along with the add_role() and
1317 - added tests for this
1320 - now adds a does() method to consuming classes
1321 which tests the class's hierarchy for roles
1322 - added tests for this
1324 0.03_01 Mon. April 10, 2006
1326 - added new Role recipe (no content yet, only code)
1329 - added 'with' keyword for Role support
1330 - added test and docs for this
1331 - fixed subtype quoting bug
1332 - added test for this
1336 - added test and docs
1338 * Moose::Util::TypeConstraints
1339 - added the message keyword to add custom
1340 error messages to type constraints
1343 - the meta role to support Moose::Role
1344 - added tests and docs
1346 * Moose::Meta::Class
1347 - moved a number of things from Moose.pm
1348 to here, they should have been here
1351 * Moose::Meta::Attribute
1352 - moved the attribute option macros here
1353 instead of putting them in Moose.pm
1355 * Moose::Meta::TypeConstraint
1356 - added the message attributes and the
1358 - added tests and docs for this
1360 0.03 Thurs. March 30, 2006
1362 - added the Moose::Cookbook with 5 recipes,
1363 describing all the stuff Moose can do.
1366 - fixed an issue with &extends super class loading
1367 it now captures errors and deals with inline
1368 packages correctly (bug found by mst, solution
1370 - added super/override & inner/augment features
1371 - added tests and docs for these
1374 - BUILDALL now takes a reference of the %params
1375 that are passed to &new, and passes that to
1378 * Moose::Util::TypeConstraints
1379 - Type constraints now survive runtime reloading
1380 - added test for this
1382 * Moose::Meta::Class
1383 - fixed the way attribute defaults are handled
1384 during instance construction (bug found by chansen)
1386 * Moose::Meta::Attribute
1387 - read-only attributes now actually enforce their
1388 read-only-ness (this corrected in Class::MOP as
1391 0.02 Tues. March 21, 2006
1393 - many more tests, fixing some bugs and
1395 - &extends now loads the base module with
1397 - added UNIVERSAL::require to the
1400 - each new Moose class will also create
1401 and register a subtype of Object which
1402 correspond to the new Moose class.
1403 - the 'isa' option in &has now only
1404 accepts strings, and will DWIM in
1407 * Moose::Util::TypeConstraints
1408 - added type coercion features
1409 - added tests for this
1410 - added support for this in attributes
1411 and instance construction
1413 - type construction no longer creates a
1414 function, it registers the type instead.
1415 - added several functions to get the
1419 - BUILDALL and DEMOLISHALL were broken
1420 because of a mis-named hash key, Whoops :)
1422 * Moose::Meta::Attribute
1423 - adding support for coercion in the
1424 autogenerated accessors
1426 * Moose::Meta::Class
1427 - adding support for coercion in the
1428 instance construction
1430 * Moose::Meta::TypeConstraint
1431 * Moose::Meta::TypeCoercion
1432 - type constraints and coercions are now
1433 full fledges meta-objects
1435 0.01 Wed. March 15, 2006
1436 - Moooooooooooooooooose!!!