1 Revision history for Perl extension Moose
4 * Moose::Meta::Role::Application::ToClass
5 Moose::Meta::Role::Application::ToRole
6 - fixed issues where excluding and aliasing the
7 same methods for a single role did not work
8 right (worked just fine with multiple roles)
11 - Catch another case where recursion caused the value
12 of $CALLER to be stamped on (t0m)
13 - added test for this (t0m)
15 - Remove the make_immutable keyword, which has been
16 deprecated since April. It breaks metaclasses that
17 use Moose without no Moose (Sartak)
19 - create method for constructing a role
22 0.61 Fri November 7, 2008
23 * Moose::Meta::Attribute
24 - When passing a role to handles, it will be loaded if necessary
28 - Method objects returned by get_method (and other methods)
29 Could end up being returned without an associated_metaclass
30 attribute. Removing get_method_map, which is provided by
31 Class::MOP::Class, fixed this. The Moose version did nothing
32 different from its parent except introduce a bug. (Dave Rolsky)
33 - added tests for this (jdv79)
36 - Added a $VERSION to all .pm files which didn't have one. Fixes
37 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
39 * Moose::Cookbook::Basics::Recipe4
40 * Moose::Cookbook::Basics::Recipe6
41 - These files had spaces on the first line of the SYNOPSIS, as
42 opposed to a totally empty line. According to RT #40432, this
43 confuses POD parsers. (Dave Rolsky)
45 0.60 Fri October 24, 2008
47 - Passing "-traits" when loading Moose caused the Moose.pm
48 exports to be broken. Reported by t0m. (Dave Rolsky)
49 - Tests for this bug. (t0m)
52 - Change resolve_metaclass alias to use the new
53 load_first_existing_class function. This makes it a lot
54 simpler, and also around 5 times faster. (t0m)
55 - Add caching to resolve_metaclass_alias, which gives an order
56 of magnitude speedup to things which repeatedly call the
57 Moose::Meta::Attribute->does method, notably MooseX::Storage
60 * Moose::Util::TypeConstraint
61 - Put back the changes for parameterized constraints that
62 shouldn't have been removed in 0.59. We still cannot parse
63 them, but MooseX modules can create them in some other
64 way. See the 0.58 changes for more details. (jnapiorkowski)
65 - Changed the way subtypes are created so that the job is
66 delegated to a type constraint parent. This clears up some
67 hardcoded checking and should allow correct subtypes of
68 Moose::Meta::Type::Constraint. Don't rely on this new API too
69 much (create_child_type) because it may go away in the
70 future. (jnapiorkowski)
72 * Moose::Meta::TypeConstraint::Union
73 - Type constraint names are sorted as strings, not numbers.
76 * Moose::Meta::TypeConstraint::Parameterizable
77 - New parameterize method. This can be used as a factory method
78 to make a new type constraint with a given parameterized
80 - added tests (jnapiorkowski)
82 0.59 Tue October 14, 2008
84 - Add abridged documentation for builder/default/initializer/
85 predicate, and link to more details sections in
86 Class::MOP::Attribute. (t0m)
88 * Moose::Util::TypeConstraints
89 - removed prototypes from all but the &-based stuff (mst)
91 * Moose::Util::TypeConstraints
92 - Creating a anonymous subtype with both a constraint and a
93 message failed with a very unhelpful error, but should just
94 work. Reported by t0m. (Dave Rolsky)
97 - Some tests that used Test::Warn if it was available failed
98 with older versions of Test::Warn. Reported by Fayland. (Dave
100 - Test firing behavior of triggers in relation to builder/default/
102 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
103 kinds of supported type. (t0m)
106 - In create(), do not pass "roles" option to the superclass
107 - added related test that creates an anon metaclass with
110 * Moose::Meta::TypeConstraint::Class
111 * Moose::Meta::TypeConstraint::Role
112 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
113 other types (as per change in 0.55_02). (t0m)
115 * Moose::Meta::TypeConstraint::Registry
116 - Fix warning when dealing with unknown type names (t0m)
118 * Moose::Util::TypeConstraints
119 - Reverted changes from 0.58 related to handle parameterized
120 types. This caused random failures on BSD and Win32 systems,
121 apparently related to the regex engine. This means that Moose
122 can no longer parse structured type constraints like
123 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
124 supported in a slightly different way via MooseX::Types some
125 time in the future. (Dave Rolsky)
127 0.58 Sat September 20, 2008
128 !! This release has an incompatible change regarding !!
129 !! how roles add methods to a class !!
131 * Roles and role application
132 ! Roles now add methods by calling add_method, not
133 alias_method. They make sure to always provide a method
134 object, which will be cloned internally. This means that it is
135 now possible to track the source of a method provided by a
136 role, and even follow its history through intermediate roles.
138 This means that methods added by a role now show up when
139 looking at a class's method list/map. (Dave Rolsky)
142 - From this release on, we'll try to maintain a list of
143 conflicting modules, and warn you if you have one
144 installed. For example, this release conflicts with ...
145 - MooseX::Singleton <= 0.11
146 - MooseX::Params::Validate <= 0.05
149 In general, we try to not break backwards compatibility for
150 most Moose users, but MooseX modules and other code which
151 extends Moose's metaclasses is often affected by very small
152 changes in the Moose internals.
154 * Moose::Meta::Method::Delegation
155 * Moose::Meta::Attribute
156 - Delegation methods now have their own method class. (Dave
159 * Moose::Meta::TypeConstraint::Parameterizable
160 - Added a new method 'parameterize' which is basically a factory
161 for the containing constraint. This makes it easier to create
162 new types of parameterized constraints. (jnapiorkowski)
164 * Moose::Meta::TypeConstraint::Union
165 - Changed the way Union types canonicalize their names to follow
166 the normalized TC naming rules, which means we strip all
167 whitespace. (jnapiorkowski)
169 * Moose::Util::TypeConstraints
170 - Parameter and Union args are now sorted, this makes Int|Str
171 the same constraint as Str|Int. (jnapiorkowski)
172 - Changes to the way Union types are parsed to more correctly
173 stringify their names. (jnapiorkowski)
174 - When creating a parameterized type, we now use the new
175 parameterize method. (jnapiorkowski)
176 - Incoming type constraint strings are now normalized to remove
177 all whitespace differences. (jnapiorkowski)
178 - Changed the way we parse type constraint strings so that we now
179 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
180 constraints. This lays the foundation for more flexible type
181 constraint implementations.
183 * Tests and docs for all the above. (jnapiorkowski)
187 - Moose::Exporter will no longer remove a subroutine that the
188 exporting package re-exports. Moose re-exports the
189 Carp::confess function, among others. The reasoning is that we
190 cannot know whether you have also explicitly imported those
191 functions for your own use, so we err on the safe side and
192 always keep them. (Dave Rolsky)
193 - added tests for this (rafl)
196 - Changes to how we fix metaclass compatibility that are much
197 too complicated to go into. The summary is that Moose is much
198 less likely to complain about metaclass incompatibility
199 now. In particular, if two metaclasses differ because
200 Moose::Util::MetaRole was used on the two corresponding
201 classes, then the difference in roles is reconciled for the
202 subclass's metaclass. (Dave Rolsky)
203 - Squashed an warning in _process_attribute (thepler)
206 - throw exceptions (sooner) for invalid attribute names (thepler)
207 - added tests for this (thepler)
209 * Moose::Util::MetaRole
210 - If you explicitly set a constructor or destructor class for a
211 metaclass object, and then applied roles to the metaclass,
212 that explicitly set class would be lost and replaced with the
216 * Moose::Meta::Attribute
217 * Moose::Meta::Method
220 * Moose::Error::Default
221 * Moose::Error::Croak
222 * Moose::Error::Confess
223 - All instances of confess() changed to use overridable
224 C<throw_error> method. This method ultimately calls a class
225 constructor, and you can change the class being called. In
226 addition, errors now pass more information than just a string.
227 The default C<error_class> behaves like C<Carp::confess>, so
228 the behavior is not visibly different for end users.
230 0.57 Wed September 3, 2008
232 - A new bit of doc intended to introduce folks familiar with
233 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
236 - Shows examples of two classes, each done first with and then
237 without Moose. This makes a nice parallel to
238 Moose::Intro. (Dave Rolsky)
240 * Moose::Util::TypeConstraints
241 - Fixed a bug in find_or_parse_type_constraint so that it
242 accepts a Moose::Meta::TypeConstraint object as the parent
243 type, not just a name (jnapiorkowski)
244 - added tests (jnapiorkowski)
247 - If Sub::Name was not present, unimporting failed to actually
248 remove some sugar subs, causing test failures (Dave Rolsky)
250 0.56 Mon September 1, 2008
251 For those not following the series of dev releases, there are
252 several major changes in this release of Moose.
253 ! Moose::init_meta should now be called as a method. See the
256 - Major performance improvements by nothingmuch.
258 - New modules for extension writers, Moose::Exporter and
259 Moose::Util::MetaRole by Dave Rolsky.
261 - Lots of doc improvements and additions, especially in the
266 * Removed all references to the experimental-but-no-longer-needed
267 Moose::Meta::Role::Application::ToMetaclassInstance.
269 * Require Class::MOP 0.65.
271 0.55_04 Sat August 30, 2008
272 * Moose::Util::MetaRole
273 * Moose::Cookbook::Extending::Recipe2
274 - This simplifies the application of roles to any meta class, as
275 well as the base object class. Reimplemented metaclass traits
276 using this module. (Dave Rolsky)
278 * Moose::Cookbook::Extending::Recipe1
279 - This a new recipe, an overview of various ways to write Moose
280 extensions (Dave Rolsky)
282 * Moose::Cookbook::Extending::Recipe3
283 * Moose::Cookbook::Extending::Recipe4
284 - These used to be Extending::Recipe1 and Extending::Recipe2,
287 0.55_03 Fri August 29, 2008
288 * No changes from 0.55_02 except increasing the Class::MOP
289 dependency to 0.64_07.
291 0.55_02 Fri August 29, 2008
292 * Makefile.PL and Moose.pm
293 - explicitly require Perl 5.8.0+ (Dave Rolsky)
295 * Moose::Util::TypeConstraints
296 - Fix warnings from find_type_constraint if the type is not
299 * Moose::Meta::TypeConstraint
300 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
301 return false if the type you specify cannot be found in the
302 type registry, rather than throwing an unhelpful and
303 coincidental exception. (t0m).
304 - added docs & test for this (t0m)
306 * Moose::Meta::TypeConstraint::Registry
307 - add_type_constraint now throws an exception if a parameter is
309 - added docs & test for this (t0m)
311 * Moose::Cookbook::FAQ
312 - Added a faq entry on the difference between "role" and "trait"
316 - Fixed a bug that caused role composition to not see a required
317 method when that method was provided by another role being
318 composed at the same time. (Dave Rolsky)
319 - test and bug finding (tokuhirom)
321 0.55_01 Wed August 20, 2008
323 !! Calling Moose::init_meta as a function is now !!
324 !! deprecated. Please see the Moose.pm docs for details. !!
326 * Moose::Meta::Method::Constructor
327 - Fix inlined constructor so that values produced by default
328 or builder methods are coerced as required. (t0m)
329 - added test for this (t0m)
331 * Moose::Meta::Attribute
332 - A lazy attribute with a default or builder did not attempt to
333 coerce the default value. The immutable code _did_
335 - added test for this (t0m)
338 - This is a new helper module for writing "Moose-alike"
339 modules. This should make the lives of MooseX module authors
340 much easier. (Dave Rolsky)
343 * Moose::Cookbook::Meta::Recipe5
344 - Implemented metaclass traits (and wrote a recipe for it):
346 use Moose -traits => 'Foo'
348 This should make writing small Moose extensions a little
351 * Moose::Cookbook::Basics::Recipe1
352 - Removed any examples of direct hashref access, and applied an
353 editorial axe to reduce verbosity. (Dave Rolsky)
355 * Moose::Cookbook::Basics::Recipe1
356 - Also applied an editorial axe here. (Dave Rolsky)
359 * Moose::Cookbook::Extending::Recipe1
360 * Moose::Cookbook::Extending::Recipe2
361 - Rewrote extending and embedding moose documentation and
362 recipes to use Moose::Exporter (Dave Rolsky)
366 - These two modules now warn when you load them from the main
367 package "main" package, because we will not export sugar to
368 main. Previously it just did nothing. (Dave Rolsky)
371 - Now provide an init_meta method just like Moose.pm, and you
372 can call this to provide an alternate role metaclass. (Dave
373 Rolsky and nothingmuch)
374 - get_method_map now respects the package cache flag (nothingmuch)
377 - Two new methods - add_method and wrap_method_body
381 - Optimizations including allowing constructors to accept hash
382 refs, making many more classes immutable, and making
383 constructors immutable. (nothingmuch)
385 0.55 Sun August 3, 2008
386 * Moose::Meta::Attribute
387 - breaking down the way 'handles' methods are
388 created so that the process can be more easily
389 overridden by subclasses (stevan)
391 * Moose::Meta::TypeConstraint
392 - fixing what is passed into a ->message with
393 the type constraints (RT #37569)
394 - added tests for this (Charles Alderman)
396 * Moose::Util::TypeConstraints
397 - fix coerce to accept anon types like subtype can (mst)
400 - reorganized the recipes into sections - Basics, Roles, Meta,
401 Extending - and wrote abstracts for each section (Dave Rolsky)
403 * Moose::Cookbook::Basics::Recipe10
404 - A new recipe that demonstrates operator overloading
405 in combination with Moose. (bluefeet)
407 * Moose::Cookbook::Meta::Recipe1
408 - an introduction to what meta is and why you'd want to make
409 your own metaclass extensions (Dave Rolsky)
411 * Moose::Cookbook::Meta::Recipe4
412 - a very simple metaclass example (Dave Rolsky)
414 * Moose::Cookbook::Extending::Recipe1
415 - how to write a Moose-alike module to use your own object base
418 * Moose::Cookbook::Extending::Recipe2
419 - how to write modules with an API just like C<Moose.pm> (Dave
423 - Tons of fixes, both syntactical and grammatical (Dave
424 Rolsky, Paul Fenwick)
426 0.54 Thurs. July 3, 2008
427 ... this is not my day today ...
429 * Moose::Meta::Attribute
430 - fixed legal_options_for_inheritance such that
431 clone_and_inherit options still works for
432 Class::MOP::Attribute objects and therefore
433 does not break MooseX::AttributeHelpers
436 0.53 Thurs. July 3, 2008
437 * Whoops, I guess I should run 'make manifest' before
438 actually releasing the module. No actual changes
439 in this release, except the fact that it includes
440 the changes that I didn't include in the last
443 0.52 Thurs. July 3, 2008
445 - added "FEATURE REQUESTS" section to the Moose docs
446 to properly direct people (stevan) (RT #34333)
447 - making 'extends' croak if it is passed a Role since
448 this is not ever something you want to do
449 (fixed by stevan, found by obra)
450 - added tests for this (stevan)
453 - adding support for DOES (as in UNIVERSAL::DOES)
455 - added test for this
457 * Moose::Meta::Attribute
458 - added legal_options_for_inheritance (wreis)
459 - added tests for this (wreis)
461 * Moose::Cookbook::Snacks::*
462 - removed some of the unfinished snacks that should
463 not have been released yet. Added some more examples
464 to the 'Keywords' snack. (stevan)
466 * Moose::Cookbook::Style
467 - added general Moose "style guide" of sorts to the
468 cookbook (nothingmuch) (RT #34335)
471 - added more BUILDARGS tests (stevan)
473 0.51 Thurs. Jun 26, 2008
475 - add unimport so "no Moose::Role" actually does
478 * Moose::Meta::Role::Application::ToRole
479 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
480 order to provide its own implementation, that method still got
481 added to the list of required methods for consumers of
482 RoleB. Now an aliased method is only added to the list of
483 required methods if the role doing the aliasing does not
484 provide its own implementation. See Recipe 11 for an example
485 of all this. (Dave Rolsky)
486 - added tests for this
488 * Moose::Meta::Method::Constructor
489 - when a single argument that wasn't a hashref was provided to
490 an immutabilized constructor, the error message was very
491 unhelpful, as opposed to the non-immutable error. Reported by
493 - added test for this (Dave Rolsky)
495 * Moose::Meta::Attribute
496 - added support for meta_attr->does("ShortAlias") (sartak)
497 - added tests for this (sartak)
498 - moved the bulk of the `handles` handling to the new
499 install_delegation method (Stevan)
502 - Added BUILDARGS, a new step in new()
504 * Moose::Meta::Role::Application::RoleSummation
505 - fix typos no one ever sees (sartak)
507 * Moose::Util::TypeConstraints
508 * Moose::Meta::TypeConstraint
509 * Moose::Meta::TypeCoercion
510 - Attempt to work around the ??{ } vs. threads issue
512 - Some null_constraint optimizations
514 0.50 Thurs. Jun 11, 2008
515 - Fixed a version number issue by bumping all modules
518 0.49 Thurs. Jun 11, 2008
519 !! This version now approx. 20-25% !!
520 !! faster with new Class::MOP 0.59 !!
522 * Moose::Meta::Attribute
523 - fixed how the is => (ro|rw) works with
524 custom defined reader, writer and accessor
526 - added docs for this (TODO).
527 - added tests for this (Thanks to Penfold)
528 - added the custom attribute alias for regular
529 Moose attributes which is "Moose"
530 - fix builder and default both being used
535 Moose::Meta::Attribute
537 Moose::Meta::Role::Composite
538 Moose::Util::TypeConstraints
539 - switched usage of reftype to ref because
543 - changing add_package_symbol to use the new
547 - fixed how DEMOLISHALL is called so that it
548 can be overrided in subclasses (thanks to Sartak)
549 - added test for this (thanks to Sartak)
551 * Moose::Util::TypeConstraints
552 - move the ClassName type check code to
553 Class::MOP::is_class_loaded (thanks to Sartak)
555 * Moose::Cookbook::Recipe11
556 - add tests for this (thanks to tokuhirom)
558 0.48 Thurs. May 29, 2008
559 (early morning release engineering)--
561 - fixing the version in Moose::Meta::Method::Destructor
562 which was causing the indexer to choke
564 0.47 Thurs. May 29, 2008
565 (late night release engineering)--
567 - fixing the version is META.yml, no functional
568 changes in this release
570 0.46 Wed. May 28, 2008
571 !! This version now approx. 20-25% !!
572 !! faster with new Class::MOP 0.57 !!
575 - some optimizations of the &initialize method
576 since it is called so often by &meta
580 - now use the get_all_package_symbols from the
581 updated Class::MOP, test suite is now 10 seconds
584 * Moose::Meta::Method::Destructor
585 - is_needed can now also be called as a class
586 method for immutablization to check if the
587 destructor object even needs to be created
590 * Moose::Meta::Method::Destructor
591 Moose::Meta::Method::Constructor
592 - added more descriptive error message to help
593 keep people from wasting time tracking an error
594 that is easily fixed by upgrading.
596 0.45 Saturday, May 24, 2008
598 - Because of work in Class::MOP 0.57, all
599 XS based functionality is now optional
600 and a Pure Perl version is supplied
601 - the CLASS_MOP_NO_XS environment variable
602 can now be used to force non-XS versions
604 - several of the packages have been tweaked
605 to take care of this, mostly we added
606 support for the package_name and name
607 variables in all the Method metaclasses
608 - before/around/after method modifiers now
609 support regexp matching of names
610 (thanks to Takatoshi Kitano)
611 - tests added for this
612 - NOTE: this only works for classes, it
613 is currently not supported in roles,
614 but, ... patches welcome
615 - All usage of Carp::confess have been replaced
616 by Carp::croak in the "keyword" functions since
617 the stack trace is usually not helpful
620 - All usage of Carp::confess have been replaced
621 by Carp::croak in the "keyword" functions since
622 the stack trace is usually not helpful
623 - The 'has' keyword for roles now accepts the
624 same array ref form that Moose.pm does
625 (has [qw/foo bar/] => (is => 'rw', ...))
626 - added test for this
628 * Moose::Meta::Attribute
629 - trigger on a ro-attribute is no longer an
630 error, as it's useful to trigger off of the
634 - added same 'add_package_symbol' fix as in
638 - does_role now handles non-Moose classes
640 - added tests for this
641 - added the 'add_method_modifier' function
642 (thanks to Takatoshi Kitano)
644 * Moose::Util::TypeConstraints
645 - subtypes of parameterizable types now are
646 themselves parameterizable types
648 * Moose::Meta::Method::Constructor
649 - fixed bug where trigger was not being
650 called by the inlined immutable
652 - added test for this (thanks to Caelum)
654 * Moose::Meta::Role::Application::ToInstance
655 - now uses the metaclass of the instance
656 (if possible) to create the anon-class
657 (thanks Jonathan Rockway)
659 * Moose::Cookbook::Recipe22
660 - added the meta-attribute trait recipe
664 - fixed hash-ordering test bug that was
665 causing occasional cpantester failures
666 - renamed the t/000_recipe/*.t tests to be
667 more descriptive (thanks to Sartak)
669 0.44 Sat. May 10, 2008
671 - made make_immutable warning cluck to
672 show where the error is (thanks mst)
675 - BUILDALL and DEMOLISHALL now call
676 ->body when looping through the
677 methods, to avoid the overloaded
679 - fixed issue where DEMOLISHALL was
680 eating the $@ values, and so not
681 working correctly, it still kind of
682 eats them, but so does vanilla perl
683 - added tests for this
685 * Moose::Cookbook::Recipe7
686 - added new recipe for immutable
687 functionality (thanks Dave Rolsky)
689 * Moose::Cookbook::Recipe9
690 - added new recipe for builder and
691 lazy_build (thanks Dave Rolsky)
693 * Moose::Cookbook::Recipe11
694 - added new recipe for method aliasing
695 and exclusion with Roles (thanks Dave Rolsky)
698 - fixed Win32 test failure (thanks spicyjack)
700 ~ removed Build.PL and Module::Build compat
701 since Module::Install has done that.
703 0.43 Wed. April, 30, 2008
705 drink more coffee before
706 doing release engineering
708 - whoops, forgot to do the smolder tests,
709 and we broke some of the custom meta-attr
710 modules. This fixes that.
712 0.42 Mon. April 28, 2008
713 - some bad tests slipped by, nothing else
714 changed in this release (cpantesters++)
716 - upped the Class::MOP dependency to 0.55
717 since we have tests which need the C3
720 0.41 Mon. April 28, 2008
721 ~~ numerous documentation updates ~~
723 - Changed all usage of die to Carp::croak for better
724 error reporting (initial patch by Tod Hagan)
727 - the make_immutable keyword is now deprecated, don't
728 use it in any new code and please fix your old code
729 as well. There will be 2 releases, and then it will
735 - refactored the way inner and super work to avoid
736 any method/@ISA cache penalty (nothingmuch)
739 - fixing &new_object to make sure trigger gets the
740 coerced value (spotted by Charles Alderman on the
742 - added test for this
744 * Moose::Meta::Method::Constructor
745 - immutable classes which had non-lazy attributes were calling
746 the default generating sub twice in the constructor. (bug
747 found by Jesse Luehrs, fixed by Dave Rolsky)
748 - added tests for this (Dave Rolsky)
749 - fix typo in initialize_body method (nothingmuch)
751 * Moose::Meta::Method::Destructor
752 - fix typo in initialize_body method (nothingmuch)
754 * Moose::Meta::Method::Overriden
755 Moose::Meta::Method::Augmented
756 - moved the logic for these into their own
757 classes (nothingmuch)
759 * Moose::Meta::Attribute
760 - inherited attributes may now be extended without
761 restriction on the type ('isa', 'does') (Sartak)
762 - added tests for this (Sartak)
763 - when an attribute property is malformed (such as lazy without
764 a default), give the name of the attribute in the error
766 - added the &applied_traits and &has_applied_traits methods
767 to allow introspection of traits
768 - added tests for this
769 - moved 'trait' and 'metaclass' argument handling to here from
771 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
772 '+foo' syntax) (nothingmuch)
773 - added tests for this (t0m)
776 - localize $@ inside DEMOLISHALL to avoid it
777 eating $@ (found by Ernesto)
778 - added test for this (thanks to Ernesto)
780 * Moose::Util::TypeConstraints
781 - &find_type_constraint now DWIMs when given an
782 type constraint object or name (nothingmuch)
783 - &find_or_create_type_constraint superseded with a number of more
785 - find_or_create_{isa,does}_type_constraint
786 - find_or_parse_type_constraint
788 * Moose::Meta::TypeConstraint
789 Moose::Meta::TypeConstraint::Class
790 Moose::Meta::TypeConstraint::Role
791 Moose::Meta::TypeConstraint::Enum
792 Moose::Meta::TypeConstraint::Union
793 Moose::Meta::TypeConstraint::Parameterized
794 - added the &equals method for comparing two type
795 constraints (nothingmuch)
796 - added tests for this (nothingmuch)
798 * Moose::Meta::TypeConstraint
799 - add the &parents method, which is just an alias to &parent.
800 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
802 * Moose::Meta::TypeConstraint::Class
803 - added the class attribute for introspection purposes
805 - added tests for this
807 * Moose::Meta::TypeConstraint::Enum
808 Moose::Meta::TypeConstraint::Role
809 - broke these out into their own classes (nothingmuch)
811 * Moose::Cookbook::Recipe*
812 - fixed references to test file locations in the POD
813 and updated up some text for new Moose features
817 - Added &resolve_metaclass_alias, a helper function for finding an actual
818 class for a short name (e.g. in the traits list)
820 0.40 Fri. March 14, 2008
821 - I hate Pod::Coverage
823 0.39 Fri. March 14, 2008
825 - documenting the use of '+name' with attributes
826 that come from recently composed roles. It makes
827 sense, people are using it, and so why not just
828 officially support it.
829 - fixing the 'extends' keyword so that it will not
830 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
833 - added the perl -Moose=+Class::Name feature to allow
834 monkeypatching of classes in one liners
837 - fixing the 'apply_all_roles' keyword so that it will not
838 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
841 - added ->create method which now supports roles (thanks to jrockway)
842 - added tests for this
843 - added ->create_anon_class which now supports roles and caching of
844 the results (thanks to jrockway)
845 - added tests for this
846 - made ->does_role a little more forgiving when it is
847 checking a Class::MOP era metaclasses.
849 * Moose::Meta::Role::Application::ToInstance
850 - it is now possible to pass extra params to be used when
851 a role is applied to an the instance (rebless_params)
852 - added tests for this
854 * Moose::Util::TypeConstraints
855 - class_type now accepts an optional second argument for a
856 custom message. POD anotated accordingly (groditi)
857 - added tests for this
858 - it is now possible to make anon-enums by passing 'enum' an
859 ARRAY ref instead of the $name => @values. Everything else
861 - added tests for this
864 - making test for using '+name' on attributes consumed
865 from a role, it works and makes sense too.
867 * Moose::Meta::Attribute
868 - fix handles so that it doesn't return nothing
869 when the method cannot be found, not sure why
870 it ever did this originally, this means we now
871 have slightly better support for AUTOLOADed
873 - added more delegation tests
874 - adding ->does method to this so as to better
875 support traits and their introspection.
876 - added tests for this
879 - localizing the Data::Dumper configurations so
880 that it does not pollute others (RT #33509)
881 - made ->does a little more forgiving when it is
882 passed Class::MOP era metaclasses.
884 0.38 Fri. Feb. 15, 2008
885 * Moose::Meta::Attribute
886 - fixed initializer to correctly do
887 type checking and coercion in the
889 - added tests for this
892 - fixed some finicky tests (thanks to konobi)
894 0.37 Thurs. Feb. 14, 2008
896 - fixed some details in Moose::init_meta
897 and its superclass handling (thanks thepler)
898 - added tests for this (thanks thepler)
899 - 'has' now dies if you don't pass in name
901 - added the 'make_immutable' keyword as a shortcut
905 Moose::Meta::Method::Constructor
906 Moose::Meta::Attribute
907 - making (init_arg => undef) work here too
908 (thanks to nothingmuch)
910 * Moose::Meta::Attribute
911 Moose::Meta::Method::Constructor
912 Moose::Meta::Method::Accessor
913 - make lazy attributes respect attr initializers (rjbs)
914 - added tests for this
916 * Moose::Util::TypeConstraints
917 Moose::Util::TypeConstraints::OptimizedConstraints
918 Moose::Meta::TypeConstraints
919 Moose::Meta::Attribute
920 Moose::Meta::Method::Constructor
921 Moose::Meta::Method::Accessor
922 - making type errors use the
923 assigned message (thanks to Sartak)
924 - added tests for this
926 * Moose::Meta::Method::Destructor
927 - making sure DESTROY gets inlined properly
928 with successive DEMOLISH calls (thanks to manito)
930 * Moose::Meta::Attribute
931 Moose::Meta::Method::Accessor
932 - fixed handling of undef with type constraints
934 - added tests for this
937 - added &get_all_init_args and &get_all_attribute_values
938 (thanks to Sartak and nothingmuch)
940 0.36 Sat. Jan. 26, 2008
942 Moose::Meta::Attribute
943 - role type tests now support when roles are
944 applied to non-Moose classes (found by ash)
945 - added tests for this (thanks to ash)
946 - couple extra tests to boost code coverage
948 * Moose::Meta::Method::Constructor
949 - improved fix for handling Class::MOP attributes
950 - added test for this
953 - handled the add_attribute($attribute_meta_object)
955 - added test for this
957 0.35 Tues. Jan. 22, 2008
958 * Moose::Meta::Method::Constructor
959 - fix to make sure even Class::MOP attributes
960 are handled correctly (Thanks to Dave Rolsky)
961 - added test for this (also Dave Rolsky)
964 - improved error message on _apply_all_roles,
965 you should now use Moose::Util::apply_all_roles
966 and you shouldnt have been using a _ prefixed
967 method in the first place ;)
969 0.34 Mon. Jan. 21, 2008
970 ~~~ more misc. doc. fixes ~~~
971 ~~ updated copyright dates ~~
973 Moose is now a postmodern object system :)
974 - (see the POD for details)
976 * <<Role System Refactoring>>
977 - this release contains a major reworking and
978 cleanup of the role system
979 - 100% backwards compat.
980 - Role application now restructured into seperate
981 classes based on type of applicants
982 - Role summation (combining of more than one role)
983 is much cleaner and anon-classes are no longer
985 - new Composite role metaclass
986 - runtime application of roles to instances
987 is now more efficient and re-uses generated
988 classes when applicable
990 * <<New Role composition features>>
991 - methods can now be excluded from a given role
993 - methods can now be aliased to another name (and
994 still retain the original as well)
996 * Moose::Util::TypeConstraints::OptimizedConstraints
997 - added this module (see above)
1000 - fixed the &_process_attribute method to be called
1001 by &add_attribute, so that the API is now correct
1003 * Moose::Meta::Method::Accessor
1004 - fixed bug when passing a list of values to
1005 an accessor would get (incorrectly) ignored.
1006 Thanks to Sartak for finding this ;)
1007 - added tests for this (Sartak again)
1009 * Moose::Meta::Method::Accessor
1010 Moose::Meta::Method::Constructor
1011 Moose::Meta::Attribute
1012 Moose::Meta::TypeConstraint
1013 Moose::Meta::TypeCoercion
1014 - lots of cleanup of such things as:
1016 - type constraint handling
1017 - error handling/messages
1018 (thanks to nothingmuch)
1020 * Moose::Meta::TypeConstraint::Parameterizable
1021 - added this module to support the refactor
1022 in Moose::Meta::TypeConstraint::Parameterized
1024 * Moose::Meta::TypeConstraint::Parameterized
1025 - refactored how these types are handled so they
1026 are more generic and not confined to ArrayRef
1030 - shortened some file names for better VMS support (RT #32381)
1032 0.33 Fri. Dec. 14, 2007
1033 !! Moose now loads 2 x faster !!
1034 !! with new Class::MOP 0.49 !!
1036 ++ new oose.pm module to make command line
1037 Moose-ness easier (see POD docs for more)
1039 * Moose::Meta::Class
1041 - several tweaks to take advantage of the
1042 new method map caching in Class::MOP
1044 * Moose::Meta::TypeConstraint::Parameterized
1045 - allow subtypes of ArrayRef and HashRef to
1046 be used as a container (sartak)
1047 - added tests for this
1048 - basic support for coercion to ArrayRef and
1049 HashRef for containers (sartak)
1050 - added tests for this
1052 * Moose::Meta::TypeCoercion
1053 - coercions will now create subtypes as needed
1054 so you can now add coercions to parameterized
1055 types without having to explictly define them
1056 - added tests for this
1058 * Moose::Meta::Method::Accessor
1059 - allow subclasses to decide whether we need
1060 to copy the value into a new variable (sartak)
1062 0.32 Tues. Dec. 4, 2007
1063 * Moose::Util::TypeConstraints
1064 - fixing how subtype aliases of unions work
1065 they should inherit the parent's coercion
1066 - added tests for this
1067 - you can now define multiple coercions on
1068 a single type at different times instead of
1069 having to do it all in one place
1070 - added tests for this
1072 * Moose::Meta::TypeConstraint
1073 - there is now a default constraint of sub { 1 }
1074 instead of Moose::Util::TypeConstraints setting
1077 * Moose::Meta::TypeCoercion
1078 * Moose::Meta::TypeCoercion::Union
1079 - added the &has_coercion_for_type and
1080 &add_type_coercions methods to support the
1081 new features above (although you cannot add
1082 more type coercions for Union types)
1084 0.31 Mon. Nov. 26, 2007
1085 * Moose::Meta::Attribute
1086 - made the +attr syntax handle extending types with
1087 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1088 now works if the original foo is an ArrayRef.
1089 - added tests for this.
1090 - delegation now works even if the attribute does not
1091 have a reader method using the get_read_method_ref
1092 method from Class::MOP::Attribute.
1093 - added tests for this
1094 - added docs for this
1096 * Moose::Util::TypeConstraints
1097 - passing no "additional attribute info" to
1098 &find_or_create_type_constraint will no longer
1099 attempt to create an __ANON__ type for you,
1100 instead it will just return undef.
1101 - added docs for this
1103 0.30 Fri. Nov. 23, 2007
1104 * Moose::Meta::Method::Constructor
1105 -builder related bug in inlined constructor. (groditi)
1107 * Moose::Meta::Method::Accessor
1108 - genereate unnecessary calls to predicates and refactor
1109 code generation for runtime speed (groditi)
1111 * Moose::Util::TypeConstraints
1112 - fix ClassName constraint to introspect symbol table (mst)
1113 - added more tests for this (mst)
1114 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1115 with work correctly.
1116 - added tests for this
1119 - adding the link to Recipie 11 (written by Sartak)
1120 - adding test for SYNOPSIS code
1123 - New tests for builder bug. Upon instantiation, if an
1124 attribute had a builder, no value and was not lazy the
1125 builder default was not getting run, oops. (groditi)
1127 0.29 Tues. Nov. 13, 2007
1128 * Moose::Meta::Attribute
1129 - Fix error message on missing builder method (groditi)
1131 * Moose::Meta::Method::Accessor
1132 - Fix error message on missing builder method (groditi)
1135 - Add test to check for the correct error message when
1136 builder method is missing (groditi)
1138 0.28 Tues. Nov. 13, 2007
1139 - 0.27 packaged incorrectly (groditi)
1141 0.27 Tues. Nov. 13, 2007
1142 * Moose::Meta::Attribute
1143 - Added support for the new builder option (groditi)
1144 - Added support for lazy_build option (groditi)
1145 - Changed slot initialization for predicate changes (groditi)
1147 * Moose::Meta::Method::Accessor
1148 - Added support for lazy_build option (groditi)
1149 - Fix inline methods to work with corrected predicate
1152 * Moose::Meta::Method::Constructor
1153 - Added support for lazy_build option (groditi)
1156 - tests for builder and lazy_build (groditi)
1158 * fixing some misc. bits in the docs that
1159 got mentioned on CPAN Forum & perlmonks
1162 - fixed how required methods are handled
1163 when they encounter overriden or modified
1164 methods from a class (thanks to confound).
1165 - added tests for this
1167 * Moose::Util::TypeConstraint
1168 - fixed the type notation parser so that
1169 the | always creates a union and so is
1170 no longer a valid type char (thanks to
1171 konobi, mugwump and #moose for working
1173 - added more tests for this
1175 0.26 Thurs. Sept. 27, 2007
1178 * Parameterized Types
1179 We now support parameterized collection types, such as:
1180 ArrayRef[Int] # array or integers
1181 HashRef[Object] # a hash with object values
1182 They can also be nested:
1183 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1184 And work with the type unions as well:
1185 ArrayRef[Int | Str] # array of integers of strings
1187 * Better Framework Extendability
1188 Moose.pm is now "extendable" such that it is now much
1189 easier to extend the framework and add your own keywords
1190 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1191 section of the Moose.pm docs.
1194 In an effort to begin documenting some of the various
1195 details of Moose as well as some common idioms, we have
1196 created Moose::Cookbook::Snacks as a place to find
1197 small (easily digestable) nuggets of Moose code.
1200 ~ Several doc updates/cleanup thanks to castaway ~
1202 - converted build system to use Module::Install instead of
1203 Module::Build (thanks to jrockway)
1206 - added all the meta classes to the immutable list and
1207 set it to inline the accessors
1208 - fix import to allow Sub::Exporter like { into => }
1209 and { into_level => } (perigrin)
1210 - exposed and documented init_meta() to allow better
1211 embedding and extending of Moose (perigrin)
1214 - complete re-organization of the test suite
1215 - added some new tests as well
1216 - finally re-enabled the Moose::POOP test since
1217 the new version of DBM::Deep now works again
1220 * Moose::Meta::Class
1221 - fixed very odd and very nasty recursion bug with
1223 - added tests for this (eilara)
1225 * Moose::Meta::Attribute
1226 Moose::Meta::Method::Constructor
1227 Moose::Meta::Method::Accessor
1228 - fixed issue with overload::Overloaded getting called
1229 on non-blessed items. (RT #29269)
1230 - added tests for this
1232 * Moose::Meta::Method::Accessor
1233 - fixed issue with generated accessor code making
1234 assumptions about hash based classes (thanks to dexter)
1236 * Moose::Coookbook::Snacks
1237 - these are bits of documentation, not quite as big as
1238 Recipes but which have no clear place in the module docs.
1239 So they are Snacks! (horray for castaway++)
1241 * Moose::Cookbook::Recipe4
1242 - updated it to use the new ArrayRef[MyType] construct
1243 - updated the accompanying test as well
1245 +++ Major Refactor of the Type Constraint system +++
1246 +++ with new features added as well +++
1248 * Moose::Util::TypeConstraint
1249 - no longer uses package variable to keep track of
1250 the type constraints, now uses the an instance of
1251 Moose::Meta::TypeConstraint::Registry to do it
1252 - added more sophisticated type notation parsing
1254 - added tests for this
1256 * Moose::Meta::TypeConstraint
1257 - some minor adjustments to make subclassing easier
1258 - added the package_defined_in attribute so that we
1259 can track where the type constraints are created
1261 * Moose::Meta::TypeConstraint::Union
1262 - this is now been refactored to be a subclass of
1263 Moose::Meta::TypeConstraint
1265 * Moose::Meta::TypeCoercion::Union
1266 - this has been added to service the newly refactored
1267 Moose::Meta::TypeConstraint::Union and is itself
1268 a subclass of Moose::Meta::TypeCoercion
1270 * Moose::Meta::TypeConstraint::Parameterized
1271 - added this module (taken from MooseX::AttributeHelpers)
1272 to help construct nested collection types
1273 - added tests for this
1275 * Moose::Meta::TypeConstraint::Registry
1276 - added this class to keep track of type constraints
1278 0.25 Mon. Aug. 13, 2007
1280 - Documentation update to reference Moose::Util::TypeConstraints
1281 under 'isa' in 'has' for how to define a new type
1282 (thanks to shlomif).
1284 * Moose::Meta::Attribute
1285 - required attributes now will no longer accept undef
1286 from the constructor, even if there is a default and lazy
1287 - added tests for this
1288 - default subroutines must return a value which passes the
1290 - added tests for this
1292 * Moose::Meta::Attribute
1293 * Moose::Meta::Method::Constructor
1294 * Moose::Meta::Method::Accessor
1295 - type-constraint tests now handle overloaded objects correctly
1296 in the error message
1297 - added tests for this (thanks to EvanCarroll)
1299 * Moose::Meta::TypeConstraint::Union
1300 - added (has_)hand_optimized_constraint to this class so that
1301 it behaves as the regular Moose::Meta::TypeConstraint does.
1304 - large refactoring of this code
1305 - added several more tests
1306 - tests for subtle conflict resolition issues
1307 added, but not currently running
1310 * Moose::Cookbook::Recipe7
1311 - added new recipe for augment/inner functionality
1313 - added test for this
1316 - a formal definition of roles (still in progress)
1319 - utilities for easier working with Moose classes
1320 - added tests for these
1323 - This contains Moose specific test functions
1324 - added tests for these
1326 0.24 Tues. July 3, 2007
1327 ~ Some doc updates/cleanup ~
1329 * Moose::Meta::Attribute
1330 - added support for roles to be given as parameters
1331 to the 'handles' option.
1332 - added tests and docs for this
1333 - the has '+foo' attribute form now accepts changes to
1334 the lazy option, and the addition of a handles option
1335 (but not changing the handles option)
1336 - added tests and docs for this
1339 - required methods are now fetched using find_method_by_name
1340 so that required methods can come from superclasses
1341 - adjusted tests for this
1343 0.23 Mon. June 18, 2007
1344 * Moose::Meta::Method::Constructor
1345 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1346 * Moose::Meta::Class
1347 - Modify make_immutable to work with the new Class::MOP immutable
1348 mechanism + POD + very basic test (groditi)
1349 * Moose::Meta::Attribute
1350 - Fix handles to use goto() so that caller() comes out properly on
1351 the other side (perigrin)
1353 0.22 Thurs. May 31, 2007
1354 * Moose::Util::TypeConstraints
1355 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1356 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1357 prototypes for functions
1358 - added the ClassName type constraint, this checks for strings
1359 which will respond true to ->isa(UNIVERSAL).
1360 - added tests and docs for this
1361 - subtyping just in name now works correctly by making the
1362 default for where be { 1 }
1363 - added test for this
1365 * Moose::Meta::Method::Accessor
1366 - coerce and lazy now work together correctly, thanks to
1367 merlyn for finding this bug
1368 - tests added for this
1369 - fix reader presedence bug in Moose::Meta::Attribute + tests
1372 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1373 a HASH-ref and missed. This produces better error messages then
1374 having it die cause undef is not a HASH.
1375 - added tests for this
1377 0.21 Thursday, May 2nd, 2007
1379 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1380 - modified unimport to remove super and inner along with the rest
1381 - altered unimport tests to handle this
1384 - altered super export to populate SUPER_SLOT
1386 * Moose::Meta::Class
1387 - altered augment and override modifier application to use *_SLOT
1388 - modified tests for these to unimport one test class each to test
1391 - fixed issue where custom attribute metaclasses
1392 where not handled correctly in roles
1393 - added tests for this
1395 * Moose::Meta::Class
1396 - fixed issue where extending metaclasses with
1397 roles would blow up. Thanks to Aankhen`` for
1398 finding this insidious error, and it's solution.
1400 ~~ lots of spelling and grammer fixes in the docs,
1401 many many thanks to rlb3 and Aankhen for these :)
1403 0.20 Friday, April 6th, 2007
1404 >> I messed up the SKIP logic in one test
1405 so this release is just to fix that.
1408 - 'has' now also accepts an ARRAY ref
1409 to create multiple attrs (see docs)
1410 (thanks to konobi for this)
1411 - added tests and docs
1413 0.19 Thurs. April 5th, 2007
1414 ~~ More documentation updates ~~
1416 * Moose::Util::TypeConstraints
1417 - 'type' now supports messages as well
1418 thanks to phaylon for finding this
1419 - added tests for this
1420 - added &list_all_type_constraints and
1421 &list_all_builtin_type_constraints
1422 functions to facilitate introspection.
1424 * Moose::Meta::Attribute
1425 - fixed regexp 'handles' declarations
1426 to build the list of delegated methods
1427 correctly (and not override important
1428 things like &new) thanks to ashleyb
1430 - added tests and docs for this
1431 - added the 'documentation' attributes
1432 so that you can actually document your
1433 attributes and inspect them through the
1435 - added tests and docs for this
1437 * Moose::Meta::Class
1438 - when loading custom attribute metaclasses
1439 it will first look in for the class in the
1440 Moose::Meta::Attribute::Custom::$name, and
1441 then default to just loading $name.
1442 - added tests and docs for this
1444 * Moose::Meta::TypeConstraint
1445 - type constraints now stringify to their names.
1446 - added test for this
1449 - added tests to assure we work with Module::Refresh
1450 - added stricter test skip logic in the Moose POOP
1451 test, ask Rob Kinyon why.
1452 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1454 0.18 Sat. March 10, 2007
1455 ~~ Many, many documentation updates ~~
1458 - We now use Class::MOP::load_class to
1460 - added tests to show types and subtypes
1461 working with Declare::Constraints::Simple
1462 and Test::Deep as constraint engines.
1465 !! You must have Class::MOP 0.37_001 !!
1466 !! for this developer release to work !!
1468 This release was primarily adding the immutable
1469 feature to Moose. An immutable class is one which
1470 you promise not to alter. When you set the class
1471 as immutable it will perform various bits of
1472 memoization and inline certain part of the code
1473 (constructors, destructors and accessors). This
1474 minimizes (and in some cases totally eliminates)
1475 one of Moose's biggest performance hits. This
1476 feature is not on by default, and is 100% optional.
1477 It has several configurable bits as well, so you
1478 can pick and choose to your specific needs.
1480 The changes involved in this were fairly wide and
1481 highly specific, but 100% backwards compatible, so
1482 I am not going to enumerate them here. If you are
1483 truely interested in what was changed, please do
1486 0.17 Tues. Nov. 14, 2006
1487 * Moose::Meta::Method::Accessor
1488 - bugfix for read-only accessors which
1489 are have a type constraint and lazy.
1490 Thanks to chansen for finding it.
1492 0.16 Tues. Nov. 14, 2006
1494 There are some speed improvements in this release,
1495 but they are only the begining, so stay tuned.
1498 - BUILDALL and DEMOLISHALL no longer get
1499 called unless they actually need to be.
1500 This gave us a signifigant speed boost
1501 for the cases when there is no BUILD or
1502 DEMOLISH method present.
1504 * Moose::Util::TypeConstraints
1505 * Moose::Meta::TypeConstraint
1506 - added an 'optimize_as' option to the
1507 type constraint, which allows for a
1508 hand optimized version of the type
1509 constraint to be used when possible.
1510 - Any internally created type constraints
1511 now provide an optimized version as well.
1513 0.15 Sun. Nov. 5, 2006
1515 This version of Moose *must* have Class::MOP 0.36 in order
1516 to work correctly. A number of small internal tweaks have
1517 been made in order to be compatible with that release.
1519 * Moose::Util::TypeConstraints
1520 - added &unimport so that you can clean out
1521 your class namespace of these exported
1524 * Moose::Meta::Class
1525 - fixed minor issue which occasionally
1526 comes up during global destruction
1528 - moved Moose::Meta::Method::Overriden into
1532 - moved Moose::Meta::Role::Method into
1535 * Moose::Meta::Attribute
1536 - changed how we do type checks so that
1537 we reduce the overall cost, but still
1540 - moved accessor generation methods to
1541 Moose::Meta::Method::Accessor to
1542 conform to the API changes from
1545 * Moose::Meta::TypeConstraint
1546 - changed how constraints are compiled
1547 so that we do less recursion and more
1548 iteration. This makes the type check
1550 - moved Moose::Meta::TypeConstraint::Union
1553 * Moose::Meta::Method::Accessor
1554 - created this from methods formerly found in
1555 Moose::Meta::Attribute
1557 * Moose::Meta::Role::Method
1558 - moved this from Moose::Meta::Role
1560 * Moose::Meta::Method::Overriden
1561 - moved this from Moose::Meta::Class
1563 * Moose::Meta::TypeConstraint::Union
1564 - moved this from Moose::Meta::TypeConstraint
1566 0.14 Mon. Oct. 9, 2006
1568 * Moose::Meta::Attribute
1569 - fixed lazy attributes which were not getting
1570 checked with the type constraint (thanks ashley)
1571 - added tests for this
1572 - removed the over-enthusiastic DWIMery of the
1573 automatic ArrayRef and HashRef defaults, it
1574 broke predicates in an ugly way.
1575 - removed tests for this
1577 0.13 Sat. Sept. 30, 2006
1579 This version of Moose *must* have Class::MOP 0.35 in order
1580 to work correctly. A number of small internal tweaks have
1581 been made in order to be compatible with that release.
1584 - Removed the use of UNIVERSAL::require to be a better
1585 symbol table citizen and remove a dependency
1586 (thanks Adam Kennedy)
1588 **~~ removed experimental & undocumented feature ~~**
1589 - commented out the 'method' and 'self' keywords, see the
1590 comments for more info.
1593 - added a FAQ and WTF files to document frequently
1594 asked questions and common problems
1596 * Moose::Util::TypeConstraints
1597 - added GlobRef and FileHandle type constraint
1598 - added tests for this
1600 * Moose::Meta::Attribute
1601 - if your attribute 'isa' ArrayRef of HashRef, and you have
1602 not explicitly set a default, then make the default DWIM.
1603 This will also work for subtypes of ArrayRef and HashRef
1605 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1606 - new test added for this (thanks to ashley)
1609 - added basic support for runtime role composition
1610 but this is still *highly experimental*, so feedback
1611 is much appreciated :)
1612 - added tests for this
1614 * Moose::Meta::TypeConstraint
1615 - the type constraint now handles the coercion process
1616 through delegation, this is to support the coercion
1619 * Moose::Meta::TypeConstraint::Union
1620 - it is now possible for coercions to be performed
1622 - added tests for this (thanks to konobi)
1624 * Moose::Meta::TypeCoercion
1625 - properly capturing error when type constraint
1629 - Scalar::Util 1.18 is bad on Win32, so temporarily
1630 only require version 1.17 for Win32 and cygwin.
1631 (thanks Adam Kennedy)
1633 0.12 Sat. Sept. 1, 2006
1635 - Recipe5 (subtypes & coercion) has been written
1638 - fixed "bad meta" error message to be more descriptive
1639 - fixed &unimport to not remove the &inner and &super
1640 keywords because we need to localize them.
1641 - fixed number of spelling/grammer issues, thanks Theory :)
1643 **~~ experimental & undocumented feature ~~**
1644 - added the method and self keywords, they are basically
1645 just sugar, and they may not stay around.
1648 - added &dump method to easily Data::Dumper
1651 * Moose::Meta::TypeConstraint
1652 - added the &is_a_type_of method to check both the current
1653 and the subtype of a method (similar to &isa with classes)
1656 - this is now a subclass of Class::MOP::Module, and no longer
1657 creates the _role_meta ugliness of before.
1658 - fixed tests to reflect this change
1660 0.11 Wed. July 12, 2006
1662 - added an &unimport method to remove all the keywords
1663 that Moose will import, simply add 'no Moose' to the
1664 bottom of your class file.
1667 - fixed some test failures caused by a forgotten test
1670 0.10 Thurs. July 6, 2006
1672 - improved error message when loading modules so
1673 it is less confusing when you load a role.
1674 - added &calculate_all_roles method to
1675 Moose::Meta::Class and Moose::Meta::Role
1678 This module has been tested against Class::MOP 0.30
1679 but it does not yet utilize the optimizations
1680 it makes available. Stay tuned for that ;)
1682 0.09_03 Fri. June 23, 2006
1683 ++ DEVELOPER RELEASE ++
1685 - 'use strict' and 'use warnings' are no longer
1686 needed in Moose classes, Moose itself will
1687 turn them on for you.
1688 - added tests for this
1689 - moved code from exported subs to private methods
1690 in Moose::Meta::Class
1693 - as with Moose, strict and warnings are
1694 automatically turned on for you.
1695 - added tests for this
1698 - now handles an edge case for override errors
1699 - added tests for this
1700 - added some more edge case tests
1702 0.09_02 Tues. May 16, 2006
1703 ++ DEVELOPER RELEASE ++
1705 - added prototypes to the exported subs
1709 - added prototypes to the exported subs
1712 * Moose::Util::TypeConstraints
1713 - cleaned up prototypes for the subs
1716 0.09_01 Fri. May 12, 2006
1717 ++ DEVELOPER RELEASE ++
1718 - This release works in combination with
1719 Class::MOP 0.29_01, it is a developer
1720 release because it uses the a new
1721 instance sub-protocol and a fairly
1722 complete Role implementation. It has
1723 not yet been optimized, so it slower
1724 the the previous CPAN version. This
1725 release also lacks good updated docs,
1726 the official release will have updated docs.
1729 - refactored the keyword exports
1730 - 'with' now checks Role validaity and
1731 accepts more than one Role at a time
1732 - 'extends' makes metaclass adjustments as
1733 needed to ensure metaclass compatibility
1736 - refactored the keyword exports
1737 - 'with' now checks Role validaity and
1738 accepts more than one Role at a time
1740 * Moose::Util::TypeConstraints
1741 - added the 'enum' keyword for simple
1742 string enumerations which can be used as
1744 - see example of usage in t/202_example.t
1747 - more careful checking of params to new()
1750 - much work done on the role composition
1751 - many new tests for conflict detection
1752 and composition edge cases
1753 - not enough documentation, I suggest
1754 looking at the tests
1756 * Moose::Meta::Instance
1757 - added new Instance metaclass to support
1758 the new Class::MOP instance protocol
1760 * Moose::Meta::Class
1761 - some small changes to support the new
1763 - some small additions to support Roles
1765 * Moose::Meta::Attribute
1766 - some improvements to the accessor generation code
1768 - some small changes to support the new
1770 - (still somewhat) experimental delegation support
1771 with the 'handles' option
1772 - added several tests for this
1773 - no docs for this yet
1775 0.05 Thurs. April 27, 2006
1777 - keywords are now exported with Sub::Exporter
1778 thanks to chansen for this commit
1779 - has keyword now takes a 'metaclass' option
1780 to support custom attribute meta-classes
1781 on a per-attribute basis
1782 - added tests for this
1783 - the 'has' keyword not accepts inherited slot
1784 specifications (has '+foo'). This is still an
1785 experimental feature and probably not finished
1786 see t/038_attribute_inherited_slot_specs.t for
1787 more details, or ask about it on #moose
1788 - added tests for this
1791 - keywords are now exported with Sub::Exporter
1793 * Moose::Utils::TypeConstraints
1794 - reorganized the type constraint hierarchy, thanks
1795 to nothingmuch and chansen for his help and advice
1797 - added some tests for this
1798 - keywords are now exported with Sub::Exporter
1799 thanks to chansen for this commit
1801 * Moose::Meta::Class
1802 - due to changes in Class::MOP, we had to change
1803 construct_instance (for the better)
1805 * Moose::Meta::Attribute
1806 - due to changes in Class::MOP, we had to add the
1807 initialize_instance_slot method (it's a good thing)
1809 * Moose::Meta::TypeConstraint
1810 - added type constraint unions
1811 - added tests for this
1812 - added the is_subtype_of predicate method
1813 - added tests for this
1815 0.04 Sun. April 16th, 2006
1817 - Roles can now consume other roles
1818 - added tests for this
1819 - Roles can specify required methods now with
1820 the requires() keyword
1821 - added tests for this
1824 - ripped out much of it's guts ,.. much cleaner now
1825 - added required methods and correct handling of
1826 them in apply() for both classes and roles
1827 - added tests for this
1828 - no longer adds a does() method to consuming classes
1829 it relys on the one in Moose::Object
1830 - added roles attribute and some methods to support
1831 roles consuming roles
1833 * Moose::Meta::Attribute
1834 - added support for triggers on attributes
1835 - added tests for this
1836 - added support for does option on an attribute
1837 - added tests for this
1839 * Moose::Meta::Class
1840 - added support for attribute triggers in the
1842 - added tests for this
1845 - Moose no longer creates a subtype for your class
1846 if a subtype of the same name already exists, this
1847 should DWIM in 99.9999% of all cases
1849 * Moose::Util::TypeConstraints
1850 - fixed bug where incorrect subtype conflicts were
1852 - added test for this
1855 - this class can now be extended with 'use base' if
1856 you need it, it properly loads the metaclass class now
1857 - added test for this
1859 0.03_02 Wed. April 12, 2006
1861 - you must now explictly use Moose::Util::TypeConstraints
1862 it no longer gets exported for you automatically
1865 - new() now accepts hash-refs as well as key/value lists
1866 - added does() method to check for Roles
1867 - added tests for this
1869 * Moose::Meta::Class
1870 - added roles attribute along with the add_role() and
1872 - added tests for this
1875 - now adds a does() method to consuming classes
1876 which tests the class's hierarchy for roles
1877 - added tests for this
1879 0.03_01 Mon. April 10, 2006
1881 - added new Role recipe (no content yet, only code)
1884 - added 'with' keyword for Role support
1885 - added test and docs for this
1886 - fixed subtype quoting bug
1887 - added test for this
1891 - added test and docs
1893 * Moose::Util::TypeConstraints
1894 - added the message keyword to add custom
1895 error messages to type constraints
1898 - the meta role to support Moose::Role
1899 - added tests and docs
1901 * Moose::Meta::Class
1902 - moved a number of things from Moose.pm
1903 to here, they should have been here
1906 * Moose::Meta::Attribute
1907 - moved the attribute option macros here
1908 instead of putting them in Moose.pm
1910 * Moose::Meta::TypeConstraint
1911 - added the message attributes and the
1913 - added tests and docs for this
1915 0.03 Thurs. March 30, 2006
1917 - added the Moose::Cookbook with 5 recipes,
1918 describing all the stuff Moose can do.
1921 - fixed an issue with &extends super class loading
1922 it now captures errors and deals with inline
1923 packages correctly (bug found by mst, solution
1925 - added super/override & inner/augment features
1926 - added tests and docs for these
1929 - BUILDALL now takes a reference of the %params
1930 that are passed to &new, and passes that to
1933 * Moose::Util::TypeConstraints
1934 - Type constraints now survive runtime reloading
1935 - added test for this
1937 * Moose::Meta::Class
1938 - fixed the way attribute defaults are handled
1939 during instance construction (bug found by chansen)
1941 * Moose::Meta::Attribute
1942 - read-only attributes now actually enforce their
1943 read-only-ness (this corrected in Class::MOP as
1946 0.02 Tues. March 21, 2006
1948 - many more tests, fixing some bugs and
1950 - &extends now loads the base module with
1952 - added UNIVERSAL::require to the
1955 - each new Moose class will also create
1956 and register a subtype of Object which
1957 correspond to the new Moose class.
1958 - the 'isa' option in &has now only
1959 accepts strings, and will DWIM in
1962 * Moose::Util::TypeConstraints
1963 - added type coercion features
1964 - added tests for this
1965 - added support for this in attributes
1966 and instance construction
1968 - type construction no longer creates a
1969 function, it registers the type instead.
1970 - added several functions to get the
1974 - BUILDALL and DEMOLISHALL were broken
1975 because of a mis-named hash key, Whoops :)
1977 * Moose::Meta::Attribute
1978 - adding support for coercion in the
1979 autogenerated accessors
1981 * Moose::Meta::Class
1982 - adding support for coercion in the
1983 instance construction
1985 * Moose::Meta::TypeConstraint
1986 * Moose::Meta::TypeCoercion
1987 - type constraints and coercions are now
1988 full fledges meta-objects
1990 0.01 Wed. March 15, 2006
1991 - Moooooooooooooooooose!!!