1 Revision history for Perl extension Moose
4 * Moose::Meta::Role::Application::ToClass
5 Moose::Meta::Role::Application::ToRole
6 - fixed issues where excluding and aliasing the
7 same methods for a single role did not work
8 right (worked just fine with multiple roles)
11 - Catch another case where recursion caused the value
12 of $CALLER to be stamped on (t0m)
13 - added test for this (t0m)
15 - Remove the make_immutable keyword, which has been
16 deprecated since April. It breaks metaclasses that
17 use Moose without no Moose (Sartak)
19 0.61 Fri November 7, 2008
20 * Moose::Meta::Attribute
21 - When passing a role to handles, it will be loaded if necessary
25 - Method objects returned by get_method (and other methods)
26 Could end up being returned without an associated_metaclass
27 attribute. Removing get_method_map, which is provided by
28 Class::MOP::Class, fixed this. The Moose version did nothing
29 different from its parent except introduce a bug. (Dave Rolsky)
30 - added tests for this (jdv79)
33 - Added a $VERSION to all .pm files which didn't have one. Fixes
34 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
36 * Moose::Cookbook::Basics::Recipe4
37 * Moose::Cookbook::Basics::Recipe6
38 - These files had spaces on the first line of the SYNOPSIS, as
39 opposed to a totally empty line. According to RT #40432, this
40 confuses POD parsers. (Dave Rolsky)
42 0.60 Fri October 24, 2008
44 - Passing "-traits" when loading Moose caused the Moose.pm
45 exports to be broken. Reported by t0m. (Dave Rolsky)
46 - Tests for this bug. (t0m)
49 - Change resolve_metaclass alias to use the new
50 load_first_existing_class function. This makes it a lot
51 simpler, and also around 5 times faster. (t0m)
52 - Add caching to resolve_metaclass_alias, which gives an order
53 of magnitude speedup to things which repeatedly call the
54 Moose::Meta::Attribute->does method, notably MooseX::Storage
57 * Moose::Util::TypeConstraint
58 - Put back the changes for parameterized constraints that
59 shouldn't have been removed in 0.59. We still cannot parse
60 them, but MooseX modules can create them in some other
61 way. See the 0.58 changes for more details. (jnapiorkowski)
62 - Changed the way subtypes are created so that the job is
63 delegated to a type constraint parent. This clears up some
64 hardcoded checking and should allow correct subtypes of
65 Moose::Meta::Type::Constraint. Don't rely on this new API too
66 much (create_child_type) because it may go away in the
67 future. (jnapiorkowski)
69 * Moose::Meta::TypeConstraint::Union
70 - Type constraint names are sorted as strings, not numbers.
73 * Moose::Meta::TypeConstraint::Parameterizable
74 - New parameterize method. This can be used as a factory method
75 to make a new type constraint with a given parameterized
77 - added tests (jnapiorkowski)
79 0.59 Tue October 14, 2008
81 - Add abridged documentation for builder/default/initializer/
82 predicate, and link to more details sections in
83 Class::MOP::Attribute. (t0m)
85 * Moose::Util::TypeConstraints
86 - removed prototypes from all but the &-based stuff (mst)
88 * Moose::Util::TypeConstraints
89 - Creating a anonymous subtype with both a constraint and a
90 message failed with a very unhelpful error, but should just
91 work. Reported by t0m. (Dave Rolsky)
94 - Some tests that used Test::Warn if it was available failed
95 with older versions of Test::Warn. Reported by Fayland. (Dave
97 - Test firing behavior of triggers in relation to builder/default/
99 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
100 kinds of supported type. (t0m)
103 - In create(), do not pass "roles" option to the superclass
104 - added related test that creates an anon metaclass with
107 * Moose::Meta::TypeConstraint::Class
108 * Moose::Meta::TypeConstraint::Role
109 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
110 other types (as per change in 0.55_02). (t0m)
112 * Moose::Meta::TypeConstraint::Registry
113 - Fix warning when dealing with unknown type names (t0m)
115 * Moose::Util::TypeConstraints
116 - Reverted changes from 0.58 related to handle parameterized
117 types. This caused random failures on BSD and Win32 systems,
118 apparently related to the regex engine. This means that Moose
119 can no longer parse structured type constraints like
120 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
121 supported in a slightly different way via MooseX::Types some
122 time in the future. (Dave Rolsky)
124 0.58 Sat September 20, 2008
125 !! This release has an incompatible change regarding !!
126 !! how roles add methods to a class !!
128 * Roles and role application
129 ! Roles now add methods by calling add_method, not
130 alias_method. They make sure to always provide a method
131 object, which will be cloned internally. This means that it is
132 now possible to track the source of a method provided by a
133 role, and even follow its history through intermediate roles.
135 This means that methods added by a role now show up when
136 looking at a class's method list/map. (Dave Rolsky)
139 - From this release on, we'll try to maintain a list of
140 conflicting modules, and warn you if you have one
141 installed. For example, this release conflicts with ...
142 - MooseX::Singleton <= 0.11
143 - MooseX::Params::Validate <= 0.05
146 In general, we try to not break backwards compatibility for
147 most Moose users, but MooseX modules and other code which
148 extends Moose's metaclasses is often affected by very small
149 changes in the Moose internals.
151 * Moose::Meta::Method::Delegation
152 * Moose::Meta::Attribute
153 - Delegation methods now have their own method class. (Dave
156 * Moose::Meta::TypeConstraint::Parameterizable
157 - Added a new method 'parameterize' which is basically a factory
158 for the containing constraint. This makes it easier to create
159 new types of parameterized constraints. (jnapiorkowski)
161 * Moose::Meta::TypeConstraint::Union
162 - Changed the way Union types canonicalize their names to follow
163 the normalized TC naming rules, which means we strip all
164 whitespace. (jnapiorkowski)
166 * Moose::Util::TypeConstraints
167 - Parameter and Union args are now sorted, this makes Int|Str
168 the same constraint as Str|Int. (jnapiorkowski)
169 - Changes to the way Union types are parsed to more correctly
170 stringify their names. (jnapiorkowski)
171 - When creating a parameterized type, we now use the new
172 parameterize method. (jnapiorkowski)
173 - Incoming type constraint strings are now normalized to remove
174 all whitespace differences. (jnapiorkowski)
175 - Changed the way we parse type constraint strings so that we now
176 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
177 constraints. This lays the foundation for more flexible type
178 constraint implementations.
180 * Tests and docs for all the above. (jnapiorkowski)
184 - Moose::Exporter will no longer remove a subroutine that the
185 exporting package re-exports. Moose re-exports the
186 Carp::confess function, among others. The reasoning is that we
187 cannot know whether you have also explicitly imported those
188 functions for your own use, so we err on the safe side and
189 always keep them. (Dave Rolsky)
190 - added tests for this (rafl)
193 - Changes to how we fix metaclass compatibility that are much
194 too complicated to go into. The summary is that Moose is much
195 less likely to complain about metaclass incompatibility
196 now. In particular, if two metaclasses differ because
197 Moose::Util::MetaRole was used on the two corresponding
198 classes, then the difference in roles is reconciled for the
199 subclass's metaclass. (Dave Rolsky)
200 - Squashed an warning in _process_attribute (thepler)
203 - throw exceptions (sooner) for invalid attribute names (thepler)
204 - added tests for this (thepler)
206 * Moose::Util::MetaRole
207 - If you explicitly set a constructor or destructor class for a
208 metaclass object, and then applied roles to the metaclass,
209 that explicitly set class would be lost and replaced with the
213 * Moose::Meta::Attribute
214 * Moose::Meta::Method
217 * Moose::Error::Default
218 * Moose::Error::Croak
219 * Moose::Error::Confess
220 - All instances of confess() changed to use overridable
221 C<throw_error> method. This method ultimately calls a class
222 constructor, and you can change the class being called. In
223 addition, errors now pass more information than just a string.
224 The default C<error_class> behaves like C<Carp::confess>, so
225 the behavior is not visibly different for end users.
227 0.57 Wed September 3, 2008
229 - A new bit of doc intended to introduce folks familiar with
230 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
233 - Shows examples of two classes, each done first with and then
234 without Moose. This makes a nice parallel to
235 Moose::Intro. (Dave Rolsky)
237 * Moose::Util::TypeConstraints
238 - Fixed a bug in find_or_parse_type_constraint so that it
239 accepts a Moose::Meta::TypeConstraint object as the parent
240 type, not just a name (jnapiorkowski)
241 - added tests (jnapiorkowski)
244 - If Sub::Name was not present, unimporting failed to actually
245 remove some sugar subs, causing test failures (Dave Rolsky)
247 0.56 Mon September 1, 2008
248 For those not following the series of dev releases, there are
249 several major changes in this release of Moose.
250 ! Moose::init_meta should now be called as a method. See the
253 - Major performance improvements by nothingmuch.
255 - New modules for extension writers, Moose::Exporter and
256 Moose::Util::MetaRole by Dave Rolsky.
258 - Lots of doc improvements and additions, especially in the
263 * Removed all references to the experimental-but-no-longer-needed
264 Moose::Meta::Role::Application::ToMetaclassInstance.
266 * Require Class::MOP 0.65.
268 0.55_04 Sat August 30, 2008
269 * Moose::Util::MetaRole
270 * Moose::Cookbook::Extending::Recipe2
271 - This simplifies the application of roles to any meta class, as
272 well as the base object class. Reimplemented metaclass traits
273 using this module. (Dave Rolsky)
275 * Moose::Cookbook::Extending::Recipe1
276 - This a new recipe, an overview of various ways to write Moose
277 extensions (Dave Rolsky)
279 * Moose::Cookbook::Extending::Recipe3
280 * Moose::Cookbook::Extending::Recipe4
281 - These used to be Extending::Recipe1 and Extending::Recipe2,
284 0.55_03 Fri August 29, 2008
285 * No changes from 0.55_02 except increasing the Class::MOP
286 dependency to 0.64_07.
288 0.55_02 Fri August 29, 2008
289 * Makefile.PL and Moose.pm
290 - explicitly require Perl 5.8.0+ (Dave Rolsky)
292 * Moose::Util::TypeConstraints
293 - Fix warnings from find_type_constraint if the type is not
296 * Moose::Meta::TypeConstraint
297 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
298 return false if the type you specify cannot be found in the
299 type registry, rather than throwing an unhelpful and
300 coincidental exception. (t0m).
301 - added docs & test for this (t0m)
303 * Moose::Meta::TypeConstraint::Registry
304 - add_type_constraint now throws an exception if a parameter is
306 - added docs & test for this (t0m)
308 * Moose::Cookbook::FAQ
309 - Added a faq entry on the difference between "role" and "trait"
313 - Fixed a bug that caused role composition to not see a required
314 method when that method was provided by another role being
315 composed at the same time. (Dave Rolsky)
316 - test and bug finding (tokuhirom)
318 0.55_01 Wed August 20, 2008
320 !! Calling Moose::init_meta as a function is now !!
321 !! deprecated. Please see the Moose.pm docs for details. !!
323 * Moose::Meta::Method::Constructor
324 - Fix inlined constructor so that values produced by default
325 or builder methods are coerced as required. (t0m)
326 - added test for this (t0m)
328 * Moose::Meta::Attribute
329 - A lazy attribute with a default or builder did not attempt to
330 coerce the default value. The immutable code _did_
332 - added test for this (t0m)
335 - This is a new helper module for writing "Moose-alike"
336 modules. This should make the lives of MooseX module authors
337 much easier. (Dave Rolsky)
340 * Moose::Cookbook::Meta::Recipe5
341 - Implemented metaclass traits (and wrote a recipe for it):
343 use Moose -traits => 'Foo'
345 This should make writing small Moose extensions a little
348 * Moose::Cookbook::Basics::Recipe1
349 - Removed any examples of direct hashref access, and applied an
350 editorial axe to reduce verbosity. (Dave Rolsky)
352 * Moose::Cookbook::Basics::Recipe1
353 - Also applied an editorial axe here. (Dave Rolsky)
356 * Moose::Cookbook::Extending::Recipe1
357 * Moose::Cookbook::Extending::Recipe2
358 - Rewrote extending and embedding moose documentation and
359 recipes to use Moose::Exporter (Dave Rolsky)
363 - These two modules now warn when you load them from the main
364 package "main" package, because we will not export sugar to
365 main. Previously it just did nothing. (Dave Rolsky)
368 - Now provide an init_meta method just like Moose.pm, and you
369 can call this to provide an alternate role metaclass. (Dave
370 Rolsky and nothingmuch)
371 - get_method_map now respects the package cache flag (nothingmuch)
374 - Two new methods - add_method and wrap_method_body
378 - Optimizations including allowing constructors to accept hash
379 refs, making many more classes immutable, and making
380 constructors immutable. (nothingmuch)
382 0.55 Sun August 3, 2008
383 * Moose::Meta::Attribute
384 - breaking down the way 'handles' methods are
385 created so that the process can be more easily
386 overridden by subclasses (stevan)
388 * Moose::Meta::TypeConstraint
389 - fixing what is passed into a ->message with
390 the type constraints (RT #37569)
391 - added tests for this (Charles Alderman)
393 * Moose::Util::TypeConstraints
394 - fix coerce to accept anon types like subtype can (mst)
397 - reorganized the recipes into sections - Basics, Roles, Meta,
398 Extending - and wrote abstracts for each section (Dave Rolsky)
400 * Moose::Cookbook::Basics::Recipe10
401 - A new recipe that demonstrates operator overloading
402 in combination with Moose. (bluefeet)
404 * Moose::Cookbook::Meta::Recipe1
405 - an introduction to what meta is and why you'd want to make
406 your own metaclass extensions (Dave Rolsky)
408 * Moose::Cookbook::Meta::Recipe4
409 - a very simple metaclass example (Dave Rolsky)
411 * Moose::Cookbook::Extending::Recipe1
412 - how to write a Moose-alike module to use your own object base
415 * Moose::Cookbook::Extending::Recipe2
416 - how to write modules with an API just like C<Moose.pm> (Dave
420 - Tons of fixes, both syntactical and grammatical (Dave
421 Rolsky, Paul Fenwick)
423 0.54 Thurs. July 3, 2008
424 ... this is not my day today ...
426 * Moose::Meta::Attribute
427 - fixed legal_options_for_inheritance such that
428 clone_and_inherit options still works for
429 Class::MOP::Attribute objects and therefore
430 does not break MooseX::AttributeHelpers
433 0.53 Thurs. July 3, 2008
434 * Whoops, I guess I should run 'make manifest' before
435 actually releasing the module. No actual changes
436 in this release, except the fact that it includes
437 the changes that I didn't include in the last
440 0.52 Thurs. July 3, 2008
442 - added "FEATURE REQUESTS" section to the Moose docs
443 to properly direct people (stevan) (RT #34333)
444 - making 'extends' croak if it is passed a Role since
445 this is not ever something you want to do
446 (fixed by stevan, found by obra)
447 - added tests for this (stevan)
450 - adding support for DOES (as in UNIVERSAL::DOES)
452 - added test for this
454 * Moose::Meta::Attribute
455 - added legal_options_for_inheritance (wreis)
456 - added tests for this (wreis)
458 * Moose::Cookbook::Snacks::*
459 - removed some of the unfinished snacks that should
460 not have been released yet. Added some more examples
461 to the 'Keywords' snack. (stevan)
463 * Moose::Cookbook::Style
464 - added general Moose "style guide" of sorts to the
465 cookbook (nothingmuch) (RT #34335)
468 - added more BUILDARGS tests (stevan)
470 0.51 Thurs. Jun 26, 2008
472 - add unimport so "no Moose::Role" actually does
475 * Moose::Meta::Role::Application::ToRole
476 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
477 order to provide its own implementation, that method still got
478 added to the list of required methods for consumers of
479 RoleB. Now an aliased method is only added to the list of
480 required methods if the role doing the aliasing does not
481 provide its own implementation. See Recipe 11 for an example
482 of all this. (Dave Rolsky)
483 - added tests for this
485 * Moose::Meta::Method::Constructor
486 - when a single argument that wasn't a hashref was provided to
487 an immutabilized constructor, the error message was very
488 unhelpful, as opposed to the non-immutable error. Reported by
490 - added test for this (Dave Rolsky)
492 * Moose::Meta::Attribute
493 - added support for meta_attr->does("ShortAlias") (sartak)
494 - added tests for this (sartak)
495 - moved the bulk of the `handles` handling to the new
496 install_delegation method (Stevan)
499 - Added BUILDARGS, a new step in new()
501 * Moose::Meta::Role::Application::RoleSummation
502 - fix typos no one ever sees (sartak)
504 * Moose::Util::TypeConstraints
505 * Moose::Meta::TypeConstraint
506 * Moose::Meta::TypeCoercion
507 - Attempt to work around the ??{ } vs. threads issue
509 - Some null_constraint optimizations
511 0.50 Thurs. Jun 11, 2008
512 - Fixed a version number issue by bumping all modules
515 0.49 Thurs. Jun 11, 2008
516 !! This version now approx. 20-25% !!
517 !! faster with new Class::MOP 0.59 !!
519 * Moose::Meta::Attribute
520 - fixed how the is => (ro|rw) works with
521 custom defined reader, writer and accessor
523 - added docs for this (TODO).
524 - added tests for this (Thanks to Penfold)
525 - added the custom attribute alias for regular
526 Moose attributes which is "Moose"
527 - fix builder and default both being used
532 Moose::Meta::Attribute
534 Moose::Meta::Role::Composite
535 Moose::Util::TypeConstraints
536 - switched usage of reftype to ref because
540 - changing add_package_symbol to use the new
544 - fixed how DEMOLISHALL is called so that it
545 can be overrided in subclasses (thanks to Sartak)
546 - added test for this (thanks to Sartak)
548 * Moose::Util::TypeConstraints
549 - move the ClassName type check code to
550 Class::MOP::is_class_loaded (thanks to Sartak)
552 * Moose::Cookbook::Recipe11
553 - add tests for this (thanks to tokuhirom)
555 0.48 Thurs. May 29, 2008
556 (early morning release engineering)--
558 - fixing the version in Moose::Meta::Method::Destructor
559 which was causing the indexer to choke
561 0.47 Thurs. May 29, 2008
562 (late night release engineering)--
564 - fixing the version is META.yml, no functional
565 changes in this release
567 0.46 Wed. May 28, 2008
568 !! This version now approx. 20-25% !!
569 !! faster with new Class::MOP 0.57 !!
572 - some optimizations of the &initialize method
573 since it is called so often by &meta
577 - now use the get_all_package_symbols from the
578 updated Class::MOP, test suite is now 10 seconds
581 * Moose::Meta::Method::Destructor
582 - is_needed can now also be called as a class
583 method for immutablization to check if the
584 destructor object even needs to be created
587 * Moose::Meta::Method::Destructor
588 Moose::Meta::Method::Constructor
589 - added more descriptive error message to help
590 keep people from wasting time tracking an error
591 that is easily fixed by upgrading.
593 0.45 Saturday, May 24, 2008
595 - Because of work in Class::MOP 0.57, all
596 XS based functionality is now optional
597 and a Pure Perl version is supplied
598 - the CLASS_MOP_NO_XS environment variable
599 can now be used to force non-XS versions
601 - several of the packages have been tweaked
602 to take care of this, mostly we added
603 support for the package_name and name
604 variables in all the Method metaclasses
605 - before/around/after method modifiers now
606 support regexp matching of names
607 (thanks to Takatoshi Kitano)
608 - tests added for this
609 - NOTE: this only works for classes, it
610 is currently not supported in roles,
611 but, ... patches welcome
612 - All usage of Carp::confess have been replaced
613 by Carp::croak in the "keyword" functions since
614 the stack trace is usually not helpful
617 - All usage of Carp::confess have been replaced
618 by Carp::croak in the "keyword" functions since
619 the stack trace is usually not helpful
620 - The 'has' keyword for roles now accepts the
621 same array ref form that Moose.pm does
622 (has [qw/foo bar/] => (is => 'rw', ...))
623 - added test for this
625 * Moose::Meta::Attribute
626 - trigger on a ro-attribute is no longer an
627 error, as it's useful to trigger off of the
631 - added same 'add_package_symbol' fix as in
635 - does_role now handles non-Moose classes
637 - added tests for this
638 - added the 'add_method_modifier' function
639 (thanks to Takatoshi Kitano)
641 * Moose::Util::TypeConstraints
642 - subtypes of parameterizable types now are
643 themselves parameterizable types
645 * Moose::Meta::Method::Constructor
646 - fixed bug where trigger was not being
647 called by the inlined immutable
649 - added test for this (thanks to Caelum)
651 * Moose::Meta::Role::Application::ToInstance
652 - now uses the metaclass of the instance
653 (if possible) to create the anon-class
654 (thanks Jonathan Rockway)
656 * Moose::Cookbook::Recipe22
657 - added the meta-attribute trait recipe
661 - fixed hash-ordering test bug that was
662 causing occasional cpantester failures
663 - renamed the t/000_recipe/*.t tests to be
664 more descriptive (thanks to Sartak)
666 0.44 Sat. May 10, 2008
668 - made make_immutable warning cluck to
669 show where the error is (thanks mst)
672 - BUILDALL and DEMOLISHALL now call
673 ->body when looping through the
674 methods, to avoid the overloaded
676 - fixed issue where DEMOLISHALL was
677 eating the $@ values, and so not
678 working correctly, it still kind of
679 eats them, but so does vanilla perl
680 - added tests for this
682 * Moose::Cookbook::Recipe7
683 - added new recipe for immutable
684 functionality (thanks Dave Rolsky)
686 * Moose::Cookbook::Recipe9
687 - added new recipe for builder and
688 lazy_build (thanks Dave Rolsky)
690 * Moose::Cookbook::Recipe11
691 - added new recipe for method aliasing
692 and exclusion with Roles (thanks Dave Rolsky)
695 - fixed Win32 test failure (thanks spicyjack)
697 ~ removed Build.PL and Module::Build compat
698 since Module::Install has done that.
700 0.43 Wed. April, 30, 2008
702 drink more coffee before
703 doing release engineering
705 - whoops, forgot to do the smolder tests,
706 and we broke some of the custom meta-attr
707 modules. This fixes that.
709 0.42 Mon. April 28, 2008
710 - some bad tests slipped by, nothing else
711 changed in this release (cpantesters++)
713 - upped the Class::MOP dependency to 0.55
714 since we have tests which need the C3
717 0.41 Mon. April 28, 2008
718 ~~ numerous documentation updates ~~
720 - Changed all usage of die to Carp::croak for better
721 error reporting (initial patch by Tod Hagan)
724 - the make_immutable keyword is now deprecated, don't
725 use it in any new code and please fix your old code
726 as well. There will be 2 releases, and then it will
732 - refactored the way inner and super work to avoid
733 any method/@ISA cache penalty (nothingmuch)
736 - fixing &new_object to make sure trigger gets the
737 coerced value (spotted by Charles Alderman on the
739 - added test for this
741 * Moose::Meta::Method::Constructor
742 - immutable classes which had non-lazy attributes were calling
743 the default generating sub twice in the constructor. (bug
744 found by Jesse Luehrs, fixed by Dave Rolsky)
745 - added tests for this (Dave Rolsky)
746 - fix typo in initialize_body method (nothingmuch)
748 * Moose::Meta::Method::Destructor
749 - fix typo in initialize_body method (nothingmuch)
751 * Moose::Meta::Method::Overriden
752 Moose::Meta::Method::Augmented
753 - moved the logic for these into their own
754 classes (nothingmuch)
756 * Moose::Meta::Attribute
757 - inherited attributes may now be extended without
758 restriction on the type ('isa', 'does') (Sartak)
759 - added tests for this (Sartak)
760 - when an attribute property is malformed (such as lazy without
761 a default), give the name of the attribute in the error
763 - added the &applied_traits and &has_applied_traits methods
764 to allow introspection of traits
765 - added tests for this
766 - moved 'trait' and 'metaclass' argument handling to here from
768 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
769 '+foo' syntax) (nothingmuch)
770 - added tests for this (t0m)
773 - localize $@ inside DEMOLISHALL to avoid it
774 eating $@ (found by Ernesto)
775 - added test for this (thanks to Ernesto)
777 * Moose::Util::TypeConstraints
778 - &find_type_constraint now DWIMs when given an
779 type constraint object or name (nothingmuch)
780 - &find_or_create_type_constraint superseded with a number of more
782 - find_or_create_{isa,does}_type_constraint
783 - find_or_parse_type_constraint
785 * Moose::Meta::TypeConstraint
786 Moose::Meta::TypeConstraint::Class
787 Moose::Meta::TypeConstraint::Role
788 Moose::Meta::TypeConstraint::Enum
789 Moose::Meta::TypeConstraint::Union
790 Moose::Meta::TypeConstraint::Parameterized
791 - added the &equals method for comparing two type
792 constraints (nothingmuch)
793 - added tests for this (nothingmuch)
795 * Moose::Meta::TypeConstraint
796 - add the &parents method, which is just an alias to &parent.
797 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
799 * Moose::Meta::TypeConstraint::Class
800 - added the class attribute for introspection purposes
802 - added tests for this
804 * Moose::Meta::TypeConstraint::Enum
805 Moose::Meta::TypeConstraint::Role
806 - broke these out into their own classes (nothingmuch)
808 * Moose::Cookbook::Recipe*
809 - fixed references to test file locations in the POD
810 and updated up some text for new Moose features
814 - Added &resolve_metaclass_alias, a helper function for finding an actual
815 class for a short name (e.g. in the traits list)
817 0.40 Fri. March 14, 2008
818 - I hate Pod::Coverage
820 0.39 Fri. March 14, 2008
822 - documenting the use of '+name' with attributes
823 that come from recently composed roles. It makes
824 sense, people are using it, and so why not just
825 officially support it.
826 - fixing the 'extends' keyword so that it will not
827 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
830 - added the perl -Moose=+Class::Name feature to allow
831 monkeypatching of classes in one liners
834 - fixing the 'apply_all_roles' keyword so that it will not
835 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
838 - added ->create method which now supports roles (thanks to jrockway)
839 - added tests for this
840 - added ->create_anon_class which now supports roles and caching of
841 the results (thanks to jrockway)
842 - added tests for this
843 - made ->does_role a little more forgiving when it is
844 checking a Class::MOP era metaclasses.
846 * Moose::Meta::Role::Application::ToInstance
847 - it is now possible to pass extra params to be used when
848 a role is applied to an the instance (rebless_params)
849 - added tests for this
851 * Moose::Util::TypeConstraints
852 - class_type now accepts an optional second argument for a
853 custom message. POD anotated accordingly (groditi)
854 - added tests for this
855 - it is now possible to make anon-enums by passing 'enum' an
856 ARRAY ref instead of the $name => @values. Everything else
858 - added tests for this
861 - making test for using '+name' on attributes consumed
862 from a role, it works and makes sense too.
864 * Moose::Meta::Attribute
865 - fix handles so that it doesn't return nothing
866 when the method cannot be found, not sure why
867 it ever did this originally, this means we now
868 have slightly better support for AUTOLOADed
870 - added more delegation tests
871 - adding ->does method to this so as to better
872 support traits and their introspection.
873 - added tests for this
876 - localizing the Data::Dumper configurations so
877 that it does not pollute others (RT #33509)
878 - made ->does a little more forgiving when it is
879 passed Class::MOP era metaclasses.
881 0.38 Fri. Feb. 15, 2008
882 * Moose::Meta::Attribute
883 - fixed initializer to correctly do
884 type checking and coercion in the
886 - added tests for this
889 - fixed some finicky tests (thanks to konobi)
891 0.37 Thurs. Feb. 14, 2008
893 - fixed some details in Moose::init_meta
894 and its superclass handling (thanks thepler)
895 - added tests for this (thanks thepler)
896 - 'has' now dies if you don't pass in name
898 - added the 'make_immutable' keyword as a shortcut
902 Moose::Meta::Method::Constructor
903 Moose::Meta::Attribute
904 - making (init_arg => undef) work here too
905 (thanks to nothingmuch)
907 * Moose::Meta::Attribute
908 Moose::Meta::Method::Constructor
909 Moose::Meta::Method::Accessor
910 - make lazy attributes respect attr initializers (rjbs)
911 - added tests for this
913 * Moose::Util::TypeConstraints
914 Moose::Util::TypeConstraints::OptimizedConstraints
915 Moose::Meta::TypeConstraints
916 Moose::Meta::Attribute
917 Moose::Meta::Method::Constructor
918 Moose::Meta::Method::Accessor
919 - making type errors use the
920 assigned message (thanks to Sartak)
921 - added tests for this
923 * Moose::Meta::Method::Destructor
924 - making sure DESTROY gets inlined properly
925 with successive DEMOLISH calls (thanks to manito)
927 * Moose::Meta::Attribute
928 Moose::Meta::Method::Accessor
929 - fixed handling of undef with type constraints
931 - added tests for this
934 - added &get_all_init_args and &get_all_attribute_values
935 (thanks to Sartak and nothingmuch)
937 0.36 Sat. Jan. 26, 2008
939 Moose::Meta::Attribute
940 - role type tests now support when roles are
941 applied to non-Moose classes (found by ash)
942 - added tests for this (thanks to ash)
943 - couple extra tests to boost code coverage
945 * Moose::Meta::Method::Constructor
946 - improved fix for handling Class::MOP attributes
947 - added test for this
950 - handled the add_attribute($attribute_meta_object)
952 - added test for this
954 0.35 Tues. Jan. 22, 2008
955 * Moose::Meta::Method::Constructor
956 - fix to make sure even Class::MOP attributes
957 are handled correctly (Thanks to Dave Rolsky)
958 - added test for this (also Dave Rolsky)
961 - improved error message on _apply_all_roles,
962 you should now use Moose::Util::apply_all_roles
963 and you shouldnt have been using a _ prefixed
964 method in the first place ;)
966 0.34 Mon. Jan. 21, 2008
967 ~~~ more misc. doc. fixes ~~~
968 ~~ updated copyright dates ~~
970 Moose is now a postmodern object system :)
971 - (see the POD for details)
973 * <<Role System Refactoring>>
974 - this release contains a major reworking and
975 cleanup of the role system
976 - 100% backwards compat.
977 - Role application now restructured into seperate
978 classes based on type of applicants
979 - Role summation (combining of more than one role)
980 is much cleaner and anon-classes are no longer
982 - new Composite role metaclass
983 - runtime application of roles to instances
984 is now more efficient and re-uses generated
985 classes when applicable
987 * <<New Role composition features>>
988 - methods can now be excluded from a given role
990 - methods can now be aliased to another name (and
991 still retain the original as well)
993 * Moose::Util::TypeConstraints::OptimizedConstraints
994 - added this module (see above)
997 - fixed the &_process_attribute method to be called
998 by &add_attribute, so that the API is now correct
1000 * Moose::Meta::Method::Accessor
1001 - fixed bug when passing a list of values to
1002 an accessor would get (incorrectly) ignored.
1003 Thanks to Sartak for finding this ;)
1004 - added tests for this (Sartak again)
1006 * Moose::Meta::Method::Accessor
1007 Moose::Meta::Method::Constructor
1008 Moose::Meta::Attribute
1009 Moose::Meta::TypeConstraint
1010 Moose::Meta::TypeCoercion
1011 - lots of cleanup of such things as:
1013 - type constraint handling
1014 - error handling/messages
1015 (thanks to nothingmuch)
1017 * Moose::Meta::TypeConstraint::Parameterizable
1018 - added this module to support the refactor
1019 in Moose::Meta::TypeConstraint::Parameterized
1021 * Moose::Meta::TypeConstraint::Parameterized
1022 - refactored how these types are handled so they
1023 are more generic and not confined to ArrayRef
1027 - shortened some file names for better VMS support (RT #32381)
1029 0.33 Fri. Dec. 14, 2007
1030 !! Moose now loads 2 x faster !!
1031 !! with new Class::MOP 0.49 !!
1033 ++ new oose.pm module to make command line
1034 Moose-ness easier (see POD docs for more)
1036 * Moose::Meta::Class
1038 - several tweaks to take advantage of the
1039 new method map caching in Class::MOP
1041 * Moose::Meta::TypeConstraint::Parameterized
1042 - allow subtypes of ArrayRef and HashRef to
1043 be used as a container (sartak)
1044 - added tests for this
1045 - basic support for coercion to ArrayRef and
1046 HashRef for containers (sartak)
1047 - added tests for this
1049 * Moose::Meta::TypeCoercion
1050 - coercions will now create subtypes as needed
1051 so you can now add coercions to parameterized
1052 types without having to explictly define them
1053 - added tests for this
1055 * Moose::Meta::Method::Accessor
1056 - allow subclasses to decide whether we need
1057 to copy the value into a new variable (sartak)
1059 0.32 Tues. Dec. 4, 2007
1060 * Moose::Util::TypeConstraints
1061 - fixing how subtype aliases of unions work
1062 they should inherit the parent's coercion
1063 - added tests for this
1064 - you can now define multiple coercions on
1065 a single type at different times instead of
1066 having to do it all in one place
1067 - added tests for this
1069 * Moose::Meta::TypeConstraint
1070 - there is now a default constraint of sub { 1 }
1071 instead of Moose::Util::TypeConstraints setting
1074 * Moose::Meta::TypeCoercion
1075 * Moose::Meta::TypeCoercion::Union
1076 - added the &has_coercion_for_type and
1077 &add_type_coercions methods to support the
1078 new features above (although you cannot add
1079 more type coercions for Union types)
1081 0.31 Mon. Nov. 26, 2007
1082 * Moose::Meta::Attribute
1083 - made the +attr syntax handle extending types with
1084 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1085 now works if the original foo is an ArrayRef.
1086 - added tests for this.
1087 - delegation now works even if the attribute does not
1088 have a reader method using the get_read_method_ref
1089 method from Class::MOP::Attribute.
1090 - added tests for this
1091 - added docs for this
1093 * Moose::Util::TypeConstraints
1094 - passing no "additional attribute info" to
1095 &find_or_create_type_constraint will no longer
1096 attempt to create an __ANON__ type for you,
1097 instead it will just return undef.
1098 - added docs for this
1100 0.30 Fri. Nov. 23, 2007
1101 * Moose::Meta::Method::Constructor
1102 -builder related bug in inlined constructor. (groditi)
1104 * Moose::Meta::Method::Accessor
1105 - genereate unnecessary calls to predicates and refactor
1106 code generation for runtime speed (groditi)
1108 * Moose::Util::TypeConstraints
1109 - fix ClassName constraint to introspect symbol table (mst)
1110 - added more tests for this (mst)
1111 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1112 with work correctly.
1113 - added tests for this
1116 - adding the link to Recipie 11 (written by Sartak)
1117 - adding test for SYNOPSIS code
1120 - New tests for builder bug. Upon instantiation, if an
1121 attribute had a builder, no value and was not lazy the
1122 builder default was not getting run, oops. (groditi)
1124 0.29 Tues. Nov. 13, 2007
1125 * Moose::Meta::Attribute
1126 - Fix error message on missing builder method (groditi)
1128 * Moose::Meta::Method::Accessor
1129 - Fix error message on missing builder method (groditi)
1132 - Add test to check for the correct error message when
1133 builder method is missing (groditi)
1135 0.28 Tues. Nov. 13, 2007
1136 - 0.27 packaged incorrectly (groditi)
1138 0.27 Tues. Nov. 13, 2007
1139 * Moose::Meta::Attribute
1140 - Added support for the new builder option (groditi)
1141 - Added support for lazy_build option (groditi)
1142 - Changed slot initialization for predicate changes (groditi)
1144 * Moose::Meta::Method::Accessor
1145 - Added support for lazy_build option (groditi)
1146 - Fix inline methods to work with corrected predicate
1149 * Moose::Meta::Method::Constructor
1150 - Added support for lazy_build option (groditi)
1153 - tests for builder and lazy_build (groditi)
1155 * fixing some misc. bits in the docs that
1156 got mentioned on CPAN Forum & perlmonks
1159 - fixed how required methods are handled
1160 when they encounter overriden or modified
1161 methods from a class (thanks to confound).
1162 - added tests for this
1164 * Moose::Util::TypeConstraint
1165 - fixed the type notation parser so that
1166 the | always creates a union and so is
1167 no longer a valid type char (thanks to
1168 konobi, mugwump and #moose for working
1170 - added more tests for this
1172 0.26 Thurs. Sept. 27, 2007
1175 * Parameterized Types
1176 We now support parameterized collection types, such as:
1177 ArrayRef[Int] # array or integers
1178 HashRef[Object] # a hash with object values
1179 They can also be nested:
1180 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1181 And work with the type unions as well:
1182 ArrayRef[Int | Str] # array of integers of strings
1184 * Better Framework Extendability
1185 Moose.pm is now "extendable" such that it is now much
1186 easier to extend the framework and add your own keywords
1187 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1188 section of the Moose.pm docs.
1191 In an effort to begin documenting some of the various
1192 details of Moose as well as some common idioms, we have
1193 created Moose::Cookbook::Snacks as a place to find
1194 small (easily digestable) nuggets of Moose code.
1197 ~ Several doc updates/cleanup thanks to castaway ~
1199 - converted build system to use Module::Install instead of
1200 Module::Build (thanks to jrockway)
1203 - added all the meta classes to the immutable list and
1204 set it to inline the accessors
1205 - fix import to allow Sub::Exporter like { into => }
1206 and { into_level => } (perigrin)
1207 - exposed and documented init_meta() to allow better
1208 embedding and extending of Moose (perigrin)
1211 - complete re-organization of the test suite
1212 - added some new tests as well
1213 - finally re-enabled the Moose::POOP test since
1214 the new version of DBM::Deep now works again
1217 * Moose::Meta::Class
1218 - fixed very odd and very nasty recursion bug with
1220 - added tests for this (eilara)
1222 * Moose::Meta::Attribute
1223 Moose::Meta::Method::Constructor
1224 Moose::Meta::Method::Accessor
1225 - fixed issue with overload::Overloaded getting called
1226 on non-blessed items. (RT #29269)
1227 - added tests for this
1229 * Moose::Meta::Method::Accessor
1230 - fixed issue with generated accessor code making
1231 assumptions about hash based classes (thanks to dexter)
1233 * Moose::Coookbook::Snacks
1234 - these are bits of documentation, not quite as big as
1235 Recipes but which have no clear place in the module docs.
1236 So they are Snacks! (horray for castaway++)
1238 * Moose::Cookbook::Recipe4
1239 - updated it to use the new ArrayRef[MyType] construct
1240 - updated the accompanying test as well
1242 +++ Major Refactor of the Type Constraint system +++
1243 +++ with new features added as well +++
1245 * Moose::Util::TypeConstraint
1246 - no longer uses package variable to keep track of
1247 the type constraints, now uses the an instance of
1248 Moose::Meta::TypeConstraint::Registry to do it
1249 - added more sophisticated type notation parsing
1251 - added tests for this
1253 * Moose::Meta::TypeConstraint
1254 - some minor adjustments to make subclassing easier
1255 - added the package_defined_in attribute so that we
1256 can track where the type constraints are created
1258 * Moose::Meta::TypeConstraint::Union
1259 - this is now been refactored to be a subclass of
1260 Moose::Meta::TypeConstraint
1262 * Moose::Meta::TypeCoercion::Union
1263 - this has been added to service the newly refactored
1264 Moose::Meta::TypeConstraint::Union and is itself
1265 a subclass of Moose::Meta::TypeCoercion
1267 * Moose::Meta::TypeConstraint::Parameterized
1268 - added this module (taken from MooseX::AttributeHelpers)
1269 to help construct nested collection types
1270 - added tests for this
1272 * Moose::Meta::TypeConstraint::Registry
1273 - added this class to keep track of type constraints
1275 0.25 Mon. Aug. 13, 2007
1277 - Documentation update to reference Moose::Util::TypeConstraints
1278 under 'isa' in 'has' for how to define a new type
1279 (thanks to shlomif).
1281 * Moose::Meta::Attribute
1282 - required attributes now will no longer accept undef
1283 from the constructor, even if there is a default and lazy
1284 - added tests for this
1285 - default subroutines must return a value which passes the
1287 - added tests for this
1289 * Moose::Meta::Attribute
1290 * Moose::Meta::Method::Constructor
1291 * Moose::Meta::Method::Accessor
1292 - type-constraint tests now handle overloaded objects correctly
1293 in the error message
1294 - added tests for this (thanks to EvanCarroll)
1296 * Moose::Meta::TypeConstraint::Union
1297 - added (has_)hand_optimized_constraint to this class so that
1298 it behaves as the regular Moose::Meta::TypeConstraint does.
1301 - large refactoring of this code
1302 - added several more tests
1303 - tests for subtle conflict resolition issues
1304 added, but not currently running
1307 * Moose::Cookbook::Recipe7
1308 - added new recipe for augment/inner functionality
1310 - added test for this
1313 - a formal definition of roles (still in progress)
1316 - utilities for easier working with Moose classes
1317 - added tests for these
1320 - This contains Moose specific test functions
1321 - added tests for these
1323 0.24 Tues. July 3, 2007
1324 ~ Some doc updates/cleanup ~
1326 * Moose::Meta::Attribute
1327 - added support for roles to be given as parameters
1328 to the 'handles' option.
1329 - added tests and docs for this
1330 - the has '+foo' attribute form now accepts changes to
1331 the lazy option, and the addition of a handles option
1332 (but not changing the handles option)
1333 - added tests and docs for this
1336 - required methods are now fetched using find_method_by_name
1337 so that required methods can come from superclasses
1338 - adjusted tests for this
1340 0.23 Mon. June 18, 2007
1341 * Moose::Meta::Method::Constructor
1342 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1343 * Moose::Meta::Class
1344 - Modify make_immutable to work with the new Class::MOP immutable
1345 mechanism + POD + very basic test (groditi)
1346 * Moose::Meta::Attribute
1347 - Fix handles to use goto() so that caller() comes out properly on
1348 the other side (perigrin)
1350 0.22 Thurs. May 31, 2007
1351 * Moose::Util::TypeConstraints
1352 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1353 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1354 prototypes for functions
1355 - added the ClassName type constraint, this checks for strings
1356 which will respond true to ->isa(UNIVERSAL).
1357 - added tests and docs for this
1358 - subtyping just in name now works correctly by making the
1359 default for where be { 1 }
1360 - added test for this
1362 * Moose::Meta::Method::Accessor
1363 - coerce and lazy now work together correctly, thanks to
1364 merlyn for finding this bug
1365 - tests added for this
1366 - fix reader presedence bug in Moose::Meta::Attribute + tests
1369 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1370 a HASH-ref and missed. This produces better error messages then
1371 having it die cause undef is not a HASH.
1372 - added tests for this
1374 0.21 Thursday, May 2nd, 2007
1376 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1377 - modified unimport to remove super and inner along with the rest
1378 - altered unimport tests to handle this
1381 - altered super export to populate SUPER_SLOT
1383 * Moose::Meta::Class
1384 - altered augment and override modifier application to use *_SLOT
1385 - modified tests for these to unimport one test class each to test
1388 - fixed issue where custom attribute metaclasses
1389 where not handled correctly in roles
1390 - added tests for this
1392 * Moose::Meta::Class
1393 - fixed issue where extending metaclasses with
1394 roles would blow up. Thanks to Aankhen`` for
1395 finding this insidious error, and it's solution.
1397 ~~ lots of spelling and grammer fixes in the docs,
1398 many many thanks to rlb3 and Aankhen for these :)
1400 0.20 Friday, April 6th, 2007
1401 >> I messed up the SKIP logic in one test
1402 so this release is just to fix that.
1405 - 'has' now also accepts an ARRAY ref
1406 to create multiple attrs (see docs)
1407 (thanks to konobi for this)
1408 - added tests and docs
1410 0.19 Thurs. April 5th, 2007
1411 ~~ More documentation updates ~~
1413 * Moose::Util::TypeConstraints
1414 - 'type' now supports messages as well
1415 thanks to phaylon for finding this
1416 - added tests for this
1417 - added &list_all_type_constraints and
1418 &list_all_builtin_type_constraints
1419 functions to facilitate introspection.
1421 * Moose::Meta::Attribute
1422 - fixed regexp 'handles' declarations
1423 to build the list of delegated methods
1424 correctly (and not override important
1425 things like &new) thanks to ashleyb
1427 - added tests and docs for this
1428 - added the 'documentation' attributes
1429 so that you can actually document your
1430 attributes and inspect them through the
1432 - added tests and docs for this
1434 * Moose::Meta::Class
1435 - when loading custom attribute metaclasses
1436 it will first look in for the class in the
1437 Moose::Meta::Attribute::Custom::$name, and
1438 then default to just loading $name.
1439 - added tests and docs for this
1441 * Moose::Meta::TypeConstraint
1442 - type constraints now stringify to their names.
1443 - added test for this
1446 - added tests to assure we work with Module::Refresh
1447 - added stricter test skip logic in the Moose POOP
1448 test, ask Rob Kinyon why.
1449 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1451 0.18 Sat. March 10, 2007
1452 ~~ Many, many documentation updates ~~
1455 - We now use Class::MOP::load_class to
1457 - added tests to show types and subtypes
1458 working with Declare::Constraints::Simple
1459 and Test::Deep as constraint engines.
1462 !! You must have Class::MOP 0.37_001 !!
1463 !! for this developer release to work !!
1465 This release was primarily adding the immutable
1466 feature to Moose. An immutable class is one which
1467 you promise not to alter. When you set the class
1468 as immutable it will perform various bits of
1469 memoization and inline certain part of the code
1470 (constructors, destructors and accessors). This
1471 minimizes (and in some cases totally eliminates)
1472 one of Moose's biggest performance hits. This
1473 feature is not on by default, and is 100% optional.
1474 It has several configurable bits as well, so you
1475 can pick and choose to your specific needs.
1477 The changes involved in this were fairly wide and
1478 highly specific, but 100% backwards compatible, so
1479 I am not going to enumerate them here. If you are
1480 truely interested in what was changed, please do
1483 0.17 Tues. Nov. 14, 2006
1484 * Moose::Meta::Method::Accessor
1485 - bugfix for read-only accessors which
1486 are have a type constraint and lazy.
1487 Thanks to chansen for finding it.
1489 0.16 Tues. Nov. 14, 2006
1491 There are some speed improvements in this release,
1492 but they are only the begining, so stay tuned.
1495 - BUILDALL and DEMOLISHALL no longer get
1496 called unless they actually need to be.
1497 This gave us a signifigant speed boost
1498 for the cases when there is no BUILD or
1499 DEMOLISH method present.
1501 * Moose::Util::TypeConstraints
1502 * Moose::Meta::TypeConstraint
1503 - added an 'optimize_as' option to the
1504 type constraint, which allows for a
1505 hand optimized version of the type
1506 constraint to be used when possible.
1507 - Any internally created type constraints
1508 now provide an optimized version as well.
1510 0.15 Sun. Nov. 5, 2006
1512 This version of Moose *must* have Class::MOP 0.36 in order
1513 to work correctly. A number of small internal tweaks have
1514 been made in order to be compatible with that release.
1516 * Moose::Util::TypeConstraints
1517 - added &unimport so that you can clean out
1518 your class namespace of these exported
1521 * Moose::Meta::Class
1522 - fixed minor issue which occasionally
1523 comes up during global destruction
1525 - moved Moose::Meta::Method::Overriden into
1529 - moved Moose::Meta::Role::Method into
1532 * Moose::Meta::Attribute
1533 - changed how we do type checks so that
1534 we reduce the overall cost, but still
1537 - moved accessor generation methods to
1538 Moose::Meta::Method::Accessor to
1539 conform to the API changes from
1542 * Moose::Meta::TypeConstraint
1543 - changed how constraints are compiled
1544 so that we do less recursion and more
1545 iteration. This makes the type check
1547 - moved Moose::Meta::TypeConstraint::Union
1550 * Moose::Meta::Method::Accessor
1551 - created this from methods formerly found in
1552 Moose::Meta::Attribute
1554 * Moose::Meta::Role::Method
1555 - moved this from Moose::Meta::Role
1557 * Moose::Meta::Method::Overriden
1558 - moved this from Moose::Meta::Class
1560 * Moose::Meta::TypeConstraint::Union
1561 - moved this from Moose::Meta::TypeConstraint
1563 0.14 Mon. Oct. 9, 2006
1565 * Moose::Meta::Attribute
1566 - fixed lazy attributes which were not getting
1567 checked with the type constraint (thanks ashley)
1568 - added tests for this
1569 - removed the over-enthusiastic DWIMery of the
1570 automatic ArrayRef and HashRef defaults, it
1571 broke predicates in an ugly way.
1572 - removed tests for this
1574 0.13 Sat. Sept. 30, 2006
1576 This version of Moose *must* have Class::MOP 0.35 in order
1577 to work correctly. A number of small internal tweaks have
1578 been made in order to be compatible with that release.
1581 - Removed the use of UNIVERSAL::require to be a better
1582 symbol table citizen and remove a dependency
1583 (thanks Adam Kennedy)
1585 **~~ removed experimental & undocumented feature ~~**
1586 - commented out the 'method' and 'self' keywords, see the
1587 comments for more info.
1590 - added a FAQ and WTF files to document frequently
1591 asked questions and common problems
1593 * Moose::Util::TypeConstraints
1594 - added GlobRef and FileHandle type constraint
1595 - added tests for this
1597 * Moose::Meta::Attribute
1598 - if your attribute 'isa' ArrayRef of HashRef, and you have
1599 not explicitly set a default, then make the default DWIM.
1600 This will also work for subtypes of ArrayRef and HashRef
1602 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1603 - new test added for this (thanks to ashley)
1606 - added basic support for runtime role composition
1607 but this is still *highly experimental*, so feedback
1608 is much appreciated :)
1609 - added tests for this
1611 * Moose::Meta::TypeConstraint
1612 - the type constraint now handles the coercion process
1613 through delegation, this is to support the coercion
1616 * Moose::Meta::TypeConstraint::Union
1617 - it is now possible for coercions to be performed
1619 - added tests for this (thanks to konobi)
1621 * Moose::Meta::TypeCoercion
1622 - properly capturing error when type constraint
1626 - Scalar::Util 1.18 is bad on Win32, so temporarily
1627 only require version 1.17 for Win32 and cygwin.
1628 (thanks Adam Kennedy)
1630 0.12 Sat. Sept. 1, 2006
1632 - Recipe5 (subtypes & coercion) has been written
1635 - fixed "bad meta" error message to be more descriptive
1636 - fixed &unimport to not remove the &inner and &super
1637 keywords because we need to localize them.
1638 - fixed number of spelling/grammer issues, thanks Theory :)
1640 **~~ experimental & undocumented feature ~~**
1641 - added the method and self keywords, they are basically
1642 just sugar, and they may not stay around.
1645 - added &dump method to easily Data::Dumper
1648 * Moose::Meta::TypeConstraint
1649 - added the &is_a_type_of method to check both the current
1650 and the subtype of a method (similar to &isa with classes)
1653 - this is now a subclass of Class::MOP::Module, and no longer
1654 creates the _role_meta ugliness of before.
1655 - fixed tests to reflect this change
1657 0.11 Wed. July 12, 2006
1659 - added an &unimport method to remove all the keywords
1660 that Moose will import, simply add 'no Moose' to the
1661 bottom of your class file.
1664 - fixed some test failures caused by a forgotten test
1667 0.10 Thurs. July 6, 2006
1669 - improved error message when loading modules so
1670 it is less confusing when you load a role.
1671 - added &calculate_all_roles method to
1672 Moose::Meta::Class and Moose::Meta::Role
1675 This module has been tested against Class::MOP 0.30
1676 but it does not yet utilize the optimizations
1677 it makes available. Stay tuned for that ;)
1679 0.09_03 Fri. June 23, 2006
1680 ++ DEVELOPER RELEASE ++
1682 - 'use strict' and 'use warnings' are no longer
1683 needed in Moose classes, Moose itself will
1684 turn them on for you.
1685 - added tests for this
1686 - moved code from exported subs to private methods
1687 in Moose::Meta::Class
1690 - as with Moose, strict and warnings are
1691 automatically turned on for you.
1692 - added tests for this
1695 - now handles an edge case for override errors
1696 - added tests for this
1697 - added some more edge case tests
1699 0.09_02 Tues. May 16, 2006
1700 ++ DEVELOPER RELEASE ++
1702 - added prototypes to the exported subs
1706 - added prototypes to the exported subs
1709 * Moose::Util::TypeConstraints
1710 - cleaned up prototypes for the subs
1713 0.09_01 Fri. May 12, 2006
1714 ++ DEVELOPER RELEASE ++
1715 - This release works in combination with
1716 Class::MOP 0.29_01, it is a developer
1717 release because it uses the a new
1718 instance sub-protocol and a fairly
1719 complete Role implementation. It has
1720 not yet been optimized, so it slower
1721 the the previous CPAN version. This
1722 release also lacks good updated docs,
1723 the official release will have updated docs.
1726 - refactored the keyword exports
1727 - 'with' now checks Role validaity and
1728 accepts more than one Role at a time
1729 - 'extends' makes metaclass adjustments as
1730 needed to ensure metaclass compatibility
1733 - refactored the keyword exports
1734 - 'with' now checks Role validaity and
1735 accepts more than one Role at a time
1737 * Moose::Util::TypeConstraints
1738 - added the 'enum' keyword for simple
1739 string enumerations which can be used as
1741 - see example of usage in t/202_example.t
1744 - more careful checking of params to new()
1747 - much work done on the role composition
1748 - many new tests for conflict detection
1749 and composition edge cases
1750 - not enough documentation, I suggest
1751 looking at the tests
1753 * Moose::Meta::Instance
1754 - added new Instance metaclass to support
1755 the new Class::MOP instance protocol
1757 * Moose::Meta::Class
1758 - some small changes to support the new
1760 - some small additions to support Roles
1762 * Moose::Meta::Attribute
1763 - some improvements to the accessor generation code
1765 - some small changes to support the new
1767 - (still somewhat) experimental delegation support
1768 with the 'handles' option
1769 - added several tests for this
1770 - no docs for this yet
1772 0.05 Thurs. April 27, 2006
1774 - keywords are now exported with Sub::Exporter
1775 thanks to chansen for this commit
1776 - has keyword now takes a 'metaclass' option
1777 to support custom attribute meta-classes
1778 on a per-attribute basis
1779 - added tests for this
1780 - the 'has' keyword not accepts inherited slot
1781 specifications (has '+foo'). This is still an
1782 experimental feature and probably not finished
1783 see t/038_attribute_inherited_slot_specs.t for
1784 more details, or ask about it on #moose
1785 - added tests for this
1788 - keywords are now exported with Sub::Exporter
1790 * Moose::Utils::TypeConstraints
1791 - reorganized the type constraint hierarchy, thanks
1792 to nothingmuch and chansen for his help and advice
1794 - added some tests for this
1795 - keywords are now exported with Sub::Exporter
1796 thanks to chansen for this commit
1798 * Moose::Meta::Class
1799 - due to changes in Class::MOP, we had to change
1800 construct_instance (for the better)
1802 * Moose::Meta::Attribute
1803 - due to changes in Class::MOP, we had to add the
1804 initialize_instance_slot method (it's a good thing)
1806 * Moose::Meta::TypeConstraint
1807 - added type constraint unions
1808 - added tests for this
1809 - added the is_subtype_of predicate method
1810 - added tests for this
1812 0.04 Sun. April 16th, 2006
1814 - Roles can now consume other roles
1815 - added tests for this
1816 - Roles can specify required methods now with
1817 the requires() keyword
1818 - added tests for this
1821 - ripped out much of it's guts ,.. much cleaner now
1822 - added required methods and correct handling of
1823 them in apply() for both classes and roles
1824 - added tests for this
1825 - no longer adds a does() method to consuming classes
1826 it relys on the one in Moose::Object
1827 - added roles attribute and some methods to support
1828 roles consuming roles
1830 * Moose::Meta::Attribute
1831 - added support for triggers on attributes
1832 - added tests for this
1833 - added support for does option on an attribute
1834 - added tests for this
1836 * Moose::Meta::Class
1837 - added support for attribute triggers in the
1839 - added tests for this
1842 - Moose no longer creates a subtype for your class
1843 if a subtype of the same name already exists, this
1844 should DWIM in 99.9999% of all cases
1846 * Moose::Util::TypeConstraints
1847 - fixed bug where incorrect subtype conflicts were
1849 - added test for this
1852 - this class can now be extended with 'use base' if
1853 you need it, it properly loads the metaclass class now
1854 - added test for this
1856 0.03_02 Wed. April 12, 2006
1858 - you must now explictly use Moose::Util::TypeConstraints
1859 it no longer gets exported for you automatically
1862 - new() now accepts hash-refs as well as key/value lists
1863 - added does() method to check for Roles
1864 - added tests for this
1866 * Moose::Meta::Class
1867 - added roles attribute along with the add_role() and
1869 - added tests for this
1872 - now adds a does() method to consuming classes
1873 which tests the class's hierarchy for roles
1874 - added tests for this
1876 0.03_01 Mon. April 10, 2006
1878 - added new Role recipe (no content yet, only code)
1881 - added 'with' keyword for Role support
1882 - added test and docs for this
1883 - fixed subtype quoting bug
1884 - added test for this
1888 - added test and docs
1890 * Moose::Util::TypeConstraints
1891 - added the message keyword to add custom
1892 error messages to type constraints
1895 - the meta role to support Moose::Role
1896 - added tests and docs
1898 * Moose::Meta::Class
1899 - moved a number of things from Moose.pm
1900 to here, they should have been here
1903 * Moose::Meta::Attribute
1904 - moved the attribute option macros here
1905 instead of putting them in Moose.pm
1907 * Moose::Meta::TypeConstraint
1908 - added the message attributes and the
1910 - added tests and docs for this
1912 0.03 Thurs. March 30, 2006
1914 - added the Moose::Cookbook with 5 recipes,
1915 describing all the stuff Moose can do.
1918 - fixed an issue with &extends super class loading
1919 it now captures errors and deals with inline
1920 packages correctly (bug found by mst, solution
1922 - added super/override & inner/augment features
1923 - added tests and docs for these
1926 - BUILDALL now takes a reference of the %params
1927 that are passed to &new, and passes that to
1930 * Moose::Util::TypeConstraints
1931 - Type constraints now survive runtime reloading
1932 - added test for this
1934 * Moose::Meta::Class
1935 - fixed the way attribute defaults are handled
1936 during instance construction (bug found by chansen)
1938 * Moose::Meta::Attribute
1939 - read-only attributes now actually enforce their
1940 read-only-ness (this corrected in Class::MOP as
1943 0.02 Tues. March 21, 2006
1945 - many more tests, fixing some bugs and
1947 - &extends now loads the base module with
1949 - added UNIVERSAL::require to the
1952 - each new Moose class will also create
1953 and register a subtype of Object which
1954 correspond to the new Moose class.
1955 - the 'isa' option in &has now only
1956 accepts strings, and will DWIM in
1959 * Moose::Util::TypeConstraints
1960 - added type coercion features
1961 - added tests for this
1962 - added support for this in attributes
1963 and instance construction
1965 - type construction no longer creates a
1966 function, it registers the type instead.
1967 - added several functions to get the
1971 - BUILDALL and DEMOLISHALL were broken
1972 because of a mis-named hash key, Whoops :)
1974 * Moose::Meta::Attribute
1975 - adding support for coercion in the
1976 autogenerated accessors
1978 * Moose::Meta::Class
1979 - adding support for coercion in the
1980 instance construction
1982 * Moose::Meta::TypeConstraint
1983 * Moose::Meta::TypeCoercion
1984 - type constraints and coercions are now
1985 full fledges meta-objects
1987 0.01 Wed. March 15, 2006
1988 - Moooooooooooooooooose!!!