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 0.61 Fri November 7, 2008
12 * Moose::Meta::Attribute
13 - When passing a role to handles, it will be loaded if necessary
17 - Method objects returned by get_method (and other methods)
18 Could end up being returned without an associated_metaclass
19 attribute. Removing get_method_map, which is provided by
20 Class::MOP::Class, fixed this. The Moose version did nothing
21 different from its parent except introduce a bug. (Dave Rolsky)
22 - added tests for this (jdv79)
25 - Added a $VERSION to all .pm files which didn't have one. Fixes
26 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
28 * Moose::Cookbook::Basics::Recipe4
29 * Moose::Cookbook::Basics::Recipe6
30 - These files had spaces on the first line of the SYNOPSIS, as
31 opposed to a totally empty line. According to RT #40432, this
32 confuses POD parsers. (Dave Rolsky)
34 0.60 Fri October 24, 2008
36 - Passing "-traits" when loading Moose caused the Moose.pm
37 exports to be broken. Reported by t0m. (Dave Rolsky)
38 - Tests for this bug. (t0m)
41 - Change resolve_metaclass alias to use the new
42 load_first_existing_class function. This makes it a lot
43 simpler, and also around 5 times faster. (t0m)
44 - Add caching to resolve_metaclass_alias, which gives an order
45 of magnitude speedup to things which repeatedly call the
46 Moose::Meta::Attribute->does method, notably MooseX::Storage
49 * Moose::Util::TypeConstraint
50 - Put back the changes for parameterized constraints that
51 shouldn't have been removed in 0.59. We still cannot parse
52 them, but MooseX modules can create them in some other
53 way. See the 0.58 changes for more details. (jnapiorkowski)
54 - Changed the way subtypes are created so that the job is
55 delegated to a type constraint parent. This clears up some
56 hardcoded checking and should allow correct subtypes of
57 Moose::Meta::Type::Constraint. Don't rely on this new API too
58 much (create_child_type) because it may go away in the
59 future. (jnapiorkowski)
61 * Moose::Meta::TypeConstraint::Union
62 - Type constraint names are sorted as strings, not numbers.
65 * Moose::Meta::TypeConstraint::Parameterizable
66 - New parameterize method. This can be used as a factory method
67 to make a new type constraint with a given parameterized
69 - added tests (jnapiorkowski)
71 0.59 Tue October 14, 2008
73 - Add abridged documentation for builder/default/initializer/
74 predicate, and link to more details sections in
75 Class::MOP::Attribute. (t0m)
77 * Moose::Util::TypeConstraints
78 - removed prototypes from all but the &-based stuff (mst)
80 * Moose::Util::TypeConstraints
81 - Creating a anonymous subtype with both a constraint and a
82 message failed with a very unhelpful error, but should just
83 work. Reported by t0m. (Dave Rolsky)
86 - Some tests that used Test::Warn if it was available failed
87 with older versions of Test::Warn. Reported by Fayland. (Dave
89 - Test firing behavior of triggers in relation to builder/default/
91 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
92 kinds of supported type. (t0m)
95 - In create(), do not pass "roles" option to the superclass
96 - added related test that creates an anon metaclass with
99 * Moose::Meta::TypeConstraint::Class
100 * Moose::Meta::TypeConstraint::Role
101 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
102 other types (as per change in 0.55_02). (t0m)
104 * Moose::Meta::TypeConstraint::Registry
105 - Fix warning when dealing with unknown type names (t0m)
107 * Moose::Util::TypeConstraints
108 - Reverted changes from 0.58 related to handle parameterized
109 types. This caused random failures on BSD and Win32 systems,
110 apparently related to the regex engine. This means that Moose
111 can no longer parse structured type constraints like
112 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
113 supported in a slightly different way via MooseX::Types some
114 time in the future. (Dave Rolsky)
116 0.58 Sat September 20, 2008
117 !! This release has an incompatible change regarding !!
118 !! how roles add methods to a class !!
120 * Roles and role application
121 ! Roles now add methods by calling add_method, not
122 alias_method. They make sure to always provide a method
123 object, which will be cloned internally. This means that it is
124 now possible to track the source of a method provided by a
125 role, and even follow its history through intermediate roles.
127 This means that methods added by a role now show up when
128 looking at a class's method list/map. (Dave Rolsky)
131 - From this release on, we'll try to maintain a list of
132 conflicting modules, and warn you if you have one
133 installed. For example, this release conflicts with ...
134 - MooseX::Singleton <= 0.11
135 - MooseX::Params::Validate <= 0.05
138 In general, we try to not break backwards compatibility for
139 most Moose users, but MooseX modules and other code which
140 extends Moose's metaclasses is often affected by very small
141 changes in the Moose internals.
143 * Moose::Meta::Method::Delegation
144 * Moose::Meta::Attribute
145 - Delegation methods now have their own method class. (Dave
148 * Moose::Meta::TypeConstraint::Parameterizable
149 - Added a new method 'parameterize' which is basically a factory
150 for the containing constraint. This makes it easier to create
151 new types of parameterized constraints. (jnapiorkowski)
153 * Moose::Meta::TypeConstraint::Union
154 - Changed the way Union types canonicalize their names to follow
155 the normalized TC naming rules, which means we strip all
156 whitespace. (jnapiorkowski)
158 * Moose::Util::TypeConstraints
159 - Parameter and Union args are now sorted, this makes Int|Str
160 the same constraint as Str|Int. (jnapiorkowski)
161 - Changes to the way Union types are parsed to more correctly
162 stringify their names. (jnapiorkowski)
163 - When creating a parameterized type, we now use the new
164 parameterize method. (jnapiorkowski)
165 - Incoming type constraint strings are now normalized to remove
166 all whitespace differences. (jnapiorkowski)
167 - Changed the way we parse type constraint strings so that we now
168 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
169 constraints. This lays the foundation for more flexible type
170 constraint implementations.
172 * Tests and docs for all the above. (jnapiorkowski)
176 - Moose::Exporter will no longer remove a subroutine that the
177 exporting package re-exports. Moose re-exports the
178 Carp::confess function, among others. The reasoning is that we
179 cannot know whether you have also explicitly imported those
180 functions for your own use, so we err on the safe side and
181 always keep them. (Dave Rolsky)
182 - added tests for this (rafl)
185 - Changes to how we fix metaclass compatibility that are much
186 too complicated to go into. The summary is that Moose is much
187 less likely to complain about metaclass incompatibility
188 now. In particular, if two metaclasses differ because
189 Moose::Util::MetaRole was used on the two corresponding
190 classes, then the difference in roles is reconciled for the
191 subclass's metaclass. (Dave Rolsky)
192 - Squashed an warning in _process_attribute (thepler)
195 - throw exceptions (sooner) for invalid attribute names (thepler)
196 - added tests for this (thepler)
198 * Moose::Util::MetaRole
199 - If you explicitly set a constructor or destructor class for a
200 metaclass object, and then applied roles to the metaclass,
201 that explicitly set class would be lost and replaced with the
205 * Moose::Meta::Attribute
206 * Moose::Meta::Method
209 * Moose::Error::Default
210 * Moose::Error::Croak
211 * Moose::Error::Confess
212 - All instances of confess() changed to use overridable
213 C<throw_error> method. This method ultimately calls a class
214 constructor, and you can change the class being called. In
215 addition, errors now pass more information than just a string.
216 The default C<error_class> behaves like C<Carp::confess>, so
217 the behavior is not visibly different for end users.
219 0.57 Wed September 3, 2008
221 - A new bit of doc intended to introduce folks familiar with
222 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
225 - Shows examples of two classes, each done first with and then
226 without Moose. This makes a nice parallel to
227 Moose::Intro. (Dave Rolsky)
229 * Moose::Util::TypeConstraints
230 - Fixed a bug in find_or_parse_type_constraint so that it
231 accepts a Moose::Meta::TypeConstraint object as the parent
232 type, not just a name (jnapiorkowski)
233 - added tests (jnapiorkowski)
236 - If Sub::Name was not present, unimporting failed to actually
237 remove some sugar subs, causing test failures (Dave Rolsky)
239 0.56 Mon September 1, 2008
240 For those not following the series of dev releases, there are
241 several major changes in this release of Moose.
242 ! Moose::init_meta should now be called as a method. See the
245 - Major performance improvements by nothingmuch.
247 - New modules for extension writers, Moose::Exporter and
248 Moose::Util::MetaRole by Dave Rolsky.
250 - Lots of doc improvements and additions, especially in the
255 * Removed all references to the experimental-but-no-longer-needed
256 Moose::Meta::Role::Application::ToMetaclassInstance.
258 * Require Class::MOP 0.65.
260 0.55_04 Sat August 30, 2008
261 * Moose::Util::MetaRole
262 * Moose::Cookbook::Extending::Recipe2
263 - This simplifies the application of roles to any meta class, as
264 well as the base object class. Reimplemented metaclass traits
265 using this module. (Dave Rolsky)
267 * Moose::Cookbook::Extending::Recipe1
268 - This a new recipe, an overview of various ways to write Moose
269 extensions (Dave Rolsky)
271 * Moose::Cookbook::Extending::Recipe3
272 * Moose::Cookbook::Extending::Recipe4
273 - These used to be Extending::Recipe1 and Extending::Recipe2,
276 0.55_03 Fri August 29, 2008
277 * No changes from 0.55_02 except increasing the Class::MOP
278 dependency to 0.64_07.
280 0.55_02 Fri August 29, 2008
281 * Makefile.PL and Moose.pm
282 - explicitly require Perl 5.8.0+ (Dave Rolsky)
284 * Moose::Util::TypeConstraints
285 - Fix warnings from find_type_constraint if the type is not
288 * Moose::Meta::TypeConstraint
289 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
290 return false if the type you specify cannot be found in the
291 type registry, rather than throwing an unhelpful and
292 coincidental exception. (t0m).
293 - added docs & test for this (t0m)
295 * Moose::Meta::TypeConstraint::Registry
296 - add_type_constraint now throws an exception if a parameter is
298 - added docs & test for this (t0m)
300 * Moose::Cookbook::FAQ
301 - Added a faq entry on the difference between "role" and "trait"
305 - Fixed a bug that caused role composition to not see a required
306 method when that method was provided by another role being
307 composed at the same time. (Dave Rolsky)
308 - test and bug finding (tokuhirom)
310 0.55_01 Wed August 20, 2008
312 !! Calling Moose::init_meta as a function is now !!
313 !! deprecated. Please see the Moose.pm docs for details. !!
315 * Moose::Meta::Method::Constructor
316 - Fix inlined constructor so that values produced by default
317 or builder methods are coerced as required. (t0m)
318 - added test for this (t0m)
320 * Moose::Meta::Attribute
321 - A lazy attribute with a default or builder did not attempt to
322 coerce the default value. The immutable code _did_
324 - added test for this (t0m)
327 - This is a new helper module for writing "Moose-alike"
328 modules. This should make the lives of MooseX module authors
329 much easier. (Dave Rolsky)
332 * Moose::Cookbook::Meta::Recipe5
333 - Implemented metaclass traits (and wrote a recipe for it):
335 use Moose -traits => 'Foo'
337 This should make writing small Moose extensions a little
340 * Moose::Cookbook::Basics::Recipe1
341 - Removed any examples of direct hashref access, and applied an
342 editorial axe to reduce verbosity. (Dave Rolsky)
344 * Moose::Cookbook::Basics::Recipe1
345 - Also applied an editorial axe here. (Dave Rolsky)
348 * Moose::Cookbook::Extending::Recipe1
349 * Moose::Cookbook::Extending::Recipe2
350 - Rewrote extending and embedding moose documentation and
351 recipes to use Moose::Exporter (Dave Rolsky)
355 - These two modules now warn when you load them from the main
356 package "main" package, because we will not export sugar to
357 main. Previously it just did nothing. (Dave Rolsky)
360 - Now provide an init_meta method just like Moose.pm, and you
361 can call this to provide an alternate role metaclass. (Dave
362 Rolsky and nothingmuch)
363 - get_method_map now respects the package cache flag (nothingmuch)
366 - Two new methods - add_method and wrap_method_body
370 - Optimizations including allowing constructors to accept hash
371 refs, making many more classes immutable, and making
372 constructors immutable. (nothingmuch)
374 0.55 Sun August 3, 2008
375 * Moose::Meta::Attribute
376 - breaking down the way 'handles' methods are
377 created so that the process can be more easily
378 overridden by subclasses (stevan)
380 * Moose::Meta::TypeConstraint
381 - fixing what is passed into a ->message with
382 the type constraints (RT #37569)
383 - added tests for this (Charles Alderman)
385 * Moose::Util::TypeConstraints
386 - fix coerce to accept anon types like subtype can (mst)
389 - reorganized the recipes into sections - Basics, Roles, Meta,
390 Extending - and wrote abstracts for each section (Dave Rolsky)
392 * Moose::Cookbook::Basics::Recipe10
393 - A new recipe that demonstrates operator overloading
394 in combination with Moose. (bluefeet)
396 * Moose::Cookbook::Meta::Recipe1
397 - an introduction to what meta is and why you'd want to make
398 your own metaclass extensions (Dave Rolsky)
400 * Moose::Cookbook::Meta::Recipe4
401 - a very simple metaclass example (Dave Rolsky)
403 * Moose::Cookbook::Extending::Recipe1
404 - how to write a Moose-alike module to use your own object base
407 * Moose::Cookbook::Extending::Recipe2
408 - how to write modules with an API just like C<Moose.pm> (Dave
412 - Tons of fixes, both syntactical and grammatical (Dave
413 Rolsky, Paul Fenwick)
415 0.54 Thurs. July 3, 2008
416 ... this is not my day today ...
418 * Moose::Meta::Attribute
419 - fixed legal_options_for_inheritance such that
420 clone_and_inherit options still works for
421 Class::MOP::Attribute objects and therefore
422 does not break MooseX::AttributeHelpers
425 0.53 Thurs. July 3, 2008
426 * Whoops, I guess I should run 'make manifest' before
427 actually releasing the module. No actual changes
428 in this release, except the fact that it includes
429 the changes that I didn't include in the last
432 0.52 Thurs. July 3, 2008
434 - added "FEATURE REQUESTS" section to the Moose docs
435 to properly direct people (stevan) (RT #34333)
436 - making 'extends' croak if it is passed a Role since
437 this is not ever something you want to do
438 (fixed by stevan, found by obra)
439 - added tests for this (stevan)
442 - adding support for DOES (as in UNIVERSAL::DOES)
444 - added test for this
446 * Moose::Meta::Attribute
447 - added legal_options_for_inheritance (wreis)
448 - added tests for this (wreis)
450 * Moose::Cookbook::Snacks::*
451 - removed some of the unfinished snacks that should
452 not have been released yet. Added some more examples
453 to the 'Keywords' snack. (stevan)
455 * Moose::Cookbook::Style
456 - added general Moose "style guide" of sorts to the
457 cookbook (nothingmuch) (RT #34335)
460 - added more BUILDARGS tests (stevan)
462 0.51 Thurs. Jun 26, 2008
464 - add unimport so "no Moose::Role" actually does
467 * Moose::Meta::Role::Application::ToRole
468 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
469 order to provide its own implementation, that method still got
470 added to the list of required methods for consumers of
471 RoleB. Now an aliased method is only added to the list of
472 required methods if the role doing the aliasing does not
473 provide its own implementation. See Recipe 11 for an example
474 of all this. (Dave Rolsky)
475 - added tests for this
477 * Moose::Meta::Method::Constructor
478 - when a single argument that wasn't a hashref was provided to
479 an immutabilized constructor, the error message was very
480 unhelpful, as opposed to the non-immutable error. Reported by
482 - added test for this (Dave Rolsky)
484 * Moose::Meta::Attribute
485 - added support for meta_attr->does("ShortAlias") (sartak)
486 - added tests for this (sartak)
487 - moved the bulk of the `handles` handling to the new
488 install_delegation method (Stevan)
491 - Added BUILDARGS, a new step in new()
493 * Moose::Meta::Role::Application::RoleSummation
494 - fix typos no one ever sees (sartak)
496 * Moose::Util::TypeConstraints
497 * Moose::Meta::TypeConstraint
498 * Moose::Meta::TypeCoercion
499 - Attempt to work around the ??{ } vs. threads issue
501 - Some null_constraint optimizations
503 0.50 Thurs. Jun 11, 2008
504 - Fixed a version number issue by bumping all modules
507 0.49 Thurs. Jun 11, 2008
508 !! This version now approx. 20-25% !!
509 !! faster with new Class::MOP 0.59 !!
511 * Moose::Meta::Attribute
512 - fixed how the is => (ro|rw) works with
513 custom defined reader, writer and accessor
515 - added docs for this (TODO).
516 - added tests for this (Thanks to Penfold)
517 - added the custom attribute alias for regular
518 Moose attributes which is "Moose"
519 - fix builder and default both being used
524 Moose::Meta::Attribute
526 Moose::Meta::Role::Composite
527 Moose::Util::TypeConstraints
528 - switched usage of reftype to ref because
532 - changing add_package_symbol to use the new
536 - fixed how DEMOLISHALL is called so that it
537 can be overrided in subclasses (thanks to Sartak)
538 - added test for this (thanks to Sartak)
540 * Moose::Util::TypeConstraints
541 - move the ClassName type check code to
542 Class::MOP::is_class_loaded (thanks to Sartak)
544 * Moose::Cookbook::Recipe11
545 - add tests for this (thanks to tokuhirom)
547 0.48 Thurs. May 29, 2008
548 (early morning release engineering)--
550 - fixing the version in Moose::Meta::Method::Destructor
551 which was causing the indexer to choke
553 0.47 Thurs. May 29, 2008
554 (late night release engineering)--
556 - fixing the version is META.yml, no functional
557 changes in this release
559 0.46 Wed. May 28, 2008
560 !! This version now approx. 20-25% !!
561 !! faster with new Class::MOP 0.57 !!
564 - some optimizations of the &initialize method
565 since it is called so often by &meta
569 - now use the get_all_package_symbols from the
570 updated Class::MOP, test suite is now 10 seconds
573 * Moose::Meta::Method::Destructor
574 - is_needed can now also be called as a class
575 method for immutablization to check if the
576 destructor object even needs to be created
579 * Moose::Meta::Method::Destructor
580 Moose::Meta::Method::Constructor
581 - added more descriptive error message to help
582 keep people from wasting time tracking an error
583 that is easily fixed by upgrading.
585 0.45 Saturday, May 24, 2008
587 - Because of work in Class::MOP 0.57, all
588 XS based functionality is now optional
589 and a Pure Perl version is supplied
590 - the CLASS_MOP_NO_XS environment variable
591 can now be used to force non-XS versions
593 - several of the packages have been tweaked
594 to take care of this, mostly we added
595 support for the package_name and name
596 variables in all the Method metaclasses
597 - before/around/after method modifiers now
598 support regexp matching of names
599 (thanks to Takatoshi Kitano)
600 - tests added for this
601 - NOTE: this only works for classes, it
602 is currently not supported in roles,
603 but, ... patches welcome
604 - All usage of Carp::confess have been replaced
605 by Carp::croak in the "keyword" functions since
606 the stack trace is usually not helpful
609 - All usage of Carp::confess have been replaced
610 by Carp::croak in the "keyword" functions since
611 the stack trace is usually not helpful
612 - The 'has' keyword for roles now accepts the
613 same array ref form that Moose.pm does
614 (has [qw/foo bar/] => (is => 'rw', ...))
615 - added test for this
617 * Moose::Meta::Attribute
618 - trigger on a ro-attribute is no longer an
619 error, as it's useful to trigger off of the
623 - added same 'add_package_symbol' fix as in
627 - does_role now handles non-Moose classes
629 - added tests for this
630 - added the 'add_method_modifier' function
631 (thanks to Takatoshi Kitano)
633 * Moose::Util::TypeConstraints
634 - subtypes of parameterizable types now are
635 themselves parameterizable types
637 * Moose::Meta::Method::Constructor
638 - fixed bug where trigger was not being
639 called by the inlined immutable
641 - added test for this (thanks to Caelum)
643 * Moose::Meta::Role::Application::ToInstance
644 - now uses the metaclass of the instance
645 (if possible) to create the anon-class
646 (thanks Jonathan Rockway)
648 * Moose::Cookbook::Recipe22
649 - added the meta-attribute trait recipe
653 - fixed hash-ordering test bug that was
654 causing occasional cpantester failures
655 - renamed the t/000_recipe/*.t tests to be
656 more descriptive (thanks to Sartak)
658 0.44 Sat. May 10, 2008
660 - made make_immutable warning cluck to
661 show where the error is (thanks mst)
664 - BUILDALL and DEMOLISHALL now call
665 ->body when looping through the
666 methods, to avoid the overloaded
668 - fixed issue where DEMOLISHALL was
669 eating the $@ values, and so not
670 working correctly, it still kind of
671 eats them, but so does vanilla perl
672 - added tests for this
674 * Moose::Cookbook::Recipe7
675 - added new recipe for immutable
676 functionality (thanks Dave Rolsky)
678 * Moose::Cookbook::Recipe9
679 - added new recipe for builder and
680 lazy_build (thanks Dave Rolsky)
682 * Moose::Cookbook::Recipe11
683 - added new recipe for method aliasing
684 and exclusion with Roles (thanks Dave Rolsky)
687 - fixed Win32 test failure (thanks spicyjack)
689 ~ removed Build.PL and Module::Build compat
690 since Module::Install has done that.
692 0.43 Wed. April, 30, 2008
694 drink more coffee before
695 doing release engineering
697 - whoops, forgot to do the smolder tests,
698 and we broke some of the custom meta-attr
699 modules. This fixes that.
701 0.42 Mon. April 28, 2008
702 - some bad tests slipped by, nothing else
703 changed in this release (cpantesters++)
705 - upped the Class::MOP dependency to 0.55
706 since we have tests which need the C3
709 0.41 Mon. April 28, 2008
710 ~~ numerous documentation updates ~~
712 - Changed all usage of die to Carp::croak for better
713 error reporting (initial patch by Tod Hagan)
716 - the make_immutable keyword is now deprecated, don't
717 use it in any new code and please fix your old code
718 as well. There will be 2 releases, and then it will
724 - refactored the way inner and super work to avoid
725 any method/@ISA cache penalty (nothingmuch)
728 - fixing &new_object to make sure trigger gets the
729 coerced value (spotted by Charles Alderman on the
731 - added test for this
733 * Moose::Meta::Method::Constructor
734 - immutable classes which had non-lazy attributes were calling
735 the default generating sub twice in the constructor. (bug
736 found by Jesse Luehrs, fixed by Dave Rolsky)
737 - added tests for this (Dave Rolsky)
738 - fix typo in initialize_body method (nothingmuch)
740 * Moose::Meta::Method::Destructor
741 - fix typo in initialize_body method (nothingmuch)
743 * Moose::Meta::Method::Overriden
744 Moose::Meta::Method::Augmented
745 - moved the logic for these into their own
746 classes (nothingmuch)
748 * Moose::Meta::Attribute
749 - inherited attributes may now be extended without
750 restriction on the type ('isa', 'does') (Sartak)
751 - added tests for this (Sartak)
752 - when an attribute property is malformed (such as lazy without
753 a default), give the name of the attribute in the error
755 - added the &applied_traits and &has_applied_traits methods
756 to allow introspection of traits
757 - added tests for this
758 - moved 'trait' and 'metaclass' argument handling to here from
760 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
761 '+foo' syntax) (nothingmuch)
762 - added tests for this (t0m)
765 - localize $@ inside DEMOLISHALL to avoid it
766 eating $@ (found by Ernesto)
767 - added test for this (thanks to Ernesto)
769 * Moose::Util::TypeConstraints
770 - &find_type_constraint now DWIMs when given an
771 type constraint object or name (nothingmuch)
772 - &find_or_create_type_constraint superseded with a number of more
774 - find_or_create_{isa,does}_type_constraint
775 - find_or_parse_type_constraint
777 * Moose::Meta::TypeConstraint
778 Moose::Meta::TypeConstraint::Class
779 Moose::Meta::TypeConstraint::Role
780 Moose::Meta::TypeConstraint::Enum
781 Moose::Meta::TypeConstraint::Union
782 Moose::Meta::TypeConstraint::Parameterized
783 - added the &equals method for comparing two type
784 constraints (nothingmuch)
785 - added tests for this (nothingmuch)
787 * Moose::Meta::TypeConstraint
788 - add the &parents method, which is just an alias to &parent.
789 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
791 * Moose::Meta::TypeConstraint::Class
792 - added the class attribute for introspection purposes
794 - added tests for this
796 * Moose::Meta::TypeConstraint::Enum
797 Moose::Meta::TypeConstraint::Role
798 - broke these out into their own classes (nothingmuch)
800 * Moose::Cookbook::Recipe*
801 - fixed references to test file locations in the POD
802 and updated up some text for new Moose features
806 - Added &resolve_metaclass_alias, a helper function for finding an actual
807 class for a short name (e.g. in the traits list)
809 0.40 Fri. March 14, 2008
810 - I hate Pod::Coverage
812 0.39 Fri. March 14, 2008
814 - documenting the use of '+name' with attributes
815 that come from recently composed roles. It makes
816 sense, people are using it, and so why not just
817 officially support it.
818 - fixing the 'extends' keyword so that it will not
819 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
822 - added the perl -Moose=+Class::Name feature to allow
823 monkeypatching of classes in one liners
826 - fixing the 'apply_all_roles' keyword so that it will not
827 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
830 - added ->create method which now supports roles (thanks to jrockway)
831 - added tests for this
832 - added ->create_anon_class which now supports roles and caching of
833 the results (thanks to jrockway)
834 - added tests for this
835 - made ->does_role a little more forgiving when it is
836 checking a Class::MOP era metaclasses.
838 * Moose::Meta::Role::Application::ToInstance
839 - it is now possible to pass extra params to be used when
840 a role is applied to an the instance (rebless_params)
841 - added tests for this
843 * Moose::Util::TypeConstraints
844 - class_type now accepts an optional second argument for a
845 custom message. POD anotated accordingly (groditi)
846 - added tests for this
847 - it is now possible to make anon-enums by passing 'enum' an
848 ARRAY ref instead of the $name => @values. Everything else
850 - added tests for this
853 - making test for using '+name' on attributes consumed
854 from a role, it works and makes sense too.
856 * Moose::Meta::Attribute
857 - fix handles so that it doesn't return nothing
858 when the method cannot be found, not sure why
859 it ever did this originally, this means we now
860 have slightly better support for AUTOLOADed
862 - added more delegation tests
863 - adding ->does method to this so as to better
864 support traits and their introspection.
865 - added tests for this
868 - localizing the Data::Dumper configurations so
869 that it does not pollute others (RT #33509)
870 - made ->does a little more forgiving when it is
871 passed Class::MOP era metaclasses.
873 0.38 Fri. Feb. 15, 2008
874 * Moose::Meta::Attribute
875 - fixed initializer to correctly do
876 type checking and coercion in the
878 - added tests for this
881 - fixed some finicky tests (thanks to konobi)
883 0.37 Thurs. Feb. 14, 2008
885 - fixed some details in Moose::init_meta
886 and its superclass handling (thanks thepler)
887 - added tests for this (thanks thepler)
888 - 'has' now dies if you don't pass in name
890 - added the 'make_immutable' keyword as a shortcut
894 Moose::Meta::Method::Constructor
895 Moose::Meta::Attribute
896 - making (init_arg => undef) work here too
897 (thanks to nothingmuch)
899 * Moose::Meta::Attribute
900 Moose::Meta::Method::Constructor
901 Moose::Meta::Method::Accessor
902 - make lazy attributes respect attr initializers (rjbs)
903 - added tests for this
905 * Moose::Util::TypeConstraints
906 Moose::Util::TypeConstraints::OptimizedConstraints
907 Moose::Meta::TypeConstraints
908 Moose::Meta::Attribute
909 Moose::Meta::Method::Constructor
910 Moose::Meta::Method::Accessor
911 - making type errors use the
912 assigned message (thanks to Sartak)
913 - added tests for this
915 * Moose::Meta::Method::Destructor
916 - making sure DESTROY gets inlined properly
917 with successive DEMOLISH calls (thanks to manito)
919 * Moose::Meta::Attribute
920 Moose::Meta::Method::Accessor
921 - fixed handling of undef with type constraints
923 - added tests for this
926 - added &get_all_init_args and &get_all_attribute_values
927 (thanks to Sartak and nothingmuch)
929 0.36 Sat. Jan. 26, 2008
931 Moose::Meta::Attribute
932 - role type tests now support when roles are
933 applied to non-Moose classes (found by ash)
934 - added tests for this (thanks to ash)
935 - couple extra tests to boost code coverage
937 * Moose::Meta::Method::Constructor
938 - improved fix for handling Class::MOP attributes
939 - added test for this
942 - handled the add_attribute($attribute_meta_object)
944 - added test for this
946 0.35 Tues. Jan. 22, 2008
947 * Moose::Meta::Method::Constructor
948 - fix to make sure even Class::MOP attributes
949 are handled correctly (Thanks to Dave Rolsky)
950 - added test for this (also Dave Rolsky)
953 - improved error message on _apply_all_roles,
954 you should now use Moose::Util::apply_all_roles
955 and you shouldnt have been using a _ prefixed
956 method in the first place ;)
958 0.34 Mon. Jan. 21, 2008
959 ~~~ more misc. doc. fixes ~~~
960 ~~ updated copyright dates ~~
962 Moose is now a postmodern object system :)
963 - (see the POD for details)
965 * <<Role System Refactoring>>
966 - this release contains a major reworking and
967 cleanup of the role system
968 - 100% backwards compat.
969 - Role application now restructured into seperate
970 classes based on type of applicants
971 - Role summation (combining of more than one role)
972 is much cleaner and anon-classes are no longer
974 - new Composite role metaclass
975 - runtime application of roles to instances
976 is now more efficient and re-uses generated
977 classes when applicable
979 * <<New Role composition features>>
980 - methods can now be excluded from a given role
982 - methods can now be aliased to another name (and
983 still retain the original as well)
985 * Moose::Util::TypeConstraints::OptimizedConstraints
986 - added this module (see above)
989 - fixed the &_process_attribute method to be called
990 by &add_attribute, so that the API is now correct
992 * Moose::Meta::Method::Accessor
993 - fixed bug when passing a list of values to
994 an accessor would get (incorrectly) ignored.
995 Thanks to Sartak for finding this ;)
996 - added tests for this (Sartak again)
998 * Moose::Meta::Method::Accessor
999 Moose::Meta::Method::Constructor
1000 Moose::Meta::Attribute
1001 Moose::Meta::TypeConstraint
1002 Moose::Meta::TypeCoercion
1003 - lots of cleanup of such things as:
1005 - type constraint handling
1006 - error handling/messages
1007 (thanks to nothingmuch)
1009 * Moose::Meta::TypeConstraint::Parameterizable
1010 - added this module to support the refactor
1011 in Moose::Meta::TypeConstraint::Parameterized
1013 * Moose::Meta::TypeConstraint::Parameterized
1014 - refactored how these types are handled so they
1015 are more generic and not confined to ArrayRef
1019 - shortened some file names for better VMS support (RT #32381)
1021 0.33 Fri. Dec. 14, 2007
1022 !! Moose now loads 2 x faster !!
1023 !! with new Class::MOP 0.49 !!
1025 ++ new oose.pm module to make command line
1026 Moose-ness easier (see POD docs for more)
1028 * Moose::Meta::Class
1030 - several tweaks to take advantage of the
1031 new method map caching in Class::MOP
1033 * Moose::Meta::TypeConstraint::Parameterized
1034 - allow subtypes of ArrayRef and HashRef to
1035 be used as a container (sartak)
1036 - added tests for this
1037 - basic support for coercion to ArrayRef and
1038 HashRef for containers (sartak)
1039 - added tests for this
1041 * Moose::Meta::TypeCoercion
1042 - coercions will now create subtypes as needed
1043 so you can now add coercions to parameterized
1044 types without having to explictly define them
1045 - added tests for this
1047 * Moose::Meta::Method::Accessor
1048 - allow subclasses to decide whether we need
1049 to copy the value into a new variable (sartak)
1051 0.32 Tues. Dec. 4, 2007
1052 * Moose::Util::TypeConstraints
1053 - fixing how subtype aliases of unions work
1054 they should inherit the parent's coercion
1055 - added tests for this
1056 - you can now define multiple coercions on
1057 a single type at different times instead of
1058 having to do it all in one place
1059 - added tests for this
1061 * Moose::Meta::TypeConstraint
1062 - there is now a default constraint of sub { 1 }
1063 instead of Moose::Util::TypeConstraints setting
1066 * Moose::Meta::TypeCoercion
1067 * Moose::Meta::TypeCoercion::Union
1068 - added the &has_coercion_for_type and
1069 &add_type_coercions methods to support the
1070 new features above (although you cannot add
1071 more type coercions for Union types)
1073 0.31 Mon. Nov. 26, 2007
1074 * Moose::Meta::Attribute
1075 - made the +attr syntax handle extending types with
1076 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1077 now works if the original foo is an ArrayRef.
1078 - added tests for this.
1079 - delegation now works even if the attribute does not
1080 have a reader method using the get_read_method_ref
1081 method from Class::MOP::Attribute.
1082 - added tests for this
1083 - added docs for this
1085 * Moose::Util::TypeConstraints
1086 - passing no "additional attribute info" to
1087 &find_or_create_type_constraint will no longer
1088 attempt to create an __ANON__ type for you,
1089 instead it will just return undef.
1090 - added docs for this
1092 0.30 Fri. Nov. 23, 2007
1093 * Moose::Meta::Method::Constructor
1094 -builder related bug in inlined constructor. (groditi)
1096 * Moose::Meta::Method::Accessor
1097 - genereate unnecessary calls to predicates and refactor
1098 code generation for runtime speed (groditi)
1100 * Moose::Util::TypeConstraints
1101 - fix ClassName constraint to introspect symbol table (mst)
1102 - added more tests for this (mst)
1103 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1104 with work correctly.
1105 - added tests for this
1108 - adding the link to Recipie 11 (written by Sartak)
1109 - adding test for SYNOPSIS code
1112 - New tests for builder bug. Upon instantiation, if an
1113 attribute had a builder, no value and was not lazy the
1114 builder default was not getting run, oops. (groditi)
1116 0.29 Tues. Nov. 13, 2007
1117 * Moose::Meta::Attribute
1118 - Fix error message on missing builder method (groditi)
1120 * Moose::Meta::Method::Accessor
1121 - Fix error message on missing builder method (groditi)
1124 - Add test to check for the correct error message when
1125 builder method is missing (groditi)
1127 0.28 Tues. Nov. 13, 2007
1128 - 0.27 packaged incorrectly (groditi)
1130 0.27 Tues. Nov. 13, 2007
1131 * Moose::Meta::Attribute
1132 - Added support for the new builder option (groditi)
1133 - Added support for lazy_build option (groditi)
1134 - Changed slot initialization for predicate changes (groditi)
1136 * Moose::Meta::Method::Accessor
1137 - Added support for lazy_build option (groditi)
1138 - Fix inline methods to work with corrected predicate
1141 * Moose::Meta::Method::Constructor
1142 - Added support for lazy_build option (groditi)
1145 - tests for builder and lazy_build (groditi)
1147 * fixing some misc. bits in the docs that
1148 got mentioned on CPAN Forum & perlmonks
1151 - fixed how required methods are handled
1152 when they encounter overriden or modified
1153 methods from a class (thanks to confound).
1154 - added tests for this
1156 * Moose::Util::TypeConstraint
1157 - fixed the type notation parser so that
1158 the | always creates a union and so is
1159 no longer a valid type char (thanks to
1160 konobi, mugwump and #moose for working
1162 - added more tests for this
1164 0.26 Thurs. Sept. 27, 2007
1167 * Parameterized Types
1168 We now support parameterized collection types, such as:
1169 ArrayRef[Int] # array or integers
1170 HashRef[Object] # a hash with object values
1171 They can also be nested:
1172 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1173 And work with the type unions as well:
1174 ArrayRef[Int | Str] # array of integers of strings
1176 * Better Framework Extendability
1177 Moose.pm is now "extendable" such that it is now much
1178 easier to extend the framework and add your own keywords
1179 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1180 section of the Moose.pm docs.
1183 In an effort to begin documenting some of the various
1184 details of Moose as well as some common idioms, we have
1185 created Moose::Cookbook::Snacks as a place to find
1186 small (easily digestable) nuggets of Moose code.
1189 ~ Several doc updates/cleanup thanks to castaway ~
1191 - converted build system to use Module::Install instead of
1192 Module::Build (thanks to jrockway)
1195 - added all the meta classes to the immutable list and
1196 set it to inline the accessors
1197 - fix import to allow Sub::Exporter like { into => }
1198 and { into_level => } (perigrin)
1199 - exposed and documented init_meta() to allow better
1200 embedding and extending of Moose (perigrin)
1203 - complete re-organization of the test suite
1204 - added some new tests as well
1205 - finally re-enabled the Moose::POOP test since
1206 the new version of DBM::Deep now works again
1209 * Moose::Meta::Class
1210 - fixed very odd and very nasty recursion bug with
1212 - added tests for this (eilara)
1214 * Moose::Meta::Attribute
1215 Moose::Meta::Method::Constructor
1216 Moose::Meta::Method::Accessor
1217 - fixed issue with overload::Overloaded getting called
1218 on non-blessed items. (RT #29269)
1219 - added tests for this
1221 * Moose::Meta::Method::Accessor
1222 - fixed issue with generated accessor code making
1223 assumptions about hash based classes (thanks to dexter)
1225 * Moose::Coookbook::Snacks
1226 - these are bits of documentation, not quite as big as
1227 Recipes but which have no clear place in the module docs.
1228 So they are Snacks! (horray for castaway++)
1230 * Moose::Cookbook::Recipe4
1231 - updated it to use the new ArrayRef[MyType] construct
1232 - updated the accompanying test as well
1234 +++ Major Refactor of the Type Constraint system +++
1235 +++ with new features added as well +++
1237 * Moose::Util::TypeConstraint
1238 - no longer uses package variable to keep track of
1239 the type constraints, now uses the an instance of
1240 Moose::Meta::TypeConstraint::Registry to do it
1241 - added more sophisticated type notation parsing
1243 - added tests for this
1245 * Moose::Meta::TypeConstraint
1246 - some minor adjustments to make subclassing easier
1247 - added the package_defined_in attribute so that we
1248 can track where the type constraints are created
1250 * Moose::Meta::TypeConstraint::Union
1251 - this is now been refactored to be a subclass of
1252 Moose::Meta::TypeConstraint
1254 * Moose::Meta::TypeCoercion::Union
1255 - this has been added to service the newly refactored
1256 Moose::Meta::TypeConstraint::Union and is itself
1257 a subclass of Moose::Meta::TypeCoercion
1259 * Moose::Meta::TypeConstraint::Parameterized
1260 - added this module (taken from MooseX::AttributeHelpers)
1261 to help construct nested collection types
1262 - added tests for this
1264 * Moose::Meta::TypeConstraint::Registry
1265 - added this class to keep track of type constraints
1267 0.25 Mon. Aug. 13, 2007
1269 - Documentation update to reference Moose::Util::TypeConstraints
1270 under 'isa' in 'has' for how to define a new type
1271 (thanks to shlomif).
1273 * Moose::Meta::Attribute
1274 - required attributes now will no longer accept undef
1275 from the constructor, even if there is a default and lazy
1276 - added tests for this
1277 - default subroutines must return a value which passes the
1279 - added tests for this
1281 * Moose::Meta::Attribute
1282 * Moose::Meta::Method::Constructor
1283 * Moose::Meta::Method::Accessor
1284 - type-constraint tests now handle overloaded objects correctly
1285 in the error message
1286 - added tests for this (thanks to EvanCarroll)
1288 * Moose::Meta::TypeConstraint::Union
1289 - added (has_)hand_optimized_constraint to this class so that
1290 it behaves as the regular Moose::Meta::TypeConstraint does.
1293 - large refactoring of this code
1294 - added several more tests
1295 - tests for subtle conflict resolition issues
1296 added, but not currently running
1299 * Moose::Cookbook::Recipe7
1300 - added new recipe for augment/inner functionality
1302 - added test for this
1305 - a formal definition of roles (still in progress)
1308 - utilities for easier working with Moose classes
1309 - added tests for these
1312 - This contains Moose specific test functions
1313 - added tests for these
1315 0.24 Tues. July 3, 2007
1316 ~ Some doc updates/cleanup ~
1318 * Moose::Meta::Attribute
1319 - added support for roles to be given as parameters
1320 to the 'handles' option.
1321 - added tests and docs for this
1322 - the has '+foo' attribute form now accepts changes to
1323 the lazy option, and the addition of a handles option
1324 (but not changing the handles option)
1325 - added tests and docs for this
1328 - required methods are now fetched using find_method_by_name
1329 so that required methods can come from superclasses
1330 - adjusted tests for this
1332 0.23 Mon. June 18, 2007
1333 * Moose::Meta::Method::Constructor
1334 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1335 * Moose::Meta::Class
1336 - Modify make_immutable to work with the new Class::MOP immutable
1337 mechanism + POD + very basic test (groditi)
1338 * Moose::Meta::Attribute
1339 - Fix handles to use goto() so that caller() comes out properly on
1340 the other side (perigrin)
1342 0.22 Thurs. May 31, 2007
1343 * Moose::Util::TypeConstraints
1344 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1345 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1346 prototypes for functions
1347 - added the ClassName type constraint, this checks for strings
1348 which will respond true to ->isa(UNIVERSAL).
1349 - added tests and docs for this
1350 - subtyping just in name now works correctly by making the
1351 default for where be { 1 }
1352 - added test for this
1354 * Moose::Meta::Method::Accessor
1355 - coerce and lazy now work together correctly, thanks to
1356 merlyn for finding this bug
1357 - tests added for this
1358 - fix reader presedence bug in Moose::Meta::Attribute + tests
1361 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1362 a HASH-ref and missed. This produces better error messages then
1363 having it die cause undef is not a HASH.
1364 - added tests for this
1366 0.21 Thursday, May 2nd, 2007
1368 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1369 - modified unimport to remove super and inner along with the rest
1370 - altered unimport tests to handle this
1373 - altered super export to populate SUPER_SLOT
1375 * Moose::Meta::Class
1376 - altered augment and override modifier application to use *_SLOT
1377 - modified tests for these to unimport one test class each to test
1380 - fixed issue where custom attribute metaclasses
1381 where not handled correctly in roles
1382 - added tests for this
1384 * Moose::Meta::Class
1385 - fixed issue where extending metaclasses with
1386 roles would blow up. Thanks to Aankhen`` for
1387 finding this insidious error, and it's solution.
1389 ~~ lots of spelling and grammer fixes in the docs,
1390 many many thanks to rlb3 and Aankhen for these :)
1392 0.20 Friday, April 6th, 2007
1393 >> I messed up the SKIP logic in one test
1394 so this release is just to fix that.
1397 - 'has' now also accepts an ARRAY ref
1398 to create multiple attrs (see docs)
1399 (thanks to konobi for this)
1400 - added tests and docs
1402 0.19 Thurs. April 5th, 2007
1403 ~~ More documentation updates ~~
1405 * Moose::Util::TypeConstraints
1406 - 'type' now supports messages as well
1407 thanks to phaylon for finding this
1408 - added tests for this
1409 - added &list_all_type_constraints and
1410 &list_all_builtin_type_constraints
1411 functions to facilitate introspection.
1413 * Moose::Meta::Attribute
1414 - fixed regexp 'handles' declarations
1415 to build the list of delegated methods
1416 correctly (and not override important
1417 things like &new) thanks to ashleyb
1419 - added tests and docs for this
1420 - added the 'documentation' attributes
1421 so that you can actually document your
1422 attributes and inspect them through the
1424 - added tests and docs for this
1426 * Moose::Meta::Class
1427 - when loading custom attribute metaclasses
1428 it will first look in for the class in the
1429 Moose::Meta::Attribute::Custom::$name, and
1430 then default to just loading $name.
1431 - added tests and docs for this
1433 * Moose::Meta::TypeConstraint
1434 - type constraints now stringify to their names.
1435 - added test for this
1438 - added tests to assure we work with Module::Refresh
1439 - added stricter test skip logic in the Moose POOP
1440 test, ask Rob Kinyon why.
1441 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1443 0.18 Sat. March 10, 2007
1444 ~~ Many, many documentation updates ~~
1447 - We now use Class::MOP::load_class to
1449 - added tests to show types and subtypes
1450 working with Declare::Constraints::Simple
1451 and Test::Deep as constraint engines.
1454 !! You must have Class::MOP 0.37_001 !!
1455 !! for this developer release to work !!
1457 This release was primarily adding the immutable
1458 feature to Moose. An immutable class is one which
1459 you promise not to alter. When you set the class
1460 as immutable it will perform various bits of
1461 memoization and inline certain part of the code
1462 (constructors, destructors and accessors). This
1463 minimizes (and in some cases totally eliminates)
1464 one of Moose's biggest performance hits. This
1465 feature is not on by default, and is 100% optional.
1466 It has several configurable bits as well, so you
1467 can pick and choose to your specific needs.
1469 The changes involved in this were fairly wide and
1470 highly specific, but 100% backwards compatible, so
1471 I am not going to enumerate them here. If you are
1472 truely interested in what was changed, please do
1475 0.17 Tues. Nov. 14, 2006
1476 * Moose::Meta::Method::Accessor
1477 - bugfix for read-only accessors which
1478 are have a type constraint and lazy.
1479 Thanks to chansen for finding it.
1481 0.16 Tues. Nov. 14, 2006
1483 There are some speed improvements in this release,
1484 but they are only the begining, so stay tuned.
1487 - BUILDALL and DEMOLISHALL no longer get
1488 called unless they actually need to be.
1489 This gave us a signifigant speed boost
1490 for the cases when there is no BUILD or
1491 DEMOLISH method present.
1493 * Moose::Util::TypeConstraints
1494 * Moose::Meta::TypeConstraint
1495 - added an 'optimize_as' option to the
1496 type constraint, which allows for a
1497 hand optimized version of the type
1498 constraint to be used when possible.
1499 - Any internally created type constraints
1500 now provide an optimized version as well.
1502 0.15 Sun. Nov. 5, 2006
1504 This version of Moose *must* have Class::MOP 0.36 in order
1505 to work correctly. A number of small internal tweaks have
1506 been made in order to be compatible with that release.
1508 * Moose::Util::TypeConstraints
1509 - added &unimport so that you can clean out
1510 your class namespace of these exported
1513 * Moose::Meta::Class
1514 - fixed minor issue which occasionally
1515 comes up during global destruction
1517 - moved Moose::Meta::Method::Overriden into
1521 - moved Moose::Meta::Role::Method into
1524 * Moose::Meta::Attribute
1525 - changed how we do type checks so that
1526 we reduce the overall cost, but still
1529 - moved accessor generation methods to
1530 Moose::Meta::Method::Accessor to
1531 conform to the API changes from
1534 * Moose::Meta::TypeConstraint
1535 - changed how constraints are compiled
1536 so that we do less recursion and more
1537 iteration. This makes the type check
1539 - moved Moose::Meta::TypeConstraint::Union
1542 * Moose::Meta::Method::Accessor
1543 - created this from methods formerly found in
1544 Moose::Meta::Attribute
1546 * Moose::Meta::Role::Method
1547 - moved this from Moose::Meta::Role
1549 * Moose::Meta::Method::Overriden
1550 - moved this from Moose::Meta::Class
1552 * Moose::Meta::TypeConstraint::Union
1553 - moved this from Moose::Meta::TypeConstraint
1555 0.14 Mon. Oct. 9, 2006
1557 * Moose::Meta::Attribute
1558 - fixed lazy attributes which were not getting
1559 checked with the type constraint (thanks ashley)
1560 - added tests for this
1561 - removed the over-enthusiastic DWIMery of the
1562 automatic ArrayRef and HashRef defaults, it
1563 broke predicates in an ugly way.
1564 - removed tests for this
1566 0.13 Sat. Sept. 30, 2006
1568 This version of Moose *must* have Class::MOP 0.35 in order
1569 to work correctly. A number of small internal tweaks have
1570 been made in order to be compatible with that release.
1573 - Removed the use of UNIVERSAL::require to be a better
1574 symbol table citizen and remove a dependency
1575 (thanks Adam Kennedy)
1577 **~~ removed experimental & undocumented feature ~~**
1578 - commented out the 'method' and 'self' keywords, see the
1579 comments for more info.
1582 - added a FAQ and WTF files to document frequently
1583 asked questions and common problems
1585 * Moose::Util::TypeConstraints
1586 - added GlobRef and FileHandle type constraint
1587 - added tests for this
1589 * Moose::Meta::Attribute
1590 - if your attribute 'isa' ArrayRef of HashRef, and you have
1591 not explicitly set a default, then make the default DWIM.
1592 This will also work for subtypes of ArrayRef and HashRef
1594 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1595 - new test added for this (thanks to ashley)
1598 - added basic support for runtime role composition
1599 but this is still *highly experimental*, so feedback
1600 is much appreciated :)
1601 - added tests for this
1603 * Moose::Meta::TypeConstraint
1604 - the type constraint now handles the coercion process
1605 through delegation, this is to support the coercion
1608 * Moose::Meta::TypeConstraint::Union
1609 - it is now possible for coercions to be performed
1611 - added tests for this (thanks to konobi)
1613 * Moose::Meta::TypeCoercion
1614 - properly capturing error when type constraint
1618 - Scalar::Util 1.18 is bad on Win32, so temporarily
1619 only require version 1.17 for Win32 and cygwin.
1620 (thanks Adam Kennedy)
1622 0.12 Sat. Sept. 1, 2006
1624 - Recipe5 (subtypes & coercion) has been written
1627 - fixed "bad meta" error message to be more descriptive
1628 - fixed &unimport to not remove the &inner and &super
1629 keywords because we need to localize them.
1630 - fixed number of spelling/grammer issues, thanks Theory :)
1632 **~~ experimental & undocumented feature ~~**
1633 - added the method and self keywords, they are basically
1634 just sugar, and they may not stay around.
1637 - added &dump method to easily Data::Dumper
1640 * Moose::Meta::TypeConstraint
1641 - added the &is_a_type_of method to check both the current
1642 and the subtype of a method (similar to &isa with classes)
1645 - this is now a subclass of Class::MOP::Module, and no longer
1646 creates the _role_meta ugliness of before.
1647 - fixed tests to reflect this change
1649 0.11 Wed. July 12, 2006
1651 - added an &unimport method to remove all the keywords
1652 that Moose will import, simply add 'no Moose' to the
1653 bottom of your class file.
1656 - fixed some test failures caused by a forgotten test
1659 0.10 Thurs. July 6, 2006
1661 - improved error message when loading modules so
1662 it is less confusing when you load a role.
1663 - added &calculate_all_roles method to
1664 Moose::Meta::Class and Moose::Meta::Role
1667 This module has been tested against Class::MOP 0.30
1668 but it does not yet utilize the optimizations
1669 it makes available. Stay tuned for that ;)
1671 0.09_03 Fri. June 23, 2006
1672 ++ DEVELOPER RELEASE ++
1674 - 'use strict' and 'use warnings' are no longer
1675 needed in Moose classes, Moose itself will
1676 turn them on for you.
1677 - added tests for this
1678 - moved code from exported subs to private methods
1679 in Moose::Meta::Class
1682 - as with Moose, strict and warnings are
1683 automatically turned on for you.
1684 - added tests for this
1687 - now handles an edge case for override errors
1688 - added tests for this
1689 - added some more edge case tests
1691 0.09_02 Tues. May 16, 2006
1692 ++ DEVELOPER RELEASE ++
1694 - added prototypes to the exported subs
1698 - added prototypes to the exported subs
1701 * Moose::Util::TypeConstraints
1702 - cleaned up prototypes for the subs
1705 0.09_01 Fri. May 12, 2006
1706 ++ DEVELOPER RELEASE ++
1707 - This release works in combination with
1708 Class::MOP 0.29_01, it is a developer
1709 release because it uses the a new
1710 instance sub-protocol and a fairly
1711 complete Role implementation. It has
1712 not yet been optimized, so it slower
1713 the the previous CPAN version. This
1714 release also lacks good updated docs,
1715 the official release will have updated docs.
1718 - refactored the keyword exports
1719 - 'with' now checks Role validaity and
1720 accepts more than one Role at a time
1721 - 'extends' makes metaclass adjustments as
1722 needed to ensure metaclass compatibility
1725 - refactored the keyword exports
1726 - 'with' now checks Role validaity and
1727 accepts more than one Role at a time
1729 * Moose::Util::TypeConstraints
1730 - added the 'enum' keyword for simple
1731 string enumerations which can be used as
1733 - see example of usage in t/202_example.t
1736 - more careful checking of params to new()
1739 - much work done on the role composition
1740 - many new tests for conflict detection
1741 and composition edge cases
1742 - not enough documentation, I suggest
1743 looking at the tests
1745 * Moose::Meta::Instance
1746 - added new Instance metaclass to support
1747 the new Class::MOP instance protocol
1749 * Moose::Meta::Class
1750 - some small changes to support the new
1752 - some small additions to support Roles
1754 * Moose::Meta::Attribute
1755 - some improvements to the accessor generation code
1757 - some small changes to support the new
1759 - (still somewhat) experimental delegation support
1760 with the 'handles' option
1761 - added several tests for this
1762 - no docs for this yet
1764 0.05 Thurs. April 27, 2006
1766 - keywords are now exported with Sub::Exporter
1767 thanks to chansen for this commit
1768 - has keyword now takes a 'metaclass' option
1769 to support custom attribute meta-classes
1770 on a per-attribute basis
1771 - added tests for this
1772 - the 'has' keyword not accepts inherited slot
1773 specifications (has '+foo'). This is still an
1774 experimental feature and probably not finished
1775 see t/038_attribute_inherited_slot_specs.t for
1776 more details, or ask about it on #moose
1777 - added tests for this
1780 - keywords are now exported with Sub::Exporter
1782 * Moose::Utils::TypeConstraints
1783 - reorganized the type constraint hierarchy, thanks
1784 to nothingmuch and chansen for his help and advice
1786 - added some tests for this
1787 - keywords are now exported with Sub::Exporter
1788 thanks to chansen for this commit
1790 * Moose::Meta::Class
1791 - due to changes in Class::MOP, we had to change
1792 construct_instance (for the better)
1794 * Moose::Meta::Attribute
1795 - due to changes in Class::MOP, we had to add the
1796 initialize_instance_slot method (it's a good thing)
1798 * Moose::Meta::TypeConstraint
1799 - added type constraint unions
1800 - added tests for this
1801 - added the is_subtype_of predicate method
1802 - added tests for this
1804 0.04 Sun. April 16th, 2006
1806 - Roles can now consume other roles
1807 - added tests for this
1808 - Roles can specify required methods now with
1809 the requires() keyword
1810 - added tests for this
1813 - ripped out much of it's guts ,.. much cleaner now
1814 - added required methods and correct handling of
1815 them in apply() for both classes and roles
1816 - added tests for this
1817 - no longer adds a does() method to consuming classes
1818 it relys on the one in Moose::Object
1819 - added roles attribute and some methods to support
1820 roles consuming roles
1822 * Moose::Meta::Attribute
1823 - added support for triggers on attributes
1824 - added tests for this
1825 - added support for does option on an attribute
1826 - added tests for this
1828 * Moose::Meta::Class
1829 - added support for attribute triggers in the
1831 - added tests for this
1834 - Moose no longer creates a subtype for your class
1835 if a subtype of the same name already exists, this
1836 should DWIM in 99.9999% of all cases
1838 * Moose::Util::TypeConstraints
1839 - fixed bug where incorrect subtype conflicts were
1841 - added test for this
1844 - this class can now be extended with 'use base' if
1845 you need it, it properly loads the metaclass class now
1846 - added test for this
1848 0.03_02 Wed. April 12, 2006
1850 - you must now explictly use Moose::Util::TypeConstraints
1851 it no longer gets exported for you automatically
1854 - new() now accepts hash-refs as well as key/value lists
1855 - added does() method to check for Roles
1856 - added tests for this
1858 * Moose::Meta::Class
1859 - added roles attribute along with the add_role() and
1861 - added tests for this
1864 - now adds a does() method to consuming classes
1865 which tests the class's hierarchy for roles
1866 - added tests for this
1868 0.03_01 Mon. April 10, 2006
1870 - added new Role recipe (no content yet, only code)
1873 - added 'with' keyword for Role support
1874 - added test and docs for this
1875 - fixed subtype quoting bug
1876 - added test for this
1880 - added test and docs
1882 * Moose::Util::TypeConstraints
1883 - added the message keyword to add custom
1884 error messages to type constraints
1887 - the meta role to support Moose::Role
1888 - added tests and docs
1890 * Moose::Meta::Class
1891 - moved a number of things from Moose.pm
1892 to here, they should have been here
1895 * Moose::Meta::Attribute
1896 - moved the attribute option macros here
1897 instead of putting them in Moose.pm
1899 * Moose::Meta::TypeConstraint
1900 - added the message attributes and the
1902 - added tests and docs for this
1904 0.03 Thurs. March 30, 2006
1906 - added the Moose::Cookbook with 5 recipes,
1907 describing all the stuff Moose can do.
1910 - fixed an issue with &extends super class loading
1911 it now captures errors and deals with inline
1912 packages correctly (bug found by mst, solution
1914 - added super/override & inner/augment features
1915 - added tests and docs for these
1918 - BUILDALL now takes a reference of the %params
1919 that are passed to &new, and passes that to
1922 * Moose::Util::TypeConstraints
1923 - Type constraints now survive runtime reloading
1924 - added test for this
1926 * Moose::Meta::Class
1927 - fixed the way attribute defaults are handled
1928 during instance construction (bug found by chansen)
1930 * Moose::Meta::Attribute
1931 - read-only attributes now actually enforce their
1932 read-only-ness (this corrected in Class::MOP as
1935 0.02 Tues. March 21, 2006
1937 - many more tests, fixing some bugs and
1939 - &extends now loads the base module with
1941 - added UNIVERSAL::require to the
1944 - each new Moose class will also create
1945 and register a subtype of Object which
1946 correspond to the new Moose class.
1947 - the 'isa' option in &has now only
1948 accepts strings, and will DWIM in
1951 * Moose::Util::TypeConstraints
1952 - added type coercion features
1953 - added tests for this
1954 - added support for this in attributes
1955 and instance construction
1957 - type construction no longer creates a
1958 function, it registers the type instead.
1959 - added several functions to get the
1963 - BUILDALL and DEMOLISHALL were broken
1964 because of a mis-named hash key, Whoops :)
1966 * Moose::Meta::Attribute
1967 - adding support for coercion in the
1968 autogenerated accessors
1970 * Moose::Meta::Class
1971 - adding support for coercion in the
1972 instance construction
1974 * Moose::Meta::TypeConstraint
1975 * Moose::Meta::TypeCoercion
1976 - type constraints and coercions are now
1977 full fledges meta-objects
1979 0.01 Wed. March 15, 2006
1980 - Moooooooooooooooooose!!!