1 Revision history for Perl extension Moose
5 - Passing "-traits" when loading Moose caused the Moose.pm
6 exports to be broken. Reported by t0m. (Dave Rolsky)
7 - Tests for this bug. (t0m)
8 * Moose::Util::TypeConstraint
9 - restored code to properly parameterize type constraints using the new
10 ->parameterize method.
11 - changed the way subtypes are created so that the job is delegated to a
12 type constraint parent. This clears up some hardcoded checking and
13 should allow correct subtypes of Moose::Meta::Type::Constraint
14 * Moose::Meta::TypeConstraint
15 - added new method 'create_childtype' so that a parent can now be in
16 charge of creating and influencing it's own children.
17 * Moose::Meta::TypeConstraint::Union
18 - more careful sorting of the type constraints that make up a name string
19 - support for create_childtype customization
20 * Moose::Meta::TypeConstraint::Parameterized
21 - support for create_childtype customization
22 * Moose::Meta::TypeConstraint::Parameterizable
23 - new parameterize method which is a type of factory method to make a new
24 type constraint with a given parameterized type.
25 * /t/040_type_constraints/027_parameterize_from.t
26 - test to make sure the new parameterize method works.
27 * /t/040_type_constraints/030-class_subtypes.t
28 - test to make sure we can properly subclass Moose::Meta::TypeConstraint
30 - Change resolve_metaclass alias to use the new
31 load_first_existing_class function. This makes it a lot
32 simpler, and also around 5 times faster. (t0m)
33 - Add caching to resolve_metaclass_alias, which gives an order
34 of magnitude speedup to things which repeatedly call the
35 Moose::Meta::Attribute->does method, notably MooseX::Storage
37 * Moose::Util::TypeConstraints
38 - Put back the changes for parameterized constraints that
39 shouldn't have been removed in 0.59. We still cannot parse
40 them, but MooseX modules can create them in some other
41 way. See the 0.58 changes for more details. (jnapiorkowski)
43 0.59 Tue October 14, 2008
45 - Add abridged documentation for builder/default/initializer/
46 predicate, and link to more details sections in
47 Class::MOP::Attribute. (t0m)
49 * Moose::Util::TypeConstraints
50 - removed prototypes from all but the &-based stuff (mst)
52 * Moose::Util::TypeConstraints
53 - Creating a anonymous subtype with both a constraint and a
54 message failed with a very unhelpful error, but should just
55 work. Reported by t0m. (Dave Rolsky)
58 - Some tests that used Test::Warn if it was available failed
59 with older versions of Test::Warn. Reported by Fayland. (Dave
61 - Test firing behavior of triggers in relation to builder/default/
63 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
64 kinds of supported type. (t0m)
67 - In create(), do not pass "roles" option to the superclass
68 - added related test that creates an anon metaclass with
71 * Moose::Meta::TypeConstraint::Class
72 * Moose::Meta::TypeConstraint::Role
73 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
74 other types (as per change in 0.55_02). (t0m)
76 * Moose::Meta::TypeConstraint::Registry
77 - Fix warning when dealing with unknown type names (t0m)
79 * Moose::Util::TypeConstraints
80 - Reverted changes from 0.58 related to handle parameterized
81 types. This caused random failures on BSD and Win32 systems,
82 apparently related to the regex engine. This means that Moose
83 can no longer parse structured type constraints like
84 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
85 supported in a slightly different way via MooseX::Types some
86 time in the future. (Dave Rolsky)
88 0.58 Sat September 20, 2008
89 !! This release has an incompatible change regarding !!
90 !! how roles add methods to a class !!
92 * Roles and role application
93 ! Roles now add methods by calling add_method, not
94 alias_method. They make sure to always provide a method
95 object, which will be cloned internally. This means that it is
96 now possible to track the source of a method provided by a
97 role, and even follow its history through intermediate roles.
99 This means that methods added by a role now show up when
100 looking at a class's method list/map. (Dave Rolsky)
103 - From this release on, we'll try to maintain a list of
104 conflicting modules, and warn you if you have one
105 installed. For example, this release conflicts with ...
106 - MooseX::Singleton <= 0.11
107 - MooseX::Params::Validate <= 0.05
110 In general, we try to not break backwards compatibility for
111 most Moose users, but MooseX modules and other code which
112 extends Moose's metaclasses is often affected by very small
113 changes in the Moose internals.
115 * Moose::Meta::Method::Delegation
116 * Moose::Meta::Attribute
117 - Delegation methods now have their own method class. (Dave
120 * Moose::Meta::TypeConstraint::Parameterizable
121 - Added a new method 'parameterize' which is basically a factory
122 for the containing constraint. This makes it easier to create
123 new types of parameterized constraints. (jnapiorkowski)
125 * Moose::Meta::TypeConstraint::Union
126 - Changed the way Union types canonicalize their names to follow
127 the normalized TC naming rules, which means we strip all
128 whitespace. (jnapiorkowski)
130 * Moose::Util::TypeConstraints
131 - Parameter and Union args are now sorted, this makes Int|Str
132 the same constraint as Str|Int. (jnapiorkowski)
133 - Changes to the way Union types are parsed to more correctly
134 stringify their names. (jnapiorkowski)
135 - When creating a parameterized type, we now use the new
136 parameterize method. (jnapiorkowski)
137 - Incoming type constraint strings are now normalized to remove
138 all whitespace differences. (jnapiorkowski)
139 - Changed the way we parse type constraint strings so that we now
140 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
141 constraints. This lays the foundation for more flexible type
142 constraint implementations.
144 * Tests and docs for all the above. (jnapiorkowski)
148 - Moose::Exporter will no longer remove a subroutine that the
149 exporting package re-exports. Moose re-exports the
150 Carp::confess function, among others. The reasoning is that we
151 cannot know whether you have also explicitly imported those
152 functions for your own use, so we err on the safe side and
153 always keep them. (Dave Rolsky)
154 - added tests for this (rafl)
157 - Changes to how we fix metaclass compatibility that are much
158 too complicated to go into. The summary is that Moose is much
159 less likely to complain about metaclass incompatibility
160 now. In particular, if two metaclasses differ because
161 Moose::Util::MetaRole was used on the two corresponding
162 classes, then the difference in roles is reconciled for the
163 subclass's metaclass. (Dave Rolsky)
164 - Squashed an warning in _process_attribute (thepler)
167 - throw exceptions (sooner) for invalid attribute names (thepler)
168 - added tests for this (thepler)
170 * Moose::Util::MetaRole
171 - If you explicitly set a constructor or destructor class for a
172 metaclass object, and then applied roles to the metaclass,
173 that explicitly set class would be lost and replaced with the
177 * Moose::Meta::Attribute
178 * Moose::Meta::Method
181 * Moose::Error::Default
182 * Moose::Error::Croak
183 * Moose::Error::Confess
184 - All instances of confess() changed to use overridable
185 C<throw_error> method. This method ultimately calls a class
186 constructor, and you can change the class being called. In
187 addition, errors now pass more information than just a string.
188 The default C<error_class> behaves like C<Carp::confess>, so
189 the behavior is not visibly different for end users.
191 0.57 Wed September 3, 2008
193 - A new bit of doc intended to introduce folks familiar with
194 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
197 - Shows examples of two classes, each done first with and then
198 without Moose. This makes a nice parallel to
199 Moose::Intro. (Dave Rolsky)
201 * Moose::Util::TypeConstraints
202 - Fixed a bug in find_or_parse_type_constraint so that it
203 accepts a Moose::Meta::TypeConstraint object as the parent
204 type, not just a name (jnapiorkowski)
205 - added tests (jnapiorkowski)
208 - If Sub::Name was not present, unimporting failed to actually
209 remove some sugar subs, causing test failures (Dave Rolsky)
211 0.56 Mon September 1, 2008
212 For those not following the series of dev releases, there are
213 several major changes in this release of Moose.
214 ! Moose::init_meta should now be called as a method. See the
217 - Major performance improvements by nothingmuch.
219 - New modules for extension writers, Moose::Exporter and
220 Moose::Util::MetaRole by Dave Rolsky.
222 - Lots of doc improvements and additions, especially in the
227 * Removed all references to the experimental-but-no-longer-needed
228 Moose::Meta::Role::Application::ToMetaclassInstance.
230 * Require Class::MOP 0.65.
232 0.55_04 Sat August 30, 2008
233 * Moose::Util::MetaRole
234 * Moose::Cookbook::Extending::Recipe2
235 - This simplifies the application of roles to any meta class, as
236 well as the base object class. Reimplemented metaclass traits
237 using this module. (Dave Rolsky)
239 * Moose::Cookbook::Extending::Recipe1
240 - This a new recipe, an overview of various ways to write Moose
241 extensions (Dave Rolsky)
243 * Moose::Cookbook::Extending::Recipe3
244 * Moose::Cookbook::Extending::Recipe4
245 - These used to be Extending::Recipe1 and Extending::Recipe2,
248 0.55_03 Fri August 29, 2008
249 * No changes from 0.55_02 except increasing the Class::MOP
250 dependency to 0.64_07.
252 0.55_02 Fri August 29, 2008
253 * Makefile.PL and Moose.pm
254 - explicitly require Perl 5.8.0+ (Dave Rolsky)
256 * Moose::Util::TypeConstraints
257 - Fix warnings from find_type_constraint if the type is not
260 * Moose::Meta::TypeConstraint
261 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
262 return false if the type you specify cannot be found in the
263 type registry, rather than throwing an unhelpful and
264 coincidental exception. (t0m).
265 - added docs & test for this (t0m)
267 * Moose::Meta::TypeConstraint::Registry
268 - add_type_constraint now throws an exception if a parameter is
270 - added docs & test for this (t0m)
272 * Moose::Cookbook::FAQ
273 - Added a faq entry on the difference between "role" and "trait"
277 - Fixed a bug that caused role composition to not see a required
278 method when that method was provided by another role being
279 composed at the same time. (Dave Rolsky)
280 - test and bug finding (tokuhirom)
282 0.55_01 Wed August 20, 2008
284 !! Calling Moose::init_meta as a function is now !!
285 !! deprecated. Please see the Moose.pm docs for details. !!
287 * Moose::Meta::Method::Constructor
288 - Fix inlined constructor so that values produced by default
289 or builder methods are coerced as required. (t0m)
290 - added test for this (t0m)
292 * Moose::Meta::Attribute
293 - A lazy attribute with a default or builder did not attempt to
294 coerce the default value. The immutable code _did_
296 - added test for this (t0m)
299 - This is a new helper module for writing "Moose-alike"
300 modules. This should make the lives of MooseX module authors
301 much easier. (Dave Rolsky)
304 * Moose::Cookbook::Meta::Recipe5
305 - Implemented metaclass traits (and wrote a recipe for it):
307 use Moose -traits => 'Foo'
309 This should make writing small Moose extensions a little
312 * Moose::Cookbook::Basics::Recipe1
313 - Removed any examples of direct hashref access, and applied an
314 editorial axe to reduce verbosity. (Dave Rolsky)
316 * Moose::Cookbook::Basics::Recipe1
317 - Also applied an editorial axe here. (Dave Rolsky)
320 * Moose::Cookbook::Extending::Recipe1
321 * Moose::Cookbook::Extending::Recipe2
322 - Rewrote extending and embedding moose documentation and
323 recipes to use Moose::Exporter (Dave Rolsky)
327 - These two modules now warn when you load them from the main
328 package "main" package, because we will not export sugar to
329 main. Previously it just did nothing. (Dave Rolsky)
332 - Now provide an init_meta method just like Moose.pm, and you
333 can call this to provide an alternate role metaclass. (Dave
334 Rolsky and nothingmuch)
335 - get_method_map now respects the package cache flag (nothingmuch)
338 - Two new methods - add_method and wrap_method_body
342 - Optimizations including allowing constructors to accept hash
343 refs, making many more classes immutable, and making
344 constructors immutable. (nothingmuch)
346 0.55 Sun August 3, 2008
347 * Moose::Meta::Attribute
348 - breaking down the way 'handles' methods are
349 created so that the process can be more easily
350 overridden by subclasses (stevan)
352 * Moose::Meta::TypeConstraint
353 - fixing what is passed into a ->message with
354 the type constraints (RT #37569)
355 - added tests for this (Charles Alderman)
357 * Moose::Util::TypeConstraints
358 - fix coerce to accept anon types like subtype can (mst)
361 - reorganized the recipes into sections - Basics, Roles, Meta,
362 Extending - and wrote abstracts for each section (Dave Rolsky)
364 * Moose::Cookbook::Basics::Recipe10
365 - A new recipe that demonstrates operator overloading
366 in combination with Moose. (bluefeet)
368 * Moose::Cookbook::Meta::Recipe1
369 - an introduction to what meta is and why you'd want to make
370 your own metaclass extensions (Dave Rolsky)
372 * Moose::Cookbook::Meta::Recipe4
373 - a very simple metaclass example (Dave Rolsky)
375 * Moose::Cookbook::Extending::Recipe1
376 - how to write a Moose-alike module to use your own object base
379 * Moose::Cookbook::Extending::Recipe2
380 - how to write modules with an API just like C<Moose.pm> (Dave
384 - Tons of fixes, both syntactical and grammatical (Dave
385 Rolsky, Paul Fenwick)
387 0.54 Thurs. July 3, 2008
388 ... this is not my day today ...
390 * Moose::Meta::Attribute
391 - fixed legal_options_for_inheritance such that
392 clone_and_inherit options still works for
393 Class::MOP::Attribute objects and therefore
394 does not break MooseX::AttributeHelpers
397 0.53 Thurs. July 3, 2008
398 * Whoops, I guess I should run 'make manifest' before
399 actually releasing the module. No actual changes
400 in this release, except the fact that it includes
401 the changes that I didn't include in the last
404 0.52 Thurs. July 3, 2008
406 - added "FEATURE REQUESTS" section to the Moose docs
407 to properly direct people (stevan) (RT #34333)
408 - making 'extends' croak if it is passed a Role since
409 this is not ever something you want to do
410 (fixed by stevan, found by obra)
411 - added tests for this (stevan)
414 - adding support for DOES (as in UNIVERSAL::DOES)
416 - added test for this
418 * Moose::Meta::Attribute
419 - added legal_options_for_inheritance (wreis)
420 - added tests for this (wreis)
422 * Moose::Cookbook::Snacks::*
423 - removed some of the unfinished snacks that should
424 not have been released yet. Added some more examples
425 to the 'Keywords' snack. (stevan)
427 * Moose::Cookbook::Style
428 - added general Moose "style guide" of sorts to the
429 cookbook (nothingmuch) (RT #34335)
432 - added more BUILDARGS tests (stevan)
434 0.51 Thurs. Jun 26, 2008
436 - add unimport so "no Moose::Role" actually does
439 * Moose::Meta::Role::Application::ToRole
440 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
441 order to provide its own implementation, that method still got
442 added to the list of required methods for consumers of
443 RoleB. Now an aliased method is only added to the list of
444 required methods if the role doing the aliasing does not
445 provide its own implementation. See Recipe 11 for an example
446 of all this. (Dave Rolsky)
447 - added tests for this
449 * Moose::Meta::Method::Constructor
450 - when a single argument that wasn't a hashref was provided to
451 an immutabilized constructor, the error message was very
452 unhelpful, as opposed to the non-immutable error. Reported by
454 - added test for this (Dave Rolsky)
456 * Moose::Meta::Attribute
457 - added support for meta_attr->does("ShortAlias") (sartak)
458 - added tests for this (sartak)
459 - moved the bulk of the `handles` handling to the new
460 install_delegation method (Stevan)
463 - Added BUILDARGS, a new step in new()
465 * Moose::Meta::Role::Application::RoleSummation
466 - fix typos no one ever sees (sartak)
468 * Moose::Util::TypeConstraints
469 * Moose::Meta::TypeConstraint
470 * Moose::Meta::TypeCoercion
471 - Attempt to work around the ??{ } vs. threads issue
473 - Some null_constraint optimizations
475 0.50 Thurs. Jun 11, 2008
476 - Fixed a version number issue by bumping all modules
479 0.49 Thurs. Jun 11, 2008
480 !! This version now approx. 20-25% !!
481 !! faster with new Class::MOP 0.59 !!
483 * Moose::Meta::Attribute
484 - fixed how the is => (ro|rw) works with
485 custom defined reader, writer and accessor
487 - added docs for this (TODO).
488 - added tests for this (Thanks to Penfold)
489 - added the custom attribute alias for regular
490 Moose attributes which is "Moose"
491 - fix builder and default both being used
496 Moose::Meta::Attribute
498 Moose::Meta::Role::Composite
499 Moose::Util::TypeConstraints
500 - switched usage of reftype to ref because
504 - changing add_package_symbol to use the new
508 - fixed how DEMOLISHALL is called so that it
509 can be overrided in subclasses (thanks to Sartak)
510 - added test for this (thanks to Sartak)
512 * Moose::Util::TypeConstraints
513 - move the ClassName type check code to
514 Class::MOP::is_class_loaded (thanks to Sartak)
516 * Moose::Cookbook::Recipe11
517 - add tests for this (thanks to tokuhirom)
519 0.48 Thurs. May 29, 2008
520 (early morning release engineering)--
522 - fixing the version in Moose::Meta::Method::Destructor
523 which was causing the indexer to choke
525 0.47 Thurs. May 29, 2008
526 (late night release engineering)--
528 - fixing the version is META.yml, no functional
529 changes in this release
531 0.46 Wed. May 28, 2008
532 !! This version now approx. 20-25% !!
533 !! faster with new Class::MOP 0.57 !!
536 - some optimizations of the &initialize method
537 since it is called so often by &meta
541 - now use the get_all_package_symbols from the
542 updated Class::MOP, test suite is now 10 seconds
545 * Moose::Meta::Method::Destructor
546 - is_needed can now also be called as a class
547 method for immutablization to check if the
548 destructor object even needs to be created
551 * Moose::Meta::Method::Destructor
552 Moose::Meta::Method::Constructor
553 - added more descriptive error message to help
554 keep people from wasting time tracking an error
555 that is easily fixed by upgrading.
557 0.45 Saturday, May 24, 2008
559 - Because of work in Class::MOP 0.57, all
560 XS based functionality is now optional
561 and a Pure Perl version is supplied
562 - the CLASS_MOP_NO_XS environment variable
563 can now be used to force non-XS versions
565 - several of the packages have been tweaked
566 to take care of this, mostly we added
567 support for the package_name and name
568 variables in all the Method metaclasses
569 - before/around/after method modifiers now
570 support regexp matching of names
571 (thanks to Takatoshi Kitano)
572 - tests added for this
573 - NOTE: this only works for classes, it
574 is currently not supported in roles,
575 but, ... patches welcome
576 - All usage of Carp::confess have been replaced
577 by Carp::croak in the "keyword" functions since
578 the stack trace is usually not helpful
581 - All usage of Carp::confess have been replaced
582 by Carp::croak in the "keyword" functions since
583 the stack trace is usually not helpful
584 - The 'has' keyword for roles now accepts the
585 same array ref form that Moose.pm does
586 (has [qw/foo bar/] => (is => 'rw', ...))
587 - added test for this
589 * Moose::Meta::Attribute
590 - trigger on a ro-attribute is no longer an
591 error, as it's useful to trigger off of the
595 - added same 'add_package_symbol' fix as in
599 - does_role now handles non-Moose classes
601 - added tests for this
602 - added the 'add_method_modifier' function
603 (thanks to Takatoshi Kitano)
605 * Moose::Util::TypeConstraints
606 - subtypes of parameterizable types now are
607 themselves parameterizable types
609 * Moose::Meta::Method::Constructor
610 - fixed bug where trigger was not being
611 called by the inlined immutable
613 - added test for this (thanks to Caelum)
615 * Moose::Meta::Role::Application::ToInstance
616 - now uses the metaclass of the instance
617 (if possible) to create the anon-class
618 (thanks Jonathan Rockway)
620 * Moose::Cookbook::Recipe22
621 - added the meta-attribute trait recipe
625 - fixed hash-ordering test bug that was
626 causing occasional cpantester failures
627 - renamed the t/000_recipe/*.t tests to be
628 more descriptive (thanks to Sartak)
630 0.44 Sat. May 10, 2008
632 - made make_immutable warning cluck to
633 show where the error is (thanks mst)
636 - BUILDALL and DEMOLISHALL now call
637 ->body when looping through the
638 methods, to avoid the overloaded
640 - fixed issue where DEMOLISHALL was
641 eating the $@ values, and so not
642 working correctly, it still kind of
643 eats them, but so does vanilla perl
644 - added tests for this
646 * Moose::Cookbook::Recipe7
647 - added new recipe for immutable
648 functionality (thanks Dave Rolsky)
650 * Moose::Cookbook::Recipe9
651 - added new recipe for builder and
652 lazy_build (thanks Dave Rolsky)
654 * Moose::Cookbook::Recipe11
655 - added new recipe for method aliasing
656 and exclusion with Roles (thanks Dave Rolsky)
659 - fixed Win32 test failure (thanks spicyjack)
661 ~ removed Build.PL and Module::Build compat
662 since Module::Install has done that.
664 0.43 Wed. April, 30, 2008
666 drink more coffee before
667 doing release engineering
669 - whoops, forgot to do the smolder tests,
670 and we broke some of the custom meta-attr
671 modules. This fixes that.
673 0.42 Mon. April 28, 2008
674 - some bad tests slipped by, nothing else
675 changed in this release (cpantesters++)
677 - upped the Class::MOP dependency to 0.55
678 since we have tests which need the C3
681 0.41 Mon. April 28, 2008
682 ~~ numerous documentation updates ~~
684 - Changed all usage of die to Carp::croak for better
685 error reporting (initial patch by Tod Hagan)
688 - the make_immutable keyword is now deprecated, don't
689 use it in any new code and please fix your old code
690 as well. There will be 2 releases, and then it will
696 - refactored the way inner and super work to avoid
697 any method/@ISA cache penalty (nothingmuch)
700 - fixing &new_object to make sure trigger gets the
701 coerced value (spotted by Charles Alderman on the
703 - added test for this
705 * Moose::Meta::Method::Constructor
706 - immutable classes which had non-lazy attributes were calling
707 the default generating sub twice in the constructor. (bug
708 found by Jesse Luehrs, fixed by Dave Rolsky)
709 - added tests for this (Dave Rolsky)
710 - fix typo in initialize_body method (nothingmuch)
712 * Moose::Meta::Method::Destructor
713 - fix typo in initialize_body method (nothingmuch)
715 * Moose::Meta::Method::Overriden
716 Moose::Meta::Method::Augmented
717 - moved the logic for these into their own
718 classes (nothingmuch)
720 * Moose::Meta::Attribute
721 - inherited attributes may now be extended without
722 restriction on the type ('isa', 'does') (Sartak)
723 - added tests for this (Sartak)
724 - when an attribute property is malformed (such as lazy without
725 a default), give the name of the attribute in the error
727 - added the &applied_traits and &has_applied_traits methods
728 to allow introspection of traits
729 - added tests for this
730 - moved 'trait' and 'metaclass' argument handling to here from
732 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
733 '+foo' syntax) (nothingmuch)
734 - added tests for this (t0m)
737 - localize $@ inside DEMOLISHALL to avoid it
738 eating $@ (found by Ernesto)
739 - added test for this (thanks to Ernesto)
741 * Moose::Util::TypeConstraints
742 - &find_type_constraint now DWIMs when given an
743 type constraint object or name (nothingmuch)
744 - &find_or_create_type_constraint superseded with a number of more
746 - find_or_create_{isa,does}_type_constraint
747 - find_or_parse_type_constraint
749 * Moose::Meta::TypeConstraint
750 Moose::Meta::TypeConstraint::Class
751 Moose::Meta::TypeConstraint::Role
752 Moose::Meta::TypeConstraint::Enum
753 Moose::Meta::TypeConstraint::Union
754 Moose::Meta::TypeConstraint::Parameterized
755 - added the &equals method for comparing two type
756 constraints (nothingmuch)
757 - added tests for this (nothingmuch)
759 * Moose::Meta::TypeConstraint
760 - add the &parents method, which is just an alias to &parent.
761 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
763 * Moose::Meta::TypeConstraint::Class
764 - added the class attribute for introspection purposes
766 - added tests for this
768 * Moose::Meta::TypeConstraint::Enum
769 Moose::Meta::TypeConstraint::Role
770 - broke these out into their own classes (nothingmuch)
772 * Moose::Cookbook::Recipe*
773 - fixed references to test file locations in the POD
774 and updated up some text for new Moose features
778 - Added &resolve_metaclass_alias, a helper function for finding an actual
779 class for a short name (e.g. in the traits list)
781 0.40 Fri. March 14, 2008
782 - I hate Pod::Coverage
784 0.39 Fri. March 14, 2008
786 - documenting the use of '+name' with attributes
787 that come from recently composed roles. It makes
788 sense, people are using it, and so why not just
789 officially support it.
790 - fixing the 'extends' keyword so that it will not
791 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
794 - added the perl -Moose=+Class::Name feature to allow
795 monkeypatching of classes in one liners
798 - fixing the 'apply_all_roles' keyword so that it will not
799 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
802 - added ->create method which now supports roles (thanks to jrockway)
803 - added tests for this
804 - added ->create_anon_class which now supports roles and caching of
805 the results (thanks to jrockway)
806 - added tests for this
807 - made ->does_role a little more forgiving when it is
808 checking a Class::MOP era metaclasses.
810 * Moose::Meta::Role::Application::ToInstance
811 - it is now possible to pass extra params to be used when
812 a role is applied to an the instance (rebless_params)
813 - added tests for this
815 * Moose::Util::TypeConstraints
816 - class_type now accepts an optional second argument for a
817 custom message. POD anotated accordingly (groditi)
818 - added tests for this
819 - it is now possible to make anon-enums by passing 'enum' an
820 ARRAY ref instead of the $name => @values. Everything else
822 - added tests for this
825 - making test for using '+name' on attributes consumed
826 from a role, it works and makes sense too.
828 * Moose::Meta::Attribute
829 - fix handles so that it doesn't return nothing
830 when the method cannot be found, not sure why
831 it ever did this originally, this means we now
832 have slightly better support for AUTOLOADed
834 - added more delegation tests
835 - adding ->does method to this so as to better
836 support traits and their introspection.
837 - added tests for this
840 - localizing the Data::Dumper configurations so
841 that it does not pollute others (RT #33509)
842 - made ->does a little more forgiving when it is
843 passed Class::MOP era metaclasses.
845 0.38 Fri. Feb. 15, 2008
846 * Moose::Meta::Attribute
847 - fixed initializer to correctly do
848 type checking and coercion in the
850 - added tests for this
853 - fixed some finicky tests (thanks to konobi)
855 0.37 Thurs. Feb. 14, 2008
857 - fixed some details in Moose::init_meta
858 and its superclass handling (thanks thepler)
859 - added tests for this (thanks thepler)
860 - 'has' now dies if you don't pass in name
862 - added the 'make_immutable' keyword as a shortcut
866 Moose::Meta::Method::Constructor
867 Moose::Meta::Attribute
868 - making (init_arg => undef) work here too
869 (thanks to nothingmuch)
871 * Moose::Meta::Attribute
872 Moose::Meta::Method::Constructor
873 Moose::Meta::Method::Accessor
874 - make lazy attributes respect attr initializers (rjbs)
875 - added tests for this
877 * Moose::Util::TypeConstraints
878 Moose::Util::TypeConstraints::OptimizedConstraints
879 Moose::Meta::TypeConstraints
880 Moose::Meta::Attribute
881 Moose::Meta::Method::Constructor
882 Moose::Meta::Method::Accessor
883 - making type errors use the
884 assigned message (thanks to Sartak)
885 - added tests for this
887 * Moose::Meta::Method::Destructor
888 - making sure DESTROY gets inlined properly
889 with successive DEMOLISH calls (thanks to manito)
891 * Moose::Meta::Attribute
892 Moose::Meta::Method::Accessor
893 - fixed handling of undef with type constraints
895 - added tests for this
898 - added &get_all_init_args and &get_all_attribute_values
899 (thanks to Sartak and nothingmuch)
901 0.36 Sat. Jan. 26, 2008
903 Moose::Meta::Attribute
904 - role type tests now support when roles are
905 applied to non-Moose classes (found by ash)
906 - added tests for this (thanks to ash)
907 - couple extra tests to boost code coverage
909 * Moose::Meta::Method::Constructor
910 - improved fix for handling Class::MOP attributes
911 - added test for this
914 - handled the add_attribute($attribute_meta_object)
916 - added test for this
918 0.35 Tues. Jan. 22, 2008
919 * Moose::Meta::Method::Constructor
920 - fix to make sure even Class::MOP attributes
921 are handled correctly (Thanks to Dave Rolsky)
922 - added test for this (also Dave Rolsky)
925 - improved error message on _apply_all_roles,
926 you should now use Moose::Util::apply_all_roles
927 and you shouldnt have been using a _ prefixed
928 method in the first place ;)
930 0.34 Mon. Jan. 21, 2008
931 ~~~ more misc. doc. fixes ~~~
932 ~~ updated copyright dates ~~
934 Moose is now a postmodern object system :)
935 - (see the POD for details)
937 * <<Role System Refactoring>>
938 - this release contains a major reworking and
939 cleanup of the role system
940 - 100% backwards compat.
941 - Role application now restructured into seperate
942 classes based on type of applicants
943 - Role summation (combining of more than one role)
944 is much cleaner and anon-classes are no longer
946 - new Composite role metaclass
947 - runtime application of roles to instances
948 is now more efficient and re-uses generated
949 classes when applicable
951 * <<New Role composition features>>
952 - methods can now be excluded from a given role
954 - methods can now be aliased to another name (and
955 still retain the original as well)
957 * Moose::Util::TypeConstraints::OptimizedConstraints
958 - added this module (see above)
961 - fixed the &_process_attribute method to be called
962 by &add_attribute, so that the API is now correct
964 * Moose::Meta::Method::Accessor
965 - fixed bug when passing a list of values to
966 an accessor would get (incorrectly) ignored.
967 Thanks to Sartak for finding this ;)
968 - added tests for this (Sartak again)
970 * Moose::Meta::Method::Accessor
971 Moose::Meta::Method::Constructor
972 Moose::Meta::Attribute
973 Moose::Meta::TypeConstraint
974 Moose::Meta::TypeCoercion
975 - lots of cleanup of such things as:
977 - type constraint handling
978 - error handling/messages
979 (thanks to nothingmuch)
981 * Moose::Meta::TypeConstraint::Parameterizable
982 - added this module to support the refactor
983 in Moose::Meta::TypeConstraint::Parameterized
985 * Moose::Meta::TypeConstraint::Parameterized
986 - refactored how these types are handled so they
987 are more generic and not confined to ArrayRef
991 - shortened some file names for better VMS support (RT #32381)
993 0.33 Fri. Dec. 14, 2007
994 !! Moose now loads 2 x faster !!
995 !! with new Class::MOP 0.49 !!
997 ++ new oose.pm module to make command line
998 Moose-ness easier (see POD docs for more)
1000 * Moose::Meta::Class
1002 - several tweaks to take advantage of the
1003 new method map caching in Class::MOP
1005 * Moose::Meta::TypeConstraint::Parameterized
1006 - allow subtypes of ArrayRef and HashRef to
1007 be used as a container (sartak)
1008 - added tests for this
1009 - basic support for coercion to ArrayRef and
1010 HashRef for containers (sartak)
1011 - added tests for this
1013 * Moose::Meta::TypeCoercion
1014 - coercions will now create subtypes as needed
1015 so you can now add coercions to parameterized
1016 types without having to explictly define them
1017 - added tests for this
1019 * Moose::Meta::Method::Accessor
1020 - allow subclasses to decide whether we need
1021 to copy the value into a new variable (sartak)
1023 0.32 Tues. Dec. 4, 2007
1024 * Moose::Util::TypeConstraints
1025 - fixing how subtype aliases of unions work
1026 they should inherit the parent's coercion
1027 - added tests for this
1028 - you can now define multiple coercions on
1029 a single type at different times instead of
1030 having to do it all in one place
1031 - added tests for this
1033 * Moose::Meta::TypeConstraint
1034 - there is now a default constraint of sub { 1 }
1035 instead of Moose::Util::TypeConstraints setting
1038 * Moose::Meta::TypeCoercion
1039 * Moose::Meta::TypeCoercion::Union
1040 - added the &has_coercion_for_type and
1041 &add_type_coercions methods to support the
1042 new features above (although you cannot add
1043 more type coercions for Union types)
1045 0.31 Mon. Nov. 26, 2007
1046 * Moose::Meta::Attribute
1047 - made the +attr syntax handle extending types with
1048 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1049 now works if the original foo is an ArrayRef.
1050 - added tests for this.
1051 - delegation now works even if the attribute does not
1052 have a reader method using the get_read_method_ref
1053 method from Class::MOP::Attribute.
1054 - added tests for this
1055 - added docs for this
1057 * Moose::Util::TypeConstraints
1058 - passing no "additional attribute info" to
1059 &find_or_create_type_constraint will no longer
1060 attempt to create an __ANON__ type for you,
1061 instead it will just return undef.
1062 - added docs for this
1064 0.30 Fri. Nov. 23, 2007
1065 * Moose::Meta::Method::Constructor
1066 -builder related bug in inlined constructor. (groditi)
1068 * Moose::Meta::Method::Accessor
1069 - genereate unnecessary calls to predicates and refactor
1070 code generation for runtime speed (groditi)
1072 * Moose::Util::TypeConstraints
1073 - fix ClassName constraint to introspect symbol table (mst)
1074 - added more tests for this (mst)
1075 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1076 with work correctly.
1077 - added tests for this
1080 - adding the link to Recipie 11 (written by Sartak)
1081 - adding test for SYNOPSIS code
1084 - New tests for builder bug. Upon instantiation, if an
1085 attribute had a builder, no value and was not lazy the
1086 builder default was not getting run, oops. (groditi)
1088 0.29 Tues. Nov. 13, 2007
1089 * Moose::Meta::Attribute
1090 - Fix error message on missing builder method (groditi)
1092 * Moose::Meta::Method::Accessor
1093 - Fix error message on missing builder method (groditi)
1096 - Add test to check for the correct error message when
1097 builder method is missing (groditi)
1099 0.28 Tues. Nov. 13, 2007
1100 - 0.27 packaged incorrectly (groditi)
1102 0.27 Tues. Nov. 13, 2007
1103 * Moose::Meta::Attribute
1104 - Added support for the new builder option (groditi)
1105 - Added support for lazy_build option (groditi)
1106 - Changed slot initialization for predicate changes (groditi)
1108 * Moose::Meta::Method::Accessor
1109 - Added support for lazy_build option (groditi)
1110 - Fix inline methods to work with corrected predicate
1113 * Moose::Meta::Method::Constructor
1114 - Added support for lazy_build option (groditi)
1117 - tests for builder and lazy_build (groditi)
1119 * fixing some misc. bits in the docs that
1120 got mentioned on CPAN Forum & perlmonks
1123 - fixed how required methods are handled
1124 when they encounter overriden or modified
1125 methods from a class (thanks to confound).
1126 - added tests for this
1128 * Moose::Util::TypeConstraint
1129 - fixed the type notation parser so that
1130 the | always creates a union and so is
1131 no longer a valid type char (thanks to
1132 konobi, mugwump and #moose for working
1134 - added more tests for this
1136 0.26 Thurs. Sept. 27, 2007
1139 * Parameterized Types
1140 We now support parameterized collection types, such as:
1141 ArrayRef[Int] # array or integers
1142 HashRef[Object] # a hash with object values
1143 They can also be nested:
1144 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1145 And work with the type unions as well:
1146 ArrayRef[Int | Str] # array of integers of strings
1148 * Better Framework Extendability
1149 Moose.pm is now "extendable" such that it is now much
1150 easier to extend the framework and add your own keywords
1151 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1152 section of the Moose.pm docs.
1155 In an effort to begin documenting some of the various
1156 details of Moose as well as some common idioms, we have
1157 created Moose::Cookbook::Snacks as a place to find
1158 small (easily digestable) nuggets of Moose code.
1161 ~ Several doc updates/cleanup thanks to castaway ~
1163 - converted build system to use Module::Install instead of
1164 Module::Build (thanks to jrockway)
1167 - added all the meta classes to the immutable list and
1168 set it to inline the accessors
1169 - fix import to allow Sub::Exporter like { into => }
1170 and { into_level => } (perigrin)
1171 - exposed and documented init_meta() to allow better
1172 embedding and extending of Moose (perigrin)
1175 - complete re-organization of the test suite
1176 - added some new tests as well
1177 - finally re-enabled the Moose::POOP test since
1178 the new version of DBM::Deep now works again
1181 * Moose::Meta::Class
1182 - fixed very odd and very nasty recursion bug with
1184 - added tests for this (eilara)
1186 * Moose::Meta::Attribute
1187 Moose::Meta::Method::Constructor
1188 Moose::Meta::Method::Accessor
1189 - fixed issue with overload::Overloaded getting called
1190 on non-blessed items. (RT #29269)
1191 - added tests for this
1193 * Moose::Meta::Method::Accessor
1194 - fixed issue with generated accessor code making
1195 assumptions about hash based classes (thanks to dexter)
1197 * Moose::Coookbook::Snacks
1198 - these are bits of documentation, not quite as big as
1199 Recipes but which have no clear place in the module docs.
1200 So they are Snacks! (horray for castaway++)
1202 * Moose::Cookbook::Recipe4
1203 - updated it to use the new ArrayRef[MyType] construct
1204 - updated the accompanying test as well
1206 +++ Major Refactor of the Type Constraint system +++
1207 +++ with new features added as well +++
1209 * Moose::Util::TypeConstraint
1210 - no longer uses package variable to keep track of
1211 the type constraints, now uses the an instance of
1212 Moose::Meta::TypeConstraint::Registry to do it
1213 - added more sophisticated type notation parsing
1215 - added tests for this
1217 * Moose::Meta::TypeConstraint
1218 - some minor adjustments to make subclassing easier
1219 - added the package_defined_in attribute so that we
1220 can track where the type constraints are created
1222 * Moose::Meta::TypeConstraint::Union
1223 - this is now been refactored to be a subclass of
1224 Moose::Meta::TypeConstraint
1226 * Moose::Meta::TypeCoercion::Union
1227 - this has been added to service the newly refactored
1228 Moose::Meta::TypeConstraint::Union and is itself
1229 a subclass of Moose::Meta::TypeCoercion
1231 * Moose::Meta::TypeConstraint::Parameterized
1232 - added this module (taken from MooseX::AttributeHelpers)
1233 to help construct nested collection types
1234 - added tests for this
1236 * Moose::Meta::TypeConstraint::Registry
1237 - added this class to keep track of type constraints
1239 0.25 Mon. Aug. 13, 2007
1241 - Documentation update to reference Moose::Util::TypeConstraints
1242 under 'isa' in 'has' for how to define a new type
1243 (thanks to shlomif).
1245 * Moose::Meta::Attribute
1246 - required attributes now will no longer accept undef
1247 from the constructor, even if there is a default and lazy
1248 - added tests for this
1249 - default subroutines must return a value which passes the
1251 - added tests for this
1253 * Moose::Meta::Attribute
1254 * Moose::Meta::Method::Constructor
1255 * Moose::Meta::Method::Accessor
1256 - type-constraint tests now handle overloaded objects correctly
1257 in the error message
1258 - added tests for this (thanks to EvanCarroll)
1260 * Moose::Meta::TypeConstraint::Union
1261 - added (has_)hand_optimized_constraint to this class so that
1262 it behaves as the regular Moose::Meta::TypeConstraint does.
1265 - large refactoring of this code
1266 - added several more tests
1267 - tests for subtle conflict resolition issues
1268 added, but not currently running
1271 * Moose::Cookbook::Recipe7
1272 - added new recipe for augment/inner functionality
1274 - added test for this
1277 - a formal definition of roles (still in progress)
1280 - utilities for easier working with Moose classes
1281 - added tests for these
1284 - This contains Moose specific test functions
1285 - added tests for these
1287 0.24 Tues. July 3, 2007
1288 ~ Some doc updates/cleanup ~
1290 * Moose::Meta::Attribute
1291 - added support for roles to be given as parameters
1292 to the 'handles' option.
1293 - added tests and docs for this
1294 - the has '+foo' attribute form now accepts changes to
1295 the lazy option, and the addition of a handles option
1296 (but not changing the handles option)
1297 - added tests and docs for this
1300 - required methods are now fetched using find_method_by_name
1301 so that required methods can come from superclasses
1302 - adjusted tests for this
1304 0.23 Mon. June 18, 2007
1305 * Moose::Meta::Method::Constructor
1306 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1307 * Moose::Meta::Class
1308 - Modify make_immutable to work with the new Class::MOP immutable
1309 mechanism + POD + very basic test (groditi)
1310 * Moose::Meta::Attribute
1311 - Fix handles to use goto() so that caller() comes out properly on
1312 the other side (perigrin)
1314 0.22 Thurs. May 31, 2007
1315 * Moose::Util::TypeConstraints
1316 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1317 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1318 prototypes for functions
1319 - added the ClassName type constraint, this checks for strings
1320 which will respond true to ->isa(UNIVERSAL).
1321 - added tests and docs for this
1322 - subtyping just in name now works correctly by making the
1323 default for where be { 1 }
1324 - added test for this
1326 * Moose::Meta::Method::Accessor
1327 - coerce and lazy now work together correctly, thanks to
1328 merlyn for finding this bug
1329 - tests added for this
1330 - fix reader presedence bug in Moose::Meta::Attribute + tests
1333 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1334 a HASH-ref and missed. This produces better error messages then
1335 having it die cause undef is not a HASH.
1336 - added tests for this
1338 0.21 Thursday, May 2nd, 2007
1340 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1341 - modified unimport to remove super and inner along with the rest
1342 - altered unimport tests to handle this
1345 - altered super export to populate SUPER_SLOT
1347 * Moose::Meta::Class
1348 - altered augment and override modifier application to use *_SLOT
1349 - modified tests for these to unimport one test class each to test
1352 - fixed issue where custom attribute metaclasses
1353 where not handled correctly in roles
1354 - added tests for this
1356 * Moose::Meta::Class
1357 - fixed issue where extending metaclasses with
1358 roles would blow up. Thanks to Aankhen`` for
1359 finding this insidious error, and it's solution.
1361 ~~ lots of spelling and grammer fixes in the docs,
1362 many many thanks to rlb3 and Aankhen for these :)
1364 0.20 Friday, April 6th, 2007
1365 >> I messed up the SKIP logic in one test
1366 so this release is just to fix that.
1369 - 'has' now also accepts an ARRAY ref
1370 to create multiple attrs (see docs)
1371 (thanks to konobi for this)
1372 - added tests and docs
1374 0.19 Thurs. April 5th, 2007
1375 ~~ More documentation updates ~~
1377 * Moose::Util::TypeConstraints
1378 - 'type' now supports messages as well
1379 thanks to phaylon for finding this
1380 - added tests for this
1381 - added &list_all_type_constraints and
1382 &list_all_builtin_type_constraints
1383 functions to facilitate introspection.
1385 * Moose::Meta::Attribute
1386 - fixed regexp 'handles' declarations
1387 to build the list of delegated methods
1388 correctly (and not override important
1389 things like &new) thanks to ashleyb
1391 - added tests and docs for this
1392 - added the 'documentation' attributes
1393 so that you can actually document your
1394 attributes and inspect them through the
1396 - added tests and docs for this
1398 * Moose::Meta::Class
1399 - when loading custom attribute metaclasses
1400 it will first look in for the class in the
1401 Moose::Meta::Attribute::Custom::$name, and
1402 then default to just loading $name.
1403 - added tests and docs for this
1405 * Moose::Meta::TypeConstraint
1406 - type constraints now stringify to their names.
1407 - added test for this
1410 - added tests to assure we work with Module::Refresh
1411 - added stricter test skip logic in the Moose POOP
1412 test, ask Rob Kinyon why.
1413 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1415 0.18 Sat. March 10, 2007
1416 ~~ Many, many documentation updates ~~
1419 - We now use Class::MOP::load_class to
1421 - added tests to show types and subtypes
1422 working with Declare::Constraints::Simple
1423 and Test::Deep as constraint engines.
1426 !! You must have Class::MOP 0.37_001 !!
1427 !! for this developer release to work !!
1429 This release was primarily adding the immutable
1430 feature to Moose. An immutable class is one which
1431 you promise not to alter. When you set the class
1432 as immutable it will perform various bits of
1433 memoization and inline certain part of the code
1434 (constructors, destructors and accessors). This
1435 minimizes (and in some cases totally eliminates)
1436 one of Moose's biggest performance hits. This
1437 feature is not on by default, and is 100% optional.
1438 It has several configurable bits as well, so you
1439 can pick and choose to your specific needs.
1441 The changes involved in this were fairly wide and
1442 highly specific, but 100% backwards compatible, so
1443 I am not going to enumerate them here. If you are
1444 truely interested in what was changed, please do
1447 0.17 Tues. Nov. 14, 2006
1448 * Moose::Meta::Method::Accessor
1449 - bugfix for read-only accessors which
1450 are have a type constraint and lazy.
1451 Thanks to chansen for finding it.
1453 0.16 Tues. Nov. 14, 2006
1455 There are some speed improvements in this release,
1456 but they are only the begining, so stay tuned.
1459 - BUILDALL and DEMOLISHALL no longer get
1460 called unless they actually need to be.
1461 This gave us a signifigant speed boost
1462 for the cases when there is no BUILD or
1463 DEMOLISH method present.
1465 * Moose::Util::TypeConstraints
1466 * Moose::Meta::TypeConstraint
1467 - added an 'optimize_as' option to the
1468 type constraint, which allows for a
1469 hand optimized version of the type
1470 constraint to be used when possible.
1471 - Any internally created type constraints
1472 now provide an optimized version as well.
1474 0.15 Sun. Nov. 5, 2006
1476 This version of Moose *must* have Class::MOP 0.36 in order
1477 to work correctly. A number of small internal tweaks have
1478 been made in order to be compatible with that release.
1480 * Moose::Util::TypeConstraints
1481 - added &unimport so that you can clean out
1482 your class namespace of these exported
1485 * Moose::Meta::Class
1486 - fixed minor issue which occasionally
1487 comes up during global destruction
1489 - moved Moose::Meta::Method::Overriden into
1493 - moved Moose::Meta::Role::Method into
1496 * Moose::Meta::Attribute
1497 - changed how we do type checks so that
1498 we reduce the overall cost, but still
1501 - moved accessor generation methods to
1502 Moose::Meta::Method::Accessor to
1503 conform to the API changes from
1506 * Moose::Meta::TypeConstraint
1507 - changed how constraints are compiled
1508 so that we do less recursion and more
1509 iteration. This makes the type check
1511 - moved Moose::Meta::TypeConstraint::Union
1514 * Moose::Meta::Method::Accessor
1515 - created this from methods formerly found in
1516 Moose::Meta::Attribute
1518 * Moose::Meta::Role::Method
1519 - moved this from Moose::Meta::Role
1521 * Moose::Meta::Method::Overriden
1522 - moved this from Moose::Meta::Class
1524 * Moose::Meta::TypeConstraint::Union
1525 - moved this from Moose::Meta::TypeConstraint
1527 0.14 Mon. Oct. 9, 2006
1529 * Moose::Meta::Attribute
1530 - fixed lazy attributes which were not getting
1531 checked with the type constraint (thanks ashley)
1532 - added tests for this
1533 - removed the over-enthusiastic DWIMery of the
1534 automatic ArrayRef and HashRef defaults, it
1535 broke predicates in an ugly way.
1536 - removed tests for this
1538 0.13 Sat. Sept. 30, 2006
1540 This version of Moose *must* have Class::MOP 0.35 in order
1541 to work correctly. A number of small internal tweaks have
1542 been made in order to be compatible with that release.
1545 - Removed the use of UNIVERSAL::require to be a better
1546 symbol table citizen and remove a dependency
1547 (thanks Adam Kennedy)
1549 **~~ removed experimental & undocumented feature ~~**
1550 - commented out the 'method' and 'self' keywords, see the
1551 comments for more info.
1554 - added a FAQ and WTF files to document frequently
1555 asked questions and common problems
1557 * Moose::Util::TypeConstraints
1558 - added GlobRef and FileHandle type constraint
1559 - added tests for this
1561 * Moose::Meta::Attribute
1562 - if your attribute 'isa' ArrayRef of HashRef, and you have
1563 not explicitly set a default, then make the default DWIM.
1564 This will also work for subtypes of ArrayRef and HashRef
1566 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1567 - new test added for this (thanks to ashley)
1570 - added basic support for runtime role composition
1571 but this is still *highly experimental*, so feedback
1572 is much appreciated :)
1573 - added tests for this
1575 * Moose::Meta::TypeConstraint
1576 - the type constraint now handles the coercion process
1577 through delegation, this is to support the coercion
1580 * Moose::Meta::TypeConstraint::Union
1581 - it is now possible for coercions to be performed
1583 - added tests for this (thanks to konobi)
1585 * Moose::Meta::TypeCoercion
1586 - properly capturing error when type constraint
1590 - Scalar::Util 1.18 is bad on Win32, so temporarily
1591 only require version 1.17 for Win32 and cygwin.
1592 (thanks Adam Kennedy)
1594 0.12 Sat. Sept. 1, 2006
1596 - Recipe5 (subtypes & coercion) has been written
1599 - fixed "bad meta" error message to be more descriptive
1600 - fixed &unimport to not remove the &inner and &super
1601 keywords because we need to localize them.
1602 - fixed number of spelling/grammer issues, thanks Theory :)
1604 **~~ experimental & undocumented feature ~~**
1605 - added the method and self keywords, they are basically
1606 just sugar, and they may not stay around.
1609 - added &dump method to easily Data::Dumper
1612 * Moose::Meta::TypeConstraint
1613 - added the &is_a_type_of method to check both the current
1614 and the subtype of a method (similar to &isa with classes)
1617 - this is now a subclass of Class::MOP::Module, and no longer
1618 creates the _role_meta ugliness of before.
1619 - fixed tests to reflect this change
1621 0.11 Wed. July 12, 2006
1623 - added an &unimport method to remove all the keywords
1624 that Moose will import, simply add 'no Moose' to the
1625 bottom of your class file.
1628 - fixed some test failures caused by a forgotten test
1631 0.10 Thurs. July 6, 2006
1633 - improved error message when loading modules so
1634 it is less confusing when you load a role.
1635 - added &calculate_all_roles method to
1636 Moose::Meta::Class and Moose::Meta::Role
1639 This module has been tested against Class::MOP 0.30
1640 but it does not yet utilize the optimizations
1641 it makes available. Stay tuned for that ;)
1643 0.09_03 Fri. June 23, 2006
1644 ++ DEVELOPER RELEASE ++
1646 - 'use strict' and 'use warnings' are no longer
1647 needed in Moose classes, Moose itself will
1648 turn them on for you.
1649 - added tests for this
1650 - moved code from exported subs to private methods
1651 in Moose::Meta::Class
1654 - as with Moose, strict and warnings are
1655 automatically turned on for you.
1656 - added tests for this
1659 - now handles an edge case for override errors
1660 - added tests for this
1661 - added some more edge case tests
1663 0.09_02 Tues. May 16, 2006
1664 ++ DEVELOPER RELEASE ++
1666 - added prototypes to the exported subs
1670 - added prototypes to the exported subs
1673 * Moose::Util::TypeConstraints
1674 - cleaned up prototypes for the subs
1677 0.09_01 Fri. May 12, 2006
1678 ++ DEVELOPER RELEASE ++
1679 - This release works in combination with
1680 Class::MOP 0.29_01, it is a developer
1681 release because it uses the a new
1682 instance sub-protocol and a fairly
1683 complete Role implementation. It has
1684 not yet been optimized, so it slower
1685 the the previous CPAN version. This
1686 release also lacks good updated docs,
1687 the official release will have updated docs.
1690 - refactored the keyword exports
1691 - 'with' now checks Role validaity and
1692 accepts more than one Role at a time
1693 - 'extends' makes metaclass adjustments as
1694 needed to ensure metaclass compatibility
1697 - refactored the keyword exports
1698 - 'with' now checks Role validaity and
1699 accepts more than one Role at a time
1701 * Moose::Util::TypeConstraints
1702 - added the 'enum' keyword for simple
1703 string enumerations which can be used as
1705 - see example of usage in t/202_example.t
1708 - more careful checking of params to new()
1711 - much work done on the role composition
1712 - many new tests for conflict detection
1713 and composition edge cases
1714 - not enough documentation, I suggest
1715 looking at the tests
1717 * Moose::Meta::Instance
1718 - added new Instance metaclass to support
1719 the new Class::MOP instance protocol
1721 * Moose::Meta::Class
1722 - some small changes to support the new
1724 - some small additions to support Roles
1726 * Moose::Meta::Attribute
1727 - some improvements to the accessor generation code
1729 - some small changes to support the new
1731 - (still somewhat) experimental delegation support
1732 with the 'handles' option
1733 - added several tests for this
1734 - no docs for this yet
1736 0.05 Thurs. April 27, 2006
1738 - keywords are now exported with Sub::Exporter
1739 thanks to chansen for this commit
1740 - has keyword now takes a 'metaclass' option
1741 to support custom attribute meta-classes
1742 on a per-attribute basis
1743 - added tests for this
1744 - the 'has' keyword not accepts inherited slot
1745 specifications (has '+foo'). This is still an
1746 experimental feature and probably not finished
1747 see t/038_attribute_inherited_slot_specs.t for
1748 more details, or ask about it on #moose
1749 - added tests for this
1752 - keywords are now exported with Sub::Exporter
1754 * Moose::Utils::TypeConstraints
1755 - reorganized the type constraint hierarchy, thanks
1756 to nothingmuch and chansen for his help and advice
1758 - added some tests for this
1759 - keywords are now exported with Sub::Exporter
1760 thanks to chansen for this commit
1762 * Moose::Meta::Class
1763 - due to changes in Class::MOP, we had to change
1764 construct_instance (for the better)
1766 * Moose::Meta::Attribute
1767 - due to changes in Class::MOP, we had to add the
1768 initialize_instance_slot method (it's a good thing)
1770 * Moose::Meta::TypeConstraint
1771 - added type constraint unions
1772 - added tests for this
1773 - added the is_subtype_of predicate method
1774 - added tests for this
1776 0.04 Sun. April 16th, 2006
1778 - Roles can now consume other roles
1779 - added tests for this
1780 - Roles can specify required methods now with
1781 the requires() keyword
1782 - added tests for this
1785 - ripped out much of it's guts ,.. much cleaner now
1786 - added required methods and correct handling of
1787 them in apply() for both classes and roles
1788 - added tests for this
1789 - no longer adds a does() method to consuming classes
1790 it relys on the one in Moose::Object
1791 - added roles attribute and some methods to support
1792 roles consuming roles
1794 * Moose::Meta::Attribute
1795 - added support for triggers on attributes
1796 - added tests for this
1797 - added support for does option on an attribute
1798 - added tests for this
1800 * Moose::Meta::Class
1801 - added support for attribute triggers in the
1803 - added tests for this
1806 - Moose no longer creates a subtype for your class
1807 if a subtype of the same name already exists, this
1808 should DWIM in 99.9999% of all cases
1810 * Moose::Util::TypeConstraints
1811 - fixed bug where incorrect subtype conflicts were
1813 - added test for this
1816 - this class can now be extended with 'use base' if
1817 you need it, it properly loads the metaclass class now
1818 - added test for this
1820 0.03_02 Wed. April 12, 2006
1822 - you must now explictly use Moose::Util::TypeConstraints
1823 it no longer gets exported for you automatically
1826 - new() now accepts hash-refs as well as key/value lists
1827 - added does() method to check for Roles
1828 - added tests for this
1830 * Moose::Meta::Class
1831 - added roles attribute along with the add_role() and
1833 - added tests for this
1836 - now adds a does() method to consuming classes
1837 which tests the class's hierarchy for roles
1838 - added tests for this
1840 0.03_01 Mon. April 10, 2006
1842 - added new Role recipe (no content yet, only code)
1845 - added 'with' keyword for Role support
1846 - added test and docs for this
1847 - fixed subtype quoting bug
1848 - added test for this
1852 - added test and docs
1854 * Moose::Util::TypeConstraints
1855 - added the message keyword to add custom
1856 error messages to type constraints
1859 - the meta role to support Moose::Role
1860 - added tests and docs
1862 * Moose::Meta::Class
1863 - moved a number of things from Moose.pm
1864 to here, they should have been here
1867 * Moose::Meta::Attribute
1868 - moved the attribute option macros here
1869 instead of putting them in Moose.pm
1871 * Moose::Meta::TypeConstraint
1872 - added the message attributes and the
1874 - added tests and docs for this
1876 0.03 Thurs. March 30, 2006
1878 - added the Moose::Cookbook with 5 recipes,
1879 describing all the stuff Moose can do.
1882 - fixed an issue with &extends super class loading
1883 it now captures errors and deals with inline
1884 packages correctly (bug found by mst, solution
1886 - added super/override & inner/augment features
1887 - added tests and docs for these
1890 - BUILDALL now takes a reference of the %params
1891 that are passed to &new, and passes that to
1894 * Moose::Util::TypeConstraints
1895 - Type constraints now survive runtime reloading
1896 - added test for this
1898 * Moose::Meta::Class
1899 - fixed the way attribute defaults are handled
1900 during instance construction (bug found by chansen)
1902 * Moose::Meta::Attribute
1903 - read-only attributes now actually enforce their
1904 read-only-ness (this corrected in Class::MOP as
1907 0.02 Tues. March 21, 2006
1909 - many more tests, fixing some bugs and
1911 - &extends now loads the base module with
1913 - added UNIVERSAL::require to the
1916 - each new Moose class will also create
1917 and register a subtype of Object which
1918 correspond to the new Moose class.
1919 - the 'isa' option in &has now only
1920 accepts strings, and will DWIM in
1923 * Moose::Util::TypeConstraints
1924 - added type coercion features
1925 - added tests for this
1926 - added support for this in attributes
1927 and instance construction
1929 - type construction no longer creates a
1930 function, it registers the type instead.
1931 - added several functions to get the
1935 - BUILDALL and DEMOLISHALL were broken
1936 because of a mis-named hash key, Whoops :)
1938 * Moose::Meta::Attribute
1939 - adding support for coercion in the
1940 autogenerated accessors
1942 * Moose::Meta::Class
1943 - adding support for coercion in the
1944 instance construction
1946 * Moose::Meta::TypeConstraint
1947 * Moose::Meta::TypeCoercion
1948 - type constraints and coercions are now
1949 full fledges meta-objects
1951 0.01 Wed. March 15, 2006
1952 - Moooooooooooooooooose!!!