1 Revision history for Perl extension Moose
4 * Moose::Meta::Attribute
5 - When passing a role to handles, it will be loaded if necessary
9 - Method objects returned by get_method (and other methods)
10 Could end up being returned without an associated_metaclass
11 attribute. Removing get_method_map, which is provided by
12 Class::MOP::Class, fixed this. The Moose version did nothing
13 different from its parent except introduce a bug. (Dave ROlsky
14 - added tests for this (jdv79)
16 0.60 Fri October 24, 2008
18 - Passing "-traits" when loading Moose caused the Moose.pm
19 exports to be broken. Reported by t0m. (Dave Rolsky)
20 - Tests for this bug. (t0m)
23 - Change resolve_metaclass alias to use the new
24 load_first_existing_class function. This makes it a lot
25 simpler, and also around 5 times faster. (t0m)
26 - Add caching to resolve_metaclass_alias, which gives an order
27 of magnitude speedup to things which repeatedly call the
28 Moose::Meta::Attribute->does method, notably MooseX::Storage
31 * Moose::Util::TypeConstraint
32 - Put back the changes for parameterized constraints that
33 shouldn't have been removed in 0.59. We still cannot parse
34 them, but MooseX modules can create them in some other
35 way. See the 0.58 changes for more details. (jnapiorkowski)
36 - Changed the way subtypes are created so that the job is
37 delegated to a type constraint parent. This clears up some
38 hardcoded checking and should allow correct subtypes of
39 Moose::Meta::Type::Constraint. Don't rely on this new API too
40 much (create_child_type) because it may go away in the
41 future. (jnapiorkowski)
43 * Moose::Meta::TypeConstraint::Union
44 - Type constraint names are sorted as strings, not numbers.
47 * Moose::Meta::TypeConstraint::Parameterizable
48 - New parameterize method. This can be used as a factory method
49 to make a new type constraint with a given parameterized
51 - added tests (jnapiorkowski)
53 0.59 Tue October 14, 2008
55 - Add abridged documentation for builder/default/initializer/
56 predicate, and link to more details sections in
57 Class::MOP::Attribute. (t0m)
59 * Moose::Util::TypeConstraints
60 - removed prototypes from all but the &-based stuff (mst)
62 * Moose::Util::TypeConstraints
63 - Creating a anonymous subtype with both a constraint and a
64 message failed with a very unhelpful error, but should just
65 work. Reported by t0m. (Dave Rolsky)
68 - Some tests that used Test::Warn if it was available failed
69 with older versions of Test::Warn. Reported by Fayland. (Dave
71 - Test firing behavior of triggers in relation to builder/default/
73 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
74 kinds of supported type. (t0m)
77 - In create(), do not pass "roles" option to the superclass
78 - added related test that creates an anon metaclass with
81 * Moose::Meta::TypeConstraint::Class
82 * Moose::Meta::TypeConstraint::Role
83 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
84 other types (as per change in 0.55_02). (t0m)
86 * Moose::Meta::TypeConstraint::Registry
87 - Fix warning when dealing with unknown type names (t0m)
89 * Moose::Util::TypeConstraints
90 - Reverted changes from 0.58 related to handle parameterized
91 types. This caused random failures on BSD and Win32 systems,
92 apparently related to the regex engine. This means that Moose
93 can no longer parse structured type constraints like
94 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
95 supported in a slightly different way via MooseX::Types some
96 time in the future. (Dave Rolsky)
98 0.58 Sat September 20, 2008
99 !! This release has an incompatible change regarding !!
100 !! how roles add methods to a class !!
102 * Roles and role application
103 ! Roles now add methods by calling add_method, not
104 alias_method. They make sure to always provide a method
105 object, which will be cloned internally. This means that it is
106 now possible to track the source of a method provided by a
107 role, and even follow its history through intermediate roles.
109 This means that methods added by a role now show up when
110 looking at a class's method list/map. (Dave Rolsky)
113 - From this release on, we'll try to maintain a list of
114 conflicting modules, and warn you if you have one
115 installed. For example, this release conflicts with ...
116 - MooseX::Singleton <= 0.11
117 - MooseX::Params::Validate <= 0.05
120 In general, we try to not break backwards compatibility for
121 most Moose users, but MooseX modules and other code which
122 extends Moose's metaclasses is often affected by very small
123 changes in the Moose internals.
125 * Moose::Meta::Method::Delegation
126 * Moose::Meta::Attribute
127 - Delegation methods now have their own method class. (Dave
130 * Moose::Meta::TypeConstraint::Parameterizable
131 - Added a new method 'parameterize' which is basically a factory
132 for the containing constraint. This makes it easier to create
133 new types of parameterized constraints. (jnapiorkowski)
135 * Moose::Meta::TypeConstraint::Union
136 - Changed the way Union types canonicalize their names to follow
137 the normalized TC naming rules, which means we strip all
138 whitespace. (jnapiorkowski)
140 * Moose::Util::TypeConstraints
141 - Parameter and Union args are now sorted, this makes Int|Str
142 the same constraint as Str|Int. (jnapiorkowski)
143 - Changes to the way Union types are parsed to more correctly
144 stringify their names. (jnapiorkowski)
145 - When creating a parameterized type, we now use the new
146 parameterize method. (jnapiorkowski)
147 - Incoming type constraint strings are now normalized to remove
148 all whitespace differences. (jnapiorkowski)
149 - Changed the way we parse type constraint strings so that we now
150 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
151 constraints. This lays the foundation for more flexible type
152 constraint implementations.
154 * Tests and docs for all the above. (jnapiorkowski)
158 - Moose::Exporter will no longer remove a subroutine that the
159 exporting package re-exports. Moose re-exports the
160 Carp::confess function, among others. The reasoning is that we
161 cannot know whether you have also explicitly imported those
162 functions for your own use, so we err on the safe side and
163 always keep them. (Dave Rolsky)
164 - added tests for this (rafl)
167 - Changes to how we fix metaclass compatibility that are much
168 too complicated to go into. The summary is that Moose is much
169 less likely to complain about metaclass incompatibility
170 now. In particular, if two metaclasses differ because
171 Moose::Util::MetaRole was used on the two corresponding
172 classes, then the difference in roles is reconciled for the
173 subclass's metaclass. (Dave Rolsky)
174 - Squashed an warning in _process_attribute (thepler)
177 - throw exceptions (sooner) for invalid attribute names (thepler)
178 - added tests for this (thepler)
180 * Moose::Util::MetaRole
181 - If you explicitly set a constructor or destructor class for a
182 metaclass object, and then applied roles to the metaclass,
183 that explicitly set class would be lost and replaced with the
187 * Moose::Meta::Attribute
188 * Moose::Meta::Method
191 * Moose::Error::Default
192 * Moose::Error::Croak
193 * Moose::Error::Confess
194 - All instances of confess() changed to use overridable
195 C<throw_error> method. This method ultimately calls a class
196 constructor, and you can change the class being called. In
197 addition, errors now pass more information than just a string.
198 The default C<error_class> behaves like C<Carp::confess>, so
199 the behavior is not visibly different for end users.
201 0.57 Wed September 3, 2008
203 - A new bit of doc intended to introduce folks familiar with
204 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
207 - Shows examples of two classes, each done first with and then
208 without Moose. This makes a nice parallel to
209 Moose::Intro. (Dave Rolsky)
211 * Moose::Util::TypeConstraints
212 - Fixed a bug in find_or_parse_type_constraint so that it
213 accepts a Moose::Meta::TypeConstraint object as the parent
214 type, not just a name (jnapiorkowski)
215 - added tests (jnapiorkowski)
218 - If Sub::Name was not present, unimporting failed to actually
219 remove some sugar subs, causing test failures (Dave Rolsky)
221 0.56 Mon September 1, 2008
222 For those not following the series of dev releases, there are
223 several major changes in this release of Moose.
224 ! Moose::init_meta should now be called as a method. See the
227 - Major performance improvements by nothingmuch.
229 - New modules for extension writers, Moose::Exporter and
230 Moose::Util::MetaRole by Dave Rolsky.
232 - Lots of doc improvements and additions, especially in the
237 * Removed all references to the experimental-but-no-longer-needed
238 Moose::Meta::Role::Application::ToMetaclassInstance.
240 * Require Class::MOP 0.65.
242 0.55_04 Sat August 30, 2008
243 * Moose::Util::MetaRole
244 * Moose::Cookbook::Extending::Recipe2
245 - This simplifies the application of roles to any meta class, as
246 well as the base object class. Reimplemented metaclass traits
247 using this module. (Dave Rolsky)
249 * Moose::Cookbook::Extending::Recipe1
250 - This a new recipe, an overview of various ways to write Moose
251 extensions (Dave Rolsky)
253 * Moose::Cookbook::Extending::Recipe3
254 * Moose::Cookbook::Extending::Recipe4
255 - These used to be Extending::Recipe1 and Extending::Recipe2,
258 0.55_03 Fri August 29, 2008
259 * No changes from 0.55_02 except increasing the Class::MOP
260 dependency to 0.64_07.
262 0.55_02 Fri August 29, 2008
263 * Makefile.PL and Moose.pm
264 - explicitly require Perl 5.8.0+ (Dave Rolsky)
266 * Moose::Util::TypeConstraints
267 - Fix warnings from find_type_constraint if the type is not
270 * Moose::Meta::TypeConstraint
271 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
272 return false if the type you specify cannot be found in the
273 type registry, rather than throwing an unhelpful and
274 coincidental exception. (t0m).
275 - added docs & test for this (t0m)
277 * Moose::Meta::TypeConstraint::Registry
278 - add_type_constraint now throws an exception if a parameter is
280 - added docs & test for this (t0m)
282 * Moose::Cookbook::FAQ
283 - Added a faq entry on the difference between "role" and "trait"
287 - Fixed a bug that caused role composition to not see a required
288 method when that method was provided by another role being
289 composed at the same time. (Dave Rolsky)
290 - test and bug finding (tokuhirom)
292 0.55_01 Wed August 20, 2008
294 !! Calling Moose::init_meta as a function is now !!
295 !! deprecated. Please see the Moose.pm docs for details. !!
297 * Moose::Meta::Method::Constructor
298 - Fix inlined constructor so that values produced by default
299 or builder methods are coerced as required. (t0m)
300 - added test for this (t0m)
302 * Moose::Meta::Attribute
303 - A lazy attribute with a default or builder did not attempt to
304 coerce the default value. The immutable code _did_
306 - added test for this (t0m)
309 - This is a new helper module for writing "Moose-alike"
310 modules. This should make the lives of MooseX module authors
311 much easier. (Dave Rolsky)
314 * Moose::Cookbook::Meta::Recipe5
315 - Implemented metaclass traits (and wrote a recipe for it):
317 use Moose -traits => 'Foo'
319 This should make writing small Moose extensions a little
322 * Moose::Cookbook::Basics::Recipe1
323 - Removed any examples of direct hashref access, and applied an
324 editorial axe to reduce verbosity. (Dave Rolsky)
326 * Moose::Cookbook::Basics::Recipe1
327 - Also applied an editorial axe here. (Dave Rolsky)
330 * Moose::Cookbook::Extending::Recipe1
331 * Moose::Cookbook::Extending::Recipe2
332 - Rewrote extending and embedding moose documentation and
333 recipes to use Moose::Exporter (Dave Rolsky)
337 - These two modules now warn when you load them from the main
338 package "main" package, because we will not export sugar to
339 main. Previously it just did nothing. (Dave Rolsky)
342 - Now provide an init_meta method just like Moose.pm, and you
343 can call this to provide an alternate role metaclass. (Dave
344 Rolsky and nothingmuch)
345 - get_method_map now respects the package cache flag (nothingmuch)
348 - Two new methods - add_method and wrap_method_body
352 - Optimizations including allowing constructors to accept hash
353 refs, making many more classes immutable, and making
354 constructors immutable. (nothingmuch)
356 0.55 Sun August 3, 2008
357 * Moose::Meta::Attribute
358 - breaking down the way 'handles' methods are
359 created so that the process can be more easily
360 overridden by subclasses (stevan)
362 * Moose::Meta::TypeConstraint
363 - fixing what is passed into a ->message with
364 the type constraints (RT #37569)
365 - added tests for this (Charles Alderman)
367 * Moose::Util::TypeConstraints
368 - fix coerce to accept anon types like subtype can (mst)
371 - reorganized the recipes into sections - Basics, Roles, Meta,
372 Extending - and wrote abstracts for each section (Dave Rolsky)
374 * Moose::Cookbook::Basics::Recipe10
375 - A new recipe that demonstrates operator overloading
376 in combination with Moose. (bluefeet)
378 * Moose::Cookbook::Meta::Recipe1
379 - an introduction to what meta is and why you'd want to make
380 your own metaclass extensions (Dave Rolsky)
382 * Moose::Cookbook::Meta::Recipe4
383 - a very simple metaclass example (Dave Rolsky)
385 * Moose::Cookbook::Extending::Recipe1
386 - how to write a Moose-alike module to use your own object base
389 * Moose::Cookbook::Extending::Recipe2
390 - how to write modules with an API just like C<Moose.pm> (Dave
394 - Tons of fixes, both syntactical and grammatical (Dave
395 Rolsky, Paul Fenwick)
397 0.54 Thurs. July 3, 2008
398 ... this is not my day today ...
400 * Moose::Meta::Attribute
401 - fixed legal_options_for_inheritance such that
402 clone_and_inherit options still works for
403 Class::MOP::Attribute objects and therefore
404 does not break MooseX::AttributeHelpers
407 0.53 Thurs. July 3, 2008
408 * Whoops, I guess I should run 'make manifest' before
409 actually releasing the module. No actual changes
410 in this release, except the fact that it includes
411 the changes that I didn't include in the last
414 0.52 Thurs. July 3, 2008
416 - added "FEATURE REQUESTS" section to the Moose docs
417 to properly direct people (stevan) (RT #34333)
418 - making 'extends' croak if it is passed a Role since
419 this is not ever something you want to do
420 (fixed by stevan, found by obra)
421 - added tests for this (stevan)
424 - adding support for DOES (as in UNIVERSAL::DOES)
426 - added test for this
428 * Moose::Meta::Attribute
429 - added legal_options_for_inheritance (wreis)
430 - added tests for this (wreis)
432 * Moose::Cookbook::Snacks::*
433 - removed some of the unfinished snacks that should
434 not have been released yet. Added some more examples
435 to the 'Keywords' snack. (stevan)
437 * Moose::Cookbook::Style
438 - added general Moose "style guide" of sorts to the
439 cookbook (nothingmuch) (RT #34335)
442 - added more BUILDARGS tests (stevan)
444 0.51 Thurs. Jun 26, 2008
446 - add unimport so "no Moose::Role" actually does
449 * Moose::Meta::Role::Application::ToRole
450 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
451 order to provide its own implementation, that method still got
452 added to the list of required methods for consumers of
453 RoleB. Now an aliased method is only added to the list of
454 required methods if the role doing the aliasing does not
455 provide its own implementation. See Recipe 11 for an example
456 of all this. (Dave Rolsky)
457 - added tests for this
459 * Moose::Meta::Method::Constructor
460 - when a single argument that wasn't a hashref was provided to
461 an immutabilized constructor, the error message was very
462 unhelpful, as opposed to the non-immutable error. Reported by
464 - added test for this (Dave Rolsky)
466 * Moose::Meta::Attribute
467 - added support for meta_attr->does("ShortAlias") (sartak)
468 - added tests for this (sartak)
469 - moved the bulk of the `handles` handling to the new
470 install_delegation method (Stevan)
473 - Added BUILDARGS, a new step in new()
475 * Moose::Meta::Role::Application::RoleSummation
476 - fix typos no one ever sees (sartak)
478 * Moose::Util::TypeConstraints
479 * Moose::Meta::TypeConstraint
480 * Moose::Meta::TypeCoercion
481 - Attempt to work around the ??{ } vs. threads issue
483 - Some null_constraint optimizations
485 0.50 Thurs. Jun 11, 2008
486 - Fixed a version number issue by bumping all modules
489 0.49 Thurs. Jun 11, 2008
490 !! This version now approx. 20-25% !!
491 !! faster with new Class::MOP 0.59 !!
493 * Moose::Meta::Attribute
494 - fixed how the is => (ro|rw) works with
495 custom defined reader, writer and accessor
497 - added docs for this (TODO).
498 - added tests for this (Thanks to Penfold)
499 - added the custom attribute alias for regular
500 Moose attributes which is "Moose"
501 - fix builder and default both being used
506 Moose::Meta::Attribute
508 Moose::Meta::Role::Composite
509 Moose::Util::TypeConstraints
510 - switched usage of reftype to ref because
514 - changing add_package_symbol to use the new
518 - fixed how DEMOLISHALL is called so that it
519 can be overrided in subclasses (thanks to Sartak)
520 - added test for this (thanks to Sartak)
522 * Moose::Util::TypeConstraints
523 - move the ClassName type check code to
524 Class::MOP::is_class_loaded (thanks to Sartak)
526 * Moose::Cookbook::Recipe11
527 - add tests for this (thanks to tokuhirom)
529 0.48 Thurs. May 29, 2008
530 (early morning release engineering)--
532 - fixing the version in Moose::Meta::Method::Destructor
533 which was causing the indexer to choke
535 0.47 Thurs. May 29, 2008
536 (late night release engineering)--
538 - fixing the version is META.yml, no functional
539 changes in this release
541 0.46 Wed. May 28, 2008
542 !! This version now approx. 20-25% !!
543 !! faster with new Class::MOP 0.57 !!
546 - some optimizations of the &initialize method
547 since it is called so often by &meta
551 - now use the get_all_package_symbols from the
552 updated Class::MOP, test suite is now 10 seconds
555 * Moose::Meta::Method::Destructor
556 - is_needed can now also be called as a class
557 method for immutablization to check if the
558 destructor object even needs to be created
561 * Moose::Meta::Method::Destructor
562 Moose::Meta::Method::Constructor
563 - added more descriptive error message to help
564 keep people from wasting time tracking an error
565 that is easily fixed by upgrading.
567 0.45 Saturday, May 24, 2008
569 - Because of work in Class::MOP 0.57, all
570 XS based functionality is now optional
571 and a Pure Perl version is supplied
572 - the CLASS_MOP_NO_XS environment variable
573 can now be used to force non-XS versions
575 - several of the packages have been tweaked
576 to take care of this, mostly we added
577 support for the package_name and name
578 variables in all the Method metaclasses
579 - before/around/after method modifiers now
580 support regexp matching of names
581 (thanks to Takatoshi Kitano)
582 - tests added for this
583 - NOTE: this only works for classes, it
584 is currently not supported in roles,
585 but, ... patches welcome
586 - All usage of Carp::confess have been replaced
587 by Carp::croak in the "keyword" functions since
588 the stack trace is usually not helpful
591 - All usage of Carp::confess have been replaced
592 by Carp::croak in the "keyword" functions since
593 the stack trace is usually not helpful
594 - The 'has' keyword for roles now accepts the
595 same array ref form that Moose.pm does
596 (has [qw/foo bar/] => (is => 'rw', ...))
597 - added test for this
599 * Moose::Meta::Attribute
600 - trigger on a ro-attribute is no longer an
601 error, as it's useful to trigger off of the
605 - added same 'add_package_symbol' fix as in
609 - does_role now handles non-Moose classes
611 - added tests for this
612 - added the 'add_method_modifier' function
613 (thanks to Takatoshi Kitano)
615 * Moose::Util::TypeConstraints
616 - subtypes of parameterizable types now are
617 themselves parameterizable types
619 * Moose::Meta::Method::Constructor
620 - fixed bug where trigger was not being
621 called by the inlined immutable
623 - added test for this (thanks to Caelum)
625 * Moose::Meta::Role::Application::ToInstance
626 - now uses the metaclass of the instance
627 (if possible) to create the anon-class
628 (thanks Jonathan Rockway)
630 * Moose::Cookbook::Recipe22
631 - added the meta-attribute trait recipe
635 - fixed hash-ordering test bug that was
636 causing occasional cpantester failures
637 - renamed the t/000_recipe/*.t tests to be
638 more descriptive (thanks to Sartak)
640 0.44 Sat. May 10, 2008
642 - made make_immutable warning cluck to
643 show where the error is (thanks mst)
646 - BUILDALL and DEMOLISHALL now call
647 ->body when looping through the
648 methods, to avoid the overloaded
650 - fixed issue where DEMOLISHALL was
651 eating the $@ values, and so not
652 working correctly, it still kind of
653 eats them, but so does vanilla perl
654 - added tests for this
656 * Moose::Cookbook::Recipe7
657 - added new recipe for immutable
658 functionality (thanks Dave Rolsky)
660 * Moose::Cookbook::Recipe9
661 - added new recipe for builder and
662 lazy_build (thanks Dave Rolsky)
664 * Moose::Cookbook::Recipe11
665 - added new recipe for method aliasing
666 and exclusion with Roles (thanks Dave Rolsky)
669 - fixed Win32 test failure (thanks spicyjack)
671 ~ removed Build.PL and Module::Build compat
672 since Module::Install has done that.
674 0.43 Wed. April, 30, 2008
676 drink more coffee before
677 doing release engineering
679 - whoops, forgot to do the smolder tests,
680 and we broke some of the custom meta-attr
681 modules. This fixes that.
683 0.42 Mon. April 28, 2008
684 - some bad tests slipped by, nothing else
685 changed in this release (cpantesters++)
687 - upped the Class::MOP dependency to 0.55
688 since we have tests which need the C3
691 0.41 Mon. April 28, 2008
692 ~~ numerous documentation updates ~~
694 - Changed all usage of die to Carp::croak for better
695 error reporting (initial patch by Tod Hagan)
698 - the make_immutable keyword is now deprecated, don't
699 use it in any new code and please fix your old code
700 as well. There will be 2 releases, and then it will
706 - refactored the way inner and super work to avoid
707 any method/@ISA cache penalty (nothingmuch)
710 - fixing &new_object to make sure trigger gets the
711 coerced value (spotted by Charles Alderman on the
713 - added test for this
715 * Moose::Meta::Method::Constructor
716 - immutable classes which had non-lazy attributes were calling
717 the default generating sub twice in the constructor. (bug
718 found by Jesse Luehrs, fixed by Dave Rolsky)
719 - added tests for this (Dave Rolsky)
720 - fix typo in initialize_body method (nothingmuch)
722 * Moose::Meta::Method::Destructor
723 - fix typo in initialize_body method (nothingmuch)
725 * Moose::Meta::Method::Overriden
726 Moose::Meta::Method::Augmented
727 - moved the logic for these into their own
728 classes (nothingmuch)
730 * Moose::Meta::Attribute
731 - inherited attributes may now be extended without
732 restriction on the type ('isa', 'does') (Sartak)
733 - added tests for this (Sartak)
734 - when an attribute property is malformed (such as lazy without
735 a default), give the name of the attribute in the error
737 - added the &applied_traits and &has_applied_traits methods
738 to allow introspection of traits
739 - added tests for this
740 - moved 'trait' and 'metaclass' argument handling to here from
742 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
743 '+foo' syntax) (nothingmuch)
744 - added tests for this (t0m)
747 - localize $@ inside DEMOLISHALL to avoid it
748 eating $@ (found by Ernesto)
749 - added test for this (thanks to Ernesto)
751 * Moose::Util::TypeConstraints
752 - &find_type_constraint now DWIMs when given an
753 type constraint object or name (nothingmuch)
754 - &find_or_create_type_constraint superseded with a number of more
756 - find_or_create_{isa,does}_type_constraint
757 - find_or_parse_type_constraint
759 * Moose::Meta::TypeConstraint
760 Moose::Meta::TypeConstraint::Class
761 Moose::Meta::TypeConstraint::Role
762 Moose::Meta::TypeConstraint::Enum
763 Moose::Meta::TypeConstraint::Union
764 Moose::Meta::TypeConstraint::Parameterized
765 - added the &equals method for comparing two type
766 constraints (nothingmuch)
767 - added tests for this (nothingmuch)
769 * Moose::Meta::TypeConstraint
770 - add the &parents method, which is just an alias to &parent.
771 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
773 * Moose::Meta::TypeConstraint::Class
774 - added the class attribute for introspection purposes
776 - added tests for this
778 * Moose::Meta::TypeConstraint::Enum
779 Moose::Meta::TypeConstraint::Role
780 - broke these out into their own classes (nothingmuch)
782 * Moose::Cookbook::Recipe*
783 - fixed references to test file locations in the POD
784 and updated up some text for new Moose features
788 - Added &resolve_metaclass_alias, a helper function for finding an actual
789 class for a short name (e.g. in the traits list)
791 0.40 Fri. March 14, 2008
792 - I hate Pod::Coverage
794 0.39 Fri. March 14, 2008
796 - documenting the use of '+name' with attributes
797 that come from recently composed roles. It makes
798 sense, people are using it, and so why not just
799 officially support it.
800 - fixing the 'extends' keyword so that it will not
801 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
804 - added the perl -Moose=+Class::Name feature to allow
805 monkeypatching of classes in one liners
808 - fixing the 'apply_all_roles' keyword so that it will not
809 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
812 - added ->create method which now supports roles (thanks to jrockway)
813 - added tests for this
814 - added ->create_anon_class which now supports roles and caching of
815 the results (thanks to jrockway)
816 - added tests for this
817 - made ->does_role a little more forgiving when it is
818 checking a Class::MOP era metaclasses.
820 * Moose::Meta::Role::Application::ToInstance
821 - it is now possible to pass extra params to be used when
822 a role is applied to an the instance (rebless_params)
823 - added tests for this
825 * Moose::Util::TypeConstraints
826 - class_type now accepts an optional second argument for a
827 custom message. POD anotated accordingly (groditi)
828 - added tests for this
829 - it is now possible to make anon-enums by passing 'enum' an
830 ARRAY ref instead of the $name => @values. Everything else
832 - added tests for this
835 - making test for using '+name' on attributes consumed
836 from a role, it works and makes sense too.
838 * Moose::Meta::Attribute
839 - fix handles so that it doesn't return nothing
840 when the method cannot be found, not sure why
841 it ever did this originally, this means we now
842 have slightly better support for AUTOLOADed
844 - added more delegation tests
845 - adding ->does method to this so as to better
846 support traits and their introspection.
847 - added tests for this
850 - localizing the Data::Dumper configurations so
851 that it does not pollute others (RT #33509)
852 - made ->does a little more forgiving when it is
853 passed Class::MOP era metaclasses.
855 0.38 Fri. Feb. 15, 2008
856 * Moose::Meta::Attribute
857 - fixed initializer to correctly do
858 type checking and coercion in the
860 - added tests for this
863 - fixed some finicky tests (thanks to konobi)
865 0.37 Thurs. Feb. 14, 2008
867 - fixed some details in Moose::init_meta
868 and its superclass handling (thanks thepler)
869 - added tests for this (thanks thepler)
870 - 'has' now dies if you don't pass in name
872 - added the 'make_immutable' keyword as a shortcut
876 Moose::Meta::Method::Constructor
877 Moose::Meta::Attribute
878 - making (init_arg => undef) work here too
879 (thanks to nothingmuch)
881 * Moose::Meta::Attribute
882 Moose::Meta::Method::Constructor
883 Moose::Meta::Method::Accessor
884 - make lazy attributes respect attr initializers (rjbs)
885 - added tests for this
887 * Moose::Util::TypeConstraints
888 Moose::Util::TypeConstraints::OptimizedConstraints
889 Moose::Meta::TypeConstraints
890 Moose::Meta::Attribute
891 Moose::Meta::Method::Constructor
892 Moose::Meta::Method::Accessor
893 - making type errors use the
894 assigned message (thanks to Sartak)
895 - added tests for this
897 * Moose::Meta::Method::Destructor
898 - making sure DESTROY gets inlined properly
899 with successive DEMOLISH calls (thanks to manito)
901 * Moose::Meta::Attribute
902 Moose::Meta::Method::Accessor
903 - fixed handling of undef with type constraints
905 - added tests for this
908 - added &get_all_init_args and &get_all_attribute_values
909 (thanks to Sartak and nothingmuch)
911 0.36 Sat. Jan. 26, 2008
913 Moose::Meta::Attribute
914 - role type tests now support when roles are
915 applied to non-Moose classes (found by ash)
916 - added tests for this (thanks to ash)
917 - couple extra tests to boost code coverage
919 * Moose::Meta::Method::Constructor
920 - improved fix for handling Class::MOP attributes
921 - added test for this
924 - handled the add_attribute($attribute_meta_object)
926 - added test for this
928 0.35 Tues. Jan. 22, 2008
929 * Moose::Meta::Method::Constructor
930 - fix to make sure even Class::MOP attributes
931 are handled correctly (Thanks to Dave Rolsky)
932 - added test for this (also Dave Rolsky)
935 - improved error message on _apply_all_roles,
936 you should now use Moose::Util::apply_all_roles
937 and you shouldnt have been using a _ prefixed
938 method in the first place ;)
940 0.34 Mon. Jan. 21, 2008
941 ~~~ more misc. doc. fixes ~~~
942 ~~ updated copyright dates ~~
944 Moose is now a postmodern object system :)
945 - (see the POD for details)
947 * <<Role System Refactoring>>
948 - this release contains a major reworking and
949 cleanup of the role system
950 - 100% backwards compat.
951 - Role application now restructured into seperate
952 classes based on type of applicants
953 - Role summation (combining of more than one role)
954 is much cleaner and anon-classes are no longer
956 - new Composite role metaclass
957 - runtime application of roles to instances
958 is now more efficient and re-uses generated
959 classes when applicable
961 * <<New Role composition features>>
962 - methods can now be excluded from a given role
964 - methods can now be aliased to another name (and
965 still retain the original as well)
967 * Moose::Util::TypeConstraints::OptimizedConstraints
968 - added this module (see above)
971 - fixed the &_process_attribute method to be called
972 by &add_attribute, so that the API is now correct
974 * Moose::Meta::Method::Accessor
975 - fixed bug when passing a list of values to
976 an accessor would get (incorrectly) ignored.
977 Thanks to Sartak for finding this ;)
978 - added tests for this (Sartak again)
980 * Moose::Meta::Method::Accessor
981 Moose::Meta::Method::Constructor
982 Moose::Meta::Attribute
983 Moose::Meta::TypeConstraint
984 Moose::Meta::TypeCoercion
985 - lots of cleanup of such things as:
987 - type constraint handling
988 - error handling/messages
989 (thanks to nothingmuch)
991 * Moose::Meta::TypeConstraint::Parameterizable
992 - added this module to support the refactor
993 in Moose::Meta::TypeConstraint::Parameterized
995 * Moose::Meta::TypeConstraint::Parameterized
996 - refactored how these types are handled so they
997 are more generic and not confined to ArrayRef
1001 - shortened some file names for better VMS support (RT #32381)
1003 0.33 Fri. Dec. 14, 2007
1004 !! Moose now loads 2 x faster !!
1005 !! with new Class::MOP 0.49 !!
1007 ++ new oose.pm module to make command line
1008 Moose-ness easier (see POD docs for more)
1010 * Moose::Meta::Class
1012 - several tweaks to take advantage of the
1013 new method map caching in Class::MOP
1015 * Moose::Meta::TypeConstraint::Parameterized
1016 - allow subtypes of ArrayRef and HashRef to
1017 be used as a container (sartak)
1018 - added tests for this
1019 - basic support for coercion to ArrayRef and
1020 HashRef for containers (sartak)
1021 - added tests for this
1023 * Moose::Meta::TypeCoercion
1024 - coercions will now create subtypes as needed
1025 so you can now add coercions to parameterized
1026 types without having to explictly define them
1027 - added tests for this
1029 * Moose::Meta::Method::Accessor
1030 - allow subclasses to decide whether we need
1031 to copy the value into a new variable (sartak)
1033 0.32 Tues. Dec. 4, 2007
1034 * Moose::Util::TypeConstraints
1035 - fixing how subtype aliases of unions work
1036 they should inherit the parent's coercion
1037 - added tests for this
1038 - you can now define multiple coercions on
1039 a single type at different times instead of
1040 having to do it all in one place
1041 - added tests for this
1043 * Moose::Meta::TypeConstraint
1044 - there is now a default constraint of sub { 1 }
1045 instead of Moose::Util::TypeConstraints setting
1048 * Moose::Meta::TypeCoercion
1049 * Moose::Meta::TypeCoercion::Union
1050 - added the &has_coercion_for_type and
1051 &add_type_coercions methods to support the
1052 new features above (although you cannot add
1053 more type coercions for Union types)
1055 0.31 Mon. Nov. 26, 2007
1056 * Moose::Meta::Attribute
1057 - made the +attr syntax handle extending types with
1058 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1059 now works if the original foo is an ArrayRef.
1060 - added tests for this.
1061 - delegation now works even if the attribute does not
1062 have a reader method using the get_read_method_ref
1063 method from Class::MOP::Attribute.
1064 - added tests for this
1065 - added docs for this
1067 * Moose::Util::TypeConstraints
1068 - passing no "additional attribute info" to
1069 &find_or_create_type_constraint will no longer
1070 attempt to create an __ANON__ type for you,
1071 instead it will just return undef.
1072 - added docs for this
1074 0.30 Fri. Nov. 23, 2007
1075 * Moose::Meta::Method::Constructor
1076 -builder related bug in inlined constructor. (groditi)
1078 * Moose::Meta::Method::Accessor
1079 - genereate unnecessary calls to predicates and refactor
1080 code generation for runtime speed (groditi)
1082 * Moose::Util::TypeConstraints
1083 - fix ClassName constraint to introspect symbol table (mst)
1084 - added more tests for this (mst)
1085 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1086 with work correctly.
1087 - added tests for this
1090 - adding the link to Recipie 11 (written by Sartak)
1091 - adding test for SYNOPSIS code
1094 - New tests for builder bug. Upon instantiation, if an
1095 attribute had a builder, no value and was not lazy the
1096 builder default was not getting run, oops. (groditi)
1098 0.29 Tues. Nov. 13, 2007
1099 * Moose::Meta::Attribute
1100 - Fix error message on missing builder method (groditi)
1102 * Moose::Meta::Method::Accessor
1103 - Fix error message on missing builder method (groditi)
1106 - Add test to check for the correct error message when
1107 builder method is missing (groditi)
1109 0.28 Tues. Nov. 13, 2007
1110 - 0.27 packaged incorrectly (groditi)
1112 0.27 Tues. Nov. 13, 2007
1113 * Moose::Meta::Attribute
1114 - Added support for the new builder option (groditi)
1115 - Added support for lazy_build option (groditi)
1116 - Changed slot initialization for predicate changes (groditi)
1118 * Moose::Meta::Method::Accessor
1119 - Added support for lazy_build option (groditi)
1120 - Fix inline methods to work with corrected predicate
1123 * Moose::Meta::Method::Constructor
1124 - Added support for lazy_build option (groditi)
1127 - tests for builder and lazy_build (groditi)
1129 * fixing some misc. bits in the docs that
1130 got mentioned on CPAN Forum & perlmonks
1133 - fixed how required methods are handled
1134 when they encounter overriden or modified
1135 methods from a class (thanks to confound).
1136 - added tests for this
1138 * Moose::Util::TypeConstraint
1139 - fixed the type notation parser so that
1140 the | always creates a union and so is
1141 no longer a valid type char (thanks to
1142 konobi, mugwump and #moose for working
1144 - added more tests for this
1146 0.26 Thurs. Sept. 27, 2007
1149 * Parameterized Types
1150 We now support parameterized collection types, such as:
1151 ArrayRef[Int] # array or integers
1152 HashRef[Object] # a hash with object values
1153 They can also be nested:
1154 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1155 And work with the type unions as well:
1156 ArrayRef[Int | Str] # array of integers of strings
1158 * Better Framework Extendability
1159 Moose.pm is now "extendable" such that it is now much
1160 easier to extend the framework and add your own keywords
1161 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1162 section of the Moose.pm docs.
1165 In an effort to begin documenting some of the various
1166 details of Moose as well as some common idioms, we have
1167 created Moose::Cookbook::Snacks as a place to find
1168 small (easily digestable) nuggets of Moose code.
1171 ~ Several doc updates/cleanup thanks to castaway ~
1173 - converted build system to use Module::Install instead of
1174 Module::Build (thanks to jrockway)
1177 - added all the meta classes to the immutable list and
1178 set it to inline the accessors
1179 - fix import to allow Sub::Exporter like { into => }
1180 and { into_level => } (perigrin)
1181 - exposed and documented init_meta() to allow better
1182 embedding and extending of Moose (perigrin)
1185 - complete re-organization of the test suite
1186 - added some new tests as well
1187 - finally re-enabled the Moose::POOP test since
1188 the new version of DBM::Deep now works again
1191 * Moose::Meta::Class
1192 - fixed very odd and very nasty recursion bug with
1194 - added tests for this (eilara)
1196 * Moose::Meta::Attribute
1197 Moose::Meta::Method::Constructor
1198 Moose::Meta::Method::Accessor
1199 - fixed issue with overload::Overloaded getting called
1200 on non-blessed items. (RT #29269)
1201 - added tests for this
1203 * Moose::Meta::Method::Accessor
1204 - fixed issue with generated accessor code making
1205 assumptions about hash based classes (thanks to dexter)
1207 * Moose::Coookbook::Snacks
1208 - these are bits of documentation, not quite as big as
1209 Recipes but which have no clear place in the module docs.
1210 So they are Snacks! (horray for castaway++)
1212 * Moose::Cookbook::Recipe4
1213 - updated it to use the new ArrayRef[MyType] construct
1214 - updated the accompanying test as well
1216 +++ Major Refactor of the Type Constraint system +++
1217 +++ with new features added as well +++
1219 * Moose::Util::TypeConstraint
1220 - no longer uses package variable to keep track of
1221 the type constraints, now uses the an instance of
1222 Moose::Meta::TypeConstraint::Registry to do it
1223 - added more sophisticated type notation parsing
1225 - added tests for this
1227 * Moose::Meta::TypeConstraint
1228 - some minor adjustments to make subclassing easier
1229 - added the package_defined_in attribute so that we
1230 can track where the type constraints are created
1232 * Moose::Meta::TypeConstraint::Union
1233 - this is now been refactored to be a subclass of
1234 Moose::Meta::TypeConstraint
1236 * Moose::Meta::TypeCoercion::Union
1237 - this has been added to service the newly refactored
1238 Moose::Meta::TypeConstraint::Union and is itself
1239 a subclass of Moose::Meta::TypeCoercion
1241 * Moose::Meta::TypeConstraint::Parameterized
1242 - added this module (taken from MooseX::AttributeHelpers)
1243 to help construct nested collection types
1244 - added tests for this
1246 * Moose::Meta::TypeConstraint::Registry
1247 - added this class to keep track of type constraints
1249 0.25 Mon. Aug. 13, 2007
1251 - Documentation update to reference Moose::Util::TypeConstraints
1252 under 'isa' in 'has' for how to define a new type
1253 (thanks to shlomif).
1255 * Moose::Meta::Attribute
1256 - required attributes now will no longer accept undef
1257 from the constructor, even if there is a default and lazy
1258 - added tests for this
1259 - default subroutines must return a value which passes the
1261 - added tests for this
1263 * Moose::Meta::Attribute
1264 * Moose::Meta::Method::Constructor
1265 * Moose::Meta::Method::Accessor
1266 - type-constraint tests now handle overloaded objects correctly
1267 in the error message
1268 - added tests for this (thanks to EvanCarroll)
1270 * Moose::Meta::TypeConstraint::Union
1271 - added (has_)hand_optimized_constraint to this class so that
1272 it behaves as the regular Moose::Meta::TypeConstraint does.
1275 - large refactoring of this code
1276 - added several more tests
1277 - tests for subtle conflict resolition issues
1278 added, but not currently running
1281 * Moose::Cookbook::Recipe7
1282 - added new recipe for augment/inner functionality
1284 - added test for this
1287 - a formal definition of roles (still in progress)
1290 - utilities for easier working with Moose classes
1291 - added tests for these
1294 - This contains Moose specific test functions
1295 - added tests for these
1297 0.24 Tues. July 3, 2007
1298 ~ Some doc updates/cleanup ~
1300 * Moose::Meta::Attribute
1301 - added support for roles to be given as parameters
1302 to the 'handles' option.
1303 - added tests and docs for this
1304 - the has '+foo' attribute form now accepts changes to
1305 the lazy option, and the addition of a handles option
1306 (but not changing the handles option)
1307 - added tests and docs for this
1310 - required methods are now fetched using find_method_by_name
1311 so that required methods can come from superclasses
1312 - adjusted tests for this
1314 0.23 Mon. June 18, 2007
1315 * Moose::Meta::Method::Constructor
1316 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1317 * Moose::Meta::Class
1318 - Modify make_immutable to work with the new Class::MOP immutable
1319 mechanism + POD + very basic test (groditi)
1320 * Moose::Meta::Attribute
1321 - Fix handles to use goto() so that caller() comes out properly on
1322 the other side (perigrin)
1324 0.22 Thurs. May 31, 2007
1325 * Moose::Util::TypeConstraints
1326 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1327 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1328 prototypes for functions
1329 - added the ClassName type constraint, this checks for strings
1330 which will respond true to ->isa(UNIVERSAL).
1331 - added tests and docs for this
1332 - subtyping just in name now works correctly by making the
1333 default for where be { 1 }
1334 - added test for this
1336 * Moose::Meta::Method::Accessor
1337 - coerce and lazy now work together correctly, thanks to
1338 merlyn for finding this bug
1339 - tests added for this
1340 - fix reader presedence bug in Moose::Meta::Attribute + tests
1343 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1344 a HASH-ref and missed. This produces better error messages then
1345 having it die cause undef is not a HASH.
1346 - added tests for this
1348 0.21 Thursday, May 2nd, 2007
1350 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1351 - modified unimport to remove super and inner along with the rest
1352 - altered unimport tests to handle this
1355 - altered super export to populate SUPER_SLOT
1357 * Moose::Meta::Class
1358 - altered augment and override modifier application to use *_SLOT
1359 - modified tests for these to unimport one test class each to test
1362 - fixed issue where custom attribute metaclasses
1363 where not handled correctly in roles
1364 - added tests for this
1366 * Moose::Meta::Class
1367 - fixed issue where extending metaclasses with
1368 roles would blow up. Thanks to Aankhen`` for
1369 finding this insidious error, and it's solution.
1371 ~~ lots of spelling and grammer fixes in the docs,
1372 many many thanks to rlb3 and Aankhen for these :)
1374 0.20 Friday, April 6th, 2007
1375 >> I messed up the SKIP logic in one test
1376 so this release is just to fix that.
1379 - 'has' now also accepts an ARRAY ref
1380 to create multiple attrs (see docs)
1381 (thanks to konobi for this)
1382 - added tests and docs
1384 0.19 Thurs. April 5th, 2007
1385 ~~ More documentation updates ~~
1387 * Moose::Util::TypeConstraints
1388 - 'type' now supports messages as well
1389 thanks to phaylon for finding this
1390 - added tests for this
1391 - added &list_all_type_constraints and
1392 &list_all_builtin_type_constraints
1393 functions to facilitate introspection.
1395 * Moose::Meta::Attribute
1396 - fixed regexp 'handles' declarations
1397 to build the list of delegated methods
1398 correctly (and not override important
1399 things like &new) thanks to ashleyb
1401 - added tests and docs for this
1402 - added the 'documentation' attributes
1403 so that you can actually document your
1404 attributes and inspect them through the
1406 - added tests and docs for this
1408 * Moose::Meta::Class
1409 - when loading custom attribute metaclasses
1410 it will first look in for the class in the
1411 Moose::Meta::Attribute::Custom::$name, and
1412 then default to just loading $name.
1413 - added tests and docs for this
1415 * Moose::Meta::TypeConstraint
1416 - type constraints now stringify to their names.
1417 - added test for this
1420 - added tests to assure we work with Module::Refresh
1421 - added stricter test skip logic in the Moose POOP
1422 test, ask Rob Kinyon why.
1423 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1425 0.18 Sat. March 10, 2007
1426 ~~ Many, many documentation updates ~~
1429 - We now use Class::MOP::load_class to
1431 - added tests to show types and subtypes
1432 working with Declare::Constraints::Simple
1433 and Test::Deep as constraint engines.
1436 !! You must have Class::MOP 0.37_001 !!
1437 !! for this developer release to work !!
1439 This release was primarily adding the immutable
1440 feature to Moose. An immutable class is one which
1441 you promise not to alter. When you set the class
1442 as immutable it will perform various bits of
1443 memoization and inline certain part of the code
1444 (constructors, destructors and accessors). This
1445 minimizes (and in some cases totally eliminates)
1446 one of Moose's biggest performance hits. This
1447 feature is not on by default, and is 100% optional.
1448 It has several configurable bits as well, so you
1449 can pick and choose to your specific needs.
1451 The changes involved in this were fairly wide and
1452 highly specific, but 100% backwards compatible, so
1453 I am not going to enumerate them here. If you are
1454 truely interested in what was changed, please do
1457 0.17 Tues. Nov. 14, 2006
1458 * Moose::Meta::Method::Accessor
1459 - bugfix for read-only accessors which
1460 are have a type constraint and lazy.
1461 Thanks to chansen for finding it.
1463 0.16 Tues. Nov. 14, 2006
1465 There are some speed improvements in this release,
1466 but they are only the begining, so stay tuned.
1469 - BUILDALL and DEMOLISHALL no longer get
1470 called unless they actually need to be.
1471 This gave us a signifigant speed boost
1472 for the cases when there is no BUILD or
1473 DEMOLISH method present.
1475 * Moose::Util::TypeConstraints
1476 * Moose::Meta::TypeConstraint
1477 - added an 'optimize_as' option to the
1478 type constraint, which allows for a
1479 hand optimized version of the type
1480 constraint to be used when possible.
1481 - Any internally created type constraints
1482 now provide an optimized version as well.
1484 0.15 Sun. Nov. 5, 2006
1486 This version of Moose *must* have Class::MOP 0.36 in order
1487 to work correctly. A number of small internal tweaks have
1488 been made in order to be compatible with that release.
1490 * Moose::Util::TypeConstraints
1491 - added &unimport so that you can clean out
1492 your class namespace of these exported
1495 * Moose::Meta::Class
1496 - fixed minor issue which occasionally
1497 comes up during global destruction
1499 - moved Moose::Meta::Method::Overriden into
1503 - moved Moose::Meta::Role::Method into
1506 * Moose::Meta::Attribute
1507 - changed how we do type checks so that
1508 we reduce the overall cost, but still
1511 - moved accessor generation methods to
1512 Moose::Meta::Method::Accessor to
1513 conform to the API changes from
1516 * Moose::Meta::TypeConstraint
1517 - changed how constraints are compiled
1518 so that we do less recursion and more
1519 iteration. This makes the type check
1521 - moved Moose::Meta::TypeConstraint::Union
1524 * Moose::Meta::Method::Accessor
1525 - created this from methods formerly found in
1526 Moose::Meta::Attribute
1528 * Moose::Meta::Role::Method
1529 - moved this from Moose::Meta::Role
1531 * Moose::Meta::Method::Overriden
1532 - moved this from Moose::Meta::Class
1534 * Moose::Meta::TypeConstraint::Union
1535 - moved this from Moose::Meta::TypeConstraint
1537 0.14 Mon. Oct. 9, 2006
1539 * Moose::Meta::Attribute
1540 - fixed lazy attributes which were not getting
1541 checked with the type constraint (thanks ashley)
1542 - added tests for this
1543 - removed the over-enthusiastic DWIMery of the
1544 automatic ArrayRef and HashRef defaults, it
1545 broke predicates in an ugly way.
1546 - removed tests for this
1548 0.13 Sat. Sept. 30, 2006
1550 This version of Moose *must* have Class::MOP 0.35 in order
1551 to work correctly. A number of small internal tweaks have
1552 been made in order to be compatible with that release.
1555 - Removed the use of UNIVERSAL::require to be a better
1556 symbol table citizen and remove a dependency
1557 (thanks Adam Kennedy)
1559 **~~ removed experimental & undocumented feature ~~**
1560 - commented out the 'method' and 'self' keywords, see the
1561 comments for more info.
1564 - added a FAQ and WTF files to document frequently
1565 asked questions and common problems
1567 * Moose::Util::TypeConstraints
1568 - added GlobRef and FileHandle type constraint
1569 - added tests for this
1571 * Moose::Meta::Attribute
1572 - if your attribute 'isa' ArrayRef of HashRef, and you have
1573 not explicitly set a default, then make the default DWIM.
1574 This will also work for subtypes of ArrayRef and HashRef
1576 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1577 - new test added for this (thanks to ashley)
1580 - added basic support for runtime role composition
1581 but this is still *highly experimental*, so feedback
1582 is much appreciated :)
1583 - added tests for this
1585 * Moose::Meta::TypeConstraint
1586 - the type constraint now handles the coercion process
1587 through delegation, this is to support the coercion
1590 * Moose::Meta::TypeConstraint::Union
1591 - it is now possible for coercions to be performed
1593 - added tests for this (thanks to konobi)
1595 * Moose::Meta::TypeCoercion
1596 - properly capturing error when type constraint
1600 - Scalar::Util 1.18 is bad on Win32, so temporarily
1601 only require version 1.17 for Win32 and cygwin.
1602 (thanks Adam Kennedy)
1604 0.12 Sat. Sept. 1, 2006
1606 - Recipe5 (subtypes & coercion) has been written
1609 - fixed "bad meta" error message to be more descriptive
1610 - fixed &unimport to not remove the &inner and &super
1611 keywords because we need to localize them.
1612 - fixed number of spelling/grammer issues, thanks Theory :)
1614 **~~ experimental & undocumented feature ~~**
1615 - added the method and self keywords, they are basically
1616 just sugar, and they may not stay around.
1619 - added &dump method to easily Data::Dumper
1622 * Moose::Meta::TypeConstraint
1623 - added the &is_a_type_of method to check both the current
1624 and the subtype of a method (similar to &isa with classes)
1627 - this is now a subclass of Class::MOP::Module, and no longer
1628 creates the _role_meta ugliness of before.
1629 - fixed tests to reflect this change
1631 0.11 Wed. July 12, 2006
1633 - added an &unimport method to remove all the keywords
1634 that Moose will import, simply add 'no Moose' to the
1635 bottom of your class file.
1638 - fixed some test failures caused by a forgotten test
1641 0.10 Thurs. July 6, 2006
1643 - improved error message when loading modules so
1644 it is less confusing when you load a role.
1645 - added &calculate_all_roles method to
1646 Moose::Meta::Class and Moose::Meta::Role
1649 This module has been tested against Class::MOP 0.30
1650 but it does not yet utilize the optimizations
1651 it makes available. Stay tuned for that ;)
1653 0.09_03 Fri. June 23, 2006
1654 ++ DEVELOPER RELEASE ++
1656 - 'use strict' and 'use warnings' are no longer
1657 needed in Moose classes, Moose itself will
1658 turn them on for you.
1659 - added tests for this
1660 - moved code from exported subs to private methods
1661 in Moose::Meta::Class
1664 - as with Moose, strict and warnings are
1665 automatically turned on for you.
1666 - added tests for this
1669 - now handles an edge case for override errors
1670 - added tests for this
1671 - added some more edge case tests
1673 0.09_02 Tues. May 16, 2006
1674 ++ DEVELOPER RELEASE ++
1676 - added prototypes to the exported subs
1680 - added prototypes to the exported subs
1683 * Moose::Util::TypeConstraints
1684 - cleaned up prototypes for the subs
1687 0.09_01 Fri. May 12, 2006
1688 ++ DEVELOPER RELEASE ++
1689 - This release works in combination with
1690 Class::MOP 0.29_01, it is a developer
1691 release because it uses the a new
1692 instance sub-protocol and a fairly
1693 complete Role implementation. It has
1694 not yet been optimized, so it slower
1695 the the previous CPAN version. This
1696 release also lacks good updated docs,
1697 the official release will have updated docs.
1700 - refactored the keyword exports
1701 - 'with' now checks Role validaity and
1702 accepts more than one Role at a time
1703 - 'extends' makes metaclass adjustments as
1704 needed to ensure metaclass compatibility
1707 - refactored the keyword exports
1708 - 'with' now checks Role validaity and
1709 accepts more than one Role at a time
1711 * Moose::Util::TypeConstraints
1712 - added the 'enum' keyword for simple
1713 string enumerations which can be used as
1715 - see example of usage in t/202_example.t
1718 - more careful checking of params to new()
1721 - much work done on the role composition
1722 - many new tests for conflict detection
1723 and composition edge cases
1724 - not enough documentation, I suggest
1725 looking at the tests
1727 * Moose::Meta::Instance
1728 - added new Instance metaclass to support
1729 the new Class::MOP instance protocol
1731 * Moose::Meta::Class
1732 - some small changes to support the new
1734 - some small additions to support Roles
1736 * Moose::Meta::Attribute
1737 - some improvements to the accessor generation code
1739 - some small changes to support the new
1741 - (still somewhat) experimental delegation support
1742 with the 'handles' option
1743 - added several tests for this
1744 - no docs for this yet
1746 0.05 Thurs. April 27, 2006
1748 - keywords are now exported with Sub::Exporter
1749 thanks to chansen for this commit
1750 - has keyword now takes a 'metaclass' option
1751 to support custom attribute meta-classes
1752 on a per-attribute basis
1753 - added tests for this
1754 - the 'has' keyword not accepts inherited slot
1755 specifications (has '+foo'). This is still an
1756 experimental feature and probably not finished
1757 see t/038_attribute_inherited_slot_specs.t for
1758 more details, or ask about it on #moose
1759 - added tests for this
1762 - keywords are now exported with Sub::Exporter
1764 * Moose::Utils::TypeConstraints
1765 - reorganized the type constraint hierarchy, thanks
1766 to nothingmuch and chansen for his help and advice
1768 - added some tests for this
1769 - keywords are now exported with Sub::Exporter
1770 thanks to chansen for this commit
1772 * Moose::Meta::Class
1773 - due to changes in Class::MOP, we had to change
1774 construct_instance (for the better)
1776 * Moose::Meta::Attribute
1777 - due to changes in Class::MOP, we had to add the
1778 initialize_instance_slot method (it's a good thing)
1780 * Moose::Meta::TypeConstraint
1781 - added type constraint unions
1782 - added tests for this
1783 - added the is_subtype_of predicate method
1784 - added tests for this
1786 0.04 Sun. April 16th, 2006
1788 - Roles can now consume other roles
1789 - added tests for this
1790 - Roles can specify required methods now with
1791 the requires() keyword
1792 - added tests for this
1795 - ripped out much of it's guts ,.. much cleaner now
1796 - added required methods and correct handling of
1797 them in apply() for both classes and roles
1798 - added tests for this
1799 - no longer adds a does() method to consuming classes
1800 it relys on the one in Moose::Object
1801 - added roles attribute and some methods to support
1802 roles consuming roles
1804 * Moose::Meta::Attribute
1805 - added support for triggers on attributes
1806 - added tests for this
1807 - added support for does option on an attribute
1808 - added tests for this
1810 * Moose::Meta::Class
1811 - added support for attribute triggers in the
1813 - added tests for this
1816 - Moose no longer creates a subtype for your class
1817 if a subtype of the same name already exists, this
1818 should DWIM in 99.9999% of all cases
1820 * Moose::Util::TypeConstraints
1821 - fixed bug where incorrect subtype conflicts were
1823 - added test for this
1826 - this class can now be extended with 'use base' if
1827 you need it, it properly loads the metaclass class now
1828 - added test for this
1830 0.03_02 Wed. April 12, 2006
1832 - you must now explictly use Moose::Util::TypeConstraints
1833 it no longer gets exported for you automatically
1836 - new() now accepts hash-refs as well as key/value lists
1837 - added does() method to check for Roles
1838 - added tests for this
1840 * Moose::Meta::Class
1841 - added roles attribute along with the add_role() and
1843 - added tests for this
1846 - now adds a does() method to consuming classes
1847 which tests the class's hierarchy for roles
1848 - added tests for this
1850 0.03_01 Mon. April 10, 2006
1852 - added new Role recipe (no content yet, only code)
1855 - added 'with' keyword for Role support
1856 - added test and docs for this
1857 - fixed subtype quoting bug
1858 - added test for this
1862 - added test and docs
1864 * Moose::Util::TypeConstraints
1865 - added the message keyword to add custom
1866 error messages to type constraints
1869 - the meta role to support Moose::Role
1870 - added tests and docs
1872 * Moose::Meta::Class
1873 - moved a number of things from Moose.pm
1874 to here, they should have been here
1877 * Moose::Meta::Attribute
1878 - moved the attribute option macros here
1879 instead of putting them in Moose.pm
1881 * Moose::Meta::TypeConstraint
1882 - added the message attributes and the
1884 - added tests and docs for this
1886 0.03 Thurs. March 30, 2006
1888 - added the Moose::Cookbook with 5 recipes,
1889 describing all the stuff Moose can do.
1892 - fixed an issue with &extends super class loading
1893 it now captures errors and deals with inline
1894 packages correctly (bug found by mst, solution
1896 - added super/override & inner/augment features
1897 - added tests and docs for these
1900 - BUILDALL now takes a reference of the %params
1901 that are passed to &new, and passes that to
1904 * Moose::Util::TypeConstraints
1905 - Type constraints now survive runtime reloading
1906 - added test for this
1908 * Moose::Meta::Class
1909 - fixed the way attribute defaults are handled
1910 during instance construction (bug found by chansen)
1912 * Moose::Meta::Attribute
1913 - read-only attributes now actually enforce their
1914 read-only-ness (this corrected in Class::MOP as
1917 0.02 Tues. March 21, 2006
1919 - many more tests, fixing some bugs and
1921 - &extends now loads the base module with
1923 - added UNIVERSAL::require to the
1926 - each new Moose class will also create
1927 and register a subtype of Object which
1928 correspond to the new Moose class.
1929 - the 'isa' option in &has now only
1930 accepts strings, and will DWIM in
1933 * Moose::Util::TypeConstraints
1934 - added type coercion features
1935 - added tests for this
1936 - added support for this in attributes
1937 and instance construction
1939 - type construction no longer creates a
1940 function, it registers the type instead.
1941 - added several functions to get the
1945 - BUILDALL and DEMOLISHALL were broken
1946 because of a mis-named hash key, Whoops :)
1948 * Moose::Meta::Attribute
1949 - adding support for coercion in the
1950 autogenerated accessors
1952 * Moose::Meta::Class
1953 - adding support for coercion in the
1954 instance construction
1956 * Moose::Meta::TypeConstraint
1957 * Moose::Meta::TypeCoercion
1958 - type constraints and coercions are now
1959 full fledges meta-objects
1961 0.01 Wed. March 15, 2006
1962 - Moooooooooooooooooose!!!