1 Revision history for Perl extension Moose
3 0.62 Wed November 26, 2008
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
10 - added test for this (stevan)
12 * Moose::Meta::Role::Application::RoleSummation
13 - fixed the error message when trying to compose
14 a role with a role it excludes (Sartak)
17 - Catch another case where recursion caused the value
18 of $CALLER to be stamped on (t0m)
19 - added test for this (t0m)
22 - Remove the make_immutable keyword, which has been
23 deprecated since April. It breaks metaclasses that
24 use Moose without no Moose (Sartak)
26 * Moose::Meta::Attribute
27 - Removing an attribute from a class now also removes delegation
28 (handles) methods installed for that attribute (t0m)
29 - added test for this (t0m)
31 * Moose::Meta::Method::Constructor
32 - An attribute with a default that looked like a number (but was
33 really a string) would accidentally be treated as a number
34 when the constructor was made immutable (perigrin)
35 - added test for this (perigrin)
38 - create method for constructing a role
40 - added test for this (Sartak)
41 - anonymous roles! (Sartak)
42 - added test for this (Sartak)
45 - more consistent error messages (Sartak)
47 * Moose::Cookbook::Roles::Recipe1
48 - attempt to explain why a role that just requires
49 methods is useful (Sartak)
51 0.61 Fri November 7, 2008
52 * Moose::Meta::Attribute
53 - When passing a role to handles, it will be loaded if necessary
57 - Method objects returned by get_method (and other methods)
58 Could end up being returned without an associated_metaclass
59 attribute. Removing get_method_map, which is provided by
60 Class::MOP::Class, fixed this. The Moose version did nothing
61 different from its parent except introduce a bug. (Dave Rolsky)
62 - added tests for this (jdv79)
65 - Added a $VERSION to all .pm files which didn't have one. Fixes
66 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
68 * Moose::Cookbook::Basics::Recipe4
69 * Moose::Cookbook::Basics::Recipe6
70 - These files had spaces on the first line of the SYNOPSIS, as
71 opposed to a totally empty line. According to RT #40432, this
72 confuses POD parsers. (Dave Rolsky)
74 0.60 Fri October 24, 2008
76 - Passing "-traits" when loading Moose caused the Moose.pm
77 exports to be broken. Reported by t0m. (Dave Rolsky)
78 - Tests for this bug. (t0m)
81 - Change resolve_metaclass alias to use the new
82 load_first_existing_class function. This makes it a lot
83 simpler, and also around 5 times faster. (t0m)
84 - Add caching to resolve_metaclass_alias, which gives an order
85 of magnitude speedup to things which repeatedly call the
86 Moose::Meta::Attribute->does method, notably MooseX::Storage
89 * Moose::Util::TypeConstraint
90 - Put back the changes for parameterized constraints that
91 shouldn't have been removed in 0.59. We still cannot parse
92 them, but MooseX modules can create them in some other
93 way. See the 0.58 changes for more details. (jnapiorkowski)
94 - Changed the way subtypes are created so that the job is
95 delegated to a type constraint parent. This clears up some
96 hardcoded checking and should allow correct subtypes of
97 Moose::Meta::Type::Constraint. Don't rely on this new API too
98 much (create_child_type) because it may go away in the
99 future. (jnapiorkowski)
101 * Moose::Meta::TypeConstraint::Union
102 - Type constraint names are sorted as strings, not numbers.
105 * Moose::Meta::TypeConstraint::Parameterizable
106 - New parameterize method. This can be used as a factory method
107 to make a new type constraint with a given parameterized
108 type. (jnapiorkowski)
109 - added tests (jnapiorkowski)
111 0.59 Tue October 14, 2008
113 - Add abridged documentation for builder/default/initializer/
114 predicate, and link to more details sections in
115 Class::MOP::Attribute. (t0m)
117 * Moose::Util::TypeConstraints
118 - removed prototypes from all but the &-based stuff (mst)
120 * Moose::Util::TypeConstraints
121 - Creating a anonymous subtype with both a constraint and a
122 message failed with a very unhelpful error, but should just
123 work. Reported by t0m. (Dave Rolsky)
126 - Some tests that used Test::Warn if it was available failed
127 with older versions of Test::Warn. Reported by Fayland. (Dave
129 - Test firing behavior of triggers in relation to builder/default/
131 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
132 kinds of supported type. (t0m)
135 - In create(), do not pass "roles" option to the superclass
136 - added related test that creates an anon metaclass with
139 * Moose::Meta::TypeConstraint::Class
140 * Moose::Meta::TypeConstraint::Role
141 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
142 other types (as per change in 0.55_02). (t0m)
144 * Moose::Meta::TypeConstraint::Registry
145 - Fix warning when dealing with unknown type names (t0m)
147 * Moose::Util::TypeConstraints
148 - Reverted changes from 0.58 related to handle parameterized
149 types. This caused random failures on BSD and Win32 systems,
150 apparently related to the regex engine. This means that Moose
151 can no longer parse structured type constraints like
152 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
153 supported in a slightly different way via MooseX::Types some
154 time in the future. (Dave Rolsky)
156 0.58 Sat September 20, 2008
157 !! This release has an incompatible change regarding !!
158 !! how roles add methods to a class !!
160 * Roles and role application
161 ! Roles now add methods by calling add_method, not
162 alias_method. They make sure to always provide a method
163 object, which will be cloned internally. This means that it is
164 now possible to track the source of a method provided by a
165 role, and even follow its history through intermediate roles.
167 This means that methods added by a role now show up when
168 looking at a class's method list/map. (Dave Rolsky)
171 - From this release on, we'll try to maintain a list of
172 conflicting modules, and warn you if you have one
173 installed. For example, this release conflicts with ...
174 - MooseX::Singleton <= 0.11
175 - MooseX::Params::Validate <= 0.05
178 In general, we try to not break backwards compatibility for
179 most Moose users, but MooseX modules and other code which
180 extends Moose's metaclasses is often affected by very small
181 changes in the Moose internals.
183 * Moose::Meta::Method::Delegation
184 * Moose::Meta::Attribute
185 - Delegation methods now have their own method class. (Dave
188 * Moose::Meta::TypeConstraint::Parameterizable
189 - Added a new method 'parameterize' which is basically a factory
190 for the containing constraint. This makes it easier to create
191 new types of parameterized constraints. (jnapiorkowski)
193 * Moose::Meta::TypeConstraint::Union
194 - Changed the way Union types canonicalize their names to follow
195 the normalized TC naming rules, which means we strip all
196 whitespace. (jnapiorkowski)
198 * Moose::Util::TypeConstraints
199 - Parameter and Union args are now sorted, this makes Int|Str
200 the same constraint as Str|Int. (jnapiorkowski)
201 - Changes to the way Union types are parsed to more correctly
202 stringify their names. (jnapiorkowski)
203 - When creating a parameterized type, we now use the new
204 parameterize method. (jnapiorkowski)
205 - Incoming type constraint strings are now normalized to remove
206 all whitespace differences. (jnapiorkowski)
207 - Changed the way we parse type constraint strings so that we now
208 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
209 constraints. This lays the foundation for more flexible type
210 constraint implementations.
212 * Tests and docs for all the above. (jnapiorkowski)
216 - Moose::Exporter will no longer remove a subroutine that the
217 exporting package re-exports. Moose re-exports the
218 Carp::confess function, among others. The reasoning is that we
219 cannot know whether you have also explicitly imported those
220 functions for your own use, so we err on the safe side and
221 always keep them. (Dave Rolsky)
222 - added tests for this (rafl)
225 - Changes to how we fix metaclass compatibility that are much
226 too complicated to go into. The summary is that Moose is much
227 less likely to complain about metaclass incompatibility
228 now. In particular, if two metaclasses differ because
229 Moose::Util::MetaRole was used on the two corresponding
230 classes, then the difference in roles is reconciled for the
231 subclass's metaclass. (Dave Rolsky)
232 - Squashed an warning in _process_attribute (thepler)
235 - throw exceptions (sooner) for invalid attribute names (thepler)
236 - added tests for this (thepler)
238 * Moose::Util::MetaRole
239 - If you explicitly set a constructor or destructor class for a
240 metaclass object, and then applied roles to the metaclass,
241 that explicitly set class would be lost and replaced with the
245 * Moose::Meta::Attribute
246 * Moose::Meta::Method
249 * Moose::Error::Default
250 * Moose::Error::Croak
251 * Moose::Error::Confess
252 - All instances of confess() changed to use overridable
253 C<throw_error> method. This method ultimately calls a class
254 constructor, and you can change the class being called. In
255 addition, errors now pass more information than just a string.
256 The default C<error_class> behaves like C<Carp::confess>, so
257 the behavior is not visibly different for end users.
259 0.57 Wed September 3, 2008
261 - A new bit of doc intended to introduce folks familiar with
262 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
265 - Shows examples of two classes, each done first with and then
266 without Moose. This makes a nice parallel to
267 Moose::Intro. (Dave Rolsky)
269 * Moose::Util::TypeConstraints
270 - Fixed a bug in find_or_parse_type_constraint so that it
271 accepts a Moose::Meta::TypeConstraint object as the parent
272 type, not just a name (jnapiorkowski)
273 - added tests (jnapiorkowski)
276 - If Sub::Name was not present, unimporting failed to actually
277 remove some sugar subs, causing test failures (Dave Rolsky)
279 0.56 Mon September 1, 2008
280 For those not following the series of dev releases, there are
281 several major changes in this release of Moose.
282 ! Moose::init_meta should now be called as a method. See the
285 - Major performance improvements by nothingmuch.
287 - New modules for extension writers, Moose::Exporter and
288 Moose::Util::MetaRole by Dave Rolsky.
290 - Lots of doc improvements and additions, especially in the
295 * Removed all references to the experimental-but-no-longer-needed
296 Moose::Meta::Role::Application::ToMetaclassInstance.
298 * Require Class::MOP 0.65.
300 0.55_04 Sat August 30, 2008
301 * Moose::Util::MetaRole
302 * Moose::Cookbook::Extending::Recipe2
303 - This simplifies the application of roles to any meta class, as
304 well as the base object class. Reimplemented metaclass traits
305 using this module. (Dave Rolsky)
307 * Moose::Cookbook::Extending::Recipe1
308 - This a new recipe, an overview of various ways to write Moose
309 extensions (Dave Rolsky)
311 * Moose::Cookbook::Extending::Recipe3
312 * Moose::Cookbook::Extending::Recipe4
313 - These used to be Extending::Recipe1 and Extending::Recipe2,
316 0.55_03 Fri August 29, 2008
317 * No changes from 0.55_02 except increasing the Class::MOP
318 dependency to 0.64_07.
320 0.55_02 Fri August 29, 2008
321 * Makefile.PL and Moose.pm
322 - explicitly require Perl 5.8.0+ (Dave Rolsky)
324 * Moose::Util::TypeConstraints
325 - Fix warnings from find_type_constraint if the type is not
328 * Moose::Meta::TypeConstraint
329 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
330 return false if the type you specify cannot be found in the
331 type registry, rather than throwing an unhelpful and
332 coincidental exception. (t0m).
333 - added docs & test for this (t0m)
335 * Moose::Meta::TypeConstraint::Registry
336 - add_type_constraint now throws an exception if a parameter is
338 - added docs & test for this (t0m)
340 * Moose::Cookbook::FAQ
341 - Added a faq entry on the difference between "role" and "trait"
345 - Fixed a bug that caused role composition to not see a required
346 method when that method was provided by another role being
347 composed at the same time. (Dave Rolsky)
348 - test and bug finding (tokuhirom)
350 0.55_01 Wed August 20, 2008
352 !! Calling Moose::init_meta as a function is now !!
353 !! deprecated. Please see the Moose.pm docs for details. !!
355 * Moose::Meta::Method::Constructor
356 - Fix inlined constructor so that values produced by default
357 or builder methods are coerced as required. (t0m)
358 - added test for this (t0m)
360 * Moose::Meta::Attribute
361 - A lazy attribute with a default or builder did not attempt to
362 coerce the default value. The immutable code _did_
364 - added test for this (t0m)
367 - This is a new helper module for writing "Moose-alike"
368 modules. This should make the lives of MooseX module authors
369 much easier. (Dave Rolsky)
372 * Moose::Cookbook::Meta::Recipe5
373 - Implemented metaclass traits (and wrote a recipe for it):
375 use Moose -traits => 'Foo'
377 This should make writing small Moose extensions a little
380 * Moose::Cookbook::Basics::Recipe1
381 - Removed any examples of direct hashref access, and applied an
382 editorial axe to reduce verbosity. (Dave Rolsky)
384 * Moose::Cookbook::Basics::Recipe1
385 - Also applied an editorial axe here. (Dave Rolsky)
388 * Moose::Cookbook::Extending::Recipe1
389 * Moose::Cookbook::Extending::Recipe2
390 - Rewrote extending and embedding moose documentation and
391 recipes to use Moose::Exporter (Dave Rolsky)
395 - These two modules now warn when you load them from the main
396 package "main" package, because we will not export sugar to
397 main. Previously it just did nothing. (Dave Rolsky)
400 - Now provide an init_meta method just like Moose.pm, and you
401 can call this to provide an alternate role metaclass. (Dave
402 Rolsky and nothingmuch)
403 - get_method_map now respects the package cache flag (nothingmuch)
406 - Two new methods - add_method and wrap_method_body
410 - Optimizations including allowing constructors to accept hash
411 refs, making many more classes immutable, and making
412 constructors immutable. (nothingmuch)
414 0.55 Sun August 3, 2008
415 * Moose::Meta::Attribute
416 - breaking down the way 'handles' methods are
417 created so that the process can be more easily
418 overridden by subclasses (stevan)
420 * Moose::Meta::TypeConstraint
421 - fixing what is passed into a ->message with
422 the type constraints (RT #37569)
423 - added tests for this (Charles Alderman)
425 * Moose::Util::TypeConstraints
426 - fix coerce to accept anon types like subtype can (mst)
429 - reorganized the recipes into sections - Basics, Roles, Meta,
430 Extending - and wrote abstracts for each section (Dave Rolsky)
432 * Moose::Cookbook::Basics::Recipe10
433 - A new recipe that demonstrates operator overloading
434 in combination with Moose. (bluefeet)
436 * Moose::Cookbook::Meta::Recipe1
437 - an introduction to what meta is and why you'd want to make
438 your own metaclass extensions (Dave Rolsky)
440 * Moose::Cookbook::Meta::Recipe4
441 - a very simple metaclass example (Dave Rolsky)
443 * Moose::Cookbook::Extending::Recipe1
444 - how to write a Moose-alike module to use your own object base
447 * Moose::Cookbook::Extending::Recipe2
448 - how to write modules with an API just like C<Moose.pm> (Dave
452 - Tons of fixes, both syntactical and grammatical (Dave
453 Rolsky, Paul Fenwick)
455 0.54 Thurs. July 3, 2008
456 ... this is not my day today ...
458 * Moose::Meta::Attribute
459 - fixed legal_options_for_inheritance such that
460 clone_and_inherit options still works for
461 Class::MOP::Attribute objects and therefore
462 does not break MooseX::AttributeHelpers
465 0.53 Thurs. July 3, 2008
466 * Whoops, I guess I should run 'make manifest' before
467 actually releasing the module. No actual changes
468 in this release, except the fact that it includes
469 the changes that I didn't include in the last
472 0.52 Thurs. July 3, 2008
474 - added "FEATURE REQUESTS" section to the Moose docs
475 to properly direct people (stevan) (RT #34333)
476 - making 'extends' croak if it is passed a Role since
477 this is not ever something you want to do
478 (fixed by stevan, found by obra)
479 - added tests for this (stevan)
482 - adding support for DOES (as in UNIVERSAL::DOES)
484 - added test for this
486 * Moose::Meta::Attribute
487 - added legal_options_for_inheritance (wreis)
488 - added tests for this (wreis)
490 * Moose::Cookbook::Snacks::*
491 - removed some of the unfinished snacks that should
492 not have been released yet. Added some more examples
493 to the 'Keywords' snack. (stevan)
495 * Moose::Cookbook::Style
496 - added general Moose "style guide" of sorts to the
497 cookbook (nothingmuch) (RT #34335)
500 - added more BUILDARGS tests (stevan)
502 0.51 Thurs. Jun 26, 2008
504 - add unimport so "no Moose::Role" actually does
507 * Moose::Meta::Role::Application::ToRole
508 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
509 order to provide its own implementation, that method still got
510 added to the list of required methods for consumers of
511 RoleB. Now an aliased method is only added to the list of
512 required methods if the role doing the aliasing does not
513 provide its own implementation. See Recipe 11 for an example
514 of all this. (Dave Rolsky)
515 - added tests for this
517 * Moose::Meta::Method::Constructor
518 - when a single argument that wasn't a hashref was provided to
519 an immutabilized constructor, the error message was very
520 unhelpful, as opposed to the non-immutable error. Reported by
522 - added test for this (Dave Rolsky)
524 * Moose::Meta::Attribute
525 - added support for meta_attr->does("ShortAlias") (sartak)
526 - added tests for this (sartak)
527 - moved the bulk of the `handles` handling to the new
528 install_delegation method (Stevan)
531 - Added BUILDARGS, a new step in new()
533 * Moose::Meta::Role::Application::RoleSummation
534 - fix typos no one ever sees (sartak)
536 * Moose::Util::TypeConstraints
537 * Moose::Meta::TypeConstraint
538 * Moose::Meta::TypeCoercion
539 - Attempt to work around the ??{ } vs. threads issue
541 - Some null_constraint optimizations
543 0.50 Thurs. Jun 11, 2008
544 - Fixed a version number issue by bumping all modules
547 0.49 Thurs. Jun 11, 2008
548 !! This version now approx. 20-25% !!
549 !! faster with new Class::MOP 0.59 !!
551 * Moose::Meta::Attribute
552 - fixed how the is => (ro|rw) works with
553 custom defined reader, writer and accessor
555 - added docs for this (TODO).
556 - added tests for this (Thanks to Penfold)
557 - added the custom attribute alias for regular
558 Moose attributes which is "Moose"
559 - fix builder and default both being used
564 Moose::Meta::Attribute
566 Moose::Meta::Role::Composite
567 Moose::Util::TypeConstraints
568 - switched usage of reftype to ref because
572 - changing add_package_symbol to use the new
576 - fixed how DEMOLISHALL is called so that it
577 can be overrided in subclasses (thanks to Sartak)
578 - added test for this (thanks to Sartak)
580 * Moose::Util::TypeConstraints
581 - move the ClassName type check code to
582 Class::MOP::is_class_loaded (thanks to Sartak)
584 * Moose::Cookbook::Recipe11
585 - add tests for this (thanks to tokuhirom)
587 0.48 Thurs. May 29, 2008
588 (early morning release engineering)--
590 - fixing the version in Moose::Meta::Method::Destructor
591 which was causing the indexer to choke
593 0.47 Thurs. May 29, 2008
594 (late night release engineering)--
596 - fixing the version is META.yml, no functional
597 changes in this release
599 0.46 Wed. May 28, 2008
600 !! This version now approx. 20-25% !!
601 !! faster with new Class::MOP 0.57 !!
604 - some optimizations of the &initialize method
605 since it is called so often by &meta
609 - now use the get_all_package_symbols from the
610 updated Class::MOP, test suite is now 10 seconds
613 * Moose::Meta::Method::Destructor
614 - is_needed can now also be called as a class
615 method for immutablization to check if the
616 destructor object even needs to be created
619 * Moose::Meta::Method::Destructor
620 Moose::Meta::Method::Constructor
621 - added more descriptive error message to help
622 keep people from wasting time tracking an error
623 that is easily fixed by upgrading.
625 0.45 Saturday, May 24, 2008
627 - Because of work in Class::MOP 0.57, all
628 XS based functionality is now optional
629 and a Pure Perl version is supplied
630 - the CLASS_MOP_NO_XS environment variable
631 can now be used to force non-XS versions
633 - several of the packages have been tweaked
634 to take care of this, mostly we added
635 support for the package_name and name
636 variables in all the Method metaclasses
637 - before/around/after method modifiers now
638 support regexp matching of names
639 (thanks to Takatoshi Kitano)
640 - tests added for this
641 - NOTE: this only works for classes, it
642 is currently not supported in roles,
643 but, ... patches welcome
644 - All usage of Carp::confess have been replaced
645 by Carp::croak in the "keyword" functions since
646 the stack trace is usually not helpful
649 - All usage of Carp::confess have been replaced
650 by Carp::croak in the "keyword" functions since
651 the stack trace is usually not helpful
652 - The 'has' keyword for roles now accepts the
653 same array ref form that Moose.pm does
654 (has [qw/foo bar/] => (is => 'rw', ...))
655 - added test for this
657 * Moose::Meta::Attribute
658 - trigger on a ro-attribute is no longer an
659 error, as it's useful to trigger off of the
663 - added same 'add_package_symbol' fix as in
667 - does_role now handles non-Moose classes
669 - added tests for this
670 - added the 'add_method_modifier' function
671 (thanks to Takatoshi Kitano)
673 * Moose::Util::TypeConstraints
674 - subtypes of parameterizable types now are
675 themselves parameterizable types
677 * Moose::Meta::Method::Constructor
678 - fixed bug where trigger was not being
679 called by the inlined immutable
681 - added test for this (thanks to Caelum)
683 * Moose::Meta::Role::Application::ToInstance
684 - now uses the metaclass of the instance
685 (if possible) to create the anon-class
686 (thanks Jonathan Rockway)
688 * Moose::Cookbook::Recipe22
689 - added the meta-attribute trait recipe
693 - fixed hash-ordering test bug that was
694 causing occasional cpantester failures
695 - renamed the t/000_recipe/*.t tests to be
696 more descriptive (thanks to Sartak)
698 0.44 Sat. May 10, 2008
700 - made make_immutable warning cluck to
701 show where the error is (thanks mst)
704 - BUILDALL and DEMOLISHALL now call
705 ->body when looping through the
706 methods, to avoid the overloaded
708 - fixed issue where DEMOLISHALL was
709 eating the $@ values, and so not
710 working correctly, it still kind of
711 eats them, but so does vanilla perl
712 - added tests for this
714 * Moose::Cookbook::Recipe7
715 - added new recipe for immutable
716 functionality (thanks Dave Rolsky)
718 * Moose::Cookbook::Recipe9
719 - added new recipe for builder and
720 lazy_build (thanks Dave Rolsky)
722 * Moose::Cookbook::Recipe11
723 - added new recipe for method aliasing
724 and exclusion with Roles (thanks Dave Rolsky)
727 - fixed Win32 test failure (thanks spicyjack)
729 ~ removed Build.PL and Module::Build compat
730 since Module::Install has done that.
732 0.43 Wed. April, 30, 2008
734 drink more coffee before
735 doing release engineering
737 - whoops, forgot to do the smolder tests,
738 and we broke some of the custom meta-attr
739 modules. This fixes that.
741 0.42 Mon. April 28, 2008
742 - some bad tests slipped by, nothing else
743 changed in this release (cpantesters++)
745 - upped the Class::MOP dependency to 0.55
746 since we have tests which need the C3
749 0.41 Mon. April 28, 2008
750 ~~ numerous documentation updates ~~
752 - Changed all usage of die to Carp::croak for better
753 error reporting (initial patch by Tod Hagan)
756 - the make_immutable keyword is now deprecated, don't
757 use it in any new code and please fix your old code
758 as well. There will be 2 releases, and then it will
764 - refactored the way inner and super work to avoid
765 any method/@ISA cache penalty (nothingmuch)
768 - fixing &new_object to make sure trigger gets the
769 coerced value (spotted by Charles Alderman on the
771 - added test for this
773 * Moose::Meta::Method::Constructor
774 - immutable classes which had non-lazy attributes were calling
775 the default generating sub twice in the constructor. (bug
776 found by Jesse Luehrs, fixed by Dave Rolsky)
777 - added tests for this (Dave Rolsky)
778 - fix typo in initialize_body method (nothingmuch)
780 * Moose::Meta::Method::Destructor
781 - fix typo in initialize_body method (nothingmuch)
783 * Moose::Meta::Method::Overriden
784 Moose::Meta::Method::Augmented
785 - moved the logic for these into their own
786 classes (nothingmuch)
788 * Moose::Meta::Attribute
789 - inherited attributes may now be extended without
790 restriction on the type ('isa', 'does') (Sartak)
791 - added tests for this (Sartak)
792 - when an attribute property is malformed (such as lazy without
793 a default), give the name of the attribute in the error
795 - added the &applied_traits and &has_applied_traits methods
796 to allow introspection of traits
797 - added tests for this
798 - moved 'trait' and 'metaclass' argument handling to here from
800 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
801 '+foo' syntax) (nothingmuch)
802 - added tests for this (t0m)
805 - localize $@ inside DEMOLISHALL to avoid it
806 eating $@ (found by Ernesto)
807 - added test for this (thanks to Ernesto)
809 * Moose::Util::TypeConstraints
810 - &find_type_constraint now DWIMs when given an
811 type constraint object or name (nothingmuch)
812 - &find_or_create_type_constraint superseded with a number of more
814 - find_or_create_{isa,does}_type_constraint
815 - find_or_parse_type_constraint
817 * Moose::Meta::TypeConstraint
818 Moose::Meta::TypeConstraint::Class
819 Moose::Meta::TypeConstraint::Role
820 Moose::Meta::TypeConstraint::Enum
821 Moose::Meta::TypeConstraint::Union
822 Moose::Meta::TypeConstraint::Parameterized
823 - added the &equals method for comparing two type
824 constraints (nothingmuch)
825 - added tests for this (nothingmuch)
827 * Moose::Meta::TypeConstraint
828 - add the &parents method, which is just an alias to &parent.
829 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
831 * Moose::Meta::TypeConstraint::Class
832 - added the class attribute for introspection purposes
834 - added tests for this
836 * Moose::Meta::TypeConstraint::Enum
837 Moose::Meta::TypeConstraint::Role
838 - broke these out into their own classes (nothingmuch)
840 * Moose::Cookbook::Recipe*
841 - fixed references to test file locations in the POD
842 and updated up some text for new Moose features
846 - Added &resolve_metaclass_alias, a helper function for finding an actual
847 class for a short name (e.g. in the traits list)
849 0.40 Fri. March 14, 2008
850 - I hate Pod::Coverage
852 0.39 Fri. March 14, 2008
854 - documenting the use of '+name' with attributes
855 that come from recently composed roles. It makes
856 sense, people are using it, and so why not just
857 officially support it.
858 - fixing the 'extends' keyword so that it will not
859 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
862 - added the perl -Moose=+Class::Name feature to allow
863 monkeypatching of classes in one liners
866 - fixing the 'apply_all_roles' keyword so that it will not
867 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
870 - added ->create method which now supports roles (thanks to jrockway)
871 - added tests for this
872 - added ->create_anon_class which now supports roles and caching of
873 the results (thanks to jrockway)
874 - added tests for this
875 - made ->does_role a little more forgiving when it is
876 checking a Class::MOP era metaclasses.
878 * Moose::Meta::Role::Application::ToInstance
879 - it is now possible to pass extra params to be used when
880 a role is applied to an the instance (rebless_params)
881 - added tests for this
883 * Moose::Util::TypeConstraints
884 - class_type now accepts an optional second argument for a
885 custom message. POD anotated accordingly (groditi)
886 - added tests for this
887 - it is now possible to make anon-enums by passing 'enum' an
888 ARRAY ref instead of the $name => @values. Everything else
890 - added tests for this
893 - making test for using '+name' on attributes consumed
894 from a role, it works and makes sense too.
896 * Moose::Meta::Attribute
897 - fix handles so that it doesn't return nothing
898 when the method cannot be found, not sure why
899 it ever did this originally, this means we now
900 have slightly better support for AUTOLOADed
902 - added more delegation tests
903 - adding ->does method to this so as to better
904 support traits and their introspection.
905 - added tests for this
908 - localizing the Data::Dumper configurations so
909 that it does not pollute others (RT #33509)
910 - made ->does a little more forgiving when it is
911 passed Class::MOP era metaclasses.
913 0.38 Fri. Feb. 15, 2008
914 * Moose::Meta::Attribute
915 - fixed initializer to correctly do
916 type checking and coercion in the
918 - added tests for this
921 - fixed some finicky tests (thanks to konobi)
923 0.37 Thurs. Feb. 14, 2008
925 - fixed some details in Moose::init_meta
926 and its superclass handling (thanks thepler)
927 - added tests for this (thanks thepler)
928 - 'has' now dies if you don't pass in name
930 - added the 'make_immutable' keyword as a shortcut
934 Moose::Meta::Method::Constructor
935 Moose::Meta::Attribute
936 - making (init_arg => undef) work here too
937 (thanks to nothingmuch)
939 * Moose::Meta::Attribute
940 Moose::Meta::Method::Constructor
941 Moose::Meta::Method::Accessor
942 - make lazy attributes respect attr initializers (rjbs)
943 - added tests for this
945 * Moose::Util::TypeConstraints
946 Moose::Util::TypeConstraints::OptimizedConstraints
947 Moose::Meta::TypeConstraints
948 Moose::Meta::Attribute
949 Moose::Meta::Method::Constructor
950 Moose::Meta::Method::Accessor
951 - making type errors use the
952 assigned message (thanks to Sartak)
953 - added tests for this
955 * Moose::Meta::Method::Destructor
956 - making sure DESTROY gets inlined properly
957 with successive DEMOLISH calls (thanks to manito)
959 * Moose::Meta::Attribute
960 Moose::Meta::Method::Accessor
961 - fixed handling of undef with type constraints
963 - added tests for this
966 - added &get_all_init_args and &get_all_attribute_values
967 (thanks to Sartak and nothingmuch)
969 0.36 Sat. Jan. 26, 2008
971 Moose::Meta::Attribute
972 - role type tests now support when roles are
973 applied to non-Moose classes (found by ash)
974 - added tests for this (thanks to ash)
975 - couple extra tests to boost code coverage
977 * Moose::Meta::Method::Constructor
978 - improved fix for handling Class::MOP attributes
979 - added test for this
982 - handled the add_attribute($attribute_meta_object)
984 - added test for this
986 0.35 Tues. Jan. 22, 2008
987 * Moose::Meta::Method::Constructor
988 - fix to make sure even Class::MOP attributes
989 are handled correctly (Thanks to Dave Rolsky)
990 - added test for this (also Dave Rolsky)
993 - improved error message on _apply_all_roles,
994 you should now use Moose::Util::apply_all_roles
995 and you shouldnt have been using a _ prefixed
996 method in the first place ;)
998 0.34 Mon. Jan. 21, 2008
999 ~~~ more misc. doc. fixes ~~~
1000 ~~ updated copyright dates ~~
1002 Moose is now a postmodern object system :)
1003 - (see the POD for details)
1005 * <<Role System Refactoring>>
1006 - this release contains a major reworking and
1007 cleanup of the role system
1008 - 100% backwards compat.
1009 - Role application now restructured into seperate
1010 classes based on type of applicants
1011 - Role summation (combining of more than one role)
1012 is much cleaner and anon-classes are no longer
1013 used in this process
1014 - new Composite role metaclass
1015 - runtime application of roles to instances
1016 is now more efficient and re-uses generated
1017 classes when applicable
1019 * <<New Role composition features>>
1020 - methods can now be excluded from a given role
1022 - methods can now be aliased to another name (and
1023 still retain the original as well)
1025 * Moose::Util::TypeConstraints::OptimizedConstraints
1026 - added this module (see above)
1028 * Moose::Meta::Class
1029 - fixed the &_process_attribute method to be called
1030 by &add_attribute, so that the API is now correct
1032 * Moose::Meta::Method::Accessor
1033 - fixed bug when passing a list of values to
1034 an accessor would get (incorrectly) ignored.
1035 Thanks to Sartak for finding this ;)
1036 - added tests for this (Sartak again)
1038 * Moose::Meta::Method::Accessor
1039 Moose::Meta::Method::Constructor
1040 Moose::Meta::Attribute
1041 Moose::Meta::TypeConstraint
1042 Moose::Meta::TypeCoercion
1043 - lots of cleanup of such things as:
1045 - type constraint handling
1046 - error handling/messages
1047 (thanks to nothingmuch)
1049 * Moose::Meta::TypeConstraint::Parameterizable
1050 - added this module to support the refactor
1051 in Moose::Meta::TypeConstraint::Parameterized
1053 * Moose::Meta::TypeConstraint::Parameterized
1054 - refactored how these types are handled so they
1055 are more generic and not confined to ArrayRef
1059 - shortened some file names for better VMS support (RT #32381)
1061 0.33 Fri. Dec. 14, 2007
1062 !! Moose now loads 2 x faster !!
1063 !! with new Class::MOP 0.49 !!
1065 ++ new oose.pm module to make command line
1066 Moose-ness easier (see POD docs for more)
1068 * Moose::Meta::Class
1070 - several tweaks to take advantage of the
1071 new method map caching in Class::MOP
1073 * Moose::Meta::TypeConstraint::Parameterized
1074 - allow subtypes of ArrayRef and HashRef to
1075 be used as a container (sartak)
1076 - added tests for this
1077 - basic support for coercion to ArrayRef and
1078 HashRef for containers (sartak)
1079 - added tests for this
1081 * Moose::Meta::TypeCoercion
1082 - coercions will now create subtypes as needed
1083 so you can now add coercions to parameterized
1084 types without having to explictly define them
1085 - added tests for this
1087 * Moose::Meta::Method::Accessor
1088 - allow subclasses to decide whether we need
1089 to copy the value into a new variable (sartak)
1091 0.32 Tues. Dec. 4, 2007
1092 * Moose::Util::TypeConstraints
1093 - fixing how subtype aliases of unions work
1094 they should inherit the parent's coercion
1095 - added tests for this
1096 - you can now define multiple coercions on
1097 a single type at different times instead of
1098 having to do it all in one place
1099 - added tests for this
1101 * Moose::Meta::TypeConstraint
1102 - there is now a default constraint of sub { 1 }
1103 instead of Moose::Util::TypeConstraints setting
1106 * Moose::Meta::TypeCoercion
1107 * Moose::Meta::TypeCoercion::Union
1108 - added the &has_coercion_for_type and
1109 &add_type_coercions methods to support the
1110 new features above (although you cannot add
1111 more type coercions for Union types)
1113 0.31 Mon. Nov. 26, 2007
1114 * Moose::Meta::Attribute
1115 - made the +attr syntax handle extending types with
1116 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1117 now works if the original foo is an ArrayRef.
1118 - added tests for this.
1119 - delegation now works even if the attribute does not
1120 have a reader method using the get_read_method_ref
1121 method from Class::MOP::Attribute.
1122 - added tests for this
1123 - added docs for this
1125 * Moose::Util::TypeConstraints
1126 - passing no "additional attribute info" to
1127 &find_or_create_type_constraint will no longer
1128 attempt to create an __ANON__ type for you,
1129 instead it will just return undef.
1130 - added docs for this
1132 0.30 Fri. Nov. 23, 2007
1133 * Moose::Meta::Method::Constructor
1134 -builder related bug in inlined constructor. (groditi)
1136 * Moose::Meta::Method::Accessor
1137 - genereate unnecessary calls to predicates and refactor
1138 code generation for runtime speed (groditi)
1140 * Moose::Util::TypeConstraints
1141 - fix ClassName constraint to introspect symbol table (mst)
1142 - added more tests for this (mst)
1143 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1144 with work correctly.
1145 - added tests for this
1148 - adding the link to Recipie 11 (written by Sartak)
1149 - adding test for SYNOPSIS code
1152 - New tests for builder bug. Upon instantiation, if an
1153 attribute had a builder, no value and was not lazy the
1154 builder default was not getting run, oops. (groditi)
1156 0.29 Tues. Nov. 13, 2007
1157 * Moose::Meta::Attribute
1158 - Fix error message on missing builder method (groditi)
1160 * Moose::Meta::Method::Accessor
1161 - Fix error message on missing builder method (groditi)
1164 - Add test to check for the correct error message when
1165 builder method is missing (groditi)
1167 0.28 Tues. Nov. 13, 2007
1168 - 0.27 packaged incorrectly (groditi)
1170 0.27 Tues. Nov. 13, 2007
1171 * Moose::Meta::Attribute
1172 - Added support for the new builder option (groditi)
1173 - Added support for lazy_build option (groditi)
1174 - Changed slot initialization for predicate changes (groditi)
1176 * Moose::Meta::Method::Accessor
1177 - Added support for lazy_build option (groditi)
1178 - Fix inline methods to work with corrected predicate
1181 * Moose::Meta::Method::Constructor
1182 - Added support for lazy_build option (groditi)
1185 - tests for builder and lazy_build (groditi)
1187 * fixing some misc. bits in the docs that
1188 got mentioned on CPAN Forum & perlmonks
1191 - fixed how required methods are handled
1192 when they encounter overriden or modified
1193 methods from a class (thanks to confound).
1194 - added tests for this
1196 * Moose::Util::TypeConstraint
1197 - fixed the type notation parser so that
1198 the | always creates a union and so is
1199 no longer a valid type char (thanks to
1200 konobi, mugwump and #moose for working
1202 - added more tests for this
1204 0.26 Thurs. Sept. 27, 2007
1207 * Parameterized Types
1208 We now support parameterized collection types, such as:
1209 ArrayRef[Int] # array or integers
1210 HashRef[Object] # a hash with object values
1211 They can also be nested:
1212 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1213 And work with the type unions as well:
1214 ArrayRef[Int | Str] # array of integers of strings
1216 * Better Framework Extendability
1217 Moose.pm is now "extendable" such that it is now much
1218 easier to extend the framework and add your own keywords
1219 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1220 section of the Moose.pm docs.
1223 In an effort to begin documenting some of the various
1224 details of Moose as well as some common idioms, we have
1225 created Moose::Cookbook::Snacks as a place to find
1226 small (easily digestable) nuggets of Moose code.
1229 ~ Several doc updates/cleanup thanks to castaway ~
1231 - converted build system to use Module::Install instead of
1232 Module::Build (thanks to jrockway)
1235 - added all the meta classes to the immutable list and
1236 set it to inline the accessors
1237 - fix import to allow Sub::Exporter like { into => }
1238 and { into_level => } (perigrin)
1239 - exposed and documented init_meta() to allow better
1240 embedding and extending of Moose (perigrin)
1243 - complete re-organization of the test suite
1244 - added some new tests as well
1245 - finally re-enabled the Moose::POOP test since
1246 the new version of DBM::Deep now works again
1249 * Moose::Meta::Class
1250 - fixed very odd and very nasty recursion bug with
1252 - added tests for this (eilara)
1254 * Moose::Meta::Attribute
1255 Moose::Meta::Method::Constructor
1256 Moose::Meta::Method::Accessor
1257 - fixed issue with overload::Overloaded getting called
1258 on non-blessed items. (RT #29269)
1259 - added tests for this
1261 * Moose::Meta::Method::Accessor
1262 - fixed issue with generated accessor code making
1263 assumptions about hash based classes (thanks to dexter)
1265 * Moose::Coookbook::Snacks
1266 - these are bits of documentation, not quite as big as
1267 Recipes but which have no clear place in the module docs.
1268 So they are Snacks! (horray for castaway++)
1270 * Moose::Cookbook::Recipe4
1271 - updated it to use the new ArrayRef[MyType] construct
1272 - updated the accompanying test as well
1274 +++ Major Refactor of the Type Constraint system +++
1275 +++ with new features added as well +++
1277 * Moose::Util::TypeConstraint
1278 - no longer uses package variable to keep track of
1279 the type constraints, now uses the an instance of
1280 Moose::Meta::TypeConstraint::Registry to do it
1281 - added more sophisticated type notation parsing
1283 - added tests for this
1285 * Moose::Meta::TypeConstraint
1286 - some minor adjustments to make subclassing easier
1287 - added the package_defined_in attribute so that we
1288 can track where the type constraints are created
1290 * Moose::Meta::TypeConstraint::Union
1291 - this is now been refactored to be a subclass of
1292 Moose::Meta::TypeConstraint
1294 * Moose::Meta::TypeCoercion::Union
1295 - this has been added to service the newly refactored
1296 Moose::Meta::TypeConstraint::Union and is itself
1297 a subclass of Moose::Meta::TypeCoercion
1299 * Moose::Meta::TypeConstraint::Parameterized
1300 - added this module (taken from MooseX::AttributeHelpers)
1301 to help construct nested collection types
1302 - added tests for this
1304 * Moose::Meta::TypeConstraint::Registry
1305 - added this class to keep track of type constraints
1307 0.25 Mon. Aug. 13, 2007
1309 - Documentation update to reference Moose::Util::TypeConstraints
1310 under 'isa' in 'has' for how to define a new type
1311 (thanks to shlomif).
1313 * Moose::Meta::Attribute
1314 - required attributes now will no longer accept undef
1315 from the constructor, even if there is a default and lazy
1316 - added tests for this
1317 - default subroutines must return a value which passes the
1319 - added tests for this
1321 * Moose::Meta::Attribute
1322 * Moose::Meta::Method::Constructor
1323 * Moose::Meta::Method::Accessor
1324 - type-constraint tests now handle overloaded objects correctly
1325 in the error message
1326 - added tests for this (thanks to EvanCarroll)
1328 * Moose::Meta::TypeConstraint::Union
1329 - added (has_)hand_optimized_constraint to this class so that
1330 it behaves as the regular Moose::Meta::TypeConstraint does.
1333 - large refactoring of this code
1334 - added several more tests
1335 - tests for subtle conflict resolition issues
1336 added, but not currently running
1339 * Moose::Cookbook::Recipe7
1340 - added new recipe for augment/inner functionality
1342 - added test for this
1345 - a formal definition of roles (still in progress)
1348 - utilities for easier working with Moose classes
1349 - added tests for these
1352 - This contains Moose specific test functions
1353 - added tests for these
1355 0.24 Tues. July 3, 2007
1356 ~ Some doc updates/cleanup ~
1358 * Moose::Meta::Attribute
1359 - added support for roles to be given as parameters
1360 to the 'handles' option.
1361 - added tests and docs for this
1362 - the has '+foo' attribute form now accepts changes to
1363 the lazy option, and the addition of a handles option
1364 (but not changing the handles option)
1365 - added tests and docs for this
1368 - required methods are now fetched using find_method_by_name
1369 so that required methods can come from superclasses
1370 - adjusted tests for this
1372 0.23 Mon. June 18, 2007
1373 * Moose::Meta::Method::Constructor
1374 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1375 * Moose::Meta::Class
1376 - Modify make_immutable to work with the new Class::MOP immutable
1377 mechanism + POD + very basic test (groditi)
1378 * Moose::Meta::Attribute
1379 - Fix handles to use goto() so that caller() comes out properly on
1380 the other side (perigrin)
1382 0.22 Thurs. May 31, 2007
1383 * Moose::Util::TypeConstraints
1384 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1385 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1386 prototypes for functions
1387 - added the ClassName type constraint, this checks for strings
1388 which will respond true to ->isa(UNIVERSAL).
1389 - added tests and docs for this
1390 - subtyping just in name now works correctly by making the
1391 default for where be { 1 }
1392 - added test for this
1394 * Moose::Meta::Method::Accessor
1395 - coerce and lazy now work together correctly, thanks to
1396 merlyn for finding this bug
1397 - tests added for this
1398 - fix reader presedence bug in Moose::Meta::Attribute + tests
1401 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1402 a HASH-ref and missed. This produces better error messages then
1403 having it die cause undef is not a HASH.
1404 - added tests for this
1406 0.21 Thursday, May 2nd, 2007
1408 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1409 - modified unimport to remove super and inner along with the rest
1410 - altered unimport tests to handle this
1413 - altered super export to populate SUPER_SLOT
1415 * Moose::Meta::Class
1416 - altered augment and override modifier application to use *_SLOT
1417 - modified tests for these to unimport one test class each to test
1420 - fixed issue where custom attribute metaclasses
1421 where not handled correctly in roles
1422 - added tests for this
1424 * Moose::Meta::Class
1425 - fixed issue where extending metaclasses with
1426 roles would blow up. Thanks to Aankhen`` for
1427 finding this insidious error, and it's solution.
1429 ~~ lots of spelling and grammer fixes in the docs,
1430 many many thanks to rlb3 and Aankhen for these :)
1432 0.20 Friday, April 6th, 2007
1433 >> I messed up the SKIP logic in one test
1434 so this release is just to fix that.
1437 - 'has' now also accepts an ARRAY ref
1438 to create multiple attrs (see docs)
1439 (thanks to konobi for this)
1440 - added tests and docs
1442 0.19 Thurs. April 5th, 2007
1443 ~~ More documentation updates ~~
1445 * Moose::Util::TypeConstraints
1446 - 'type' now supports messages as well
1447 thanks to phaylon for finding this
1448 - added tests for this
1449 - added &list_all_type_constraints and
1450 &list_all_builtin_type_constraints
1451 functions to facilitate introspection.
1453 * Moose::Meta::Attribute
1454 - fixed regexp 'handles' declarations
1455 to build the list of delegated methods
1456 correctly (and not override important
1457 things like &new) thanks to ashleyb
1459 - added tests and docs for this
1460 - added the 'documentation' attributes
1461 so that you can actually document your
1462 attributes and inspect them through the
1464 - added tests and docs for this
1466 * Moose::Meta::Class
1467 - when loading custom attribute metaclasses
1468 it will first look in for the class in the
1469 Moose::Meta::Attribute::Custom::$name, and
1470 then default to just loading $name.
1471 - added tests and docs for this
1473 * Moose::Meta::TypeConstraint
1474 - type constraints now stringify to their names.
1475 - added test for this
1478 - added tests to assure we work with Module::Refresh
1479 - added stricter test skip logic in the Moose POOP
1480 test, ask Rob Kinyon why.
1481 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1483 0.18 Sat. March 10, 2007
1484 ~~ Many, many documentation updates ~~
1487 - We now use Class::MOP::load_class to
1489 - added tests to show types and subtypes
1490 working with Declare::Constraints::Simple
1491 and Test::Deep as constraint engines.
1494 !! You must have Class::MOP 0.37_001 !!
1495 !! for this developer release to work !!
1497 This release was primarily adding the immutable
1498 feature to Moose. An immutable class is one which
1499 you promise not to alter. When you set the class
1500 as immutable it will perform various bits of
1501 memoization and inline certain part of the code
1502 (constructors, destructors and accessors). This
1503 minimizes (and in some cases totally eliminates)
1504 one of Moose's biggest performance hits. This
1505 feature is not on by default, and is 100% optional.
1506 It has several configurable bits as well, so you
1507 can pick and choose to your specific needs.
1509 The changes involved in this were fairly wide and
1510 highly specific, but 100% backwards compatible, so
1511 I am not going to enumerate them here. If you are
1512 truely interested in what was changed, please do
1515 0.17 Tues. Nov. 14, 2006
1516 * Moose::Meta::Method::Accessor
1517 - bugfix for read-only accessors which
1518 are have a type constraint and lazy.
1519 Thanks to chansen for finding it.
1521 0.16 Tues. Nov. 14, 2006
1523 There are some speed improvements in this release,
1524 but they are only the begining, so stay tuned.
1527 - BUILDALL and DEMOLISHALL no longer get
1528 called unless they actually need to be.
1529 This gave us a signifigant speed boost
1530 for the cases when there is no BUILD or
1531 DEMOLISH method present.
1533 * Moose::Util::TypeConstraints
1534 * Moose::Meta::TypeConstraint
1535 - added an 'optimize_as' option to the
1536 type constraint, which allows for a
1537 hand optimized version of the type
1538 constraint to be used when possible.
1539 - Any internally created type constraints
1540 now provide an optimized version as well.
1542 0.15 Sun. Nov. 5, 2006
1544 This version of Moose *must* have Class::MOP 0.36 in order
1545 to work correctly. A number of small internal tweaks have
1546 been made in order to be compatible with that release.
1548 * Moose::Util::TypeConstraints
1549 - added &unimport so that you can clean out
1550 your class namespace of these exported
1553 * Moose::Meta::Class
1554 - fixed minor issue which occasionally
1555 comes up during global destruction
1557 - moved Moose::Meta::Method::Overriden into
1561 - moved Moose::Meta::Role::Method into
1564 * Moose::Meta::Attribute
1565 - changed how we do type checks so that
1566 we reduce the overall cost, but still
1569 - moved accessor generation methods to
1570 Moose::Meta::Method::Accessor to
1571 conform to the API changes from
1574 * Moose::Meta::TypeConstraint
1575 - changed how constraints are compiled
1576 so that we do less recursion and more
1577 iteration. This makes the type check
1579 - moved Moose::Meta::TypeConstraint::Union
1582 * Moose::Meta::Method::Accessor
1583 - created this from methods formerly found in
1584 Moose::Meta::Attribute
1586 * Moose::Meta::Role::Method
1587 - moved this from Moose::Meta::Role
1589 * Moose::Meta::Method::Overriden
1590 - moved this from Moose::Meta::Class
1592 * Moose::Meta::TypeConstraint::Union
1593 - moved this from Moose::Meta::TypeConstraint
1595 0.14 Mon. Oct. 9, 2006
1597 * Moose::Meta::Attribute
1598 - fixed lazy attributes which were not getting
1599 checked with the type constraint (thanks ashley)
1600 - added tests for this
1601 - removed the over-enthusiastic DWIMery of the
1602 automatic ArrayRef and HashRef defaults, it
1603 broke predicates in an ugly way.
1604 - removed tests for this
1606 0.13 Sat. Sept. 30, 2006
1608 This version of Moose *must* have Class::MOP 0.35 in order
1609 to work correctly. A number of small internal tweaks have
1610 been made in order to be compatible with that release.
1613 - Removed the use of UNIVERSAL::require to be a better
1614 symbol table citizen and remove a dependency
1615 (thanks Adam Kennedy)
1617 **~~ removed experimental & undocumented feature ~~**
1618 - commented out the 'method' and 'self' keywords, see the
1619 comments for more info.
1622 - added a FAQ and WTF files to document frequently
1623 asked questions and common problems
1625 * Moose::Util::TypeConstraints
1626 - added GlobRef and FileHandle type constraint
1627 - added tests for this
1629 * Moose::Meta::Attribute
1630 - if your attribute 'isa' ArrayRef of HashRef, and you have
1631 not explicitly set a default, then make the default DWIM.
1632 This will also work for subtypes of ArrayRef and HashRef
1634 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1635 - new test added for this (thanks to ashley)
1638 - added basic support for runtime role composition
1639 but this is still *highly experimental*, so feedback
1640 is much appreciated :)
1641 - added tests for this
1643 * Moose::Meta::TypeConstraint
1644 - the type constraint now handles the coercion process
1645 through delegation, this is to support the coercion
1648 * Moose::Meta::TypeConstraint::Union
1649 - it is now possible for coercions to be performed
1651 - added tests for this (thanks to konobi)
1653 * Moose::Meta::TypeCoercion
1654 - properly capturing error when type constraint
1658 - Scalar::Util 1.18 is bad on Win32, so temporarily
1659 only require version 1.17 for Win32 and cygwin.
1660 (thanks Adam Kennedy)
1662 0.12 Sat. Sept. 1, 2006
1664 - Recipe5 (subtypes & coercion) has been written
1667 - fixed "bad meta" error message to be more descriptive
1668 - fixed &unimport to not remove the &inner and &super
1669 keywords because we need to localize them.
1670 - fixed number of spelling/grammer issues, thanks Theory :)
1672 **~~ experimental & undocumented feature ~~**
1673 - added the method and self keywords, they are basically
1674 just sugar, and they may not stay around.
1677 - added &dump method to easily Data::Dumper
1680 * Moose::Meta::TypeConstraint
1681 - added the &is_a_type_of method to check both the current
1682 and the subtype of a method (similar to &isa with classes)
1685 - this is now a subclass of Class::MOP::Module, and no longer
1686 creates the _role_meta ugliness of before.
1687 - fixed tests to reflect this change
1689 0.11 Wed. July 12, 2006
1691 - added an &unimport method to remove all the keywords
1692 that Moose will import, simply add 'no Moose' to the
1693 bottom of your class file.
1696 - fixed some test failures caused by a forgotten test
1699 0.10 Thurs. July 6, 2006
1701 - improved error message when loading modules so
1702 it is less confusing when you load a role.
1703 - added &calculate_all_roles method to
1704 Moose::Meta::Class and Moose::Meta::Role
1707 This module has been tested against Class::MOP 0.30
1708 but it does not yet utilize the optimizations
1709 it makes available. Stay tuned for that ;)
1711 0.09_03 Fri. June 23, 2006
1712 ++ DEVELOPER RELEASE ++
1714 - 'use strict' and 'use warnings' are no longer
1715 needed in Moose classes, Moose itself will
1716 turn them on for you.
1717 - added tests for this
1718 - moved code from exported subs to private methods
1719 in Moose::Meta::Class
1722 - as with Moose, strict and warnings are
1723 automatically turned on for you.
1724 - added tests for this
1727 - now handles an edge case for override errors
1728 - added tests for this
1729 - added some more edge case tests
1731 0.09_02 Tues. May 16, 2006
1732 ++ DEVELOPER RELEASE ++
1734 - added prototypes to the exported subs
1738 - added prototypes to the exported subs
1741 * Moose::Util::TypeConstraints
1742 - cleaned up prototypes for the subs
1745 0.09_01 Fri. May 12, 2006
1746 ++ DEVELOPER RELEASE ++
1747 - This release works in combination with
1748 Class::MOP 0.29_01, it is a developer
1749 release because it uses the a new
1750 instance sub-protocol and a fairly
1751 complete Role implementation. It has
1752 not yet been optimized, so it slower
1753 the the previous CPAN version. This
1754 release also lacks good updated docs,
1755 the official release will have updated docs.
1758 - refactored the keyword exports
1759 - 'with' now checks Role validaity and
1760 accepts more than one Role at a time
1761 - 'extends' makes metaclass adjustments as
1762 needed to ensure metaclass compatibility
1765 - refactored the keyword exports
1766 - 'with' now checks Role validaity and
1767 accepts more than one Role at a time
1769 * Moose::Util::TypeConstraints
1770 - added the 'enum' keyword for simple
1771 string enumerations which can be used as
1773 - see example of usage in t/202_example.t
1776 - more careful checking of params to new()
1779 - much work done on the role composition
1780 - many new tests for conflict detection
1781 and composition edge cases
1782 - not enough documentation, I suggest
1783 looking at the tests
1785 * Moose::Meta::Instance
1786 - added new Instance metaclass to support
1787 the new Class::MOP instance protocol
1789 * Moose::Meta::Class
1790 - some small changes to support the new
1792 - some small additions to support Roles
1794 * Moose::Meta::Attribute
1795 - some improvements to the accessor generation code
1797 - some small changes to support the new
1799 - (still somewhat) experimental delegation support
1800 with the 'handles' option
1801 - added several tests for this
1802 - no docs for this yet
1804 0.05 Thurs. April 27, 2006
1806 - keywords are now exported with Sub::Exporter
1807 thanks to chansen for this commit
1808 - has keyword now takes a 'metaclass' option
1809 to support custom attribute meta-classes
1810 on a per-attribute basis
1811 - added tests for this
1812 - the 'has' keyword not accepts inherited slot
1813 specifications (has '+foo'). This is still an
1814 experimental feature and probably not finished
1815 see t/038_attribute_inherited_slot_specs.t for
1816 more details, or ask about it on #moose
1817 - added tests for this
1820 - keywords are now exported with Sub::Exporter
1822 * Moose::Utils::TypeConstraints
1823 - reorganized the type constraint hierarchy, thanks
1824 to nothingmuch and chansen for his help and advice
1826 - added some tests for this
1827 - keywords are now exported with Sub::Exporter
1828 thanks to chansen for this commit
1830 * Moose::Meta::Class
1831 - due to changes in Class::MOP, we had to change
1832 construct_instance (for the better)
1834 * Moose::Meta::Attribute
1835 - due to changes in Class::MOP, we had to add the
1836 initialize_instance_slot method (it's a good thing)
1838 * Moose::Meta::TypeConstraint
1839 - added type constraint unions
1840 - added tests for this
1841 - added the is_subtype_of predicate method
1842 - added tests for this
1844 0.04 Sun. April 16th, 2006
1846 - Roles can now consume other roles
1847 - added tests for this
1848 - Roles can specify required methods now with
1849 the requires() keyword
1850 - added tests for this
1853 - ripped out much of it's guts ,.. much cleaner now
1854 - added required methods and correct handling of
1855 them in apply() for both classes and roles
1856 - added tests for this
1857 - no longer adds a does() method to consuming classes
1858 it relys on the one in Moose::Object
1859 - added roles attribute and some methods to support
1860 roles consuming roles
1862 * Moose::Meta::Attribute
1863 - added support for triggers on attributes
1864 - added tests for this
1865 - added support for does option on an attribute
1866 - added tests for this
1868 * Moose::Meta::Class
1869 - added support for attribute triggers in the
1871 - added tests for this
1874 - Moose no longer creates a subtype for your class
1875 if a subtype of the same name already exists, this
1876 should DWIM in 99.9999% of all cases
1878 * Moose::Util::TypeConstraints
1879 - fixed bug where incorrect subtype conflicts were
1881 - added test for this
1884 - this class can now be extended with 'use base' if
1885 you need it, it properly loads the metaclass class now
1886 - added test for this
1888 0.03_02 Wed. April 12, 2006
1890 - you must now explictly use Moose::Util::TypeConstraints
1891 it no longer gets exported for you automatically
1894 - new() now accepts hash-refs as well as key/value lists
1895 - added does() method to check for Roles
1896 - added tests for this
1898 * Moose::Meta::Class
1899 - added roles attribute along with the add_role() and
1901 - added tests for this
1904 - now adds a does() method to consuming classes
1905 which tests the class's hierarchy for roles
1906 - added tests for this
1908 0.03_01 Mon. April 10, 2006
1910 - added new Role recipe (no content yet, only code)
1913 - added 'with' keyword for Role support
1914 - added test and docs for this
1915 - fixed subtype quoting bug
1916 - added test for this
1920 - added test and docs
1922 * Moose::Util::TypeConstraints
1923 - added the message keyword to add custom
1924 error messages to type constraints
1927 - the meta role to support Moose::Role
1928 - added tests and docs
1930 * Moose::Meta::Class
1931 - moved a number of things from Moose.pm
1932 to here, they should have been here
1935 * Moose::Meta::Attribute
1936 - moved the attribute option macros here
1937 instead of putting them in Moose.pm
1939 * Moose::Meta::TypeConstraint
1940 - added the message attributes and the
1942 - added tests and docs for this
1944 0.03 Thurs. March 30, 2006
1946 - added the Moose::Cookbook with 5 recipes,
1947 describing all the stuff Moose can do.
1950 - fixed an issue with &extends super class loading
1951 it now captures errors and deals with inline
1952 packages correctly (bug found by mst, solution
1954 - added super/override & inner/augment features
1955 - added tests and docs for these
1958 - BUILDALL now takes a reference of the %params
1959 that are passed to &new, and passes that to
1962 * Moose::Util::TypeConstraints
1963 - Type constraints now survive runtime reloading
1964 - added test for this
1966 * Moose::Meta::Class
1967 - fixed the way attribute defaults are handled
1968 during instance construction (bug found by chansen)
1970 * Moose::Meta::Attribute
1971 - read-only attributes now actually enforce their
1972 read-only-ness (this corrected in Class::MOP as
1975 0.02 Tues. March 21, 2006
1977 - many more tests, fixing some bugs and
1979 - &extends now loads the base module with
1981 - added UNIVERSAL::require to the
1984 - each new Moose class will also create
1985 and register a subtype of Object which
1986 correspond to the new Moose class.
1987 - the 'isa' option in &has now only
1988 accepts strings, and will DWIM in
1991 * Moose::Util::TypeConstraints
1992 - added type coercion features
1993 - added tests for this
1994 - added support for this in attributes
1995 and instance construction
1997 - type construction no longer creates a
1998 function, it registers the type instead.
1999 - added several functions to get the
2003 - BUILDALL and DEMOLISHALL were broken
2004 because of a mis-named hash key, Whoops :)
2006 * Moose::Meta::Attribute
2007 - adding support for coercion in the
2008 autogenerated accessors
2010 * Moose::Meta::Class
2011 - adding support for coercion in the
2012 instance construction
2014 * Moose::Meta::TypeConstraint
2015 * Moose::Meta::TypeCoercion
2016 - type constraints and coercions are now
2017 full fledges meta-objects
2019 0.01 Wed. March 15, 2006
2020 - Moooooooooooooooooose!!!