1 Revision history for Perl extension Moose
4 * Moose::Meta::Attribute
5 - fixed how the is => (ro|rw) works with
6 custom defined reader, writer and accessor
8 - added docs for this (TODO).
9 - added tests for this (Thanks to Penfold)
10 - added the custom attribute alias for regular
11 Moose attributes which is "Moose"
15 Moose::Meta::Attribute
17 Moose::Meta::Role::Composite
18 Moose::Util::TypeConstraints
19 - switched usage of reftype to ref because
23 - fixed how DEMOLISHALL is called so that it
24 can be overrided in subclasses (thanks to Sartak)
25 - added test for this (thanks to Sartak)
27 0.48 Thurs. May 29, 2008
28 (early morning release engineering)--
30 - fixing the version in Moose::Meta::Method::Destructor
31 which was causing the indexer to choke
33 0.47 Thurs. May 29, 2008
34 (late night release engineering)--
36 - fixing the version is META.yml, no functional
37 changes in this release
39 0.46 Wed. May 28, 2008
40 !! This version now approx. 20-25% !!
41 !! faster with new Class::MOP 0.57 !!
44 - some optimizations of the &initialize method
45 since it is called so often by &meta
49 - now use the get_all_package_symbols from the
50 updated Class::MOP, test suite is now 10 seconds
53 * Moose::Meta::Method::Destructor
54 - is_needed can now also be called as a class
55 method for immutablization to check if the
56 destructor object even needs to be created
59 * Moose::Meta::Method::Destructor
60 Moose::Meta::Method::Constructor
61 - added more descriptive error message to help
62 keep people from wasting time tracking an error
63 that is easily fixed by upgrading.
65 0.45 Saturday, May 24, 2008
67 - Because of work in Class::MOP 0.56, all
68 XS based functionality is now optional
69 and a Pure Perl version is supplied
70 - the CLASS_MOP_NO_XS environment variable
71 can now be used to force non-XS versions
73 - several of the packages have been tweaked
74 to take care of this, mostly we added
75 support for the package_name and name
76 variables in all the Method metaclasses
77 - before/around/after method modifiers now
78 support regexp matching of names
79 (thanks to Takatoshi Kitano)
80 - tests added for this
81 - NOTE: this only works for classes, it
82 is currently not supported in roles,
83 but, ... patches welcome
84 - All usage of Carp::confess have been replaced
85 by Carp::croak in the "keyword" functions since
86 the stack trace is usually not helpful
89 - All usage of Carp::confess have been replaced
90 by Carp::croak in the "keyword" functions since
91 the stack trace is usually not helpful
92 - The 'has' keyword for roles now accepts the
93 same array ref form that Moose.pm does
94 (has [qw/foo bar/] => (is => 'rw', ...))
97 * Moose::Meta::Attribute
98 - trigger on a ro-attribute is no longer an
99 error, as it's useful to trigger off of the
103 - added same 'add_package_symbol' fix as in
107 - does_role now handles non-Moose classes
109 - added tests for this
110 - added the 'add_method_modifier' function
111 (thanks to Takatoshi Kitano)
113 * Moose::Util::TypeConstraints
114 - subtypes of parameterizable types now are
115 themselves parameterizable types
117 * Moose::Meta::Method::Constructor
118 - fixed bug where trigger was not being
119 called by the inlined immutable
121 - added test for this (thanks to Caelum)
123 * Moose::Meta::Role::Application::ToInstance
124 - now uses the metaclass of the instance
125 (if possible) to create the anon-class
126 (thanks Jonathan Rockway)
128 * Moose::Cookbook::Recipe22
129 - added the meta-attribute trait recipe
133 - fixed hash-ordering test bug that was
134 causing occasional cpantester failures
135 - renamed the t/000_recipe/*.t tests to be
136 more descriptive (thanks to Sartak)
138 0.44 Sat. May 10, 2008
140 - made make_immutable warning cluck to
141 show where the error is (thanks mst)
144 - BUILDALL and DEMOLISHALL now call
145 ->body when looping through the
146 methods, to avoid the overloaded
148 - fixed issue where DEMOLISHALL was
149 eating the $@ values, and so not
150 working correctly, it still kind of
151 eats them, but so does vanilla perl
152 - added tests for this
154 * Moose::Cookbook::Recipe7
155 - added new recipe for immutable
156 functionality (thanks Dave Rolsky)
158 * Moose::Cookbook::Recipe9
159 - added new recipe for builder and
160 lazy_build (thanks Dave Rolsky)
162 * Moose::Cookbook::Recipe11
163 - added new recipe for method aliasing
164 and exclusion with Roles (thanks Dave Rolsky)
167 - fixed Win32 test failure (thanks spicyjack)
169 ~ removed Build.PL and Module::Build compat
170 since Module::Install has done that.
172 0.43 Wed. April, 30, 2008
174 drink more coffee before
175 doing release engineering
177 - whoops, forgot to do the smolder tests,
178 and we broke some of the custom meta-attr
179 modules. This fixes that.
181 0.42 Mon. April 28, 2008
182 - some bad tests slipped by, nothing else
183 changed in this release (cpantesters++)
185 - upped the Class::MOP dependency to 0.55
186 since we have tests which need the C3
189 0.41 Mon. April 28, 2008
190 ~~ numerous documentation updates ~~
192 - Changed all usage of die to Carp::croak for better
193 error reporting (initial patch by Tod Hagan)
196 - the make_immutable keyword is now deprecated, don't
197 use it in any new code and please fix your old code
198 as well. There will be 2 releases, and then it will
204 - refactored the way inner and super work to avoid
205 any method/@ISA cache penalty (nothingmuch)
208 - fixing &new_object to make sure trigger gets the
209 coerced value (spotted by Charles Alderman on the
211 - added test for this
213 * Moose::Meta::Method::Constructor
214 - immutable classes which had non-lazy attributes were calling
215 the default generating sub twice in the constructor. (bug
216 found by Jesse Luehrs, fixed by Dave Rolsky)
217 - added tests for this (Dave Rolsky)
218 - fix typo in initialize_body method (nothingmuch)
220 * Moose::Meta::Method::Destructor
221 - fix typo in initialize_body method (nothingmuch)
223 * Moose::Meta::Method::Overriden
224 Moose::Meta::Method::Augmented
225 - moved the logic for these into their own
226 classes (nothingmuch)
228 * Moose::Meta::Attribute
229 - inherited attributes may now be extended without
230 restriction on the type ('isa', 'does') (Sartak)
231 - added tests for this (Sartak)
232 - when an attribute property is malformed (such as lazy without
233 a default), give the name of the attribute in the error
235 - added the &applied_traits and &has_applied_traits methods
236 to allow introspection of traits
237 - added tests for this
238 - moved 'trait' and 'metaclass' argument handling to here from
240 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
241 '+foo' syntax) (nothingmuch)
242 - added tests for this (t0m)
245 - localize $@ inside DEMOLISHALL to avoid it
246 eating $@ (found by Ernesto)
247 - added test for this (thanks to Ernesto)
249 * Moose::Util::TypeConstraints
250 - &find_type_constraint now DWIMs when given an
251 type constraint object or name (nothingmuch)
252 - &find_or_create_type_constraint superseded with a number of more
254 - find_or_create_{isa,does}_type_constraint
255 - find_or_parse_type_constraint
257 * Moose::Meta::TypeConstraint
258 Moose::Meta::TypeConstraint::Class
259 Moose::Meta::TypeConstraint::Role
260 Moose::Meta::TypeConstraint::Enum
261 Moose::Meta::TypeConstraint::Union
262 Moose::Meta::TypeConstraint::Parameterized
263 - added the &equals method for comparing two type
264 constraints (nothingmuch)
265 - added tests for this (nothingmuch)
267 * Moose::Meta::TypeConstraint
268 - add the &parents method, which is just an alias to &parent.
269 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
271 * Moose::Meta::TypeConstraint::Class
272 - added the class attribute for introspection purposes
274 - added tests for this
276 * Moose::Meta::TypeConstraint::Enum
277 Moose::Meta::TypeConstraint::Role
278 - broke these out into their own classes (nothingmuch)
280 * Moose::Cookbook::Recipe*
281 - fixed references to test file locations in the POD
282 and updated up some text for new Moose features
286 - Added &resolve_metaclass_alias, a helper function for finding an actual
287 class for a short name (e.g. in the traits list)
289 0.40 Fri. March 14, 2008
290 - I hate Pod::Coverage
292 0.39 Fri. March 14, 2008
294 - documenting the use of '+name' with attributes
295 that come from recently composed roles. It makes
296 sense, people are using it, and so why not just
297 officially support it.
298 - fixing the 'extends' keyword so that it will not
299 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
302 - added the perl -Moose=+Class::Name feature to allow
303 monkeypatching of classes in one liners
306 - fixing the 'apply_all_roles' keyword so that it will not
307 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
310 - added ->create method which now supports roles (thanks to jrockway)
311 - added tests for this
312 - added ->create_anon_class which now supports roles and caching of
313 the results (thanks to jrockway)
314 - added tests for this
315 - made ->does_role a little more forgiving when it is
316 checking a Class::MOP era metaclasses.
318 * Moose::Meta::Role::Application::ToInstance
319 - it is now possible to pass extra params to be used when
320 a role is applied to an the instance (rebless_params)
321 - added tests for this
323 * Moose::Util::TypeConstraints
324 - class_type now accepts an optional second argument for a
325 custom message. POD anotated accordingly (groditi)
326 - added tests for this
327 - it is now possible to make anon-enums by passing 'enum' an
328 ARRAY ref instead of the $name => @values. Everything else
330 - added tests for this
333 - making test for using '+name' on attributes consumed
334 from a role, it works and makes sense too.
336 * Moose::Meta::Attribute
337 - fix handles so that it doesn't return nothing
338 when the method cannot be found, not sure why
339 it ever did this originally, this means we now
340 have slightly better support for AUTOLOADed
342 - added more delegation tests
343 - adding ->does method to this so as to better
344 support traits and their introspection.
345 - added tests for this
348 - localizing the Data::Dumper configurations so
349 that it does not pollute others (RT #33509)
350 - made ->does a little more forgiving when it is
351 passed Class::MOP era metaclasses.
353 0.38 Fri. Feb. 15, 2008
354 * Moose::Meta::Attribute
355 - fixed initializer to correctly do
356 type checking and coercion in the
358 - added tests for this
361 - fixed some finicky tests (thanks to konobi)
363 0.37 Thurs. Feb. 14, 2008
365 - fixed some details in Moose::init_meta
366 and its superclass handling (thanks thepler)
367 - added tests for this (thanks thepler)
368 - 'has' now dies if you don't pass in name
370 - added the 'make_immutable' keyword as a shortcut
374 Moose::Meta::Method::Constructor
375 Moose::Meta::Attribute
376 - making (init_arg => undef) work here too
377 (thanks to nothingmuch)
379 * Moose::Meta::Attribute
380 Moose::Meta::Method::Constructor
381 Moose::Meta::Method::Accessor
382 - make lazy attributes respect attr initializers (rjbs)
383 - added tests for this
385 * Moose::Util::TypeConstraints
386 Moose::Util::TypeConstraints::OptimizedConstraints
387 Moose::Meta::TypeConstraints
388 Moose::Meta::Attribute
389 Moose::Meta::Method::Constructor
390 Moose::Meta::Method::Accessor
391 - making type errors use the
392 assigned message (thanks to Sartak)
393 - added tests for this
395 * Moose::Meta::Method::Destructor
396 - making sure DESTROY gets inlined properly
397 with successive DEMOLISH calls (thanks to manito)
399 * Moose::Meta::Attribute
400 Moose::Meta::Method::Accessor
401 - fixed handling of undef with type constraints
403 - added tests for this
406 - added &get_all_init_args and &get_all_attribute_values
407 (thanks to Sartak and nothingmuch)
409 0.36 Sat. Jan. 26, 2008
411 Moose::Meta::Attribute
412 - role type tests now support when roles are
413 applied to non-Moose classes (found by ash)
414 - added tests for this (thanks to ash)
415 - couple extra tests to boost code coverage
417 * Moose::Meta::Method::Constructor
418 - improved fix for handling Class::MOP attributes
419 - added test for this
422 - handled the add_attribute($attribute_meta_object)
424 - added test for this
426 0.35 Tues. Jan. 22, 2008
427 * Moose::Meta::Method::Constructor
428 - fix to make sure even Class::MOP attributes
429 are handled correctly (Thanks to Dave Rolsky)
430 - added test for this (also Dave Rolsky)
433 - improved error message on _apply_all_roles,
434 you should now use Moose::Util::apply_all_roles
435 and you shouldnt have been using a _ prefixed
436 method in the first place ;)
438 0.34 Mon. Jan. 21, 2008
439 ~~~ more misc. doc. fixes ~~~
440 ~~ updated copyright dates ~~
442 Moose is now a postmodern object system :)
443 - (see the POD for details)
445 * <<Role System Refactoring>>
446 - this release contains a major reworking and
447 cleanup of the role system
448 - 100% backwards compat.
449 - Role application now restructured into seperate
450 classes based on type of applicants
451 - Role summation (combining of more than one role)
452 is much cleaner and anon-classes are no longer
454 - new Composite role metaclass
455 - runtime application of roles to instances
456 is now more efficient and re-uses generated
457 classes when applicable
459 * <<New Role composition features>>
460 - methods can now be excluded from a given role
462 - methods can now be aliased to another name (and
463 still retain the original as well)
465 * Moose::Util::TypeConstraints::OptimizedConstraints
466 - added this module (see above)
469 - fixed the &_process_attribute method to be called
470 by &add_attribute, so that the API is now correct
472 * Moose::Meta::Method::Accessor
473 - fixed bug when passing a list of values to
474 an accessor would get (incorrectly) ignored.
475 Thanks to Sartak for finding this ;)
476 - added tests for this (Sartak again)
478 * Moose::Meta::Method::Accessor
479 Moose::Meta::Method::Constructor
480 Moose::Meta::Attribute
481 Moose::Meta::TypeConstraint
482 Moose::Meta::TypeCoercion
483 - lots of cleanup of such things as:
485 - type constraint handling
486 - error handling/messages
487 (thanks to nothingmuch)
489 * Moose::Meta::TypeConstraint::Parameterizable
490 - added this module to support the refactor
491 in Moose::Meta::TypeConstraint::Parameterized
493 * Moose::Meta::TypeConstraint::Parameterized
494 - refactored how these types are handled so they
495 are more generic and not confined to ArrayRef
499 - shortened some file names for better VMS support (RT #32381)
501 0.33 Fri. Dec. 14, 2007
502 !! Moose now loads 2 x faster !!
503 !! with new Class::MOP 0.49 !!
505 ++ new oose.pm module to make command line
506 Moose-ness easier (see POD docs for more)
510 - several tweaks to take advantage of the
511 new method map caching in Class::MOP
513 * Moose::Meta::TypeConstraint::Parameterized
514 - allow subtypes of ArrayRef and HashRef to
515 be used as a container (sartak)
516 - added tests for this
517 - basic support for coercion to ArrayRef and
518 HashRef for containers (sartak)
519 - added tests for this
521 * Moose::Meta::TypeCoercion
522 - coercions will now create subtypes as needed
523 so you can now add coercions to parameterized
524 types without having to explictly define them
525 - added tests for this
527 * Moose::Meta::Method::Accessor
528 - allow subclasses to decide whether we need
529 to copy the value into a new variable (sartak)
531 0.32 Tues. Dec. 4, 2007
532 * Moose::Util::TypeConstraints
533 - fixing how subtype aliases of unions work
534 they should inherit the parent's coercion
535 - added tests for this
536 - you can now define multiple coercions on
537 a single type at different times instead of
538 having to do it all in one place
539 - added tests for this
541 * Moose::Meta::TypeConstraint
542 - there is now a default constraint of sub { 1 }
543 instead of Moose::Util::TypeConstraints setting
546 * Moose::Meta::TypeCoercion
547 * Moose::Meta::TypeCoercion::Union
548 - added the &has_coercion_for_type and
549 &add_type_coercions methods to support the
550 new features above (although you cannot add
551 more type coercions for Union types)
553 0.31 Mon. Nov. 26, 2007
554 * Moose::Meta::Attribute
555 - made the +attr syntax handle extending types with
556 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
557 now works if the original foo is an ArrayRef.
558 - added tests for this.
559 - delegation now works even if the attribute does not
560 have a reader method using the get_read_method_ref
561 method from Class::MOP::Attribute.
562 - added tests for this
563 - added docs for this
565 * Moose::Util::TypeConstraints
566 - passing no "additional attribute info" to
567 &find_or_create_type_constraint will no longer
568 attempt to create an __ANON__ type for you,
569 instead it will just return undef.
570 - added docs for this
572 0.30 Fri. Nov. 23, 2007
573 * Moose::Meta::Method::Constructor
574 -builder related bug in inlined constructor. (groditi)
576 * Moose::Meta::Method::Accessor
577 - genereate unnecessary calls to predicates and refactor
578 code generation for runtime speed (groditi)
580 * Moose::Util::TypeConstraints
581 - fix ClassName constraint to introspect symbol table (mst)
582 - added more tests for this (mst)
583 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
585 - added tests for this
588 - adding the link to Recipie 11 (written by Sartak)
589 - adding test for SYNOPSIS code
592 - New tests for builder bug. Upon instantiation, if an
593 attribute had a builder, no value and was not lazy the
594 builder default was not getting run, oops. (groditi)
596 0.29 Tues. Nov. 13, 2007
597 * Moose::Meta::Attribute
598 - Fix error message on missing builder method (groditi)
600 * Moose::Meta::Method::Accessor
601 - Fix error message on missing builder method (groditi)
604 - Add test to check for the correct error message when
605 builder method is missing (groditi)
607 0.28 Tues. Nov. 13, 2007
608 - 0.27 packaged incorrectly (groditi)
610 0.27 Tues. Nov. 13, 2007
611 * Moose::Meta::Attribute
612 - Added support for the new builder option (groditi)
613 - Added support for lazy_build option (groditi)
614 - Changed slot initialization for predicate changes (groditi)
616 * Moose::Meta::Method::Accessor
617 - Added support for lazy_build option (groditi)
618 - Fix inline methods to work with corrected predicate
621 * Moose::Meta::Method::Constructor
622 - Added support for lazy_build option (groditi)
625 - tests for builder and lazy_build (groditi)
627 * fixing some misc. bits in the docs that
628 got mentioned on CPAN Forum & perlmonks
631 - fixed how required methods are handled
632 when they encounter overriden or modified
633 methods from a class (thanks to confound).
634 - added tests for this
636 * Moose::Util::TypeConstraint
637 - fixed the type notation parser so that
638 the | always creates a union and so is
639 no longer a valid type char (thanks to
640 konobi, mugwump and #moose for working
642 - added more tests for this
644 0.26 Thurs. Sept. 27, 2007
647 * Parameterized Types
648 We now support parameterized collection types, such as:
649 ArrayRef[Int] # array or integers
650 HashRef[Object] # a hash with object values
651 They can also be nested:
652 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
653 And work with the type unions as well:
654 ArrayRef[Int | Str] # array of integers of strings
656 * Better Framework Extendability
657 Moose.pm is now "extendable" such that it is now much
658 easier to extend the framework and add your own keywords
659 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
660 section of the Moose.pm docs.
663 In an effort to begin documenting some of the various
664 details of Moose as well as some common idioms, we have
665 created Moose::Cookbook::Snacks as a place to find
666 small (easily digestable) nuggets of Moose code.
669 ~ Several doc updates/cleanup thanks to castaway ~
671 - converted build system to use Module::Install instead of
672 Module::Build (thanks to jrockway)
675 - added all the meta classes to the immutable list and
676 set it to inline the accessors
677 - fix import to allow Sub::Exporter like { into => }
678 and { into_level => } (perigrin)
679 - exposed and documented init_meta() to allow better
680 embedding and extending of Moose (perigrin)
683 - complete re-organization of the test suite
684 - added some new tests as well
685 - finally re-enabled the Moose::POOP test since
686 the new version of DBM::Deep now works again
690 - fixed very odd and very nasty recursion bug with
692 - added tests for this (eilara)
694 * Moose::Meta::Attribute
695 Moose::Meta::Method::Constructor
696 Moose::Meta::Method::Accessor
697 - fixed issue with overload::Overloaded getting called
698 on non-blessed items. (RT #29269)
699 - added tests for this
701 * Moose::Meta::Method::Accessor
702 - fixed issue with generated accessor code making
703 assumptions about hash based classes (thanks to dexter)
705 * Moose::Coookbook::Snacks
706 - these are bits of documentation, not quite as big as
707 Recipes but which have no clear place in the module docs.
708 So they are Snacks! (horray for castaway++)
710 * Moose::Cookbook::Recipe4
711 - updated it to use the new ArrayRef[MyType] construct
712 - updated the accompanying test as well
714 +++ Major Refactor of the Type Constraint system +++
715 +++ with new features added as well +++
717 * Moose::Util::TypeConstraint
718 - no longer uses package variable to keep track of
719 the type constraints, now uses the an instance of
720 Moose::Meta::TypeConstraint::Registry to do it
721 - added more sophisticated type notation parsing
723 - added tests for this
725 * Moose::Meta::TypeConstraint
726 - some minor adjustments to make subclassing easier
727 - added the package_defined_in attribute so that we
728 can track where the type constraints are created
730 * Moose::Meta::TypeConstraint::Union
731 - this is now been refactored to be a subclass of
732 Moose::Meta::TypeConstraint
734 * Moose::Meta::TypeCoercion::Union
735 - this has been added to service the newly refactored
736 Moose::Meta::TypeConstraint::Union and is itself
737 a subclass of Moose::Meta::TypeCoercion
739 * Moose::Meta::TypeConstraint::Parameterized
740 - added this module (taken from MooseX::AttributeHelpers)
741 to help construct nested collection types
742 - added tests for this
744 * Moose::Meta::TypeConstraint::Registry
745 - added this class to keep track of type constraints
747 0.25 Mon. Aug. 13, 2007
749 - Documentation update to reference Moose::Util::TypeConstraints
750 under 'isa' in 'has' for how to define a new type
753 * Moose::Meta::Attribute
754 - required attributes now will no longer accept undef
755 from the constructor, even if there is a default and lazy
756 - added tests for this
757 - default subroutines must return a value which passes the
759 - added tests for this
761 * Moose::Meta::Attribute
762 * Moose::Meta::Method::Constructor
763 * Moose::Meta::Method::Accessor
764 - type-constraint tests now handle overloaded objects correctly
766 - added tests for this (thanks to EvanCarroll)
768 * Moose::Meta::TypeConstraint::Union
769 - added (has_)hand_optimized_constraint to this class so that
770 it behaves as the regular Moose::Meta::TypeConstraint does.
773 - large refactoring of this code
774 - added several more tests
775 - tests for subtle conflict resolition issues
776 added, but not currently running
779 * Moose::Cookbook::Recipe7
780 - added new recipe for augment/inner functionality
782 - added test for this
785 - a formal definition of roles (still in progress)
788 - utilities for easier working with Moose classes
789 - added tests for these
792 - This contains Moose specific test functions
793 - added tests for these
795 0.24 Tues. July 3, 2007
796 ~ Some doc updates/cleanup ~
798 * Moose::Meta::Attribute
799 - added support for roles to be given as parameters
800 to the 'handles' option.
801 - added tests and docs for this
802 - the has '+foo' attribute form now accepts changes to
803 the lazy option, and the addition of a handles option
804 (but not changing the handles option)
805 - added tests and docs for this
808 - required methods are now fetched using find_method_by_name
809 so that required methods can come from superclasses
810 - adjusted tests for this
812 0.23 Mon. June 18, 2007
813 * Moose::Meta::Method::Constructor
814 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
816 - Modify make_immutable to work with the new Class::MOP immutable
817 mechanism + POD + very basic test (groditi)
818 * Moose::Meta::Attribute
819 - Fix handles to use goto() so that caller() comes out properly on
820 the other side (perigrin)
822 0.22 Thurs. May 31, 2007
823 * Moose::Util::TypeConstraints
824 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
825 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
826 prototypes for functions
827 - added the ClassName type constraint, this checks for strings
828 which will respond true to ->isa(UNIVERSAL).
829 - added tests and docs for this
830 - subtyping just in name now works correctly by making the
831 default for where be { 1 }
832 - added test for this
834 * Moose::Meta::Method::Accessor
835 - coerce and lazy now work together correctly, thanks to
836 merlyn for finding this bug
837 - tests added for this
838 - fix reader presedence bug in Moose::Meta::Attribute + tests
841 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
842 a HASH-ref and missed. This produces better error messages then
843 having it die cause undef is not a HASH.
844 - added tests for this
846 0.21 Thursday, May 2nd, 2007
848 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
849 - modified unimport to remove super and inner along with the rest
850 - altered unimport tests to handle this
853 - altered super export to populate SUPER_SLOT
856 - altered augment and override modifier application to use *_SLOT
857 - modified tests for these to unimport one test class each to test
860 - fixed issue where custom attribute metaclasses
861 where not handled correctly in roles
862 - added tests for this
865 - fixed issue where extending metaclasses with
866 roles would blow up. Thanks to Aankhen`` for
867 finding this insidious error, and it's solution.
869 ~~ lots of spelling and grammer fixes in the docs,
870 many many thanks to rlb3 and Aankhen for these :)
872 0.20 Friday, April 6th, 2007
873 >> I messed up the SKIP logic in one test
874 so this release is just to fix that.
877 - 'has' now also accepts an ARRAY ref
878 to create multiple attrs (see docs)
879 (thanks to konobi for this)
880 - added tests and docs
882 0.19 Thurs. April 5th, 2007
883 ~~ More documentation updates ~~
885 * Moose::Util::TypeConstraints
886 - 'type' now supports messages as well
887 thanks to phaylon for finding this
888 - added tests for this
889 - added &list_all_type_constraints and
890 &list_all_builtin_type_constraints
891 functions to facilitate introspection.
893 * Moose::Meta::Attribute
894 - fixed regexp 'handles' declarations
895 to build the list of delegated methods
896 correctly (and not override important
897 things like &new) thanks to ashleyb
899 - added tests and docs for this
900 - added the 'documentation' attributes
901 so that you can actually document your
902 attributes and inspect them through the
904 - added tests and docs for this
907 - when loading custom attribute metaclasses
908 it will first look in for the class in the
909 Moose::Meta::Attribute::Custom::$name, and
910 then default to just loading $name.
911 - added tests and docs for this
913 * Moose::Meta::TypeConstraint
914 - type constraints now stringify to their names.
915 - added test for this
918 - added tests to assure we work with Module::Refresh
919 - added stricter test skip logic in the Moose POOP
920 test, ask Rob Kinyon why.
921 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
923 0.18 Sat. March 10, 2007
924 ~~ Many, many documentation updates ~~
927 - We now use Class::MOP::load_class to
929 - added tests to show types and subtypes
930 working with Declare::Constraints::Simple
931 and Test::Deep as constraint engines.
934 !! You must have Class::MOP 0.37_001 !!
935 !! for this developer release to work !!
937 This release was primarily adding the immutable
938 feature to Moose. An immutable class is one which
939 you promise not to alter. When you set the class
940 as immutable it will perform various bits of
941 memoization and inline certain part of the code
942 (constructors, destructors and accessors). This
943 minimizes (and in some cases totally eliminates)
944 one of Moose's biggest performance hits. This
945 feature is not on by default, and is 100% optional.
946 It has several configurable bits as well, so you
947 can pick and choose to your specific needs.
949 The changes involved in this were fairly wide and
950 highly specific, but 100% backwards compatible, so
951 I am not going to enumerate them here. If you are
952 truely interested in what was changed, please do
955 0.17 Tues. Nov. 14, 2006
956 * Moose::Meta::Method::Accessor
957 - bugfix for read-only accessors which
958 are have a type constraint and lazy.
959 Thanks to chansen for finding it.
961 0.16 Tues. Nov. 14, 2006
963 There are some speed improvements in this release,
964 but they are only the begining, so stay tuned.
967 - BUILDALL and DEMOLISHALL no longer get
968 called unless they actually need to be.
969 This gave us a signifigant speed boost
970 for the cases when there is no BUILD or
971 DEMOLISH method present.
973 * Moose::Util::TypeConstraints
974 * Moose::Meta::TypeConstraint
975 - added an 'optimize_as' option to the
976 type constraint, which allows for a
977 hand optimized version of the type
978 constraint to be used when possible.
979 - Any internally created type constraints
980 now provide an optimized version as well.
982 0.15 Sun. Nov. 5, 2006
984 This version of Moose *must* have Class::MOP 0.36 in order
985 to work correctly. A number of small internal tweaks have
986 been made in order to be compatible with that release.
988 * Moose::Util::TypeConstraints
989 - added &unimport so that you can clean out
990 your class namespace of these exported
994 - fixed minor issue which occasionally
995 comes up during global destruction
997 - moved Moose::Meta::Method::Overriden into
1001 - moved Moose::Meta::Role::Method into
1004 * Moose::Meta::Attribute
1005 - changed how we do type checks so that
1006 we reduce the overall cost, but still
1009 - moved accessor generation methods to
1010 Moose::Meta::Method::Accessor to
1011 conform to the API changes from
1014 * Moose::Meta::TypeConstraint
1015 - changed how constraints are compiled
1016 so that we do less recursion and more
1017 iteration. This makes the type check
1019 - moved Moose::Meta::TypeConstraint::Union
1022 * Moose::Meta::Method::Accessor
1023 - created this from methods formerly found in
1024 Moose::Meta::Attribute
1026 * Moose::Meta::Role::Method
1027 - moved this from Moose::Meta::Role
1029 * Moose::Meta::Method::Overriden
1030 - moved this from Moose::Meta::Class
1032 * Moose::Meta::TypeConstraint::Union
1033 - moved this from Moose::Meta::TypeConstraint
1035 0.14 Mon. Oct. 9, 2006
1037 * Moose::Meta::Attribute
1038 - fixed lazy attributes which were not getting
1039 checked with the type constraint (thanks ashley)
1040 - added tests for this
1041 - removed the over-enthusiastic DWIMery of the
1042 automatic ArrayRef and HashRef defaults, it
1043 broke predicates in an ugly way.
1044 - removed tests for this
1046 0.13 Sat. Sept. 30, 2006
1048 This version of Moose *must* have Class::MOP 0.35 in order
1049 to work correctly. A number of small internal tweaks have
1050 been made in order to be compatible with that release.
1053 - Removed the use of UNIVERSAL::require to be a better
1054 symbol table citizen and remove a dependency
1055 (thanks Adam Kennedy)
1057 **~~ removed experimental & undocumented feature ~~**
1058 - commented out the 'method' and 'self' keywords, see the
1059 comments for more info.
1062 - added a FAQ and WTF files to document frequently
1063 asked questions and common problems
1065 * Moose::Util::TypeConstraints
1066 - added GlobRef and FileHandle type constraint
1067 - added tests for this
1069 * Moose::Meta::Attribute
1070 - if your attribute 'isa' ArrayRef of HashRef, and you have
1071 not explicitly set a default, then make the default DWIM.
1072 This will also work for subtypes of ArrayRef and HashRef
1074 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1075 - new test added for this (thanks to ashley)
1078 - added basic support for runtime role composition
1079 but this is still *highly experimental*, so feedback
1080 is much appreciated :)
1081 - added tests for this
1083 * Moose::Meta::TypeConstraint
1084 - the type constraint now handles the coercion process
1085 through delegation, this is to support the coercion
1088 * Moose::Meta::TypeConstraint::Union
1089 - it is now possible for coercions to be performed
1091 - added tests for this (thanks to konobi)
1093 * Moose::Meta::TypeCoercion
1094 - properly capturing error when type constraint
1098 - Scalar::Util 1.18 is bad on Win32, so temporarily
1099 only require version 1.17 for Win32 and cygwin.
1100 (thanks Adam Kennedy)
1102 0.12 Sat. Sept. 1, 2006
1104 - Recipe5 (subtypes & coercion) has been written
1107 - fixed "bad meta" error message to be more descriptive
1108 - fixed &unimport to not remove the &inner and &super
1109 keywords because we need to localize them.
1110 - fixed number of spelling/grammer issues, thanks Theory :)
1112 **~~ experimental & undocumented feature ~~**
1113 - added the method and self keywords, they are basically
1114 just sugar, and they may not stay around.
1117 - added &dump method to easily Data::Dumper
1120 * Moose::Meta::TypeConstraint
1121 - added the &is_a_type_of method to check both the current
1122 and the subtype of a method (similar to &isa with classes)
1125 - this is now a subclass of Class::MOP::Module, and no longer
1126 creates the _role_meta ugliness of before.
1127 - fixed tests to reflect this change
1129 0.11 Wed. July 12, 2006
1131 - added an &unimport method to remove all the keywords
1132 that Moose will import, simply add 'no Moose' to the
1133 bottom of your class file.
1136 - fixed some test failures caused by a forgotten test
1139 0.10 Thurs. July 6, 2006
1141 - improved error message when loading modules so
1142 it is less confusing when you load a role.
1143 - added &calculate_all_roles method to
1144 Moose::Meta::Class and Moose::Meta::Role
1147 This module has been tested against Class::MOP 0.30
1148 but it does not yet utilize the optimizations
1149 it makes available. Stay tuned for that ;)
1151 0.09_03 Fri. June 23, 2006
1152 ++ DEVELOPER RELEASE ++
1154 - 'use strict' and 'use warnings' are no longer
1155 needed in Moose classes, Moose itself will
1156 turn them on for you.
1157 - added tests for this
1158 - moved code from exported subs to private methods
1159 in Moose::Meta::Class
1162 - as with Moose, strict and warnings are
1163 automatically turned on for you.
1164 - added tests for this
1167 - now handles an edge case for override errors
1168 - added tests for this
1169 - added some more edge case tests
1171 0.09_02 Tues. May 16, 2006
1172 ++ DEVELOPER RELEASE ++
1174 - added prototypes to the exported subs
1178 - added prototypes to the exported subs
1181 * Moose::Util::TypeConstraints
1182 - cleaned up prototypes for the subs
1185 0.09_01 Fri. May 12, 2006
1186 ++ DEVELOPER RELEASE ++
1187 - This release works in combination with
1188 Class::MOP 0.29_01, it is a developer
1189 release because it uses the a new
1190 instance sub-protocol and a fairly
1191 complete Role implementation. It has
1192 not yet been optimized, so it slower
1193 the the previous CPAN version. This
1194 release also lacks good updated docs,
1195 the official release will have updated docs.
1198 - refactored the keyword exports
1199 - 'with' now checks Role validaity and
1200 accepts more than one Role at a time
1201 - 'extends' makes metaclass adjustments as
1202 needed to ensure metaclass compatability
1205 - refactored the keyword exports
1206 - 'with' now checks Role validaity and
1207 accepts more than one Role at a time
1209 * Moose::Util::TypeConstraints
1210 - added the 'enum' keyword for simple
1211 string enumerations which can be used as
1213 - see example of usage in t/202_example.t
1216 - more careful checking of params to new()
1219 - much work done on the role composition
1220 - many new tests for conflict detection
1221 and composition edge cases
1222 - not enough documentation, I suggest
1223 looking at the tests
1225 * Moose::Meta::Instance
1226 - added new Instance metaclass to support
1227 the new Class::MOP instance protocol
1229 * Moose::Meta::Class
1230 - some small changes to support the new
1232 - some small additions to support Roles
1234 * Moose::Meta::Attribute
1235 - some improvements to the accessor generation code
1237 - some small changes to support the new
1239 - (still somewhat) experimental delegation support
1240 with the 'handles' option
1241 - added several tests for this
1242 - no docs for this yet
1244 0.05 Thurs. April 27, 2006
1246 - keywords are now exported with Sub::Exporter
1247 thanks to chansen for this commit
1248 - has keyword now takes a 'metaclass' option
1249 to support custom attribute meta-classes
1250 on a per-attribute basis
1251 - added tests for this
1252 - the 'has' keyword not accepts inherited slot
1253 specifications (has '+foo'). This is still an
1254 experimental feature and probably not finished
1255 see t/038_attribute_inherited_slot_specs.t for
1256 more details, or ask about it on #moose
1257 - added tests for this
1260 - keywords are now exported with Sub::Exporter
1262 * Moose::Utils::TypeConstraints
1263 - reorganized the type constraint hierarchy, thanks
1264 to nothingmuch and chansen for his help and advice
1266 - added some tests for this
1267 - keywords are now exported with Sub::Exporter
1268 thanks to chansen for this commit
1270 * Moose::Meta::Class
1271 - due to changes in Class::MOP, we had to change
1272 construct_instance (for the better)
1274 * Moose::Meta::Attribute
1275 - due to changes in Class::MOP, we had to add the
1276 initialize_instance_slot method (it's a good thing)
1278 * Moose::Meta::TypeConstraint
1279 - added type constraint unions
1280 - added tests for this
1281 - added the is_subtype_of predicate method
1282 - added tests for this
1284 0.04 Sun. April 16th, 2006
1286 - Roles can now consume other roles
1287 - added tests for this
1288 - Roles can specify required methods now with
1289 the requires() keyword
1290 - added tests for this
1293 - ripped out much of it's guts ,.. much cleaner now
1294 - added required methods and correct handling of
1295 them in apply() for both classes and roles
1296 - added tests for this
1297 - no longer adds a does() method to consuming classes
1298 it relys on the one in Moose::Object
1299 - added roles attribute and some methods to support
1300 roles consuming roles
1302 * Moose::Meta::Attribute
1303 - added support for triggers on attributes
1304 - added tests for this
1305 - added support for does option on an attribute
1306 - added tests for this
1308 * Moose::Meta::Class
1309 - added support for attribute triggers in the
1311 - added tests for this
1314 - Moose no longer creates a subtype for your class
1315 if a subtype of the same name already exists, this
1316 should DWIM in 99.9999% of all cases
1318 * Moose::Util::TypeConstraints
1319 - fixed bug where incorrect subtype conflicts were
1321 - added test for this
1324 - this class can now be extended with 'use base' if
1325 you need it, it properly loads the metaclass class now
1326 - added test for this
1328 0.03_02 Wed. April 12, 2006
1330 - you must now explictly use Moose::Util::TypeConstraints
1331 it no longer gets exported for you automatically
1334 - new() now accepts hash-refs as well as key/value lists
1335 - added does() method to check for Roles
1336 - added tests for this
1338 * Moose::Meta::Class
1339 - added roles attribute along with the add_role() and
1341 - added tests for this
1344 - now adds a does() method to consuming classes
1345 which tests the class's hierarchy for roles
1346 - added tests for this
1348 0.03_01 Mon. April 10, 2006
1350 - added new Role recipe (no content yet, only code)
1353 - added 'with' keyword for Role support
1354 - added test and docs for this
1355 - fixed subtype quoting bug
1356 - added test for this
1360 - added test and docs
1362 * Moose::Util::TypeConstraints
1363 - added the message keyword to add custom
1364 error messages to type constraints
1367 - the meta role to support Moose::Role
1368 - added tests and docs
1370 * Moose::Meta::Class
1371 - moved a number of things from Moose.pm
1372 to here, they should have been here
1375 * Moose::Meta::Attribute
1376 - moved the attribute option macros here
1377 instead of putting them in Moose.pm
1379 * Moose::Meta::TypeConstraint
1380 - added the message attributes and the
1382 - added tests and docs for this
1384 0.03 Thurs. March 30, 2006
1386 - added the Moose::Cookbook with 5 recipes,
1387 describing all the stuff Moose can do.
1390 - fixed an issue with &extends super class loading
1391 it now captures errors and deals with inline
1392 packages correctly (bug found by mst, solution
1394 - added super/override & inner/augment features
1395 - added tests and docs for these
1398 - BUILDALL now takes a reference of the %params
1399 that are passed to &new, and passes that to
1402 * Moose::Util::TypeConstraints
1403 - Type constraints now survive runtime reloading
1404 - added test for this
1406 * Moose::Meta::Class
1407 - fixed the way attribute defaults are handled
1408 during instance construction (bug found by chansen)
1410 * Moose::Meta::Attribute
1411 - read-only attributes now actually enforce their
1412 read-only-ness (this corrected in Class::MOP as
1415 0.02 Tues. March 21, 2006
1417 - many more tests, fixing some bugs and
1419 - &extends now loads the base module with
1421 - added UNIVERSAL::require to the
1424 - each new Moose class will also create
1425 and register a subtype of Object which
1426 correspond to the new Moose class.
1427 - the 'isa' option in &has now only
1428 accepts strings, and will DWIM in
1431 * Moose::Util::TypeConstraints
1432 - added type coercion features
1433 - added tests for this
1434 - added support for this in attributes
1435 and instance construction
1437 - type construction no longer creates a
1438 function, it registers the type instead.
1439 - added several functions to get the
1443 - BUILDALL and DEMOLISHALL were broken
1444 because of a mis-named hash key, Whoops :)
1446 * Moose::Meta::Attribute
1447 - adding support for coercion in the
1448 autogenerated accessors
1450 * Moose::Meta::Class
1451 - adding support for coercion in the
1452 instance construction
1454 * Moose::Meta::TypeConstraint
1455 * Moose::Meta::TypeCoercion
1456 - type constraints and coercions are now
1457 full fledges meta-objects
1459 0.01 Wed. March 15, 2006
1460 - Moooooooooooooooooose!!!