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)
56 - get_method_map now respects the package cache flag (nothingmuch)
59 - Two new methods - add_method and wrap_method_body
63 - Optimizations including allowing constructors to accept hash
64 refs, making many more classes immutable, and making
65 constructors immutable. (nothingmuch)
67 0.55 Sun August 3, 2008
68 * Moose::Meta::Attribute
69 - breaking down the way 'handles' methods are
70 created so that the process can be more easily
71 overridden by subclasses (stevan)
73 * Moose::Meta::TypeConstraint
74 - fixing what is passed into a ->message with
75 the type constraints (RT #37569)
76 - added tests for this (Charles Alderman)
78 * Moose::Util::TypeConstraints
79 - fix coerce to accept anon types like subtype can (mst)
82 - reorganized the recipes into sections - Basics, Roles, Meta,
83 Extending - and wrote abstracts for each section (Dave Rolsky)
85 * Moose::Cookbook::Basics::Recipe10
86 - A new recipe that demonstrates operator overloading
87 in combination with Moose. (bluefeet)
89 * Moose::Cookbook::Meta::Recipe1
90 - an introduction to what meta is and why you'd want to make
91 your own metaclass extensions (Dave Rolsky)
93 * Moose::Cookbook::Meta::Recipe4
94 - a very simple metaclass example (Dave Rolsky)
96 * Moose::Cookbook::Extending::Recipe1
97 - how to write a Moose-alike module to use your own object base
100 * Moose::Cookbook::Extending::Recipe2
101 - how to write modules with an API just like C<Moose.pm> (Dave
105 - Tons of fixes, both syntactical and grammatical (Dave
106 Rolsky, Paul Fenwick)
108 0.54 Thurs. July 3, 2008
109 ... this is not my day today ...
111 * Moose::Meta::Attribute
112 - fixed legal_options_for_inheritance such that
113 clone_and_inherit options still works for
114 Class::MOP::Attribute objects and therefore
115 does not break MooseX::AttributeHelpers
118 0.53 Thurs. July 3, 2008
119 * Whoops, I guess I should run 'make manifest' before
120 actually releasing the module. No actual changes
121 in this release, except the fact that it includes
122 the changes that I didn't include in the last
125 0.52 Thurs. July 3, 2008
127 - added "FEATURE REQUESTS" section to the Moose docs
128 to properly direct people (stevan) (RT #34333)
129 - making 'extends' croak if it is passed a Role since
130 this is not ever something you want to do
131 (fixed by stevan, found by obra)
132 - added tests for this (stevan)
135 - adding support for DOES (as in UNIVERSAL::DOES)
137 - added test for this
139 * Moose::Meta::Attribute
140 - added legal_options_for_inheritance (wreis)
141 - added tests for this (wreis)
143 * Moose::Cookbook::Snacks::*
144 - removed some of the unfinished snacks that should
145 not have been released yet. Added some more examples
146 to the 'Keywords' snack. (stevan)
148 * Moose::Cookbook::Style
149 - added general Moose "style guide" of sorts to the
150 cookbook (nothingmuch) (RT #34335)
153 - added more BUILDARGS tests (stevan)
155 0.51 Thurs. Jun 26, 2008
157 - add unimport so "no Moose::Role" actually does
160 * Moose::Meta::Role::Application::ToRole
161 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
162 order to provide its own implementation, that method still got
163 added to the list of required methods for consumers of
164 RoleB. Now an aliased method is only added to the list of
165 required methods if the role doing the aliasing does not
166 provide its own implementation. See Recipe 11 for an example
167 of all this. (Dave Rolsky)
168 - added tests for this
170 * Moose::Meta::Method::Constructor
171 - when a single argument that wasn't a hashref was provided to
172 an immutabilized constructor, the error message was very
173 unhelpful, as opposed to the non-immutable error. Reported by
175 - added test for this (Dave Rolsky)
177 * Moose::Meta::Attribute
178 - added support for meta_attr->does("ShortAlias") (sartak)
179 - added tests for this (sartak)
180 - moved the bulk of the `handles` handling to the new
181 install_delegation method (Stevan)
184 - Added BUILDARGS, a new step in new()
186 * Moose::Meta::Role::Application::RoleSummation
187 - fix typos no one ever sees (sartak)
189 * Moose::Util::TypeConstraints
190 * Moose::Meta::TypeConstraint
191 * Moose::Meta::TypeCoercion
192 - Attempt to work around the ??{ } vs. threads issue
194 - Some null_constraint optimizations
196 0.50 Thurs. Jun 11, 2008
197 - Fixed a version number issue by bumping all modules
200 0.49 Thurs. Jun 11, 2008
201 !! This version now approx. 20-25% !!
202 !! faster with new Class::MOP 0.59 !!
204 * Moose::Meta::Attribute
205 - fixed how the is => (ro|rw) works with
206 custom defined reader, writer and accessor
208 - added docs for this (TODO).
209 - added tests for this (Thanks to Penfold)
210 - added the custom attribute alias for regular
211 Moose attributes which is "Moose"
212 - fix builder and default both being used
217 Moose::Meta::Attribute
219 Moose::Meta::Role::Composite
220 Moose::Util::TypeConstraints
221 - switched usage of reftype to ref because
225 - changing add_package_symbol to use the new
229 - fixed how DEMOLISHALL is called so that it
230 can be overrided in subclasses (thanks to Sartak)
231 - added test for this (thanks to Sartak)
233 * Moose::Util::TypeConstraints
234 - move the ClassName type check code to
235 Class::MOP::is_class_loaded (thanks to Sartak)
237 * Moose::Cookbook::Recipe11
238 - add tests for this (thanks to tokuhirom)
240 0.48 Thurs. May 29, 2008
241 (early morning release engineering)--
243 - fixing the version in Moose::Meta::Method::Destructor
244 which was causing the indexer to choke
246 0.47 Thurs. May 29, 2008
247 (late night release engineering)--
249 - fixing the version is META.yml, no functional
250 changes in this release
252 0.46 Wed. May 28, 2008
253 !! This version now approx. 20-25% !!
254 !! faster with new Class::MOP 0.57 !!
257 - some optimizations of the &initialize method
258 since it is called so often by &meta
262 - now use the get_all_package_symbols from the
263 updated Class::MOP, test suite is now 10 seconds
266 * Moose::Meta::Method::Destructor
267 - is_needed can now also be called as a class
268 method for immutablization to check if the
269 destructor object even needs to be created
272 * Moose::Meta::Method::Destructor
273 Moose::Meta::Method::Constructor
274 - added more descriptive error message to help
275 keep people from wasting time tracking an error
276 that is easily fixed by upgrading.
278 0.45 Saturday, May 24, 2008
280 - Because of work in Class::MOP 0.56, all
281 XS based functionality is now optional
282 and a Pure Perl version is supplied
283 - the CLASS_MOP_NO_XS environment variable
284 can now be used to force non-XS versions
286 - several of the packages have been tweaked
287 to take care of this, mostly we added
288 support for the package_name and name
289 variables in all the Method metaclasses
290 - before/around/after method modifiers now
291 support regexp matching of names
292 (thanks to Takatoshi Kitano)
293 - tests added for this
294 - NOTE: this only works for classes, it
295 is currently not supported in roles,
296 but, ... patches welcome
297 - All usage of Carp::confess have been replaced
298 by Carp::croak in the "keyword" functions since
299 the stack trace is usually not helpful
302 - All usage of Carp::confess have been replaced
303 by Carp::croak in the "keyword" functions since
304 the stack trace is usually not helpful
305 - The 'has' keyword for roles now accepts the
306 same array ref form that Moose.pm does
307 (has [qw/foo bar/] => (is => 'rw', ...))
308 - added test for this
310 * Moose::Meta::Attribute
311 - trigger on a ro-attribute is no longer an
312 error, as it's useful to trigger off of the
316 - added same 'add_package_symbol' fix as in
320 - does_role now handles non-Moose classes
322 - added tests for this
323 - added the 'add_method_modifier' function
324 (thanks to Takatoshi Kitano)
326 * Moose::Util::TypeConstraints
327 - subtypes of parameterizable types now are
328 themselves parameterizable types
330 * Moose::Meta::Method::Constructor
331 - fixed bug where trigger was not being
332 called by the inlined immutable
334 - added test for this (thanks to Caelum)
336 * Moose::Meta::Role::Application::ToInstance
337 - now uses the metaclass of the instance
338 (if possible) to create the anon-class
339 (thanks Jonathan Rockway)
341 * Moose::Cookbook::Recipe22
342 - added the meta-attribute trait recipe
346 - fixed hash-ordering test bug that was
347 causing occasional cpantester failures
348 - renamed the t/000_recipe/*.t tests to be
349 more descriptive (thanks to Sartak)
351 0.44 Sat. May 10, 2008
353 - made make_immutable warning cluck to
354 show where the error is (thanks mst)
357 - BUILDALL and DEMOLISHALL now call
358 ->body when looping through the
359 methods, to avoid the overloaded
361 - fixed issue where DEMOLISHALL was
362 eating the $@ values, and so not
363 working correctly, it still kind of
364 eats them, but so does vanilla perl
365 - added tests for this
367 * Moose::Cookbook::Recipe7
368 - added new recipe for immutable
369 functionality (thanks Dave Rolsky)
371 * Moose::Cookbook::Recipe9
372 - added new recipe for builder and
373 lazy_build (thanks Dave Rolsky)
375 * Moose::Cookbook::Recipe11
376 - added new recipe for method aliasing
377 and exclusion with Roles (thanks Dave Rolsky)
380 - fixed Win32 test failure (thanks spicyjack)
382 ~ removed Build.PL and Module::Build compat
383 since Module::Install has done that.
385 0.43 Wed. April, 30, 2008
387 drink more coffee before
388 doing release engineering
390 - whoops, forgot to do the smolder tests,
391 and we broke some of the custom meta-attr
392 modules. This fixes that.
394 0.42 Mon. April 28, 2008
395 - some bad tests slipped by, nothing else
396 changed in this release (cpantesters++)
398 - upped the Class::MOP dependency to 0.55
399 since we have tests which need the C3
402 0.41 Mon. April 28, 2008
403 ~~ numerous documentation updates ~~
405 - Changed all usage of die to Carp::croak for better
406 error reporting (initial patch by Tod Hagan)
409 - the make_immutable keyword is now deprecated, don't
410 use it in any new code and please fix your old code
411 as well. There will be 2 releases, and then it will
417 - refactored the way inner and super work to avoid
418 any method/@ISA cache penalty (nothingmuch)
421 - fixing &new_object to make sure trigger gets the
422 coerced value (spotted by Charles Alderman on the
424 - added test for this
426 * Moose::Meta::Method::Constructor
427 - immutable classes which had non-lazy attributes were calling
428 the default generating sub twice in the constructor. (bug
429 found by Jesse Luehrs, fixed by Dave Rolsky)
430 - added tests for this (Dave Rolsky)
431 - fix typo in initialize_body method (nothingmuch)
433 * Moose::Meta::Method::Destructor
434 - fix typo in initialize_body method (nothingmuch)
436 * Moose::Meta::Method::Overriden
437 Moose::Meta::Method::Augmented
438 - moved the logic for these into their own
439 classes (nothingmuch)
441 * Moose::Meta::Attribute
442 - inherited attributes may now be extended without
443 restriction on the type ('isa', 'does') (Sartak)
444 - added tests for this (Sartak)
445 - when an attribute property is malformed (such as lazy without
446 a default), give the name of the attribute in the error
448 - added the &applied_traits and &has_applied_traits methods
449 to allow introspection of traits
450 - added tests for this
451 - moved 'trait' and 'metaclass' argument handling to here from
453 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
454 '+foo' syntax) (nothingmuch)
455 - added tests for this (t0m)
458 - localize $@ inside DEMOLISHALL to avoid it
459 eating $@ (found by Ernesto)
460 - added test for this (thanks to Ernesto)
462 * Moose::Util::TypeConstraints
463 - &find_type_constraint now DWIMs when given an
464 type constraint object or name (nothingmuch)
465 - &find_or_create_type_constraint superseded with a number of more
467 - find_or_create_{isa,does}_type_constraint
468 - find_or_parse_type_constraint
470 * Moose::Meta::TypeConstraint
471 Moose::Meta::TypeConstraint::Class
472 Moose::Meta::TypeConstraint::Role
473 Moose::Meta::TypeConstraint::Enum
474 Moose::Meta::TypeConstraint::Union
475 Moose::Meta::TypeConstraint::Parameterized
476 - added the &equals method for comparing two type
477 constraints (nothingmuch)
478 - added tests for this (nothingmuch)
480 * Moose::Meta::TypeConstraint
481 - add the &parents method, which is just an alias to &parent.
482 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
484 * Moose::Meta::TypeConstraint::Class
485 - added the class attribute for introspection purposes
487 - added tests for this
489 * Moose::Meta::TypeConstraint::Enum
490 Moose::Meta::TypeConstraint::Role
491 - broke these out into their own classes (nothingmuch)
493 * Moose::Cookbook::Recipe*
494 - fixed references to test file locations in the POD
495 and updated up some text for new Moose features
499 - Added &resolve_metaclass_alias, a helper function for finding an actual
500 class for a short name (e.g. in the traits list)
502 0.40 Fri. March 14, 2008
503 - I hate Pod::Coverage
505 0.39 Fri. March 14, 2008
507 - documenting the use of '+name' with attributes
508 that come from recently composed roles. It makes
509 sense, people are using it, and so why not just
510 officially support it.
511 - fixing the 'extends' keyword so that it will not
512 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
515 - added the perl -Moose=+Class::Name feature to allow
516 monkeypatching of classes in one liners
519 - fixing the 'apply_all_roles' keyword so that it will not
520 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
523 - added ->create method which now supports roles (thanks to jrockway)
524 - added tests for this
525 - added ->create_anon_class which now supports roles and caching of
526 the results (thanks to jrockway)
527 - added tests for this
528 - made ->does_role a little more forgiving when it is
529 checking a Class::MOP era metaclasses.
531 * Moose::Meta::Role::Application::ToInstance
532 - it is now possible to pass extra params to be used when
533 a role is applied to an the instance (rebless_params)
534 - added tests for this
536 * Moose::Util::TypeConstraints
537 - class_type now accepts an optional second argument for a
538 custom message. POD anotated accordingly (groditi)
539 - added tests for this
540 - it is now possible to make anon-enums by passing 'enum' an
541 ARRAY ref instead of the $name => @values. Everything else
543 - added tests for this
546 - making test for using '+name' on attributes consumed
547 from a role, it works and makes sense too.
549 * Moose::Meta::Attribute
550 - fix handles so that it doesn't return nothing
551 when the method cannot be found, not sure why
552 it ever did this originally, this means we now
553 have slightly better support for AUTOLOADed
555 - added more delegation tests
556 - adding ->does method to this so as to better
557 support traits and their introspection.
558 - added tests for this
561 - localizing the Data::Dumper configurations so
562 that it does not pollute others (RT #33509)
563 - made ->does a little more forgiving when it is
564 passed Class::MOP era metaclasses.
566 0.38 Fri. Feb. 15, 2008
567 * Moose::Meta::Attribute
568 - fixed initializer to correctly do
569 type checking and coercion in the
571 - added tests for this
574 - fixed some finicky tests (thanks to konobi)
576 0.37 Thurs. Feb. 14, 2008
578 - fixed some details in Moose::init_meta
579 and its superclass handling (thanks thepler)
580 - added tests for this (thanks thepler)
581 - 'has' now dies if you don't pass in name
583 - added the 'make_immutable' keyword as a shortcut
587 Moose::Meta::Method::Constructor
588 Moose::Meta::Attribute
589 - making (init_arg => undef) work here too
590 (thanks to nothingmuch)
592 * Moose::Meta::Attribute
593 Moose::Meta::Method::Constructor
594 Moose::Meta::Method::Accessor
595 - make lazy attributes respect attr initializers (rjbs)
596 - added tests for this
598 * Moose::Util::TypeConstraints
599 Moose::Util::TypeConstraints::OptimizedConstraints
600 Moose::Meta::TypeConstraints
601 Moose::Meta::Attribute
602 Moose::Meta::Method::Constructor
603 Moose::Meta::Method::Accessor
604 - making type errors use the
605 assigned message (thanks to Sartak)
606 - added tests for this
608 * Moose::Meta::Method::Destructor
609 - making sure DESTROY gets inlined properly
610 with successive DEMOLISH calls (thanks to manito)
612 * Moose::Meta::Attribute
613 Moose::Meta::Method::Accessor
614 - fixed handling of undef with type constraints
616 - added tests for this
619 - added &get_all_init_args and &get_all_attribute_values
620 (thanks to Sartak and nothingmuch)
622 0.36 Sat. Jan. 26, 2008
624 Moose::Meta::Attribute
625 - role type tests now support when roles are
626 applied to non-Moose classes (found by ash)
627 - added tests for this (thanks to ash)
628 - couple extra tests to boost code coverage
630 * Moose::Meta::Method::Constructor
631 - improved fix for handling Class::MOP attributes
632 - added test for this
635 - handled the add_attribute($attribute_meta_object)
637 - added test for this
639 0.35 Tues. Jan. 22, 2008
640 * Moose::Meta::Method::Constructor
641 - fix to make sure even Class::MOP attributes
642 are handled correctly (Thanks to Dave Rolsky)
643 - added test for this (also Dave Rolsky)
646 - improved error message on _apply_all_roles,
647 you should now use Moose::Util::apply_all_roles
648 and you shouldnt have been using a _ prefixed
649 method in the first place ;)
651 0.34 Mon. Jan. 21, 2008
652 ~~~ more misc. doc. fixes ~~~
653 ~~ updated copyright dates ~~
655 Moose is now a postmodern object system :)
656 - (see the POD for details)
658 * <<Role System Refactoring>>
659 - this release contains a major reworking and
660 cleanup of the role system
661 - 100% backwards compat.
662 - Role application now restructured into seperate
663 classes based on type of applicants
664 - Role summation (combining of more than one role)
665 is much cleaner and anon-classes are no longer
667 - new Composite role metaclass
668 - runtime application of roles to instances
669 is now more efficient and re-uses generated
670 classes when applicable
672 * <<New Role composition features>>
673 - methods can now be excluded from a given role
675 - methods can now be aliased to another name (and
676 still retain the original as well)
678 * Moose::Util::TypeConstraints::OptimizedConstraints
679 - added this module (see above)
682 - fixed the &_process_attribute method to be called
683 by &add_attribute, so that the API is now correct
685 * Moose::Meta::Method::Accessor
686 - fixed bug when passing a list of values to
687 an accessor would get (incorrectly) ignored.
688 Thanks to Sartak for finding this ;)
689 - added tests for this (Sartak again)
691 * Moose::Meta::Method::Accessor
692 Moose::Meta::Method::Constructor
693 Moose::Meta::Attribute
694 Moose::Meta::TypeConstraint
695 Moose::Meta::TypeCoercion
696 - lots of cleanup of such things as:
698 - type constraint handling
699 - error handling/messages
700 (thanks to nothingmuch)
702 * Moose::Meta::TypeConstraint::Parameterizable
703 - added this module to support the refactor
704 in Moose::Meta::TypeConstraint::Parameterized
706 * Moose::Meta::TypeConstraint::Parameterized
707 - refactored how these types are handled so they
708 are more generic and not confined to ArrayRef
712 - shortened some file names for better VMS support (RT #32381)
714 0.33 Fri. Dec. 14, 2007
715 !! Moose now loads 2 x faster !!
716 !! with new Class::MOP 0.49 !!
718 ++ new oose.pm module to make command line
719 Moose-ness easier (see POD docs for more)
723 - several tweaks to take advantage of the
724 new method map caching in Class::MOP
726 * Moose::Meta::TypeConstraint::Parameterized
727 - allow subtypes of ArrayRef and HashRef to
728 be used as a container (sartak)
729 - added tests for this
730 - basic support for coercion to ArrayRef and
731 HashRef for containers (sartak)
732 - added tests for this
734 * Moose::Meta::TypeCoercion
735 - coercions will now create subtypes as needed
736 so you can now add coercions to parameterized
737 types without having to explictly define them
738 - added tests for this
740 * Moose::Meta::Method::Accessor
741 - allow subclasses to decide whether we need
742 to copy the value into a new variable (sartak)
744 0.32 Tues. Dec. 4, 2007
745 * Moose::Util::TypeConstraints
746 - fixing how subtype aliases of unions work
747 they should inherit the parent's coercion
748 - added tests for this
749 - you can now define multiple coercions on
750 a single type at different times instead of
751 having to do it all in one place
752 - added tests for this
754 * Moose::Meta::TypeConstraint
755 - there is now a default constraint of sub { 1 }
756 instead of Moose::Util::TypeConstraints setting
759 * Moose::Meta::TypeCoercion
760 * Moose::Meta::TypeCoercion::Union
761 - added the &has_coercion_for_type and
762 &add_type_coercions methods to support the
763 new features above (although you cannot add
764 more type coercions for Union types)
766 0.31 Mon. Nov. 26, 2007
767 * Moose::Meta::Attribute
768 - made the +attr syntax handle extending types with
769 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
770 now works if the original foo is an ArrayRef.
771 - added tests for this.
772 - delegation now works even if the attribute does not
773 have a reader method using the get_read_method_ref
774 method from Class::MOP::Attribute.
775 - added tests for this
776 - added docs for this
778 * Moose::Util::TypeConstraints
779 - passing no "additional attribute info" to
780 &find_or_create_type_constraint will no longer
781 attempt to create an __ANON__ type for you,
782 instead it will just return undef.
783 - added docs for this
785 0.30 Fri. Nov. 23, 2007
786 * Moose::Meta::Method::Constructor
787 -builder related bug in inlined constructor. (groditi)
789 * Moose::Meta::Method::Accessor
790 - genereate unnecessary calls to predicates and refactor
791 code generation for runtime speed (groditi)
793 * Moose::Util::TypeConstraints
794 - fix ClassName constraint to introspect symbol table (mst)
795 - added more tests for this (mst)
796 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
798 - added tests for this
801 - adding the link to Recipie 11 (written by Sartak)
802 - adding test for SYNOPSIS code
805 - New tests for builder bug. Upon instantiation, if an
806 attribute had a builder, no value and was not lazy the
807 builder default was not getting run, oops. (groditi)
809 0.29 Tues. Nov. 13, 2007
810 * Moose::Meta::Attribute
811 - Fix error message on missing builder method (groditi)
813 * Moose::Meta::Method::Accessor
814 - Fix error message on missing builder method (groditi)
817 - Add test to check for the correct error message when
818 builder method is missing (groditi)
820 0.28 Tues. Nov. 13, 2007
821 - 0.27 packaged incorrectly (groditi)
823 0.27 Tues. Nov. 13, 2007
824 * Moose::Meta::Attribute
825 - Added support for the new builder option (groditi)
826 - Added support for lazy_build option (groditi)
827 - Changed slot initialization for predicate changes (groditi)
829 * Moose::Meta::Method::Accessor
830 - Added support for lazy_build option (groditi)
831 - Fix inline methods to work with corrected predicate
834 * Moose::Meta::Method::Constructor
835 - Added support for lazy_build option (groditi)
838 - tests for builder and lazy_build (groditi)
840 * fixing some misc. bits in the docs that
841 got mentioned on CPAN Forum & perlmonks
844 - fixed how required methods are handled
845 when they encounter overriden or modified
846 methods from a class (thanks to confound).
847 - added tests for this
849 * Moose::Util::TypeConstraint
850 - fixed the type notation parser so that
851 the | always creates a union and so is
852 no longer a valid type char (thanks to
853 konobi, mugwump and #moose for working
855 - added more tests for this
857 0.26 Thurs. Sept. 27, 2007
860 * Parameterized Types
861 We now support parameterized collection types, such as:
862 ArrayRef[Int] # array or integers
863 HashRef[Object] # a hash with object values
864 They can also be nested:
865 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
866 And work with the type unions as well:
867 ArrayRef[Int | Str] # array of integers of strings
869 * Better Framework Extendability
870 Moose.pm is now "extendable" such that it is now much
871 easier to extend the framework and add your own keywords
872 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
873 section of the Moose.pm docs.
876 In an effort to begin documenting some of the various
877 details of Moose as well as some common idioms, we have
878 created Moose::Cookbook::Snacks as a place to find
879 small (easily digestable) nuggets of Moose code.
882 ~ Several doc updates/cleanup thanks to castaway ~
884 - converted build system to use Module::Install instead of
885 Module::Build (thanks to jrockway)
888 - added all the meta classes to the immutable list and
889 set it to inline the accessors
890 - fix import to allow Sub::Exporter like { into => }
891 and { into_level => } (perigrin)
892 - exposed and documented init_meta() to allow better
893 embedding and extending of Moose (perigrin)
896 - complete re-organization of the test suite
897 - added some new tests as well
898 - finally re-enabled the Moose::POOP test since
899 the new version of DBM::Deep now works again
903 - fixed very odd and very nasty recursion bug with
905 - added tests for this (eilara)
907 * Moose::Meta::Attribute
908 Moose::Meta::Method::Constructor
909 Moose::Meta::Method::Accessor
910 - fixed issue with overload::Overloaded getting called
911 on non-blessed items. (RT #29269)
912 - added tests for this
914 * Moose::Meta::Method::Accessor
915 - fixed issue with generated accessor code making
916 assumptions about hash based classes (thanks to dexter)
918 * Moose::Coookbook::Snacks
919 - these are bits of documentation, not quite as big as
920 Recipes but which have no clear place in the module docs.
921 So they are Snacks! (horray for castaway++)
923 * Moose::Cookbook::Recipe4
924 - updated it to use the new ArrayRef[MyType] construct
925 - updated the accompanying test as well
927 +++ Major Refactor of the Type Constraint system +++
928 +++ with new features added as well +++
930 * Moose::Util::TypeConstraint
931 - no longer uses package variable to keep track of
932 the type constraints, now uses the an instance of
933 Moose::Meta::TypeConstraint::Registry to do it
934 - added more sophisticated type notation parsing
936 - added tests for this
938 * Moose::Meta::TypeConstraint
939 - some minor adjustments to make subclassing easier
940 - added the package_defined_in attribute so that we
941 can track where the type constraints are created
943 * Moose::Meta::TypeConstraint::Union
944 - this is now been refactored to be a subclass of
945 Moose::Meta::TypeConstraint
947 * Moose::Meta::TypeCoercion::Union
948 - this has been added to service the newly refactored
949 Moose::Meta::TypeConstraint::Union and is itself
950 a subclass of Moose::Meta::TypeCoercion
952 * Moose::Meta::TypeConstraint::Parameterized
953 - added this module (taken from MooseX::AttributeHelpers)
954 to help construct nested collection types
955 - added tests for this
957 * Moose::Meta::TypeConstraint::Registry
958 - added this class to keep track of type constraints
960 0.25 Mon. Aug. 13, 2007
962 - Documentation update to reference Moose::Util::TypeConstraints
963 under 'isa' in 'has' for how to define a new type
966 * Moose::Meta::Attribute
967 - required attributes now will no longer accept undef
968 from the constructor, even if there is a default and lazy
969 - added tests for this
970 - default subroutines must return a value which passes the
972 - added tests for this
974 * Moose::Meta::Attribute
975 * Moose::Meta::Method::Constructor
976 * Moose::Meta::Method::Accessor
977 - type-constraint tests now handle overloaded objects correctly
979 - added tests for this (thanks to EvanCarroll)
981 * Moose::Meta::TypeConstraint::Union
982 - added (has_)hand_optimized_constraint to this class so that
983 it behaves as the regular Moose::Meta::TypeConstraint does.
986 - large refactoring of this code
987 - added several more tests
988 - tests for subtle conflict resolition issues
989 added, but not currently running
992 * Moose::Cookbook::Recipe7
993 - added new recipe for augment/inner functionality
995 - added test for this
998 - a formal definition of roles (still in progress)
1001 - utilities for easier working with Moose classes
1002 - added tests for these
1005 - This contains Moose specific test functions
1006 - added tests for these
1008 0.24 Tues. July 3, 2007
1009 ~ Some doc updates/cleanup ~
1011 * Moose::Meta::Attribute
1012 - added support for roles to be given as parameters
1013 to the 'handles' option.
1014 - added tests and docs for this
1015 - the has '+foo' attribute form now accepts changes to
1016 the lazy option, and the addition of a handles option
1017 (but not changing the handles option)
1018 - added tests and docs for this
1021 - required methods are now fetched using find_method_by_name
1022 so that required methods can come from superclasses
1023 - adjusted tests for this
1025 0.23 Mon. June 18, 2007
1026 * Moose::Meta::Method::Constructor
1027 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1028 * Moose::Meta::Class
1029 - Modify make_immutable to work with the new Class::MOP immutable
1030 mechanism + POD + very basic test (groditi)
1031 * Moose::Meta::Attribute
1032 - Fix handles to use goto() so that caller() comes out properly on
1033 the other side (perigrin)
1035 0.22 Thurs. May 31, 2007
1036 * Moose::Util::TypeConstraints
1037 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1038 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1039 prototypes for functions
1040 - added the ClassName type constraint, this checks for strings
1041 which will respond true to ->isa(UNIVERSAL).
1042 - added tests and docs for this
1043 - subtyping just in name now works correctly by making the
1044 default for where be { 1 }
1045 - added test for this
1047 * Moose::Meta::Method::Accessor
1048 - coerce and lazy now work together correctly, thanks to
1049 merlyn for finding this bug
1050 - tests added for this
1051 - fix reader presedence bug in Moose::Meta::Attribute + tests
1054 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1055 a HASH-ref and missed. This produces better error messages then
1056 having it die cause undef is not a HASH.
1057 - added tests for this
1059 0.21 Thursday, May 2nd, 2007
1061 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1062 - modified unimport to remove super and inner along with the rest
1063 - altered unimport tests to handle this
1066 - altered super export to populate SUPER_SLOT
1068 * Moose::Meta::Class
1069 - altered augment and override modifier application to use *_SLOT
1070 - modified tests for these to unimport one test class each to test
1073 - fixed issue where custom attribute metaclasses
1074 where not handled correctly in roles
1075 - added tests for this
1077 * Moose::Meta::Class
1078 - fixed issue where extending metaclasses with
1079 roles would blow up. Thanks to Aankhen`` for
1080 finding this insidious error, and it's solution.
1082 ~~ lots of spelling and grammer fixes in the docs,
1083 many many thanks to rlb3 and Aankhen for these :)
1085 0.20 Friday, April 6th, 2007
1086 >> I messed up the SKIP logic in one test
1087 so this release is just to fix that.
1090 - 'has' now also accepts an ARRAY ref
1091 to create multiple attrs (see docs)
1092 (thanks to konobi for this)
1093 - added tests and docs
1095 0.19 Thurs. April 5th, 2007
1096 ~~ More documentation updates ~~
1098 * Moose::Util::TypeConstraints
1099 - 'type' now supports messages as well
1100 thanks to phaylon for finding this
1101 - added tests for this
1102 - added &list_all_type_constraints and
1103 &list_all_builtin_type_constraints
1104 functions to facilitate introspection.
1106 * Moose::Meta::Attribute
1107 - fixed regexp 'handles' declarations
1108 to build the list of delegated methods
1109 correctly (and not override important
1110 things like &new) thanks to ashleyb
1112 - added tests and docs for this
1113 - added the 'documentation' attributes
1114 so that you can actually document your
1115 attributes and inspect them through the
1117 - added tests and docs for this
1119 * Moose::Meta::Class
1120 - when loading custom attribute metaclasses
1121 it will first look in for the class in the
1122 Moose::Meta::Attribute::Custom::$name, and
1123 then default to just loading $name.
1124 - added tests and docs for this
1126 * Moose::Meta::TypeConstraint
1127 - type constraints now stringify to their names.
1128 - added test for this
1131 - added tests to assure we work with Module::Refresh
1132 - added stricter test skip logic in the Moose POOP
1133 test, ask Rob Kinyon why.
1134 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1136 0.18 Sat. March 10, 2007
1137 ~~ Many, many documentation updates ~~
1140 - We now use Class::MOP::load_class to
1142 - added tests to show types and subtypes
1143 working with Declare::Constraints::Simple
1144 and Test::Deep as constraint engines.
1147 !! You must have Class::MOP 0.37_001 !!
1148 !! for this developer release to work !!
1150 This release was primarily adding the immutable
1151 feature to Moose. An immutable class is one which
1152 you promise not to alter. When you set the class
1153 as immutable it will perform various bits of
1154 memoization and inline certain part of the code
1155 (constructors, destructors and accessors). This
1156 minimizes (and in some cases totally eliminates)
1157 one of Moose's biggest performance hits. This
1158 feature is not on by default, and is 100% optional.
1159 It has several configurable bits as well, so you
1160 can pick and choose to your specific needs.
1162 The changes involved in this were fairly wide and
1163 highly specific, but 100% backwards compatible, so
1164 I am not going to enumerate them here. If you are
1165 truely interested in what was changed, please do
1168 0.17 Tues. Nov. 14, 2006
1169 * Moose::Meta::Method::Accessor
1170 - bugfix for read-only accessors which
1171 are have a type constraint and lazy.
1172 Thanks to chansen for finding it.
1174 0.16 Tues. Nov. 14, 2006
1176 There are some speed improvements in this release,
1177 but they are only the begining, so stay tuned.
1180 - BUILDALL and DEMOLISHALL no longer get
1181 called unless they actually need to be.
1182 This gave us a signifigant speed boost
1183 for the cases when there is no BUILD or
1184 DEMOLISH method present.
1186 * Moose::Util::TypeConstraints
1187 * Moose::Meta::TypeConstraint
1188 - added an 'optimize_as' option to the
1189 type constraint, which allows for a
1190 hand optimized version of the type
1191 constraint to be used when possible.
1192 - Any internally created type constraints
1193 now provide an optimized version as well.
1195 0.15 Sun. Nov. 5, 2006
1197 This version of Moose *must* have Class::MOP 0.36 in order
1198 to work correctly. A number of small internal tweaks have
1199 been made in order to be compatible with that release.
1201 * Moose::Util::TypeConstraints
1202 - added &unimport so that you can clean out
1203 your class namespace of these exported
1206 * Moose::Meta::Class
1207 - fixed minor issue which occasionally
1208 comes up during global destruction
1210 - moved Moose::Meta::Method::Overriden into
1214 - moved Moose::Meta::Role::Method into
1217 * Moose::Meta::Attribute
1218 - changed how we do type checks so that
1219 we reduce the overall cost, but still
1222 - moved accessor generation methods to
1223 Moose::Meta::Method::Accessor to
1224 conform to the API changes from
1227 * Moose::Meta::TypeConstraint
1228 - changed how constraints are compiled
1229 so that we do less recursion and more
1230 iteration. This makes the type check
1232 - moved Moose::Meta::TypeConstraint::Union
1235 * Moose::Meta::Method::Accessor
1236 - created this from methods formerly found in
1237 Moose::Meta::Attribute
1239 * Moose::Meta::Role::Method
1240 - moved this from Moose::Meta::Role
1242 * Moose::Meta::Method::Overriden
1243 - moved this from Moose::Meta::Class
1245 * Moose::Meta::TypeConstraint::Union
1246 - moved this from Moose::Meta::TypeConstraint
1248 0.14 Mon. Oct. 9, 2006
1250 * Moose::Meta::Attribute
1251 - fixed lazy attributes which were not getting
1252 checked with the type constraint (thanks ashley)
1253 - added tests for this
1254 - removed the over-enthusiastic DWIMery of the
1255 automatic ArrayRef and HashRef defaults, it
1256 broke predicates in an ugly way.
1257 - removed tests for this
1259 0.13 Sat. Sept. 30, 2006
1261 This version of Moose *must* have Class::MOP 0.35 in order
1262 to work correctly. A number of small internal tweaks have
1263 been made in order to be compatible with that release.
1266 - Removed the use of UNIVERSAL::require to be a better
1267 symbol table citizen and remove a dependency
1268 (thanks Adam Kennedy)
1270 **~~ removed experimental & undocumented feature ~~**
1271 - commented out the 'method' and 'self' keywords, see the
1272 comments for more info.
1275 - added a FAQ and WTF files to document frequently
1276 asked questions and common problems
1278 * Moose::Util::TypeConstraints
1279 - added GlobRef and FileHandle type constraint
1280 - added tests for this
1282 * Moose::Meta::Attribute
1283 - if your attribute 'isa' ArrayRef of HashRef, and you have
1284 not explicitly set a default, then make the default DWIM.
1285 This will also work for subtypes of ArrayRef and HashRef
1287 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1288 - new test added for this (thanks to ashley)
1291 - added basic support for runtime role composition
1292 but this is still *highly experimental*, so feedback
1293 is much appreciated :)
1294 - added tests for this
1296 * Moose::Meta::TypeConstraint
1297 - the type constraint now handles the coercion process
1298 through delegation, this is to support the coercion
1301 * Moose::Meta::TypeConstraint::Union
1302 - it is now possible for coercions to be performed
1304 - added tests for this (thanks to konobi)
1306 * Moose::Meta::TypeCoercion
1307 - properly capturing error when type constraint
1311 - Scalar::Util 1.18 is bad on Win32, so temporarily
1312 only require version 1.17 for Win32 and cygwin.
1313 (thanks Adam Kennedy)
1315 0.12 Sat. Sept. 1, 2006
1317 - Recipe5 (subtypes & coercion) has been written
1320 - fixed "bad meta" error message to be more descriptive
1321 - fixed &unimport to not remove the &inner and &super
1322 keywords because we need to localize them.
1323 - fixed number of spelling/grammer issues, thanks Theory :)
1325 **~~ experimental & undocumented feature ~~**
1326 - added the method and self keywords, they are basically
1327 just sugar, and they may not stay around.
1330 - added &dump method to easily Data::Dumper
1333 * Moose::Meta::TypeConstraint
1334 - added the &is_a_type_of method to check both the current
1335 and the subtype of a method (similar to &isa with classes)
1338 - this is now a subclass of Class::MOP::Module, and no longer
1339 creates the _role_meta ugliness of before.
1340 - fixed tests to reflect this change
1342 0.11 Wed. July 12, 2006
1344 - added an &unimport method to remove all the keywords
1345 that Moose will import, simply add 'no Moose' to the
1346 bottom of your class file.
1349 - fixed some test failures caused by a forgotten test
1352 0.10 Thurs. July 6, 2006
1354 - improved error message when loading modules so
1355 it is less confusing when you load a role.
1356 - added &calculate_all_roles method to
1357 Moose::Meta::Class and Moose::Meta::Role
1360 This module has been tested against Class::MOP 0.30
1361 but it does not yet utilize the optimizations
1362 it makes available. Stay tuned for that ;)
1364 0.09_03 Fri. June 23, 2006
1365 ++ DEVELOPER RELEASE ++
1367 - 'use strict' and 'use warnings' are no longer
1368 needed in Moose classes, Moose itself will
1369 turn them on for you.
1370 - added tests for this
1371 - moved code from exported subs to private methods
1372 in Moose::Meta::Class
1375 - as with Moose, strict and warnings are
1376 automatically turned on for you.
1377 - added tests for this
1380 - now handles an edge case for override errors
1381 - added tests for this
1382 - added some more edge case tests
1384 0.09_02 Tues. May 16, 2006
1385 ++ DEVELOPER RELEASE ++
1387 - added prototypes to the exported subs
1391 - added prototypes to the exported subs
1394 * Moose::Util::TypeConstraints
1395 - cleaned up prototypes for the subs
1398 0.09_01 Fri. May 12, 2006
1399 ++ DEVELOPER RELEASE ++
1400 - This release works in combination with
1401 Class::MOP 0.29_01, it is a developer
1402 release because it uses the a new
1403 instance sub-protocol and a fairly
1404 complete Role implementation. It has
1405 not yet been optimized, so it slower
1406 the the previous CPAN version. This
1407 release also lacks good updated docs,
1408 the official release will have updated docs.
1411 - refactored the keyword exports
1412 - 'with' now checks Role validaity and
1413 accepts more than one Role at a time
1414 - 'extends' makes metaclass adjustments as
1415 needed to ensure metaclass compatability
1418 - refactored the keyword exports
1419 - 'with' now checks Role validaity and
1420 accepts more than one Role at a time
1422 * Moose::Util::TypeConstraints
1423 - added the 'enum' keyword for simple
1424 string enumerations which can be used as
1426 - see example of usage in t/202_example.t
1429 - more careful checking of params to new()
1432 - much work done on the role composition
1433 - many new tests for conflict detection
1434 and composition edge cases
1435 - not enough documentation, I suggest
1436 looking at the tests
1438 * Moose::Meta::Instance
1439 - added new Instance metaclass to support
1440 the new Class::MOP instance protocol
1442 * Moose::Meta::Class
1443 - some small changes to support the new
1445 - some small additions to support Roles
1447 * Moose::Meta::Attribute
1448 - some improvements to the accessor generation code
1450 - some small changes to support the new
1452 - (still somewhat) experimental delegation support
1453 with the 'handles' option
1454 - added several tests for this
1455 - no docs for this yet
1457 0.05 Thurs. April 27, 2006
1459 - keywords are now exported with Sub::Exporter
1460 thanks to chansen for this commit
1461 - has keyword now takes a 'metaclass' option
1462 to support custom attribute meta-classes
1463 on a per-attribute basis
1464 - added tests for this
1465 - the 'has' keyword not accepts inherited slot
1466 specifications (has '+foo'). This is still an
1467 experimental feature and probably not finished
1468 see t/038_attribute_inherited_slot_specs.t for
1469 more details, or ask about it on #moose
1470 - added tests for this
1473 - keywords are now exported with Sub::Exporter
1475 * Moose::Utils::TypeConstraints
1476 - reorganized the type constraint hierarchy, thanks
1477 to nothingmuch and chansen for his help and advice
1479 - added some tests for this
1480 - keywords are now exported with Sub::Exporter
1481 thanks to chansen for this commit
1483 * Moose::Meta::Class
1484 - due to changes in Class::MOP, we had to change
1485 construct_instance (for the better)
1487 * Moose::Meta::Attribute
1488 - due to changes in Class::MOP, we had to add the
1489 initialize_instance_slot method (it's a good thing)
1491 * Moose::Meta::TypeConstraint
1492 - added type constraint unions
1493 - added tests for this
1494 - added the is_subtype_of predicate method
1495 - added tests for this
1497 0.04 Sun. April 16th, 2006
1499 - Roles can now consume other roles
1500 - added tests for this
1501 - Roles can specify required methods now with
1502 the requires() keyword
1503 - added tests for this
1506 - ripped out much of it's guts ,.. much cleaner now
1507 - added required methods and correct handling of
1508 them in apply() for both classes and roles
1509 - added tests for this
1510 - no longer adds a does() method to consuming classes
1511 it relys on the one in Moose::Object
1512 - added roles attribute and some methods to support
1513 roles consuming roles
1515 * Moose::Meta::Attribute
1516 - added support for triggers on attributes
1517 - added tests for this
1518 - added support for does option on an attribute
1519 - added tests for this
1521 * Moose::Meta::Class
1522 - added support for attribute triggers in the
1524 - added tests for this
1527 - Moose no longer creates a subtype for your class
1528 if a subtype of the same name already exists, this
1529 should DWIM in 99.9999% of all cases
1531 * Moose::Util::TypeConstraints
1532 - fixed bug where incorrect subtype conflicts were
1534 - added test for this
1537 - this class can now be extended with 'use base' if
1538 you need it, it properly loads the metaclass class now
1539 - added test for this
1541 0.03_02 Wed. April 12, 2006
1543 - you must now explictly use Moose::Util::TypeConstraints
1544 it no longer gets exported for you automatically
1547 - new() now accepts hash-refs as well as key/value lists
1548 - added does() method to check for Roles
1549 - added tests for this
1551 * Moose::Meta::Class
1552 - added roles attribute along with the add_role() and
1554 - added tests for this
1557 - now adds a does() method to consuming classes
1558 which tests the class's hierarchy for roles
1559 - added tests for this
1561 0.03_01 Mon. April 10, 2006
1563 - added new Role recipe (no content yet, only code)
1566 - added 'with' keyword for Role support
1567 - added test and docs for this
1568 - fixed subtype quoting bug
1569 - added test for this
1573 - added test and docs
1575 * Moose::Util::TypeConstraints
1576 - added the message keyword to add custom
1577 error messages to type constraints
1580 - the meta role to support Moose::Role
1581 - added tests and docs
1583 * Moose::Meta::Class
1584 - moved a number of things from Moose.pm
1585 to here, they should have been here
1588 * Moose::Meta::Attribute
1589 - moved the attribute option macros here
1590 instead of putting them in Moose.pm
1592 * Moose::Meta::TypeConstraint
1593 - added the message attributes and the
1595 - added tests and docs for this
1597 0.03 Thurs. March 30, 2006
1599 - added the Moose::Cookbook with 5 recipes,
1600 describing all the stuff Moose can do.
1603 - fixed an issue with &extends super class loading
1604 it now captures errors and deals with inline
1605 packages correctly (bug found by mst, solution
1607 - added super/override & inner/augment features
1608 - added tests and docs for these
1611 - BUILDALL now takes a reference of the %params
1612 that are passed to &new, and passes that to
1615 * Moose::Util::TypeConstraints
1616 - Type constraints now survive runtime reloading
1617 - added test for this
1619 * Moose::Meta::Class
1620 - fixed the way attribute defaults are handled
1621 during instance construction (bug found by chansen)
1623 * Moose::Meta::Attribute
1624 - read-only attributes now actually enforce their
1625 read-only-ness (this corrected in Class::MOP as
1628 0.02 Tues. March 21, 2006
1630 - many more tests, fixing some bugs and
1632 - &extends now loads the base module with
1634 - added UNIVERSAL::require to the
1637 - each new Moose class will also create
1638 and register a subtype of Object which
1639 correspond to the new Moose class.
1640 - the 'isa' option in &has now only
1641 accepts strings, and will DWIM in
1644 * Moose::Util::TypeConstraints
1645 - added type coercion features
1646 - added tests for this
1647 - added support for this in attributes
1648 and instance construction
1650 - type construction no longer creates a
1651 function, it registers the type instead.
1652 - added several functions to get the
1656 - BUILDALL and DEMOLISHALL were broken
1657 because of a mis-named hash key, Whoops :)
1659 * Moose::Meta::Attribute
1660 - adding support for coercion in the
1661 autogenerated accessors
1663 * Moose::Meta::Class
1664 - adding support for coercion in the
1665 instance construction
1667 * Moose::Meta::TypeConstraint
1668 * Moose::Meta::TypeCoercion
1669 - type constraints and coercions are now
1670 full fledges meta-objects
1672 0.01 Wed. March 15, 2006
1673 - Moooooooooooooooooose!!!