1 Revision history for Perl extension Moose
4 * Moose::Meta::TypeConstraint
5 - Add some explanation for a few explanationless methods (gphat)
7 0.64 Wed, December 31, 2008
8 * Moose::Meta::Method::Accessor
9 - Always inline predicate and clearer methods (Sartak)
10 * Moose::Meta::Attribute
11 - Support for parameterized traits (Sartak)
12 - verify_against_type_constraint method to avoid duplication
13 and enhance extensibility (Sartak)
15 - Tests (but no support yet) for parameterized traits (Sartak)
17 - Require Class::MOP 0.75+, which has the side effect of making
18 sure we work on Win32. (Dave Rolsky)
20 0.63 Mon, December 8, 2008
22 - Some small grammar tweaks and bug fixes in non-Moose example
25 0.62_02 Fri, December 5, 2008
26 * Moose::Meta::Role::Application::ToClass
27 - When a class does not provide all of a role's required
28 methods, the error thrown now mentions all of the missing
29 methods, as opposed to just the first one found. Requested by
30 Curtis Poe (RT #41119). (Dave Rolsky)
32 * Moose::Meta::Method::Constructor
33 - Moose will no longer inline a constructor for your class
34 unless it inherits its constructor from Moose::Object, and
35 will warn when it doesn't inline. If you want to force
36 inlining anyway, pass "replace_constructor => 1" to
37 make_immutable. Addresses RT #40968, reported by Jon
39 - The quoting of default values could be broken if the default
40 contained a single quote ('). Now we use quotemeta to escape
41 anything potentially dangerous in the defaults. (Dave Rolsky)
43 0.62_01 Wed, December 3, 2008
45 - use the method->execute API for BUILDALL
46 and DEMOLISHALL (Sartak)
48 * Moose::Util::TypeConstraints
49 - We now make all the type constraint meta classes immutable
50 before creating the default types provided by Moose. This
51 should make loading Moose a little faster. (Dave Rolsky)
53 0.62 Wed November 26, 2008
54 * Moose::Meta::Role::Application::ToClass
55 Moose::Meta::Role::Application::ToRole
56 - fixed issues where excluding and aliasing the
57 same methods for a single role did not work
58 right (worked just fine with multiple
60 - added test for this (stevan)
62 * Moose::Meta::Role::Application::RoleSummation
63 - fixed the error message when trying to compose
64 a role with a role it excludes (Sartak)
67 - Catch another case where recursion caused the value
68 of $CALLER to be stamped on (t0m)
69 - added test for this (t0m)
72 - Remove the make_immutable keyword, which has been
73 deprecated since April. It breaks metaclasses that
74 use Moose without no Moose (Sartak)
76 * Moose::Meta::Attribute
77 - Removing an attribute from a class now also removes delegation
78 (handles) methods installed for that attribute (t0m)
79 - added test for this (t0m)
81 * Moose::Meta::Method::Constructor
82 - An attribute with a default that looked like a number (but was
83 really a string) would accidentally be treated as a number
84 when the constructor was made immutable (perigrin)
85 - added test for this (perigrin)
88 - create method for constructing a role
90 - added test for this (Sartak)
91 - anonymous roles! (Sartak)
92 - added test for this (Sartak)
95 - more consistent error messages (Sartak)
97 * Moose::Cookbook::Roles::Recipe1
98 - attempt to explain why a role that just requires
99 methods is useful (Sartak)
101 0.61 Fri November 7, 2008
102 * Moose::Meta::Attribute
103 - When passing a role to handles, it will be loaded if necessary
107 - Method objects returned by get_method (and other methods)
108 Could end up being returned without an associated_metaclass
109 attribute. Removing get_method_map, which is provided by
110 Class::MOP::Class, fixed this. The Moose version did nothing
111 different from its parent except introduce a bug. (Dave Rolsky)
112 - added tests for this (jdv79)
115 - Added a $VERSION to all .pm files which didn't have one. Fixes
116 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
118 * Moose::Cookbook::Basics::Recipe4
119 * Moose::Cookbook::Basics::Recipe6
120 - These files had spaces on the first line of the SYNOPSIS, as
121 opposed to a totally empty line. According to RT #40432, this
122 confuses POD parsers. (Dave Rolsky)
124 0.60 Fri October 24, 2008
126 - Passing "-traits" when loading Moose caused the Moose.pm
127 exports to be broken. Reported by t0m. (Dave Rolsky)
128 - Tests for this bug. (t0m)
131 - Change resolve_metaclass alias to use the new
132 load_first_existing_class function. This makes it a lot
133 simpler, and also around 5 times faster. (t0m)
134 - Add caching to resolve_metaclass_alias, which gives an order
135 of magnitude speedup to things which repeatedly call the
136 Moose::Meta::Attribute->does method, notably MooseX::Storage
139 * Moose::Util::TypeConstraint
140 - Put back the changes for parameterized constraints that
141 shouldn't have been removed in 0.59. We still cannot parse
142 them, but MooseX modules can create them in some other
143 way. See the 0.58 changes for more details. (jnapiorkowski)
144 - Changed the way subtypes are created so that the job is
145 delegated to a type constraint parent. This clears up some
146 hardcoded checking and should allow correct subtypes of
147 Moose::Meta::Type::Constraint. Don't rely on this new API too
148 much (create_child_type) because it may go away in the
149 future. (jnapiorkowski)
151 * Moose::Meta::TypeConstraint::Union
152 - Type constraint names are sorted as strings, not numbers.
155 * Moose::Meta::TypeConstraint::Parameterizable
156 - New parameterize method. This can be used as a factory method
157 to make a new type constraint with a given parameterized
158 type. (jnapiorkowski)
159 - added tests (jnapiorkowski)
161 0.59 Tue October 14, 2008
163 - Add abridged documentation for builder/default/initializer/
164 predicate, and link to more details sections in
165 Class::MOP::Attribute. (t0m)
167 * Moose::Util::TypeConstraints
168 - removed prototypes from all but the &-based stuff (mst)
170 * Moose::Util::TypeConstraints
171 - Creating a anonymous subtype with both a constraint and a
172 message failed with a very unhelpful error, but should just
173 work. Reported by t0m. (Dave Rolsky)
176 - Some tests that used Test::Warn if it was available failed
177 with older versions of Test::Warn. Reported by Fayland. (Dave
179 - Test firing behavior of triggers in relation to builder/default/
181 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
182 kinds of supported type. (t0m)
185 - In create(), do not pass "roles" option to the superclass
186 - added related test that creates an anon metaclass with
189 * Moose::Meta::TypeConstraint::Class
190 * Moose::Meta::TypeConstraint::Role
191 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
192 other types (as per change in 0.55_02). (t0m)
194 * Moose::Meta::TypeConstraint::Registry
195 - Fix warning when dealing with unknown type names (t0m)
197 * Moose::Util::TypeConstraints
198 - Reverted changes from 0.58 related to handle parameterized
199 types. This caused random failures on BSD and Win32 systems,
200 apparently related to the regex engine. This means that Moose
201 can no longer parse structured type constraints like
202 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
203 supported in a slightly different way via MooseX::Types some
204 time in the future. (Dave Rolsky)
206 0.58 Sat September 20, 2008
207 !! This release has an incompatible change regarding !!
208 !! how roles add methods to a class !!
210 * Roles and role application
211 ! Roles now add methods by calling add_method, not
212 alias_method. They make sure to always provide a method
213 object, which will be cloned internally. This means that it is
214 now possible to track the source of a method provided by a
215 role, and even follow its history through intermediate roles.
217 This means that methods added by a role now show up when
218 looking at a class's method list/map. (Dave Rolsky)
221 - From this release on, we'll try to maintain a list of
222 conflicting modules, and warn you if you have one
223 installed. For example, this release conflicts with ...
224 - MooseX::Singleton <= 0.11
225 - MooseX::Params::Validate <= 0.05
228 In general, we try to not break backwards compatibility for
229 most Moose users, but MooseX modules and other code which
230 extends Moose's metaclasses is often affected by very small
231 changes in the Moose internals.
233 * Moose::Meta::Method::Delegation
234 * Moose::Meta::Attribute
235 - Delegation methods now have their own method class. (Dave
238 * Moose::Meta::TypeConstraint::Parameterizable
239 - Added a new method 'parameterize' which is basically a factory
240 for the containing constraint. This makes it easier to create
241 new types of parameterized constraints. (jnapiorkowski)
243 * Moose::Meta::TypeConstraint::Union
244 - Changed the way Union types canonicalize their names to follow
245 the normalized TC naming rules, which means we strip all
246 whitespace. (jnapiorkowski)
248 * Moose::Util::TypeConstraints
249 - Parameter and Union args are now sorted, this makes Int|Str
250 the same constraint as Str|Int. (jnapiorkowski)
251 - Changes to the way Union types are parsed to more correctly
252 stringify their names. (jnapiorkowski)
253 - When creating a parameterized type, we now use the new
254 parameterize method. (jnapiorkowski)
255 - Incoming type constraint strings are now normalized to remove
256 all whitespace differences. (jnapiorkowski)
257 - Changed the way we parse type constraint strings so that we now
258 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
259 constraints. This lays the foundation for more flexible type
260 constraint implementations.
262 * Tests and docs for all the above. (jnapiorkowski)
266 - Moose::Exporter will no longer remove a subroutine that the
267 exporting package re-exports. Moose re-exports the
268 Carp::confess function, among others. The reasoning is that we
269 cannot know whether you have also explicitly imported those
270 functions for your own use, so we err on the safe side and
271 always keep them. (Dave Rolsky)
272 - added tests for this (rafl)
275 - Changes to how we fix metaclass compatibility that are much
276 too complicated to go into. The summary is that Moose is much
277 less likely to complain about metaclass incompatibility
278 now. In particular, if two metaclasses differ because
279 Moose::Util::MetaRole was used on the two corresponding
280 classes, then the difference in roles is reconciled for the
281 subclass's metaclass. (Dave Rolsky)
282 - Squashed an warning in _process_attribute (thepler)
285 - throw exceptions (sooner) for invalid attribute names (thepler)
286 - added tests for this (thepler)
288 * Moose::Util::MetaRole
289 - If you explicitly set a constructor or destructor class for a
290 metaclass object, and then applied roles to the metaclass,
291 that explicitly set class would be lost and replaced with the
295 * Moose::Meta::Attribute
296 * Moose::Meta::Method
299 * Moose::Error::Default
300 * Moose::Error::Croak
301 * Moose::Error::Confess
302 - All instances of confess() changed to use overridable
303 C<throw_error> method. This method ultimately calls a class
304 constructor, and you can change the class being called. In
305 addition, errors now pass more information than just a string.
306 The default C<error_class> behaves like C<Carp::confess>, so
307 the behavior is not visibly different for end users.
309 0.57 Wed September 3, 2008
311 - A new bit of doc intended to introduce folks familiar with
312 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
315 - Shows examples of two classes, each done first with and then
316 without Moose. This makes a nice parallel to
317 Moose::Intro. (Dave Rolsky)
319 * Moose::Util::TypeConstraints
320 - Fixed a bug in find_or_parse_type_constraint so that it
321 accepts a Moose::Meta::TypeConstraint object as the parent
322 type, not just a name (jnapiorkowski)
323 - added tests (jnapiorkowski)
326 - If Sub::Name was not present, unimporting failed to actually
327 remove some sugar subs, causing test failures (Dave Rolsky)
329 0.56 Mon September 1, 2008
330 For those not following the series of dev releases, there are
331 several major changes in this release of Moose.
332 ! Moose::init_meta should now be called as a method. See the
335 - Major performance improvements by nothingmuch.
337 - New modules for extension writers, Moose::Exporter and
338 Moose::Util::MetaRole by Dave Rolsky.
340 - Lots of doc improvements and additions, especially in the
345 * Removed all references to the experimental-but-no-longer-needed
346 Moose::Meta::Role::Application::ToMetaclassInstance.
348 * Require Class::MOP 0.65.
350 0.55_04 Sat August 30, 2008
351 * Moose::Util::MetaRole
352 * Moose::Cookbook::Extending::Recipe2
353 - This simplifies the application of roles to any meta class, as
354 well as the base object class. Reimplemented metaclass traits
355 using this module. (Dave Rolsky)
357 * Moose::Cookbook::Extending::Recipe1
358 - This a new recipe, an overview of various ways to write Moose
359 extensions (Dave Rolsky)
361 * Moose::Cookbook::Extending::Recipe3
362 * Moose::Cookbook::Extending::Recipe4
363 - These used to be Extending::Recipe1 and Extending::Recipe2,
366 0.55_03 Fri August 29, 2008
367 * No changes from 0.55_02 except increasing the Class::MOP
368 dependency to 0.64_07.
370 0.55_02 Fri August 29, 2008
371 * Makefile.PL and Moose.pm
372 - explicitly require Perl 5.8.0+ (Dave Rolsky)
374 * Moose::Util::TypeConstraints
375 - Fix warnings from find_type_constraint if the type is not
378 * Moose::Meta::TypeConstraint
379 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
380 return false if the type you specify cannot be found in the
381 type registry, rather than throwing an unhelpful and
382 coincidental exception. (t0m).
383 - added docs & test for this (t0m)
385 * Moose::Meta::TypeConstraint::Registry
386 - add_type_constraint now throws an exception if a parameter is
388 - added docs & test for this (t0m)
390 * Moose::Cookbook::FAQ
391 - Added a faq entry on the difference between "role" and "trait"
395 - Fixed a bug that caused role composition to not see a required
396 method when that method was provided by another role being
397 composed at the same time. (Dave Rolsky)
398 - test and bug finding (tokuhirom)
400 0.55_01 Wed August 20, 2008
402 !! Calling Moose::init_meta as a function is now !!
403 !! deprecated. Please see the Moose.pm docs for details. !!
405 * Moose::Meta::Method::Constructor
406 - Fix inlined constructor so that values produced by default
407 or builder methods are coerced as required. (t0m)
408 - added test for this (t0m)
410 * Moose::Meta::Attribute
411 - A lazy attribute with a default or builder did not attempt to
412 coerce the default value. The immutable code _did_
414 - added test for this (t0m)
417 - This is a new helper module for writing "Moose-alike"
418 modules. This should make the lives of MooseX module authors
419 much easier. (Dave Rolsky)
422 * Moose::Cookbook::Meta::Recipe5
423 - Implemented metaclass traits (and wrote a recipe for it):
425 use Moose -traits => 'Foo'
427 This should make writing small Moose extensions a little
430 * Moose::Cookbook::Basics::Recipe1
431 - Removed any examples of direct hashref access, and applied an
432 editorial axe to reduce verbosity. (Dave Rolsky)
434 * Moose::Cookbook::Basics::Recipe1
435 - Also applied an editorial axe here. (Dave Rolsky)
438 * Moose::Cookbook::Extending::Recipe1
439 * Moose::Cookbook::Extending::Recipe2
440 - Rewrote extending and embedding moose documentation and
441 recipes to use Moose::Exporter (Dave Rolsky)
445 - These two modules now warn when you load them from the main
446 package "main" package, because we will not export sugar to
447 main. Previously it just did nothing. (Dave Rolsky)
450 - Now provide an init_meta method just like Moose.pm, and you
451 can call this to provide an alternate role metaclass. (Dave
452 Rolsky and nothingmuch)
453 - get_method_map now respects the package cache flag (nothingmuch)
456 - Two new methods - add_method and wrap_method_body
460 - Optimizations including allowing constructors to accept hash
461 refs, making many more classes immutable, and making
462 constructors immutable. (nothingmuch)
464 0.55 Sun August 3, 2008
465 * Moose::Meta::Attribute
466 - breaking down the way 'handles' methods are
467 created so that the process can be more easily
468 overridden by subclasses (stevan)
470 * Moose::Meta::TypeConstraint
471 - fixing what is passed into a ->message with
472 the type constraints (RT #37569)
473 - added tests for this (Charles Alderman)
475 * Moose::Util::TypeConstraints
476 - fix coerce to accept anon types like subtype can (mst)
479 - reorganized the recipes into sections - Basics, Roles, Meta,
480 Extending - and wrote abstracts for each section (Dave Rolsky)
482 * Moose::Cookbook::Basics::Recipe10
483 - A new recipe that demonstrates operator overloading
484 in combination with Moose. (bluefeet)
486 * Moose::Cookbook::Meta::Recipe1
487 - an introduction to what meta is and why you'd want to make
488 your own metaclass extensions (Dave Rolsky)
490 * Moose::Cookbook::Meta::Recipe4
491 - a very simple metaclass example (Dave Rolsky)
493 * Moose::Cookbook::Extending::Recipe1
494 - how to write a Moose-alike module to use your own object base
497 * Moose::Cookbook::Extending::Recipe2
498 - how to write modules with an API just like C<Moose.pm> (Dave
502 - Tons of fixes, both syntactical and grammatical (Dave
503 Rolsky, Paul Fenwick)
505 0.54 Thurs. July 3, 2008
506 ... this is not my day today ...
508 * Moose::Meta::Attribute
509 - fixed legal_options_for_inheritance such that
510 clone_and_inherit options still works for
511 Class::MOP::Attribute objects and therefore
512 does not break MooseX::AttributeHelpers
515 0.53 Thurs. July 3, 2008
516 * Whoops, I guess I should run 'make manifest' before
517 actually releasing the module. No actual changes
518 in this release, except the fact that it includes
519 the changes that I didn't include in the last
522 0.52 Thurs. July 3, 2008
524 - added "FEATURE REQUESTS" section to the Moose docs
525 to properly direct people (stevan) (RT #34333)
526 - making 'extends' croak if it is passed a Role since
527 this is not ever something you want to do
528 (fixed by stevan, found by obra)
529 - added tests for this (stevan)
532 - adding support for DOES (as in UNIVERSAL::DOES)
534 - added test for this
536 * Moose::Meta::Attribute
537 - added legal_options_for_inheritance (wreis)
538 - added tests for this (wreis)
540 * Moose::Cookbook::Snacks::*
541 - removed some of the unfinished snacks that should
542 not have been released yet. Added some more examples
543 to the 'Keywords' snack. (stevan)
545 * Moose::Cookbook::Style
546 - added general Moose "style guide" of sorts to the
547 cookbook (nothingmuch) (RT #34335)
550 - added more BUILDARGS tests (stevan)
552 0.51 Thurs. Jun 26, 2008
554 - add unimport so "no Moose::Role" actually does
557 * Moose::Meta::Role::Application::ToRole
558 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
559 order to provide its own implementation, that method still got
560 added to the list of required methods for consumers of
561 RoleB. Now an aliased method is only added to the list of
562 required methods if the role doing the aliasing does not
563 provide its own implementation. See Recipe 11 for an example
564 of all this. (Dave Rolsky)
565 - added tests for this
567 * Moose::Meta::Method::Constructor
568 - when a single argument that wasn't a hashref was provided to
569 an immutabilized constructor, the error message was very
570 unhelpful, as opposed to the non-immutable error. Reported by
572 - added test for this (Dave Rolsky)
574 * Moose::Meta::Attribute
575 - added support for meta_attr->does("ShortAlias") (sartak)
576 - added tests for this (sartak)
577 - moved the bulk of the `handles` handling to the new
578 install_delegation method (Stevan)
581 - Added BUILDARGS, a new step in new()
583 * Moose::Meta::Role::Application::RoleSummation
584 - fix typos no one ever sees (sartak)
586 * Moose::Util::TypeConstraints
587 * Moose::Meta::TypeConstraint
588 * Moose::Meta::TypeCoercion
589 - Attempt to work around the ??{ } vs. threads issue
591 - Some null_constraint optimizations
593 0.50 Thurs. Jun 11, 2008
594 - Fixed a version number issue by bumping all modules
597 0.49 Thurs. Jun 11, 2008
598 !! This version now approx. 20-25% !!
599 !! faster with new Class::MOP 0.59 !!
601 * Moose::Meta::Attribute
602 - fixed how the is => (ro|rw) works with
603 custom defined reader, writer and accessor
605 - added docs for this (TODO).
606 - added tests for this (Thanks to Penfold)
607 - added the custom attribute alias for regular
608 Moose attributes which is "Moose"
609 - fix builder and default both being used
614 Moose::Meta::Attribute
616 Moose::Meta::Role::Composite
617 Moose::Util::TypeConstraints
618 - switched usage of reftype to ref because
622 - changing add_package_symbol to use the new
626 - fixed how DEMOLISHALL is called so that it
627 can be overrided in subclasses (thanks to Sartak)
628 - added test for this (thanks to Sartak)
630 * Moose::Util::TypeConstraints
631 - move the ClassName type check code to
632 Class::MOP::is_class_loaded (thanks to Sartak)
634 * Moose::Cookbook::Recipe11
635 - add tests for this (thanks to tokuhirom)
637 0.48 Thurs. May 29, 2008
638 (early morning release engineering)--
640 - fixing the version in Moose::Meta::Method::Destructor
641 which was causing the indexer to choke
643 0.47 Thurs. May 29, 2008
644 (late night release engineering)--
646 - fixing the version is META.yml, no functional
647 changes in this release
649 0.46 Wed. May 28, 2008
650 !! This version now approx. 20-25% !!
651 !! faster with new Class::MOP 0.57 !!
654 - some optimizations of the &initialize method
655 since it is called so often by &meta
659 - now use the get_all_package_symbols from the
660 updated Class::MOP, test suite is now 10 seconds
663 * Moose::Meta::Method::Destructor
664 - is_needed can now also be called as a class
665 method for immutablization to check if the
666 destructor object even needs to be created
669 * Moose::Meta::Method::Destructor
670 Moose::Meta::Method::Constructor
671 - added more descriptive error message to help
672 keep people from wasting time tracking an error
673 that is easily fixed by upgrading.
675 0.45 Saturday, May 24, 2008
677 - Because of work in Class::MOP 0.57, all
678 XS based functionality is now optional
679 and a Pure Perl version is supplied
680 - the CLASS_MOP_NO_XS environment variable
681 can now be used to force non-XS versions
683 - several of the packages have been tweaked
684 to take care of this, mostly we added
685 support for the package_name and name
686 variables in all the Method metaclasses
687 - before/around/after method modifiers now
688 support regexp matching of names
689 (thanks to Takatoshi Kitano)
690 - tests added for this
691 - NOTE: this only works for classes, it
692 is currently not supported in roles,
693 but, ... patches welcome
694 - All usage of Carp::confess have been replaced
695 by Carp::croak in the "keyword" functions since
696 the stack trace is usually not helpful
699 - All usage of Carp::confess have been replaced
700 by Carp::croak in the "keyword" functions since
701 the stack trace is usually not helpful
702 - The 'has' keyword for roles now accepts the
703 same array ref form that Moose.pm does
704 (has [qw/foo bar/] => (is => 'rw', ...))
705 - added test for this
707 * Moose::Meta::Attribute
708 - trigger on a ro-attribute is no longer an
709 error, as it's useful to trigger off of the
713 - added same 'add_package_symbol' fix as in
717 - does_role now handles non-Moose classes
719 - added tests for this
720 - added the 'add_method_modifier' function
721 (thanks to Takatoshi Kitano)
723 * Moose::Util::TypeConstraints
724 - subtypes of parameterizable types now are
725 themselves parameterizable types
727 * Moose::Meta::Method::Constructor
728 - fixed bug where trigger was not being
729 called by the inlined immutable
731 - added test for this (thanks to Caelum)
733 * Moose::Meta::Role::Application::ToInstance
734 - now uses the metaclass of the instance
735 (if possible) to create the anon-class
736 (thanks Jonathan Rockway)
738 * Moose::Cookbook::Recipe22
739 - added the meta-attribute trait recipe
743 - fixed hash-ordering test bug that was
744 causing occasional cpantester failures
745 - renamed the t/000_recipe/*.t tests to be
746 more descriptive (thanks to Sartak)
748 0.44 Sat. May 10, 2008
750 - made make_immutable warning cluck to
751 show where the error is (thanks mst)
754 - BUILDALL and DEMOLISHALL now call
755 ->body when looping through the
756 methods, to avoid the overloaded
758 - fixed issue where DEMOLISHALL was
759 eating the $@ values, and so not
760 working correctly, it still kind of
761 eats them, but so does vanilla perl
762 - added tests for this
764 * Moose::Cookbook::Recipe7
765 - added new recipe for immutable
766 functionality (thanks Dave Rolsky)
768 * Moose::Cookbook::Recipe9
769 - added new recipe for builder and
770 lazy_build (thanks Dave Rolsky)
772 * Moose::Cookbook::Recipe11
773 - added new recipe for method aliasing
774 and exclusion with Roles (thanks Dave Rolsky)
777 - fixed Win32 test failure (thanks spicyjack)
779 ~ removed Build.PL and Module::Build compat
780 since Module::Install has done that.
782 0.43 Wed. April, 30, 2008
784 drink more coffee before
785 doing release engineering
787 - whoops, forgot to do the smolder tests,
788 and we broke some of the custom meta-attr
789 modules. This fixes that.
791 0.42 Mon. April 28, 2008
792 - some bad tests slipped by, nothing else
793 changed in this release (cpantesters++)
795 - upped the Class::MOP dependency to 0.55
796 since we have tests which need the C3
799 0.41 Mon. April 28, 2008
800 ~~ numerous documentation updates ~~
802 - Changed all usage of die to Carp::croak for better
803 error reporting (initial patch by Tod Hagan)
806 - the make_immutable keyword is now deprecated, don't
807 use it in any new code and please fix your old code
808 as well. There will be 2 releases, and then it will
814 - refactored the way inner and super work to avoid
815 any method/@ISA cache penalty (nothingmuch)
818 - fixing &new_object to make sure trigger gets the
819 coerced value (spotted by Charles Alderman on the
821 - added test for this
823 * Moose::Meta::Method::Constructor
824 - immutable classes which had non-lazy attributes were calling
825 the default generating sub twice in the constructor. (bug
826 found by Jesse Luehrs, fixed by Dave Rolsky)
827 - added tests for this (Dave Rolsky)
828 - fix typo in initialize_body method (nothingmuch)
830 * Moose::Meta::Method::Destructor
831 - fix typo in initialize_body method (nothingmuch)
833 * Moose::Meta::Method::Overriden
834 Moose::Meta::Method::Augmented
835 - moved the logic for these into their own
836 classes (nothingmuch)
838 * Moose::Meta::Attribute
839 - inherited attributes may now be extended without
840 restriction on the type ('isa', 'does') (Sartak)
841 - added tests for this (Sartak)
842 - when an attribute property is malformed (such as lazy without
843 a default), give the name of the attribute in the error
845 - added the &applied_traits and &has_applied_traits methods
846 to allow introspection of traits
847 - added tests for this
848 - moved 'trait' and 'metaclass' argument handling to here from
850 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
851 '+foo' syntax) (nothingmuch)
852 - added tests for this (t0m)
855 - localize $@ inside DEMOLISHALL to avoid it
856 eating $@ (found by Ernesto)
857 - added test for this (thanks to Ernesto)
859 * Moose::Util::TypeConstraints
860 - &find_type_constraint now DWIMs when given an
861 type constraint object or name (nothingmuch)
862 - &find_or_create_type_constraint superseded with a number of more
864 - find_or_create_{isa,does}_type_constraint
865 - find_or_parse_type_constraint
867 * Moose::Meta::TypeConstraint
868 Moose::Meta::TypeConstraint::Class
869 Moose::Meta::TypeConstraint::Role
870 Moose::Meta::TypeConstraint::Enum
871 Moose::Meta::TypeConstraint::Union
872 Moose::Meta::TypeConstraint::Parameterized
873 - added the &equals method for comparing two type
874 constraints (nothingmuch)
875 - added tests for this (nothingmuch)
877 * Moose::Meta::TypeConstraint
878 - add the &parents method, which is just an alias to &parent.
879 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
881 * Moose::Meta::TypeConstraint::Class
882 - added the class attribute for introspection purposes
884 - added tests for this
886 * Moose::Meta::TypeConstraint::Enum
887 Moose::Meta::TypeConstraint::Role
888 - broke these out into their own classes (nothingmuch)
890 * Moose::Cookbook::Recipe*
891 - fixed references to test file locations in the POD
892 and updated up some text for new Moose features
896 - Added &resolve_metaclass_alias, a helper function for finding an actual
897 class for a short name (e.g. in the traits list)
899 0.40 Fri. March 14, 2008
900 - I hate Pod::Coverage
902 0.39 Fri. March 14, 2008
904 - documenting the use of '+name' with attributes
905 that come from recently composed roles. It makes
906 sense, people are using it, and so why not just
907 officially support it.
908 - fixing the 'extends' keyword so that it will not
909 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
912 - added the perl -Moose=+Class::Name feature to allow
913 monkeypatching of classes in one liners
916 - fixing the 'apply_all_roles' keyword so that it will not
917 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
920 - added ->create method which now supports roles (thanks to jrockway)
921 - added tests for this
922 - added ->create_anon_class which now supports roles and caching of
923 the results (thanks to jrockway)
924 - added tests for this
925 - made ->does_role a little more forgiving when it is
926 checking a Class::MOP era metaclasses.
928 * Moose::Meta::Role::Application::ToInstance
929 - it is now possible to pass extra params to be used when
930 a role is applied to an the instance (rebless_params)
931 - added tests for this
933 * Moose::Util::TypeConstraints
934 - class_type now accepts an optional second argument for a
935 custom message. POD anotated accordingly (groditi)
936 - added tests for this
937 - it is now possible to make anon-enums by passing 'enum' an
938 ARRAY ref instead of the $name => @values. Everything else
940 - added tests for this
943 - making test for using '+name' on attributes consumed
944 from a role, it works and makes sense too.
946 * Moose::Meta::Attribute
947 - fix handles so that it doesn't return nothing
948 when the method cannot be found, not sure why
949 it ever did this originally, this means we now
950 have slightly better support for AUTOLOADed
952 - added more delegation tests
953 - adding ->does method to this so as to better
954 support traits and their introspection.
955 - added tests for this
958 - localizing the Data::Dumper configurations so
959 that it does not pollute others (RT #33509)
960 - made ->does a little more forgiving when it is
961 passed Class::MOP era metaclasses.
963 0.38 Fri. Feb. 15, 2008
964 * Moose::Meta::Attribute
965 - fixed initializer to correctly do
966 type checking and coercion in the
968 - added tests for this
971 - fixed some finicky tests (thanks to konobi)
973 0.37 Thurs. Feb. 14, 2008
975 - fixed some details in Moose::init_meta
976 and its superclass handling (thanks thepler)
977 - added tests for this (thanks thepler)
978 - 'has' now dies if you don't pass in name
980 - added the 'make_immutable' keyword as a shortcut
984 Moose::Meta::Method::Constructor
985 Moose::Meta::Attribute
986 - making (init_arg => undef) work here too
987 (thanks to nothingmuch)
989 * Moose::Meta::Attribute
990 Moose::Meta::Method::Constructor
991 Moose::Meta::Method::Accessor
992 - make lazy attributes respect attr initializers (rjbs)
993 - added tests for this
995 * Moose::Util::TypeConstraints
996 Moose::Util::TypeConstraints::OptimizedConstraints
997 Moose::Meta::TypeConstraints
998 Moose::Meta::Attribute
999 Moose::Meta::Method::Constructor
1000 Moose::Meta::Method::Accessor
1001 - making type errors use the
1002 assigned message (thanks to Sartak)
1003 - added tests for this
1005 * Moose::Meta::Method::Destructor
1006 - making sure DESTROY gets inlined properly
1007 with successive DEMOLISH calls (thanks to manito)
1009 * Moose::Meta::Attribute
1010 Moose::Meta::Method::Accessor
1011 - fixed handling of undef with type constraints
1013 - added tests for this
1016 - added &get_all_init_args and &get_all_attribute_values
1017 (thanks to Sartak and nothingmuch)
1019 0.36 Sat. Jan. 26, 2008
1021 Moose::Meta::Attribute
1022 - role type tests now support when roles are
1023 applied to non-Moose classes (found by ash)
1024 - added tests for this (thanks to ash)
1025 - couple extra tests to boost code coverage
1027 * Moose::Meta::Method::Constructor
1028 - improved fix for handling Class::MOP attributes
1029 - added test for this
1031 * Moose::Meta::Class
1032 - handled the add_attribute($attribute_meta_object)
1034 - added test for this
1036 0.35 Tues. Jan. 22, 2008
1037 * Moose::Meta::Method::Constructor
1038 - fix to make sure even Class::MOP attributes
1039 are handled correctly (Thanks to Dave Rolsky)
1040 - added test for this (also Dave Rolsky)
1042 * Moose::Meta::Class
1043 - improved error message on _apply_all_roles,
1044 you should now use Moose::Util::apply_all_roles
1045 and you shouldnt have been using a _ prefixed
1046 method in the first place ;)
1048 0.34 Mon. Jan. 21, 2008
1049 ~~~ more misc. doc. fixes ~~~
1050 ~~ updated copyright dates ~~
1052 Moose is now a postmodern object system :)
1053 - (see the POD for details)
1055 * <<Role System Refactoring>>
1056 - this release contains a major reworking and
1057 cleanup of the role system
1058 - 100% backwards compat.
1059 - Role application now restructured into seperate
1060 classes based on type of applicants
1061 - Role summation (combining of more than one role)
1062 is much cleaner and anon-classes are no longer
1063 used in this process
1064 - new Composite role metaclass
1065 - runtime application of roles to instances
1066 is now more efficient and re-uses generated
1067 classes when applicable
1069 * <<New Role composition features>>
1070 - methods can now be excluded from a given role
1072 - methods can now be aliased to another name (and
1073 still retain the original as well)
1075 * Moose::Util::TypeConstraints::OptimizedConstraints
1076 - added this module (see above)
1078 * Moose::Meta::Class
1079 - fixed the &_process_attribute method to be called
1080 by &add_attribute, so that the API is now correct
1082 * Moose::Meta::Method::Accessor
1083 - fixed bug when passing a list of values to
1084 an accessor would get (incorrectly) ignored.
1085 Thanks to Sartak for finding this ;)
1086 - added tests for this (Sartak again)
1088 * Moose::Meta::Method::Accessor
1089 Moose::Meta::Method::Constructor
1090 Moose::Meta::Attribute
1091 Moose::Meta::TypeConstraint
1092 Moose::Meta::TypeCoercion
1093 - lots of cleanup of such things as:
1095 - type constraint handling
1096 - error handling/messages
1097 (thanks to nothingmuch)
1099 * Moose::Meta::TypeConstraint::Parameterizable
1100 - added this module to support the refactor
1101 in Moose::Meta::TypeConstraint::Parameterized
1103 * Moose::Meta::TypeConstraint::Parameterized
1104 - refactored how these types are handled so they
1105 are more generic and not confined to ArrayRef
1109 - shortened some file names for better VMS support (RT #32381)
1111 0.33 Fri. Dec. 14, 2007
1112 !! Moose now loads 2 x faster !!
1113 !! with new Class::MOP 0.49 !!
1115 ++ new oose.pm module to make command line
1116 Moose-ness easier (see POD docs for more)
1118 * Moose::Meta::Class
1120 - several tweaks to take advantage of the
1121 new method map caching in Class::MOP
1123 * Moose::Meta::TypeConstraint::Parameterized
1124 - allow subtypes of ArrayRef and HashRef to
1125 be used as a container (sartak)
1126 - added tests for this
1127 - basic support for coercion to ArrayRef and
1128 HashRef for containers (sartak)
1129 - added tests for this
1131 * Moose::Meta::TypeCoercion
1132 - coercions will now create subtypes as needed
1133 so you can now add coercions to parameterized
1134 types without having to explictly define them
1135 - added tests for this
1137 * Moose::Meta::Method::Accessor
1138 - allow subclasses to decide whether we need
1139 to copy the value into a new variable (sartak)
1141 0.32 Tues. Dec. 4, 2007
1142 * Moose::Util::TypeConstraints
1143 - fixing how subtype aliases of unions work
1144 they should inherit the parent's coercion
1145 - added tests for this
1146 - you can now define multiple coercions on
1147 a single type at different times instead of
1148 having to do it all in one place
1149 - added tests for this
1151 * Moose::Meta::TypeConstraint
1152 - there is now a default constraint of sub { 1 }
1153 instead of Moose::Util::TypeConstraints setting
1156 * Moose::Meta::TypeCoercion
1157 * Moose::Meta::TypeCoercion::Union
1158 - added the &has_coercion_for_type and
1159 &add_type_coercions methods to support the
1160 new features above (although you cannot add
1161 more type coercions for Union types)
1163 0.31 Mon. Nov. 26, 2007
1164 * Moose::Meta::Attribute
1165 - made the +attr syntax handle extending types with
1166 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1167 now works if the original foo is an ArrayRef.
1168 - added tests for this.
1169 - delegation now works even if the attribute does not
1170 have a reader method using the get_read_method_ref
1171 method from Class::MOP::Attribute.
1172 - added tests for this
1173 - added docs for this
1175 * Moose::Util::TypeConstraints
1176 - passing no "additional attribute info" to
1177 &find_or_create_type_constraint will no longer
1178 attempt to create an __ANON__ type for you,
1179 instead it will just return undef.
1180 - added docs for this
1182 0.30 Fri. Nov. 23, 2007
1183 * Moose::Meta::Method::Constructor
1184 -builder related bug in inlined constructor. (groditi)
1186 * Moose::Meta::Method::Accessor
1187 - genereate unnecessary calls to predicates and refactor
1188 code generation for runtime speed (groditi)
1190 * Moose::Util::TypeConstraints
1191 - fix ClassName constraint to introspect symbol table (mst)
1192 - added more tests for this (mst)
1193 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1194 with work correctly.
1195 - added tests for this
1198 - adding the link to Recipie 11 (written by Sartak)
1199 - adding test for SYNOPSIS code
1202 - New tests for builder bug. Upon instantiation, if an
1203 attribute had a builder, no value and was not lazy the
1204 builder default was not getting run, oops. (groditi)
1206 0.29 Tues. Nov. 13, 2007
1207 * Moose::Meta::Attribute
1208 - Fix error message on missing builder method (groditi)
1210 * Moose::Meta::Method::Accessor
1211 - Fix error message on missing builder method (groditi)
1214 - Add test to check for the correct error message when
1215 builder method is missing (groditi)
1217 0.28 Tues. Nov. 13, 2007
1218 - 0.27 packaged incorrectly (groditi)
1220 0.27 Tues. Nov. 13, 2007
1221 * Moose::Meta::Attribute
1222 - Added support for the new builder option (groditi)
1223 - Added support for lazy_build option (groditi)
1224 - Changed slot initialization for predicate changes (groditi)
1226 * Moose::Meta::Method::Accessor
1227 - Added support for lazy_build option (groditi)
1228 - Fix inline methods to work with corrected predicate
1231 * Moose::Meta::Method::Constructor
1232 - Added support for lazy_build option (groditi)
1235 - tests for builder and lazy_build (groditi)
1237 * fixing some misc. bits in the docs that
1238 got mentioned on CPAN Forum & perlmonks
1241 - fixed how required methods are handled
1242 when they encounter overriden or modified
1243 methods from a class (thanks to confound).
1244 - added tests for this
1246 * Moose::Util::TypeConstraint
1247 - fixed the type notation parser so that
1248 the | always creates a union and so is
1249 no longer a valid type char (thanks to
1250 konobi, mugwump and #moose for working
1252 - added more tests for this
1254 0.26 Thurs. Sept. 27, 2007
1257 * Parameterized Types
1258 We now support parameterized collection types, such as:
1259 ArrayRef[Int] # array or integers
1260 HashRef[Object] # a hash with object values
1261 They can also be nested:
1262 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1263 And work with the type unions as well:
1264 ArrayRef[Int | Str] # array of integers of strings
1266 * Better Framework Extendability
1267 Moose.pm is now "extendable" such that it is now much
1268 easier to extend the framework and add your own keywords
1269 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1270 section of the Moose.pm docs.
1273 In an effort to begin documenting some of the various
1274 details of Moose as well as some common idioms, we have
1275 created Moose::Cookbook::Snacks as a place to find
1276 small (easily digestable) nuggets of Moose code.
1279 ~ Several doc updates/cleanup thanks to castaway ~
1281 - converted build system to use Module::Install instead of
1282 Module::Build (thanks to jrockway)
1285 - added all the meta classes to the immutable list and
1286 set it to inline the accessors
1287 - fix import to allow Sub::Exporter like { into => }
1288 and { into_level => } (perigrin)
1289 - exposed and documented init_meta() to allow better
1290 embedding and extending of Moose (perigrin)
1293 - complete re-organization of the test suite
1294 - added some new tests as well
1295 - finally re-enabled the Moose::POOP test since
1296 the new version of DBM::Deep now works again
1299 * Moose::Meta::Class
1300 - fixed very odd and very nasty recursion bug with
1302 - added tests for this (eilara)
1304 * Moose::Meta::Attribute
1305 Moose::Meta::Method::Constructor
1306 Moose::Meta::Method::Accessor
1307 - fixed issue with overload::Overloaded getting called
1308 on non-blessed items. (RT #29269)
1309 - added tests for this
1311 * Moose::Meta::Method::Accessor
1312 - fixed issue with generated accessor code making
1313 assumptions about hash based classes (thanks to dexter)
1315 * Moose::Coookbook::Snacks
1316 - these are bits of documentation, not quite as big as
1317 Recipes but which have no clear place in the module docs.
1318 So they are Snacks! (horray for castaway++)
1320 * Moose::Cookbook::Recipe4
1321 - updated it to use the new ArrayRef[MyType] construct
1322 - updated the accompanying test as well
1324 +++ Major Refactor of the Type Constraint system +++
1325 +++ with new features added as well +++
1327 * Moose::Util::TypeConstraint
1328 - no longer uses package variable to keep track of
1329 the type constraints, now uses the an instance of
1330 Moose::Meta::TypeConstraint::Registry to do it
1331 - added more sophisticated type notation parsing
1333 - added tests for this
1335 * Moose::Meta::TypeConstraint
1336 - some minor adjustments to make subclassing easier
1337 - added the package_defined_in attribute so that we
1338 can track where the type constraints are created
1340 * Moose::Meta::TypeConstraint::Union
1341 - this is now been refactored to be a subclass of
1342 Moose::Meta::TypeConstraint
1344 * Moose::Meta::TypeCoercion::Union
1345 - this has been added to service the newly refactored
1346 Moose::Meta::TypeConstraint::Union and is itself
1347 a subclass of Moose::Meta::TypeCoercion
1349 * Moose::Meta::TypeConstraint::Parameterized
1350 - added this module (taken from MooseX::AttributeHelpers)
1351 to help construct nested collection types
1352 - added tests for this
1354 * Moose::Meta::TypeConstraint::Registry
1355 - added this class to keep track of type constraints
1357 0.25 Mon. Aug. 13, 2007
1359 - Documentation update to reference Moose::Util::TypeConstraints
1360 under 'isa' in 'has' for how to define a new type
1361 (thanks to shlomif).
1363 * Moose::Meta::Attribute
1364 - required attributes now will no longer accept undef
1365 from the constructor, even if there is a default and lazy
1366 - added tests for this
1367 - default subroutines must return a value which passes the
1369 - added tests for this
1371 * Moose::Meta::Attribute
1372 * Moose::Meta::Method::Constructor
1373 * Moose::Meta::Method::Accessor
1374 - type-constraint tests now handle overloaded objects correctly
1375 in the error message
1376 - added tests for this (thanks to EvanCarroll)
1378 * Moose::Meta::TypeConstraint::Union
1379 - added (has_)hand_optimized_constraint to this class so that
1380 it behaves as the regular Moose::Meta::TypeConstraint does.
1383 - large refactoring of this code
1384 - added several more tests
1385 - tests for subtle conflict resolition issues
1386 added, but not currently running
1389 * Moose::Cookbook::Recipe7
1390 - added new recipe for augment/inner functionality
1392 - added test for this
1395 - a formal definition of roles (still in progress)
1398 - utilities for easier working with Moose classes
1399 - added tests for these
1402 - This contains Moose specific test functions
1403 - added tests for these
1405 0.24 Tues. July 3, 2007
1406 ~ Some doc updates/cleanup ~
1408 * Moose::Meta::Attribute
1409 - added support for roles to be given as parameters
1410 to the 'handles' option.
1411 - added tests and docs for this
1412 - the has '+foo' attribute form now accepts changes to
1413 the lazy option, and the addition of a handles option
1414 (but not changing the handles option)
1415 - added tests and docs for this
1418 - required methods are now fetched using find_method_by_name
1419 so that required methods can come from superclasses
1420 - adjusted tests for this
1422 0.23 Mon. June 18, 2007
1423 * Moose::Meta::Method::Constructor
1424 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1425 * Moose::Meta::Class
1426 - Modify make_immutable to work with the new Class::MOP immutable
1427 mechanism + POD + very basic test (groditi)
1428 * Moose::Meta::Attribute
1429 - Fix handles to use goto() so that caller() comes out properly on
1430 the other side (perigrin)
1432 0.22 Thurs. May 31, 2007
1433 * Moose::Util::TypeConstraints
1434 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1435 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1436 prototypes for functions
1437 - added the ClassName type constraint, this checks for strings
1438 which will respond true to ->isa(UNIVERSAL).
1439 - added tests and docs for this
1440 - subtyping just in name now works correctly by making the
1441 default for where be { 1 }
1442 - added test for this
1444 * Moose::Meta::Method::Accessor
1445 - coerce and lazy now work together correctly, thanks to
1446 merlyn for finding this bug
1447 - tests added for this
1448 - fix reader presedence bug in Moose::Meta::Attribute + tests
1451 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1452 a HASH-ref and missed. This produces better error messages then
1453 having it die cause undef is not a HASH.
1454 - added tests for this
1456 0.21 Thursday, May 2nd, 2007
1458 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1459 - modified unimport to remove super and inner along with the rest
1460 - altered unimport tests to handle this
1463 - altered super export to populate SUPER_SLOT
1465 * Moose::Meta::Class
1466 - altered augment and override modifier application to use *_SLOT
1467 - modified tests for these to unimport one test class each to test
1470 - fixed issue where custom attribute metaclasses
1471 where not handled correctly in roles
1472 - added tests for this
1474 * Moose::Meta::Class
1475 - fixed issue where extending metaclasses with
1476 roles would blow up. Thanks to Aankhen`` for
1477 finding this insidious error, and it's solution.
1479 ~~ lots of spelling and grammer fixes in the docs,
1480 many many thanks to rlb3 and Aankhen for these :)
1482 0.20 Friday, April 6th, 2007
1483 >> I messed up the SKIP logic in one test
1484 so this release is just to fix that.
1487 - 'has' now also accepts an ARRAY ref
1488 to create multiple attrs (see docs)
1489 (thanks to konobi for this)
1490 - added tests and docs
1492 0.19 Thurs. April 5th, 2007
1493 ~~ More documentation updates ~~
1495 * Moose::Util::TypeConstraints
1496 - 'type' now supports messages as well
1497 thanks to phaylon for finding this
1498 - added tests for this
1499 - added &list_all_type_constraints and
1500 &list_all_builtin_type_constraints
1501 functions to facilitate introspection.
1503 * Moose::Meta::Attribute
1504 - fixed regexp 'handles' declarations
1505 to build the list of delegated methods
1506 correctly (and not override important
1507 things like &new) thanks to ashleyb
1509 - added tests and docs for this
1510 - added the 'documentation' attributes
1511 so that you can actually document your
1512 attributes and inspect them through the
1514 - added tests and docs for this
1516 * Moose::Meta::Class
1517 - when loading custom attribute metaclasses
1518 it will first look in for the class in the
1519 Moose::Meta::Attribute::Custom::$name, and
1520 then default to just loading $name.
1521 - added tests and docs for this
1523 * Moose::Meta::TypeConstraint
1524 - type constraints now stringify to their names.
1525 - added test for this
1528 - added tests to assure we work with Module::Refresh
1529 - added stricter test skip logic in the Moose POOP
1530 test, ask Rob Kinyon why.
1531 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1533 0.18 Sat. March 10, 2007
1534 ~~ Many, many documentation updates ~~
1537 - We now use Class::MOP::load_class to
1539 - added tests to show types and subtypes
1540 working with Declare::Constraints::Simple
1541 and Test::Deep as constraint engines.
1544 !! You must have Class::MOP 0.37_001 !!
1545 !! for this developer release to work !!
1547 This release was primarily adding the immutable
1548 feature to Moose. An immutable class is one which
1549 you promise not to alter. When you set the class
1550 as immutable it will perform various bits of
1551 memoization and inline certain part of the code
1552 (constructors, destructors and accessors). This
1553 minimizes (and in some cases totally eliminates)
1554 one of Moose's biggest performance hits. This
1555 feature is not on by default, and is 100% optional.
1556 It has several configurable bits as well, so you
1557 can pick and choose to your specific needs.
1559 The changes involved in this were fairly wide and
1560 highly specific, but 100% backwards compatible, so
1561 I am not going to enumerate them here. If you are
1562 truely interested in what was changed, please do
1565 0.17 Tues. Nov. 14, 2006
1566 * Moose::Meta::Method::Accessor
1567 - bugfix for read-only accessors which
1568 are have a type constraint and lazy.
1569 Thanks to chansen for finding it.
1571 0.16 Tues. Nov. 14, 2006
1573 There are some speed improvements in this release,
1574 but they are only the begining, so stay tuned.
1577 - BUILDALL and DEMOLISHALL no longer get
1578 called unless they actually need to be.
1579 This gave us a signifigant speed boost
1580 for the cases when there is no BUILD or
1581 DEMOLISH method present.
1583 * Moose::Util::TypeConstraints
1584 * Moose::Meta::TypeConstraint
1585 - added an 'optimize_as' option to the
1586 type constraint, which allows for a
1587 hand optimized version of the type
1588 constraint to be used when possible.
1589 - Any internally created type constraints
1590 now provide an optimized version as well.
1592 0.15 Sun. Nov. 5, 2006
1594 This version of Moose *must* have Class::MOP 0.36 in order
1595 to work correctly. A number of small internal tweaks have
1596 been made in order to be compatible with that release.
1598 * Moose::Util::TypeConstraints
1599 - added &unimport so that you can clean out
1600 your class namespace of these exported
1603 * Moose::Meta::Class
1604 - fixed minor issue which occasionally
1605 comes up during global destruction
1607 - moved Moose::Meta::Method::Overriden into
1611 - moved Moose::Meta::Role::Method into
1614 * Moose::Meta::Attribute
1615 - changed how we do type checks so that
1616 we reduce the overall cost, but still
1619 - moved accessor generation methods to
1620 Moose::Meta::Method::Accessor to
1621 conform to the API changes from
1624 * Moose::Meta::TypeConstraint
1625 - changed how constraints are compiled
1626 so that we do less recursion and more
1627 iteration. This makes the type check
1629 - moved Moose::Meta::TypeConstraint::Union
1632 * Moose::Meta::Method::Accessor
1633 - created this from methods formerly found in
1634 Moose::Meta::Attribute
1636 * Moose::Meta::Role::Method
1637 - moved this from Moose::Meta::Role
1639 * Moose::Meta::Method::Overriden
1640 - moved this from Moose::Meta::Class
1642 * Moose::Meta::TypeConstraint::Union
1643 - moved this from Moose::Meta::TypeConstraint
1645 0.14 Mon. Oct. 9, 2006
1647 * Moose::Meta::Attribute
1648 - fixed lazy attributes which were not getting
1649 checked with the type constraint (thanks ashley)
1650 - added tests for this
1651 - removed the over-enthusiastic DWIMery of the
1652 automatic ArrayRef and HashRef defaults, it
1653 broke predicates in an ugly way.
1654 - removed tests for this
1656 0.13 Sat. Sept. 30, 2006
1658 This version of Moose *must* have Class::MOP 0.35 in order
1659 to work correctly. A number of small internal tweaks have
1660 been made in order to be compatible with that release.
1663 - Removed the use of UNIVERSAL::require to be a better
1664 symbol table citizen and remove a dependency
1665 (thanks Adam Kennedy)
1667 **~~ removed experimental & undocumented feature ~~**
1668 - commented out the 'method' and 'self' keywords, see the
1669 comments for more info.
1672 - added a FAQ and WTF files to document frequently
1673 asked questions and common problems
1675 * Moose::Util::TypeConstraints
1676 - added GlobRef and FileHandle type constraint
1677 - added tests for this
1679 * Moose::Meta::Attribute
1680 - if your attribute 'isa' ArrayRef of HashRef, and you have
1681 not explicitly set a default, then make the default DWIM.
1682 This will also work for subtypes of ArrayRef and HashRef
1684 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1685 - new test added for this (thanks to ashley)
1688 - added basic support for runtime role composition
1689 but this is still *highly experimental*, so feedback
1690 is much appreciated :)
1691 - added tests for this
1693 * Moose::Meta::TypeConstraint
1694 - the type constraint now handles the coercion process
1695 through delegation, this is to support the coercion
1698 * Moose::Meta::TypeConstraint::Union
1699 - it is now possible for coercions to be performed
1701 - added tests for this (thanks to konobi)
1703 * Moose::Meta::TypeCoercion
1704 - properly capturing error when type constraint
1708 - Scalar::Util 1.18 is bad on Win32, so temporarily
1709 only require version 1.17 for Win32 and cygwin.
1710 (thanks Adam Kennedy)
1712 0.12 Sat. Sept. 1, 2006
1714 - Recipe5 (subtypes & coercion) has been written
1717 - fixed "bad meta" error message to be more descriptive
1718 - fixed &unimport to not remove the &inner and &super
1719 keywords because we need to localize them.
1720 - fixed number of spelling/grammer issues, thanks Theory :)
1722 **~~ experimental & undocumented feature ~~**
1723 - added the method and self keywords, they are basically
1724 just sugar, and they may not stay around.
1727 - added &dump method to easily Data::Dumper
1730 * Moose::Meta::TypeConstraint
1731 - added the &is_a_type_of method to check both the current
1732 and the subtype of a method (similar to &isa with classes)
1735 - this is now a subclass of Class::MOP::Module, and no longer
1736 creates the _role_meta ugliness of before.
1737 - fixed tests to reflect this change
1739 0.11 Wed. July 12, 2006
1741 - added an &unimport method to remove all the keywords
1742 that Moose will import, simply add 'no Moose' to the
1743 bottom of your class file.
1746 - fixed some test failures caused by a forgotten test
1749 0.10 Thurs. July 6, 2006
1751 - improved error message when loading modules so
1752 it is less confusing when you load a role.
1753 - added &calculate_all_roles method to
1754 Moose::Meta::Class and Moose::Meta::Role
1757 This module has been tested against Class::MOP 0.30
1758 but it does not yet utilize the optimizations
1759 it makes available. Stay tuned for that ;)
1761 0.09_03 Fri. June 23, 2006
1762 ++ DEVELOPER RELEASE ++
1764 - 'use strict' and 'use warnings' are no longer
1765 needed in Moose classes, Moose itself will
1766 turn them on for you.
1767 - added tests for this
1768 - moved code from exported subs to private methods
1769 in Moose::Meta::Class
1772 - as with Moose, strict and warnings are
1773 automatically turned on for you.
1774 - added tests for this
1777 - now handles an edge case for override errors
1778 - added tests for this
1779 - added some more edge case tests
1781 0.09_02 Tues. May 16, 2006
1782 ++ DEVELOPER RELEASE ++
1784 - added prototypes to the exported subs
1788 - added prototypes to the exported subs
1791 * Moose::Util::TypeConstraints
1792 - cleaned up prototypes for the subs
1795 0.09_01 Fri. May 12, 2006
1796 ++ DEVELOPER RELEASE ++
1797 - This release works in combination with
1798 Class::MOP 0.29_01, it is a developer
1799 release because it uses the a new
1800 instance sub-protocol and a fairly
1801 complete Role implementation. It has
1802 not yet been optimized, so it slower
1803 the the previous CPAN version. This
1804 release also lacks good updated docs,
1805 the official release will have updated docs.
1808 - refactored the keyword exports
1809 - 'with' now checks Role validaity and
1810 accepts more than one Role at a time
1811 - 'extends' makes metaclass adjustments as
1812 needed to ensure metaclass compatibility
1815 - refactored the keyword exports
1816 - 'with' now checks Role validaity and
1817 accepts more than one Role at a time
1819 * Moose::Util::TypeConstraints
1820 - added the 'enum' keyword for simple
1821 string enumerations which can be used as
1823 - see example of usage in t/202_example.t
1826 - more careful checking of params to new()
1829 - much work done on the role composition
1830 - many new tests for conflict detection
1831 and composition edge cases
1832 - not enough documentation, I suggest
1833 looking at the tests
1835 * Moose::Meta::Instance
1836 - added new Instance metaclass to support
1837 the new Class::MOP instance protocol
1839 * Moose::Meta::Class
1840 - some small changes to support the new
1842 - some small additions to support Roles
1844 * Moose::Meta::Attribute
1845 - some improvements to the accessor generation code
1847 - some small changes to support the new
1849 - (still somewhat) experimental delegation support
1850 with the 'handles' option
1851 - added several tests for this
1852 - no docs for this yet
1854 0.05 Thurs. April 27, 2006
1856 - keywords are now exported with Sub::Exporter
1857 thanks to chansen for this commit
1858 - has keyword now takes a 'metaclass' option
1859 to support custom attribute meta-classes
1860 on a per-attribute basis
1861 - added tests for this
1862 - the 'has' keyword not accepts inherited slot
1863 specifications (has '+foo'). This is still an
1864 experimental feature and probably not finished
1865 see t/038_attribute_inherited_slot_specs.t for
1866 more details, or ask about it on #moose
1867 - added tests for this
1870 - keywords are now exported with Sub::Exporter
1872 * Moose::Utils::TypeConstraints
1873 - reorganized the type constraint hierarchy, thanks
1874 to nothingmuch and chansen for his help and advice
1876 - added some tests for this
1877 - keywords are now exported with Sub::Exporter
1878 thanks to chansen for this commit
1880 * Moose::Meta::Class
1881 - due to changes in Class::MOP, we had to change
1882 construct_instance (for the better)
1884 * Moose::Meta::Attribute
1885 - due to changes in Class::MOP, we had to add the
1886 initialize_instance_slot method (it's a good thing)
1888 * Moose::Meta::TypeConstraint
1889 - added type constraint unions
1890 - added tests for this
1891 - added the is_subtype_of predicate method
1892 - added tests for this
1894 0.04 Sun. April 16th, 2006
1896 - Roles can now consume other roles
1897 - added tests for this
1898 - Roles can specify required methods now with
1899 the requires() keyword
1900 - added tests for this
1903 - ripped out much of it's guts ,.. much cleaner now
1904 - added required methods and correct handling of
1905 them in apply() for both classes and roles
1906 - added tests for this
1907 - no longer adds a does() method to consuming classes
1908 it relys on the one in Moose::Object
1909 - added roles attribute and some methods to support
1910 roles consuming roles
1912 * Moose::Meta::Attribute
1913 - added support for triggers on attributes
1914 - added tests for this
1915 - added support for does option on an attribute
1916 - added tests for this
1918 * Moose::Meta::Class
1919 - added support for attribute triggers in the
1921 - added tests for this
1924 - Moose no longer creates a subtype for your class
1925 if a subtype of the same name already exists, this
1926 should DWIM in 99.9999% of all cases
1928 * Moose::Util::TypeConstraints
1929 - fixed bug where incorrect subtype conflicts were
1931 - added test for this
1934 - this class can now be extended with 'use base' if
1935 you need it, it properly loads the metaclass class now
1936 - added test for this
1938 0.03_02 Wed. April 12, 2006
1940 - you must now explictly use Moose::Util::TypeConstraints
1941 it no longer gets exported for you automatically
1944 - new() now accepts hash-refs as well as key/value lists
1945 - added does() method to check for Roles
1946 - added tests for this
1948 * Moose::Meta::Class
1949 - added roles attribute along with the add_role() and
1951 - added tests for this
1954 - now adds a does() method to consuming classes
1955 which tests the class's hierarchy for roles
1956 - added tests for this
1958 0.03_01 Mon. April 10, 2006
1960 - added new Role recipe (no content yet, only code)
1963 - added 'with' keyword for Role support
1964 - added test and docs for this
1965 - fixed subtype quoting bug
1966 - added test for this
1970 - added test and docs
1972 * Moose::Util::TypeConstraints
1973 - added the message keyword to add custom
1974 error messages to type constraints
1977 - the meta role to support Moose::Role
1978 - added tests and docs
1980 * Moose::Meta::Class
1981 - moved a number of things from Moose.pm
1982 to here, they should have been here
1985 * Moose::Meta::Attribute
1986 - moved the attribute option macros here
1987 instead of putting them in Moose.pm
1989 * Moose::Meta::TypeConstraint
1990 - added the message attributes and the
1992 - added tests and docs for this
1994 0.03 Thurs. March 30, 2006
1996 - added the Moose::Cookbook with 5 recipes,
1997 describing all the stuff Moose can do.
2000 - fixed an issue with &extends super class loading
2001 it now captures errors and deals with inline
2002 packages correctly (bug found by mst, solution
2004 - added super/override & inner/augment features
2005 - added tests and docs for these
2008 - BUILDALL now takes a reference of the %params
2009 that are passed to &new, and passes that to
2012 * Moose::Util::TypeConstraints
2013 - Type constraints now survive runtime reloading
2014 - added test for this
2016 * Moose::Meta::Class
2017 - fixed the way attribute defaults are handled
2018 during instance construction (bug found by chansen)
2020 * Moose::Meta::Attribute
2021 - read-only attributes now actually enforce their
2022 read-only-ness (this corrected in Class::MOP as
2025 0.02 Tues. March 21, 2006
2027 - many more tests, fixing some bugs and
2029 - &extends now loads the base module with
2031 - added UNIVERSAL::require to the
2034 - each new Moose class will also create
2035 and register a subtype of Object which
2036 correspond to the new Moose class.
2037 - the 'isa' option in &has now only
2038 accepts strings, and will DWIM in
2041 * Moose::Util::TypeConstraints
2042 - added type coercion features
2043 - added tests for this
2044 - added support for this in attributes
2045 and instance construction
2047 - type construction no longer creates a
2048 function, it registers the type instead.
2049 - added several functions to get the
2053 - BUILDALL and DEMOLISHALL were broken
2054 because of a mis-named hash key, Whoops :)
2056 * Moose::Meta::Attribute
2057 - adding support for coercion in the
2058 autogenerated accessors
2060 * Moose::Meta::Class
2061 - adding support for coercion in the
2062 instance construction
2064 * Moose::Meta::TypeConstraint
2065 * Moose::Meta::TypeCoercion
2066 - type constraints and coercions are now
2067 full fledges meta-objects
2069 0.01 Wed. March 15, 2006
2070 - Moooooooooooooooooose!!!