1 Revision history for Perl extension Moose
4 * Moose::Cookbook::Snacks::*
5 - removed some of the unfinished snacks that should
6 not have been released yet. Added some more examples
7 and explination to the 'Keywords' snack. (Stevan)
10 - added "FEATURE REQUESTS" section to the Moose docs
11 to properly direct people (Stevan) (RT #34333)
13 * Moose::Cookbook::Style
14 - added general Moose "style guide" of sorts to the
15 cookbook (nothingmuch) (RT #34335)
17 0.51 Thurs. Jun 26, 2008
19 - add unimport so "no Moose::Role" actually does
22 * Moose::Meta::Role::Application::ToRole
23 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
24 order to provide its own implementation, that method still got
25 added to the list of required methods for consumers of
26 RoleB. Now an aliased method is only added to the list of
27 required methods if the role doing the aliasing does not
28 provide its own implementation. See Recipe 11 for an example
29 of all this. (Dave Rolsky)
30 - added tests for this
32 * Moose::Meta::Method::Constructor
33 - when a single argument that wasn't a hashref was provided to
34 an immutabilized constructor, the error message was very
35 unhelpful, as opposed to the non-immutable error. Reported by
37 - added test for this (Dave Rolsky)
39 * Moose::Meta::Attribute
40 - added support for meta_attr->does("ShortAlias") (sartak)
41 - added tests for this (sartak)
42 - moved the bulk of the `handles` handling to the new
43 install_delegation method (Stevan)
46 - Added BUILDARGS, a new step in new()
48 * Moose::Meta::Role::Application::RoleSummation
49 - fix typos no one ever sees (sartak)
51 * Moose::Util::TypeConstraints
52 * Moose::Meta::TypeConstraint
53 * Moose::Meta::TypeCoercion
54 - Attempt to work around the ??{ } vs. threads issue
56 - Some null_constraint optimizations
58 0.50 Thurs. Jun 11, 2008
59 - Fixed a version number issue by bumping all modules
62 0.49 Thurs. Jun 11, 2008
63 !! This version now approx. 20-25% !!
64 !! faster with new Class::MOP 0.59 !!
66 * Moose::Meta::Attribute
67 - fixed how the is => (ro|rw) works with
68 custom defined reader, writer and accessor
70 - added docs for this (TODO).
71 - added tests for this (Thanks to Penfold)
72 - added the custom attribute alias for regular
73 Moose attributes which is "Moose"
74 - fix builder and default both being used
79 Moose::Meta::Attribute
81 Moose::Meta::Role::Composite
82 Moose::Util::TypeConstraints
83 - switched usage of reftype to ref because
87 - changing add_package_symbol to use the new
91 - fixed how DEMOLISHALL is called so that it
92 can be overrided in subclasses (thanks to Sartak)
93 - added test for this (thanks to Sartak)
95 * Moose::Util::TypeConstraints
96 - move the ClassName type check code to
97 Class::MOP::is_class_loaded (thanks to Sartak)
99 * Moose::Cookbook::Recipe11
100 - add tests for this (thanks to tokuhirom)
102 0.48 Thurs. May 29, 2008
103 (early morning release engineering)--
105 - fixing the version in Moose::Meta::Method::Destructor
106 which was causing the indexer to choke
108 0.47 Thurs. May 29, 2008
109 (late night release engineering)--
111 - fixing the version is META.yml, no functional
112 changes in this release
114 0.46 Wed. May 28, 2008
115 !! This version now approx. 20-25% !!
116 !! faster with new Class::MOP 0.57 !!
119 - some optimizations of the &initialize method
120 since it is called so often by &meta
124 - now use the get_all_package_symbols from the
125 updated Class::MOP, test suite is now 10 seconds
128 * Moose::Meta::Method::Destructor
129 - is_needed can now also be called as a class
130 method for immutablization to check if the
131 destructor object even needs to be created
134 * Moose::Meta::Method::Destructor
135 Moose::Meta::Method::Constructor
136 - added more descriptive error message to help
137 keep people from wasting time tracking an error
138 that is easily fixed by upgrading.
140 0.45 Saturday, May 24, 2008
142 - Because of work in Class::MOP 0.56, all
143 XS based functionality is now optional
144 and a Pure Perl version is supplied
145 - the CLASS_MOP_NO_XS environment variable
146 can now be used to force non-XS versions
148 - several of the packages have been tweaked
149 to take care of this, mostly we added
150 support for the package_name and name
151 variables in all the Method metaclasses
152 - before/around/after method modifiers now
153 support regexp matching of names
154 (thanks to Takatoshi Kitano)
155 - tests added for this
156 - NOTE: this only works for classes, it
157 is currently not supported in roles,
158 but, ... patches welcome
159 - All usage of Carp::confess have been replaced
160 by Carp::croak in the "keyword" functions since
161 the stack trace is usually not helpful
164 - All usage of Carp::confess have been replaced
165 by Carp::croak in the "keyword" functions since
166 the stack trace is usually not helpful
167 - The 'has' keyword for roles now accepts the
168 same array ref form that Moose.pm does
169 (has [qw/foo bar/] => (is => 'rw', ...))
170 - added test for this
172 * Moose::Meta::Attribute
173 - trigger on a ro-attribute is no longer an
174 error, as it's useful to trigger off of the
178 - added same 'add_package_symbol' fix as in
182 - does_role now handles non-Moose classes
184 - added tests for this
185 - added the 'add_method_modifier' function
186 (thanks to Takatoshi Kitano)
188 * Moose::Util::TypeConstraints
189 - subtypes of parameterizable types now are
190 themselves parameterizable types
192 * Moose::Meta::Method::Constructor
193 - fixed bug where trigger was not being
194 called by the inlined immutable
196 - added test for this (thanks to Caelum)
198 * Moose::Meta::Role::Application::ToInstance
199 - now uses the metaclass of the instance
200 (if possible) to create the anon-class
201 (thanks Jonathan Rockway)
203 * Moose::Cookbook::Recipe22
204 - added the meta-attribute trait recipe
208 - fixed hash-ordering test bug that was
209 causing occasional cpantester failures
210 - renamed the t/000_recipe/*.t tests to be
211 more descriptive (thanks to Sartak)
213 0.44 Sat. May 10, 2008
215 - made make_immutable warning cluck to
216 show where the error is (thanks mst)
219 - BUILDALL and DEMOLISHALL now call
220 ->body when looping through the
221 methods, to avoid the overloaded
223 - fixed issue where DEMOLISHALL was
224 eating the $@ values, and so not
225 working correctly, it still kind of
226 eats them, but so does vanilla perl
227 - added tests for this
229 * Moose::Cookbook::Recipe7
230 - added new recipe for immutable
231 functionality (thanks Dave Rolsky)
233 * Moose::Cookbook::Recipe9
234 - added new recipe for builder and
235 lazy_build (thanks Dave Rolsky)
237 * Moose::Cookbook::Recipe11
238 - added new recipe for method aliasing
239 and exclusion with Roles (thanks Dave Rolsky)
242 - fixed Win32 test failure (thanks spicyjack)
244 ~ removed Build.PL and Module::Build compat
245 since Module::Install has done that.
247 0.43 Wed. April, 30, 2008
249 drink more coffee before
250 doing release engineering
252 - whoops, forgot to do the smolder tests,
253 and we broke some of the custom meta-attr
254 modules. This fixes that.
256 0.42 Mon. April 28, 2008
257 - some bad tests slipped by, nothing else
258 changed in this release (cpantesters++)
260 - upped the Class::MOP dependency to 0.55
261 since we have tests which need the C3
264 0.41 Mon. April 28, 2008
265 ~~ numerous documentation updates ~~
267 - Changed all usage of die to Carp::croak for better
268 error reporting (initial patch by Tod Hagan)
271 - the make_immutable keyword is now deprecated, don't
272 use it in any new code and please fix your old code
273 as well. There will be 2 releases, and then it will
279 - refactored the way inner and super work to avoid
280 any method/@ISA cache penalty (nothingmuch)
283 - fixing &new_object to make sure trigger gets the
284 coerced value (spotted by Charles Alderman on the
286 - added test for this
288 * Moose::Meta::Method::Constructor
289 - immutable classes which had non-lazy attributes were calling
290 the default generating sub twice in the constructor. (bug
291 found by Jesse Luehrs, fixed by Dave Rolsky)
292 - added tests for this (Dave Rolsky)
293 - fix typo in initialize_body method (nothingmuch)
295 * Moose::Meta::Method::Destructor
296 - fix typo in initialize_body method (nothingmuch)
298 * Moose::Meta::Method::Overriden
299 Moose::Meta::Method::Augmented
300 - moved the logic for these into their own
301 classes (nothingmuch)
303 * Moose::Meta::Attribute
304 - inherited attributes may now be extended without
305 restriction on the type ('isa', 'does') (Sartak)
306 - added tests for this (Sartak)
307 - when an attribute property is malformed (such as lazy without
308 a default), give the name of the attribute in the error
310 - added the &applied_traits and &has_applied_traits methods
311 to allow introspection of traits
312 - added tests for this
313 - moved 'trait' and 'metaclass' argument handling to here from
315 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
316 '+foo' syntax) (nothingmuch)
317 - added tests for this (t0m)
320 - localize $@ inside DEMOLISHALL to avoid it
321 eating $@ (found by Ernesto)
322 - added test for this (thanks to Ernesto)
324 * Moose::Util::TypeConstraints
325 - &find_type_constraint now DWIMs when given an
326 type constraint object or name (nothingmuch)
327 - &find_or_create_type_constraint superseded with a number of more
329 - find_or_create_{isa,does}_type_constraint
330 - find_or_parse_type_constraint
332 * Moose::Meta::TypeConstraint
333 Moose::Meta::TypeConstraint::Class
334 Moose::Meta::TypeConstraint::Role
335 Moose::Meta::TypeConstraint::Enum
336 Moose::Meta::TypeConstraint::Union
337 Moose::Meta::TypeConstraint::Parameterized
338 - added the &equals method for comparing two type
339 constraints (nothingmuch)
340 - added tests for this (nothingmuch)
342 * Moose::Meta::TypeConstraint
343 - add the &parents method, which is just an alias to &parent.
344 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
346 * Moose::Meta::TypeConstraint::Class
347 - added the class attribute for introspection purposes
349 - added tests for this
351 * Moose::Meta::TypeConstraint::Enum
352 Moose::Meta::TypeConstraint::Role
353 - broke these out into their own classes (nothingmuch)
355 * Moose::Cookbook::Recipe*
356 - fixed references to test file locations in the POD
357 and updated up some text for new Moose features
361 - Added &resolve_metaclass_alias, a helper function for finding an actual
362 class for a short name (e.g. in the traits list)
364 0.40 Fri. March 14, 2008
365 - I hate Pod::Coverage
367 0.39 Fri. March 14, 2008
369 - documenting the use of '+name' with attributes
370 that come from recently composed roles. It makes
371 sense, people are using it, and so why not just
372 officially support it.
373 - fixing the 'extends' keyword so that it will not
374 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
377 - added the perl -Moose=+Class::Name feature to allow
378 monkeypatching of classes in one liners
381 - fixing the 'apply_all_roles' keyword so that it will not
382 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
385 - added ->create method which now supports roles (thanks to jrockway)
386 - added tests for this
387 - added ->create_anon_class which now supports roles and caching of
388 the results (thanks to jrockway)
389 - added tests for this
390 - made ->does_role a little more forgiving when it is
391 checking a Class::MOP era metaclasses.
393 * Moose::Meta::Role::Application::ToInstance
394 - it is now possible to pass extra params to be used when
395 a role is applied to an the instance (rebless_params)
396 - added tests for this
398 * Moose::Util::TypeConstraints
399 - class_type now accepts an optional second argument for a
400 custom message. POD anotated accordingly (groditi)
401 - added tests for this
402 - it is now possible to make anon-enums by passing 'enum' an
403 ARRAY ref instead of the $name => @values. Everything else
405 - added tests for this
408 - making test for using '+name' on attributes consumed
409 from a role, it works and makes sense too.
411 * Moose::Meta::Attribute
412 - fix handles so that it doesn't return nothing
413 when the method cannot be found, not sure why
414 it ever did this originally, this means we now
415 have slightly better support for AUTOLOADed
417 - added more delegation tests
418 - adding ->does method to this so as to better
419 support traits and their introspection.
420 - added tests for this
423 - localizing the Data::Dumper configurations so
424 that it does not pollute others (RT #33509)
425 - made ->does a little more forgiving when it is
426 passed Class::MOP era metaclasses.
428 0.38 Fri. Feb. 15, 2008
429 * Moose::Meta::Attribute
430 - fixed initializer to correctly do
431 type checking and coercion in the
433 - added tests for this
436 - fixed some finicky tests (thanks to konobi)
438 0.37 Thurs. Feb. 14, 2008
440 - fixed some details in Moose::init_meta
441 and its superclass handling (thanks thepler)
442 - added tests for this (thanks thepler)
443 - 'has' now dies if you don't pass in name
445 - added the 'make_immutable' keyword as a shortcut
449 Moose::Meta::Method::Constructor
450 Moose::Meta::Attribute
451 - making (init_arg => undef) work here too
452 (thanks to nothingmuch)
454 * Moose::Meta::Attribute
455 Moose::Meta::Method::Constructor
456 Moose::Meta::Method::Accessor
457 - make lazy attributes respect attr initializers (rjbs)
458 - added tests for this
460 * Moose::Util::TypeConstraints
461 Moose::Util::TypeConstraints::OptimizedConstraints
462 Moose::Meta::TypeConstraints
463 Moose::Meta::Attribute
464 Moose::Meta::Method::Constructor
465 Moose::Meta::Method::Accessor
466 - making type errors use the
467 assigned message (thanks to Sartak)
468 - added tests for this
470 * Moose::Meta::Method::Destructor
471 - making sure DESTROY gets inlined properly
472 with successive DEMOLISH calls (thanks to manito)
474 * Moose::Meta::Attribute
475 Moose::Meta::Method::Accessor
476 - fixed handling of undef with type constraints
478 - added tests for this
481 - added &get_all_init_args and &get_all_attribute_values
482 (thanks to Sartak and nothingmuch)
484 0.36 Sat. Jan. 26, 2008
486 Moose::Meta::Attribute
487 - role type tests now support when roles are
488 applied to non-Moose classes (found by ash)
489 - added tests for this (thanks to ash)
490 - couple extra tests to boost code coverage
492 * Moose::Meta::Method::Constructor
493 - improved fix for handling Class::MOP attributes
494 - added test for this
497 - handled the add_attribute($attribute_meta_object)
499 - added test for this
501 0.35 Tues. Jan. 22, 2008
502 * Moose::Meta::Method::Constructor
503 - fix to make sure even Class::MOP attributes
504 are handled correctly (Thanks to Dave Rolsky)
505 - added test for this (also Dave Rolsky)
508 - improved error message on _apply_all_roles,
509 you should now use Moose::Util::apply_all_roles
510 and you shouldnt have been using a _ prefixed
511 method in the first place ;)
513 0.34 Mon. Jan. 21, 2008
514 ~~~ more misc. doc. fixes ~~~
515 ~~ updated copyright dates ~~
517 Moose is now a postmodern object system :)
518 - (see the POD for details)
520 * <<Role System Refactoring>>
521 - this release contains a major reworking and
522 cleanup of the role system
523 - 100% backwards compat.
524 - Role application now restructured into seperate
525 classes based on type of applicants
526 - Role summation (combining of more than one role)
527 is much cleaner and anon-classes are no longer
529 - new Composite role metaclass
530 - runtime application of roles to instances
531 is now more efficient and re-uses generated
532 classes when applicable
534 * <<New Role composition features>>
535 - methods can now be excluded from a given role
537 - methods can now be aliased to another name (and
538 still retain the original as well)
540 * Moose::Util::TypeConstraints::OptimizedConstraints
541 - added this module (see above)
544 - fixed the &_process_attribute method to be called
545 by &add_attribute, so that the API is now correct
547 * Moose::Meta::Method::Accessor
548 - fixed bug when passing a list of values to
549 an accessor would get (incorrectly) ignored.
550 Thanks to Sartak for finding this ;)
551 - added tests for this (Sartak again)
553 * Moose::Meta::Method::Accessor
554 Moose::Meta::Method::Constructor
555 Moose::Meta::Attribute
556 Moose::Meta::TypeConstraint
557 Moose::Meta::TypeCoercion
558 - lots of cleanup of such things as:
560 - type constraint handling
561 - error handling/messages
562 (thanks to nothingmuch)
564 * Moose::Meta::TypeConstraint::Parameterizable
565 - added this module to support the refactor
566 in Moose::Meta::TypeConstraint::Parameterized
568 * Moose::Meta::TypeConstraint::Parameterized
569 - refactored how these types are handled so they
570 are more generic and not confined to ArrayRef
574 - shortened some file names for better VMS support (RT #32381)
576 0.33 Fri. Dec. 14, 2007
577 !! Moose now loads 2 x faster !!
578 !! with new Class::MOP 0.49 !!
580 ++ new oose.pm module to make command line
581 Moose-ness easier (see POD docs for more)
585 - several tweaks to take advantage of the
586 new method map caching in Class::MOP
588 * Moose::Meta::TypeConstraint::Parameterized
589 - allow subtypes of ArrayRef and HashRef to
590 be used as a container (sartak)
591 - added tests for this
592 - basic support for coercion to ArrayRef and
593 HashRef for containers (sartak)
594 - added tests for this
596 * Moose::Meta::TypeCoercion
597 - coercions will now create subtypes as needed
598 so you can now add coercions to parameterized
599 types without having to explictly define them
600 - added tests for this
602 * Moose::Meta::Method::Accessor
603 - allow subclasses to decide whether we need
604 to copy the value into a new variable (sartak)
606 0.32 Tues. Dec. 4, 2007
607 * Moose::Util::TypeConstraints
608 - fixing how subtype aliases of unions work
609 they should inherit the parent's coercion
610 - added tests for this
611 - you can now define multiple coercions on
612 a single type at different times instead of
613 having to do it all in one place
614 - added tests for this
616 * Moose::Meta::TypeConstraint
617 - there is now a default constraint of sub { 1 }
618 instead of Moose::Util::TypeConstraints setting
621 * Moose::Meta::TypeCoercion
622 * Moose::Meta::TypeCoercion::Union
623 - added the &has_coercion_for_type and
624 &add_type_coercions methods to support the
625 new features above (although you cannot add
626 more type coercions for Union types)
628 0.31 Mon. Nov. 26, 2007
629 * Moose::Meta::Attribute
630 - made the +attr syntax handle extending types with
631 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
632 now works if the original foo is an ArrayRef.
633 - added tests for this.
634 - delegation now works even if the attribute does not
635 have a reader method using the get_read_method_ref
636 method from Class::MOP::Attribute.
637 - added tests for this
638 - added docs for this
640 * Moose::Util::TypeConstraints
641 - passing no "additional attribute info" to
642 &find_or_create_type_constraint will no longer
643 attempt to create an __ANON__ type for you,
644 instead it will just return undef.
645 - added docs for this
647 0.30 Fri. Nov. 23, 2007
648 * Moose::Meta::Method::Constructor
649 -builder related bug in inlined constructor. (groditi)
651 * Moose::Meta::Method::Accessor
652 - genereate unnecessary calls to predicates and refactor
653 code generation for runtime speed (groditi)
655 * Moose::Util::TypeConstraints
656 - fix ClassName constraint to introspect symbol table (mst)
657 - added more tests for this (mst)
658 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
660 - added tests for this
663 - adding the link to Recipie 11 (written by Sartak)
664 - adding test for SYNOPSIS code
667 - New tests for builder bug. Upon instantiation, if an
668 attribute had a builder, no value and was not lazy the
669 builder default was not getting run, oops. (groditi)
671 0.29 Tues. Nov. 13, 2007
672 * Moose::Meta::Attribute
673 - Fix error message on missing builder method (groditi)
675 * Moose::Meta::Method::Accessor
676 - Fix error message on missing builder method (groditi)
679 - Add test to check for the correct error message when
680 builder method is missing (groditi)
682 0.28 Tues. Nov. 13, 2007
683 - 0.27 packaged incorrectly (groditi)
685 0.27 Tues. Nov. 13, 2007
686 * Moose::Meta::Attribute
687 - Added support for the new builder option (groditi)
688 - Added support for lazy_build option (groditi)
689 - Changed slot initialization for predicate changes (groditi)
691 * Moose::Meta::Method::Accessor
692 - Added support for lazy_build option (groditi)
693 - Fix inline methods to work with corrected predicate
696 * Moose::Meta::Method::Constructor
697 - Added support for lazy_build option (groditi)
700 - tests for builder and lazy_build (groditi)
702 * fixing some misc. bits in the docs that
703 got mentioned on CPAN Forum & perlmonks
706 - fixed how required methods are handled
707 when they encounter overriden or modified
708 methods from a class (thanks to confound).
709 - added tests for this
711 * Moose::Util::TypeConstraint
712 - fixed the type notation parser so that
713 the | always creates a union and so is
714 no longer a valid type char (thanks to
715 konobi, mugwump and #moose for working
717 - added more tests for this
719 0.26 Thurs. Sept. 27, 2007
722 * Parameterized Types
723 We now support parameterized collection types, such as:
724 ArrayRef[Int] # array or integers
725 HashRef[Object] # a hash with object values
726 They can also be nested:
727 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
728 And work with the type unions as well:
729 ArrayRef[Int | Str] # array of integers of strings
731 * Better Framework Extendability
732 Moose.pm is now "extendable" such that it is now much
733 easier to extend the framework and add your own keywords
734 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
735 section of the Moose.pm docs.
738 In an effort to begin documenting some of the various
739 details of Moose as well as some common idioms, we have
740 created Moose::Cookbook::Snacks as a place to find
741 small (easily digestable) nuggets of Moose code.
744 ~ Several doc updates/cleanup thanks to castaway ~
746 - converted build system to use Module::Install instead of
747 Module::Build (thanks to jrockway)
750 - added all the meta classes to the immutable list and
751 set it to inline the accessors
752 - fix import to allow Sub::Exporter like { into => }
753 and { into_level => } (perigrin)
754 - exposed and documented init_meta() to allow better
755 embedding and extending of Moose (perigrin)
758 - complete re-organization of the test suite
759 - added some new tests as well
760 - finally re-enabled the Moose::POOP test since
761 the new version of DBM::Deep now works again
765 - fixed very odd and very nasty recursion bug with
767 - added tests for this (eilara)
769 * Moose::Meta::Attribute
770 Moose::Meta::Method::Constructor
771 Moose::Meta::Method::Accessor
772 - fixed issue with overload::Overloaded getting called
773 on non-blessed items. (RT #29269)
774 - added tests for this
776 * Moose::Meta::Method::Accessor
777 - fixed issue with generated accessor code making
778 assumptions about hash based classes (thanks to dexter)
780 * Moose::Coookbook::Snacks
781 - these are bits of documentation, not quite as big as
782 Recipes but which have no clear place in the module docs.
783 So they are Snacks! (horray for castaway++)
785 * Moose::Cookbook::Recipe4
786 - updated it to use the new ArrayRef[MyType] construct
787 - updated the accompanying test as well
789 +++ Major Refactor of the Type Constraint system +++
790 +++ with new features added as well +++
792 * Moose::Util::TypeConstraint
793 - no longer uses package variable to keep track of
794 the type constraints, now uses the an instance of
795 Moose::Meta::TypeConstraint::Registry to do it
796 - added more sophisticated type notation parsing
798 - added tests for this
800 * Moose::Meta::TypeConstraint
801 - some minor adjustments to make subclassing easier
802 - added the package_defined_in attribute so that we
803 can track where the type constraints are created
805 * Moose::Meta::TypeConstraint::Union
806 - this is now been refactored to be a subclass of
807 Moose::Meta::TypeConstraint
809 * Moose::Meta::TypeCoercion::Union
810 - this has been added to service the newly refactored
811 Moose::Meta::TypeConstraint::Union and is itself
812 a subclass of Moose::Meta::TypeCoercion
814 * Moose::Meta::TypeConstraint::Parameterized
815 - added this module (taken from MooseX::AttributeHelpers)
816 to help construct nested collection types
817 - added tests for this
819 * Moose::Meta::TypeConstraint::Registry
820 - added this class to keep track of type constraints
822 0.25 Mon. Aug. 13, 2007
824 - Documentation update to reference Moose::Util::TypeConstraints
825 under 'isa' in 'has' for how to define a new type
828 * Moose::Meta::Attribute
829 - required attributes now will no longer accept undef
830 from the constructor, even if there is a default and lazy
831 - added tests for this
832 - default subroutines must return a value which passes the
834 - added tests for this
836 * Moose::Meta::Attribute
837 * Moose::Meta::Method::Constructor
838 * Moose::Meta::Method::Accessor
839 - type-constraint tests now handle overloaded objects correctly
841 - added tests for this (thanks to EvanCarroll)
843 * Moose::Meta::TypeConstraint::Union
844 - added (has_)hand_optimized_constraint to this class so that
845 it behaves as the regular Moose::Meta::TypeConstraint does.
848 - large refactoring of this code
849 - added several more tests
850 - tests for subtle conflict resolition issues
851 added, but not currently running
854 * Moose::Cookbook::Recipe7
855 - added new recipe for augment/inner functionality
857 - added test for this
860 - a formal definition of roles (still in progress)
863 - utilities for easier working with Moose classes
864 - added tests for these
867 - This contains Moose specific test functions
868 - added tests for these
870 0.24 Tues. July 3, 2007
871 ~ Some doc updates/cleanup ~
873 * Moose::Meta::Attribute
874 - added support for roles to be given as parameters
875 to the 'handles' option.
876 - added tests and docs for this
877 - the has '+foo' attribute form now accepts changes to
878 the lazy option, and the addition of a handles option
879 (but not changing the handles option)
880 - added tests and docs for this
883 - required methods are now fetched using find_method_by_name
884 so that required methods can come from superclasses
885 - adjusted tests for this
887 0.23 Mon. June 18, 2007
888 * Moose::Meta::Method::Constructor
889 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
891 - Modify make_immutable to work with the new Class::MOP immutable
892 mechanism + POD + very basic test (groditi)
893 * Moose::Meta::Attribute
894 - Fix handles to use goto() so that caller() comes out properly on
895 the other side (perigrin)
897 0.22 Thurs. May 31, 2007
898 * Moose::Util::TypeConstraints
899 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
900 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
901 prototypes for functions
902 - added the ClassName type constraint, this checks for strings
903 which will respond true to ->isa(UNIVERSAL).
904 - added tests and docs for this
905 - subtyping just in name now works correctly by making the
906 default for where be { 1 }
907 - added test for this
909 * Moose::Meta::Method::Accessor
910 - coerce and lazy now work together correctly, thanks to
911 merlyn for finding this bug
912 - tests added for this
913 - fix reader presedence bug in Moose::Meta::Attribute + tests
916 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
917 a HASH-ref and missed. This produces better error messages then
918 having it die cause undef is not a HASH.
919 - added tests for this
921 0.21 Thursday, May 2nd, 2007
923 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
924 - modified unimport to remove super and inner along with the rest
925 - altered unimport tests to handle this
928 - altered super export to populate SUPER_SLOT
931 - altered augment and override modifier application to use *_SLOT
932 - modified tests for these to unimport one test class each to test
935 - fixed issue where custom attribute metaclasses
936 where not handled correctly in roles
937 - added tests for this
940 - fixed issue where extending metaclasses with
941 roles would blow up. Thanks to Aankhen`` for
942 finding this insidious error, and it's solution.
944 ~~ lots of spelling and grammer fixes in the docs,
945 many many thanks to rlb3 and Aankhen for these :)
947 0.20 Friday, April 6th, 2007
948 >> I messed up the SKIP logic in one test
949 so this release is just to fix that.
952 - 'has' now also accepts an ARRAY ref
953 to create multiple attrs (see docs)
954 (thanks to konobi for this)
955 - added tests and docs
957 0.19 Thurs. April 5th, 2007
958 ~~ More documentation updates ~~
960 * Moose::Util::TypeConstraints
961 - 'type' now supports messages as well
962 thanks to phaylon for finding this
963 - added tests for this
964 - added &list_all_type_constraints and
965 &list_all_builtin_type_constraints
966 functions to facilitate introspection.
968 * Moose::Meta::Attribute
969 - fixed regexp 'handles' declarations
970 to build the list of delegated methods
971 correctly (and not override important
972 things like &new) thanks to ashleyb
974 - added tests and docs for this
975 - added the 'documentation' attributes
976 so that you can actually document your
977 attributes and inspect them through the
979 - added tests and docs for this
982 - when loading custom attribute metaclasses
983 it will first look in for the class in the
984 Moose::Meta::Attribute::Custom::$name, and
985 then default to just loading $name.
986 - added tests and docs for this
988 * Moose::Meta::TypeConstraint
989 - type constraints now stringify to their names.
990 - added test for this
993 - added tests to assure we work with Module::Refresh
994 - added stricter test skip logic in the Moose POOP
995 test, ask Rob Kinyon why.
996 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
998 0.18 Sat. March 10, 2007
999 ~~ Many, many documentation updates ~~
1002 - We now use Class::MOP::load_class to
1004 - added tests to show types and subtypes
1005 working with Declare::Constraints::Simple
1006 and Test::Deep as constraint engines.
1009 !! You must have Class::MOP 0.37_001 !!
1010 !! for this developer release to work !!
1012 This release was primarily adding the immutable
1013 feature to Moose. An immutable class is one which
1014 you promise not to alter. When you set the class
1015 as immutable it will perform various bits of
1016 memoization and inline certain part of the code
1017 (constructors, destructors and accessors). This
1018 minimizes (and in some cases totally eliminates)
1019 one of Moose's biggest performance hits. This
1020 feature is not on by default, and is 100% optional.
1021 It has several configurable bits as well, so you
1022 can pick and choose to your specific needs.
1024 The changes involved in this were fairly wide and
1025 highly specific, but 100% backwards compatible, so
1026 I am not going to enumerate them here. If you are
1027 truely interested in what was changed, please do
1030 0.17 Tues. Nov. 14, 2006
1031 * Moose::Meta::Method::Accessor
1032 - bugfix for read-only accessors which
1033 are have a type constraint and lazy.
1034 Thanks to chansen for finding it.
1036 0.16 Tues. Nov. 14, 2006
1038 There are some speed improvements in this release,
1039 but they are only the begining, so stay tuned.
1042 - BUILDALL and DEMOLISHALL no longer get
1043 called unless they actually need to be.
1044 This gave us a signifigant speed boost
1045 for the cases when there is no BUILD or
1046 DEMOLISH method present.
1048 * Moose::Util::TypeConstraints
1049 * Moose::Meta::TypeConstraint
1050 - added an 'optimize_as' option to the
1051 type constraint, which allows for a
1052 hand optimized version of the type
1053 constraint to be used when possible.
1054 - Any internally created type constraints
1055 now provide an optimized version as well.
1057 0.15 Sun. Nov. 5, 2006
1059 This version of Moose *must* have Class::MOP 0.36 in order
1060 to work correctly. A number of small internal tweaks have
1061 been made in order to be compatible with that release.
1063 * Moose::Util::TypeConstraints
1064 - added &unimport so that you can clean out
1065 your class namespace of these exported
1068 * Moose::Meta::Class
1069 - fixed minor issue which occasionally
1070 comes up during global destruction
1072 - moved Moose::Meta::Method::Overriden into
1076 - moved Moose::Meta::Role::Method into
1079 * Moose::Meta::Attribute
1080 - changed how we do type checks so that
1081 we reduce the overall cost, but still
1084 - moved accessor generation methods to
1085 Moose::Meta::Method::Accessor to
1086 conform to the API changes from
1089 * Moose::Meta::TypeConstraint
1090 - changed how constraints are compiled
1091 so that we do less recursion and more
1092 iteration. This makes the type check
1094 - moved Moose::Meta::TypeConstraint::Union
1097 * Moose::Meta::Method::Accessor
1098 - created this from methods formerly found in
1099 Moose::Meta::Attribute
1101 * Moose::Meta::Role::Method
1102 - moved this from Moose::Meta::Role
1104 * Moose::Meta::Method::Overriden
1105 - moved this from Moose::Meta::Class
1107 * Moose::Meta::TypeConstraint::Union
1108 - moved this from Moose::Meta::TypeConstraint
1110 0.14 Mon. Oct. 9, 2006
1112 * Moose::Meta::Attribute
1113 - fixed lazy attributes which were not getting
1114 checked with the type constraint (thanks ashley)
1115 - added tests for this
1116 - removed the over-enthusiastic DWIMery of the
1117 automatic ArrayRef and HashRef defaults, it
1118 broke predicates in an ugly way.
1119 - removed tests for this
1121 0.13 Sat. Sept. 30, 2006
1123 This version of Moose *must* have Class::MOP 0.35 in order
1124 to work correctly. A number of small internal tweaks have
1125 been made in order to be compatible with that release.
1128 - Removed the use of UNIVERSAL::require to be a better
1129 symbol table citizen and remove a dependency
1130 (thanks Adam Kennedy)
1132 **~~ removed experimental & undocumented feature ~~**
1133 - commented out the 'method' and 'self' keywords, see the
1134 comments for more info.
1137 - added a FAQ and WTF files to document frequently
1138 asked questions and common problems
1140 * Moose::Util::TypeConstraints
1141 - added GlobRef and FileHandle type constraint
1142 - added tests for this
1144 * Moose::Meta::Attribute
1145 - if your attribute 'isa' ArrayRef of HashRef, and you have
1146 not explicitly set a default, then make the default DWIM.
1147 This will also work for subtypes of ArrayRef and HashRef
1149 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1150 - new test added for this (thanks to ashley)
1153 - added basic support for runtime role composition
1154 but this is still *highly experimental*, so feedback
1155 is much appreciated :)
1156 - added tests for this
1158 * Moose::Meta::TypeConstraint
1159 - the type constraint now handles the coercion process
1160 through delegation, this is to support the coercion
1163 * Moose::Meta::TypeConstraint::Union
1164 - it is now possible for coercions to be performed
1166 - added tests for this (thanks to konobi)
1168 * Moose::Meta::TypeCoercion
1169 - properly capturing error when type constraint
1173 - Scalar::Util 1.18 is bad on Win32, so temporarily
1174 only require version 1.17 for Win32 and cygwin.
1175 (thanks Adam Kennedy)
1177 0.12 Sat. Sept. 1, 2006
1179 - Recipe5 (subtypes & coercion) has been written
1182 - fixed "bad meta" error message to be more descriptive
1183 - fixed &unimport to not remove the &inner and &super
1184 keywords because we need to localize them.
1185 - fixed number of spelling/grammer issues, thanks Theory :)
1187 **~~ experimental & undocumented feature ~~**
1188 - added the method and self keywords, they are basically
1189 just sugar, and they may not stay around.
1192 - added &dump method to easily Data::Dumper
1195 * Moose::Meta::TypeConstraint
1196 - added the &is_a_type_of method to check both the current
1197 and the subtype of a method (similar to &isa with classes)
1200 - this is now a subclass of Class::MOP::Module, and no longer
1201 creates the _role_meta ugliness of before.
1202 - fixed tests to reflect this change
1204 0.11 Wed. July 12, 2006
1206 - added an &unimport method to remove all the keywords
1207 that Moose will import, simply add 'no Moose' to the
1208 bottom of your class file.
1211 - fixed some test failures caused by a forgotten test
1214 0.10 Thurs. July 6, 2006
1216 - improved error message when loading modules so
1217 it is less confusing when you load a role.
1218 - added &calculate_all_roles method to
1219 Moose::Meta::Class and Moose::Meta::Role
1222 This module has been tested against Class::MOP 0.30
1223 but it does not yet utilize the optimizations
1224 it makes available. Stay tuned for that ;)
1226 0.09_03 Fri. June 23, 2006
1227 ++ DEVELOPER RELEASE ++
1229 - 'use strict' and 'use warnings' are no longer
1230 needed in Moose classes, Moose itself will
1231 turn them on for you.
1232 - added tests for this
1233 - moved code from exported subs to private methods
1234 in Moose::Meta::Class
1237 - as with Moose, strict and warnings are
1238 automatically turned on for you.
1239 - added tests for this
1242 - now handles an edge case for override errors
1243 - added tests for this
1244 - added some more edge case tests
1246 0.09_02 Tues. May 16, 2006
1247 ++ DEVELOPER RELEASE ++
1249 - added prototypes to the exported subs
1253 - added prototypes to the exported subs
1256 * Moose::Util::TypeConstraints
1257 - cleaned up prototypes for the subs
1260 0.09_01 Fri. May 12, 2006
1261 ++ DEVELOPER RELEASE ++
1262 - This release works in combination with
1263 Class::MOP 0.29_01, it is a developer
1264 release because it uses the a new
1265 instance sub-protocol and a fairly
1266 complete Role implementation. It has
1267 not yet been optimized, so it slower
1268 the the previous CPAN version. This
1269 release also lacks good updated docs,
1270 the official release will have updated docs.
1273 - refactored the keyword exports
1274 - 'with' now checks Role validaity and
1275 accepts more than one Role at a time
1276 - 'extends' makes metaclass adjustments as
1277 needed to ensure metaclass compatability
1280 - refactored the keyword exports
1281 - 'with' now checks Role validaity and
1282 accepts more than one Role at a time
1284 * Moose::Util::TypeConstraints
1285 - added the 'enum' keyword for simple
1286 string enumerations which can be used as
1288 - see example of usage in t/202_example.t
1291 - more careful checking of params to new()
1294 - much work done on the role composition
1295 - many new tests for conflict detection
1296 and composition edge cases
1297 - not enough documentation, I suggest
1298 looking at the tests
1300 * Moose::Meta::Instance
1301 - added new Instance metaclass to support
1302 the new Class::MOP instance protocol
1304 * Moose::Meta::Class
1305 - some small changes to support the new
1307 - some small additions to support Roles
1309 * Moose::Meta::Attribute
1310 - some improvements to the accessor generation code
1312 - some small changes to support the new
1314 - (still somewhat) experimental delegation support
1315 with the 'handles' option
1316 - added several tests for this
1317 - no docs for this yet
1319 0.05 Thurs. April 27, 2006
1321 - keywords are now exported with Sub::Exporter
1322 thanks to chansen for this commit
1323 - has keyword now takes a 'metaclass' option
1324 to support custom attribute meta-classes
1325 on a per-attribute basis
1326 - added tests for this
1327 - the 'has' keyword not accepts inherited slot
1328 specifications (has '+foo'). This is still an
1329 experimental feature and probably not finished
1330 see t/038_attribute_inherited_slot_specs.t for
1331 more details, or ask about it on #moose
1332 - added tests for this
1335 - keywords are now exported with Sub::Exporter
1337 * Moose::Utils::TypeConstraints
1338 - reorganized the type constraint hierarchy, thanks
1339 to nothingmuch and chansen for his help and advice
1341 - added some tests for this
1342 - keywords are now exported with Sub::Exporter
1343 thanks to chansen for this commit
1345 * Moose::Meta::Class
1346 - due to changes in Class::MOP, we had to change
1347 construct_instance (for the better)
1349 * Moose::Meta::Attribute
1350 - due to changes in Class::MOP, we had to add the
1351 initialize_instance_slot method (it's a good thing)
1353 * Moose::Meta::TypeConstraint
1354 - added type constraint unions
1355 - added tests for this
1356 - added the is_subtype_of predicate method
1357 - added tests for this
1359 0.04 Sun. April 16th, 2006
1361 - Roles can now consume other roles
1362 - added tests for this
1363 - Roles can specify required methods now with
1364 the requires() keyword
1365 - added tests for this
1368 - ripped out much of it's guts ,.. much cleaner now
1369 - added required methods and correct handling of
1370 them in apply() for both classes and roles
1371 - added tests for this
1372 - no longer adds a does() method to consuming classes
1373 it relys on the one in Moose::Object
1374 - added roles attribute and some methods to support
1375 roles consuming roles
1377 * Moose::Meta::Attribute
1378 - added support for triggers on attributes
1379 - added tests for this
1380 - added support for does option on an attribute
1381 - added tests for this
1383 * Moose::Meta::Class
1384 - added support for attribute triggers in the
1386 - added tests for this
1389 - Moose no longer creates a subtype for your class
1390 if a subtype of the same name already exists, this
1391 should DWIM in 99.9999% of all cases
1393 * Moose::Util::TypeConstraints
1394 - fixed bug where incorrect subtype conflicts were
1396 - added test for this
1399 - this class can now be extended with 'use base' if
1400 you need it, it properly loads the metaclass class now
1401 - added test for this
1403 0.03_02 Wed. April 12, 2006
1405 - you must now explictly use Moose::Util::TypeConstraints
1406 it no longer gets exported for you automatically
1409 - new() now accepts hash-refs as well as key/value lists
1410 - added does() method to check for Roles
1411 - added tests for this
1413 * Moose::Meta::Class
1414 - added roles attribute along with the add_role() and
1416 - added tests for this
1419 - now adds a does() method to consuming classes
1420 which tests the class's hierarchy for roles
1421 - added tests for this
1423 0.03_01 Mon. April 10, 2006
1425 - added new Role recipe (no content yet, only code)
1428 - added 'with' keyword for Role support
1429 - added test and docs for this
1430 - fixed subtype quoting bug
1431 - added test for this
1435 - added test and docs
1437 * Moose::Util::TypeConstraints
1438 - added the message keyword to add custom
1439 error messages to type constraints
1442 - the meta role to support Moose::Role
1443 - added tests and docs
1445 * Moose::Meta::Class
1446 - moved a number of things from Moose.pm
1447 to here, they should have been here
1450 * Moose::Meta::Attribute
1451 - moved the attribute option macros here
1452 instead of putting them in Moose.pm
1454 * Moose::Meta::TypeConstraint
1455 - added the message attributes and the
1457 - added tests and docs for this
1459 0.03 Thurs. March 30, 2006
1461 - added the Moose::Cookbook with 5 recipes,
1462 describing all the stuff Moose can do.
1465 - fixed an issue with &extends super class loading
1466 it now captures errors and deals with inline
1467 packages correctly (bug found by mst, solution
1469 - added super/override & inner/augment features
1470 - added tests and docs for these
1473 - BUILDALL now takes a reference of the %params
1474 that are passed to &new, and passes that to
1477 * Moose::Util::TypeConstraints
1478 - Type constraints now survive runtime reloading
1479 - added test for this
1481 * Moose::Meta::Class
1482 - fixed the way attribute defaults are handled
1483 during instance construction (bug found by chansen)
1485 * Moose::Meta::Attribute
1486 - read-only attributes now actually enforce their
1487 read-only-ness (this corrected in Class::MOP as
1490 0.02 Tues. March 21, 2006
1492 - many more tests, fixing some bugs and
1494 - &extends now loads the base module with
1496 - added UNIVERSAL::require to the
1499 - each new Moose class will also create
1500 and register a subtype of Object which
1501 correspond to the new Moose class.
1502 - the 'isa' option in &has now only
1503 accepts strings, and will DWIM in
1506 * Moose::Util::TypeConstraints
1507 - added type coercion features
1508 - added tests for this
1509 - added support for this in attributes
1510 and instance construction
1512 - type construction no longer creates a
1513 function, it registers the type instead.
1514 - added several functions to get the
1518 - BUILDALL and DEMOLISHALL were broken
1519 because of a mis-named hash key, Whoops :)
1521 * Moose::Meta::Attribute
1522 - adding support for coercion in the
1523 autogenerated accessors
1525 * Moose::Meta::Class
1526 - adding support for coercion in the
1527 instance construction
1529 * Moose::Meta::TypeConstraint
1530 * Moose::Meta::TypeCoercion
1531 - type constraints and coercions are now
1532 full fledges meta-objects
1534 0.01 Wed. March 15, 2006
1535 - Moooooooooooooooooose!!!