1 Revision history for Perl extension Moose
3 0.61 Fri November 7, 2008
4 * Moose::Meta::Attribute
5 - When passing a role to handles, it will be loaded if necessary
9 - Method objects returned by get_method (and other methods)
10 Could end up being returned without an associated_metaclass
11 attribute. Removing get_method_map, which is provided by
12 Class::MOP::Class, fixed this. The Moose version did nothing
13 different from its parent except introduce a bug. (Dave Rolsky)
14 - added tests for this (jdv79)
17 - Added a $VERSION to all .pm files which didn't have one. Fixes
18 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
20 * Moose::Cookbook::Basics::Recipe4
21 * Moose::Cookbook::Basics::Recipe6
22 - These files had spaces on the first line of the SYNOPSIS, as
23 opposed to a totally empty line. According to RT #40432, this
24 confuses POD parsers. (Dave Rolsky)
26 0.60 Fri October 24, 2008
28 - Passing "-traits" when loading Moose caused the Moose.pm
29 exports to be broken. Reported by t0m. (Dave Rolsky)
30 - Tests for this bug. (t0m)
33 - Change resolve_metaclass alias to use the new
34 load_first_existing_class function. This makes it a lot
35 simpler, and also around 5 times faster. (t0m)
36 - Add caching to resolve_metaclass_alias, which gives an order
37 of magnitude speedup to things which repeatedly call the
38 Moose::Meta::Attribute->does method, notably MooseX::Storage
41 * Moose::Util::TypeConstraint
42 - Put back the changes for parameterized constraints that
43 shouldn't have been removed in 0.59. We still cannot parse
44 them, but MooseX modules can create them in some other
45 way. See the 0.58 changes for more details. (jnapiorkowski)
46 - Changed the way subtypes are created so that the job is
47 delegated to a type constraint parent. This clears up some
48 hardcoded checking and should allow correct subtypes of
49 Moose::Meta::Type::Constraint. Don't rely on this new API too
50 much (create_child_type) because it may go away in the
51 future. (jnapiorkowski)
53 * Moose::Meta::TypeConstraint::Union
54 - Type constraint names are sorted as strings, not numbers.
57 * Moose::Meta::TypeConstraint::Parameterizable
58 - New parameterize method. This can be used as a factory method
59 to make a new type constraint with a given parameterized
61 - added tests (jnapiorkowski)
63 0.59 Tue October 14, 2008
65 - Add abridged documentation for builder/default/initializer/
66 predicate, and link to more details sections in
67 Class::MOP::Attribute. (t0m)
69 * Moose::Util::TypeConstraints
70 - removed prototypes from all but the &-based stuff (mst)
72 * Moose::Util::TypeConstraints
73 - Creating a anonymous subtype with both a constraint and a
74 message failed with a very unhelpful error, but should just
75 work. Reported by t0m. (Dave Rolsky)
78 - Some tests that used Test::Warn if it was available failed
79 with older versions of Test::Warn. Reported by Fayland. (Dave
81 - Test firing behavior of triggers in relation to builder/default/
83 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
84 kinds of supported type. (t0m)
87 - In create(), do not pass "roles" option to the superclass
88 - added related test that creates an anon metaclass with
91 * Moose::Meta::TypeConstraint::Class
92 * Moose::Meta::TypeConstraint::Role
93 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
94 other types (as per change in 0.55_02). (t0m)
96 * Moose::Meta::TypeConstraint::Registry
97 - Fix warning when dealing with unknown type names (t0m)
99 * Moose::Util::TypeConstraints
100 - Reverted changes from 0.58 related to handle parameterized
101 types. This caused random failures on BSD and Win32 systems,
102 apparently related to the regex engine. This means that Moose
103 can no longer parse structured type constraints like
104 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
105 supported in a slightly different way via MooseX::Types some
106 time in the future. (Dave Rolsky)
108 0.58 Sat September 20, 2008
109 !! This release has an incompatible change regarding !!
110 !! how roles add methods to a class !!
112 * Roles and role application
113 ! Roles now add methods by calling add_method, not
114 alias_method. They make sure to always provide a method
115 object, which will be cloned internally. This means that it is
116 now possible to track the source of a method provided by a
117 role, and even follow its history through intermediate roles.
119 This means that methods added by a role now show up when
120 looking at a class's method list/map. (Dave Rolsky)
123 - From this release on, we'll try to maintain a list of
124 conflicting modules, and warn you if you have one
125 installed. For example, this release conflicts with ...
126 - MooseX::Singleton <= 0.11
127 - MooseX::Params::Validate <= 0.05
130 In general, we try to not break backwards compatibility for
131 most Moose users, but MooseX modules and other code which
132 extends Moose's metaclasses is often affected by very small
133 changes in the Moose internals.
135 * Moose::Meta::Method::Delegation
136 * Moose::Meta::Attribute
137 - Delegation methods now have their own method class. (Dave
140 * Moose::Meta::TypeConstraint::Parameterizable
141 - Added a new method 'parameterize' which is basically a factory
142 for the containing constraint. This makes it easier to create
143 new types of parameterized constraints. (jnapiorkowski)
145 * Moose::Meta::TypeConstraint::Union
146 - Changed the way Union types canonicalize their names to follow
147 the normalized TC naming rules, which means we strip all
148 whitespace. (jnapiorkowski)
150 * Moose::Util::TypeConstraints
151 - Parameter and Union args are now sorted, this makes Int|Str
152 the same constraint as Str|Int. (jnapiorkowski)
153 - Changes to the way Union types are parsed to more correctly
154 stringify their names. (jnapiorkowski)
155 - When creating a parameterized type, we now use the new
156 parameterize method. (jnapiorkowski)
157 - Incoming type constraint strings are now normalized to remove
158 all whitespace differences. (jnapiorkowski)
159 - Changed the way we parse type constraint strings so that we now
160 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
161 constraints. This lays the foundation for more flexible type
162 constraint implementations.
164 * Tests and docs for all the above. (jnapiorkowski)
168 - Moose::Exporter will no longer remove a subroutine that the
169 exporting package re-exports. Moose re-exports the
170 Carp::confess function, among others. The reasoning is that we
171 cannot know whether you have also explicitly imported those
172 functions for your own use, so we err on the safe side and
173 always keep them. (Dave Rolsky)
174 - added tests for this (rafl)
177 - Changes to how we fix metaclass compatibility that are much
178 too complicated to go into. The summary is that Moose is much
179 less likely to complain about metaclass incompatibility
180 now. In particular, if two metaclasses differ because
181 Moose::Util::MetaRole was used on the two corresponding
182 classes, then the difference in roles is reconciled for the
183 subclass's metaclass. (Dave Rolsky)
184 - Squashed an warning in _process_attribute (thepler)
187 - throw exceptions (sooner) for invalid attribute names (thepler)
188 - added tests for this (thepler)
190 * Moose::Util::MetaRole
191 - If you explicitly set a constructor or destructor class for a
192 metaclass object, and then applied roles to the metaclass,
193 that explicitly set class would be lost and replaced with the
197 * Moose::Meta::Attribute
198 * Moose::Meta::Method
201 * Moose::Error::Default
202 * Moose::Error::Croak
203 * Moose::Error::Confess
204 - All instances of confess() changed to use overridable
205 C<throw_error> method. This method ultimately calls a class
206 constructor, and you can change the class being called. In
207 addition, errors now pass more information than just a string.
208 The default C<error_class> behaves like C<Carp::confess>, so
209 the behavior is not visibly different for end users.
211 0.57 Wed September 3, 2008
213 - A new bit of doc intended to introduce folks familiar with
214 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
217 - Shows examples of two classes, each done first with and then
218 without Moose. This makes a nice parallel to
219 Moose::Intro. (Dave Rolsky)
221 * Moose::Util::TypeConstraints
222 - Fixed a bug in find_or_parse_type_constraint so that it
223 accepts a Moose::Meta::TypeConstraint object as the parent
224 type, not just a name (jnapiorkowski)
225 - added tests (jnapiorkowski)
228 - If Sub::Name was not present, unimporting failed to actually
229 remove some sugar subs, causing test failures (Dave Rolsky)
231 0.56 Mon September 1, 2008
232 For those not following the series of dev releases, there are
233 several major changes in this release of Moose.
234 ! Moose::init_meta should now be called as a method. See the
237 - Major performance improvements by nothingmuch.
239 - New modules for extension writers, Moose::Exporter and
240 Moose::Util::MetaRole by Dave Rolsky.
242 - Lots of doc improvements and additions, especially in the
247 * Removed all references to the experimental-but-no-longer-needed
248 Moose::Meta::Role::Application::ToMetaclassInstance.
250 * Require Class::MOP 0.65.
252 0.55_04 Sat August 30, 2008
253 * Moose::Util::MetaRole
254 * Moose::Cookbook::Extending::Recipe2
255 - This simplifies the application of roles to any meta class, as
256 well as the base object class. Reimplemented metaclass traits
257 using this module. (Dave Rolsky)
259 * Moose::Cookbook::Extending::Recipe1
260 - This a new recipe, an overview of various ways to write Moose
261 extensions (Dave Rolsky)
263 * Moose::Cookbook::Extending::Recipe3
264 * Moose::Cookbook::Extending::Recipe4
265 - These used to be Extending::Recipe1 and Extending::Recipe2,
268 0.55_03 Fri August 29, 2008
269 * No changes from 0.55_02 except increasing the Class::MOP
270 dependency to 0.64_07.
272 0.55_02 Fri August 29, 2008
273 * Makefile.PL and Moose.pm
274 - explicitly require Perl 5.8.0+ (Dave Rolsky)
276 * Moose::Util::TypeConstraints
277 - Fix warnings from find_type_constraint if the type is not
280 * Moose::Meta::TypeConstraint
281 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
282 return false if the type you specify cannot be found in the
283 type registry, rather than throwing an unhelpful and
284 coincidental exception. (t0m).
285 - added docs & test for this (t0m)
287 * Moose::Meta::TypeConstraint::Registry
288 - add_type_constraint now throws an exception if a parameter is
290 - added docs & test for this (t0m)
292 * Moose::Cookbook::FAQ
293 - Added a faq entry on the difference between "role" and "trait"
297 - Fixed a bug that caused role composition to not see a required
298 method when that method was provided by another role being
299 composed at the same time. (Dave Rolsky)
300 - test and bug finding (tokuhirom)
302 0.55_01 Wed August 20, 2008
304 !! Calling Moose::init_meta as a function is now !!
305 !! deprecated. Please see the Moose.pm docs for details. !!
307 * Moose::Meta::Method::Constructor
308 - Fix inlined constructor so that values produced by default
309 or builder methods are coerced as required. (t0m)
310 - added test for this (t0m)
312 * Moose::Meta::Attribute
313 - A lazy attribute with a default or builder did not attempt to
314 coerce the default value. The immutable code _did_
316 - added test for this (t0m)
319 - This is a new helper module for writing "Moose-alike"
320 modules. This should make the lives of MooseX module authors
321 much easier. (Dave Rolsky)
324 * Moose::Cookbook::Meta::Recipe5
325 - Implemented metaclass traits (and wrote a recipe for it):
327 use Moose -traits => 'Foo'
329 This should make writing small Moose extensions a little
332 * Moose::Cookbook::Basics::Recipe1
333 - Removed any examples of direct hashref access, and applied an
334 editorial axe to reduce verbosity. (Dave Rolsky)
336 * Moose::Cookbook::Basics::Recipe1
337 - Also applied an editorial axe here. (Dave Rolsky)
340 * Moose::Cookbook::Extending::Recipe1
341 * Moose::Cookbook::Extending::Recipe2
342 - Rewrote extending and embedding moose documentation and
343 recipes to use Moose::Exporter (Dave Rolsky)
347 - These two modules now warn when you load them from the main
348 package "main" package, because we will not export sugar to
349 main. Previously it just did nothing. (Dave Rolsky)
352 - Now provide an init_meta method just like Moose.pm, and you
353 can call this to provide an alternate role metaclass. (Dave
354 Rolsky and nothingmuch)
355 - get_method_map now respects the package cache flag (nothingmuch)
358 - Two new methods - add_method and wrap_method_body
362 - Optimizations including allowing constructors to accept hash
363 refs, making many more classes immutable, and making
364 constructors immutable. (nothingmuch)
366 0.55 Sun August 3, 2008
367 * Moose::Meta::Attribute
368 - breaking down the way 'handles' methods are
369 created so that the process can be more easily
370 overridden by subclasses (stevan)
372 * Moose::Meta::TypeConstraint
373 - fixing what is passed into a ->message with
374 the type constraints (RT #37569)
375 - added tests for this (Charles Alderman)
377 * Moose::Util::TypeConstraints
378 - fix coerce to accept anon types like subtype can (mst)
381 - reorganized the recipes into sections - Basics, Roles, Meta,
382 Extending - and wrote abstracts for each section (Dave Rolsky)
384 * Moose::Cookbook::Basics::Recipe10
385 - A new recipe that demonstrates operator overloading
386 in combination with Moose. (bluefeet)
388 * Moose::Cookbook::Meta::Recipe1
389 - an introduction to what meta is and why you'd want to make
390 your own metaclass extensions (Dave Rolsky)
392 * Moose::Cookbook::Meta::Recipe4
393 - a very simple metaclass example (Dave Rolsky)
395 * Moose::Cookbook::Extending::Recipe1
396 - how to write a Moose-alike module to use your own object base
399 * Moose::Cookbook::Extending::Recipe2
400 - how to write modules with an API just like C<Moose.pm> (Dave
404 - Tons of fixes, both syntactical and grammatical (Dave
405 Rolsky, Paul Fenwick)
407 0.54 Thurs. July 3, 2008
408 ... this is not my day today ...
410 * Moose::Meta::Attribute
411 - fixed legal_options_for_inheritance such that
412 clone_and_inherit options still works for
413 Class::MOP::Attribute objects and therefore
414 does not break MooseX::AttributeHelpers
417 0.53 Thurs. July 3, 2008
418 * Whoops, I guess I should run 'make manifest' before
419 actually releasing the module. No actual changes
420 in this release, except the fact that it includes
421 the changes that I didn't include in the last
424 0.52 Thurs. July 3, 2008
426 - added "FEATURE REQUESTS" section to the Moose docs
427 to properly direct people (stevan) (RT #34333)
428 - making 'extends' croak if it is passed a Role since
429 this is not ever something you want to do
430 (fixed by stevan, found by obra)
431 - added tests for this (stevan)
434 - adding support for DOES (as in UNIVERSAL::DOES)
436 - added test for this
438 * Moose::Meta::Attribute
439 - added legal_options_for_inheritance (wreis)
440 - added tests for this (wreis)
442 * Moose::Cookbook::Snacks::*
443 - removed some of the unfinished snacks that should
444 not have been released yet. Added some more examples
445 to the 'Keywords' snack. (stevan)
447 * Moose::Cookbook::Style
448 - added general Moose "style guide" of sorts to the
449 cookbook (nothingmuch) (RT #34335)
452 - added more BUILDARGS tests (stevan)
454 0.51 Thurs. Jun 26, 2008
456 - add unimport so "no Moose::Role" actually does
459 * Moose::Meta::Role::Application::ToRole
460 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
461 order to provide its own implementation, that method still got
462 added to the list of required methods for consumers of
463 RoleB. Now an aliased method is only added to the list of
464 required methods if the role doing the aliasing does not
465 provide its own implementation. See Recipe 11 for an example
466 of all this. (Dave Rolsky)
467 - added tests for this
469 * Moose::Meta::Method::Constructor
470 - when a single argument that wasn't a hashref was provided to
471 an immutabilized constructor, the error message was very
472 unhelpful, as opposed to the non-immutable error. Reported by
474 - added test for this (Dave Rolsky)
476 * Moose::Meta::Attribute
477 - added support for meta_attr->does("ShortAlias") (sartak)
478 - added tests for this (sartak)
479 - moved the bulk of the `handles` handling to the new
480 install_delegation method (Stevan)
483 - Added BUILDARGS, a new step in new()
485 * Moose::Meta::Role::Application::RoleSummation
486 - fix typos no one ever sees (sartak)
488 * Moose::Util::TypeConstraints
489 * Moose::Meta::TypeConstraint
490 * Moose::Meta::TypeCoercion
491 - Attempt to work around the ??{ } vs. threads issue
493 - Some null_constraint optimizations
495 0.50 Thurs. Jun 11, 2008
496 - Fixed a version number issue by bumping all modules
499 0.49 Thurs. Jun 11, 2008
500 !! This version now approx. 20-25% !!
501 !! faster with new Class::MOP 0.59 !!
503 * Moose::Meta::Attribute
504 - fixed how the is => (ro|rw) works with
505 custom defined reader, writer and accessor
507 - added docs for this (TODO).
508 - added tests for this (Thanks to Penfold)
509 - added the custom attribute alias for regular
510 Moose attributes which is "Moose"
511 - fix builder and default both being used
516 Moose::Meta::Attribute
518 Moose::Meta::Role::Composite
519 Moose::Util::TypeConstraints
520 - switched usage of reftype to ref because
524 - changing add_package_symbol to use the new
528 - fixed how DEMOLISHALL is called so that it
529 can be overrided in subclasses (thanks to Sartak)
530 - added test for this (thanks to Sartak)
532 * Moose::Util::TypeConstraints
533 - move the ClassName type check code to
534 Class::MOP::is_class_loaded (thanks to Sartak)
536 * Moose::Cookbook::Recipe11
537 - add tests for this (thanks to tokuhirom)
539 0.48 Thurs. May 29, 2008
540 (early morning release engineering)--
542 - fixing the version in Moose::Meta::Method::Destructor
543 which was causing the indexer to choke
545 0.47 Thurs. May 29, 2008
546 (late night release engineering)--
548 - fixing the version is META.yml, no functional
549 changes in this release
551 0.46 Wed. May 28, 2008
552 !! This version now approx. 20-25% !!
553 !! faster with new Class::MOP 0.57 !!
556 - some optimizations of the &initialize method
557 since it is called so often by &meta
561 - now use the get_all_package_symbols from the
562 updated Class::MOP, test suite is now 10 seconds
565 * Moose::Meta::Method::Destructor
566 - is_needed can now also be called as a class
567 method for immutablization to check if the
568 destructor object even needs to be created
571 * Moose::Meta::Method::Destructor
572 Moose::Meta::Method::Constructor
573 - added more descriptive error message to help
574 keep people from wasting time tracking an error
575 that is easily fixed by upgrading.
577 0.45 Saturday, May 24, 2008
579 - Because of work in Class::MOP 0.57, all
580 XS based functionality is now optional
581 and a Pure Perl version is supplied
582 - the CLASS_MOP_NO_XS environment variable
583 can now be used to force non-XS versions
585 - several of the packages have been tweaked
586 to take care of this, mostly we added
587 support for the package_name and name
588 variables in all the Method metaclasses
589 - before/around/after method modifiers now
590 support regexp matching of names
591 (thanks to Takatoshi Kitano)
592 - tests added for this
593 - NOTE: this only works for classes, it
594 is currently not supported in roles,
595 but, ... patches welcome
596 - All usage of Carp::confess have been replaced
597 by Carp::croak in the "keyword" functions since
598 the stack trace is usually not helpful
601 - All usage of Carp::confess have been replaced
602 by Carp::croak in the "keyword" functions since
603 the stack trace is usually not helpful
604 - The 'has' keyword for roles now accepts the
605 same array ref form that Moose.pm does
606 (has [qw/foo bar/] => (is => 'rw', ...))
607 - added test for this
609 * Moose::Meta::Attribute
610 - trigger on a ro-attribute is no longer an
611 error, as it's useful to trigger off of the
615 - added same 'add_package_symbol' fix as in
619 - does_role now handles non-Moose classes
621 - added tests for this
622 - added the 'add_method_modifier' function
623 (thanks to Takatoshi Kitano)
625 * Moose::Util::TypeConstraints
626 - subtypes of parameterizable types now are
627 themselves parameterizable types
629 * Moose::Meta::Method::Constructor
630 - fixed bug where trigger was not being
631 called by the inlined immutable
633 - added test for this (thanks to Caelum)
635 * Moose::Meta::Role::Application::ToInstance
636 - now uses the metaclass of the instance
637 (if possible) to create the anon-class
638 (thanks Jonathan Rockway)
640 * Moose::Cookbook::Recipe22
641 - added the meta-attribute trait recipe
645 - fixed hash-ordering test bug that was
646 causing occasional cpantester failures
647 - renamed the t/000_recipe/*.t tests to be
648 more descriptive (thanks to Sartak)
650 0.44 Sat. May 10, 2008
652 - made make_immutable warning cluck to
653 show where the error is (thanks mst)
656 - BUILDALL and DEMOLISHALL now call
657 ->body when looping through the
658 methods, to avoid the overloaded
660 - fixed issue where DEMOLISHALL was
661 eating the $@ values, and so not
662 working correctly, it still kind of
663 eats them, but so does vanilla perl
664 - added tests for this
666 * Moose::Cookbook::Recipe7
667 - added new recipe for immutable
668 functionality (thanks Dave Rolsky)
670 * Moose::Cookbook::Recipe9
671 - added new recipe for builder and
672 lazy_build (thanks Dave Rolsky)
674 * Moose::Cookbook::Recipe11
675 - added new recipe for method aliasing
676 and exclusion with Roles (thanks Dave Rolsky)
679 - fixed Win32 test failure (thanks spicyjack)
681 ~ removed Build.PL and Module::Build compat
682 since Module::Install has done that.
684 0.43 Wed. April, 30, 2008
686 drink more coffee before
687 doing release engineering
689 - whoops, forgot to do the smolder tests,
690 and we broke some of the custom meta-attr
691 modules. This fixes that.
693 0.42 Mon. April 28, 2008
694 - some bad tests slipped by, nothing else
695 changed in this release (cpantesters++)
697 - upped the Class::MOP dependency to 0.55
698 since we have tests which need the C3
701 0.41 Mon. April 28, 2008
702 ~~ numerous documentation updates ~~
704 - Changed all usage of die to Carp::croak for better
705 error reporting (initial patch by Tod Hagan)
708 - the make_immutable keyword is now deprecated, don't
709 use it in any new code and please fix your old code
710 as well. There will be 2 releases, and then it will
716 - refactored the way inner and super work to avoid
717 any method/@ISA cache penalty (nothingmuch)
720 - fixing &new_object to make sure trigger gets the
721 coerced value (spotted by Charles Alderman on the
723 - added test for this
725 * Moose::Meta::Method::Constructor
726 - immutable classes which had non-lazy attributes were calling
727 the default generating sub twice in the constructor. (bug
728 found by Jesse Luehrs, fixed by Dave Rolsky)
729 - added tests for this (Dave Rolsky)
730 - fix typo in initialize_body method (nothingmuch)
732 * Moose::Meta::Method::Destructor
733 - fix typo in initialize_body method (nothingmuch)
735 * Moose::Meta::Method::Overriden
736 Moose::Meta::Method::Augmented
737 - moved the logic for these into their own
738 classes (nothingmuch)
740 * Moose::Meta::Attribute
741 - inherited attributes may now be extended without
742 restriction on the type ('isa', 'does') (Sartak)
743 - added tests for this (Sartak)
744 - when an attribute property is malformed (such as lazy without
745 a default), give the name of the attribute in the error
747 - added the &applied_traits and &has_applied_traits methods
748 to allow introspection of traits
749 - added tests for this
750 - moved 'trait' and 'metaclass' argument handling to here from
752 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
753 '+foo' syntax) (nothingmuch)
754 - added tests for this (t0m)
757 - localize $@ inside DEMOLISHALL to avoid it
758 eating $@ (found by Ernesto)
759 - added test for this (thanks to Ernesto)
761 * Moose::Util::TypeConstraints
762 - &find_type_constraint now DWIMs when given an
763 type constraint object or name (nothingmuch)
764 - &find_or_create_type_constraint superseded with a number of more
766 - find_or_create_{isa,does}_type_constraint
767 - find_or_parse_type_constraint
769 * Moose::Meta::TypeConstraint
770 Moose::Meta::TypeConstraint::Class
771 Moose::Meta::TypeConstraint::Role
772 Moose::Meta::TypeConstraint::Enum
773 Moose::Meta::TypeConstraint::Union
774 Moose::Meta::TypeConstraint::Parameterized
775 - added the &equals method for comparing two type
776 constraints (nothingmuch)
777 - added tests for this (nothingmuch)
779 * Moose::Meta::TypeConstraint
780 - add the &parents method, which is just an alias to &parent.
781 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
783 * Moose::Meta::TypeConstraint::Class
784 - added the class attribute for introspection purposes
786 - added tests for this
788 * Moose::Meta::TypeConstraint::Enum
789 Moose::Meta::TypeConstraint::Role
790 - broke these out into their own classes (nothingmuch)
792 * Moose::Cookbook::Recipe*
793 - fixed references to test file locations in the POD
794 and updated up some text for new Moose features
798 - Added &resolve_metaclass_alias, a helper function for finding an actual
799 class for a short name (e.g. in the traits list)
801 0.40 Fri. March 14, 2008
802 - I hate Pod::Coverage
804 0.39 Fri. March 14, 2008
806 - documenting the use of '+name' with attributes
807 that come from recently composed roles. It makes
808 sense, people are using it, and so why not just
809 officially support it.
810 - fixing the 'extends' keyword so that it will not
811 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
814 - added the perl -Moose=+Class::Name feature to allow
815 monkeypatching of classes in one liners
818 - fixing the 'apply_all_roles' keyword so that it will not
819 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
822 - added ->create method which now supports roles (thanks to jrockway)
823 - added tests for this
824 - added ->create_anon_class which now supports roles and caching of
825 the results (thanks to jrockway)
826 - added tests for this
827 - made ->does_role a little more forgiving when it is
828 checking a Class::MOP era metaclasses.
830 * Moose::Meta::Role::Application::ToInstance
831 - it is now possible to pass extra params to be used when
832 a role is applied to an the instance (rebless_params)
833 - added tests for this
835 * Moose::Util::TypeConstraints
836 - class_type now accepts an optional second argument for a
837 custom message. POD anotated accordingly (groditi)
838 - added tests for this
839 - it is now possible to make anon-enums by passing 'enum' an
840 ARRAY ref instead of the $name => @values. Everything else
842 - added tests for this
845 - making test for using '+name' on attributes consumed
846 from a role, it works and makes sense too.
848 * Moose::Meta::Attribute
849 - fix handles so that it doesn't return nothing
850 when the method cannot be found, not sure why
851 it ever did this originally, this means we now
852 have slightly better support for AUTOLOADed
854 - added more delegation tests
855 - adding ->does method to this so as to better
856 support traits and their introspection.
857 - added tests for this
860 - localizing the Data::Dumper configurations so
861 that it does not pollute others (RT #33509)
862 - made ->does a little more forgiving when it is
863 passed Class::MOP era metaclasses.
865 0.38 Fri. Feb. 15, 2008
866 * Moose::Meta::Attribute
867 - fixed initializer to correctly do
868 type checking and coercion in the
870 - added tests for this
873 - fixed some finicky tests (thanks to konobi)
875 0.37 Thurs. Feb. 14, 2008
877 - fixed some details in Moose::init_meta
878 and its superclass handling (thanks thepler)
879 - added tests for this (thanks thepler)
880 - 'has' now dies if you don't pass in name
882 - added the 'make_immutable' keyword as a shortcut
886 Moose::Meta::Method::Constructor
887 Moose::Meta::Attribute
888 - making (init_arg => undef) work here too
889 (thanks to nothingmuch)
891 * Moose::Meta::Attribute
892 Moose::Meta::Method::Constructor
893 Moose::Meta::Method::Accessor
894 - make lazy attributes respect attr initializers (rjbs)
895 - added tests for this
897 * Moose::Util::TypeConstraints
898 Moose::Util::TypeConstraints::OptimizedConstraints
899 Moose::Meta::TypeConstraints
900 Moose::Meta::Attribute
901 Moose::Meta::Method::Constructor
902 Moose::Meta::Method::Accessor
903 - making type errors use the
904 assigned message (thanks to Sartak)
905 - added tests for this
907 * Moose::Meta::Method::Destructor
908 - making sure DESTROY gets inlined properly
909 with successive DEMOLISH calls (thanks to manito)
911 * Moose::Meta::Attribute
912 Moose::Meta::Method::Accessor
913 - fixed handling of undef with type constraints
915 - added tests for this
918 - added &get_all_init_args and &get_all_attribute_values
919 (thanks to Sartak and nothingmuch)
921 0.36 Sat. Jan. 26, 2008
923 Moose::Meta::Attribute
924 - role type tests now support when roles are
925 applied to non-Moose classes (found by ash)
926 - added tests for this (thanks to ash)
927 - couple extra tests to boost code coverage
929 * Moose::Meta::Method::Constructor
930 - improved fix for handling Class::MOP attributes
931 - added test for this
934 - handled the add_attribute($attribute_meta_object)
936 - added test for this
938 0.35 Tues. Jan. 22, 2008
939 * Moose::Meta::Method::Constructor
940 - fix to make sure even Class::MOP attributes
941 are handled correctly (Thanks to Dave Rolsky)
942 - added test for this (also Dave Rolsky)
945 - improved error message on _apply_all_roles,
946 you should now use Moose::Util::apply_all_roles
947 and you shouldnt have been using a _ prefixed
948 method in the first place ;)
950 0.34 Mon. Jan. 21, 2008
951 ~~~ more misc. doc. fixes ~~~
952 ~~ updated copyright dates ~~
954 Moose is now a postmodern object system :)
955 - (see the POD for details)
957 * <<Role System Refactoring>>
958 - this release contains a major reworking and
959 cleanup of the role system
960 - 100% backwards compat.
961 - Role application now restructured into seperate
962 classes based on type of applicants
963 - Role summation (combining of more than one role)
964 is much cleaner and anon-classes are no longer
966 - new Composite role metaclass
967 - runtime application of roles to instances
968 is now more efficient and re-uses generated
969 classes when applicable
971 * <<New Role composition features>>
972 - methods can now be excluded from a given role
974 - methods can now be aliased to another name (and
975 still retain the original as well)
977 * Moose::Util::TypeConstraints::OptimizedConstraints
978 - added this module (see above)
981 - fixed the &_process_attribute method to be called
982 by &add_attribute, so that the API is now correct
984 * Moose::Meta::Method::Accessor
985 - fixed bug when passing a list of values to
986 an accessor would get (incorrectly) ignored.
987 Thanks to Sartak for finding this ;)
988 - added tests for this (Sartak again)
990 * Moose::Meta::Method::Accessor
991 Moose::Meta::Method::Constructor
992 Moose::Meta::Attribute
993 Moose::Meta::TypeConstraint
994 Moose::Meta::TypeCoercion
995 - lots of cleanup of such things as:
997 - type constraint handling
998 - error handling/messages
999 (thanks to nothingmuch)
1001 * Moose::Meta::TypeConstraint::Parameterizable
1002 - added this module to support the refactor
1003 in Moose::Meta::TypeConstraint::Parameterized
1005 * Moose::Meta::TypeConstraint::Parameterized
1006 - refactored how these types are handled so they
1007 are more generic and not confined to ArrayRef
1011 - shortened some file names for better VMS support (RT #32381)
1013 0.33 Fri. Dec. 14, 2007
1014 !! Moose now loads 2 x faster !!
1015 !! with new Class::MOP 0.49 !!
1017 ++ new oose.pm module to make command line
1018 Moose-ness easier (see POD docs for more)
1020 * Moose::Meta::Class
1022 - several tweaks to take advantage of the
1023 new method map caching in Class::MOP
1025 * Moose::Meta::TypeConstraint::Parameterized
1026 - allow subtypes of ArrayRef and HashRef to
1027 be used as a container (sartak)
1028 - added tests for this
1029 - basic support for coercion to ArrayRef and
1030 HashRef for containers (sartak)
1031 - added tests for this
1033 * Moose::Meta::TypeCoercion
1034 - coercions will now create subtypes as needed
1035 so you can now add coercions to parameterized
1036 types without having to explictly define them
1037 - added tests for this
1039 * Moose::Meta::Method::Accessor
1040 - allow subclasses to decide whether we need
1041 to copy the value into a new variable (sartak)
1043 0.32 Tues. Dec. 4, 2007
1044 * Moose::Util::TypeConstraints
1045 - fixing how subtype aliases of unions work
1046 they should inherit the parent's coercion
1047 - added tests for this
1048 - you can now define multiple coercions on
1049 a single type at different times instead of
1050 having to do it all in one place
1051 - added tests for this
1053 * Moose::Meta::TypeConstraint
1054 - there is now a default constraint of sub { 1 }
1055 instead of Moose::Util::TypeConstraints setting
1058 * Moose::Meta::TypeCoercion
1059 * Moose::Meta::TypeCoercion::Union
1060 - added the &has_coercion_for_type and
1061 &add_type_coercions methods to support the
1062 new features above (although you cannot add
1063 more type coercions for Union types)
1065 0.31 Mon. Nov. 26, 2007
1066 * Moose::Meta::Attribute
1067 - made the +attr syntax handle extending types with
1068 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1069 now works if the original foo is an ArrayRef.
1070 - added tests for this.
1071 - delegation now works even if the attribute does not
1072 have a reader method using the get_read_method_ref
1073 method from Class::MOP::Attribute.
1074 - added tests for this
1075 - added docs for this
1077 * Moose::Util::TypeConstraints
1078 - passing no "additional attribute info" to
1079 &find_or_create_type_constraint will no longer
1080 attempt to create an __ANON__ type for you,
1081 instead it will just return undef.
1082 - added docs for this
1084 0.30 Fri. Nov. 23, 2007
1085 * Moose::Meta::Method::Constructor
1086 -builder related bug in inlined constructor. (groditi)
1088 * Moose::Meta::Method::Accessor
1089 - genereate unnecessary calls to predicates and refactor
1090 code generation for runtime speed (groditi)
1092 * Moose::Util::TypeConstraints
1093 - fix ClassName constraint to introspect symbol table (mst)
1094 - added more tests for this (mst)
1095 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1096 with work correctly.
1097 - added tests for this
1100 - adding the link to Recipie 11 (written by Sartak)
1101 - adding test for SYNOPSIS code
1104 - New tests for builder bug. Upon instantiation, if an
1105 attribute had a builder, no value and was not lazy the
1106 builder default was not getting run, oops. (groditi)
1108 0.29 Tues. Nov. 13, 2007
1109 * Moose::Meta::Attribute
1110 - Fix error message on missing builder method (groditi)
1112 * Moose::Meta::Method::Accessor
1113 - Fix error message on missing builder method (groditi)
1116 - Add test to check for the correct error message when
1117 builder method is missing (groditi)
1119 0.28 Tues. Nov. 13, 2007
1120 - 0.27 packaged incorrectly (groditi)
1122 0.27 Tues. Nov. 13, 2007
1123 * Moose::Meta::Attribute
1124 - Added support for the new builder option (groditi)
1125 - Added support for lazy_build option (groditi)
1126 - Changed slot initialization for predicate changes (groditi)
1128 * Moose::Meta::Method::Accessor
1129 - Added support for lazy_build option (groditi)
1130 - Fix inline methods to work with corrected predicate
1133 * Moose::Meta::Method::Constructor
1134 - Added support for lazy_build option (groditi)
1137 - tests for builder and lazy_build (groditi)
1139 * fixing some misc. bits in the docs that
1140 got mentioned on CPAN Forum & perlmonks
1143 - fixed how required methods are handled
1144 when they encounter overriden or modified
1145 methods from a class (thanks to confound).
1146 - added tests for this
1148 * Moose::Util::TypeConstraint
1149 - fixed the type notation parser so that
1150 the | always creates a union and so is
1151 no longer a valid type char (thanks to
1152 konobi, mugwump and #moose for working
1154 - added more tests for this
1156 0.26 Thurs. Sept. 27, 2007
1159 * Parameterized Types
1160 We now support parameterized collection types, such as:
1161 ArrayRef[Int] # array or integers
1162 HashRef[Object] # a hash with object values
1163 They can also be nested:
1164 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1165 And work with the type unions as well:
1166 ArrayRef[Int | Str] # array of integers of strings
1168 * Better Framework Extendability
1169 Moose.pm is now "extendable" such that it is now much
1170 easier to extend the framework and add your own keywords
1171 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1172 section of the Moose.pm docs.
1175 In an effort to begin documenting some of the various
1176 details of Moose as well as some common idioms, we have
1177 created Moose::Cookbook::Snacks as a place to find
1178 small (easily digestable) nuggets of Moose code.
1181 ~ Several doc updates/cleanup thanks to castaway ~
1183 - converted build system to use Module::Install instead of
1184 Module::Build (thanks to jrockway)
1187 - added all the meta classes to the immutable list and
1188 set it to inline the accessors
1189 - fix import to allow Sub::Exporter like { into => }
1190 and { into_level => } (perigrin)
1191 - exposed and documented init_meta() to allow better
1192 embedding and extending of Moose (perigrin)
1195 - complete re-organization of the test suite
1196 - added some new tests as well
1197 - finally re-enabled the Moose::POOP test since
1198 the new version of DBM::Deep now works again
1201 * Moose::Meta::Class
1202 - fixed very odd and very nasty recursion bug with
1204 - added tests for this (eilara)
1206 * Moose::Meta::Attribute
1207 Moose::Meta::Method::Constructor
1208 Moose::Meta::Method::Accessor
1209 - fixed issue with overload::Overloaded getting called
1210 on non-blessed items. (RT #29269)
1211 - added tests for this
1213 * Moose::Meta::Method::Accessor
1214 - fixed issue with generated accessor code making
1215 assumptions about hash based classes (thanks to dexter)
1217 * Moose::Coookbook::Snacks
1218 - these are bits of documentation, not quite as big as
1219 Recipes but which have no clear place in the module docs.
1220 So they are Snacks! (horray for castaway++)
1222 * Moose::Cookbook::Recipe4
1223 - updated it to use the new ArrayRef[MyType] construct
1224 - updated the accompanying test as well
1226 +++ Major Refactor of the Type Constraint system +++
1227 +++ with new features added as well +++
1229 * Moose::Util::TypeConstraint
1230 - no longer uses package variable to keep track of
1231 the type constraints, now uses the an instance of
1232 Moose::Meta::TypeConstraint::Registry to do it
1233 - added more sophisticated type notation parsing
1235 - added tests for this
1237 * Moose::Meta::TypeConstraint
1238 - some minor adjustments to make subclassing easier
1239 - added the package_defined_in attribute so that we
1240 can track where the type constraints are created
1242 * Moose::Meta::TypeConstraint::Union
1243 - this is now been refactored to be a subclass of
1244 Moose::Meta::TypeConstraint
1246 * Moose::Meta::TypeCoercion::Union
1247 - this has been added to service the newly refactored
1248 Moose::Meta::TypeConstraint::Union and is itself
1249 a subclass of Moose::Meta::TypeCoercion
1251 * Moose::Meta::TypeConstraint::Parameterized
1252 - added this module (taken from MooseX::AttributeHelpers)
1253 to help construct nested collection types
1254 - added tests for this
1256 * Moose::Meta::TypeConstraint::Registry
1257 - added this class to keep track of type constraints
1259 0.25 Mon. Aug. 13, 2007
1261 - Documentation update to reference Moose::Util::TypeConstraints
1262 under 'isa' in 'has' for how to define a new type
1263 (thanks to shlomif).
1265 * Moose::Meta::Attribute
1266 - required attributes now will no longer accept undef
1267 from the constructor, even if there is a default and lazy
1268 - added tests for this
1269 - default subroutines must return a value which passes the
1271 - added tests for this
1273 * Moose::Meta::Attribute
1274 * Moose::Meta::Method::Constructor
1275 * Moose::Meta::Method::Accessor
1276 - type-constraint tests now handle overloaded objects correctly
1277 in the error message
1278 - added tests for this (thanks to EvanCarroll)
1280 * Moose::Meta::TypeConstraint::Union
1281 - added (has_)hand_optimized_constraint to this class so that
1282 it behaves as the regular Moose::Meta::TypeConstraint does.
1285 - large refactoring of this code
1286 - added several more tests
1287 - tests for subtle conflict resolition issues
1288 added, but not currently running
1291 * Moose::Cookbook::Recipe7
1292 - added new recipe for augment/inner functionality
1294 - added test for this
1297 - a formal definition of roles (still in progress)
1300 - utilities for easier working with Moose classes
1301 - added tests for these
1304 - This contains Moose specific test functions
1305 - added tests for these
1307 0.24 Tues. July 3, 2007
1308 ~ Some doc updates/cleanup ~
1310 * Moose::Meta::Attribute
1311 - added support for roles to be given as parameters
1312 to the 'handles' option.
1313 - added tests and docs for this
1314 - the has '+foo' attribute form now accepts changes to
1315 the lazy option, and the addition of a handles option
1316 (but not changing the handles option)
1317 - added tests and docs for this
1320 - required methods are now fetched using find_method_by_name
1321 so that required methods can come from superclasses
1322 - adjusted tests for this
1324 0.23 Mon. June 18, 2007
1325 * Moose::Meta::Method::Constructor
1326 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1327 * Moose::Meta::Class
1328 - Modify make_immutable to work with the new Class::MOP immutable
1329 mechanism + POD + very basic test (groditi)
1330 * Moose::Meta::Attribute
1331 - Fix handles to use goto() so that caller() comes out properly on
1332 the other side (perigrin)
1334 0.22 Thurs. May 31, 2007
1335 * Moose::Util::TypeConstraints
1336 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1337 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1338 prototypes for functions
1339 - added the ClassName type constraint, this checks for strings
1340 which will respond true to ->isa(UNIVERSAL).
1341 - added tests and docs for this
1342 - subtyping just in name now works correctly by making the
1343 default for where be { 1 }
1344 - added test for this
1346 * Moose::Meta::Method::Accessor
1347 - coerce and lazy now work together correctly, thanks to
1348 merlyn for finding this bug
1349 - tests added for this
1350 - fix reader presedence bug in Moose::Meta::Attribute + tests
1353 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1354 a HASH-ref and missed. This produces better error messages then
1355 having it die cause undef is not a HASH.
1356 - added tests for this
1358 0.21 Thursday, May 2nd, 2007
1360 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1361 - modified unimport to remove super and inner along with the rest
1362 - altered unimport tests to handle this
1365 - altered super export to populate SUPER_SLOT
1367 * Moose::Meta::Class
1368 - altered augment and override modifier application to use *_SLOT
1369 - modified tests for these to unimport one test class each to test
1372 - fixed issue where custom attribute metaclasses
1373 where not handled correctly in roles
1374 - added tests for this
1376 * Moose::Meta::Class
1377 - fixed issue where extending metaclasses with
1378 roles would blow up. Thanks to Aankhen`` for
1379 finding this insidious error, and it's solution.
1381 ~~ lots of spelling and grammer fixes in the docs,
1382 many many thanks to rlb3 and Aankhen for these :)
1384 0.20 Friday, April 6th, 2007
1385 >> I messed up the SKIP logic in one test
1386 so this release is just to fix that.
1389 - 'has' now also accepts an ARRAY ref
1390 to create multiple attrs (see docs)
1391 (thanks to konobi for this)
1392 - added tests and docs
1394 0.19 Thurs. April 5th, 2007
1395 ~~ More documentation updates ~~
1397 * Moose::Util::TypeConstraints
1398 - 'type' now supports messages as well
1399 thanks to phaylon for finding this
1400 - added tests for this
1401 - added &list_all_type_constraints and
1402 &list_all_builtin_type_constraints
1403 functions to facilitate introspection.
1405 * Moose::Meta::Attribute
1406 - fixed regexp 'handles' declarations
1407 to build the list of delegated methods
1408 correctly (and not override important
1409 things like &new) thanks to ashleyb
1411 - added tests and docs for this
1412 - added the 'documentation' attributes
1413 so that you can actually document your
1414 attributes and inspect them through the
1416 - added tests and docs for this
1418 * Moose::Meta::Class
1419 - when loading custom attribute metaclasses
1420 it will first look in for the class in the
1421 Moose::Meta::Attribute::Custom::$name, and
1422 then default to just loading $name.
1423 - added tests and docs for this
1425 * Moose::Meta::TypeConstraint
1426 - type constraints now stringify to their names.
1427 - added test for this
1430 - added tests to assure we work with Module::Refresh
1431 - added stricter test skip logic in the Moose POOP
1432 test, ask Rob Kinyon why.
1433 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1435 0.18 Sat. March 10, 2007
1436 ~~ Many, many documentation updates ~~
1439 - We now use Class::MOP::load_class to
1441 - added tests to show types and subtypes
1442 working with Declare::Constraints::Simple
1443 and Test::Deep as constraint engines.
1446 !! You must have Class::MOP 0.37_001 !!
1447 !! for this developer release to work !!
1449 This release was primarily adding the immutable
1450 feature to Moose. An immutable class is one which
1451 you promise not to alter. When you set the class
1452 as immutable it will perform various bits of
1453 memoization and inline certain part of the code
1454 (constructors, destructors and accessors). This
1455 minimizes (and in some cases totally eliminates)
1456 one of Moose's biggest performance hits. This
1457 feature is not on by default, and is 100% optional.
1458 It has several configurable bits as well, so you
1459 can pick and choose to your specific needs.
1461 The changes involved in this were fairly wide and
1462 highly specific, but 100% backwards compatible, so
1463 I am not going to enumerate them here. If you are
1464 truely interested in what was changed, please do
1467 0.17 Tues. Nov. 14, 2006
1468 * Moose::Meta::Method::Accessor
1469 - bugfix for read-only accessors which
1470 are have a type constraint and lazy.
1471 Thanks to chansen for finding it.
1473 0.16 Tues. Nov. 14, 2006
1475 There are some speed improvements in this release,
1476 but they are only the begining, so stay tuned.
1479 - BUILDALL and DEMOLISHALL no longer get
1480 called unless they actually need to be.
1481 This gave us a signifigant speed boost
1482 for the cases when there is no BUILD or
1483 DEMOLISH method present.
1485 * Moose::Util::TypeConstraints
1486 * Moose::Meta::TypeConstraint
1487 - added an 'optimize_as' option to the
1488 type constraint, which allows for a
1489 hand optimized version of the type
1490 constraint to be used when possible.
1491 - Any internally created type constraints
1492 now provide an optimized version as well.
1494 0.15 Sun. Nov. 5, 2006
1496 This version of Moose *must* have Class::MOP 0.36 in order
1497 to work correctly. A number of small internal tweaks have
1498 been made in order to be compatible with that release.
1500 * Moose::Util::TypeConstraints
1501 - added &unimport so that you can clean out
1502 your class namespace of these exported
1505 * Moose::Meta::Class
1506 - fixed minor issue which occasionally
1507 comes up during global destruction
1509 - moved Moose::Meta::Method::Overriden into
1513 - moved Moose::Meta::Role::Method into
1516 * Moose::Meta::Attribute
1517 - changed how we do type checks so that
1518 we reduce the overall cost, but still
1521 - moved accessor generation methods to
1522 Moose::Meta::Method::Accessor to
1523 conform to the API changes from
1526 * Moose::Meta::TypeConstraint
1527 - changed how constraints are compiled
1528 so that we do less recursion and more
1529 iteration. This makes the type check
1531 - moved Moose::Meta::TypeConstraint::Union
1534 * Moose::Meta::Method::Accessor
1535 - created this from methods formerly found in
1536 Moose::Meta::Attribute
1538 * Moose::Meta::Role::Method
1539 - moved this from Moose::Meta::Role
1541 * Moose::Meta::Method::Overriden
1542 - moved this from Moose::Meta::Class
1544 * Moose::Meta::TypeConstraint::Union
1545 - moved this from Moose::Meta::TypeConstraint
1547 0.14 Mon. Oct. 9, 2006
1549 * Moose::Meta::Attribute
1550 - fixed lazy attributes which were not getting
1551 checked with the type constraint (thanks ashley)
1552 - added tests for this
1553 - removed the over-enthusiastic DWIMery of the
1554 automatic ArrayRef and HashRef defaults, it
1555 broke predicates in an ugly way.
1556 - removed tests for this
1558 0.13 Sat. Sept. 30, 2006
1560 This version of Moose *must* have Class::MOP 0.35 in order
1561 to work correctly. A number of small internal tweaks have
1562 been made in order to be compatible with that release.
1565 - Removed the use of UNIVERSAL::require to be a better
1566 symbol table citizen and remove a dependency
1567 (thanks Adam Kennedy)
1569 **~~ removed experimental & undocumented feature ~~**
1570 - commented out the 'method' and 'self' keywords, see the
1571 comments for more info.
1574 - added a FAQ and WTF files to document frequently
1575 asked questions and common problems
1577 * Moose::Util::TypeConstraints
1578 - added GlobRef and FileHandle type constraint
1579 - added tests for this
1581 * Moose::Meta::Attribute
1582 - if your attribute 'isa' ArrayRef of HashRef, and you have
1583 not explicitly set a default, then make the default DWIM.
1584 This will also work for subtypes of ArrayRef and HashRef
1586 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1587 - new test added for this (thanks to ashley)
1590 - added basic support for runtime role composition
1591 but this is still *highly experimental*, so feedback
1592 is much appreciated :)
1593 - added tests for this
1595 * Moose::Meta::TypeConstraint
1596 - the type constraint now handles the coercion process
1597 through delegation, this is to support the coercion
1600 * Moose::Meta::TypeConstraint::Union
1601 - it is now possible for coercions to be performed
1603 - added tests for this (thanks to konobi)
1605 * Moose::Meta::TypeCoercion
1606 - properly capturing error when type constraint
1610 - Scalar::Util 1.18 is bad on Win32, so temporarily
1611 only require version 1.17 for Win32 and cygwin.
1612 (thanks Adam Kennedy)
1614 0.12 Sat. Sept. 1, 2006
1616 - Recipe5 (subtypes & coercion) has been written
1619 - fixed "bad meta" error message to be more descriptive
1620 - fixed &unimport to not remove the &inner and &super
1621 keywords because we need to localize them.
1622 - fixed number of spelling/grammer issues, thanks Theory :)
1624 **~~ experimental & undocumented feature ~~**
1625 - added the method and self keywords, they are basically
1626 just sugar, and they may not stay around.
1629 - added &dump method to easily Data::Dumper
1632 * Moose::Meta::TypeConstraint
1633 - added the &is_a_type_of method to check both the current
1634 and the subtype of a method (similar to &isa with classes)
1637 - this is now a subclass of Class::MOP::Module, and no longer
1638 creates the _role_meta ugliness of before.
1639 - fixed tests to reflect this change
1641 0.11 Wed. July 12, 2006
1643 - added an &unimport method to remove all the keywords
1644 that Moose will import, simply add 'no Moose' to the
1645 bottom of your class file.
1648 - fixed some test failures caused by a forgotten test
1651 0.10 Thurs. July 6, 2006
1653 - improved error message when loading modules so
1654 it is less confusing when you load a role.
1655 - added &calculate_all_roles method to
1656 Moose::Meta::Class and Moose::Meta::Role
1659 This module has been tested against Class::MOP 0.30
1660 but it does not yet utilize the optimizations
1661 it makes available. Stay tuned for that ;)
1663 0.09_03 Fri. June 23, 2006
1664 ++ DEVELOPER RELEASE ++
1666 - 'use strict' and 'use warnings' are no longer
1667 needed in Moose classes, Moose itself will
1668 turn them on for you.
1669 - added tests for this
1670 - moved code from exported subs to private methods
1671 in Moose::Meta::Class
1674 - as with Moose, strict and warnings are
1675 automatically turned on for you.
1676 - added tests for this
1679 - now handles an edge case for override errors
1680 - added tests for this
1681 - added some more edge case tests
1683 0.09_02 Tues. May 16, 2006
1684 ++ DEVELOPER RELEASE ++
1686 - added prototypes to the exported subs
1690 - added prototypes to the exported subs
1693 * Moose::Util::TypeConstraints
1694 - cleaned up prototypes for the subs
1697 0.09_01 Fri. May 12, 2006
1698 ++ DEVELOPER RELEASE ++
1699 - This release works in combination with
1700 Class::MOP 0.29_01, it is a developer
1701 release because it uses the a new
1702 instance sub-protocol and a fairly
1703 complete Role implementation. It has
1704 not yet been optimized, so it slower
1705 the the previous CPAN version. This
1706 release also lacks good updated docs,
1707 the official release will have updated docs.
1710 - refactored the keyword exports
1711 - 'with' now checks Role validaity and
1712 accepts more than one Role at a time
1713 - 'extends' makes metaclass adjustments as
1714 needed to ensure metaclass compatibility
1717 - refactored the keyword exports
1718 - 'with' now checks Role validaity and
1719 accepts more than one Role at a time
1721 * Moose::Util::TypeConstraints
1722 - added the 'enum' keyword for simple
1723 string enumerations which can be used as
1725 - see example of usage in t/202_example.t
1728 - more careful checking of params to new()
1731 - much work done on the role composition
1732 - many new tests for conflict detection
1733 and composition edge cases
1734 - not enough documentation, I suggest
1735 looking at the tests
1737 * Moose::Meta::Instance
1738 - added new Instance metaclass to support
1739 the new Class::MOP instance protocol
1741 * Moose::Meta::Class
1742 - some small changes to support the new
1744 - some small additions to support Roles
1746 * Moose::Meta::Attribute
1747 - some improvements to the accessor generation code
1749 - some small changes to support the new
1751 - (still somewhat) experimental delegation support
1752 with the 'handles' option
1753 - added several tests for this
1754 - no docs for this yet
1756 0.05 Thurs. April 27, 2006
1758 - keywords are now exported with Sub::Exporter
1759 thanks to chansen for this commit
1760 - has keyword now takes a 'metaclass' option
1761 to support custom attribute meta-classes
1762 on a per-attribute basis
1763 - added tests for this
1764 - the 'has' keyword not accepts inherited slot
1765 specifications (has '+foo'). This is still an
1766 experimental feature and probably not finished
1767 see t/038_attribute_inherited_slot_specs.t for
1768 more details, or ask about it on #moose
1769 - added tests for this
1772 - keywords are now exported with Sub::Exporter
1774 * Moose::Utils::TypeConstraints
1775 - reorganized the type constraint hierarchy, thanks
1776 to nothingmuch and chansen for his help and advice
1778 - added some tests for this
1779 - keywords are now exported with Sub::Exporter
1780 thanks to chansen for this commit
1782 * Moose::Meta::Class
1783 - due to changes in Class::MOP, we had to change
1784 construct_instance (for the better)
1786 * Moose::Meta::Attribute
1787 - due to changes in Class::MOP, we had to add the
1788 initialize_instance_slot method (it's a good thing)
1790 * Moose::Meta::TypeConstraint
1791 - added type constraint unions
1792 - added tests for this
1793 - added the is_subtype_of predicate method
1794 - added tests for this
1796 0.04 Sun. April 16th, 2006
1798 - Roles can now consume other roles
1799 - added tests for this
1800 - Roles can specify required methods now with
1801 the requires() keyword
1802 - added tests for this
1805 - ripped out much of it's guts ,.. much cleaner now
1806 - added required methods and correct handling of
1807 them in apply() for both classes and roles
1808 - added tests for this
1809 - no longer adds a does() method to consuming classes
1810 it relys on the one in Moose::Object
1811 - added roles attribute and some methods to support
1812 roles consuming roles
1814 * Moose::Meta::Attribute
1815 - added support for triggers on attributes
1816 - added tests for this
1817 - added support for does option on an attribute
1818 - added tests for this
1820 * Moose::Meta::Class
1821 - added support for attribute triggers in the
1823 - added tests for this
1826 - Moose no longer creates a subtype for your class
1827 if a subtype of the same name already exists, this
1828 should DWIM in 99.9999% of all cases
1830 * Moose::Util::TypeConstraints
1831 - fixed bug where incorrect subtype conflicts were
1833 - added test for this
1836 - this class can now be extended with 'use base' if
1837 you need it, it properly loads the metaclass class now
1838 - added test for this
1840 0.03_02 Wed. April 12, 2006
1842 - you must now explictly use Moose::Util::TypeConstraints
1843 it no longer gets exported for you automatically
1846 - new() now accepts hash-refs as well as key/value lists
1847 - added does() method to check for Roles
1848 - added tests for this
1850 * Moose::Meta::Class
1851 - added roles attribute along with the add_role() and
1853 - added tests for this
1856 - now adds a does() method to consuming classes
1857 which tests the class's hierarchy for roles
1858 - added tests for this
1860 0.03_01 Mon. April 10, 2006
1862 - added new Role recipe (no content yet, only code)
1865 - added 'with' keyword for Role support
1866 - added test and docs for this
1867 - fixed subtype quoting bug
1868 - added test for this
1872 - added test and docs
1874 * Moose::Util::TypeConstraints
1875 - added the message keyword to add custom
1876 error messages to type constraints
1879 - the meta role to support Moose::Role
1880 - added tests and docs
1882 * Moose::Meta::Class
1883 - moved a number of things from Moose.pm
1884 to here, they should have been here
1887 * Moose::Meta::Attribute
1888 - moved the attribute option macros here
1889 instead of putting them in Moose.pm
1891 * Moose::Meta::TypeConstraint
1892 - added the message attributes and the
1894 - added tests and docs for this
1896 0.03 Thurs. March 30, 2006
1898 - added the Moose::Cookbook with 5 recipes,
1899 describing all the stuff Moose can do.
1902 - fixed an issue with &extends super class loading
1903 it now captures errors and deals with inline
1904 packages correctly (bug found by mst, solution
1906 - added super/override & inner/augment features
1907 - added tests and docs for these
1910 - BUILDALL now takes a reference of the %params
1911 that are passed to &new, and passes that to
1914 * Moose::Util::TypeConstraints
1915 - Type constraints now survive runtime reloading
1916 - added test for this
1918 * Moose::Meta::Class
1919 - fixed the way attribute defaults are handled
1920 during instance construction (bug found by chansen)
1922 * Moose::Meta::Attribute
1923 - read-only attributes now actually enforce their
1924 read-only-ness (this corrected in Class::MOP as
1927 0.02 Tues. March 21, 2006
1929 - many more tests, fixing some bugs and
1931 - &extends now loads the base module with
1933 - added UNIVERSAL::require to the
1936 - each new Moose class will also create
1937 and register a subtype of Object which
1938 correspond to the new Moose class.
1939 - the 'isa' option in &has now only
1940 accepts strings, and will DWIM in
1943 * Moose::Util::TypeConstraints
1944 - added type coercion features
1945 - added tests for this
1946 - added support for this in attributes
1947 and instance construction
1949 - type construction no longer creates a
1950 function, it registers the type instead.
1951 - added several functions to get the
1955 - BUILDALL and DEMOLISHALL were broken
1956 because of a mis-named hash key, Whoops :)
1958 * Moose::Meta::Attribute
1959 - adding support for coercion in the
1960 autogenerated accessors
1962 * Moose::Meta::Class
1963 - adding support for coercion in the
1964 instance construction
1966 * Moose::Meta::TypeConstraint
1967 * Moose::Meta::TypeCoercion
1968 - type constraints and coercions are now
1969 full fledges meta-objects
1971 0.01 Wed. March 15, 2006
1972 - Moooooooooooooooooose!!!