1 Revision history for Perl extension Moose
5 !! Calling Moose::init_meta as a function is now !!
6 !! deprecated. Please see the Moose.pm docs for details. !!
8 * Moose::Meta::Method::Constructor
9 - Fix inlined constructor so that values produced by default
10 or builder methods are coerced as required. (t0m)
11 - added test for this (t0m)
13 * Moose::Meta::Attribute
14 - A lazy attribute with a default or builder did not attempt to
15 coerce the default value. The immutable code _did_
17 - added test for this (t0m)
20 - This is a new helper module for writing "Moose-alike"
21 modules. This should make the lives of MooseX module authors
22 much easier. (Dave Rolsky)
25 * Moose::Cookbook::Meta::Recipe5
26 - Implemented metaclass traits (and wrote a recipe for it):
28 use Moose -traits => 'Foo'
30 This should make writing small Moose extensions a little
33 * Moose::Cookbook::Basics::Recipe1
34 - Removed any examples of direct hashref access, and applied an
35 editorial axe to reduce verbosity. (Dave Rolsky)
37 * Moose::Cookbook::Basics::Recipe1
38 - Also applied an editorial axe here. (Dave Rolsky)
41 * Moose::Cookbook::Extending::Recipe1
42 * Moose::Cookbook::Extending::Recipe2
43 - Rewrote extending and embedding moose documentation and
44 recipes to use Moose::Exporter (Dave Rolsky)
48 - These two modules now warn when you load them from the main
49 package "main" package, because we will not export sugar to
50 main. Previously it just did nothing. (Dave Rolsky)
53 - Now provide an init_meta method just like Moose.pm, and you
54 can call this to provide an alternate role metaclass. (Dave
55 Rolsky and nothingmuch)
58 - Two new methods - add_method and wrap_method_body
62 - Optimizations including allowing constructors to accept hash
63 refs, making many more classes immutable, and making
64 constructors immutable. (nothingmuch)
66 0.55 Sun August 3, 2008
67 * Moose::Meta::Attribute
68 - breaking down the way 'handles' methods are
69 created so that the process can be more easily
70 overridden by subclasses (stevan)
72 * Moose::Meta::TypeConstraint
73 - fixing what is passed into a ->message with
74 the type constraints (RT #37569)
75 - added tests for this (Charles Alderman)
77 * Moose::Util::TypeConstraints
78 - fix coerce to accept anon types like subtype can (mst)
81 - reorganized the recipes into sections - Basics, Roles, Meta,
82 Extending - and wrote abstracts for each section (Dave Rolsky)
84 * Moose::Cookbook::Basics::Recipe10
85 - A new recipe that demonstrates operator overloading
86 in combination with Moose. (bluefeet)
88 * Moose::Cookbook::Meta::Recipe1
89 - an introduction to what meta is and why you'd want to make
90 your own metaclass extensions (Dave Rolsky)
92 * Moose::Cookbook::Meta::Recipe4
93 - a very simple metaclass example (Dave Rolsky)
95 * Moose::Cookbook::Extending::Recipe1
96 - how to write a Moose-alike module to use your own object base
99 * Moose::Cookbook::Extending::Recipe2
100 - how to write modules with an API just like C<Moose.pm> (Dave
104 - Tons of fixes, both syntactical and grammatical (Dave
105 Rolsky, Paul Fenwick)
107 0.54 Thurs. July 3, 2008
108 ... this is not my day today ...
110 * Moose::Meta::Attribute
111 - fixed legal_options_for_inheritance such that
112 clone_and_inherit options still works for
113 Class::MOP::Attribute objects and therefore
114 does not break MooseX::AttributeHelpers
117 0.53 Thurs. July 3, 2008
118 * Whoops, I guess I should run 'make manifest' before
119 actually releasing the module. No actual changes
120 in this release, except the fact that it includes
121 the changes that I didn't include in the last
124 0.52 Thurs. July 3, 2008
126 - added "FEATURE REQUESTS" section to the Moose docs
127 to properly direct people (stevan) (RT #34333)
128 - making 'extends' croak if it is passed a Role since
129 this is not ever something you want to do
130 (fixed by stevan, found by obra)
131 - added tests for this (stevan)
134 - adding support for DOES (as in UNIVERSAL::DOES)
136 - added test for this
138 * Moose::Meta::Attribute
139 - added legal_options_for_inheritance (wreis)
140 - added tests for this (wreis)
142 * Moose::Cookbook::Snacks::*
143 - removed some of the unfinished snacks that should
144 not have been released yet. Added some more examples
145 to the 'Keywords' snack. (stevan)
147 * Moose::Cookbook::Style
148 - added general Moose "style guide" of sorts to the
149 cookbook (nothingmuch) (RT #34335)
152 - added more BUILDARGS tests (stevan)
154 0.51 Thurs. Jun 26, 2008
156 - add unimport so "no Moose::Role" actually does
159 * Moose::Meta::Role::Application::ToRole
160 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
161 order to provide its own implementation, that method still got
162 added to the list of required methods for consumers of
163 RoleB. Now an aliased method is only added to the list of
164 required methods if the role doing the aliasing does not
165 provide its own implementation. See Recipe 11 for an example
166 of all this. (Dave Rolsky)
167 - added tests for this
169 * Moose::Meta::Method::Constructor
170 - when a single argument that wasn't a hashref was provided to
171 an immutabilized constructor, the error message was very
172 unhelpful, as opposed to the non-immutable error. Reported by
174 - added test for this (Dave Rolsky)
176 * Moose::Meta::Attribute
177 - added support for meta_attr->does("ShortAlias") (sartak)
178 - added tests for this (sartak)
179 - moved the bulk of the `handles` handling to the new
180 install_delegation method (Stevan)
183 - Added BUILDARGS, a new step in new()
185 * Moose::Meta::Role::Application::RoleSummation
186 - fix typos no one ever sees (sartak)
188 * Moose::Util::TypeConstraints
189 * Moose::Meta::TypeConstraint
190 * Moose::Meta::TypeCoercion
191 - Attempt to work around the ??{ } vs. threads issue
193 - Some null_constraint optimizations
195 0.50 Thurs. Jun 11, 2008
196 - Fixed a version number issue by bumping all modules
199 0.49 Thurs. Jun 11, 2008
200 !! This version now approx. 20-25% !!
201 !! faster with new Class::MOP 0.59 !!
203 * Moose::Meta::Attribute
204 - fixed how the is => (ro|rw) works with
205 custom defined reader, writer and accessor
207 - added docs for this (TODO).
208 - added tests for this (Thanks to Penfold)
209 - added the custom attribute alias for regular
210 Moose attributes which is "Moose"
211 - fix builder and default both being used
216 Moose::Meta::Attribute
218 Moose::Meta::Role::Composite
219 Moose::Util::TypeConstraints
220 - switched usage of reftype to ref because
224 - changing add_package_symbol to use the new
228 - fixed how DEMOLISHALL is called so that it
229 can be overrided in subclasses (thanks to Sartak)
230 - added test for this (thanks to Sartak)
232 * Moose::Util::TypeConstraints
233 - move the ClassName type check code to
234 Class::MOP::is_class_loaded (thanks to Sartak)
236 * Moose::Cookbook::Recipe11
237 - add tests for this (thanks to tokuhirom)
239 0.48 Thurs. May 29, 2008
240 (early morning release engineering)--
242 - fixing the version in Moose::Meta::Method::Destructor
243 which was causing the indexer to choke
245 0.47 Thurs. May 29, 2008
246 (late night release engineering)--
248 - fixing the version is META.yml, no functional
249 changes in this release
251 0.46 Wed. May 28, 2008
252 !! This version now approx. 20-25% !!
253 !! faster with new Class::MOP 0.57 !!
256 - some optimizations of the &initialize method
257 since it is called so often by &meta
261 - now use the get_all_package_symbols from the
262 updated Class::MOP, test suite is now 10 seconds
265 * Moose::Meta::Method::Destructor
266 - is_needed can now also be called as a class
267 method for immutablization to check if the
268 destructor object even needs to be created
271 * Moose::Meta::Method::Destructor
272 Moose::Meta::Method::Constructor
273 - added more descriptive error message to help
274 keep people from wasting time tracking an error
275 that is easily fixed by upgrading.
277 0.45 Saturday, May 24, 2008
279 - Because of work in Class::MOP 0.56, all
280 XS based functionality is now optional
281 and a Pure Perl version is supplied
282 - the CLASS_MOP_NO_XS environment variable
283 can now be used to force non-XS versions
285 - several of the packages have been tweaked
286 to take care of this, mostly we added
287 support for the package_name and name
288 variables in all the Method metaclasses
289 - before/around/after method modifiers now
290 support regexp matching of names
291 (thanks to Takatoshi Kitano)
292 - tests added for this
293 - NOTE: this only works for classes, it
294 is currently not supported in roles,
295 but, ... patches welcome
296 - All usage of Carp::confess have been replaced
297 by Carp::croak in the "keyword" functions since
298 the stack trace is usually not helpful
301 - All usage of Carp::confess have been replaced
302 by Carp::croak in the "keyword" functions since
303 the stack trace is usually not helpful
304 - The 'has' keyword for roles now accepts the
305 same array ref form that Moose.pm does
306 (has [qw/foo bar/] => (is => 'rw', ...))
307 - added test for this
309 * Moose::Meta::Attribute
310 - trigger on a ro-attribute is no longer an
311 error, as it's useful to trigger off of the
315 - added same 'add_package_symbol' fix as in
319 - does_role now handles non-Moose classes
321 - added tests for this
322 - added the 'add_method_modifier' function
323 (thanks to Takatoshi Kitano)
325 * Moose::Util::TypeConstraints
326 - subtypes of parameterizable types now are
327 themselves parameterizable types
329 * Moose::Meta::Method::Constructor
330 - fixed bug where trigger was not being
331 called by the inlined immutable
333 - added test for this (thanks to Caelum)
335 * Moose::Meta::Role::Application::ToInstance
336 - now uses the metaclass of the instance
337 (if possible) to create the anon-class
338 (thanks Jonathan Rockway)
340 * Moose::Cookbook::Recipe22
341 - added the meta-attribute trait recipe
345 - fixed hash-ordering test bug that was
346 causing occasional cpantester failures
347 - renamed the t/000_recipe/*.t tests to be
348 more descriptive (thanks to Sartak)
350 0.44 Sat. May 10, 2008
352 - made make_immutable warning cluck to
353 show where the error is (thanks mst)
356 - BUILDALL and DEMOLISHALL now call
357 ->body when looping through the
358 methods, to avoid the overloaded
360 - fixed issue where DEMOLISHALL was
361 eating the $@ values, and so not
362 working correctly, it still kind of
363 eats them, but so does vanilla perl
364 - added tests for this
366 * Moose::Cookbook::Recipe7
367 - added new recipe for immutable
368 functionality (thanks Dave Rolsky)
370 * Moose::Cookbook::Recipe9
371 - added new recipe for builder and
372 lazy_build (thanks Dave Rolsky)
374 * Moose::Cookbook::Recipe11
375 - added new recipe for method aliasing
376 and exclusion with Roles (thanks Dave Rolsky)
379 - fixed Win32 test failure (thanks spicyjack)
381 ~ removed Build.PL and Module::Build compat
382 since Module::Install has done that.
384 0.43 Wed. April, 30, 2008
386 drink more coffee before
387 doing release engineering
389 - whoops, forgot to do the smolder tests,
390 and we broke some of the custom meta-attr
391 modules. This fixes that.
393 0.42 Mon. April 28, 2008
394 - some bad tests slipped by, nothing else
395 changed in this release (cpantesters++)
397 - upped the Class::MOP dependency to 0.55
398 since we have tests which need the C3
401 0.41 Mon. April 28, 2008
402 ~~ numerous documentation updates ~~
404 - Changed all usage of die to Carp::croak for better
405 error reporting (initial patch by Tod Hagan)
408 - the make_immutable keyword is now deprecated, don't
409 use it in any new code and please fix your old code
410 as well. There will be 2 releases, and then it will
416 - refactored the way inner and super work to avoid
417 any method/@ISA cache penalty (nothingmuch)
420 - fixing &new_object to make sure trigger gets the
421 coerced value (spotted by Charles Alderman on the
423 - added test for this
425 * Moose::Meta::Method::Constructor
426 - immutable classes which had non-lazy attributes were calling
427 the default generating sub twice in the constructor. (bug
428 found by Jesse Luehrs, fixed by Dave Rolsky)
429 - added tests for this (Dave Rolsky)
430 - fix typo in initialize_body method (nothingmuch)
432 * Moose::Meta::Method::Destructor
433 - fix typo in initialize_body method (nothingmuch)
435 * Moose::Meta::Method::Overriden
436 Moose::Meta::Method::Augmented
437 - moved the logic for these into their own
438 classes (nothingmuch)
440 * Moose::Meta::Attribute
441 - inherited attributes may now be extended without
442 restriction on the type ('isa', 'does') (Sartak)
443 - added tests for this (Sartak)
444 - when an attribute property is malformed (such as lazy without
445 a default), give the name of the attribute in the error
447 - added the &applied_traits and &has_applied_traits methods
448 to allow introspection of traits
449 - added tests for this
450 - moved 'trait' and 'metaclass' argument handling to here from
452 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
453 '+foo' syntax) (nothingmuch)
454 - added tests for this (t0m)
457 - localize $@ inside DEMOLISHALL to avoid it
458 eating $@ (found by Ernesto)
459 - added test for this (thanks to Ernesto)
461 * Moose::Util::TypeConstraints
462 - &find_type_constraint now DWIMs when given an
463 type constraint object or name (nothingmuch)
464 - &find_or_create_type_constraint superseded with a number of more
466 - find_or_create_{isa,does}_type_constraint
467 - find_or_parse_type_constraint
469 * Moose::Meta::TypeConstraint
470 Moose::Meta::TypeConstraint::Class
471 Moose::Meta::TypeConstraint::Role
472 Moose::Meta::TypeConstraint::Enum
473 Moose::Meta::TypeConstraint::Union
474 Moose::Meta::TypeConstraint::Parameterized
475 - added the &equals method for comparing two type
476 constraints (nothingmuch)
477 - added tests for this (nothingmuch)
479 * Moose::Meta::TypeConstraint
480 - add the &parents method, which is just an alias to &parent.
481 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
483 * Moose::Meta::TypeConstraint::Class
484 - added the class attribute for introspection purposes
486 - added tests for this
488 * Moose::Meta::TypeConstraint::Enum
489 Moose::Meta::TypeConstraint::Role
490 - broke these out into their own classes (nothingmuch)
492 * Moose::Cookbook::Recipe*
493 - fixed references to test file locations in the POD
494 and updated up some text for new Moose features
498 - Added &resolve_metaclass_alias, a helper function for finding an actual
499 class for a short name (e.g. in the traits list)
501 0.40 Fri. March 14, 2008
502 - I hate Pod::Coverage
504 0.39 Fri. March 14, 2008
506 - documenting the use of '+name' with attributes
507 that come from recently composed roles. It makes
508 sense, people are using it, and so why not just
509 officially support it.
510 - fixing the 'extends' keyword so that it will not
511 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
514 - added the perl -Moose=+Class::Name feature to allow
515 monkeypatching of classes in one liners
518 - fixing the 'apply_all_roles' keyword so that it will not
519 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
522 - added ->create method which now supports roles (thanks to jrockway)
523 - added tests for this
524 - added ->create_anon_class which now supports roles and caching of
525 the results (thanks to jrockway)
526 - added tests for this
527 - made ->does_role a little more forgiving when it is
528 checking a Class::MOP era metaclasses.
530 * Moose::Meta::Role::Application::ToInstance
531 - it is now possible to pass extra params to be used when
532 a role is applied to an the instance (rebless_params)
533 - added tests for this
535 * Moose::Util::TypeConstraints
536 - class_type now accepts an optional second argument for a
537 custom message. POD anotated accordingly (groditi)
538 - added tests for this
539 - it is now possible to make anon-enums by passing 'enum' an
540 ARRAY ref instead of the $name => @values. Everything else
542 - added tests for this
545 - making test for using '+name' on attributes consumed
546 from a role, it works and makes sense too.
548 * Moose::Meta::Attribute
549 - fix handles so that it doesn't return nothing
550 when the method cannot be found, not sure why
551 it ever did this originally, this means we now
552 have slightly better support for AUTOLOADed
554 - added more delegation tests
555 - adding ->does method to this so as to better
556 support traits and their introspection.
557 - added tests for this
560 - localizing the Data::Dumper configurations so
561 that it does not pollute others (RT #33509)
562 - made ->does a little more forgiving when it is
563 passed Class::MOP era metaclasses.
565 0.38 Fri. Feb. 15, 2008
566 * Moose::Meta::Attribute
567 - fixed initializer to correctly do
568 type checking and coercion in the
570 - added tests for this
573 - fixed some finicky tests (thanks to konobi)
575 0.37 Thurs. Feb. 14, 2008
577 - fixed some details in Moose::init_meta
578 and its superclass handling (thanks thepler)
579 - added tests for this (thanks thepler)
580 - 'has' now dies if you don't pass in name
582 - added the 'make_immutable' keyword as a shortcut
586 Moose::Meta::Method::Constructor
587 Moose::Meta::Attribute
588 - making (init_arg => undef) work here too
589 (thanks to nothingmuch)
591 * Moose::Meta::Attribute
592 Moose::Meta::Method::Constructor
593 Moose::Meta::Method::Accessor
594 - make lazy attributes respect attr initializers (rjbs)
595 - added tests for this
597 * Moose::Util::TypeConstraints
598 Moose::Util::TypeConstraints::OptimizedConstraints
599 Moose::Meta::TypeConstraints
600 Moose::Meta::Attribute
601 Moose::Meta::Method::Constructor
602 Moose::Meta::Method::Accessor
603 - making type errors use the
604 assigned message (thanks to Sartak)
605 - added tests for this
607 * Moose::Meta::Method::Destructor
608 - making sure DESTROY gets inlined properly
609 with successive DEMOLISH calls (thanks to manito)
611 * Moose::Meta::Attribute
612 Moose::Meta::Method::Accessor
613 - fixed handling of undef with type constraints
615 - added tests for this
618 - added &get_all_init_args and &get_all_attribute_values
619 (thanks to Sartak and nothingmuch)
621 0.36 Sat. Jan. 26, 2008
623 Moose::Meta::Attribute
624 - role type tests now support when roles are
625 applied to non-Moose classes (found by ash)
626 - added tests for this (thanks to ash)
627 - couple extra tests to boost code coverage
629 * Moose::Meta::Method::Constructor
630 - improved fix for handling Class::MOP attributes
631 - added test for this
634 - handled the add_attribute($attribute_meta_object)
636 - added test for this
638 0.35 Tues. Jan. 22, 2008
639 * Moose::Meta::Method::Constructor
640 - fix to make sure even Class::MOP attributes
641 are handled correctly (Thanks to Dave Rolsky)
642 - added test for this (also Dave Rolsky)
645 - improved error message on _apply_all_roles,
646 you should now use Moose::Util::apply_all_roles
647 and you shouldnt have been using a _ prefixed
648 method in the first place ;)
650 0.34 Mon. Jan. 21, 2008
651 ~~~ more misc. doc. fixes ~~~
652 ~~ updated copyright dates ~~
654 Moose is now a postmodern object system :)
655 - (see the POD for details)
657 * <<Role System Refactoring>>
658 - this release contains a major reworking and
659 cleanup of the role system
660 - 100% backwards compat.
661 - Role application now restructured into seperate
662 classes based on type of applicants
663 - Role summation (combining of more than one role)
664 is much cleaner and anon-classes are no longer
666 - new Composite role metaclass
667 - runtime application of roles to instances
668 is now more efficient and re-uses generated
669 classes when applicable
671 * <<New Role composition features>>
672 - methods can now be excluded from a given role
674 - methods can now be aliased to another name (and
675 still retain the original as well)
677 * Moose::Util::TypeConstraints::OptimizedConstraints
678 - added this module (see above)
681 - fixed the &_process_attribute method to be called
682 by &add_attribute, so that the API is now correct
684 * Moose::Meta::Method::Accessor
685 - fixed bug when passing a list of values to
686 an accessor would get (incorrectly) ignored.
687 Thanks to Sartak for finding this ;)
688 - added tests for this (Sartak again)
690 * Moose::Meta::Method::Accessor
691 Moose::Meta::Method::Constructor
692 Moose::Meta::Attribute
693 Moose::Meta::TypeConstraint
694 Moose::Meta::TypeCoercion
695 - lots of cleanup of such things as:
697 - type constraint handling
698 - error handling/messages
699 (thanks to nothingmuch)
701 * Moose::Meta::TypeConstraint::Parameterizable
702 - added this module to support the refactor
703 in Moose::Meta::TypeConstraint::Parameterized
705 * Moose::Meta::TypeConstraint::Parameterized
706 - refactored how these types are handled so they
707 are more generic and not confined to ArrayRef
711 - shortened some file names for better VMS support (RT #32381)
713 0.33 Fri. Dec. 14, 2007
714 !! Moose now loads 2 x faster !!
715 !! with new Class::MOP 0.49 !!
717 ++ new oose.pm module to make command line
718 Moose-ness easier (see POD docs for more)
722 - several tweaks to take advantage of the
723 new method map caching in Class::MOP
725 * Moose::Meta::TypeConstraint::Parameterized
726 - allow subtypes of ArrayRef and HashRef to
727 be used as a container (sartak)
728 - added tests for this
729 - basic support for coercion to ArrayRef and
730 HashRef for containers (sartak)
731 - added tests for this
733 * Moose::Meta::TypeCoercion
734 - coercions will now create subtypes as needed
735 so you can now add coercions to parameterized
736 types without having to explictly define them
737 - added tests for this
739 * Moose::Meta::Method::Accessor
740 - allow subclasses to decide whether we need
741 to copy the value into a new variable (sartak)
743 0.32 Tues. Dec. 4, 2007
744 * Moose::Util::TypeConstraints
745 - fixing how subtype aliases of unions work
746 they should inherit the parent's coercion
747 - added tests for this
748 - you can now define multiple coercions on
749 a single type at different times instead of
750 having to do it all in one place
751 - added tests for this
753 * Moose::Meta::TypeConstraint
754 - there is now a default constraint of sub { 1 }
755 instead of Moose::Util::TypeConstraints setting
758 * Moose::Meta::TypeCoercion
759 * Moose::Meta::TypeCoercion::Union
760 - added the &has_coercion_for_type and
761 &add_type_coercions methods to support the
762 new features above (although you cannot add
763 more type coercions for Union types)
765 0.31 Mon. Nov. 26, 2007
766 * Moose::Meta::Attribute
767 - made the +attr syntax handle extending types with
768 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
769 now works if the original foo is an ArrayRef.
770 - added tests for this.
771 - delegation now works even if the attribute does not
772 have a reader method using the get_read_method_ref
773 method from Class::MOP::Attribute.
774 - added tests for this
775 - added docs for this
777 * Moose::Util::TypeConstraints
778 - passing no "additional attribute info" to
779 &find_or_create_type_constraint will no longer
780 attempt to create an __ANON__ type for you,
781 instead it will just return undef.
782 - added docs for this
784 0.30 Fri. Nov. 23, 2007
785 * Moose::Meta::Method::Constructor
786 -builder related bug in inlined constructor. (groditi)
788 * Moose::Meta::Method::Accessor
789 - genereate unnecessary calls to predicates and refactor
790 code generation for runtime speed (groditi)
792 * Moose::Util::TypeConstraints
793 - fix ClassName constraint to introspect symbol table (mst)
794 - added more tests for this (mst)
795 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
797 - added tests for this
800 - adding the link to Recipie 11 (written by Sartak)
801 - adding test for SYNOPSIS code
804 - New tests for builder bug. Upon instantiation, if an
805 attribute had a builder, no value and was not lazy the
806 builder default was not getting run, oops. (groditi)
808 0.29 Tues. Nov. 13, 2007
809 * Moose::Meta::Attribute
810 - Fix error message on missing builder method (groditi)
812 * Moose::Meta::Method::Accessor
813 - Fix error message on missing builder method (groditi)
816 - Add test to check for the correct error message when
817 builder method is missing (groditi)
819 0.28 Tues. Nov. 13, 2007
820 - 0.27 packaged incorrectly (groditi)
822 0.27 Tues. Nov. 13, 2007
823 * Moose::Meta::Attribute
824 - Added support for the new builder option (groditi)
825 - Added support for lazy_build option (groditi)
826 - Changed slot initialization for predicate changes (groditi)
828 * Moose::Meta::Method::Accessor
829 - Added support for lazy_build option (groditi)
830 - Fix inline methods to work with corrected predicate
833 * Moose::Meta::Method::Constructor
834 - Added support for lazy_build option (groditi)
837 - tests for builder and lazy_build (groditi)
839 * fixing some misc. bits in the docs that
840 got mentioned on CPAN Forum & perlmonks
843 - fixed how required methods are handled
844 when they encounter overriden or modified
845 methods from a class (thanks to confound).
846 - added tests for this
848 * Moose::Util::TypeConstraint
849 - fixed the type notation parser so that
850 the | always creates a union and so is
851 no longer a valid type char (thanks to
852 konobi, mugwump and #moose for working
854 - added more tests for this
856 0.26 Thurs. Sept. 27, 2007
859 * Parameterized Types
860 We now support parameterized collection types, such as:
861 ArrayRef[Int] # array or integers
862 HashRef[Object] # a hash with object values
863 They can also be nested:
864 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
865 And work with the type unions as well:
866 ArrayRef[Int | Str] # array of integers of strings
868 * Better Framework Extendability
869 Moose.pm is now "extendable" such that it is now much
870 easier to extend the framework and add your own keywords
871 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
872 section of the Moose.pm docs.
875 In an effort to begin documenting some of the various
876 details of Moose as well as some common idioms, we have
877 created Moose::Cookbook::Snacks as a place to find
878 small (easily digestable) nuggets of Moose code.
881 ~ Several doc updates/cleanup thanks to castaway ~
883 - converted build system to use Module::Install instead of
884 Module::Build (thanks to jrockway)
887 - added all the meta classes to the immutable list and
888 set it to inline the accessors
889 - fix import to allow Sub::Exporter like { into => }
890 and { into_level => } (perigrin)
891 - exposed and documented init_meta() to allow better
892 embedding and extending of Moose (perigrin)
895 - complete re-organization of the test suite
896 - added some new tests as well
897 - finally re-enabled the Moose::POOP test since
898 the new version of DBM::Deep now works again
902 - fixed very odd and very nasty recursion bug with
904 - added tests for this (eilara)
906 * Moose::Meta::Attribute
907 Moose::Meta::Method::Constructor
908 Moose::Meta::Method::Accessor
909 - fixed issue with overload::Overloaded getting called
910 on non-blessed items. (RT #29269)
911 - added tests for this
913 * Moose::Meta::Method::Accessor
914 - fixed issue with generated accessor code making
915 assumptions about hash based classes (thanks to dexter)
917 * Moose::Coookbook::Snacks
918 - these are bits of documentation, not quite as big as
919 Recipes but which have no clear place in the module docs.
920 So they are Snacks! (horray for castaway++)
922 * Moose::Cookbook::Recipe4
923 - updated it to use the new ArrayRef[MyType] construct
924 - updated the accompanying test as well
926 +++ Major Refactor of the Type Constraint system +++
927 +++ with new features added as well +++
929 * Moose::Util::TypeConstraint
930 - no longer uses package variable to keep track of
931 the type constraints, now uses the an instance of
932 Moose::Meta::TypeConstraint::Registry to do it
933 - added more sophisticated type notation parsing
935 - added tests for this
937 * Moose::Meta::TypeConstraint
938 - some minor adjustments to make subclassing easier
939 - added the package_defined_in attribute so that we
940 can track where the type constraints are created
942 * Moose::Meta::TypeConstraint::Union
943 - this is now been refactored to be a subclass of
944 Moose::Meta::TypeConstraint
946 * Moose::Meta::TypeCoercion::Union
947 - this has been added to service the newly refactored
948 Moose::Meta::TypeConstraint::Union and is itself
949 a subclass of Moose::Meta::TypeCoercion
951 * Moose::Meta::TypeConstraint::Parameterized
952 - added this module (taken from MooseX::AttributeHelpers)
953 to help construct nested collection types
954 - added tests for this
956 * Moose::Meta::TypeConstraint::Registry
957 - added this class to keep track of type constraints
959 0.25 Mon. Aug. 13, 2007
961 - Documentation update to reference Moose::Util::TypeConstraints
962 under 'isa' in 'has' for how to define a new type
965 * Moose::Meta::Attribute
966 - required attributes now will no longer accept undef
967 from the constructor, even if there is a default and lazy
968 - added tests for this
969 - default subroutines must return a value which passes the
971 - added tests for this
973 * Moose::Meta::Attribute
974 * Moose::Meta::Method::Constructor
975 * Moose::Meta::Method::Accessor
976 - type-constraint tests now handle overloaded objects correctly
978 - added tests for this (thanks to EvanCarroll)
980 * Moose::Meta::TypeConstraint::Union
981 - added (has_)hand_optimized_constraint to this class so that
982 it behaves as the regular Moose::Meta::TypeConstraint does.
985 - large refactoring of this code
986 - added several more tests
987 - tests for subtle conflict resolition issues
988 added, but not currently running
991 * Moose::Cookbook::Recipe7
992 - added new recipe for augment/inner functionality
994 - added test for this
997 - a formal definition of roles (still in progress)
1000 - utilities for easier working with Moose classes
1001 - added tests for these
1004 - This contains Moose specific test functions
1005 - added tests for these
1007 0.24 Tues. July 3, 2007
1008 ~ Some doc updates/cleanup ~
1010 * Moose::Meta::Attribute
1011 - added support for roles to be given as parameters
1012 to the 'handles' option.
1013 - added tests and docs for this
1014 - the has '+foo' attribute form now accepts changes to
1015 the lazy option, and the addition of a handles option
1016 (but not changing the handles option)
1017 - added tests and docs for this
1020 - required methods are now fetched using find_method_by_name
1021 so that required methods can come from superclasses
1022 - adjusted tests for this
1024 0.23 Mon. June 18, 2007
1025 * Moose::Meta::Method::Constructor
1026 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1027 * Moose::Meta::Class
1028 - Modify make_immutable to work with the new Class::MOP immutable
1029 mechanism + POD + very basic test (groditi)
1030 * Moose::Meta::Attribute
1031 - Fix handles to use goto() so that caller() comes out properly on
1032 the other side (perigrin)
1034 0.22 Thurs. May 31, 2007
1035 * Moose::Util::TypeConstraints
1036 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1037 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1038 prototypes for functions
1039 - added the ClassName type constraint, this checks for strings
1040 which will respond true to ->isa(UNIVERSAL).
1041 - added tests and docs for this
1042 - subtyping just in name now works correctly by making the
1043 default for where be { 1 }
1044 - added test for this
1046 * Moose::Meta::Method::Accessor
1047 - coerce and lazy now work together correctly, thanks to
1048 merlyn for finding this bug
1049 - tests added for this
1050 - fix reader presedence bug in Moose::Meta::Attribute + tests
1053 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1054 a HASH-ref and missed. This produces better error messages then
1055 having it die cause undef is not a HASH.
1056 - added tests for this
1058 0.21 Thursday, May 2nd, 2007
1060 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1061 - modified unimport to remove super and inner along with the rest
1062 - altered unimport tests to handle this
1065 - altered super export to populate SUPER_SLOT
1067 * Moose::Meta::Class
1068 - altered augment and override modifier application to use *_SLOT
1069 - modified tests for these to unimport one test class each to test
1072 - fixed issue where custom attribute metaclasses
1073 where not handled correctly in roles
1074 - added tests for this
1076 * Moose::Meta::Class
1077 - fixed issue where extending metaclasses with
1078 roles would blow up. Thanks to Aankhen`` for
1079 finding this insidious error, and it's solution.
1081 ~~ lots of spelling and grammer fixes in the docs,
1082 many many thanks to rlb3 and Aankhen for these :)
1084 0.20 Friday, April 6th, 2007
1085 >> I messed up the SKIP logic in one test
1086 so this release is just to fix that.
1089 - 'has' now also accepts an ARRAY ref
1090 to create multiple attrs (see docs)
1091 (thanks to konobi for this)
1092 - added tests and docs
1094 0.19 Thurs. April 5th, 2007
1095 ~~ More documentation updates ~~
1097 * Moose::Util::TypeConstraints
1098 - 'type' now supports messages as well
1099 thanks to phaylon for finding this
1100 - added tests for this
1101 - added &list_all_type_constraints and
1102 &list_all_builtin_type_constraints
1103 functions to facilitate introspection.
1105 * Moose::Meta::Attribute
1106 - fixed regexp 'handles' declarations
1107 to build the list of delegated methods
1108 correctly (and not override important
1109 things like &new) thanks to ashleyb
1111 - added tests and docs for this
1112 - added the 'documentation' attributes
1113 so that you can actually document your
1114 attributes and inspect them through the
1116 - added tests and docs for this
1118 * Moose::Meta::Class
1119 - when loading custom attribute metaclasses
1120 it will first look in for the class in the
1121 Moose::Meta::Attribute::Custom::$name, and
1122 then default to just loading $name.
1123 - added tests and docs for this
1125 * Moose::Meta::TypeConstraint
1126 - type constraints now stringify to their names.
1127 - added test for this
1130 - added tests to assure we work with Module::Refresh
1131 - added stricter test skip logic in the Moose POOP
1132 test, ask Rob Kinyon why.
1133 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1135 0.18 Sat. March 10, 2007
1136 ~~ Many, many documentation updates ~~
1139 - We now use Class::MOP::load_class to
1141 - added tests to show types and subtypes
1142 working with Declare::Constraints::Simple
1143 and Test::Deep as constraint engines.
1146 !! You must have Class::MOP 0.37_001 !!
1147 !! for this developer release to work !!
1149 This release was primarily adding the immutable
1150 feature to Moose. An immutable class is one which
1151 you promise not to alter. When you set the class
1152 as immutable it will perform various bits of
1153 memoization and inline certain part of the code
1154 (constructors, destructors and accessors). This
1155 minimizes (and in some cases totally eliminates)
1156 one of Moose's biggest performance hits. This
1157 feature is not on by default, and is 100% optional.
1158 It has several configurable bits as well, so you
1159 can pick and choose to your specific needs.
1161 The changes involved in this were fairly wide and
1162 highly specific, but 100% backwards compatible, so
1163 I am not going to enumerate them here. If you are
1164 truely interested in what was changed, please do
1167 0.17 Tues. Nov. 14, 2006
1168 * Moose::Meta::Method::Accessor
1169 - bugfix for read-only accessors which
1170 are have a type constraint and lazy.
1171 Thanks to chansen for finding it.
1173 0.16 Tues. Nov. 14, 2006
1175 There are some speed improvements in this release,
1176 but they are only the begining, so stay tuned.
1179 - BUILDALL and DEMOLISHALL no longer get
1180 called unless they actually need to be.
1181 This gave us a signifigant speed boost
1182 for the cases when there is no BUILD or
1183 DEMOLISH method present.
1185 * Moose::Util::TypeConstraints
1186 * Moose::Meta::TypeConstraint
1187 - added an 'optimize_as' option to the
1188 type constraint, which allows for a
1189 hand optimized version of the type
1190 constraint to be used when possible.
1191 - Any internally created type constraints
1192 now provide an optimized version as well.
1194 0.15 Sun. Nov. 5, 2006
1196 This version of Moose *must* have Class::MOP 0.36 in order
1197 to work correctly. A number of small internal tweaks have
1198 been made in order to be compatible with that release.
1200 * Moose::Util::TypeConstraints
1201 - added &unimport so that you can clean out
1202 your class namespace of these exported
1205 * Moose::Meta::Class
1206 - fixed minor issue which occasionally
1207 comes up during global destruction
1209 - moved Moose::Meta::Method::Overriden into
1213 - moved Moose::Meta::Role::Method into
1216 * Moose::Meta::Attribute
1217 - changed how we do type checks so that
1218 we reduce the overall cost, but still
1221 - moved accessor generation methods to
1222 Moose::Meta::Method::Accessor to
1223 conform to the API changes from
1226 * Moose::Meta::TypeConstraint
1227 - changed how constraints are compiled
1228 so that we do less recursion and more
1229 iteration. This makes the type check
1231 - moved Moose::Meta::TypeConstraint::Union
1234 * Moose::Meta::Method::Accessor
1235 - created this from methods formerly found in
1236 Moose::Meta::Attribute
1238 * Moose::Meta::Role::Method
1239 - moved this from Moose::Meta::Role
1241 * Moose::Meta::Method::Overriden
1242 - moved this from Moose::Meta::Class
1244 * Moose::Meta::TypeConstraint::Union
1245 - moved this from Moose::Meta::TypeConstraint
1247 0.14 Mon. Oct. 9, 2006
1249 * Moose::Meta::Attribute
1250 - fixed lazy attributes which were not getting
1251 checked with the type constraint (thanks ashley)
1252 - added tests for this
1253 - removed the over-enthusiastic DWIMery of the
1254 automatic ArrayRef and HashRef defaults, it
1255 broke predicates in an ugly way.
1256 - removed tests for this
1258 0.13 Sat. Sept. 30, 2006
1260 This version of Moose *must* have Class::MOP 0.35 in order
1261 to work correctly. A number of small internal tweaks have
1262 been made in order to be compatible with that release.
1265 - Removed the use of UNIVERSAL::require to be a better
1266 symbol table citizen and remove a dependency
1267 (thanks Adam Kennedy)
1269 **~~ removed experimental & undocumented feature ~~**
1270 - commented out the 'method' and 'self' keywords, see the
1271 comments for more info.
1274 - added a FAQ and WTF files to document frequently
1275 asked questions and common problems
1277 * Moose::Util::TypeConstraints
1278 - added GlobRef and FileHandle type constraint
1279 - added tests for this
1281 * Moose::Meta::Attribute
1282 - if your attribute 'isa' ArrayRef of HashRef, and you have
1283 not explicitly set a default, then make the default DWIM.
1284 This will also work for subtypes of ArrayRef and HashRef
1286 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1287 - new test added for this (thanks to ashley)
1290 - added basic support for runtime role composition
1291 but this is still *highly experimental*, so feedback
1292 is much appreciated :)
1293 - added tests for this
1295 * Moose::Meta::TypeConstraint
1296 - the type constraint now handles the coercion process
1297 through delegation, this is to support the coercion
1300 * Moose::Meta::TypeConstraint::Union
1301 - it is now possible for coercions to be performed
1303 - added tests for this (thanks to konobi)
1305 * Moose::Meta::TypeCoercion
1306 - properly capturing error when type constraint
1310 - Scalar::Util 1.18 is bad on Win32, so temporarily
1311 only require version 1.17 for Win32 and cygwin.
1312 (thanks Adam Kennedy)
1314 0.12 Sat. Sept. 1, 2006
1316 - Recipe5 (subtypes & coercion) has been written
1319 - fixed "bad meta" error message to be more descriptive
1320 - fixed &unimport to not remove the &inner and &super
1321 keywords because we need to localize them.
1322 - fixed number of spelling/grammer issues, thanks Theory :)
1324 **~~ experimental & undocumented feature ~~**
1325 - added the method and self keywords, they are basically
1326 just sugar, and they may not stay around.
1329 - added &dump method to easily Data::Dumper
1332 * Moose::Meta::TypeConstraint
1333 - added the &is_a_type_of method to check both the current
1334 and the subtype of a method (similar to &isa with classes)
1337 - this is now a subclass of Class::MOP::Module, and no longer
1338 creates the _role_meta ugliness of before.
1339 - fixed tests to reflect this change
1341 0.11 Wed. July 12, 2006
1343 - added an &unimport method to remove all the keywords
1344 that Moose will import, simply add 'no Moose' to the
1345 bottom of your class file.
1348 - fixed some test failures caused by a forgotten test
1351 0.10 Thurs. July 6, 2006
1353 - improved error message when loading modules so
1354 it is less confusing when you load a role.
1355 - added &calculate_all_roles method to
1356 Moose::Meta::Class and Moose::Meta::Role
1359 This module has been tested against Class::MOP 0.30
1360 but it does not yet utilize the optimizations
1361 it makes available. Stay tuned for that ;)
1363 0.09_03 Fri. June 23, 2006
1364 ++ DEVELOPER RELEASE ++
1366 - 'use strict' and 'use warnings' are no longer
1367 needed in Moose classes, Moose itself will
1368 turn them on for you.
1369 - added tests for this
1370 - moved code from exported subs to private methods
1371 in Moose::Meta::Class
1374 - as with Moose, strict and warnings are
1375 automatically turned on for you.
1376 - added tests for this
1379 - now handles an edge case for override errors
1380 - added tests for this
1381 - added some more edge case tests
1383 0.09_02 Tues. May 16, 2006
1384 ++ DEVELOPER RELEASE ++
1386 - added prototypes to the exported subs
1390 - added prototypes to the exported subs
1393 * Moose::Util::TypeConstraints
1394 - cleaned up prototypes for the subs
1397 0.09_01 Fri. May 12, 2006
1398 ++ DEVELOPER RELEASE ++
1399 - This release works in combination with
1400 Class::MOP 0.29_01, it is a developer
1401 release because it uses the a new
1402 instance sub-protocol and a fairly
1403 complete Role implementation. It has
1404 not yet been optimized, so it slower
1405 the the previous CPAN version. This
1406 release also lacks good updated docs,
1407 the official release will have updated docs.
1410 - refactored the keyword exports
1411 - 'with' now checks Role validaity and
1412 accepts more than one Role at a time
1413 - 'extends' makes metaclass adjustments as
1414 needed to ensure metaclass compatability
1417 - refactored the keyword exports
1418 - 'with' now checks Role validaity and
1419 accepts more than one Role at a time
1421 * Moose::Util::TypeConstraints
1422 - added the 'enum' keyword for simple
1423 string enumerations which can be used as
1425 - see example of usage in t/202_example.t
1428 - more careful checking of params to new()
1431 - much work done on the role composition
1432 - many new tests for conflict detection
1433 and composition edge cases
1434 - not enough documentation, I suggest
1435 looking at the tests
1437 * Moose::Meta::Instance
1438 - added new Instance metaclass to support
1439 the new Class::MOP instance protocol
1441 * Moose::Meta::Class
1442 - some small changes to support the new
1444 - some small additions to support Roles
1446 * Moose::Meta::Attribute
1447 - some improvements to the accessor generation code
1449 - some small changes to support the new
1451 - (still somewhat) experimental delegation support
1452 with the 'handles' option
1453 - added several tests for this
1454 - no docs for this yet
1456 0.05 Thurs. April 27, 2006
1458 - keywords are now exported with Sub::Exporter
1459 thanks to chansen for this commit
1460 - has keyword now takes a 'metaclass' option
1461 to support custom attribute meta-classes
1462 on a per-attribute basis
1463 - added tests for this
1464 - the 'has' keyword not accepts inherited slot
1465 specifications (has '+foo'). This is still an
1466 experimental feature and probably not finished
1467 see t/038_attribute_inherited_slot_specs.t for
1468 more details, or ask about it on #moose
1469 - added tests for this
1472 - keywords are now exported with Sub::Exporter
1474 * Moose::Utils::TypeConstraints
1475 - reorganized the type constraint hierarchy, thanks
1476 to nothingmuch and chansen for his help and advice
1478 - added some tests for this
1479 - keywords are now exported with Sub::Exporter
1480 thanks to chansen for this commit
1482 * Moose::Meta::Class
1483 - due to changes in Class::MOP, we had to change
1484 construct_instance (for the better)
1486 * Moose::Meta::Attribute
1487 - due to changes in Class::MOP, we had to add the
1488 initialize_instance_slot method (it's a good thing)
1490 * Moose::Meta::TypeConstraint
1491 - added type constraint unions
1492 - added tests for this
1493 - added the is_subtype_of predicate method
1494 - added tests for this
1496 0.04 Sun. April 16th, 2006
1498 - Roles can now consume other roles
1499 - added tests for this
1500 - Roles can specify required methods now with
1501 the requires() keyword
1502 - added tests for this
1505 - ripped out much of it's guts ,.. much cleaner now
1506 - added required methods and correct handling of
1507 them in apply() for both classes and roles
1508 - added tests for this
1509 - no longer adds a does() method to consuming classes
1510 it relys on the one in Moose::Object
1511 - added roles attribute and some methods to support
1512 roles consuming roles
1514 * Moose::Meta::Attribute
1515 - added support for triggers on attributes
1516 - added tests for this
1517 - added support for does option on an attribute
1518 - added tests for this
1520 * Moose::Meta::Class
1521 - added support for attribute triggers in the
1523 - added tests for this
1526 - Moose no longer creates a subtype for your class
1527 if a subtype of the same name already exists, this
1528 should DWIM in 99.9999% of all cases
1530 * Moose::Util::TypeConstraints
1531 - fixed bug where incorrect subtype conflicts were
1533 - added test for this
1536 - this class can now be extended with 'use base' if
1537 you need it, it properly loads the metaclass class now
1538 - added test for this
1540 0.03_02 Wed. April 12, 2006
1542 - you must now explictly use Moose::Util::TypeConstraints
1543 it no longer gets exported for you automatically
1546 - new() now accepts hash-refs as well as key/value lists
1547 - added does() method to check for Roles
1548 - added tests for this
1550 * Moose::Meta::Class
1551 - added roles attribute along with the add_role() and
1553 - added tests for this
1556 - now adds a does() method to consuming classes
1557 which tests the class's hierarchy for roles
1558 - added tests for this
1560 0.03_01 Mon. April 10, 2006
1562 - added new Role recipe (no content yet, only code)
1565 - added 'with' keyword for Role support
1566 - added test and docs for this
1567 - fixed subtype quoting bug
1568 - added test for this
1572 - added test and docs
1574 * Moose::Util::TypeConstraints
1575 - added the message keyword to add custom
1576 error messages to type constraints
1579 - the meta role to support Moose::Role
1580 - added tests and docs
1582 * Moose::Meta::Class
1583 - moved a number of things from Moose.pm
1584 to here, they should have been here
1587 * Moose::Meta::Attribute
1588 - moved the attribute option macros here
1589 instead of putting them in Moose.pm
1591 * Moose::Meta::TypeConstraint
1592 - added the message attributes and the
1594 - added tests and docs for this
1596 0.03 Thurs. March 30, 2006
1598 - added the Moose::Cookbook with 5 recipes,
1599 describing all the stuff Moose can do.
1602 - fixed an issue with &extends super class loading
1603 it now captures errors and deals with inline
1604 packages correctly (bug found by mst, solution
1606 - added super/override & inner/augment features
1607 - added tests and docs for these
1610 - BUILDALL now takes a reference of the %params
1611 that are passed to &new, and passes that to
1614 * Moose::Util::TypeConstraints
1615 - Type constraints now survive runtime reloading
1616 - added test for this
1618 * Moose::Meta::Class
1619 - fixed the way attribute defaults are handled
1620 during instance construction (bug found by chansen)
1622 * Moose::Meta::Attribute
1623 - read-only attributes now actually enforce their
1624 read-only-ness (this corrected in Class::MOP as
1627 0.02 Tues. March 21, 2006
1629 - many more tests, fixing some bugs and
1631 - &extends now loads the base module with
1633 - added UNIVERSAL::require to the
1636 - each new Moose class will also create
1637 and register a subtype of Object which
1638 correspond to the new Moose class.
1639 - the 'isa' option in &has now only
1640 accepts strings, and will DWIM in
1643 * Moose::Util::TypeConstraints
1644 - added type coercion features
1645 - added tests for this
1646 - added support for this in attributes
1647 and instance construction
1649 - type construction no longer creates a
1650 function, it registers the type instead.
1651 - added several functions to get the
1655 - BUILDALL and DEMOLISHALL were broken
1656 because of a mis-named hash key, Whoops :)
1658 * Moose::Meta::Attribute
1659 - adding support for coercion in the
1660 autogenerated accessors
1662 * Moose::Meta::Class
1663 - adding support for coercion in the
1664 instance construction
1666 * Moose::Meta::TypeConstraint
1667 * Moose::Meta::TypeCoercion
1668 - type constraints and coercions are now
1669 full fledges meta-objects
1671 0.01 Wed. March 15, 2006
1672 - Moooooooooooooooooose!!!