1 Revision history for Perl extension Moose
3 0.71_01 Sun, February 22, 2009
5 - Hopefully fixed some POD errors in a few recipes that caused
6 them to display weird on search.cpan.org.
8 * Moose::Util::TypeConstraints
9 - Calling type or subtype without the sugar helpers (as, where,
10 message) is now deprecated.
11 - The subtype function tried hard to guess what you meant, but
12 often got it wrong. For example:
14 my $subtype = subtype as 'ArrayRef[Object]';
16 This caused an error in the past, but now works as you'd
20 - Make sure Moose.pm is loaded before calling
21 Moose->throw_error. This wasn't normally an issue, but could
22 bite you in weird cases.
24 0.71 Thu, February 19, 2009
25 * Moose::Cookbook::Basics::Recipe11
26 - A new recipe which demonstrates the use of BUILDARGS and
29 * Moose::Cookbook::Roles::Recipe3
30 - A new recipe, applying a role to an object instance. (Dave
34 - Allow overriding specific keywords from "also" packages. (doy)
37 - Replace hardcoded cookbook tests with Test::Inline POD
38 to ensure they don't get out of sync. (Dave Rolsky)
41 - Working on the above turned up a number of little bugs in the
42 recipe code. (Dave Rolsky)
44 * Moose::Util::TypeConstraints::Optimized
45 - Just use Class::MOP for the optimized ClassName check. (Dave
48 0.70 Sat, February 14, 2009
49 * Moose::Util::TypeConstraints
50 - Added the RoleName type (stevan)
51 - added tests for this (stevan)
53 * Moose::Cookbook::Basics::Recipe3
54 - Updated the before qw[left right] sub to be a little more
55 defensive about what it accepts (stevan)
56 - added more tests to t/000_recipies/basics/003_binary_tree.t
60 - We now always call DEMOLISHALL, even if a class does not
61 define DEMOLISH. This makes sure that method modifiers on
62 DEMOLISHALL work as expected. (doy)
63 - added tests for this (EvanCarroll)
65 * Moose::Util::MetaRole
66 - Accept roles for the wrapped_method_metaclass (rafl)
67 - added tests for this (rafl)
69 * Moose::Meta::Attribute
70 - We no longer pass the meta-attribute object as a final
71 argument to triggers. This actually changed for inlined code a
72 while back, but the non-inlined version and the docs were
76 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
77 they require 0.11. (Dave Rolsky)
80 - Lots of small changes to the manual, cookbook, and
81 elsewhere. These were based on feedback from various
82 users, too many to list here. (Dave Rolsky)
84 0.69 Thu, February 12, 2009
86 - Make some keyword errors use throw_error instead of croak
87 since Moose::Exporter wraps keywords now (Sartak)
90 - Revised every recipe for style and clarity. Also moved some
91 documentation out of cookbook recipes and into Moose::Manual
92 pages. This work was funded as part of the Moose docs grant
93 from TPF. (Dave Rolsky)
95 * Moose::Meta::Method::Delegation
96 - If the attribute doing the delegation was not populated, the
97 error message did not specify the attribute name
100 0.68 Wed, February 4, 2009
102 - Many spelling, typo, and formatting fixes by daxim.
104 * Moose::Manual::Attributes
105 - The NAME section in the POD used "Attribute" so search.cpan
106 didn't resolve links from other documents properly.
108 * Moose::Meta::Method::Overriden
109 - Now properly spelled as Overridden. Thanks to daxim for
112 0.67 Tue, February 3, 2009
114 - Lots of little typo fixes and a few clarifications. Several
115 pages didn't have proper titles, and so weren't actually
116 visible on search.cpan.org. Thanks to hanekomu for a variety
117 of fixes and formatting improvements.
119 0.66 Tue, February 3, 2009
121 - This is a brand new, extensive manual for Moose. This aims to
122 provide a complete introduction to all of Moose's
123 features. This work was funded as part of the Moose docs grant
124 from TPF. (Dave Rolsky)
126 * Moose::Meta::Attribute
127 - Added a delegation_metaclass method to replace a hard-coded
128 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
130 * Moose::Util::TypeConstraints
131 - If you created a subtype and passed a parent that Moose didn't
132 know about, it simply ignored the parent. Now it automatically
133 creates the parent as a class type. This may not be what you
134 want, but is less broken than before. (Dave Rolsky)
136 * Moose::Util::TypeConstraints
137 - This module tried throw errors by calling Moose->throw_error,
138 but it did not ensure that Moose was loaded first. This could
139 cause very unhelpful errors when it tried to throw an error
140 before Moose was loaded. (Dave Rolsky)
142 * Moose::Util::TypeConstraints
143 - You could declare a name with subtype such as "Foo!Bar" that
144 would be allowed, but if you used it in a parameterized type
145 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
146 vetting on names created via the sugar functions, so that they
147 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
149 0.65 Thu, January 22, 2008
150 * Moose and Moose::Meta::Method::Overridden
151 - If an overridden method called super(), and then the
152 superclass's method (not overridden) _also_ called super(),
153 Moose went into an endless recursion loop. Test provided by
154 Chris Prather. (Dave Rolsky)
156 * Moose::Meta::TypeConstraint
157 - All methods are now documented. (gphat)
159 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
160 - Fixed some bogus failures that occurred because we tried to
161 validate filesystem paths in a very ad-hoc and
162 not-quite-correct way. (Dave Rolsky)
164 * Moose::Util::TypeConstraints
165 - Added maybe_type to exports. See docs for details. (rjbs)
168 - Added Moose::Util::TypeConstraints to the SEE ALSO
172 - Methods created via an attribute can now fulfill a "requires"
173 declaration for a role. (nothingmuch)
175 * Moose::Meta::Method::*
176 - Stack traces from inlined code will now report its line and
177 file as being in your class, as opposed to in Moose
180 0.64 Wed, December 31, 2008
181 * Moose::Meta::Method::Accessor
182 - Always inline predicate and clearer methods (Sartak)
184 * Moose::Meta::Attribute
185 - Support for parameterized traits (Sartak)
186 - verify_against_type_constraint method to avoid duplication
187 and enhance extensibility (Sartak)
190 - Tests (but no support yet) for parameterized traits (Sartak)
193 - Require Class::MOP 0.75+, which has the side effect of making
194 sure we work on Win32. (Dave Rolsky)
196 0.63 Mon, December 8, 2008
198 - Some small grammar tweaks and bug fixes in non-Moose example
201 0.62_02 Fri, December 5, 2008
202 * Moose::Meta::Role::Application::ToClass
203 - When a class does not provide all of a role's required
204 methods, the error thrown now mentions all of the missing
205 methods, as opposed to just the first one found. Requested by
206 Curtis Poe (RT #41119). (Dave Rolsky)
208 * Moose::Meta::Method::Constructor
209 - Moose will no longer inline a constructor for your class
210 unless it inherits its constructor from Moose::Object, and
211 will warn when it doesn't inline. If you want to force
212 inlining anyway, pass "replace_constructor => 1" to
213 make_immutable. Addresses RT #40968, reported by Jon
214 Swartz. (Dave Rolsky)
215 - The quoting of default values could be broken if the default
216 contained a single quote ('). Now we use quotemeta to escape
217 anything potentially dangerous in the defaults. (Dave Rolsky)
219 0.62_01 Wed, December 3, 2008
221 - use the method->execute API for BUILDALL
222 and DEMOLISHALL (Sartak)
224 * Moose::Util::TypeConstraints
225 - We now make all the type constraint meta classes immutable
226 before creating the default types provided by Moose. This
227 should make loading Moose a little faster. (Dave Rolsky)
229 0.62 Wed November 26, 2008
230 * Moose::Meta::Role::Application::ToClass
231 Moose::Meta::Role::Application::ToRole
232 - fixed issues where excluding and aliasing the
233 same methods for a single role did not work
234 right (worked just fine with multiple
236 - added test for this (stevan)
238 * Moose::Meta::Role::Application::RoleSummation
239 - fixed the error message when trying to compose
240 a role with a role it excludes (Sartak)
243 - Catch another case where recursion caused the value
244 of $CALLER to be stamped on (t0m)
245 - added test for this (t0m)
248 - Remove the make_immutable keyword, which has been
249 deprecated since April. It breaks metaclasses that
250 use Moose without no Moose (Sartak)
252 * Moose::Meta::Attribute
253 - Removing an attribute from a class now also removes delegation
254 (handles) methods installed for that attribute (t0m)
255 - added test for this (t0m)
257 * Moose::Meta::Method::Constructor
258 - An attribute with a default that looked like a number (but was
259 really a string) would accidentally be treated as a number
260 when the constructor was made immutable (perigrin)
261 - added test for this (perigrin)
264 - create method for constructing a role
266 - added test for this (Sartak)
267 - anonymous roles! (Sartak)
268 - added test for this (Sartak)
271 - more consistent error messages (Sartak)
273 * Moose::Cookbook::Roles::Recipe1
274 - attempt to explain why a role that just requires
275 methods is useful (Sartak)
277 0.61 Fri November 7, 2008
278 * Moose::Meta::Attribute
279 - When passing a role to handles, it will be loaded if necessary
283 - Method objects returned by get_method (and other methods)
284 Could end up being returned without an associated_metaclass
285 attribute. Removing get_method_map, which is provided by
286 Class::MOP::Class, fixed this. The Moose version did nothing
287 different from its parent except introduce a bug. (Dave Rolsky)
288 - added tests for this (jdv79)
291 - Added a $VERSION to all .pm files which didn't have one. Fixes
292 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
294 * Moose::Cookbook::Basics::Recipe4
295 * Moose::Cookbook::Basics::Recipe6
296 - These files had spaces on the first line of the SYNOPSIS, as
297 opposed to a totally empty line. According to RT #40432, this
298 confuses POD parsers. (Dave Rolsky)
300 0.60 Fri October 24, 2008
302 - Passing "-traits" when loading Moose caused the Moose.pm
303 exports to be broken. Reported by t0m. (Dave Rolsky)
304 - Tests for this bug. (t0m)
307 - Change resolve_metaclass alias to use the new
308 load_first_existing_class function. This makes it a lot
309 simpler, and also around 5 times faster. (t0m)
310 - Add caching to resolve_metaclass_alias, which gives an order
311 of magnitude speedup to things which repeatedly call the
312 Moose::Meta::Attribute->does method, notably MooseX::Storage
315 * Moose::Util::TypeConstraint
316 - Put back the changes for parameterized constraints that
317 shouldn't have been removed in 0.59. We still cannot parse
318 them, but MooseX modules can create them in some other
319 way. See the 0.58 changes for more details. (jnapiorkowski)
320 - Changed the way subtypes are created so that the job is
321 delegated to a type constraint parent. This clears up some
322 hardcoded checking and should allow correct subtypes of
323 Moose::Meta::Type::Constraint. Don't rely on this new API too
324 much (create_child_type) because it may go away in the
325 future. (jnapiorkowski)
327 * Moose::Meta::TypeConstraint::Union
328 - Type constraint names are sorted as strings, not numbers.
331 * Moose::Meta::TypeConstraint::Parameterizable
332 - New parameterize method. This can be used as a factory method
333 to make a new type constraint with a given parameterized
334 type. (jnapiorkowski)
335 - added tests (jnapiorkowski)
337 0.59 Tue October 14, 2008
339 - Add abridged documentation for builder/default/initializer/
340 predicate, and link to more details sections in
341 Class::MOP::Attribute. (t0m)
343 * Moose::Util::TypeConstraints
344 - removed prototypes from all but the &-based stuff (mst)
346 * Moose::Util::TypeConstraints
347 - Creating a anonymous subtype with both a constraint and a
348 message failed with a very unhelpful error, but should just
349 work. Reported by t0m. (Dave Rolsky)
352 - Some tests that used Test::Warn if it was available failed
353 with older versions of Test::Warn. Reported by Fayland. (Dave
355 - Test firing behavior of triggers in relation to builder/default/
357 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
358 kinds of supported type. (t0m)
361 - In create(), do not pass "roles" option to the superclass
362 - added related test that creates an anon metaclass with
365 * Moose::Meta::TypeConstraint::Class
366 * Moose::Meta::TypeConstraint::Role
367 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
368 other types (as per change in 0.55_02). (t0m)
370 * Moose::Meta::TypeConstraint::Registry
371 - Fix warning when dealing with unknown type names (t0m)
373 * Moose::Util::TypeConstraints
374 - Reverted changes from 0.58 related to handle parameterized
375 types. This caused random failures on BSD and Win32 systems,
376 apparently related to the regex engine. This means that Moose
377 can no longer parse structured type constraints like
378 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
379 supported in a slightly different way via MooseX::Types some
380 time in the future. (Dave Rolsky)
382 0.58 Sat September 20, 2008
383 !! This release has an incompatible change regarding !!
384 !! how roles add methods to a class !!
386 * Roles and role application
387 ! Roles now add methods by calling add_method, not
388 alias_method. They make sure to always provide a method
389 object, which will be cloned internally. This means that it is
390 now possible to track the source of a method provided by a
391 role, and even follow its history through intermediate roles.
393 This means that methods added by a role now show up when
394 looking at a class's method list/map. (Dave Rolsky)
397 - From this release on, we'll try to maintain a list of
398 conflicting modules, and warn you if you have one
399 installed. For example, this release conflicts with ...
400 - MooseX::Singleton <= 0.11
401 - MooseX::Params::Validate <= 0.05
404 In general, we try to not break backwards compatibility for
405 most Moose users, but MooseX modules and other code which
406 extends Moose's metaclasses is often affected by very small
407 changes in the Moose internals.
409 * Moose::Meta::Method::Delegation
410 * Moose::Meta::Attribute
411 - Delegation methods now have their own method class. (Dave
414 * Moose::Meta::TypeConstraint::Parameterizable
415 - Added a new method 'parameterize' which is basically a factory
416 for the containing constraint. This makes it easier to create
417 new types of parameterized constraints. (jnapiorkowski)
419 * Moose::Meta::TypeConstraint::Union
420 - Changed the way Union types canonicalize their names to follow
421 the normalized TC naming rules, which means we strip all
422 whitespace. (jnapiorkowski)
424 * Moose::Util::TypeConstraints
425 - Parameter and Union args are now sorted, this makes Int|Str
426 the same constraint as Str|Int. (jnapiorkowski)
427 - Changes to the way Union types are parsed to more correctly
428 stringify their names. (jnapiorkowski)
429 - When creating a parameterized type, we now use the new
430 parameterize method. (jnapiorkowski)
431 - Incoming type constraint strings are now normalized to remove
432 all whitespace differences. (jnapiorkowski)
433 - Changed the way we parse type constraint strings so that we now
434 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
435 constraints. This lays the foundation for more flexible type
436 constraint implementations.
438 * Tests and docs for all the above. (jnapiorkowski)
442 - Moose::Exporter will no longer remove a subroutine that the
443 exporting package re-exports. Moose re-exports the
444 Carp::confess function, among others. The reasoning is that we
445 cannot know whether you have also explicitly imported those
446 functions for your own use, so we err on the safe side and
447 always keep them. (Dave Rolsky)
448 - added tests for this (rafl)
451 - Changes to how we fix metaclass compatibility that are much
452 too complicated to go into. The summary is that Moose is much
453 less likely to complain about metaclass incompatibility
454 now. In particular, if two metaclasses differ because
455 Moose::Util::MetaRole was used on the two corresponding
456 classes, then the difference in roles is reconciled for the
457 subclass's metaclass. (Dave Rolsky)
458 - Squashed an warning in _process_attribute (thepler)
461 - throw exceptions (sooner) for invalid attribute names (thepler)
462 - added tests for this (thepler)
464 * Moose::Util::MetaRole
465 - If you explicitly set a constructor or destructor class for a
466 metaclass object, and then applied roles to the metaclass,
467 that explicitly set class would be lost and replaced with the
471 * Moose::Meta::Attribute
472 * Moose::Meta::Method
475 * Moose::Error::Default
476 * Moose::Error::Croak
477 * Moose::Error::Confess
478 - All instances of confess() changed to use overridable
479 C<throw_error> method. This method ultimately calls a class
480 constructor, and you can change the class being called. In
481 addition, errors now pass more information than just a string.
482 The default C<error_class> behaves like C<Carp::confess>, so
483 the behavior is not visibly different for end users.
485 0.57 Wed September 3, 2008
487 - A new bit of doc intended to introduce folks familiar with
488 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
491 - Shows examples of two classes, each done first with and then
492 without Moose. This makes a nice parallel to
493 Moose::Intro. (Dave Rolsky)
495 * Moose::Util::TypeConstraints
496 - Fixed a bug in find_or_parse_type_constraint so that it
497 accepts a Moose::Meta::TypeConstraint object as the parent
498 type, not just a name (jnapiorkowski)
499 - added tests (jnapiorkowski)
502 - If Sub::Name was not present, unimporting failed to actually
503 remove some sugar subs, causing test failures (Dave Rolsky)
505 0.56 Mon September 1, 2008
506 For those not following the series of dev releases, there are
507 several major changes in this release of Moose.
508 ! Moose::init_meta should now be called as a method. See the
511 - Major performance improvements by nothingmuch.
513 - New modules for extension writers, Moose::Exporter and
514 Moose::Util::MetaRole by Dave Rolsky.
516 - Lots of doc improvements and additions, especially in the
521 * Removed all references to the experimental-but-no-longer-needed
522 Moose::Meta::Role::Application::ToMetaclassInstance.
524 * Require Class::MOP 0.65.
526 0.55_04 Sat August 30, 2008
527 * Moose::Util::MetaRole
528 * Moose::Cookbook::Extending::Recipe2
529 - This simplifies the application of roles to any meta class, as
530 well as the base object class. Reimplemented metaclass traits
531 using this module. (Dave Rolsky)
533 * Moose::Cookbook::Extending::Recipe1
534 - This a new recipe, an overview of various ways to write Moose
535 extensions (Dave Rolsky)
537 * Moose::Cookbook::Extending::Recipe3
538 * Moose::Cookbook::Extending::Recipe4
539 - These used to be Extending::Recipe1 and Extending::Recipe2,
542 0.55_03 Fri August 29, 2008
543 * No changes from 0.55_02 except increasing the Class::MOP
544 dependency to 0.64_07.
546 0.55_02 Fri August 29, 2008
547 * Makefile.PL and Moose.pm
548 - explicitly require Perl 5.8.0+ (Dave Rolsky)
550 * Moose::Util::TypeConstraints
551 - Fix warnings from find_type_constraint if the type is not
554 * Moose::Meta::TypeConstraint
555 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
556 return false if the type you specify cannot be found in the
557 type registry, rather than throwing an unhelpful and
558 coincidental exception. (t0m).
559 - added docs & test for this (t0m)
561 * Moose::Meta::TypeConstraint::Registry
562 - add_type_constraint now throws an exception if a parameter is
564 - added docs & test for this (t0m)
566 * Moose::Cookbook::FAQ
567 - Added a faq entry on the difference between "role" and "trait"
571 - Fixed a bug that caused role composition to not see a required
572 method when that method was provided by another role being
573 composed at the same time. (Dave Rolsky)
574 - test and bug finding (tokuhirom)
576 0.55_01 Wed August 20, 2008
578 !! Calling Moose::init_meta as a function is now !!
579 !! deprecated. Please see the Moose.pm docs for details. !!
581 * Moose::Meta::Method::Constructor
582 - Fix inlined constructor so that values produced by default
583 or builder methods are coerced as required. (t0m)
584 - added test for this (t0m)
586 * Moose::Meta::Attribute
587 - A lazy attribute with a default or builder did not attempt to
588 coerce the default value. The immutable code _did_
590 - added test for this (t0m)
593 - This is a new helper module for writing "Moose-alike"
594 modules. This should make the lives of MooseX module authors
595 much easier. (Dave Rolsky)
598 * Moose::Cookbook::Meta::Recipe5
599 - Implemented metaclass traits (and wrote a recipe for it):
601 use Moose -traits => 'Foo'
603 This should make writing small Moose extensions a little
606 * Moose::Cookbook::Basics::Recipe1
607 - Removed any examples of direct hashref access, and applied an
608 editorial axe to reduce verbosity. (Dave Rolsky)
610 * Moose::Cookbook::Basics::Recipe1
611 - Also applied an editorial axe here. (Dave Rolsky)
614 * Moose::Cookbook::Extending::Recipe1
615 * Moose::Cookbook::Extending::Recipe2
616 - Rewrote extending and embedding moose documentation and
617 recipes to use Moose::Exporter (Dave Rolsky)
621 - These two modules now warn when you load them from the main
622 package "main" package, because we will not export sugar to
623 main. Previously it just did nothing. (Dave Rolsky)
626 - Now provide an init_meta method just like Moose.pm, and you
627 can call this to provide an alternate role metaclass. (Dave
628 Rolsky and nothingmuch)
629 - get_method_map now respects the package cache flag (nothingmuch)
632 - Two new methods - add_method and wrap_method_body
636 - Optimizations including allowing constructors to accept hash
637 refs, making many more classes immutable, and making
638 constructors immutable. (nothingmuch)
640 0.55 Sun August 3, 2008
641 * Moose::Meta::Attribute
642 - breaking down the way 'handles' methods are
643 created so that the process can be more easily
644 overridden by subclasses (stevan)
646 * Moose::Meta::TypeConstraint
647 - fixing what is passed into a ->message with
648 the type constraints (RT #37569)
649 - added tests for this (Charles Alderman)
651 * Moose::Util::TypeConstraints
652 - fix coerce to accept anon types like subtype can (mst)
655 - reorganized the recipes into sections - Basics, Roles, Meta,
656 Extending - and wrote abstracts for each section (Dave Rolsky)
658 * Moose::Cookbook::Basics::Recipe10
659 - A new recipe that demonstrates operator overloading
660 in combination with Moose. (bluefeet)
662 * Moose::Cookbook::Meta::Recipe1
663 - an introduction to what meta is and why you'd want to make
664 your own metaclass extensions (Dave Rolsky)
666 * Moose::Cookbook::Meta::Recipe4
667 - a very simple metaclass example (Dave Rolsky)
669 * Moose::Cookbook::Extending::Recipe1
670 - how to write a Moose-alike module to use your own object base
673 * Moose::Cookbook::Extending::Recipe2
674 - how to write modules with an API just like C<Moose.pm> (Dave
678 - Tons of fixes, both syntactical and grammatical (Dave
679 Rolsky, Paul Fenwick)
681 0.54 Thurs. July 3, 2008
682 ... this is not my day today ...
684 * Moose::Meta::Attribute
685 - fixed legal_options_for_inheritance such that
686 clone_and_inherit options still works for
687 Class::MOP::Attribute objects and therefore
688 does not break MooseX::AttributeHelpers
691 0.53 Thurs. July 3, 2008
692 * Whoops, I guess I should run 'make manifest' before
693 actually releasing the module. No actual changes
694 in this release, except the fact that it includes
695 the changes that I didn't include in the last
698 0.52 Thurs. July 3, 2008
700 - added "FEATURE REQUESTS" section to the Moose docs
701 to properly direct people (stevan) (RT #34333)
702 - making 'extends' croak if it is passed a Role since
703 this is not ever something you want to do
704 (fixed by stevan, found by obra)
705 - added tests for this (stevan)
708 - adding support for DOES (as in UNIVERSAL::DOES)
710 - added test for this
712 * Moose::Meta::Attribute
713 - added legal_options_for_inheritance (wreis)
714 - added tests for this (wreis)
716 * Moose::Cookbook::Snacks::*
717 - removed some of the unfinished snacks that should
718 not have been released yet. Added some more examples
719 to the 'Keywords' snack. (stevan)
721 * Moose::Cookbook::Style
722 - added general Moose "style guide" of sorts to the
723 cookbook (nothingmuch) (RT #34335)
726 - added more BUILDARGS tests (stevan)
728 0.51 Thurs. Jun 26, 2008
730 - add unimport so "no Moose::Role" actually does
733 * Moose::Meta::Role::Application::ToRole
734 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
735 order to provide its own implementation, that method still got
736 added to the list of required methods for consumers of
737 RoleB. Now an aliased method is only added to the list of
738 required methods if the role doing the aliasing does not
739 provide its own implementation. See Recipe 11 for an example
740 of all this. (Dave Rolsky)
741 - added tests for this
743 * Moose::Meta::Method::Constructor
744 - when a single argument that wasn't a hashref was provided to
745 an immutabilized constructor, the error message was very
746 unhelpful, as opposed to the non-immutable error. Reported by
748 - added test for this (Dave Rolsky)
750 * Moose::Meta::Attribute
751 - added support for meta_attr->does("ShortAlias") (sartak)
752 - added tests for this (sartak)
753 - moved the bulk of the `handles` handling to the new
754 install_delegation method (Stevan)
757 - Added BUILDARGS, a new step in new()
759 * Moose::Meta::Role::Application::RoleSummation
760 - fix typos no one ever sees (sartak)
762 * Moose::Util::TypeConstraints
763 * Moose::Meta::TypeConstraint
764 * Moose::Meta::TypeCoercion
765 - Attempt to work around the ??{ } vs. threads issue
767 - Some null_constraint optimizations
769 0.50 Thurs. Jun 11, 2008
770 - Fixed a version number issue by bumping all modules
773 0.49 Thurs. Jun 11, 2008
774 !! This version now approx. 20-25% !!
775 !! faster with new Class::MOP 0.59 !!
777 * Moose::Meta::Attribute
778 - fixed how the is => (ro|rw) works with
779 custom defined reader, writer and accessor
781 - added docs for this (TODO).
782 - added tests for this (Thanks to Penfold)
783 - added the custom attribute alias for regular
784 Moose attributes which is "Moose"
785 - fix builder and default both being used
790 Moose::Meta::Attribute
792 Moose::Meta::Role::Composite
793 Moose::Util::TypeConstraints
794 - switched usage of reftype to ref because
798 - changing add_package_symbol to use the new
802 - fixed how DEMOLISHALL is called so that it
803 can be overrided in subclasses (thanks to Sartak)
804 - added test for this (thanks to Sartak)
806 * Moose::Util::TypeConstraints
807 - move the ClassName type check code to
808 Class::MOP::is_class_loaded (thanks to Sartak)
810 * Moose::Cookbook::Recipe11
811 - add tests for this (thanks to tokuhirom)
813 0.48 Thurs. May 29, 2008
814 (early morning release engineering)--
816 - fixing the version in Moose::Meta::Method::Destructor
817 which was causing the indexer to choke
819 0.47 Thurs. May 29, 2008
820 (late night release engineering)--
822 - fixing the version is META.yml, no functional
823 changes in this release
825 0.46 Wed. May 28, 2008
826 !! This version now approx. 20-25% !!
827 !! faster with new Class::MOP 0.57 !!
830 - some optimizations of the &initialize method
831 since it is called so often by &meta
835 - now use the get_all_package_symbols from the
836 updated Class::MOP, test suite is now 10 seconds
839 * Moose::Meta::Method::Destructor
840 - is_needed can now also be called as a class
841 method for immutablization to check if the
842 destructor object even needs to be created
845 * Moose::Meta::Method::Destructor
846 Moose::Meta::Method::Constructor
847 - added more descriptive error message to help
848 keep people from wasting time tracking an error
849 that is easily fixed by upgrading.
851 0.45 Saturday, May 24, 2008
853 - Because of work in Class::MOP 0.57, all
854 XS based functionality is now optional
855 and a Pure Perl version is supplied
856 - the CLASS_MOP_NO_XS environment variable
857 can now be used to force non-XS versions
859 - several of the packages have been tweaked
860 to take care of this, mostly we added
861 support for the package_name and name
862 variables in all the Method metaclasses
863 - before/around/after method modifiers now
864 support regexp matching of names
865 (thanks to Takatoshi Kitano)
866 - tests added for this
867 - NOTE: this only works for classes, it
868 is currently not supported in roles,
869 but, ... patches welcome
870 - All usage of Carp::confess have been replaced
871 by Carp::croak in the "keyword" functions since
872 the stack trace is usually not helpful
875 - All usage of Carp::confess have been replaced
876 by Carp::croak in the "keyword" functions since
877 the stack trace is usually not helpful
878 - The 'has' keyword for roles now accepts the
879 same array ref form that Moose.pm does
880 (has [qw/foo bar/] => (is => 'rw', ...))
881 - added test for this
883 * Moose::Meta::Attribute
884 - trigger on a ro-attribute is no longer an
885 error, as it's useful to trigger off of the
889 - added same 'add_package_symbol' fix as in
893 - does_role now handles non-Moose classes
895 - added tests for this
896 - added the 'add_method_modifier' function
897 (thanks to Takatoshi Kitano)
899 * Moose::Util::TypeConstraints
900 - subtypes of parameterizable types now are
901 themselves parameterizable types
903 * Moose::Meta::Method::Constructor
904 - fixed bug where trigger was not being
905 called by the inlined immutable
907 - added test for this (thanks to Caelum)
909 * Moose::Meta::Role::Application::ToInstance
910 - now uses the metaclass of the instance
911 (if possible) to create the anon-class
912 (thanks Jonathan Rockway)
914 * Moose::Cookbook::Recipe22
915 - added the meta-attribute trait recipe
919 - fixed hash-ordering test bug that was
920 causing occasional cpantester failures
921 - renamed the t/000_recipe/*.t tests to be
922 more descriptive (thanks to Sartak)
924 0.44 Sat. May 10, 2008
926 - made make_immutable warning cluck to
927 show where the error is (thanks mst)
930 - BUILDALL and DEMOLISHALL now call
931 ->body when looping through the
932 methods, to avoid the overloaded
934 - fixed issue where DEMOLISHALL was
935 eating the $@ values, and so not
936 working correctly, it still kind of
937 eats them, but so does vanilla perl
938 - added tests for this
940 * Moose::Cookbook::Recipe7
941 - added new recipe for immutable
942 functionality (thanks Dave Rolsky)
944 * Moose::Cookbook::Recipe9
945 - added new recipe for builder and
946 lazy_build (thanks Dave Rolsky)
948 * Moose::Cookbook::Recipe11
949 - added new recipe for method aliasing
950 and exclusion with Roles (thanks Dave Rolsky)
953 - fixed Win32 test failure (thanks spicyjack)
955 ~ removed Build.PL and Module::Build compat
956 since Module::Install has done that.
958 0.43 Wed. April, 30, 2008
960 drink more coffee before
961 doing release engineering
963 - whoops, forgot to do the smolder tests,
964 and we broke some of the custom meta-attr
965 modules. This fixes that.
967 0.42 Mon. April 28, 2008
968 - some bad tests slipped by, nothing else
969 changed in this release (cpantesters++)
971 - upped the Class::MOP dependency to 0.55
972 since we have tests which need the C3
975 0.41 Mon. April 28, 2008
976 ~~ numerous documentation updates ~~
978 - Changed all usage of die to Carp::croak for better
979 error reporting (initial patch by Tod Hagan)
982 - the make_immutable keyword is now deprecated, don't
983 use it in any new code and please fix your old code
984 as well. There will be 2 releases, and then it will
990 - refactored the way inner and super work to avoid
991 any method/@ISA cache penalty (nothingmuch)
994 - fixing &new_object to make sure trigger gets the
995 coerced value (spotted by Charles Alderman on the
997 - added test for this
999 * Moose::Meta::Method::Constructor
1000 - immutable classes which had non-lazy attributes were calling
1001 the default generating sub twice in the constructor. (bug
1002 found by Jesse Luehrs, fixed by Dave Rolsky)
1003 - added tests for this (Dave Rolsky)
1004 - fix typo in initialize_body method (nothingmuch)
1006 * Moose::Meta::Method::Destructor
1007 - fix typo in initialize_body method (nothingmuch)
1009 * Moose::Meta::Method::Overriden
1010 Moose::Meta::Method::Augmented
1011 - moved the logic for these into their own
1012 classes (nothingmuch)
1014 * Moose::Meta::Attribute
1015 - inherited attributes may now be extended without
1016 restriction on the type ('isa', 'does') (Sartak)
1017 - added tests for this (Sartak)
1018 - when an attribute property is malformed (such as lazy without
1019 a default), give the name of the attribute in the error
1021 - added the &applied_traits and &has_applied_traits methods
1022 to allow introspection of traits
1023 - added tests for this
1024 - moved 'trait' and 'metaclass' argument handling to here from
1026 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1027 '+foo' syntax) (nothingmuch)
1028 - added tests for this (t0m)
1031 - localize $@ inside DEMOLISHALL to avoid it
1032 eating $@ (found by Ernesto)
1033 - added test for this (thanks to Ernesto)
1035 * Moose::Util::TypeConstraints
1036 - &find_type_constraint now DWIMs when given an
1037 type constraint object or name (nothingmuch)
1038 - &find_or_create_type_constraint superseded with a number of more
1040 - find_or_create_{isa,does}_type_constraint
1041 - find_or_parse_type_constraint
1043 * Moose::Meta::TypeConstraint
1044 Moose::Meta::TypeConstraint::Class
1045 Moose::Meta::TypeConstraint::Role
1046 Moose::Meta::TypeConstraint::Enum
1047 Moose::Meta::TypeConstraint::Union
1048 Moose::Meta::TypeConstraint::Parameterized
1049 - added the &equals method for comparing two type
1050 constraints (nothingmuch)
1051 - added tests for this (nothingmuch)
1053 * Moose::Meta::TypeConstraint
1054 - add the &parents method, which is just an alias to &parent.
1055 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1057 * Moose::Meta::TypeConstraint::Class
1058 - added the class attribute for introspection purposes
1060 - added tests for this
1062 * Moose::Meta::TypeConstraint::Enum
1063 Moose::Meta::TypeConstraint::Role
1064 - broke these out into their own classes (nothingmuch)
1066 * Moose::Cookbook::Recipe*
1067 - fixed references to test file locations in the POD
1068 and updated up some text for new Moose features
1072 - Added &resolve_metaclass_alias, a helper function for finding an actual
1073 class for a short name (e.g. in the traits list)
1075 0.40 Fri. March 14, 2008
1076 - I hate Pod::Coverage
1078 0.39 Fri. March 14, 2008
1080 - documenting the use of '+name' with attributes
1081 that come from recently composed roles. It makes
1082 sense, people are using it, and so why not just
1083 officially support it.
1084 - fixing the 'extends' keyword so that it will not
1085 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1088 - added the perl -Moose=+Class::Name feature to allow
1089 monkeypatching of classes in one liners
1092 - fixing the 'apply_all_roles' keyword so that it will not
1093 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1095 * Moose::Meta::Class
1096 - added ->create method which now supports roles (thanks to jrockway)
1097 - added tests for this
1098 - added ->create_anon_class which now supports roles and caching of
1099 the results (thanks to jrockway)
1100 - added tests for this
1101 - made ->does_role a little more forgiving when it is
1102 checking a Class::MOP era metaclasses.
1104 * Moose::Meta::Role::Application::ToInstance
1105 - it is now possible to pass extra params to be used when
1106 a role is applied to an the instance (rebless_params)
1107 - added tests for this
1109 * Moose::Util::TypeConstraints
1110 - class_type now accepts an optional second argument for a
1111 custom message. POD anotated accordingly (groditi)
1112 - added tests for this
1113 - it is now possible to make anon-enums by passing 'enum' an
1114 ARRAY ref instead of the $name => @values. Everything else
1116 - added tests for this
1119 - making test for using '+name' on attributes consumed
1120 from a role, it works and makes sense too.
1122 * Moose::Meta::Attribute
1123 - fix handles so that it doesn't return nothing
1124 when the method cannot be found, not sure why
1125 it ever did this originally, this means we now
1126 have slightly better support for AUTOLOADed
1128 - added more delegation tests
1129 - adding ->does method to this so as to better
1130 support traits and their introspection.
1131 - added tests for this
1134 - localizing the Data::Dumper configurations so
1135 that it does not pollute others (RT #33509)
1136 - made ->does a little more forgiving when it is
1137 passed Class::MOP era metaclasses.
1139 0.38 Fri. Feb. 15, 2008
1140 * Moose::Meta::Attribute
1141 - fixed initializer to correctly do
1142 type checking and coercion in the
1144 - added tests for this
1147 - fixed some finicky tests (thanks to konobi)
1149 0.37 Thurs. Feb. 14, 2008
1151 - fixed some details in Moose::init_meta
1152 and its superclass handling (thanks thepler)
1153 - added tests for this (thanks thepler)
1154 - 'has' now dies if you don't pass in name
1156 - added the 'make_immutable' keyword as a shortcut
1159 * Moose::Meta::Class
1160 Moose::Meta::Method::Constructor
1161 Moose::Meta::Attribute
1162 - making (init_arg => undef) work here too
1163 (thanks to nothingmuch)
1165 * Moose::Meta::Attribute
1166 Moose::Meta::Method::Constructor
1167 Moose::Meta::Method::Accessor
1168 - make lazy attributes respect attr initializers (rjbs)
1169 - added tests for this
1171 * Moose::Util::TypeConstraints
1172 Moose::Util::TypeConstraints::OptimizedConstraints
1173 Moose::Meta::TypeConstraints
1174 Moose::Meta::Attribute
1175 Moose::Meta::Method::Constructor
1176 Moose::Meta::Method::Accessor
1177 - making type errors use the
1178 assigned message (thanks to Sartak)
1179 - added tests for this
1181 * Moose::Meta::Method::Destructor
1182 - making sure DESTROY gets inlined properly
1183 with successive DEMOLISH calls (thanks to manito)
1185 * Moose::Meta::Attribute
1186 Moose::Meta::Method::Accessor
1187 - fixed handling of undef with type constraints
1189 - added tests for this
1192 - added &get_all_init_args and &get_all_attribute_values
1193 (thanks to Sartak and nothingmuch)
1195 0.36 Sat. Jan. 26, 2008
1197 Moose::Meta::Attribute
1198 - role type tests now support when roles are
1199 applied to non-Moose classes (found by ash)
1200 - added tests for this (thanks to ash)
1201 - couple extra tests to boost code coverage
1203 * Moose::Meta::Method::Constructor
1204 - improved fix for handling Class::MOP attributes
1205 - added test for this
1207 * Moose::Meta::Class
1208 - handled the add_attribute($attribute_meta_object)
1210 - added test for this
1212 0.35 Tues. Jan. 22, 2008
1213 * Moose::Meta::Method::Constructor
1214 - fix to make sure even Class::MOP attributes
1215 are handled correctly (Thanks to Dave Rolsky)
1216 - added test for this (also Dave Rolsky)
1218 * Moose::Meta::Class
1219 - improved error message on _apply_all_roles,
1220 you should now use Moose::Util::apply_all_roles
1221 and you shouldnt have been using a _ prefixed
1222 method in the first place ;)
1224 0.34 Mon. Jan. 21, 2008
1225 ~~~ more misc. doc. fixes ~~~
1226 ~~ updated copyright dates ~~
1228 Moose is now a postmodern object system :)
1229 - (see the POD for details)
1231 * <<Role System Refactoring>>
1232 - this release contains a major reworking and
1233 cleanup of the role system
1234 - 100% backwards compat.
1235 - Role application now restructured into seperate
1236 classes based on type of applicants
1237 - Role summation (combining of more than one role)
1238 is much cleaner and anon-classes are no longer
1239 used in this process
1240 - new Composite role metaclass
1241 - runtime application of roles to instances
1242 is now more efficient and re-uses generated
1243 classes when applicable
1245 * <<New Role composition features>>
1246 - methods can now be excluded from a given role
1248 - methods can now be aliased to another name (and
1249 still retain the original as well)
1251 * Moose::Util::TypeConstraints::OptimizedConstraints
1252 - added this module (see above)
1254 * Moose::Meta::Class
1255 - fixed the &_process_attribute method to be called
1256 by &add_attribute, so that the API is now correct
1258 * Moose::Meta::Method::Accessor
1259 - fixed bug when passing a list of values to
1260 an accessor would get (incorrectly) ignored.
1261 Thanks to Sartak for finding this ;)
1262 - added tests for this (Sartak again)
1264 * Moose::Meta::Method::Accessor
1265 Moose::Meta::Method::Constructor
1266 Moose::Meta::Attribute
1267 Moose::Meta::TypeConstraint
1268 Moose::Meta::TypeCoercion
1269 - lots of cleanup of such things as:
1271 - type constraint handling
1272 - error handling/messages
1273 (thanks to nothingmuch)
1275 * Moose::Meta::TypeConstraint::Parameterizable
1276 - added this module to support the refactor
1277 in Moose::Meta::TypeConstraint::Parameterized
1279 * Moose::Meta::TypeConstraint::Parameterized
1280 - refactored how these types are handled so they
1281 are more generic and not confined to ArrayRef
1285 - shortened some file names for better VMS support (RT #32381)
1287 0.33 Fri. Dec. 14, 2007
1288 !! Moose now loads 2 x faster !!
1289 !! with new Class::MOP 0.49 !!
1291 ++ new oose.pm module to make command line
1292 Moose-ness easier (see POD docs for more)
1294 * Moose::Meta::Class
1296 - several tweaks to take advantage of the
1297 new method map caching in Class::MOP
1299 * Moose::Meta::TypeConstraint::Parameterized
1300 - allow subtypes of ArrayRef and HashRef to
1301 be used as a container (sartak)
1302 - added tests for this
1303 - basic support for coercion to ArrayRef and
1304 HashRef for containers (sartak)
1305 - added tests for this
1307 * Moose::Meta::TypeCoercion
1308 - coercions will now create subtypes as needed
1309 so you can now add coercions to parameterized
1310 types without having to explictly define them
1311 - added tests for this
1313 * Moose::Meta::Method::Accessor
1314 - allow subclasses to decide whether we need
1315 to copy the value into a new variable (sartak)
1317 0.32 Tues. Dec. 4, 2007
1318 * Moose::Util::TypeConstraints
1319 - fixing how subtype aliases of unions work
1320 they should inherit the parent's coercion
1321 - added tests for this
1322 - you can now define multiple coercions on
1323 a single type at different times instead of
1324 having to do it all in one place
1325 - added tests for this
1327 * Moose::Meta::TypeConstraint
1328 - there is now a default constraint of sub { 1 }
1329 instead of Moose::Util::TypeConstraints setting
1332 * Moose::Meta::TypeCoercion
1333 * Moose::Meta::TypeCoercion::Union
1334 - added the &has_coercion_for_type and
1335 &add_type_coercions methods to support the
1336 new features above (although you cannot add
1337 more type coercions for Union types)
1339 0.31 Mon. Nov. 26, 2007
1340 * Moose::Meta::Attribute
1341 - made the +attr syntax handle extending types with
1342 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1343 now works if the original foo is an ArrayRef.
1344 - added tests for this.
1345 - delegation now works even if the attribute does not
1346 have a reader method using the get_read_method_ref
1347 method from Class::MOP::Attribute.
1348 - added tests for this
1349 - added docs for this
1351 * Moose::Util::TypeConstraints
1352 - passing no "additional attribute info" to
1353 &find_or_create_type_constraint will no longer
1354 attempt to create an __ANON__ type for you,
1355 instead it will just return undef.
1356 - added docs for this
1358 0.30 Fri. Nov. 23, 2007
1359 * Moose::Meta::Method::Constructor
1360 -builder related bug in inlined constructor. (groditi)
1362 * Moose::Meta::Method::Accessor
1363 - genereate unnecessary calls to predicates and refactor
1364 code generation for runtime speed (groditi)
1366 * Moose::Util::TypeConstraints
1367 - fix ClassName constraint to introspect symbol table (mst)
1368 - added more tests for this (mst)
1369 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1370 with work correctly.
1371 - added tests for this
1374 - adding the link to Recipie 11 (written by Sartak)
1375 - adding test for SYNOPSIS code
1378 - New tests for builder bug. Upon instantiation, if an
1379 attribute had a builder, no value and was not lazy the
1380 builder default was not getting run, oops. (groditi)
1382 0.29 Tues. Nov. 13, 2007
1383 * Moose::Meta::Attribute
1384 - Fix error message on missing builder method (groditi)
1386 * Moose::Meta::Method::Accessor
1387 - Fix error message on missing builder method (groditi)
1390 - Add test to check for the correct error message when
1391 builder method is missing (groditi)
1393 0.28 Tues. Nov. 13, 2007
1394 - 0.27 packaged incorrectly (groditi)
1396 0.27 Tues. Nov. 13, 2007
1397 * Moose::Meta::Attribute
1398 - Added support for the new builder option (groditi)
1399 - Added support for lazy_build option (groditi)
1400 - Changed slot initialization for predicate changes (groditi)
1402 * Moose::Meta::Method::Accessor
1403 - Added support for lazy_build option (groditi)
1404 - Fix inline methods to work with corrected predicate
1407 * Moose::Meta::Method::Constructor
1408 - Added support for lazy_build option (groditi)
1411 - tests for builder and lazy_build (groditi)
1413 * fixing some misc. bits in the docs that
1414 got mentioned on CPAN Forum & perlmonks
1417 - fixed how required methods are handled
1418 when they encounter overriden or modified
1419 methods from a class (thanks to confound).
1420 - added tests for this
1422 * Moose::Util::TypeConstraint
1423 - fixed the type notation parser so that
1424 the | always creates a union and so is
1425 no longer a valid type char (thanks to
1426 konobi, mugwump and #moose for working
1428 - added more tests for this
1430 0.26 Thurs. Sept. 27, 2007
1433 * Parameterized Types
1434 We now support parameterized collection types, such as:
1435 ArrayRef[Int] # array or integers
1436 HashRef[Object] # a hash with object values
1437 They can also be nested:
1438 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1439 And work with the type unions as well:
1440 ArrayRef[Int | Str] # array of integers of strings
1442 * Better Framework Extendability
1443 Moose.pm is now "extendable" such that it is now much
1444 easier to extend the framework and add your own keywords
1445 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1446 section of the Moose.pm docs.
1449 In an effort to begin documenting some of the various
1450 details of Moose as well as some common idioms, we have
1451 created Moose::Cookbook::Snacks as a place to find
1452 small (easily digestable) nuggets of Moose code.
1455 ~ Several doc updates/cleanup thanks to castaway ~
1457 - converted build system to use Module::Install instead of
1458 Module::Build (thanks to jrockway)
1461 - added all the meta classes to the immutable list and
1462 set it to inline the accessors
1463 - fix import to allow Sub::Exporter like { into => }
1464 and { into_level => } (perigrin)
1465 - exposed and documented init_meta() to allow better
1466 embedding and extending of Moose (perigrin)
1469 - complete re-organization of the test suite
1470 - added some new tests as well
1471 - finally re-enabled the Moose::POOP test since
1472 the new version of DBM::Deep now works again
1475 * Moose::Meta::Class
1476 - fixed very odd and very nasty recursion bug with
1478 - added tests for this (eilara)
1480 * Moose::Meta::Attribute
1481 Moose::Meta::Method::Constructor
1482 Moose::Meta::Method::Accessor
1483 - fixed issue with overload::Overloaded getting called
1484 on non-blessed items. (RT #29269)
1485 - added tests for this
1487 * Moose::Meta::Method::Accessor
1488 - fixed issue with generated accessor code making
1489 assumptions about hash based classes (thanks to dexter)
1491 * Moose::Coookbook::Snacks
1492 - these are bits of documentation, not quite as big as
1493 Recipes but which have no clear place in the module docs.
1494 So they are Snacks! (horray for castaway++)
1496 * Moose::Cookbook::Recipe4
1497 - updated it to use the new ArrayRef[MyType] construct
1498 - updated the accompanying test as well
1500 +++ Major Refactor of the Type Constraint system +++
1501 +++ with new features added as well +++
1503 * Moose::Util::TypeConstraint
1504 - no longer uses package variable to keep track of
1505 the type constraints, now uses the an instance of
1506 Moose::Meta::TypeConstraint::Registry to do it
1507 - added more sophisticated type notation parsing
1509 - added tests for this
1511 * Moose::Meta::TypeConstraint
1512 - some minor adjustments to make subclassing easier
1513 - added the package_defined_in attribute so that we
1514 can track where the type constraints are created
1516 * Moose::Meta::TypeConstraint::Union
1517 - this is now been refactored to be a subclass of
1518 Moose::Meta::TypeConstraint
1520 * Moose::Meta::TypeCoercion::Union
1521 - this has been added to service the newly refactored
1522 Moose::Meta::TypeConstraint::Union and is itself
1523 a subclass of Moose::Meta::TypeCoercion
1525 * Moose::Meta::TypeConstraint::Parameterized
1526 - added this module (taken from MooseX::AttributeHelpers)
1527 to help construct nested collection types
1528 - added tests for this
1530 * Moose::Meta::TypeConstraint::Registry
1531 - added this class to keep track of type constraints
1533 0.25 Mon. Aug. 13, 2007
1535 - Documentation update to reference Moose::Util::TypeConstraints
1536 under 'isa' in 'has' for how to define a new type
1537 (thanks to shlomif).
1539 * Moose::Meta::Attribute
1540 - required attributes now will no longer accept undef
1541 from the constructor, even if there is a default and lazy
1542 - added tests for this
1543 - default subroutines must return a value which passes the
1545 - added tests for this
1547 * Moose::Meta::Attribute
1548 * Moose::Meta::Method::Constructor
1549 * Moose::Meta::Method::Accessor
1550 - type-constraint tests now handle overloaded objects correctly
1551 in the error message
1552 - added tests for this (thanks to EvanCarroll)
1554 * Moose::Meta::TypeConstraint::Union
1555 - added (has_)hand_optimized_constraint to this class so that
1556 it behaves as the regular Moose::Meta::TypeConstraint does.
1559 - large refactoring of this code
1560 - added several more tests
1561 - tests for subtle conflict resolition issues
1562 added, but not currently running
1565 * Moose::Cookbook::Recipe7
1566 - added new recipe for augment/inner functionality
1568 - added test for this
1571 - a formal definition of roles (still in progress)
1574 - utilities for easier working with Moose classes
1575 - added tests for these
1578 - This contains Moose specific test functions
1579 - added tests for these
1581 0.24 Tues. July 3, 2007
1582 ~ Some doc updates/cleanup ~
1584 * Moose::Meta::Attribute
1585 - added support for roles to be given as parameters
1586 to the 'handles' option.
1587 - added tests and docs for this
1588 - the has '+foo' attribute form now accepts changes to
1589 the lazy option, and the addition of a handles option
1590 (but not changing the handles option)
1591 - added tests and docs for this
1594 - required methods are now fetched using find_method_by_name
1595 so that required methods can come from superclasses
1596 - adjusted tests for this
1598 0.23 Mon. June 18, 2007
1599 * Moose::Meta::Method::Constructor
1600 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1601 * Moose::Meta::Class
1602 - Modify make_immutable to work with the new Class::MOP immutable
1603 mechanism + POD + very basic test (groditi)
1604 * Moose::Meta::Attribute
1605 - Fix handles to use goto() so that caller() comes out properly on
1606 the other side (perigrin)
1608 0.22 Thurs. May 31, 2007
1609 * Moose::Util::TypeConstraints
1610 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1611 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1612 prototypes for functions
1613 - added the ClassName type constraint, this checks for strings
1614 which will respond true to ->isa(UNIVERSAL).
1615 - added tests and docs for this
1616 - subtyping just in name now works correctly by making the
1617 default for where be { 1 }
1618 - added test for this
1620 * Moose::Meta::Method::Accessor
1621 - coerce and lazy now work together correctly, thanks to
1622 merlyn for finding this bug
1623 - tests added for this
1624 - fix reader presedence bug in Moose::Meta::Attribute + tests
1627 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1628 a HASH-ref and missed. This produces better error messages then
1629 having it die cause undef is not a HASH.
1630 - added tests for this
1632 0.21 Thursday, May 2nd, 2007
1634 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1635 - modified unimport to remove super and inner along with the rest
1636 - altered unimport tests to handle this
1639 - altered super export to populate SUPER_SLOT
1641 * Moose::Meta::Class
1642 - altered augment and override modifier application to use *_SLOT
1643 - modified tests for these to unimport one test class each to test
1646 - fixed issue where custom attribute metaclasses
1647 where not handled correctly in roles
1648 - added tests for this
1650 * Moose::Meta::Class
1651 - fixed issue where extending metaclasses with
1652 roles would blow up. Thanks to Aankhen`` for
1653 finding this insidious error, and it's solution.
1655 ~~ lots of spelling and grammer fixes in the docs,
1656 many many thanks to rlb3 and Aankhen for these :)
1658 0.20 Friday, April 6th, 2007
1659 >> I messed up the SKIP logic in one test
1660 so this release is just to fix that.
1663 - 'has' now also accepts an ARRAY ref
1664 to create multiple attrs (see docs)
1665 (thanks to konobi for this)
1666 - added tests and docs
1668 0.19 Thurs. April 5th, 2007
1669 ~~ More documentation updates ~~
1671 * Moose::Util::TypeConstraints
1672 - 'type' now supports messages as well
1673 thanks to phaylon for finding this
1674 - added tests for this
1675 - added &list_all_type_constraints and
1676 &list_all_builtin_type_constraints
1677 functions to facilitate introspection.
1679 * Moose::Meta::Attribute
1680 - fixed regexp 'handles' declarations
1681 to build the list of delegated methods
1682 correctly (and not override important
1683 things like &new) thanks to ashleyb
1685 - added tests and docs for this
1686 - added the 'documentation' attributes
1687 so that you can actually document your
1688 attributes and inspect them through the
1690 - added tests and docs for this
1692 * Moose::Meta::Class
1693 - when loading custom attribute metaclasses
1694 it will first look in for the class in the
1695 Moose::Meta::Attribute::Custom::$name, and
1696 then default to just loading $name.
1697 - added tests and docs for this
1699 * Moose::Meta::TypeConstraint
1700 - type constraints now stringify to their names.
1701 - added test for this
1704 - added tests to assure we work with Module::Refresh
1705 - added stricter test skip logic in the Moose POOP
1706 test, ask Rob Kinyon why.
1707 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1709 0.18 Sat. March 10, 2007
1710 ~~ Many, many documentation updates ~~
1713 - We now use Class::MOP::load_class to
1715 - added tests to show types and subtypes
1716 working with Declare::Constraints::Simple
1717 and Test::Deep as constraint engines.
1720 !! You must have Class::MOP 0.37_001 !!
1721 !! for this developer release to work !!
1723 This release was primarily adding the immutable
1724 feature to Moose. An immutable class is one which
1725 you promise not to alter. When you set the class
1726 as immutable it will perform various bits of
1727 memoization and inline certain part of the code
1728 (constructors, destructors and accessors). This
1729 minimizes (and in some cases totally eliminates)
1730 one of Moose's biggest performance hits. This
1731 feature is not on by default, and is 100% optional.
1732 It has several configurable bits as well, so you
1733 can pick and choose to your specific needs.
1735 The changes involved in this were fairly wide and
1736 highly specific, but 100% backwards compatible, so
1737 I am not going to enumerate them here. If you are
1738 truely interested in what was changed, please do
1741 0.17 Tues. Nov. 14, 2006
1742 * Moose::Meta::Method::Accessor
1743 - bugfix for read-only accessors which
1744 are have a type constraint and lazy.
1745 Thanks to chansen for finding it.
1747 0.16 Tues. Nov. 14, 2006
1749 There are some speed improvements in this release,
1750 but they are only the begining, so stay tuned.
1753 - BUILDALL and DEMOLISHALL no longer get
1754 called unless they actually need to be.
1755 This gave us a signifigant speed boost
1756 for the cases when there is no BUILD or
1757 DEMOLISH method present.
1759 * Moose::Util::TypeConstraints
1760 * Moose::Meta::TypeConstraint
1761 - added an 'optimize_as' option to the
1762 type constraint, which allows for a
1763 hand optimized version of the type
1764 constraint to be used when possible.
1765 - Any internally created type constraints
1766 now provide an optimized version as well.
1768 0.15 Sun. Nov. 5, 2006
1770 This version of Moose *must* have Class::MOP 0.36 in order
1771 to work correctly. A number of small internal tweaks have
1772 been made in order to be compatible with that release.
1774 * Moose::Util::TypeConstraints
1775 - added &unimport so that you can clean out
1776 your class namespace of these exported
1779 * Moose::Meta::Class
1780 - fixed minor issue which occasionally
1781 comes up during global destruction
1783 - moved Moose::Meta::Method::Overriden into
1787 - moved Moose::Meta::Role::Method into
1790 * Moose::Meta::Attribute
1791 - changed how we do type checks so that
1792 we reduce the overall cost, but still
1795 - moved accessor generation methods to
1796 Moose::Meta::Method::Accessor to
1797 conform to the API changes from
1800 * Moose::Meta::TypeConstraint
1801 - changed how constraints are compiled
1802 so that we do less recursion and more
1803 iteration. This makes the type check
1805 - moved Moose::Meta::TypeConstraint::Union
1808 * Moose::Meta::Method::Accessor
1809 - created this from methods formerly found in
1810 Moose::Meta::Attribute
1812 * Moose::Meta::Role::Method
1813 - moved this from Moose::Meta::Role
1815 * Moose::Meta::Method::Overriden
1816 - moved this from Moose::Meta::Class
1818 * Moose::Meta::TypeConstraint::Union
1819 - moved this from Moose::Meta::TypeConstraint
1821 0.14 Mon. Oct. 9, 2006
1823 * Moose::Meta::Attribute
1824 - fixed lazy attributes which were not getting
1825 checked with the type constraint (thanks ashley)
1826 - added tests for this
1827 - removed the over-enthusiastic DWIMery of the
1828 automatic ArrayRef and HashRef defaults, it
1829 broke predicates in an ugly way.
1830 - removed tests for this
1832 0.13 Sat. Sept. 30, 2006
1834 This version of Moose *must* have Class::MOP 0.35 in order
1835 to work correctly. A number of small internal tweaks have
1836 been made in order to be compatible with that release.
1839 - Removed the use of UNIVERSAL::require to be a better
1840 symbol table citizen and remove a dependency
1841 (thanks Adam Kennedy)
1843 **~~ removed experimental & undocumented feature ~~**
1844 - commented out the 'method' and 'self' keywords, see the
1845 comments for more info.
1848 - added a FAQ and WTF files to document frequently
1849 asked questions and common problems
1851 * Moose::Util::TypeConstraints
1852 - added GlobRef and FileHandle type constraint
1853 - added tests for this
1855 * Moose::Meta::Attribute
1856 - if your attribute 'isa' ArrayRef of HashRef, and you have
1857 not explicitly set a default, then make the default DWIM.
1858 This will also work for subtypes of ArrayRef and HashRef
1860 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1861 - new test added for this (thanks to ashley)
1864 - added basic support for runtime role composition
1865 but this is still *highly experimental*, so feedback
1866 is much appreciated :)
1867 - added tests for this
1869 * Moose::Meta::TypeConstraint
1870 - the type constraint now handles the coercion process
1871 through delegation, this is to support the coercion
1874 * Moose::Meta::TypeConstraint::Union
1875 - it is now possible for coercions to be performed
1877 - added tests for this (thanks to konobi)
1879 * Moose::Meta::TypeCoercion
1880 - properly capturing error when type constraint
1884 - Scalar::Util 1.18 is bad on Win32, so temporarily
1885 only require version 1.17 for Win32 and cygwin.
1886 (thanks Adam Kennedy)
1888 0.12 Sat. Sept. 1, 2006
1890 - Recipe5 (subtypes & coercion) has been written
1893 - fixed "bad meta" error message to be more descriptive
1894 - fixed &unimport to not remove the &inner and &super
1895 keywords because we need to localize them.
1896 - fixed number of spelling/grammer issues, thanks Theory :)
1898 **~~ experimental & undocumented feature ~~**
1899 - added the method and self keywords, they are basically
1900 just sugar, and they may not stay around.
1903 - added &dump method to easily Data::Dumper
1906 * Moose::Meta::TypeConstraint
1907 - added the &is_a_type_of method to check both the current
1908 and the subtype of a method (similar to &isa with classes)
1911 - this is now a subclass of Class::MOP::Module, and no longer
1912 creates the _role_meta ugliness of before.
1913 - fixed tests to reflect this change
1915 0.11 Wed. July 12, 2006
1917 - added an &unimport method to remove all the keywords
1918 that Moose will import, simply add 'no Moose' to the
1919 bottom of your class file.
1922 - fixed some test failures caused by a forgotten test
1925 0.10 Thurs. July 6, 2006
1927 - improved error message when loading modules so
1928 it is less confusing when you load a role.
1929 - added &calculate_all_roles method to
1930 Moose::Meta::Class and Moose::Meta::Role
1933 This module has been tested against Class::MOP 0.30
1934 but it does not yet utilize the optimizations
1935 it makes available. Stay tuned for that ;)
1937 0.09_03 Fri. June 23, 2006
1938 ++ DEVELOPER RELEASE ++
1940 - 'use strict' and 'use warnings' are no longer
1941 needed in Moose classes, Moose itself will
1942 turn them on for you.
1943 - added tests for this
1944 - moved code from exported subs to private methods
1945 in Moose::Meta::Class
1948 - as with Moose, strict and warnings are
1949 automatically turned on for you.
1950 - added tests for this
1953 - now handles an edge case for override errors
1954 - added tests for this
1955 - added some more edge case tests
1957 0.09_02 Tues. May 16, 2006
1958 ++ DEVELOPER RELEASE ++
1960 - added prototypes to the exported subs
1964 - added prototypes to the exported subs
1967 * Moose::Util::TypeConstraints
1968 - cleaned up prototypes for the subs
1971 0.09_01 Fri. May 12, 2006
1972 ++ DEVELOPER RELEASE ++
1973 - This release works in combination with
1974 Class::MOP 0.29_01, it is a developer
1975 release because it uses the a new
1976 instance sub-protocol and a fairly
1977 complete Role implementation. It has
1978 not yet been optimized, so it slower
1979 the the previous CPAN version. This
1980 release also lacks good updated docs,
1981 the official release will have updated docs.
1984 - refactored the keyword exports
1985 - 'with' now checks Role validaity and
1986 accepts more than one Role at a time
1987 - 'extends' makes metaclass adjustments as
1988 needed to ensure metaclass compatibility
1991 - refactored the keyword exports
1992 - 'with' now checks Role validaity and
1993 accepts more than one Role at a time
1995 * Moose::Util::TypeConstraints
1996 - added the 'enum' keyword for simple
1997 string enumerations which can be used as
1999 - see example of usage in t/202_example.t
2002 - more careful checking of params to new()
2005 - much work done on the role composition
2006 - many new tests for conflict detection
2007 and composition edge cases
2008 - not enough documentation, I suggest
2009 looking at the tests
2011 * Moose::Meta::Instance
2012 - added new Instance metaclass to support
2013 the new Class::MOP instance protocol
2015 * Moose::Meta::Class
2016 - some small changes to support the new
2018 - some small additions to support Roles
2020 * Moose::Meta::Attribute
2021 - some improvements to the accessor generation code
2023 - some small changes to support the new
2025 - (still somewhat) experimental delegation support
2026 with the 'handles' option
2027 - added several tests for this
2028 - no docs for this yet
2030 0.05 Thurs. April 27, 2006
2032 - keywords are now exported with Sub::Exporter
2033 thanks to chansen for this commit
2034 - has keyword now takes a 'metaclass' option
2035 to support custom attribute meta-classes
2036 on a per-attribute basis
2037 - added tests for this
2038 - the 'has' keyword not accepts inherited slot
2039 specifications (has '+foo'). This is still an
2040 experimental feature and probably not finished
2041 see t/038_attribute_inherited_slot_specs.t for
2042 more details, or ask about it on #moose
2043 - added tests for this
2046 - keywords are now exported with Sub::Exporter
2048 * Moose::Utils::TypeConstraints
2049 - reorganized the type constraint hierarchy, thanks
2050 to nothingmuch and chansen for his help and advice
2052 - added some tests for this
2053 - keywords are now exported with Sub::Exporter
2054 thanks to chansen for this commit
2056 * Moose::Meta::Class
2057 - due to changes in Class::MOP, we had to change
2058 construct_instance (for the better)
2060 * Moose::Meta::Attribute
2061 - due to changes in Class::MOP, we had to add the
2062 initialize_instance_slot method (it's a good thing)
2064 * Moose::Meta::TypeConstraint
2065 - added type constraint unions
2066 - added tests for this
2067 - added the is_subtype_of predicate method
2068 - added tests for this
2070 0.04 Sun. April 16th, 2006
2072 - Roles can now consume other roles
2073 - added tests for this
2074 - Roles can specify required methods now with
2075 the requires() keyword
2076 - added tests for this
2079 - ripped out much of it's guts ,.. much cleaner now
2080 - added required methods and correct handling of
2081 them in apply() for both classes and roles
2082 - added tests for this
2083 - no longer adds a does() method to consuming classes
2084 it relys on the one in Moose::Object
2085 - added roles attribute and some methods to support
2086 roles consuming roles
2088 * Moose::Meta::Attribute
2089 - added support for triggers on attributes
2090 - added tests for this
2091 - added support for does option on an attribute
2092 - added tests for this
2094 * Moose::Meta::Class
2095 - added support for attribute triggers in the
2097 - added tests for this
2100 - Moose no longer creates a subtype for your class
2101 if a subtype of the same name already exists, this
2102 should DWIM in 99.9999% of all cases
2104 * Moose::Util::TypeConstraints
2105 - fixed bug where incorrect subtype conflicts were
2107 - added test for this
2110 - this class can now be extended with 'use base' if
2111 you need it, it properly loads the metaclass class now
2112 - added test for this
2114 0.03_02 Wed. April 12, 2006
2116 - you must now explictly use Moose::Util::TypeConstraints
2117 it no longer gets exported for you automatically
2120 - new() now accepts hash-refs as well as key/value lists
2121 - added does() method to check for Roles
2122 - added tests for this
2124 * Moose::Meta::Class
2125 - added roles attribute along with the add_role() and
2127 - added tests for this
2130 - now adds a does() method to consuming classes
2131 which tests the class's hierarchy for roles
2132 - added tests for this
2134 0.03_01 Mon. April 10, 2006
2136 - added new Role recipe (no content yet, only code)
2139 - added 'with' keyword for Role support
2140 - added test and docs for this
2141 - fixed subtype quoting bug
2142 - added test for this
2146 - added test and docs
2148 * Moose::Util::TypeConstraints
2149 - added the message keyword to add custom
2150 error messages to type constraints
2153 - the meta role to support Moose::Role
2154 - added tests and docs
2156 * Moose::Meta::Class
2157 - moved a number of things from Moose.pm
2158 to here, they should have been here
2161 * Moose::Meta::Attribute
2162 - moved the attribute option macros here
2163 instead of putting them in Moose.pm
2165 * Moose::Meta::TypeConstraint
2166 - added the message attributes and the
2168 - added tests and docs for this
2170 0.03 Thurs. March 30, 2006
2172 - added the Moose::Cookbook with 5 recipes,
2173 describing all the stuff Moose can do.
2176 - fixed an issue with &extends super class loading
2177 it now captures errors and deals with inline
2178 packages correctly (bug found by mst, solution
2180 - added super/override & inner/augment features
2181 - added tests and docs for these
2184 - BUILDALL now takes a reference of the %params
2185 that are passed to &new, and passes that to
2188 * Moose::Util::TypeConstraints
2189 - Type constraints now survive runtime reloading
2190 - added test for this
2192 * Moose::Meta::Class
2193 - fixed the way attribute defaults are handled
2194 during instance construction (bug found by chansen)
2196 * Moose::Meta::Attribute
2197 - read-only attributes now actually enforce their
2198 read-only-ness (this corrected in Class::MOP as
2201 0.02 Tues. March 21, 2006
2203 - many more tests, fixing some bugs and
2205 - &extends now loads the base module with
2207 - added UNIVERSAL::require to the
2210 - each new Moose class will also create
2211 and register a subtype of Object which
2212 correspond to the new Moose class.
2213 - the 'isa' option in &has now only
2214 accepts strings, and will DWIM in
2217 * Moose::Util::TypeConstraints
2218 - added type coercion features
2219 - added tests for this
2220 - added support for this in attributes
2221 and instance construction
2223 - type construction no longer creates a
2224 function, it registers the type instead.
2225 - added several functions to get the
2229 - BUILDALL and DEMOLISHALL were broken
2230 because of a mis-named hash key, Whoops :)
2232 * Moose::Meta::Attribute
2233 - adding support for coercion in the
2234 autogenerated accessors
2236 * Moose::Meta::Class
2237 - adding support for coercion in the
2238 instance construction
2240 * Moose::Meta::TypeConstraint
2241 * Moose::Meta::TypeCoercion
2242 - type constraints and coercions are now
2243 full fledges meta-objects
2245 0.01 Wed. March 15, 2006
2246 - Moooooooooooooooooose!!!