1 Revision history for Perl extension Moose
3 0.50 Thurs. Jun 11, 2008
4 - Fixed a version number issue by bumping all modules
7 0.49 Thurs. Jun 11, 2008
8 !! This version now approx. 20-25% !!
9 !! faster with new Class::MOP 0.59 !!
11 * Moose::Meta::Attribute
12 - fixed how the is => (ro|rw) works with
13 custom defined reader, writer and accessor
15 - added docs for this (TODO).
16 - added tests for this (Thanks to Penfold)
17 - added the custom attribute alias for regular
18 Moose attributes which is "Moose"
19 - fix builder and default both being used
24 Moose::Meta::Attribute
26 Moose::Meta::Role::Composite
27 Moose::Util::TypeConstraints
28 - switched usage of reftype to ref because
32 - changing add_package_symbol to use the new
36 - fixed how DEMOLISHALL is called so that it
37 can be overrided in subclasses (thanks to Sartak)
38 - added test for this (thanks to Sartak)
40 * Moose::Util::TypeConstraints
41 - move the ClassName type check code to
42 Class::MOP::is_class_loaded (thanks to Sartak)
44 * Moose::Cookbook::Recipe11
45 - add tests for this (thanks to tokuhirom)
47 0.48 Thurs. May 29, 2008
48 (early morning release engineering)--
50 - fixing the version in Moose::Meta::Method::Destructor
51 which was causing the indexer to choke
53 0.47 Thurs. May 29, 2008
54 (late night release engineering)--
56 - fixing the version is META.yml, no functional
57 changes in this release
59 0.46 Wed. May 28, 2008
60 !! This version now approx. 20-25% !!
61 !! faster with new Class::MOP 0.57 !!
64 - some optimizations of the &initialize method
65 since it is called so often by &meta
69 - now use the get_all_package_symbols from the
70 updated Class::MOP, test suite is now 10 seconds
73 * Moose::Meta::Method::Destructor
74 - is_needed can now also be called as a class
75 method for immutablization to check if the
76 destructor object even needs to be created
79 * Moose::Meta::Method::Destructor
80 Moose::Meta::Method::Constructor
81 - added more descriptive error message to help
82 keep people from wasting time tracking an error
83 that is easily fixed by upgrading.
85 0.45 Saturday, May 24, 2008
87 - Because of work in Class::MOP 0.56, all
88 XS based functionality is now optional
89 and a Pure Perl version is supplied
90 - the CLASS_MOP_NO_XS environment variable
91 can now be used to force non-XS versions
93 - several of the packages have been tweaked
94 to take care of this, mostly we added
95 support for the package_name and name
96 variables in all the Method metaclasses
97 - before/around/after method modifiers now
98 support regexp matching of names
99 (thanks to Takatoshi Kitano)
100 - tests added for this
101 - NOTE: this only works for classes, it
102 is currently not supported in roles,
103 but, ... patches welcome
104 - All usage of Carp::confess have been replaced
105 by Carp::croak in the "keyword" functions since
106 the stack trace is usually not helpful
109 - All usage of Carp::confess have been replaced
110 by Carp::croak in the "keyword" functions since
111 the stack trace is usually not helpful
112 - The 'has' keyword for roles now accepts the
113 same array ref form that Moose.pm does
114 (has [qw/foo bar/] => (is => 'rw', ...))
115 - added test for this
117 * Moose::Meta::Attribute
118 - trigger on a ro-attribute is no longer an
119 error, as it's useful to trigger off of the
123 - added same 'add_package_symbol' fix as in
127 - does_role now handles non-Moose classes
129 - added tests for this
130 - added the 'add_method_modifier' function
131 (thanks to Takatoshi Kitano)
133 * Moose::Util::TypeConstraints
134 - subtypes of parameterizable types now are
135 themselves parameterizable types
137 * Moose::Meta::Method::Constructor
138 - fixed bug where trigger was not being
139 called by the inlined immutable
141 - added test for this (thanks to Caelum)
143 * Moose::Meta::Role::Application::ToInstance
144 - now uses the metaclass of the instance
145 (if possible) to create the anon-class
146 (thanks Jonathan Rockway)
148 * Moose::Cookbook::Recipe22
149 - added the meta-attribute trait recipe
153 - fixed hash-ordering test bug that was
154 causing occasional cpantester failures
155 - renamed the t/000_recipe/*.t tests to be
156 more descriptive (thanks to Sartak)
158 0.44 Sat. May 10, 2008
160 - made make_immutable warning cluck to
161 show where the error is (thanks mst)
164 - BUILDALL and DEMOLISHALL now call
165 ->body when looping through the
166 methods, to avoid the overloaded
168 - fixed issue where DEMOLISHALL was
169 eating the $@ values, and so not
170 working correctly, it still kind of
171 eats them, but so does vanilla perl
172 - added tests for this
174 * Moose::Cookbook::Recipe7
175 - added new recipe for immutable
176 functionality (thanks Dave Rolsky)
178 * Moose::Cookbook::Recipe9
179 - added new recipe for builder and
180 lazy_build (thanks Dave Rolsky)
182 * Moose::Cookbook::Recipe11
183 - added new recipe for method aliasing
184 and exclusion with Roles (thanks Dave Rolsky)
187 - fixed Win32 test failure (thanks spicyjack)
189 ~ removed Build.PL and Module::Build compat
190 since Module::Install has done that.
192 0.43 Wed. April, 30, 2008
194 drink more coffee before
195 doing release engineering
197 - whoops, forgot to do the smolder tests,
198 and we broke some of the custom meta-attr
199 modules. This fixes that.
201 0.42 Mon. April 28, 2008
202 - some bad tests slipped by, nothing else
203 changed in this release (cpantesters++)
205 - upped the Class::MOP dependency to 0.55
206 since we have tests which need the C3
209 0.41 Mon. April 28, 2008
210 ~~ numerous documentation updates ~~
212 - Changed all usage of die to Carp::croak for better
213 error reporting (initial patch by Tod Hagan)
216 - the make_immutable keyword is now deprecated, don't
217 use it in any new code and please fix your old code
218 as well. There will be 2 releases, and then it will
224 - refactored the way inner and super work to avoid
225 any method/@ISA cache penalty (nothingmuch)
228 - fixing &new_object to make sure trigger gets the
229 coerced value (spotted by Charles Alderman on the
231 - added test for this
233 * Moose::Meta::Method::Constructor
234 - immutable classes which had non-lazy attributes were calling
235 the default generating sub twice in the constructor. (bug
236 found by Jesse Luehrs, fixed by Dave Rolsky)
237 - added tests for this (Dave Rolsky)
238 - fix typo in initialize_body method (nothingmuch)
240 * Moose::Meta::Method::Destructor
241 - fix typo in initialize_body method (nothingmuch)
243 * Moose::Meta::Method::Overriden
244 Moose::Meta::Method::Augmented
245 - moved the logic for these into their own
246 classes (nothingmuch)
248 * Moose::Meta::Attribute
249 - inherited attributes may now be extended without
250 restriction on the type ('isa', 'does') (Sartak)
251 - added tests for this (Sartak)
252 - when an attribute property is malformed (such as lazy without
253 a default), give the name of the attribute in the error
255 - added the &applied_traits and &has_applied_traits methods
256 to allow introspection of traits
257 - added tests for this
258 - moved 'trait' and 'metaclass' argument handling to here from
260 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
261 '+foo' syntax) (nothingmuch)
262 - added tests for this (t0m)
265 - localize $@ inside DEMOLISHALL to avoid it
266 eating $@ (found by Ernesto)
267 - added test for this (thanks to Ernesto)
269 * Moose::Util::TypeConstraints
270 - &find_type_constraint now DWIMs when given an
271 type constraint object or name (nothingmuch)
272 - &find_or_create_type_constraint superseded with a number of more
274 - find_or_create_{isa,does}_type_constraint
275 - find_or_parse_type_constraint
277 * Moose::Meta::TypeConstraint
278 Moose::Meta::TypeConstraint::Class
279 Moose::Meta::TypeConstraint::Role
280 Moose::Meta::TypeConstraint::Enum
281 Moose::Meta::TypeConstraint::Union
282 Moose::Meta::TypeConstraint::Parameterized
283 - added the &equals method for comparing two type
284 constraints (nothingmuch)
285 - added tests for this (nothingmuch)
287 * Moose::Meta::TypeConstraint
288 - add the &parents method, which is just an alias to &parent.
289 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
291 * Moose::Meta::TypeConstraint::Class
292 - added the class attribute for introspection purposes
294 - added tests for this
296 * Moose::Meta::TypeConstraint::Enum
297 Moose::Meta::TypeConstraint::Role
298 - broke these out into their own classes (nothingmuch)
300 * Moose::Cookbook::Recipe*
301 - fixed references to test file locations in the POD
302 and updated up some text for new Moose features
306 - Added &resolve_metaclass_alias, a helper function for finding an actual
307 class for a short name (e.g. in the traits list)
309 0.40 Fri. March 14, 2008
310 - I hate Pod::Coverage
312 0.39 Fri. March 14, 2008
314 - documenting the use of '+name' with attributes
315 that come from recently composed roles. It makes
316 sense, people are using it, and so why not just
317 officially support it.
318 - fixing the 'extends' keyword so that it will not
319 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
322 - added the perl -Moose=+Class::Name feature to allow
323 monkeypatching of classes in one liners
326 - fixing the 'apply_all_roles' keyword so that it will not
327 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
330 - added ->create method which now supports roles (thanks to jrockway)
331 - added tests for this
332 - added ->create_anon_class which now supports roles and caching of
333 the results (thanks to jrockway)
334 - added tests for this
335 - made ->does_role a little more forgiving when it is
336 checking a Class::MOP era metaclasses.
338 * Moose::Meta::Role::Application::ToInstance
339 - it is now possible to pass extra params to be used when
340 a role is applied to an the instance (rebless_params)
341 - added tests for this
343 * Moose::Util::TypeConstraints
344 - class_type now accepts an optional second argument for a
345 custom message. POD anotated accordingly (groditi)
346 - added tests for this
347 - it is now possible to make anon-enums by passing 'enum' an
348 ARRAY ref instead of the $name => @values. Everything else
350 - added tests for this
353 - making test for using '+name' on attributes consumed
354 from a role, it works and makes sense too.
356 * Moose::Meta::Attribute
357 - fix handles so that it doesn't return nothing
358 when the method cannot be found, not sure why
359 it ever did this originally, this means we now
360 have slightly better support for AUTOLOADed
362 - added more delegation tests
363 - adding ->does method to this so as to better
364 support traits and their introspection.
365 - added tests for this
368 - localizing the Data::Dumper configurations so
369 that it does not pollute others (RT #33509)
370 - made ->does a little more forgiving when it is
371 passed Class::MOP era metaclasses.
373 0.38 Fri. Feb. 15, 2008
374 * Moose::Meta::Attribute
375 - fixed initializer to correctly do
376 type checking and coercion in the
378 - added tests for this
381 - fixed some finicky tests (thanks to konobi)
383 0.37 Thurs. Feb. 14, 2008
385 - fixed some details in Moose::init_meta
386 and its superclass handling (thanks thepler)
387 - added tests for this (thanks thepler)
388 - 'has' now dies if you don't pass in name
390 - added the 'make_immutable' keyword as a shortcut
394 Moose::Meta::Method::Constructor
395 Moose::Meta::Attribute
396 - making (init_arg => undef) work here too
397 (thanks to nothingmuch)
399 * Moose::Meta::Attribute
400 Moose::Meta::Method::Constructor
401 Moose::Meta::Method::Accessor
402 - make lazy attributes respect attr initializers (rjbs)
403 - added tests for this
405 * Moose::Util::TypeConstraints
406 Moose::Util::TypeConstraints::OptimizedConstraints
407 Moose::Meta::TypeConstraints
408 Moose::Meta::Attribute
409 Moose::Meta::Method::Constructor
410 Moose::Meta::Method::Accessor
411 - making type errors use the
412 assigned message (thanks to Sartak)
413 - added tests for this
415 * Moose::Meta::Method::Destructor
416 - making sure DESTROY gets inlined properly
417 with successive DEMOLISH calls (thanks to manito)
419 * Moose::Meta::Attribute
420 Moose::Meta::Method::Accessor
421 - fixed handling of undef with type constraints
423 - added tests for this
426 - added &get_all_init_args and &get_all_attribute_values
427 (thanks to Sartak and nothingmuch)
429 0.36 Sat. Jan. 26, 2008
431 Moose::Meta::Attribute
432 - role type tests now support when roles are
433 applied to non-Moose classes (found by ash)
434 - added tests for this (thanks to ash)
435 - couple extra tests to boost code coverage
437 * Moose::Meta::Method::Constructor
438 - improved fix for handling Class::MOP attributes
439 - added test for this
442 - handled the add_attribute($attribute_meta_object)
444 - added test for this
446 0.35 Tues. Jan. 22, 2008
447 * Moose::Meta::Method::Constructor
448 - fix to make sure even Class::MOP attributes
449 are handled correctly (Thanks to Dave Rolsky)
450 - added test for this (also Dave Rolsky)
453 - improved error message on _apply_all_roles,
454 you should now use Moose::Util::apply_all_roles
455 and you shouldnt have been using a _ prefixed
456 method in the first place ;)
458 0.34 Mon. Jan. 21, 2008
459 ~~~ more misc. doc. fixes ~~~
460 ~~ updated copyright dates ~~
462 Moose is now a postmodern object system :)
463 - (see the POD for details)
465 * <<Role System Refactoring>>
466 - this release contains a major reworking and
467 cleanup of the role system
468 - 100% backwards compat.
469 - Role application now restructured into seperate
470 classes based on type of applicants
471 - Role summation (combining of more than one role)
472 is much cleaner and anon-classes are no longer
474 - new Composite role metaclass
475 - runtime application of roles to instances
476 is now more efficient and re-uses generated
477 classes when applicable
479 * <<New Role composition features>>
480 - methods can now be excluded from a given role
482 - methods can now be aliased to another name (and
483 still retain the original as well)
485 * Moose::Util::TypeConstraints::OptimizedConstraints
486 - added this module (see above)
489 - fixed the &_process_attribute method to be called
490 by &add_attribute, so that the API is now correct
492 * Moose::Meta::Method::Accessor
493 - fixed bug when passing a list of values to
494 an accessor would get (incorrectly) ignored.
495 Thanks to Sartak for finding this ;)
496 - added tests for this (Sartak again)
498 * Moose::Meta::Method::Accessor
499 Moose::Meta::Method::Constructor
500 Moose::Meta::Attribute
501 Moose::Meta::TypeConstraint
502 Moose::Meta::TypeCoercion
503 - lots of cleanup of such things as:
505 - type constraint handling
506 - error handling/messages
507 (thanks to nothingmuch)
509 * Moose::Meta::TypeConstraint::Parameterizable
510 - added this module to support the refactor
511 in Moose::Meta::TypeConstraint::Parameterized
513 * Moose::Meta::TypeConstraint::Parameterized
514 - refactored how these types are handled so they
515 are more generic and not confined to ArrayRef
519 - shortened some file names for better VMS support (RT #32381)
521 0.33 Fri. Dec. 14, 2007
522 !! Moose now loads 2 x faster !!
523 !! with new Class::MOP 0.49 !!
525 ++ new oose.pm module to make command line
526 Moose-ness easier (see POD docs for more)
530 - several tweaks to take advantage of the
531 new method map caching in Class::MOP
533 * Moose::Meta::TypeConstraint::Parameterized
534 - allow subtypes of ArrayRef and HashRef to
535 be used as a container (sartak)
536 - added tests for this
537 - basic support for coercion to ArrayRef and
538 HashRef for containers (sartak)
539 - added tests for this
541 * Moose::Meta::TypeCoercion
542 - coercions will now create subtypes as needed
543 so you can now add coercions to parameterized
544 types without having to explictly define them
545 - added tests for this
547 * Moose::Meta::Method::Accessor
548 - allow subclasses to decide whether we need
549 to copy the value into a new variable (sartak)
551 0.32 Tues. Dec. 4, 2007
552 * Moose::Util::TypeConstraints
553 - fixing how subtype aliases of unions work
554 they should inherit the parent's coercion
555 - added tests for this
556 - you can now define multiple coercions on
557 a single type at different times instead of
558 having to do it all in one place
559 - added tests for this
561 * Moose::Meta::TypeConstraint
562 - there is now a default constraint of sub { 1 }
563 instead of Moose::Util::TypeConstraints setting
566 * Moose::Meta::TypeCoercion
567 * Moose::Meta::TypeCoercion::Union
568 - added the &has_coercion_for_type and
569 &add_type_coercions methods to support the
570 new features above (although you cannot add
571 more type coercions for Union types)
573 0.31 Mon. Nov. 26, 2007
574 * Moose::Meta::Attribute
575 - made the +attr syntax handle extending types with
576 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
577 now works if the original foo is an ArrayRef.
578 - added tests for this.
579 - delegation now works even if the attribute does not
580 have a reader method using the get_read_method_ref
581 method from Class::MOP::Attribute.
582 - added tests for this
583 - added docs for this
585 * Moose::Util::TypeConstraints
586 - passing no "additional attribute info" to
587 &find_or_create_type_constraint will no longer
588 attempt to create an __ANON__ type for you,
589 instead it will just return undef.
590 - added docs for this
592 0.30 Fri. Nov. 23, 2007
593 * Moose::Meta::Method::Constructor
594 -builder related bug in inlined constructor. (groditi)
596 * Moose::Meta::Method::Accessor
597 - genereate unnecessary calls to predicates and refactor
598 code generation for runtime speed (groditi)
600 * Moose::Util::TypeConstraints
601 - fix ClassName constraint to introspect symbol table (mst)
602 - added more tests for this (mst)
603 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
605 - added tests for this
608 - adding the link to Recipie 11 (written by Sartak)
609 - adding test for SYNOPSIS code
612 - New tests for builder bug. Upon instantiation, if an
613 attribute had a builder, no value and was not lazy the
614 builder default was not getting run, oops. (groditi)
616 0.29 Tues. Nov. 13, 2007
617 * Moose::Meta::Attribute
618 - Fix error message on missing builder method (groditi)
620 * Moose::Meta::Method::Accessor
621 - Fix error message on missing builder method (groditi)
624 - Add test to check for the correct error message when
625 builder method is missing (groditi)
627 0.28 Tues. Nov. 13, 2007
628 - 0.27 packaged incorrectly (groditi)
630 0.27 Tues. Nov. 13, 2007
631 * Moose::Meta::Attribute
632 - Added support for the new builder option (groditi)
633 - Added support for lazy_build option (groditi)
634 - Changed slot initialization for predicate changes (groditi)
636 * Moose::Meta::Method::Accessor
637 - Added support for lazy_build option (groditi)
638 - Fix inline methods to work with corrected predicate
641 * Moose::Meta::Method::Constructor
642 - Added support for lazy_build option (groditi)
645 - tests for builder and lazy_build (groditi)
647 * fixing some misc. bits in the docs that
648 got mentioned on CPAN Forum & perlmonks
651 - fixed how required methods are handled
652 when they encounter overriden or modified
653 methods from a class (thanks to confound).
654 - added tests for this
656 * Moose::Util::TypeConstraint
657 - fixed the type notation parser so that
658 the | always creates a union and so is
659 no longer a valid type char (thanks to
660 konobi, mugwump and #moose for working
662 - added more tests for this
664 0.26 Thurs. Sept. 27, 2007
667 * Parameterized Types
668 We now support parameterized collection types, such as:
669 ArrayRef[Int] # array or integers
670 HashRef[Object] # a hash with object values
671 They can also be nested:
672 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
673 And work with the type unions as well:
674 ArrayRef[Int | Str] # array of integers of strings
676 * Better Framework Extendability
677 Moose.pm is now "extendable" such that it is now much
678 easier to extend the framework and add your own keywords
679 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
680 section of the Moose.pm docs.
683 In an effort to begin documenting some of the various
684 details of Moose as well as some common idioms, we have
685 created Moose::Cookbook::Snacks as a place to find
686 small (easily digestable) nuggets of Moose code.
689 ~ Several doc updates/cleanup thanks to castaway ~
691 - converted build system to use Module::Install instead of
692 Module::Build (thanks to jrockway)
695 - added all the meta classes to the immutable list and
696 set it to inline the accessors
697 - fix import to allow Sub::Exporter like { into => }
698 and { into_level => } (perigrin)
699 - exposed and documented init_meta() to allow better
700 embedding and extending of Moose (perigrin)
703 - complete re-organization of the test suite
704 - added some new tests as well
705 - finally re-enabled the Moose::POOP test since
706 the new version of DBM::Deep now works again
710 - fixed very odd and very nasty recursion bug with
712 - added tests for this (eilara)
714 * Moose::Meta::Attribute
715 Moose::Meta::Method::Constructor
716 Moose::Meta::Method::Accessor
717 - fixed issue with overload::Overloaded getting called
718 on non-blessed items. (RT #29269)
719 - added tests for this
721 * Moose::Meta::Method::Accessor
722 - fixed issue with generated accessor code making
723 assumptions about hash based classes (thanks to dexter)
725 * Moose::Coookbook::Snacks
726 - these are bits of documentation, not quite as big as
727 Recipes but which have no clear place in the module docs.
728 So they are Snacks! (horray for castaway++)
730 * Moose::Cookbook::Recipe4
731 - updated it to use the new ArrayRef[MyType] construct
732 - updated the accompanying test as well
734 +++ Major Refactor of the Type Constraint system +++
735 +++ with new features added as well +++
737 * Moose::Util::TypeConstraint
738 - no longer uses package variable to keep track of
739 the type constraints, now uses the an instance of
740 Moose::Meta::TypeConstraint::Registry to do it
741 - added more sophisticated type notation parsing
743 - added tests for this
745 * Moose::Meta::TypeConstraint
746 - some minor adjustments to make subclassing easier
747 - added the package_defined_in attribute so that we
748 can track where the type constraints are created
750 * Moose::Meta::TypeConstraint::Union
751 - this is now been refactored to be a subclass of
752 Moose::Meta::TypeConstraint
754 * Moose::Meta::TypeCoercion::Union
755 - this has been added to service the newly refactored
756 Moose::Meta::TypeConstraint::Union and is itself
757 a subclass of Moose::Meta::TypeCoercion
759 * Moose::Meta::TypeConstraint::Parameterized
760 - added this module (taken from MooseX::AttributeHelpers)
761 to help construct nested collection types
762 - added tests for this
764 * Moose::Meta::TypeConstraint::Registry
765 - added this class to keep track of type constraints
767 0.25 Mon. Aug. 13, 2007
769 - Documentation update to reference Moose::Util::TypeConstraints
770 under 'isa' in 'has' for how to define a new type
773 * Moose::Meta::Attribute
774 - required attributes now will no longer accept undef
775 from the constructor, even if there is a default and lazy
776 - added tests for this
777 - default subroutines must return a value which passes the
779 - added tests for this
781 * Moose::Meta::Attribute
782 * Moose::Meta::Method::Constructor
783 * Moose::Meta::Method::Accessor
784 - type-constraint tests now handle overloaded objects correctly
786 - added tests for this (thanks to EvanCarroll)
788 * Moose::Meta::TypeConstraint::Union
789 - added (has_)hand_optimized_constraint to this class so that
790 it behaves as the regular Moose::Meta::TypeConstraint does.
793 - large refactoring of this code
794 - added several more tests
795 - tests for subtle conflict resolition issues
796 added, but not currently running
799 * Moose::Cookbook::Recipe7
800 - added new recipe for augment/inner functionality
802 - added test for this
805 - a formal definition of roles (still in progress)
808 - utilities for easier working with Moose classes
809 - added tests for these
812 - This contains Moose specific test functions
813 - added tests for these
815 0.24 Tues. July 3, 2007
816 ~ Some doc updates/cleanup ~
818 * Moose::Meta::Attribute
819 - added support for roles to be given as parameters
820 to the 'handles' option.
821 - added tests and docs for this
822 - the has '+foo' attribute form now accepts changes to
823 the lazy option, and the addition of a handles option
824 (but not changing the handles option)
825 - added tests and docs for this
828 - required methods are now fetched using find_method_by_name
829 so that required methods can come from superclasses
830 - adjusted tests for this
832 0.23 Mon. June 18, 2007
833 * Moose::Meta::Method::Constructor
834 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
836 - Modify make_immutable to work with the new Class::MOP immutable
837 mechanism + POD + very basic test (groditi)
838 * Moose::Meta::Attribute
839 - Fix handles to use goto() so that caller() comes out properly on
840 the other side (perigrin)
842 0.22 Thurs. May 31, 2007
843 * Moose::Util::TypeConstraints
844 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
845 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
846 prototypes for functions
847 - added the ClassName type constraint, this checks for strings
848 which will respond true to ->isa(UNIVERSAL).
849 - added tests and docs for this
850 - subtyping just in name now works correctly by making the
851 default for where be { 1 }
852 - added test for this
854 * Moose::Meta::Method::Accessor
855 - coerce and lazy now work together correctly, thanks to
856 merlyn for finding this bug
857 - tests added for this
858 - fix reader presedence bug in Moose::Meta::Attribute + tests
861 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
862 a HASH-ref and missed. This produces better error messages then
863 having it die cause undef is not a HASH.
864 - added tests for this
866 0.21 Thursday, May 2nd, 2007
868 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
869 - modified unimport to remove super and inner along with the rest
870 - altered unimport tests to handle this
873 - altered super export to populate SUPER_SLOT
876 - altered augment and override modifier application to use *_SLOT
877 - modified tests for these to unimport one test class each to test
880 - fixed issue where custom attribute metaclasses
881 where not handled correctly in roles
882 - added tests for this
885 - fixed issue where extending metaclasses with
886 roles would blow up. Thanks to Aankhen`` for
887 finding this insidious error, and it's solution.
889 ~~ lots of spelling and grammer fixes in the docs,
890 many many thanks to rlb3 and Aankhen for these :)
892 0.20 Friday, April 6th, 2007
893 >> I messed up the SKIP logic in one test
894 so this release is just to fix that.
897 - 'has' now also accepts an ARRAY ref
898 to create multiple attrs (see docs)
899 (thanks to konobi for this)
900 - added tests and docs
902 0.19 Thurs. April 5th, 2007
903 ~~ More documentation updates ~~
905 * Moose::Util::TypeConstraints
906 - 'type' now supports messages as well
907 thanks to phaylon for finding this
908 - added tests for this
909 - added &list_all_type_constraints and
910 &list_all_builtin_type_constraints
911 functions to facilitate introspection.
913 * Moose::Meta::Attribute
914 - fixed regexp 'handles' declarations
915 to build the list of delegated methods
916 correctly (and not override important
917 things like &new) thanks to ashleyb
919 - added tests and docs for this
920 - added the 'documentation' attributes
921 so that you can actually document your
922 attributes and inspect them through the
924 - added tests and docs for this
927 - when loading custom attribute metaclasses
928 it will first look in for the class in the
929 Moose::Meta::Attribute::Custom::$name, and
930 then default to just loading $name.
931 - added tests and docs for this
933 * Moose::Meta::TypeConstraint
934 - type constraints now stringify to their names.
935 - added test for this
938 - added tests to assure we work with Module::Refresh
939 - added stricter test skip logic in the Moose POOP
940 test, ask Rob Kinyon why.
941 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
943 0.18 Sat. March 10, 2007
944 ~~ Many, many documentation updates ~~
947 - We now use Class::MOP::load_class to
949 - added tests to show types and subtypes
950 working with Declare::Constraints::Simple
951 and Test::Deep as constraint engines.
954 !! You must have Class::MOP 0.37_001 !!
955 !! for this developer release to work !!
957 This release was primarily adding the immutable
958 feature to Moose. An immutable class is one which
959 you promise not to alter. When you set the class
960 as immutable it will perform various bits of
961 memoization and inline certain part of the code
962 (constructors, destructors and accessors). This
963 minimizes (and in some cases totally eliminates)
964 one of Moose's biggest performance hits. This
965 feature is not on by default, and is 100% optional.
966 It has several configurable bits as well, so you
967 can pick and choose to your specific needs.
969 The changes involved in this were fairly wide and
970 highly specific, but 100% backwards compatible, so
971 I am not going to enumerate them here. If you are
972 truely interested in what was changed, please do
975 0.17 Tues. Nov. 14, 2006
976 * Moose::Meta::Method::Accessor
977 - bugfix for read-only accessors which
978 are have a type constraint and lazy.
979 Thanks to chansen for finding it.
981 0.16 Tues. Nov. 14, 2006
983 There are some speed improvements in this release,
984 but they are only the begining, so stay tuned.
987 - BUILDALL and DEMOLISHALL no longer get
988 called unless they actually need to be.
989 This gave us a signifigant speed boost
990 for the cases when there is no BUILD or
991 DEMOLISH method present.
993 * Moose::Util::TypeConstraints
994 * Moose::Meta::TypeConstraint
995 - added an 'optimize_as' option to the
996 type constraint, which allows for a
997 hand optimized version of the type
998 constraint to be used when possible.
999 - Any internally created type constraints
1000 now provide an optimized version as well.
1002 0.15 Sun. Nov. 5, 2006
1004 This version of Moose *must* have Class::MOP 0.36 in order
1005 to work correctly. A number of small internal tweaks have
1006 been made in order to be compatible with that release.
1008 * Moose::Util::TypeConstraints
1009 - added &unimport so that you can clean out
1010 your class namespace of these exported
1013 * Moose::Meta::Class
1014 - fixed minor issue which occasionally
1015 comes up during global destruction
1017 - moved Moose::Meta::Method::Overriden into
1021 - moved Moose::Meta::Role::Method into
1024 * Moose::Meta::Attribute
1025 - changed how we do type checks so that
1026 we reduce the overall cost, but still
1029 - moved accessor generation methods to
1030 Moose::Meta::Method::Accessor to
1031 conform to the API changes from
1034 * Moose::Meta::TypeConstraint
1035 - changed how constraints are compiled
1036 so that we do less recursion and more
1037 iteration. This makes the type check
1039 - moved Moose::Meta::TypeConstraint::Union
1042 * Moose::Meta::Method::Accessor
1043 - created this from methods formerly found in
1044 Moose::Meta::Attribute
1046 * Moose::Meta::Role::Method
1047 - moved this from Moose::Meta::Role
1049 * Moose::Meta::Method::Overriden
1050 - moved this from Moose::Meta::Class
1052 * Moose::Meta::TypeConstraint::Union
1053 - moved this from Moose::Meta::TypeConstraint
1055 0.14 Mon. Oct. 9, 2006
1057 * Moose::Meta::Attribute
1058 - fixed lazy attributes which were not getting
1059 checked with the type constraint (thanks ashley)
1060 - added tests for this
1061 - removed the over-enthusiastic DWIMery of the
1062 automatic ArrayRef and HashRef defaults, it
1063 broke predicates in an ugly way.
1064 - removed tests for this
1066 0.13 Sat. Sept. 30, 2006
1068 This version of Moose *must* have Class::MOP 0.35 in order
1069 to work correctly. A number of small internal tweaks have
1070 been made in order to be compatible with that release.
1073 - Removed the use of UNIVERSAL::require to be a better
1074 symbol table citizen and remove a dependency
1075 (thanks Adam Kennedy)
1077 **~~ removed experimental & undocumented feature ~~**
1078 - commented out the 'method' and 'self' keywords, see the
1079 comments for more info.
1082 - added a FAQ and WTF files to document frequently
1083 asked questions and common problems
1085 * Moose::Util::TypeConstraints
1086 - added GlobRef and FileHandle type constraint
1087 - added tests for this
1089 * Moose::Meta::Attribute
1090 - if your attribute 'isa' ArrayRef of HashRef, and you have
1091 not explicitly set a default, then make the default DWIM.
1092 This will also work for subtypes of ArrayRef and HashRef
1094 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1095 - new test added for this (thanks to ashley)
1098 - added basic support for runtime role composition
1099 but this is still *highly experimental*, so feedback
1100 is much appreciated :)
1101 - added tests for this
1103 * Moose::Meta::TypeConstraint
1104 - the type constraint now handles the coercion process
1105 through delegation, this is to support the coercion
1108 * Moose::Meta::TypeConstraint::Union
1109 - it is now possible for coercions to be performed
1111 - added tests for this (thanks to konobi)
1113 * Moose::Meta::TypeCoercion
1114 - properly capturing error when type constraint
1118 - Scalar::Util 1.18 is bad on Win32, so temporarily
1119 only require version 1.17 for Win32 and cygwin.
1120 (thanks Adam Kennedy)
1122 0.12 Sat. Sept. 1, 2006
1124 - Recipe5 (subtypes & coercion) has been written
1127 - fixed "bad meta" error message to be more descriptive
1128 - fixed &unimport to not remove the &inner and &super
1129 keywords because we need to localize them.
1130 - fixed number of spelling/grammer issues, thanks Theory :)
1132 **~~ experimental & undocumented feature ~~**
1133 - added the method and self keywords, they are basically
1134 just sugar, and they may not stay around.
1137 - added &dump method to easily Data::Dumper
1140 * Moose::Meta::TypeConstraint
1141 - added the &is_a_type_of method to check both the current
1142 and the subtype of a method (similar to &isa with classes)
1145 - this is now a subclass of Class::MOP::Module, and no longer
1146 creates the _role_meta ugliness of before.
1147 - fixed tests to reflect this change
1149 0.11 Wed. July 12, 2006
1151 - added an &unimport method to remove all the keywords
1152 that Moose will import, simply add 'no Moose' to the
1153 bottom of your class file.
1156 - fixed some test failures caused by a forgotten test
1159 0.10 Thurs. July 6, 2006
1161 - improved error message when loading modules so
1162 it is less confusing when you load a role.
1163 - added &calculate_all_roles method to
1164 Moose::Meta::Class and Moose::Meta::Role
1167 This module has been tested against Class::MOP 0.30
1168 but it does not yet utilize the optimizations
1169 it makes available. Stay tuned for that ;)
1171 0.09_03 Fri. June 23, 2006
1172 ++ DEVELOPER RELEASE ++
1174 - 'use strict' and 'use warnings' are no longer
1175 needed in Moose classes, Moose itself will
1176 turn them on for you.
1177 - added tests for this
1178 - moved code from exported subs to private methods
1179 in Moose::Meta::Class
1182 - as with Moose, strict and warnings are
1183 automatically turned on for you.
1184 - added tests for this
1187 - now handles an edge case for override errors
1188 - added tests for this
1189 - added some more edge case tests
1191 0.09_02 Tues. May 16, 2006
1192 ++ DEVELOPER RELEASE ++
1194 - added prototypes to the exported subs
1198 - added prototypes to the exported subs
1201 * Moose::Util::TypeConstraints
1202 - cleaned up prototypes for the subs
1205 0.09_01 Fri. May 12, 2006
1206 ++ DEVELOPER RELEASE ++
1207 - This release works in combination with
1208 Class::MOP 0.29_01, it is a developer
1209 release because it uses the a new
1210 instance sub-protocol and a fairly
1211 complete Role implementation. It has
1212 not yet been optimized, so it slower
1213 the the previous CPAN version. This
1214 release also lacks good updated docs,
1215 the official release will have updated docs.
1218 - refactored the keyword exports
1219 - 'with' now checks Role validaity and
1220 accepts more than one Role at a time
1221 - 'extends' makes metaclass adjustments as
1222 needed to ensure metaclass compatability
1225 - refactored the keyword exports
1226 - 'with' now checks Role validaity and
1227 accepts more than one Role at a time
1229 * Moose::Util::TypeConstraints
1230 - added the 'enum' keyword for simple
1231 string enumerations which can be used as
1233 - see example of usage in t/202_example.t
1236 - more careful checking of params to new()
1239 - much work done on the role composition
1240 - many new tests for conflict detection
1241 and composition edge cases
1242 - not enough documentation, I suggest
1243 looking at the tests
1245 * Moose::Meta::Instance
1246 - added new Instance metaclass to support
1247 the new Class::MOP instance protocol
1249 * Moose::Meta::Class
1250 - some small changes to support the new
1252 - some small additions to support Roles
1254 * Moose::Meta::Attribute
1255 - some improvements to the accessor generation code
1257 - some small changes to support the new
1259 - (still somewhat) experimental delegation support
1260 with the 'handles' option
1261 - added several tests for this
1262 - no docs for this yet
1264 0.05 Thurs. April 27, 2006
1266 - keywords are now exported with Sub::Exporter
1267 thanks to chansen for this commit
1268 - has keyword now takes a 'metaclass' option
1269 to support custom attribute meta-classes
1270 on a per-attribute basis
1271 - added tests for this
1272 - the 'has' keyword not accepts inherited slot
1273 specifications (has '+foo'). This is still an
1274 experimental feature and probably not finished
1275 see t/038_attribute_inherited_slot_specs.t for
1276 more details, or ask about it on #moose
1277 - added tests for this
1280 - keywords are now exported with Sub::Exporter
1282 * Moose::Utils::TypeConstraints
1283 - reorganized the type constraint hierarchy, thanks
1284 to nothingmuch and chansen for his help and advice
1286 - added some tests for this
1287 - keywords are now exported with Sub::Exporter
1288 thanks to chansen for this commit
1290 * Moose::Meta::Class
1291 - due to changes in Class::MOP, we had to change
1292 construct_instance (for the better)
1294 * Moose::Meta::Attribute
1295 - due to changes in Class::MOP, we had to add the
1296 initialize_instance_slot method (it's a good thing)
1298 * Moose::Meta::TypeConstraint
1299 - added type constraint unions
1300 - added tests for this
1301 - added the is_subtype_of predicate method
1302 - added tests for this
1304 0.04 Sun. April 16th, 2006
1306 - Roles can now consume other roles
1307 - added tests for this
1308 - Roles can specify required methods now with
1309 the requires() keyword
1310 - added tests for this
1313 - ripped out much of it's guts ,.. much cleaner now
1314 - added required methods and correct handling of
1315 them in apply() for both classes and roles
1316 - added tests for this
1317 - no longer adds a does() method to consuming classes
1318 it relys on the one in Moose::Object
1319 - added roles attribute and some methods to support
1320 roles consuming roles
1322 * Moose::Meta::Attribute
1323 - added support for triggers on attributes
1324 - added tests for this
1325 - added support for does option on an attribute
1326 - added tests for this
1328 * Moose::Meta::Class
1329 - added support for attribute triggers in the
1331 - added tests for this
1334 - Moose no longer creates a subtype for your class
1335 if a subtype of the same name already exists, this
1336 should DWIM in 99.9999% of all cases
1338 * Moose::Util::TypeConstraints
1339 - fixed bug where incorrect subtype conflicts were
1341 - added test for this
1344 - this class can now be extended with 'use base' if
1345 you need it, it properly loads the metaclass class now
1346 - added test for this
1348 0.03_02 Wed. April 12, 2006
1350 - you must now explictly use Moose::Util::TypeConstraints
1351 it no longer gets exported for you automatically
1354 - new() now accepts hash-refs as well as key/value lists
1355 - added does() method to check for Roles
1356 - added tests for this
1358 * Moose::Meta::Class
1359 - added roles attribute along with the add_role() and
1361 - added tests for this
1364 - now adds a does() method to consuming classes
1365 which tests the class's hierarchy for roles
1366 - added tests for this
1368 0.03_01 Mon. April 10, 2006
1370 - added new Role recipe (no content yet, only code)
1373 - added 'with' keyword for Role support
1374 - added test and docs for this
1375 - fixed subtype quoting bug
1376 - added test for this
1380 - added test and docs
1382 * Moose::Util::TypeConstraints
1383 - added the message keyword to add custom
1384 error messages to type constraints
1387 - the meta role to support Moose::Role
1388 - added tests and docs
1390 * Moose::Meta::Class
1391 - moved a number of things from Moose.pm
1392 to here, they should have been here
1395 * Moose::Meta::Attribute
1396 - moved the attribute option macros here
1397 instead of putting them in Moose.pm
1399 * Moose::Meta::TypeConstraint
1400 - added the message attributes and the
1402 - added tests and docs for this
1404 0.03 Thurs. March 30, 2006
1406 - added the Moose::Cookbook with 5 recipes,
1407 describing all the stuff Moose can do.
1410 - fixed an issue with &extends super class loading
1411 it now captures errors and deals with inline
1412 packages correctly (bug found by mst, solution
1414 - added super/override & inner/augment features
1415 - added tests and docs for these
1418 - BUILDALL now takes a reference of the %params
1419 that are passed to &new, and passes that to
1422 * Moose::Util::TypeConstraints
1423 - Type constraints now survive runtime reloading
1424 - added test for this
1426 * Moose::Meta::Class
1427 - fixed the way attribute defaults are handled
1428 during instance construction (bug found by chansen)
1430 * Moose::Meta::Attribute
1431 - read-only attributes now actually enforce their
1432 read-only-ness (this corrected in Class::MOP as
1435 0.02 Tues. March 21, 2006
1437 - many more tests, fixing some bugs and
1439 - &extends now loads the base module with
1441 - added UNIVERSAL::require to the
1444 - each new Moose class will also create
1445 and register a subtype of Object which
1446 correspond to the new Moose class.
1447 - the 'isa' option in &has now only
1448 accepts strings, and will DWIM in
1451 * Moose::Util::TypeConstraints
1452 - added type coercion features
1453 - added tests for this
1454 - added support for this in attributes
1455 and instance construction
1457 - type construction no longer creates a
1458 function, it registers the type instead.
1459 - added several functions to get the
1463 - BUILDALL and DEMOLISHALL were broken
1464 because of a mis-named hash key, Whoops :)
1466 * Moose::Meta::Attribute
1467 - adding support for coercion in the
1468 autogenerated accessors
1470 * Moose::Meta::Class
1471 - adding support for coercion in the
1472 instance construction
1474 * Moose::Meta::TypeConstraint
1475 * Moose::Meta::TypeCoercion
1476 - type constraints and coercions are now
1477 full fledges meta-objects
1479 0.01 Wed. March 15, 2006
1480 - Moooooooooooooooooose!!!