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 - create method for constructing a role
21 - begin implementing anonymous roles (Sartak)
23 - more consistent error messages (Sartak)
25 0.61 Fri November 7, 2008
26 * Moose::Meta::Attribute
27 - When passing a role to handles, it will be loaded if necessary
31 - Method objects returned by get_method (and other methods)
32 Could end up being returned without an associated_metaclass
33 attribute. Removing get_method_map, which is provided by
34 Class::MOP::Class, fixed this. The Moose version did nothing
35 different from its parent except introduce a bug. (Dave Rolsky)
36 - added tests for this (jdv79)
39 - Added a $VERSION to all .pm files which didn't have one. Fixes
40 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
42 * Moose::Cookbook::Basics::Recipe4
43 * Moose::Cookbook::Basics::Recipe6
44 - These files had spaces on the first line of the SYNOPSIS, as
45 opposed to a totally empty line. According to RT #40432, this
46 confuses POD parsers. (Dave Rolsky)
48 0.60 Fri October 24, 2008
50 - Passing "-traits" when loading Moose caused the Moose.pm
51 exports to be broken. Reported by t0m. (Dave Rolsky)
52 - Tests for this bug. (t0m)
55 - Change resolve_metaclass alias to use the new
56 load_first_existing_class function. This makes it a lot
57 simpler, and also around 5 times faster. (t0m)
58 - Add caching to resolve_metaclass_alias, which gives an order
59 of magnitude speedup to things which repeatedly call the
60 Moose::Meta::Attribute->does method, notably MooseX::Storage
63 * Moose::Util::TypeConstraint
64 - Put back the changes for parameterized constraints that
65 shouldn't have been removed in 0.59. We still cannot parse
66 them, but MooseX modules can create them in some other
67 way. See the 0.58 changes for more details. (jnapiorkowski)
68 - Changed the way subtypes are created so that the job is
69 delegated to a type constraint parent. This clears up some
70 hardcoded checking and should allow correct subtypes of
71 Moose::Meta::Type::Constraint. Don't rely on this new API too
72 much (create_child_type) because it may go away in the
73 future. (jnapiorkowski)
75 * Moose::Meta::TypeConstraint::Union
76 - Type constraint names are sorted as strings, not numbers.
79 * Moose::Meta::TypeConstraint::Parameterizable
80 - New parameterize method. This can be used as a factory method
81 to make a new type constraint with a given parameterized
83 - added tests (jnapiorkowski)
85 0.59 Tue October 14, 2008
87 - Add abridged documentation for builder/default/initializer/
88 predicate, and link to more details sections in
89 Class::MOP::Attribute. (t0m)
91 * Moose::Util::TypeConstraints
92 - removed prototypes from all but the &-based stuff (mst)
94 * Moose::Util::TypeConstraints
95 - Creating a anonymous subtype with both a constraint and a
96 message failed with a very unhelpful error, but should just
97 work. Reported by t0m. (Dave Rolsky)
100 - Some tests that used Test::Warn if it was available failed
101 with older versions of Test::Warn. Reported by Fayland. (Dave
103 - Test firing behavior of triggers in relation to builder/default/
105 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
106 kinds of supported type. (t0m)
109 - In create(), do not pass "roles" option to the superclass
110 - added related test that creates an anon metaclass with
113 * Moose::Meta::TypeConstraint::Class
114 * Moose::Meta::TypeConstraint::Role
115 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
116 other types (as per change in 0.55_02). (t0m)
118 * Moose::Meta::TypeConstraint::Registry
119 - Fix warning when dealing with unknown type names (t0m)
121 * Moose::Util::TypeConstraints
122 - Reverted changes from 0.58 related to handle parameterized
123 types. This caused random failures on BSD and Win32 systems,
124 apparently related to the regex engine. This means that Moose
125 can no longer parse structured type constraints like
126 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
127 supported in a slightly different way via MooseX::Types some
128 time in the future. (Dave Rolsky)
130 0.58 Sat September 20, 2008
131 !! This release has an incompatible change regarding !!
132 !! how roles add methods to a class !!
134 * Roles and role application
135 ! Roles now add methods by calling add_method, not
136 alias_method. They make sure to always provide a method
137 object, which will be cloned internally. This means that it is
138 now possible to track the source of a method provided by a
139 role, and even follow its history through intermediate roles.
141 This means that methods added by a role now show up when
142 looking at a class's method list/map. (Dave Rolsky)
145 - From this release on, we'll try to maintain a list of
146 conflicting modules, and warn you if you have one
147 installed. For example, this release conflicts with ...
148 - MooseX::Singleton <= 0.11
149 - MooseX::Params::Validate <= 0.05
152 In general, we try to not break backwards compatibility for
153 most Moose users, but MooseX modules and other code which
154 extends Moose's metaclasses is often affected by very small
155 changes in the Moose internals.
157 * Moose::Meta::Method::Delegation
158 * Moose::Meta::Attribute
159 - Delegation methods now have their own method class. (Dave
162 * Moose::Meta::TypeConstraint::Parameterizable
163 - Added a new method 'parameterize' which is basically a factory
164 for the containing constraint. This makes it easier to create
165 new types of parameterized constraints. (jnapiorkowski)
167 * Moose::Meta::TypeConstraint::Union
168 - Changed the way Union types canonicalize their names to follow
169 the normalized TC naming rules, which means we strip all
170 whitespace. (jnapiorkowski)
172 * Moose::Util::TypeConstraints
173 - Parameter and Union args are now sorted, this makes Int|Str
174 the same constraint as Str|Int. (jnapiorkowski)
175 - Changes to the way Union types are parsed to more correctly
176 stringify their names. (jnapiorkowski)
177 - When creating a parameterized type, we now use the new
178 parameterize method. (jnapiorkowski)
179 - Incoming type constraint strings are now normalized to remove
180 all whitespace differences. (jnapiorkowski)
181 - Changed the way we parse type constraint strings so that we now
182 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
183 constraints. This lays the foundation for more flexible type
184 constraint implementations.
186 * Tests and docs for all the above. (jnapiorkowski)
190 - Moose::Exporter will no longer remove a subroutine that the
191 exporting package re-exports. Moose re-exports the
192 Carp::confess function, among others. The reasoning is that we
193 cannot know whether you have also explicitly imported those
194 functions for your own use, so we err on the safe side and
195 always keep them. (Dave Rolsky)
196 - added tests for this (rafl)
199 - Changes to how we fix metaclass compatibility that are much
200 too complicated to go into. The summary is that Moose is much
201 less likely to complain about metaclass incompatibility
202 now. In particular, if two metaclasses differ because
203 Moose::Util::MetaRole was used on the two corresponding
204 classes, then the difference in roles is reconciled for the
205 subclass's metaclass. (Dave Rolsky)
206 - Squashed an warning in _process_attribute (thepler)
209 - throw exceptions (sooner) for invalid attribute names (thepler)
210 - added tests for this (thepler)
212 * Moose::Util::MetaRole
213 - If you explicitly set a constructor or destructor class for a
214 metaclass object, and then applied roles to the metaclass,
215 that explicitly set class would be lost and replaced with the
219 * Moose::Meta::Attribute
220 * Moose::Meta::Method
223 * Moose::Error::Default
224 * Moose::Error::Croak
225 * Moose::Error::Confess
226 - All instances of confess() changed to use overridable
227 C<throw_error> method. This method ultimately calls a class
228 constructor, and you can change the class being called. In
229 addition, errors now pass more information than just a string.
230 The default C<error_class> behaves like C<Carp::confess>, so
231 the behavior is not visibly different for end users.
233 0.57 Wed September 3, 2008
235 - A new bit of doc intended to introduce folks familiar with
236 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
239 - Shows examples of two classes, each done first with and then
240 without Moose. This makes a nice parallel to
241 Moose::Intro. (Dave Rolsky)
243 * Moose::Util::TypeConstraints
244 - Fixed a bug in find_or_parse_type_constraint so that it
245 accepts a Moose::Meta::TypeConstraint object as the parent
246 type, not just a name (jnapiorkowski)
247 - added tests (jnapiorkowski)
250 - If Sub::Name was not present, unimporting failed to actually
251 remove some sugar subs, causing test failures (Dave Rolsky)
253 0.56 Mon September 1, 2008
254 For those not following the series of dev releases, there are
255 several major changes in this release of Moose.
256 ! Moose::init_meta should now be called as a method. See the
259 - Major performance improvements by nothingmuch.
261 - New modules for extension writers, Moose::Exporter and
262 Moose::Util::MetaRole by Dave Rolsky.
264 - Lots of doc improvements and additions, especially in the
269 * Removed all references to the experimental-but-no-longer-needed
270 Moose::Meta::Role::Application::ToMetaclassInstance.
272 * Require Class::MOP 0.65.
274 0.55_04 Sat August 30, 2008
275 * Moose::Util::MetaRole
276 * Moose::Cookbook::Extending::Recipe2
277 - This simplifies the application of roles to any meta class, as
278 well as the base object class. Reimplemented metaclass traits
279 using this module. (Dave Rolsky)
281 * Moose::Cookbook::Extending::Recipe1
282 - This a new recipe, an overview of various ways to write Moose
283 extensions (Dave Rolsky)
285 * Moose::Cookbook::Extending::Recipe3
286 * Moose::Cookbook::Extending::Recipe4
287 - These used to be Extending::Recipe1 and Extending::Recipe2,
290 0.55_03 Fri August 29, 2008
291 * No changes from 0.55_02 except increasing the Class::MOP
292 dependency to 0.64_07.
294 0.55_02 Fri August 29, 2008
295 * Makefile.PL and Moose.pm
296 - explicitly require Perl 5.8.0+ (Dave Rolsky)
298 * Moose::Util::TypeConstraints
299 - Fix warnings from find_type_constraint if the type is not
302 * Moose::Meta::TypeConstraint
303 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
304 return false if the type you specify cannot be found in the
305 type registry, rather than throwing an unhelpful and
306 coincidental exception. (t0m).
307 - added docs & test for this (t0m)
309 * Moose::Meta::TypeConstraint::Registry
310 - add_type_constraint now throws an exception if a parameter is
312 - added docs & test for this (t0m)
314 * Moose::Cookbook::FAQ
315 - Added a faq entry on the difference between "role" and "trait"
319 - Fixed a bug that caused role composition to not see a required
320 method when that method was provided by another role being
321 composed at the same time. (Dave Rolsky)
322 - test and bug finding (tokuhirom)
324 0.55_01 Wed August 20, 2008
326 !! Calling Moose::init_meta as a function is now !!
327 !! deprecated. Please see the Moose.pm docs for details. !!
329 * Moose::Meta::Method::Constructor
330 - Fix inlined constructor so that values produced by default
331 or builder methods are coerced as required. (t0m)
332 - added test for this (t0m)
334 * Moose::Meta::Attribute
335 - A lazy attribute with a default or builder did not attempt to
336 coerce the default value. The immutable code _did_
338 - added test for this (t0m)
341 - This is a new helper module for writing "Moose-alike"
342 modules. This should make the lives of MooseX module authors
343 much easier. (Dave Rolsky)
346 * Moose::Cookbook::Meta::Recipe5
347 - Implemented metaclass traits (and wrote a recipe for it):
349 use Moose -traits => 'Foo'
351 This should make writing small Moose extensions a little
354 * Moose::Cookbook::Basics::Recipe1
355 - Removed any examples of direct hashref access, and applied an
356 editorial axe to reduce verbosity. (Dave Rolsky)
358 * Moose::Cookbook::Basics::Recipe1
359 - Also applied an editorial axe here. (Dave Rolsky)
362 * Moose::Cookbook::Extending::Recipe1
363 * Moose::Cookbook::Extending::Recipe2
364 - Rewrote extending and embedding moose documentation and
365 recipes to use Moose::Exporter (Dave Rolsky)
369 - These two modules now warn when you load them from the main
370 package "main" package, because we will not export sugar to
371 main. Previously it just did nothing. (Dave Rolsky)
374 - Now provide an init_meta method just like Moose.pm, and you
375 can call this to provide an alternate role metaclass. (Dave
376 Rolsky and nothingmuch)
377 - get_method_map now respects the package cache flag (nothingmuch)
380 - Two new methods - add_method and wrap_method_body
384 - Optimizations including allowing constructors to accept hash
385 refs, making many more classes immutable, and making
386 constructors immutable. (nothingmuch)
388 0.55 Sun August 3, 2008
389 * Moose::Meta::Attribute
390 - breaking down the way 'handles' methods are
391 created so that the process can be more easily
392 overridden by subclasses (stevan)
394 * Moose::Meta::TypeConstraint
395 - fixing what is passed into a ->message with
396 the type constraints (RT #37569)
397 - added tests for this (Charles Alderman)
399 * Moose::Util::TypeConstraints
400 - fix coerce to accept anon types like subtype can (mst)
403 - reorganized the recipes into sections - Basics, Roles, Meta,
404 Extending - and wrote abstracts for each section (Dave Rolsky)
406 * Moose::Cookbook::Basics::Recipe10
407 - A new recipe that demonstrates operator overloading
408 in combination with Moose. (bluefeet)
410 * Moose::Cookbook::Meta::Recipe1
411 - an introduction to what meta is and why you'd want to make
412 your own metaclass extensions (Dave Rolsky)
414 * Moose::Cookbook::Meta::Recipe4
415 - a very simple metaclass example (Dave Rolsky)
417 * Moose::Cookbook::Extending::Recipe1
418 - how to write a Moose-alike module to use your own object base
421 * Moose::Cookbook::Extending::Recipe2
422 - how to write modules with an API just like C<Moose.pm> (Dave
426 - Tons of fixes, both syntactical and grammatical (Dave
427 Rolsky, Paul Fenwick)
429 0.54 Thurs. July 3, 2008
430 ... this is not my day today ...
432 * Moose::Meta::Attribute
433 - fixed legal_options_for_inheritance such that
434 clone_and_inherit options still works for
435 Class::MOP::Attribute objects and therefore
436 does not break MooseX::AttributeHelpers
439 0.53 Thurs. July 3, 2008
440 * Whoops, I guess I should run 'make manifest' before
441 actually releasing the module. No actual changes
442 in this release, except the fact that it includes
443 the changes that I didn't include in the last
446 0.52 Thurs. July 3, 2008
448 - added "FEATURE REQUESTS" section to the Moose docs
449 to properly direct people (stevan) (RT #34333)
450 - making 'extends' croak if it is passed a Role since
451 this is not ever something you want to do
452 (fixed by stevan, found by obra)
453 - added tests for this (stevan)
456 - adding support for DOES (as in UNIVERSAL::DOES)
458 - added test for this
460 * Moose::Meta::Attribute
461 - added legal_options_for_inheritance (wreis)
462 - added tests for this (wreis)
464 * Moose::Cookbook::Snacks::*
465 - removed some of the unfinished snacks that should
466 not have been released yet. Added some more examples
467 to the 'Keywords' snack. (stevan)
469 * Moose::Cookbook::Style
470 - added general Moose "style guide" of sorts to the
471 cookbook (nothingmuch) (RT #34335)
474 - added more BUILDARGS tests (stevan)
476 0.51 Thurs. Jun 26, 2008
478 - add unimport so "no Moose::Role" actually does
481 * Moose::Meta::Role::Application::ToRole
482 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
483 order to provide its own implementation, that method still got
484 added to the list of required methods for consumers of
485 RoleB. Now an aliased method is only added to the list of
486 required methods if the role doing the aliasing does not
487 provide its own implementation. See Recipe 11 for an example
488 of all this. (Dave Rolsky)
489 - added tests for this
491 * Moose::Meta::Method::Constructor
492 - when a single argument that wasn't a hashref was provided to
493 an immutabilized constructor, the error message was very
494 unhelpful, as opposed to the non-immutable error. Reported by
496 - added test for this (Dave Rolsky)
498 * Moose::Meta::Attribute
499 - added support for meta_attr->does("ShortAlias") (sartak)
500 - added tests for this (sartak)
501 - moved the bulk of the `handles` handling to the new
502 install_delegation method (Stevan)
505 - Added BUILDARGS, a new step in new()
507 * Moose::Meta::Role::Application::RoleSummation
508 - fix typos no one ever sees (sartak)
510 * Moose::Util::TypeConstraints
511 * Moose::Meta::TypeConstraint
512 * Moose::Meta::TypeCoercion
513 - Attempt to work around the ??{ } vs. threads issue
515 - Some null_constraint optimizations
517 0.50 Thurs. Jun 11, 2008
518 - Fixed a version number issue by bumping all modules
521 0.49 Thurs. Jun 11, 2008
522 !! This version now approx. 20-25% !!
523 !! faster with new Class::MOP 0.59 !!
525 * Moose::Meta::Attribute
526 - fixed how the is => (ro|rw) works with
527 custom defined reader, writer and accessor
529 - added docs for this (TODO).
530 - added tests for this (Thanks to Penfold)
531 - added the custom attribute alias for regular
532 Moose attributes which is "Moose"
533 - fix builder and default both being used
538 Moose::Meta::Attribute
540 Moose::Meta::Role::Composite
541 Moose::Util::TypeConstraints
542 - switched usage of reftype to ref because
546 - changing add_package_symbol to use the new
550 - fixed how DEMOLISHALL is called so that it
551 can be overrided in subclasses (thanks to Sartak)
552 - added test for this (thanks to Sartak)
554 * Moose::Util::TypeConstraints
555 - move the ClassName type check code to
556 Class::MOP::is_class_loaded (thanks to Sartak)
558 * Moose::Cookbook::Recipe11
559 - add tests for this (thanks to tokuhirom)
561 0.48 Thurs. May 29, 2008
562 (early morning release engineering)--
564 - fixing the version in Moose::Meta::Method::Destructor
565 which was causing the indexer to choke
567 0.47 Thurs. May 29, 2008
568 (late night release engineering)--
570 - fixing the version is META.yml, no functional
571 changes in this release
573 0.46 Wed. May 28, 2008
574 !! This version now approx. 20-25% !!
575 !! faster with new Class::MOP 0.57 !!
578 - some optimizations of the &initialize method
579 since it is called so often by &meta
583 - now use the get_all_package_symbols from the
584 updated Class::MOP, test suite is now 10 seconds
587 * Moose::Meta::Method::Destructor
588 - is_needed can now also be called as a class
589 method for immutablization to check if the
590 destructor object even needs to be created
593 * Moose::Meta::Method::Destructor
594 Moose::Meta::Method::Constructor
595 - added more descriptive error message to help
596 keep people from wasting time tracking an error
597 that is easily fixed by upgrading.
599 0.45 Saturday, May 24, 2008
601 - Because of work in Class::MOP 0.57, all
602 XS based functionality is now optional
603 and a Pure Perl version is supplied
604 - the CLASS_MOP_NO_XS environment variable
605 can now be used to force non-XS versions
607 - several of the packages have been tweaked
608 to take care of this, mostly we added
609 support for the package_name and name
610 variables in all the Method metaclasses
611 - before/around/after method modifiers now
612 support regexp matching of names
613 (thanks to Takatoshi Kitano)
614 - tests added for this
615 - NOTE: this only works for classes, it
616 is currently not supported in roles,
617 but, ... patches welcome
618 - All usage of Carp::confess have been replaced
619 by Carp::croak in the "keyword" functions since
620 the stack trace is usually not helpful
623 - All usage of Carp::confess have been replaced
624 by Carp::croak in the "keyword" functions since
625 the stack trace is usually not helpful
626 - The 'has' keyword for roles now accepts the
627 same array ref form that Moose.pm does
628 (has [qw/foo bar/] => (is => 'rw', ...))
629 - added test for this
631 * Moose::Meta::Attribute
632 - trigger on a ro-attribute is no longer an
633 error, as it's useful to trigger off of the
637 - added same 'add_package_symbol' fix as in
641 - does_role now handles non-Moose classes
643 - added tests for this
644 - added the 'add_method_modifier' function
645 (thanks to Takatoshi Kitano)
647 * Moose::Util::TypeConstraints
648 - subtypes of parameterizable types now are
649 themselves parameterizable types
651 * Moose::Meta::Method::Constructor
652 - fixed bug where trigger was not being
653 called by the inlined immutable
655 - added test for this (thanks to Caelum)
657 * Moose::Meta::Role::Application::ToInstance
658 - now uses the metaclass of the instance
659 (if possible) to create the anon-class
660 (thanks Jonathan Rockway)
662 * Moose::Cookbook::Recipe22
663 - added the meta-attribute trait recipe
667 - fixed hash-ordering test bug that was
668 causing occasional cpantester failures
669 - renamed the t/000_recipe/*.t tests to be
670 more descriptive (thanks to Sartak)
672 0.44 Sat. May 10, 2008
674 - made make_immutable warning cluck to
675 show where the error is (thanks mst)
678 - BUILDALL and DEMOLISHALL now call
679 ->body when looping through the
680 methods, to avoid the overloaded
682 - fixed issue where DEMOLISHALL was
683 eating the $@ values, and so not
684 working correctly, it still kind of
685 eats them, but so does vanilla perl
686 - added tests for this
688 * Moose::Cookbook::Recipe7
689 - added new recipe for immutable
690 functionality (thanks Dave Rolsky)
692 * Moose::Cookbook::Recipe9
693 - added new recipe for builder and
694 lazy_build (thanks Dave Rolsky)
696 * Moose::Cookbook::Recipe11
697 - added new recipe for method aliasing
698 and exclusion with Roles (thanks Dave Rolsky)
701 - fixed Win32 test failure (thanks spicyjack)
703 ~ removed Build.PL and Module::Build compat
704 since Module::Install has done that.
706 0.43 Wed. April, 30, 2008
708 drink more coffee before
709 doing release engineering
711 - whoops, forgot to do the smolder tests,
712 and we broke some of the custom meta-attr
713 modules. This fixes that.
715 0.42 Mon. April 28, 2008
716 - some bad tests slipped by, nothing else
717 changed in this release (cpantesters++)
719 - upped the Class::MOP dependency to 0.55
720 since we have tests which need the C3
723 0.41 Mon. April 28, 2008
724 ~~ numerous documentation updates ~~
726 - Changed all usage of die to Carp::croak for better
727 error reporting (initial patch by Tod Hagan)
730 - the make_immutable keyword is now deprecated, don't
731 use it in any new code and please fix your old code
732 as well. There will be 2 releases, and then it will
738 - refactored the way inner and super work to avoid
739 any method/@ISA cache penalty (nothingmuch)
742 - fixing &new_object to make sure trigger gets the
743 coerced value (spotted by Charles Alderman on the
745 - added test for this
747 * Moose::Meta::Method::Constructor
748 - immutable classes which had non-lazy attributes were calling
749 the default generating sub twice in the constructor. (bug
750 found by Jesse Luehrs, fixed by Dave Rolsky)
751 - added tests for this (Dave Rolsky)
752 - fix typo in initialize_body method (nothingmuch)
754 * Moose::Meta::Method::Destructor
755 - fix typo in initialize_body method (nothingmuch)
757 * Moose::Meta::Method::Overriden
758 Moose::Meta::Method::Augmented
759 - moved the logic for these into their own
760 classes (nothingmuch)
762 * Moose::Meta::Attribute
763 - inherited attributes may now be extended without
764 restriction on the type ('isa', 'does') (Sartak)
765 - added tests for this (Sartak)
766 - when an attribute property is malformed (such as lazy without
767 a default), give the name of the attribute in the error
769 - added the &applied_traits and &has_applied_traits methods
770 to allow introspection of traits
771 - added tests for this
772 - moved 'trait' and 'metaclass' argument handling to here from
774 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
775 '+foo' syntax) (nothingmuch)
776 - added tests for this (t0m)
779 - localize $@ inside DEMOLISHALL to avoid it
780 eating $@ (found by Ernesto)
781 - added test for this (thanks to Ernesto)
783 * Moose::Util::TypeConstraints
784 - &find_type_constraint now DWIMs when given an
785 type constraint object or name (nothingmuch)
786 - &find_or_create_type_constraint superseded with a number of more
788 - find_or_create_{isa,does}_type_constraint
789 - find_or_parse_type_constraint
791 * Moose::Meta::TypeConstraint
792 Moose::Meta::TypeConstraint::Class
793 Moose::Meta::TypeConstraint::Role
794 Moose::Meta::TypeConstraint::Enum
795 Moose::Meta::TypeConstraint::Union
796 Moose::Meta::TypeConstraint::Parameterized
797 - added the &equals method for comparing two type
798 constraints (nothingmuch)
799 - added tests for this (nothingmuch)
801 * Moose::Meta::TypeConstraint
802 - add the &parents method, which is just an alias to &parent.
803 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
805 * Moose::Meta::TypeConstraint::Class
806 - added the class attribute for introspection purposes
808 - added tests for this
810 * Moose::Meta::TypeConstraint::Enum
811 Moose::Meta::TypeConstraint::Role
812 - broke these out into their own classes (nothingmuch)
814 * Moose::Cookbook::Recipe*
815 - fixed references to test file locations in the POD
816 and updated up some text for new Moose features
820 - Added &resolve_metaclass_alias, a helper function for finding an actual
821 class for a short name (e.g. in the traits list)
823 0.40 Fri. March 14, 2008
824 - I hate Pod::Coverage
826 0.39 Fri. March 14, 2008
828 - documenting the use of '+name' with attributes
829 that come from recently composed roles. It makes
830 sense, people are using it, and so why not just
831 officially support it.
832 - fixing the 'extends' keyword so that it will not
833 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
836 - added the perl -Moose=+Class::Name feature to allow
837 monkeypatching of classes in one liners
840 - fixing the 'apply_all_roles' keyword so that it will not
841 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
844 - added ->create method which now supports roles (thanks to jrockway)
845 - added tests for this
846 - added ->create_anon_class which now supports roles and caching of
847 the results (thanks to jrockway)
848 - added tests for this
849 - made ->does_role a little more forgiving when it is
850 checking a Class::MOP era metaclasses.
852 * Moose::Meta::Role::Application::ToInstance
853 - it is now possible to pass extra params to be used when
854 a role is applied to an the instance (rebless_params)
855 - added tests for this
857 * Moose::Util::TypeConstraints
858 - class_type now accepts an optional second argument for a
859 custom message. POD anotated accordingly (groditi)
860 - added tests for this
861 - it is now possible to make anon-enums by passing 'enum' an
862 ARRAY ref instead of the $name => @values. Everything else
864 - added tests for this
867 - making test for using '+name' on attributes consumed
868 from a role, it works and makes sense too.
870 * Moose::Meta::Attribute
871 - fix handles so that it doesn't return nothing
872 when the method cannot be found, not sure why
873 it ever did this originally, this means we now
874 have slightly better support for AUTOLOADed
876 - added more delegation tests
877 - adding ->does method to this so as to better
878 support traits and their introspection.
879 - added tests for this
882 - localizing the Data::Dumper configurations so
883 that it does not pollute others (RT #33509)
884 - made ->does a little more forgiving when it is
885 passed Class::MOP era metaclasses.
887 0.38 Fri. Feb. 15, 2008
888 * Moose::Meta::Attribute
889 - fixed initializer to correctly do
890 type checking and coercion in the
892 - added tests for this
895 - fixed some finicky tests (thanks to konobi)
897 0.37 Thurs. Feb. 14, 2008
899 - fixed some details in Moose::init_meta
900 and its superclass handling (thanks thepler)
901 - added tests for this (thanks thepler)
902 - 'has' now dies if you don't pass in name
904 - added the 'make_immutable' keyword as a shortcut
908 Moose::Meta::Method::Constructor
909 Moose::Meta::Attribute
910 - making (init_arg => undef) work here too
911 (thanks to nothingmuch)
913 * Moose::Meta::Attribute
914 Moose::Meta::Method::Constructor
915 Moose::Meta::Method::Accessor
916 - make lazy attributes respect attr initializers (rjbs)
917 - added tests for this
919 * Moose::Util::TypeConstraints
920 Moose::Util::TypeConstraints::OptimizedConstraints
921 Moose::Meta::TypeConstraints
922 Moose::Meta::Attribute
923 Moose::Meta::Method::Constructor
924 Moose::Meta::Method::Accessor
925 - making type errors use the
926 assigned message (thanks to Sartak)
927 - added tests for this
929 * Moose::Meta::Method::Destructor
930 - making sure DESTROY gets inlined properly
931 with successive DEMOLISH calls (thanks to manito)
933 * Moose::Meta::Attribute
934 Moose::Meta::Method::Accessor
935 - fixed handling of undef with type constraints
937 - added tests for this
940 - added &get_all_init_args and &get_all_attribute_values
941 (thanks to Sartak and nothingmuch)
943 0.36 Sat. Jan. 26, 2008
945 Moose::Meta::Attribute
946 - role type tests now support when roles are
947 applied to non-Moose classes (found by ash)
948 - added tests for this (thanks to ash)
949 - couple extra tests to boost code coverage
951 * Moose::Meta::Method::Constructor
952 - improved fix for handling Class::MOP attributes
953 - added test for this
956 - handled the add_attribute($attribute_meta_object)
958 - added test for this
960 0.35 Tues. Jan. 22, 2008
961 * Moose::Meta::Method::Constructor
962 - fix to make sure even Class::MOP attributes
963 are handled correctly (Thanks to Dave Rolsky)
964 - added test for this (also Dave Rolsky)
967 - improved error message on _apply_all_roles,
968 you should now use Moose::Util::apply_all_roles
969 and you shouldnt have been using a _ prefixed
970 method in the first place ;)
972 0.34 Mon. Jan. 21, 2008
973 ~~~ more misc. doc. fixes ~~~
974 ~~ updated copyright dates ~~
976 Moose is now a postmodern object system :)
977 - (see the POD for details)
979 * <<Role System Refactoring>>
980 - this release contains a major reworking and
981 cleanup of the role system
982 - 100% backwards compat.
983 - Role application now restructured into seperate
984 classes based on type of applicants
985 - Role summation (combining of more than one role)
986 is much cleaner and anon-classes are no longer
988 - new Composite role metaclass
989 - runtime application of roles to instances
990 is now more efficient and re-uses generated
991 classes when applicable
993 * <<New Role composition features>>
994 - methods can now be excluded from a given role
996 - methods can now be aliased to another name (and
997 still retain the original as well)
999 * Moose::Util::TypeConstraints::OptimizedConstraints
1000 - added this module (see above)
1002 * Moose::Meta::Class
1003 - fixed the &_process_attribute method to be called
1004 by &add_attribute, so that the API is now correct
1006 * Moose::Meta::Method::Accessor
1007 - fixed bug when passing a list of values to
1008 an accessor would get (incorrectly) ignored.
1009 Thanks to Sartak for finding this ;)
1010 - added tests for this (Sartak again)
1012 * Moose::Meta::Method::Accessor
1013 Moose::Meta::Method::Constructor
1014 Moose::Meta::Attribute
1015 Moose::Meta::TypeConstraint
1016 Moose::Meta::TypeCoercion
1017 - lots of cleanup of such things as:
1019 - type constraint handling
1020 - error handling/messages
1021 (thanks to nothingmuch)
1023 * Moose::Meta::TypeConstraint::Parameterizable
1024 - added this module to support the refactor
1025 in Moose::Meta::TypeConstraint::Parameterized
1027 * Moose::Meta::TypeConstraint::Parameterized
1028 - refactored how these types are handled so they
1029 are more generic and not confined to ArrayRef
1033 - shortened some file names for better VMS support (RT #32381)
1035 0.33 Fri. Dec. 14, 2007
1036 !! Moose now loads 2 x faster !!
1037 !! with new Class::MOP 0.49 !!
1039 ++ new oose.pm module to make command line
1040 Moose-ness easier (see POD docs for more)
1042 * Moose::Meta::Class
1044 - several tweaks to take advantage of the
1045 new method map caching in Class::MOP
1047 * Moose::Meta::TypeConstraint::Parameterized
1048 - allow subtypes of ArrayRef and HashRef to
1049 be used as a container (sartak)
1050 - added tests for this
1051 - basic support for coercion to ArrayRef and
1052 HashRef for containers (sartak)
1053 - added tests for this
1055 * Moose::Meta::TypeCoercion
1056 - coercions will now create subtypes as needed
1057 so you can now add coercions to parameterized
1058 types without having to explictly define them
1059 - added tests for this
1061 * Moose::Meta::Method::Accessor
1062 - allow subclasses to decide whether we need
1063 to copy the value into a new variable (sartak)
1065 0.32 Tues. Dec. 4, 2007
1066 * Moose::Util::TypeConstraints
1067 - fixing how subtype aliases of unions work
1068 they should inherit the parent's coercion
1069 - added tests for this
1070 - you can now define multiple coercions on
1071 a single type at different times instead of
1072 having to do it all in one place
1073 - added tests for this
1075 * Moose::Meta::TypeConstraint
1076 - there is now a default constraint of sub { 1 }
1077 instead of Moose::Util::TypeConstraints setting
1080 * Moose::Meta::TypeCoercion
1081 * Moose::Meta::TypeCoercion::Union
1082 - added the &has_coercion_for_type and
1083 &add_type_coercions methods to support the
1084 new features above (although you cannot add
1085 more type coercions for Union types)
1087 0.31 Mon. Nov. 26, 2007
1088 * Moose::Meta::Attribute
1089 - made the +attr syntax handle extending types with
1090 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1091 now works if the original foo is an ArrayRef.
1092 - added tests for this.
1093 - delegation now works even if the attribute does not
1094 have a reader method using the get_read_method_ref
1095 method from Class::MOP::Attribute.
1096 - added tests for this
1097 - added docs for this
1099 * Moose::Util::TypeConstraints
1100 - passing no "additional attribute info" to
1101 &find_or_create_type_constraint will no longer
1102 attempt to create an __ANON__ type for you,
1103 instead it will just return undef.
1104 - added docs for this
1106 0.30 Fri. Nov. 23, 2007
1107 * Moose::Meta::Method::Constructor
1108 -builder related bug in inlined constructor. (groditi)
1110 * Moose::Meta::Method::Accessor
1111 - genereate unnecessary calls to predicates and refactor
1112 code generation for runtime speed (groditi)
1114 * Moose::Util::TypeConstraints
1115 - fix ClassName constraint to introspect symbol table (mst)
1116 - added more tests for this (mst)
1117 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1118 with work correctly.
1119 - added tests for this
1122 - adding the link to Recipie 11 (written by Sartak)
1123 - adding test for SYNOPSIS code
1126 - New tests for builder bug. Upon instantiation, if an
1127 attribute had a builder, no value and was not lazy the
1128 builder default was not getting run, oops. (groditi)
1130 0.29 Tues. Nov. 13, 2007
1131 * Moose::Meta::Attribute
1132 - Fix error message on missing builder method (groditi)
1134 * Moose::Meta::Method::Accessor
1135 - Fix error message on missing builder method (groditi)
1138 - Add test to check for the correct error message when
1139 builder method is missing (groditi)
1141 0.28 Tues. Nov. 13, 2007
1142 - 0.27 packaged incorrectly (groditi)
1144 0.27 Tues. Nov. 13, 2007
1145 * Moose::Meta::Attribute
1146 - Added support for the new builder option (groditi)
1147 - Added support for lazy_build option (groditi)
1148 - Changed slot initialization for predicate changes (groditi)
1150 * Moose::Meta::Method::Accessor
1151 - Added support for lazy_build option (groditi)
1152 - Fix inline methods to work with corrected predicate
1155 * Moose::Meta::Method::Constructor
1156 - Added support for lazy_build option (groditi)
1159 - tests for builder and lazy_build (groditi)
1161 * fixing some misc. bits in the docs that
1162 got mentioned on CPAN Forum & perlmonks
1165 - fixed how required methods are handled
1166 when they encounter overriden or modified
1167 methods from a class (thanks to confound).
1168 - added tests for this
1170 * Moose::Util::TypeConstraint
1171 - fixed the type notation parser so that
1172 the | always creates a union and so is
1173 no longer a valid type char (thanks to
1174 konobi, mugwump and #moose for working
1176 - added more tests for this
1178 0.26 Thurs. Sept. 27, 2007
1181 * Parameterized Types
1182 We now support parameterized collection types, such as:
1183 ArrayRef[Int] # array or integers
1184 HashRef[Object] # a hash with object values
1185 They can also be nested:
1186 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1187 And work with the type unions as well:
1188 ArrayRef[Int | Str] # array of integers of strings
1190 * Better Framework Extendability
1191 Moose.pm is now "extendable" such that it is now much
1192 easier to extend the framework and add your own keywords
1193 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1194 section of the Moose.pm docs.
1197 In an effort to begin documenting some of the various
1198 details of Moose as well as some common idioms, we have
1199 created Moose::Cookbook::Snacks as a place to find
1200 small (easily digestable) nuggets of Moose code.
1203 ~ Several doc updates/cleanup thanks to castaway ~
1205 - converted build system to use Module::Install instead of
1206 Module::Build (thanks to jrockway)
1209 - added all the meta classes to the immutable list and
1210 set it to inline the accessors
1211 - fix import to allow Sub::Exporter like { into => }
1212 and { into_level => } (perigrin)
1213 - exposed and documented init_meta() to allow better
1214 embedding and extending of Moose (perigrin)
1217 - complete re-organization of the test suite
1218 - added some new tests as well
1219 - finally re-enabled the Moose::POOP test since
1220 the new version of DBM::Deep now works again
1223 * Moose::Meta::Class
1224 - fixed very odd and very nasty recursion bug with
1226 - added tests for this (eilara)
1228 * Moose::Meta::Attribute
1229 Moose::Meta::Method::Constructor
1230 Moose::Meta::Method::Accessor
1231 - fixed issue with overload::Overloaded getting called
1232 on non-blessed items. (RT #29269)
1233 - added tests for this
1235 * Moose::Meta::Method::Accessor
1236 - fixed issue with generated accessor code making
1237 assumptions about hash based classes (thanks to dexter)
1239 * Moose::Coookbook::Snacks
1240 - these are bits of documentation, not quite as big as
1241 Recipes but which have no clear place in the module docs.
1242 So they are Snacks! (horray for castaway++)
1244 * Moose::Cookbook::Recipe4
1245 - updated it to use the new ArrayRef[MyType] construct
1246 - updated the accompanying test as well
1248 +++ Major Refactor of the Type Constraint system +++
1249 +++ with new features added as well +++
1251 * Moose::Util::TypeConstraint
1252 - no longer uses package variable to keep track of
1253 the type constraints, now uses the an instance of
1254 Moose::Meta::TypeConstraint::Registry to do it
1255 - added more sophisticated type notation parsing
1257 - added tests for this
1259 * Moose::Meta::TypeConstraint
1260 - some minor adjustments to make subclassing easier
1261 - added the package_defined_in attribute so that we
1262 can track where the type constraints are created
1264 * Moose::Meta::TypeConstraint::Union
1265 - this is now been refactored to be a subclass of
1266 Moose::Meta::TypeConstraint
1268 * Moose::Meta::TypeCoercion::Union
1269 - this has been added to service the newly refactored
1270 Moose::Meta::TypeConstraint::Union and is itself
1271 a subclass of Moose::Meta::TypeCoercion
1273 * Moose::Meta::TypeConstraint::Parameterized
1274 - added this module (taken from MooseX::AttributeHelpers)
1275 to help construct nested collection types
1276 - added tests for this
1278 * Moose::Meta::TypeConstraint::Registry
1279 - added this class to keep track of type constraints
1281 0.25 Mon. Aug. 13, 2007
1283 - Documentation update to reference Moose::Util::TypeConstraints
1284 under 'isa' in 'has' for how to define a new type
1285 (thanks to shlomif).
1287 * Moose::Meta::Attribute
1288 - required attributes now will no longer accept undef
1289 from the constructor, even if there is a default and lazy
1290 - added tests for this
1291 - default subroutines must return a value which passes the
1293 - added tests for this
1295 * Moose::Meta::Attribute
1296 * Moose::Meta::Method::Constructor
1297 * Moose::Meta::Method::Accessor
1298 - type-constraint tests now handle overloaded objects correctly
1299 in the error message
1300 - added tests for this (thanks to EvanCarroll)
1302 * Moose::Meta::TypeConstraint::Union
1303 - added (has_)hand_optimized_constraint to this class so that
1304 it behaves as the regular Moose::Meta::TypeConstraint does.
1307 - large refactoring of this code
1308 - added several more tests
1309 - tests for subtle conflict resolition issues
1310 added, but not currently running
1313 * Moose::Cookbook::Recipe7
1314 - added new recipe for augment/inner functionality
1316 - added test for this
1319 - a formal definition of roles (still in progress)
1322 - utilities for easier working with Moose classes
1323 - added tests for these
1326 - This contains Moose specific test functions
1327 - added tests for these
1329 0.24 Tues. July 3, 2007
1330 ~ Some doc updates/cleanup ~
1332 * Moose::Meta::Attribute
1333 - added support for roles to be given as parameters
1334 to the 'handles' option.
1335 - added tests and docs for this
1336 - the has '+foo' attribute form now accepts changes to
1337 the lazy option, and the addition of a handles option
1338 (but not changing the handles option)
1339 - added tests and docs for this
1342 - required methods are now fetched using find_method_by_name
1343 so that required methods can come from superclasses
1344 - adjusted tests for this
1346 0.23 Mon. June 18, 2007
1347 * Moose::Meta::Method::Constructor
1348 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1349 * Moose::Meta::Class
1350 - Modify make_immutable to work with the new Class::MOP immutable
1351 mechanism + POD + very basic test (groditi)
1352 * Moose::Meta::Attribute
1353 - Fix handles to use goto() so that caller() comes out properly on
1354 the other side (perigrin)
1356 0.22 Thurs. May 31, 2007
1357 * Moose::Util::TypeConstraints
1358 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1359 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1360 prototypes for functions
1361 - added the ClassName type constraint, this checks for strings
1362 which will respond true to ->isa(UNIVERSAL).
1363 - added tests and docs for this
1364 - subtyping just in name now works correctly by making the
1365 default for where be { 1 }
1366 - added test for this
1368 * Moose::Meta::Method::Accessor
1369 - coerce and lazy now work together correctly, thanks to
1370 merlyn for finding this bug
1371 - tests added for this
1372 - fix reader presedence bug in Moose::Meta::Attribute + tests
1375 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1376 a HASH-ref and missed. This produces better error messages then
1377 having it die cause undef is not a HASH.
1378 - added tests for this
1380 0.21 Thursday, May 2nd, 2007
1382 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1383 - modified unimport to remove super and inner along with the rest
1384 - altered unimport tests to handle this
1387 - altered super export to populate SUPER_SLOT
1389 * Moose::Meta::Class
1390 - altered augment and override modifier application to use *_SLOT
1391 - modified tests for these to unimport one test class each to test
1394 - fixed issue where custom attribute metaclasses
1395 where not handled correctly in roles
1396 - added tests for this
1398 * Moose::Meta::Class
1399 - fixed issue where extending metaclasses with
1400 roles would blow up. Thanks to Aankhen`` for
1401 finding this insidious error, and it's solution.
1403 ~~ lots of spelling and grammer fixes in the docs,
1404 many many thanks to rlb3 and Aankhen for these :)
1406 0.20 Friday, April 6th, 2007
1407 >> I messed up the SKIP logic in one test
1408 so this release is just to fix that.
1411 - 'has' now also accepts an ARRAY ref
1412 to create multiple attrs (see docs)
1413 (thanks to konobi for this)
1414 - added tests and docs
1416 0.19 Thurs. April 5th, 2007
1417 ~~ More documentation updates ~~
1419 * Moose::Util::TypeConstraints
1420 - 'type' now supports messages as well
1421 thanks to phaylon for finding this
1422 - added tests for this
1423 - added &list_all_type_constraints and
1424 &list_all_builtin_type_constraints
1425 functions to facilitate introspection.
1427 * Moose::Meta::Attribute
1428 - fixed regexp 'handles' declarations
1429 to build the list of delegated methods
1430 correctly (and not override important
1431 things like &new) thanks to ashleyb
1433 - added tests and docs for this
1434 - added the 'documentation' attributes
1435 so that you can actually document your
1436 attributes and inspect them through the
1438 - added tests and docs for this
1440 * Moose::Meta::Class
1441 - when loading custom attribute metaclasses
1442 it will first look in for the class in the
1443 Moose::Meta::Attribute::Custom::$name, and
1444 then default to just loading $name.
1445 - added tests and docs for this
1447 * Moose::Meta::TypeConstraint
1448 - type constraints now stringify to their names.
1449 - added test for this
1452 - added tests to assure we work with Module::Refresh
1453 - added stricter test skip logic in the Moose POOP
1454 test, ask Rob Kinyon why.
1455 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1457 0.18 Sat. March 10, 2007
1458 ~~ Many, many documentation updates ~~
1461 - We now use Class::MOP::load_class to
1463 - added tests to show types and subtypes
1464 working with Declare::Constraints::Simple
1465 and Test::Deep as constraint engines.
1468 !! You must have Class::MOP 0.37_001 !!
1469 !! for this developer release to work !!
1471 This release was primarily adding the immutable
1472 feature to Moose. An immutable class is one which
1473 you promise not to alter. When you set the class
1474 as immutable it will perform various bits of
1475 memoization and inline certain part of the code
1476 (constructors, destructors and accessors). This
1477 minimizes (and in some cases totally eliminates)
1478 one of Moose's biggest performance hits. This
1479 feature is not on by default, and is 100% optional.
1480 It has several configurable bits as well, so you
1481 can pick and choose to your specific needs.
1483 The changes involved in this were fairly wide and
1484 highly specific, but 100% backwards compatible, so
1485 I am not going to enumerate them here. If you are
1486 truely interested in what was changed, please do
1489 0.17 Tues. Nov. 14, 2006
1490 * Moose::Meta::Method::Accessor
1491 - bugfix for read-only accessors which
1492 are have a type constraint and lazy.
1493 Thanks to chansen for finding it.
1495 0.16 Tues. Nov. 14, 2006
1497 There are some speed improvements in this release,
1498 but they are only the begining, so stay tuned.
1501 - BUILDALL and DEMOLISHALL no longer get
1502 called unless they actually need to be.
1503 This gave us a signifigant speed boost
1504 for the cases when there is no BUILD or
1505 DEMOLISH method present.
1507 * Moose::Util::TypeConstraints
1508 * Moose::Meta::TypeConstraint
1509 - added an 'optimize_as' option to the
1510 type constraint, which allows for a
1511 hand optimized version of the type
1512 constraint to be used when possible.
1513 - Any internally created type constraints
1514 now provide an optimized version as well.
1516 0.15 Sun. Nov. 5, 2006
1518 This version of Moose *must* have Class::MOP 0.36 in order
1519 to work correctly. A number of small internal tweaks have
1520 been made in order to be compatible with that release.
1522 * Moose::Util::TypeConstraints
1523 - added &unimport so that you can clean out
1524 your class namespace of these exported
1527 * Moose::Meta::Class
1528 - fixed minor issue which occasionally
1529 comes up during global destruction
1531 - moved Moose::Meta::Method::Overriden into
1535 - moved Moose::Meta::Role::Method into
1538 * Moose::Meta::Attribute
1539 - changed how we do type checks so that
1540 we reduce the overall cost, but still
1543 - moved accessor generation methods to
1544 Moose::Meta::Method::Accessor to
1545 conform to the API changes from
1548 * Moose::Meta::TypeConstraint
1549 - changed how constraints are compiled
1550 so that we do less recursion and more
1551 iteration. This makes the type check
1553 - moved Moose::Meta::TypeConstraint::Union
1556 * Moose::Meta::Method::Accessor
1557 - created this from methods formerly found in
1558 Moose::Meta::Attribute
1560 * Moose::Meta::Role::Method
1561 - moved this from Moose::Meta::Role
1563 * Moose::Meta::Method::Overriden
1564 - moved this from Moose::Meta::Class
1566 * Moose::Meta::TypeConstraint::Union
1567 - moved this from Moose::Meta::TypeConstraint
1569 0.14 Mon. Oct. 9, 2006
1571 * Moose::Meta::Attribute
1572 - fixed lazy attributes which were not getting
1573 checked with the type constraint (thanks ashley)
1574 - added tests for this
1575 - removed the over-enthusiastic DWIMery of the
1576 automatic ArrayRef and HashRef defaults, it
1577 broke predicates in an ugly way.
1578 - removed tests for this
1580 0.13 Sat. Sept. 30, 2006
1582 This version of Moose *must* have Class::MOP 0.35 in order
1583 to work correctly. A number of small internal tweaks have
1584 been made in order to be compatible with that release.
1587 - Removed the use of UNIVERSAL::require to be a better
1588 symbol table citizen and remove a dependency
1589 (thanks Adam Kennedy)
1591 **~~ removed experimental & undocumented feature ~~**
1592 - commented out the 'method' and 'self' keywords, see the
1593 comments for more info.
1596 - added a FAQ and WTF files to document frequently
1597 asked questions and common problems
1599 * Moose::Util::TypeConstraints
1600 - added GlobRef and FileHandle type constraint
1601 - added tests for this
1603 * Moose::Meta::Attribute
1604 - if your attribute 'isa' ArrayRef of HashRef, and you have
1605 not explicitly set a default, then make the default DWIM.
1606 This will also work for subtypes of ArrayRef and HashRef
1608 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1609 - new test added for this (thanks to ashley)
1612 - added basic support for runtime role composition
1613 but this is still *highly experimental*, so feedback
1614 is much appreciated :)
1615 - added tests for this
1617 * Moose::Meta::TypeConstraint
1618 - the type constraint now handles the coercion process
1619 through delegation, this is to support the coercion
1622 * Moose::Meta::TypeConstraint::Union
1623 - it is now possible for coercions to be performed
1625 - added tests for this (thanks to konobi)
1627 * Moose::Meta::TypeCoercion
1628 - properly capturing error when type constraint
1632 - Scalar::Util 1.18 is bad on Win32, so temporarily
1633 only require version 1.17 for Win32 and cygwin.
1634 (thanks Adam Kennedy)
1636 0.12 Sat. Sept. 1, 2006
1638 - Recipe5 (subtypes & coercion) has been written
1641 - fixed "bad meta" error message to be more descriptive
1642 - fixed &unimport to not remove the &inner and &super
1643 keywords because we need to localize them.
1644 - fixed number of spelling/grammer issues, thanks Theory :)
1646 **~~ experimental & undocumented feature ~~**
1647 - added the method and self keywords, they are basically
1648 just sugar, and they may not stay around.
1651 - added &dump method to easily Data::Dumper
1654 * Moose::Meta::TypeConstraint
1655 - added the &is_a_type_of method to check both the current
1656 and the subtype of a method (similar to &isa with classes)
1659 - this is now a subclass of Class::MOP::Module, and no longer
1660 creates the _role_meta ugliness of before.
1661 - fixed tests to reflect this change
1663 0.11 Wed. July 12, 2006
1665 - added an &unimport method to remove all the keywords
1666 that Moose will import, simply add 'no Moose' to the
1667 bottom of your class file.
1670 - fixed some test failures caused by a forgotten test
1673 0.10 Thurs. July 6, 2006
1675 - improved error message when loading modules so
1676 it is less confusing when you load a role.
1677 - added &calculate_all_roles method to
1678 Moose::Meta::Class and Moose::Meta::Role
1681 This module has been tested against Class::MOP 0.30
1682 but it does not yet utilize the optimizations
1683 it makes available. Stay tuned for that ;)
1685 0.09_03 Fri. June 23, 2006
1686 ++ DEVELOPER RELEASE ++
1688 - 'use strict' and 'use warnings' are no longer
1689 needed in Moose classes, Moose itself will
1690 turn them on for you.
1691 - added tests for this
1692 - moved code from exported subs to private methods
1693 in Moose::Meta::Class
1696 - as with Moose, strict and warnings are
1697 automatically turned on for you.
1698 - added tests for this
1701 - now handles an edge case for override errors
1702 - added tests for this
1703 - added some more edge case tests
1705 0.09_02 Tues. May 16, 2006
1706 ++ DEVELOPER RELEASE ++
1708 - added prototypes to the exported subs
1712 - added prototypes to the exported subs
1715 * Moose::Util::TypeConstraints
1716 - cleaned up prototypes for the subs
1719 0.09_01 Fri. May 12, 2006
1720 ++ DEVELOPER RELEASE ++
1721 - This release works in combination with
1722 Class::MOP 0.29_01, it is a developer
1723 release because it uses the a new
1724 instance sub-protocol and a fairly
1725 complete Role implementation. It has
1726 not yet been optimized, so it slower
1727 the the previous CPAN version. This
1728 release also lacks good updated docs,
1729 the official release will have updated docs.
1732 - refactored the keyword exports
1733 - 'with' now checks Role validaity and
1734 accepts more than one Role at a time
1735 - 'extends' makes metaclass adjustments as
1736 needed to ensure metaclass compatibility
1739 - refactored the keyword exports
1740 - 'with' now checks Role validaity and
1741 accepts more than one Role at a time
1743 * Moose::Util::TypeConstraints
1744 - added the 'enum' keyword for simple
1745 string enumerations which can be used as
1747 - see example of usage in t/202_example.t
1750 - more careful checking of params to new()
1753 - much work done on the role composition
1754 - many new tests for conflict detection
1755 and composition edge cases
1756 - not enough documentation, I suggest
1757 looking at the tests
1759 * Moose::Meta::Instance
1760 - added new Instance metaclass to support
1761 the new Class::MOP instance protocol
1763 * Moose::Meta::Class
1764 - some small changes to support the new
1766 - some small additions to support Roles
1768 * Moose::Meta::Attribute
1769 - some improvements to the accessor generation code
1771 - some small changes to support the new
1773 - (still somewhat) experimental delegation support
1774 with the 'handles' option
1775 - added several tests for this
1776 - no docs for this yet
1778 0.05 Thurs. April 27, 2006
1780 - keywords are now exported with Sub::Exporter
1781 thanks to chansen for this commit
1782 - has keyword now takes a 'metaclass' option
1783 to support custom attribute meta-classes
1784 on a per-attribute basis
1785 - added tests for this
1786 - the 'has' keyword not accepts inherited slot
1787 specifications (has '+foo'). This is still an
1788 experimental feature and probably not finished
1789 see t/038_attribute_inherited_slot_specs.t for
1790 more details, or ask about it on #moose
1791 - added tests for this
1794 - keywords are now exported with Sub::Exporter
1796 * Moose::Utils::TypeConstraints
1797 - reorganized the type constraint hierarchy, thanks
1798 to nothingmuch and chansen for his help and advice
1800 - added some tests for this
1801 - keywords are now exported with Sub::Exporter
1802 thanks to chansen for this commit
1804 * Moose::Meta::Class
1805 - due to changes in Class::MOP, we had to change
1806 construct_instance (for the better)
1808 * Moose::Meta::Attribute
1809 - due to changes in Class::MOP, we had to add the
1810 initialize_instance_slot method (it's a good thing)
1812 * Moose::Meta::TypeConstraint
1813 - added type constraint unions
1814 - added tests for this
1815 - added the is_subtype_of predicate method
1816 - added tests for this
1818 0.04 Sun. April 16th, 2006
1820 - Roles can now consume other roles
1821 - added tests for this
1822 - Roles can specify required methods now with
1823 the requires() keyword
1824 - added tests for this
1827 - ripped out much of it's guts ,.. much cleaner now
1828 - added required methods and correct handling of
1829 them in apply() for both classes and roles
1830 - added tests for this
1831 - no longer adds a does() method to consuming classes
1832 it relys on the one in Moose::Object
1833 - added roles attribute and some methods to support
1834 roles consuming roles
1836 * Moose::Meta::Attribute
1837 - added support for triggers on attributes
1838 - added tests for this
1839 - added support for does option on an attribute
1840 - added tests for this
1842 * Moose::Meta::Class
1843 - added support for attribute triggers in the
1845 - added tests for this
1848 - Moose no longer creates a subtype for your class
1849 if a subtype of the same name already exists, this
1850 should DWIM in 99.9999% of all cases
1852 * Moose::Util::TypeConstraints
1853 - fixed bug where incorrect subtype conflicts were
1855 - added test for this
1858 - this class can now be extended with 'use base' if
1859 you need it, it properly loads the metaclass class now
1860 - added test for this
1862 0.03_02 Wed. April 12, 2006
1864 - you must now explictly use Moose::Util::TypeConstraints
1865 it no longer gets exported for you automatically
1868 - new() now accepts hash-refs as well as key/value lists
1869 - added does() method to check for Roles
1870 - added tests for this
1872 * Moose::Meta::Class
1873 - added roles attribute along with the add_role() and
1875 - added tests for this
1878 - now adds a does() method to consuming classes
1879 which tests the class's hierarchy for roles
1880 - added tests for this
1882 0.03_01 Mon. April 10, 2006
1884 - added new Role recipe (no content yet, only code)
1887 - added 'with' keyword for Role support
1888 - added test and docs for this
1889 - fixed subtype quoting bug
1890 - added test for this
1894 - added test and docs
1896 * Moose::Util::TypeConstraints
1897 - added the message keyword to add custom
1898 error messages to type constraints
1901 - the meta role to support Moose::Role
1902 - added tests and docs
1904 * Moose::Meta::Class
1905 - moved a number of things from Moose.pm
1906 to here, they should have been here
1909 * Moose::Meta::Attribute
1910 - moved the attribute option macros here
1911 instead of putting them in Moose.pm
1913 * Moose::Meta::TypeConstraint
1914 - added the message attributes and the
1916 - added tests and docs for this
1918 0.03 Thurs. March 30, 2006
1920 - added the Moose::Cookbook with 5 recipes,
1921 describing all the stuff Moose can do.
1924 - fixed an issue with &extends super class loading
1925 it now captures errors and deals with inline
1926 packages correctly (bug found by mst, solution
1928 - added super/override & inner/augment features
1929 - added tests and docs for these
1932 - BUILDALL now takes a reference of the %params
1933 that are passed to &new, and passes that to
1936 * Moose::Util::TypeConstraints
1937 - Type constraints now survive runtime reloading
1938 - added test for this
1940 * Moose::Meta::Class
1941 - fixed the way attribute defaults are handled
1942 during instance construction (bug found by chansen)
1944 * Moose::Meta::Attribute
1945 - read-only attributes now actually enforce their
1946 read-only-ness (this corrected in Class::MOP as
1949 0.02 Tues. March 21, 2006
1951 - many more tests, fixing some bugs and
1953 - &extends now loads the base module with
1955 - added UNIVERSAL::require to the
1958 - each new Moose class will also create
1959 and register a subtype of Object which
1960 correspond to the new Moose class.
1961 - the 'isa' option in &has now only
1962 accepts strings, and will DWIM in
1965 * Moose::Util::TypeConstraints
1966 - added type coercion features
1967 - added tests for this
1968 - added support for this in attributes
1969 and instance construction
1971 - type construction no longer creates a
1972 function, it registers the type instead.
1973 - added several functions to get the
1977 - BUILDALL and DEMOLISHALL were broken
1978 because of a mis-named hash key, Whoops :)
1980 * Moose::Meta::Attribute
1981 - adding support for coercion in the
1982 autogenerated accessors
1984 * Moose::Meta::Class
1985 - adding support for coercion in the
1986 instance construction
1988 * Moose::Meta::TypeConstraint
1989 * Moose::Meta::TypeCoercion
1990 - type constraints and coercions are now
1991 full fledges meta-objects
1993 0.01 Wed. March 15, 2006
1994 - Moooooooooooooooooose!!!