1 Revision history for Perl extension Moose
3 See also Moose::Manual::Delta for more details of and workarounds
4 for noteworthy changes.
8 - Call user_class->meta in fewer places, with the eventual
9 goal of allowing the user to rename or exclude ->meta
10 altogether. Instead uses Class::MOP::class_of. (Sartak)
12 * Moose::Meta::Method::Accessor
13 - If an attribute had a lazy default, and that value did not
14 pass the attribute's type constraint, it did not get the
15 message from the type constraint, instead using a generic
16 message. Test provided by perigrin.
18 * Moose::Util::TypeConstraints
19 - Add duck_type keyword. It's sugar over making sure an object
20 can() a list of methods. This is easier than jrockway's suggestion
21 to fork all of CPAN. (perigrin)
22 - add tests and documentation (perigrin)
25 - Document the fact that init_meta() returns the target class' metaclass
26 object. (Dieter Pearcey)
28 * Moose::Cookbook::Extending::Recipe1
29 * Moose::Cookbook::Extending::Recipe2
30 * Moose::Cookbook::Extending::Recipe3
31 * Moose::Cookbook::Extending::Recipe4
32 - Make init_meta() examples explicitly return the metaclass and point out
33 this fact. (Dieter Pearcey)
36 0.73 Fri, March 29, 2009
37 * No changes from 0.72_01.
39 0.72_01 Thu, March 26, 2009
41 - Almost every module has complete API documentation. A few
42 methods (and even whole classes) have been intentionally
43 excluded pending some rethinking of their APIs.
45 * Moose::Util::TypeConstraints
46 - Calling subtype with a name as the only argument is now an
47 exception. If you want an anonymous subtype do:
49 my $subtype = subtype as 'Foo';
51 * Moose::Cookbook::Meta::Recipe7
52 - A new recipe, creating a custom meta-instance class.
54 * Moose::Cookbook::Basics::Recipe5
55 - Fix various typos and mistakes. Includes a patch from Radu
58 * Moose::Cookbook::Basics::Recipe9
59 - Link to this recipe from Moose.pm's builder blurb
62 - When wrapping a function with a prototype, Moose::Exporter now
63 makes sure the wrapped function still has the same
64 prototype. (Daisuke Maki)
66 * Moose::Meta::Attribute
67 - Allow a subclass to set lazy_build for an inherited
68 attribute. (Dieter Pearcey)
71 - Explicitly depend on Data::OptList. We already had this dependency
72 via Sub::Exporter, but since we're using it directly we're
73 better off with it listed. (Sartak)
75 * Moose::Meta::Method::Constructor
76 - Make it easier to subclass the inlining behaviour. (Ash
79 * Moose::Manual::Delta
80 - Details significant changes in the history of Moose, along
81 with recommended workarounds.
83 * Moose::Manual::Contributing
84 - Contributor's guide to Moose.
86 * Moose::Meta::Method::Constructor
87 - The long-deprecated intialize_body method has been removed
88 (yes, spelled like that).
90 * Moose::Meta::Method::Destructor
91 - This is_needed method is now always a class method.
94 - Changes to the internals of how make_immutable works to match
95 changes in latest Class::MOP.
97 0.72 Mon, February 23, 2009
99 * Moose::Meta::Method::Constructor
100 - A mutable class accepted Foo->new(undef) without complaint,
101 while an immutable class would blow up with an unhelpful
102 error. Now, in both cases we throw a helpful error
103 instead. Reported by doy.
105 0.71_01 Sun, February 22, 2009
107 - Hopefully fixed some POD errors in a few recipes that caused
108 them to display weird on search.cpan.org.
110 * Moose::Util::TypeConstraints
111 - Calling type or subtype without the sugar helpers (as, where,
112 message) is now deprecated.
113 - The subtype function tried hard to guess what you meant, but
114 often got it wrong. For example:
116 my $subtype = subtype as 'ArrayRef[Object]';
118 This caused an error in the past, but now works as you'd
122 - Make sure Moose.pm is loaded before calling
123 Moose->throw_error. This wasn't normally an issue, but could
124 bite you in weird cases.
126 0.71 Thu, February 19, 2009
127 * Moose::Cookbook::Basics::Recipe11
128 - A new recipe which demonstrates the use of BUILDARGS and
131 * Moose::Cookbook::Roles::Recipe3
132 - A new recipe, applying a role to an object instance. (Dave
136 - Allow overriding specific keywords from "also" packages. (doy)
139 - Replace hardcoded cookbook tests with Test::Inline to ensure
140 the tests match the actual code in the recipes. (Dave Rolsky)
143 - Working on the above turned up a number of little bugs in the
144 recipe code. (Dave Rolsky)
146 * Moose::Util::TypeConstraints::Optimized
147 - Just use Class::MOP for the optimized ClassName check. (Dave
150 0.70 Sat, February 14, 2009
151 * Moose::Util::TypeConstraints
152 - Added the RoleName type (stevan)
153 - added tests for this (stevan)
155 * Moose::Cookbook::Basics::Recipe3
156 - Updated the before qw[left right] sub to be a little more
157 defensive about what it accepts (stevan)
158 - added more tests to t/000_recipies/basics/003_binary_tree.t
162 - We now always call DEMOLISHALL, even if a class does not
163 define DEMOLISH. This makes sure that method modifiers on
164 DEMOLISHALL work as expected. (doy)
165 - added tests for this (EvanCarroll)
167 * Moose::Util::MetaRole
168 - Accept roles for the wrapped_method_metaclass (rafl)
169 - added tests for this (rafl)
171 * Moose::Meta::Attribute
172 - We no longer pass the meta-attribute object as a final
173 argument to triggers. This actually changed for inlined code a
174 while back, but the non-inlined version and the docs were
178 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
179 they require 0.11. (Dave Rolsky)
182 - Lots of small changes to the manual, cookbook, and
183 elsewhere. These were based on feedback from various
184 users, too many to list here. (Dave Rolsky)
186 0.69 Thu, February 12, 2009
188 - Make some keyword errors use throw_error instead of croak
189 since Moose::Exporter wraps keywords now (Sartak)
192 - Revised every recipe for style and clarity. Also moved some
193 documentation out of cookbook recipes and into Moose::Manual
194 pages. This work was funded as part of the Moose docs grant
195 from TPF. (Dave Rolsky)
197 * Moose::Meta::Method::Delegation
198 - If the attribute doing the delegation was not populated, the
199 error message did not specify the attribute name
202 0.68 Wed, February 4, 2009
204 - Many spelling, typo, and formatting fixes by daxim.
206 * Moose::Manual::Attributes
207 - The NAME section in the POD used "Attribute" so search.cpan
208 didn't resolve links from other documents properly.
210 * Moose::Meta::Method::Overriden
211 - Now properly spelled as Overridden. Thanks to daxim for
214 0.67 Tue, February 3, 2009
216 - Lots of little typo fixes and a few clarifications. Several
217 pages didn't have proper titles, and so weren't actually
218 visible on search.cpan.org. Thanks to hanekomu for a variety
219 of fixes and formatting improvements.
221 0.66 Tue, February 3, 2009
223 - This is a brand new, extensive manual for Moose. This aims to
224 provide a complete introduction to all of Moose's
225 features. This work was funded as part of the Moose docs grant
226 from TPF. (Dave Rolsky)
228 * Moose::Meta::Attribute
229 - Added a delegation_metaclass method to replace a hard-coded
230 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
232 * Moose::Util::TypeConstraints
233 - If you created a subtype and passed a parent that Moose didn't
234 know about, it simply ignored the parent. Now it automatically
235 creates the parent as a class type. This may not be what you
236 want, but is less broken than before. (Dave Rolsky)
238 * Moose::Util::TypeConstraints
239 - This module tried throw errors by calling Moose->throw_error,
240 but it did not ensure that Moose was loaded first. This could
241 cause very unhelpful errors when it tried to throw an error
242 before Moose was loaded. (Dave Rolsky)
244 * Moose::Util::TypeConstraints
245 - You could declare a name with subtype such as "Foo!Bar" that
246 would be allowed, but if you used it in a parameterized type
247 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
248 vetting on names created via the sugar functions, so that they
249 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
251 0.65 Thu, January 22, 2008
252 * Moose and Moose::Meta::Method::Overridden
253 - If an overridden method called super(), and then the
254 superclass's method (not overridden) _also_ called super(),
255 Moose went into an endless recursion loop. Test provided by
256 Chris Prather. (Dave Rolsky)
258 * Moose::Meta::TypeConstraint
259 - All methods are now documented. (gphat)
261 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
262 - Fixed some bogus failures that occurred because we tried to
263 validate filesystem paths in a very ad-hoc and
264 not-quite-correct way. (Dave Rolsky)
266 * Moose::Util::TypeConstraints
267 - Added maybe_type to exports. See docs for details. (rjbs)
270 - Added Moose::Util::TypeConstraints to the SEE ALSO
274 - Methods created via an attribute can now fulfill a "requires"
275 declaration for a role. (nothingmuch)
277 * Moose::Meta::Method::*
278 - Stack traces from inlined code will now report its line and
279 file as being in your class, as opposed to in Moose
282 0.64 Wed, December 31, 2008
283 * Moose::Meta::Method::Accessor
284 - Always inline predicate and clearer methods (Sartak)
286 * Moose::Meta::Attribute
287 - Support for parameterized traits (Sartak)
288 - verify_against_type_constraint method to avoid duplication
289 and enhance extensibility (Sartak)
292 - Tests (but no support yet) for parameterized traits (Sartak)
295 - Require Class::MOP 0.75+, which has the side effect of making
296 sure we work on Win32. (Dave Rolsky)
298 0.63 Mon, December 8, 2008
300 - Some small grammar tweaks and bug fixes in non-Moose example
303 0.62_02 Fri, December 5, 2008
304 * Moose::Meta::Role::Application::ToClass
305 - When a class does not provide all of a role's required
306 methods, the error thrown now mentions all of the missing
307 methods, as opposed to just the first one found. Requested by
308 Curtis Poe (RT #41119). (Dave Rolsky)
310 * Moose::Meta::Method::Constructor
311 - Moose will no longer inline a constructor for your class
312 unless it inherits its constructor from Moose::Object, and
313 will warn when it doesn't inline. If you want to force
314 inlining anyway, pass "replace_constructor => 1" to
315 make_immutable. Addresses RT #40968, reported by Jon
316 Swartz. (Dave Rolsky)
317 - The quoting of default values could be broken if the default
318 contained a single quote ('). Now we use quotemeta to escape
319 anything potentially dangerous in the defaults. (Dave Rolsky)
321 0.62_01 Wed, December 3, 2008
323 - use the method->execute API for BUILDALL
324 and DEMOLISHALL (Sartak)
326 * Moose::Util::TypeConstraints
327 - We now make all the type constraint meta classes immutable
328 before creating the default types provided by Moose. This
329 should make loading Moose a little faster. (Dave Rolsky)
331 0.62 Wed November 26, 2008
332 * Moose::Meta::Role::Application::ToClass
333 Moose::Meta::Role::Application::ToRole
334 - fixed issues where excluding and aliasing the
335 same methods for a single role did not work
336 right (worked just fine with multiple
338 - added test for this (stevan)
340 * Moose::Meta::Role::Application::RoleSummation
341 - fixed the error message when trying to compose
342 a role with a role it excludes (Sartak)
345 - Catch another case where recursion caused the value
346 of $CALLER to be stamped on (t0m)
347 - added test for this (t0m)
350 - Remove the make_immutable keyword, which has been
351 deprecated since April. It breaks metaclasses that
352 use Moose without no Moose (Sartak)
354 * Moose::Meta::Attribute
355 - Removing an attribute from a class now also removes delegation
356 (handles) methods installed for that attribute (t0m)
357 - added test for this (t0m)
359 * Moose::Meta::Method::Constructor
360 - An attribute with a default that looked like a number (but was
361 really a string) would accidentally be treated as a number
362 when the constructor was made immutable (perigrin)
363 - added test for this (perigrin)
366 - create method for constructing a role
368 - added test for this (Sartak)
369 - anonymous roles! (Sartak)
370 - added test for this (Sartak)
373 - more consistent error messages (Sartak)
375 * Moose::Cookbook::Roles::Recipe1
376 - attempt to explain why a role that just requires
377 methods is useful (Sartak)
379 0.61 Fri November 7, 2008
380 * Moose::Meta::Attribute
381 - When passing a role to handles, it will be loaded if necessary
385 - Method objects returned by get_method (and other methods)
386 Could end up being returned without an associated_metaclass
387 attribute. Removing get_method_map, which is provided by
388 Class::MOP::Class, fixed this. The Moose version did nothing
389 different from its parent except introduce a bug. (Dave Rolsky)
390 - added tests for this (jdv79)
393 - Added a $VERSION to all .pm files which didn't have one. Fixes
394 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
396 * Moose::Cookbook::Basics::Recipe4
397 * Moose::Cookbook::Basics::Recipe6
398 - These files had spaces on the first line of the SYNOPSIS, as
399 opposed to a totally empty line. According to RT #40432, this
400 confuses POD parsers. (Dave Rolsky)
402 0.60 Fri October 24, 2008
404 - Passing "-traits" when loading Moose caused the Moose.pm
405 exports to be broken. Reported by t0m. (Dave Rolsky)
406 - Tests for this bug. (t0m)
409 - Change resolve_metaclass alias to use the new
410 load_first_existing_class function. This makes it a lot
411 simpler, and also around 5 times faster. (t0m)
412 - Add caching to resolve_metaclass_alias, which gives an order
413 of magnitude speedup to things which repeatedly call the
414 Moose::Meta::Attribute->does method, notably MooseX::Storage
417 * Moose::Util::TypeConstraint
418 - Put back the changes for parameterized constraints that
419 shouldn't have been removed in 0.59. We still cannot parse
420 them, but MooseX modules can create them in some other
421 way. See the 0.58 changes for more details. (jnapiorkowski)
422 - Changed the way subtypes are created so that the job is
423 delegated to a type constraint parent. This clears up some
424 hardcoded checking and should allow correct subtypes of
425 Moose::Meta::Type::Constraint. Don't rely on this new API too
426 much (create_child_type) because it may go away in the
427 future. (jnapiorkowski)
429 * Moose::Meta::TypeConstraint::Union
430 - Type constraint names are sorted as strings, not numbers.
433 * Moose::Meta::TypeConstraint::Parameterizable
434 - New parameterize method. This can be used as a factory method
435 to make a new type constraint with a given parameterized
436 type. (jnapiorkowski)
437 - added tests (jnapiorkowski)
439 0.59 Tue October 14, 2008
441 - Add abridged documentation for builder/default/initializer/
442 predicate, and link to more details sections in
443 Class::MOP::Attribute. (t0m)
445 * Moose::Util::TypeConstraints
446 - removed prototypes from all but the &-based stuff (mst)
448 * Moose::Util::TypeConstraints
449 - Creating a anonymous subtype with both a constraint and a
450 message failed with a very unhelpful error, but should just
451 work. Reported by t0m. (Dave Rolsky)
454 - Some tests that used Test::Warn if it was available failed
455 with older versions of Test::Warn. Reported by Fayland. (Dave
457 - Test firing behavior of triggers in relation to builder/default/
459 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
460 kinds of supported type. (t0m)
463 - In create(), do not pass "roles" option to the superclass
464 - added related test that creates an anon metaclass with
467 * Moose::Meta::TypeConstraint::Class
468 * Moose::Meta::TypeConstraint::Role
469 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
470 other types (as per change in 0.55_02). (t0m)
472 * Moose::Meta::TypeConstraint::Registry
473 - Fix warning when dealing with unknown type names (t0m)
475 * Moose::Util::TypeConstraints
476 - Reverted changes from 0.58 related to handle parameterized
477 types. This caused random failures on BSD and Win32 systems,
478 apparently related to the regex engine. This means that Moose
479 can no longer parse structured type constraints like
480 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
481 supported in a slightly different way via MooseX::Types some
482 time in the future. (Dave Rolsky)
484 0.58 Sat September 20, 2008
485 !! This release has an incompatible change regarding !!
486 !! how roles add methods to a class !!
488 * Roles and role application
489 ! Roles now add methods by calling add_method, not
490 alias_method. They make sure to always provide a method
491 object, which will be cloned internally. This means that it is
492 now possible to track the source of a method provided by a
493 role, and even follow its history through intermediate roles.
495 This means that methods added by a role now show up when
496 looking at a class's method list/map. (Dave Rolsky)
499 - From this release on, we'll try to maintain a list of
500 conflicting modules, and warn you if you have one
501 installed. For example, this release conflicts with ...
502 - MooseX::Singleton <= 0.11
503 - MooseX::Params::Validate <= 0.05
506 In general, we try to not break backwards compatibility for
507 most Moose users, but MooseX modules and other code which
508 extends Moose's metaclasses is often affected by very small
509 changes in the Moose internals.
511 * Moose::Meta::Method::Delegation
512 * Moose::Meta::Attribute
513 - Delegation methods now have their own method class. (Dave
516 * Moose::Meta::TypeConstraint::Parameterizable
517 - Added a new method 'parameterize' which is basically a factory
518 for the containing constraint. This makes it easier to create
519 new types of parameterized constraints. (jnapiorkowski)
521 * Moose::Meta::TypeConstraint::Union
522 - Changed the way Union types canonicalize their names to follow
523 the normalized TC naming rules, which means we strip all
524 whitespace. (jnapiorkowski)
526 * Moose::Util::TypeConstraints
527 - Parameter and Union args are now sorted, this makes Int|Str
528 the same constraint as Str|Int. (jnapiorkowski)
529 - Changes to the way Union types are parsed to more correctly
530 stringify their names. (jnapiorkowski)
531 - When creating a parameterized type, we now use the new
532 parameterize method. (jnapiorkowski)
533 - Incoming type constraint strings are now normalized to remove
534 all whitespace differences. (jnapiorkowski)
535 - Changed the way we parse type constraint strings so that we now
536 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
537 constraints. This lays the foundation for more flexible type
538 constraint implementations.
540 * Tests and docs for all the above. (jnapiorkowski)
544 - Moose::Exporter will no longer remove a subroutine that the
545 exporting package re-exports. Moose re-exports the
546 Carp::confess function, among others. The reasoning is that we
547 cannot know whether you have also explicitly imported those
548 functions for your own use, so we err on the safe side and
549 always keep them. (Dave Rolsky)
550 - added tests for this (rafl)
553 - Changes to how we fix metaclass compatibility that are much
554 too complicated to go into. The summary is that Moose is much
555 less likely to complain about metaclass incompatibility
556 now. In particular, if two metaclasses differ because
557 Moose::Util::MetaRole was used on the two corresponding
558 classes, then the difference in roles is reconciled for the
559 subclass's metaclass. (Dave Rolsky)
560 - Squashed an warning in _process_attribute (thepler)
563 - throw exceptions (sooner) for invalid attribute names (thepler)
564 - added tests for this (thepler)
566 * Moose::Util::MetaRole
567 - If you explicitly set a constructor or destructor class for a
568 metaclass object, and then applied roles to the metaclass,
569 that explicitly set class would be lost and replaced with the
573 * Moose::Meta::Attribute
574 * Moose::Meta::Method
577 * Moose::Error::Default
578 * Moose::Error::Croak
579 * Moose::Error::Confess
580 - All instances of confess() changed to use overridable
581 C<throw_error> method. This method ultimately calls a class
582 constructor, and you can change the class being called. In
583 addition, errors now pass more information than just a string.
584 The default C<error_class> behaves like C<Carp::confess>, so
585 the behavior is not visibly different for end users.
587 0.57 Wed September 3, 2008
589 - A new bit of doc intended to introduce folks familiar with
590 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
593 - Shows examples of two classes, each done first with and then
594 without Moose. This makes a nice parallel to
595 Moose::Intro. (Dave Rolsky)
597 * Moose::Util::TypeConstraints
598 - Fixed a bug in find_or_parse_type_constraint so that it
599 accepts a Moose::Meta::TypeConstraint object as the parent
600 type, not just a name (jnapiorkowski)
601 - added tests (jnapiorkowski)
604 - If Sub::Name was not present, unimporting failed to actually
605 remove some sugar subs, causing test failures (Dave Rolsky)
607 0.56 Mon September 1, 2008
608 For those not following the series of dev releases, there are
609 several major changes in this release of Moose.
610 ! Moose::init_meta should now be called as a method. See the
613 - Major performance improvements by nothingmuch.
615 - New modules for extension writers, Moose::Exporter and
616 Moose::Util::MetaRole by Dave Rolsky.
618 - Lots of doc improvements and additions, especially in the
623 * Removed all references to the experimental-but-no-longer-needed
624 Moose::Meta::Role::Application::ToMetaclassInstance.
626 * Require Class::MOP 0.65.
628 0.55_04 Sat August 30, 2008
629 * Moose::Util::MetaRole
630 * Moose::Cookbook::Extending::Recipe2
631 - This simplifies the application of roles to any meta class, as
632 well as the base object class. Reimplemented metaclass traits
633 using this module. (Dave Rolsky)
635 * Moose::Cookbook::Extending::Recipe1
636 - This a new recipe, an overview of various ways to write Moose
637 extensions (Dave Rolsky)
639 * Moose::Cookbook::Extending::Recipe3
640 * Moose::Cookbook::Extending::Recipe4
641 - These used to be Extending::Recipe1 and Extending::Recipe2,
644 0.55_03 Fri August 29, 2008
645 * No changes from 0.55_02 except increasing the Class::MOP
646 dependency to 0.64_07.
648 0.55_02 Fri August 29, 2008
649 * Makefile.PL and Moose.pm
650 - explicitly require Perl 5.8.0+ (Dave Rolsky)
652 * Moose::Util::TypeConstraints
653 - Fix warnings from find_type_constraint if the type is not
656 * Moose::Meta::TypeConstraint
657 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
658 return false if the type you specify cannot be found in the
659 type registry, rather than throwing an unhelpful and
660 coincidental exception. (t0m).
661 - added docs & test for this (t0m)
663 * Moose::Meta::TypeConstraint::Registry
664 - add_type_constraint now throws an exception if a parameter is
666 - added docs & test for this (t0m)
668 * Moose::Cookbook::FAQ
669 - Added a faq entry on the difference between "role" and "trait"
673 - Fixed a bug that caused role composition to not see a required
674 method when that method was provided by another role being
675 composed at the same time. (Dave Rolsky)
676 - test and bug finding (tokuhirom)
678 0.55_01 Wed August 20, 2008
680 !! Calling Moose::init_meta as a function is now !!
681 !! deprecated. Please see the Moose.pm docs for details. !!
683 * Moose::Meta::Method::Constructor
684 - Fix inlined constructor so that values produced by default
685 or builder methods are coerced as required. (t0m)
686 - added test for this (t0m)
688 * Moose::Meta::Attribute
689 - A lazy attribute with a default or builder did not attempt to
690 coerce the default value. The immutable code _did_
692 - added test for this (t0m)
695 - This is a new helper module for writing "Moose-alike"
696 modules. This should make the lives of MooseX module authors
697 much easier. (Dave Rolsky)
700 * Moose::Cookbook::Meta::Recipe5
701 - Implemented metaclass traits (and wrote a recipe for it):
703 use Moose -traits => 'Foo'
705 This should make writing small Moose extensions a little
708 * Moose::Cookbook::Basics::Recipe1
709 - Removed any examples of direct hashref access, and applied an
710 editorial axe to reduce verbosity. (Dave Rolsky)
712 * Moose::Cookbook::Basics::Recipe1
713 - Also applied an editorial axe here. (Dave Rolsky)
716 * Moose::Cookbook::Extending::Recipe1
717 * Moose::Cookbook::Extending::Recipe2
718 - Rewrote extending and embedding moose documentation and
719 recipes to use Moose::Exporter (Dave Rolsky)
723 - These two modules now warn when you load them from the main
724 package "main" package, because we will not export sugar to
725 main. Previously it just did nothing. (Dave Rolsky)
728 - Now provide an init_meta method just like Moose.pm, and you
729 can call this to provide an alternate role metaclass. (Dave
730 Rolsky and nothingmuch)
731 - get_method_map now respects the package cache flag (nothingmuch)
734 - Two new methods - add_method and wrap_method_body
738 - Optimizations including allowing constructors to accept hash
739 refs, making many more classes immutable, and making
740 constructors immutable. (nothingmuch)
742 0.55 Sun August 3, 2008
743 * Moose::Meta::Attribute
744 - breaking down the way 'handles' methods are
745 created so that the process can be more easily
746 overridden by subclasses (stevan)
748 * Moose::Meta::TypeConstraint
749 - fixing what is passed into a ->message with
750 the type constraints (RT #37569)
751 - added tests for this (Charles Alderman)
753 * Moose::Util::TypeConstraints
754 - fix coerce to accept anon types like subtype can (mst)
757 - reorganized the recipes into sections - Basics, Roles, Meta,
758 Extending - and wrote abstracts for each section (Dave Rolsky)
760 * Moose::Cookbook::Basics::Recipe10
761 - A new recipe that demonstrates operator overloading
762 in combination with Moose. (bluefeet)
764 * Moose::Cookbook::Meta::Recipe1
765 - an introduction to what meta is and why you'd want to make
766 your own metaclass extensions (Dave Rolsky)
768 * Moose::Cookbook::Meta::Recipe4
769 - a very simple metaclass example (Dave Rolsky)
771 * Moose::Cookbook::Extending::Recipe1
772 - how to write a Moose-alike module to use your own object base
775 * Moose::Cookbook::Extending::Recipe2
776 - how to write modules with an API just like C<Moose.pm> (Dave
780 - Tons of fixes, both syntactical and grammatical (Dave
781 Rolsky, Paul Fenwick)
783 0.54 Thurs. July 3, 2008
784 ... this is not my day today ...
786 * Moose::Meta::Attribute
787 - fixed legal_options_for_inheritance such that
788 clone_and_inherit options still works for
789 Class::MOP::Attribute objects and therefore
790 does not break MooseX::AttributeHelpers
793 0.53 Thurs. July 3, 2008
794 * Whoops, I guess I should run 'make manifest' before
795 actually releasing the module. No actual changes
796 in this release, except the fact that it includes
797 the changes that I didn't include in the last
800 0.52 Thurs. July 3, 2008
802 - added "FEATURE REQUESTS" section to the Moose docs
803 to properly direct people (stevan) (RT #34333)
804 - making 'extends' croak if it is passed a Role since
805 this is not ever something you want to do
806 (fixed by stevan, found by obra)
807 - added tests for this (stevan)
810 - adding support for DOES (as in UNIVERSAL::DOES)
812 - added test for this
814 * Moose::Meta::Attribute
815 - added legal_options_for_inheritance (wreis)
816 - added tests for this (wreis)
818 * Moose::Cookbook::Snacks::*
819 - removed some of the unfinished snacks that should
820 not have been released yet. Added some more examples
821 to the 'Keywords' snack. (stevan)
823 * Moose::Cookbook::Style
824 - added general Moose "style guide" of sorts to the
825 cookbook (nothingmuch) (RT #34335)
828 - added more BUILDARGS tests (stevan)
830 0.51 Thurs. Jun 26, 2008
832 - add unimport so "no Moose::Role" actually does
835 * Moose::Meta::Role::Application::ToRole
836 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
837 order to provide its own implementation, that method still got
838 added to the list of required methods for consumers of
839 RoleB. Now an aliased method is only added to the list of
840 required methods if the role doing the aliasing does not
841 provide its own implementation. See Recipe 11 for an example
842 of all this. (Dave Rolsky)
843 - added tests for this
845 * Moose::Meta::Method::Constructor
846 - when a single argument that wasn't a hashref was provided to
847 an immutabilized constructor, the error message was very
848 unhelpful, as opposed to the non-immutable error. Reported by
850 - added test for this (Dave Rolsky)
852 * Moose::Meta::Attribute
853 - added support for meta_attr->does("ShortAlias") (sartak)
854 - added tests for this (sartak)
855 - moved the bulk of the `handles` handling to the new
856 install_delegation method (Stevan)
859 - Added BUILDARGS, a new step in new()
861 * Moose::Meta::Role::Application::RoleSummation
862 - fix typos no one ever sees (sartak)
864 * Moose::Util::TypeConstraints
865 * Moose::Meta::TypeConstraint
866 * Moose::Meta::TypeCoercion
867 - Attempt to work around the ??{ } vs. threads issue
869 - Some null_constraint optimizations
871 0.50 Thurs. Jun 11, 2008
872 - Fixed a version number issue by bumping all modules
875 0.49 Thurs. Jun 11, 2008
876 !! This version now approx. 20-25% !!
877 !! faster with new Class::MOP 0.59 !!
879 * Moose::Meta::Attribute
880 - fixed how the is => (ro|rw) works with
881 custom defined reader, writer and accessor
883 - added docs for this (TODO).
884 - added tests for this (Thanks to Penfold)
885 - added the custom attribute alias for regular
886 Moose attributes which is "Moose"
887 - fix builder and default both being used
892 Moose::Meta::Attribute
894 Moose::Meta::Role::Composite
895 Moose::Util::TypeConstraints
896 - switched usage of reftype to ref because
900 - changing add_package_symbol to use the new
904 - fixed how DEMOLISHALL is called so that it
905 can be overrided in subclasses (thanks to Sartak)
906 - added test for this (thanks to Sartak)
908 * Moose::Util::TypeConstraints
909 - move the ClassName type check code to
910 Class::MOP::is_class_loaded (thanks to Sartak)
912 * Moose::Cookbook::Recipe11
913 - add tests for this (thanks to tokuhirom)
915 0.48 Thurs. May 29, 2008
916 (early morning release engineering)--
918 - fixing the version in Moose::Meta::Method::Destructor
919 which was causing the indexer to choke
921 0.47 Thurs. May 29, 2008
922 (late night release engineering)--
924 - fixing the version is META.yml, no functional
925 changes in this release
927 0.46 Wed. May 28, 2008
928 !! This version now approx. 20-25% !!
929 !! faster with new Class::MOP 0.57 !!
932 - some optimizations of the &initialize method
933 since it is called so often by &meta
937 - now use the get_all_package_symbols from the
938 updated Class::MOP, test suite is now 10 seconds
941 * Moose::Meta::Method::Destructor
942 - is_needed can now also be called as a class
943 method for immutablization to check if the
944 destructor object even needs to be created
947 * Moose::Meta::Method::Destructor
948 Moose::Meta::Method::Constructor
949 - added more descriptive error message to help
950 keep people from wasting time tracking an error
951 that is easily fixed by upgrading.
953 0.45 Saturday, May 24, 2008
955 - Because of work in Class::MOP 0.57, all
956 XS based functionality is now optional
957 and a Pure Perl version is supplied
958 - the CLASS_MOP_NO_XS environment variable
959 can now be used to force non-XS versions
961 - several of the packages have been tweaked
962 to take care of this, mostly we added
963 support for the package_name and name
964 variables in all the Method metaclasses
965 - before/around/after method modifiers now
966 support regexp matching of names
967 (thanks to Takatoshi Kitano)
968 - tests added for this
969 - NOTE: this only works for classes, it
970 is currently not supported in roles,
971 but, ... patches welcome
972 - All usage of Carp::confess have been replaced
973 by Carp::croak in the "keyword" functions since
974 the stack trace is usually not helpful
977 - All usage of Carp::confess have been replaced
978 by Carp::croak in the "keyword" functions since
979 the stack trace is usually not helpful
980 - The 'has' keyword for roles now accepts the
981 same array ref form that Moose.pm does
982 (has [qw/foo bar/] => (is => 'rw', ...))
983 - added test for this
985 * Moose::Meta::Attribute
986 - trigger on a ro-attribute is no longer an
987 error, as it's useful to trigger off of the
991 - added same 'add_package_symbol' fix as in
995 - does_role now handles non-Moose classes
997 - added tests for this
998 - added the 'add_method_modifier' function
999 (thanks to Takatoshi Kitano)
1001 * Moose::Util::TypeConstraints
1002 - subtypes of parameterizable types now are
1003 themselves parameterizable types
1005 * Moose::Meta::Method::Constructor
1006 - fixed bug where trigger was not being
1007 called by the inlined immutable
1009 - added test for this (thanks to Caelum)
1011 * Moose::Meta::Role::Application::ToInstance
1012 - now uses the metaclass of the instance
1013 (if possible) to create the anon-class
1014 (thanks Jonathan Rockway)
1016 * Moose::Cookbook::Recipe22
1017 - added the meta-attribute trait recipe
1021 - fixed hash-ordering test bug that was
1022 causing occasional cpantester failures
1023 - renamed the t/000_recipe/*.t tests to be
1024 more descriptive (thanks to Sartak)
1026 0.44 Sat. May 10, 2008
1028 - made make_immutable warning cluck to
1029 show where the error is (thanks mst)
1032 - BUILDALL and DEMOLISHALL now call
1033 ->body when looping through the
1034 methods, to avoid the overloaded
1036 - fixed issue where DEMOLISHALL was
1037 eating the $@ values, and so not
1038 working correctly, it still kind of
1039 eats them, but so does vanilla perl
1040 - added tests for this
1042 * Moose::Cookbook::Recipe7
1043 - added new recipe for immutable
1044 functionality (thanks Dave Rolsky)
1046 * Moose::Cookbook::Recipe9
1047 - added new recipe for builder and
1048 lazy_build (thanks Dave Rolsky)
1050 * Moose::Cookbook::Recipe11
1051 - added new recipe for method aliasing
1052 and exclusion with Roles (thanks Dave Rolsky)
1055 - fixed Win32 test failure (thanks spicyjack)
1057 ~ removed Build.PL and Module::Build compat
1058 since Module::Install has done that.
1060 0.43 Wed. April, 30, 2008
1062 drink more coffee before
1063 doing release engineering
1065 - whoops, forgot to do the smolder tests,
1066 and we broke some of the custom meta-attr
1067 modules. This fixes that.
1069 0.42 Mon. April 28, 2008
1070 - some bad tests slipped by, nothing else
1071 changed in this release (cpantesters++)
1073 - upped the Class::MOP dependency to 0.55
1074 since we have tests which need the C3
1077 0.41 Mon. April 28, 2008
1078 ~~ numerous documentation updates ~~
1080 - Changed all usage of die to Carp::croak for better
1081 error reporting (initial patch by Tod Hagan)
1083 ** IMPORTANT NOTE **
1084 - the make_immutable keyword is now deprecated, don't
1085 use it in any new code and please fix your old code
1086 as well. There will be 2 releases, and then it will
1092 - refactored the way inner and super work to avoid
1093 any method/@ISA cache penalty (nothingmuch)
1095 * Moose::Meta::Class
1096 - fixing &new_object to make sure trigger gets the
1097 coerced value (spotted by Charles Alderman on the
1099 - added test for this
1101 * Moose::Meta::Method::Constructor
1102 - immutable classes which had non-lazy attributes were calling
1103 the default generating sub twice in the constructor. (bug
1104 found by Jesse Luehrs, fixed by Dave Rolsky)
1105 - added tests for this (Dave Rolsky)
1106 - fix typo in initialize_body method (nothingmuch)
1108 * Moose::Meta::Method::Destructor
1109 - fix typo in initialize_body method (nothingmuch)
1111 * Moose::Meta::Method::Overriden
1112 Moose::Meta::Method::Augmented
1113 - moved the logic for these into their own
1114 classes (nothingmuch)
1116 * Moose::Meta::Attribute
1117 - inherited attributes may now be extended without
1118 restriction on the type ('isa', 'does') (Sartak)
1119 - added tests for this (Sartak)
1120 - when an attribute property is malformed (such as lazy without
1121 a default), give the name of the attribute in the error
1123 - added the &applied_traits and &has_applied_traits methods
1124 to allow introspection of traits
1125 - added tests for this
1126 - moved 'trait' and 'metaclass' argument handling to here from
1128 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1129 '+foo' syntax) (nothingmuch)
1130 - added tests for this (t0m)
1133 - localize $@ inside DEMOLISHALL to avoid it
1134 eating $@ (found by Ernesto)
1135 - added test for this (thanks to Ernesto)
1137 * Moose::Util::TypeConstraints
1138 - &find_type_constraint now DWIMs when given an
1139 type constraint object or name (nothingmuch)
1140 - &find_or_create_type_constraint superseded with a number of more
1142 - find_or_create_{isa,does}_type_constraint
1143 - find_or_parse_type_constraint
1145 * Moose::Meta::TypeConstraint
1146 Moose::Meta::TypeConstraint::Class
1147 Moose::Meta::TypeConstraint::Role
1148 Moose::Meta::TypeConstraint::Enum
1149 Moose::Meta::TypeConstraint::Union
1150 Moose::Meta::TypeConstraint::Parameterized
1151 - added the &equals method for comparing two type
1152 constraints (nothingmuch)
1153 - added tests for this (nothingmuch)
1155 * Moose::Meta::TypeConstraint
1156 - add the &parents method, which is just an alias to &parent.
1157 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1159 * Moose::Meta::TypeConstraint::Class
1160 - added the class attribute for introspection purposes
1162 - added tests for this
1164 * Moose::Meta::TypeConstraint::Enum
1165 Moose::Meta::TypeConstraint::Role
1166 - broke these out into their own classes (nothingmuch)
1168 * Moose::Cookbook::Recipe*
1169 - fixed references to test file locations in the POD
1170 and updated up some text for new Moose features
1174 - Added &resolve_metaclass_alias, a helper function for finding an actual
1175 class for a short name (e.g. in the traits list)
1177 0.40 Fri. March 14, 2008
1178 - I hate Pod::Coverage
1180 0.39 Fri. March 14, 2008
1182 - documenting the use of '+name' with attributes
1183 that come from recently composed roles. It makes
1184 sense, people are using it, and so why not just
1185 officially support it.
1186 - fixing the 'extends' keyword so that it will not
1187 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1190 - added the perl -Moose=+Class::Name feature to allow
1191 monkeypatching of classes in one liners
1194 - fixing the 'apply_all_roles' keyword so that it will not
1195 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1197 * Moose::Meta::Class
1198 - added ->create method which now supports roles (thanks to jrockway)
1199 - added tests for this
1200 - added ->create_anon_class which now supports roles and caching of
1201 the results (thanks to jrockway)
1202 - added tests for this
1203 - made ->does_role a little more forgiving when it is
1204 checking a Class::MOP era metaclasses.
1206 * Moose::Meta::Role::Application::ToInstance
1207 - it is now possible to pass extra params to be used when
1208 a role is applied to an the instance (rebless_params)
1209 - added tests for this
1211 * Moose::Util::TypeConstraints
1212 - class_type now accepts an optional second argument for a
1213 custom message. POD anotated accordingly (groditi)
1214 - added tests for this
1215 - it is now possible to make anon-enums by passing 'enum' an
1216 ARRAY ref instead of the $name => @values. Everything else
1218 - added tests for this
1221 - making test for using '+name' on attributes consumed
1222 from a role, it works and makes sense too.
1224 * Moose::Meta::Attribute
1225 - fix handles so that it doesn't return nothing
1226 when the method cannot be found, not sure why
1227 it ever did this originally, this means we now
1228 have slightly better support for AUTOLOADed
1230 - added more delegation tests
1231 - adding ->does method to this so as to better
1232 support traits and their introspection.
1233 - added tests for this
1236 - localizing the Data::Dumper configurations so
1237 that it does not pollute others (RT #33509)
1238 - made ->does a little more forgiving when it is
1239 passed Class::MOP era metaclasses.
1241 0.38 Fri. Feb. 15, 2008
1242 * Moose::Meta::Attribute
1243 - fixed initializer to correctly do
1244 type checking and coercion in the
1246 - added tests for this
1249 - fixed some finicky tests (thanks to konobi)
1251 0.37 Thurs. Feb. 14, 2008
1253 - fixed some details in Moose::init_meta
1254 and its superclass handling (thanks thepler)
1255 - added tests for this (thanks thepler)
1256 - 'has' now dies if you don't pass in name
1258 - added the 'make_immutable' keyword as a shortcut
1261 * Moose::Meta::Class
1262 Moose::Meta::Method::Constructor
1263 Moose::Meta::Attribute
1264 - making (init_arg => undef) work here too
1265 (thanks to nothingmuch)
1267 * Moose::Meta::Attribute
1268 Moose::Meta::Method::Constructor
1269 Moose::Meta::Method::Accessor
1270 - make lazy attributes respect attr initializers (rjbs)
1271 - added tests for this
1273 * Moose::Util::TypeConstraints
1274 Moose::Util::TypeConstraints::OptimizedConstraints
1275 Moose::Meta::TypeConstraints
1276 Moose::Meta::Attribute
1277 Moose::Meta::Method::Constructor
1278 Moose::Meta::Method::Accessor
1279 - making type errors use the
1280 assigned message (thanks to Sartak)
1281 - added tests for this
1283 * Moose::Meta::Method::Destructor
1284 - making sure DESTROY gets inlined properly
1285 with successive DEMOLISH calls (thanks to manito)
1287 * Moose::Meta::Attribute
1288 Moose::Meta::Method::Accessor
1289 - fixed handling of undef with type constraints
1291 - added tests for this
1294 - added &get_all_init_args and &get_all_attribute_values
1295 (thanks to Sartak and nothingmuch)
1297 0.36 Sat. Jan. 26, 2008
1299 Moose::Meta::Attribute
1300 - role type tests now support when roles are
1301 applied to non-Moose classes (found by ash)
1302 - added tests for this (thanks to ash)
1303 - couple extra tests to boost code coverage
1305 * Moose::Meta::Method::Constructor
1306 - improved fix for handling Class::MOP attributes
1307 - added test for this
1309 * Moose::Meta::Class
1310 - handled the add_attribute($attribute_meta_object)
1312 - added test for this
1314 0.35 Tues. Jan. 22, 2008
1315 * Moose::Meta::Method::Constructor
1316 - fix to make sure even Class::MOP attributes
1317 are handled correctly (Thanks to Dave Rolsky)
1318 - added test for this (also Dave Rolsky)
1320 * Moose::Meta::Class
1321 - improved error message on _apply_all_roles,
1322 you should now use Moose::Util::apply_all_roles
1323 and you shouldnt have been using a _ prefixed
1324 method in the first place ;)
1326 0.34 Mon. Jan. 21, 2008
1327 ~~~ more misc. doc. fixes ~~~
1328 ~~ updated copyright dates ~~
1330 Moose is now a postmodern object system :)
1331 - (see the POD for details)
1333 * <<Role System Refactoring>>
1334 - this release contains a major reworking and
1335 cleanup of the role system
1336 - 100% backwards compat.
1337 - Role application now restructured into seperate
1338 classes based on type of applicants
1339 - Role summation (combining of more than one role)
1340 is much cleaner and anon-classes are no longer
1341 used in this process
1342 - new Composite role metaclass
1343 - runtime application of roles to instances
1344 is now more efficient and re-uses generated
1345 classes when applicable
1347 * <<New Role composition features>>
1348 - methods can now be excluded from a given role
1350 - methods can now be aliased to another name (and
1351 still retain the original as well)
1353 * Moose::Util::TypeConstraints::OptimizedConstraints
1354 - added this module (see above)
1356 * Moose::Meta::Class
1357 - fixed the &_process_attribute method to be called
1358 by &add_attribute, so that the API is now correct
1360 * Moose::Meta::Method::Accessor
1361 - fixed bug when passing a list of values to
1362 an accessor would get (incorrectly) ignored.
1363 Thanks to Sartak for finding this ;)
1364 - added tests for this (Sartak again)
1366 * Moose::Meta::Method::Accessor
1367 Moose::Meta::Method::Constructor
1368 Moose::Meta::Attribute
1369 Moose::Meta::TypeConstraint
1370 Moose::Meta::TypeCoercion
1371 - lots of cleanup of such things as:
1373 - type constraint handling
1374 - error handling/messages
1375 (thanks to nothingmuch)
1377 * Moose::Meta::TypeConstraint::Parameterizable
1378 - added this module to support the refactor
1379 in Moose::Meta::TypeConstraint::Parameterized
1381 * Moose::Meta::TypeConstraint::Parameterized
1382 - refactored how these types are handled so they
1383 are more generic and not confined to ArrayRef
1387 - shortened some file names for better VMS support (RT #32381)
1389 0.33 Fri. Dec. 14, 2007
1390 !! Moose now loads 2 x faster !!
1391 !! with new Class::MOP 0.49 !!
1393 ++ new oose.pm module to make command line
1394 Moose-ness easier (see POD docs for more)
1396 * Moose::Meta::Class
1398 - several tweaks to take advantage of the
1399 new method map caching in Class::MOP
1401 * Moose::Meta::TypeConstraint::Parameterized
1402 - allow subtypes of ArrayRef and HashRef to
1403 be used as a container (sartak)
1404 - added tests for this
1405 - basic support for coercion to ArrayRef and
1406 HashRef for containers (sartak)
1407 - added tests for this
1409 * Moose::Meta::TypeCoercion
1410 - coercions will now create subtypes as needed
1411 so you can now add coercions to parameterized
1412 types without having to explictly define them
1413 - added tests for this
1415 * Moose::Meta::Method::Accessor
1416 - allow subclasses to decide whether we need
1417 to copy the value into a new variable (sartak)
1419 0.32 Tues. Dec. 4, 2007
1420 * Moose::Util::TypeConstraints
1421 - fixing how subtype aliases of unions work
1422 they should inherit the parent's coercion
1423 - added tests for this
1424 - you can now define multiple coercions on
1425 a single type at different times instead of
1426 having to do it all in one place
1427 - added tests for this
1429 * Moose::Meta::TypeConstraint
1430 - there is now a default constraint of sub { 1 }
1431 instead of Moose::Util::TypeConstraints setting
1434 * Moose::Meta::TypeCoercion
1435 * Moose::Meta::TypeCoercion::Union
1436 - added the &has_coercion_for_type and
1437 &add_type_coercions methods to support the
1438 new features above (although you cannot add
1439 more type coercions for Union types)
1441 0.31 Mon. Nov. 26, 2007
1442 * Moose::Meta::Attribute
1443 - made the +attr syntax handle extending types with
1444 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1445 now works if the original foo is an ArrayRef.
1446 - added tests for this.
1447 - delegation now works even if the attribute does not
1448 have a reader method using the get_read_method_ref
1449 method from Class::MOP::Attribute.
1450 - added tests for this
1451 - added docs for this
1453 * Moose::Util::TypeConstraints
1454 - passing no "additional attribute info" to
1455 &find_or_create_type_constraint will no longer
1456 attempt to create an __ANON__ type for you,
1457 instead it will just return undef.
1458 - added docs for this
1460 0.30 Fri. Nov. 23, 2007
1461 * Moose::Meta::Method::Constructor
1462 -builder related bug in inlined constructor. (groditi)
1464 * Moose::Meta::Method::Accessor
1465 - genereate unnecessary calls to predicates and refactor
1466 code generation for runtime speed (groditi)
1468 * Moose::Util::TypeConstraints
1469 - fix ClassName constraint to introspect symbol table (mst)
1470 - added more tests for this (mst)
1471 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1472 with work correctly.
1473 - added tests for this
1476 - adding the link to Recipie 11 (written by Sartak)
1477 - adding test for SYNOPSIS code
1480 - New tests for builder bug. Upon instantiation, if an
1481 attribute had a builder, no value and was not lazy the
1482 builder default was not getting run, oops. (groditi)
1484 0.29 Tues. Nov. 13, 2007
1485 * Moose::Meta::Attribute
1486 - Fix error message on missing builder method (groditi)
1488 * Moose::Meta::Method::Accessor
1489 - Fix error message on missing builder method (groditi)
1492 - Add test to check for the correct error message when
1493 builder method is missing (groditi)
1495 0.28 Tues. Nov. 13, 2007
1496 - 0.27 packaged incorrectly (groditi)
1498 0.27 Tues. Nov. 13, 2007
1499 * Moose::Meta::Attribute
1500 - Added support for the new builder option (groditi)
1501 - Added support for lazy_build option (groditi)
1502 - Changed slot initialization for predicate changes (groditi)
1504 * Moose::Meta::Method::Accessor
1505 - Added support for lazy_build option (groditi)
1506 - Fix inline methods to work with corrected predicate
1509 * Moose::Meta::Method::Constructor
1510 - Added support for lazy_build option (groditi)
1513 - tests for builder and lazy_build (groditi)
1515 * fixing some misc. bits in the docs that
1516 got mentioned on CPAN Forum & perlmonks
1519 - fixed how required methods are handled
1520 when they encounter overriden or modified
1521 methods from a class (thanks to confound).
1522 - added tests for this
1524 * Moose::Util::TypeConstraint
1525 - fixed the type notation parser so that
1526 the | always creates a union and so is
1527 no longer a valid type char (thanks to
1528 konobi, mugwump and #moose for working
1530 - added more tests for this
1532 0.26 Thurs. Sept. 27, 2007
1535 * Parameterized Types
1536 We now support parameterized collection types, such as:
1537 ArrayRef[Int] # array or integers
1538 HashRef[Object] # a hash with object values
1539 They can also be nested:
1540 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1541 And work with the type unions as well:
1542 ArrayRef[Int | Str] # array of integers of strings
1544 * Better Framework Extendability
1545 Moose.pm is now "extendable" such that it is now much
1546 easier to extend the framework and add your own keywords
1547 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1548 section of the Moose.pm docs.
1551 In an effort to begin documenting some of the various
1552 details of Moose as well as some common idioms, we have
1553 created Moose::Cookbook::Snacks as a place to find
1554 small (easily digestable) nuggets of Moose code.
1557 ~ Several doc updates/cleanup thanks to castaway ~
1559 - converted build system to use Module::Install instead of
1560 Module::Build (thanks to jrockway)
1563 - added all the meta classes to the immutable list and
1564 set it to inline the accessors
1565 - fix import to allow Sub::Exporter like { into => }
1566 and { into_level => } (perigrin)
1567 - exposed and documented init_meta() to allow better
1568 embedding and extending of Moose (perigrin)
1571 - complete re-organization of the test suite
1572 - added some new tests as well
1573 - finally re-enabled the Moose::POOP test since
1574 the new version of DBM::Deep now works again
1577 * Moose::Meta::Class
1578 - fixed very odd and very nasty recursion bug with
1580 - added tests for this (eilara)
1582 * Moose::Meta::Attribute
1583 Moose::Meta::Method::Constructor
1584 Moose::Meta::Method::Accessor
1585 - fixed issue with overload::Overloaded getting called
1586 on non-blessed items. (RT #29269)
1587 - added tests for this
1589 * Moose::Meta::Method::Accessor
1590 - fixed issue with generated accessor code making
1591 assumptions about hash based classes (thanks to dexter)
1593 * Moose::Coookbook::Snacks
1594 - these are bits of documentation, not quite as big as
1595 Recipes but which have no clear place in the module docs.
1596 So they are Snacks! (horray for castaway++)
1598 * Moose::Cookbook::Recipe4
1599 - updated it to use the new ArrayRef[MyType] construct
1600 - updated the accompanying test as well
1602 +++ Major Refactor of the Type Constraint system +++
1603 +++ with new features added as well +++
1605 * Moose::Util::TypeConstraint
1606 - no longer uses package variable to keep track of
1607 the type constraints, now uses the an instance of
1608 Moose::Meta::TypeConstraint::Registry to do it
1609 - added more sophisticated type notation parsing
1611 - added tests for this
1613 * Moose::Meta::TypeConstraint
1614 - some minor adjustments to make subclassing easier
1615 - added the package_defined_in attribute so that we
1616 can track where the type constraints are created
1618 * Moose::Meta::TypeConstraint::Union
1619 - this is now been refactored to be a subclass of
1620 Moose::Meta::TypeConstraint
1622 * Moose::Meta::TypeCoercion::Union
1623 - this has been added to service the newly refactored
1624 Moose::Meta::TypeConstraint::Union and is itself
1625 a subclass of Moose::Meta::TypeCoercion
1627 * Moose::Meta::TypeConstraint::Parameterized
1628 - added this module (taken from MooseX::AttributeHelpers)
1629 to help construct nested collection types
1630 - added tests for this
1632 * Moose::Meta::TypeConstraint::Registry
1633 - added this class to keep track of type constraints
1635 0.25 Mon. Aug. 13, 2007
1637 - Documentation update to reference Moose::Util::TypeConstraints
1638 under 'isa' in 'has' for how to define a new type
1639 (thanks to shlomif).
1641 * Moose::Meta::Attribute
1642 - required attributes now will no longer accept undef
1643 from the constructor, even if there is a default and lazy
1644 - added tests for this
1645 - default subroutines must return a value which passes the
1647 - added tests for this
1649 * Moose::Meta::Attribute
1650 * Moose::Meta::Method::Constructor
1651 * Moose::Meta::Method::Accessor
1652 - type-constraint tests now handle overloaded objects correctly
1653 in the error message
1654 - added tests for this (thanks to EvanCarroll)
1656 * Moose::Meta::TypeConstraint::Union
1657 - added (has_)hand_optimized_constraint to this class so that
1658 it behaves as the regular Moose::Meta::TypeConstraint does.
1661 - large refactoring of this code
1662 - added several more tests
1663 - tests for subtle conflict resolition issues
1664 added, but not currently running
1667 * Moose::Cookbook::Recipe7
1668 - added new recipe for augment/inner functionality
1670 - added test for this
1673 - a formal definition of roles (still in progress)
1676 - utilities for easier working with Moose classes
1677 - added tests for these
1680 - This contains Moose specific test functions
1681 - added tests for these
1683 0.24 Tues. July 3, 2007
1684 ~ Some doc updates/cleanup ~
1686 * Moose::Meta::Attribute
1687 - added support for roles to be given as parameters
1688 to the 'handles' option.
1689 - added tests and docs for this
1690 - the has '+foo' attribute form now accepts changes to
1691 the lazy option, and the addition of a handles option
1692 (but not changing the handles option)
1693 - added tests and docs for this
1696 - required methods are now fetched using find_method_by_name
1697 so that required methods can come from superclasses
1698 - adjusted tests for this
1700 0.23 Mon. June 18, 2007
1701 * Moose::Meta::Method::Constructor
1702 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1703 * Moose::Meta::Class
1704 - Modify make_immutable to work with the new Class::MOP immutable
1705 mechanism + POD + very basic test (groditi)
1706 * Moose::Meta::Attribute
1707 - Fix handles to use goto() so that caller() comes out properly on
1708 the other side (perigrin)
1710 0.22 Thurs. May 31, 2007
1711 * Moose::Util::TypeConstraints
1712 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1713 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1714 prototypes for functions
1715 - added the ClassName type constraint, this checks for strings
1716 which will respond true to ->isa(UNIVERSAL).
1717 - added tests and docs for this
1718 - subtyping just in name now works correctly by making the
1719 default for where be { 1 }
1720 - added test for this
1722 * Moose::Meta::Method::Accessor
1723 - coerce and lazy now work together correctly, thanks to
1724 merlyn for finding this bug
1725 - tests added for this
1726 - fix reader presedence bug in Moose::Meta::Attribute + tests
1729 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1730 a HASH-ref and missed. This produces better error messages then
1731 having it die cause undef is not a HASH.
1732 - added tests for this
1734 0.21 Thursday, May 2nd, 2007
1736 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1737 - modified unimport to remove super and inner along with the rest
1738 - altered unimport tests to handle this
1741 - altered super export to populate SUPER_SLOT
1743 * Moose::Meta::Class
1744 - altered augment and override modifier application to use *_SLOT
1745 - modified tests for these to unimport one test class each to test
1748 - fixed issue where custom attribute metaclasses
1749 where not handled correctly in roles
1750 - added tests for this
1752 * Moose::Meta::Class
1753 - fixed issue where extending metaclasses with
1754 roles would blow up. Thanks to Aankhen`` for
1755 finding this insidious error, and it's solution.
1757 ~~ lots of spelling and grammer fixes in the docs,
1758 many many thanks to rlb3 and Aankhen for these :)
1760 0.20 Friday, April 6th, 2007
1761 >> I messed up the SKIP logic in one test
1762 so this release is just to fix that.
1765 - 'has' now also accepts an ARRAY ref
1766 to create multiple attrs (see docs)
1767 (thanks to konobi for this)
1768 - added tests and docs
1770 0.19 Thurs. April 5th, 2007
1771 ~~ More documentation updates ~~
1773 * Moose::Util::TypeConstraints
1774 - 'type' now supports messages as well
1775 thanks to phaylon for finding this
1776 - added tests for this
1777 - added &list_all_type_constraints and
1778 &list_all_builtin_type_constraints
1779 functions to facilitate introspection.
1781 * Moose::Meta::Attribute
1782 - fixed regexp 'handles' declarations
1783 to build the list of delegated methods
1784 correctly (and not override important
1785 things like &new) thanks to ashleyb
1787 - added tests and docs for this
1788 - added the 'documentation' attributes
1789 so that you can actually document your
1790 attributes and inspect them through the
1792 - added tests and docs for this
1794 * Moose::Meta::Class
1795 - when loading custom attribute metaclasses
1796 it will first look in for the class in the
1797 Moose::Meta::Attribute::Custom::$name, and
1798 then default to just loading $name.
1799 - added tests and docs for this
1801 * Moose::Meta::TypeConstraint
1802 - type constraints now stringify to their names.
1803 - added test for this
1806 - added tests to assure we work with Module::Refresh
1807 - added stricter test skip logic in the Moose POOP
1808 test, ask Rob Kinyon why.
1809 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1811 0.18 Sat. March 10, 2007
1812 ~~ Many, many documentation updates ~~
1815 - We now use Class::MOP::load_class to
1817 - added tests to show types and subtypes
1818 working with Declare::Constraints::Simple
1819 and Test::Deep as constraint engines.
1822 !! You must have Class::MOP 0.37_001 !!
1823 !! for this developer release to work !!
1825 This release was primarily adding the immutable
1826 feature to Moose. An immutable class is one which
1827 you promise not to alter. When you set the class
1828 as immutable it will perform various bits of
1829 memoization and inline certain part of the code
1830 (constructors, destructors and accessors). This
1831 minimizes (and in some cases totally eliminates)
1832 one of Moose's biggest performance hits. This
1833 feature is not on by default, and is 100% optional.
1834 It has several configurable bits as well, so you
1835 can pick and choose to your specific needs.
1837 The changes involved in this were fairly wide and
1838 highly specific, but 100% backwards compatible, so
1839 I am not going to enumerate them here. If you are
1840 truely interested in what was changed, please do
1843 0.17 Tues. Nov. 14, 2006
1844 * Moose::Meta::Method::Accessor
1845 - bugfix for read-only accessors which
1846 are have a type constraint and lazy.
1847 Thanks to chansen for finding it.
1849 0.16 Tues. Nov. 14, 2006
1851 There are some speed improvements in this release,
1852 but they are only the begining, so stay tuned.
1855 - BUILDALL and DEMOLISHALL no longer get
1856 called unless they actually need to be.
1857 This gave us a signifigant speed boost
1858 for the cases when there is no BUILD or
1859 DEMOLISH method present.
1861 * Moose::Util::TypeConstraints
1862 * Moose::Meta::TypeConstraint
1863 - added an 'optimize_as' option to the
1864 type constraint, which allows for a
1865 hand optimized version of the type
1866 constraint to be used when possible.
1867 - Any internally created type constraints
1868 now provide an optimized version as well.
1870 0.15 Sun. Nov. 5, 2006
1872 This version of Moose *must* have Class::MOP 0.36 in order
1873 to work correctly. A number of small internal tweaks have
1874 been made in order to be compatible with that release.
1876 * Moose::Util::TypeConstraints
1877 - added &unimport so that you can clean out
1878 your class namespace of these exported
1881 * Moose::Meta::Class
1882 - fixed minor issue which occasionally
1883 comes up during global destruction
1885 - moved Moose::Meta::Method::Overriden into
1889 - moved Moose::Meta::Role::Method into
1892 * Moose::Meta::Attribute
1893 - changed how we do type checks so that
1894 we reduce the overall cost, but still
1897 - moved accessor generation methods to
1898 Moose::Meta::Method::Accessor to
1899 conform to the API changes from
1902 * Moose::Meta::TypeConstraint
1903 - changed how constraints are compiled
1904 so that we do less recursion and more
1905 iteration. This makes the type check
1907 - moved Moose::Meta::TypeConstraint::Union
1910 * Moose::Meta::Method::Accessor
1911 - created this from methods formerly found in
1912 Moose::Meta::Attribute
1914 * Moose::Meta::Role::Method
1915 - moved this from Moose::Meta::Role
1917 * Moose::Meta::Method::Overriden
1918 - moved this from Moose::Meta::Class
1920 * Moose::Meta::TypeConstraint::Union
1921 - moved this from Moose::Meta::TypeConstraint
1923 0.14 Mon. Oct. 9, 2006
1925 * Moose::Meta::Attribute
1926 - fixed lazy attributes which were not getting
1927 checked with the type constraint (thanks ashley)
1928 - added tests for this
1929 - removed the over-enthusiastic DWIMery of the
1930 automatic ArrayRef and HashRef defaults, it
1931 broke predicates in an ugly way.
1932 - removed tests for this
1934 0.13 Sat. Sept. 30, 2006
1936 This version of Moose *must* have Class::MOP 0.35 in order
1937 to work correctly. A number of small internal tweaks have
1938 been made in order to be compatible with that release.
1941 - Removed the use of UNIVERSAL::require to be a better
1942 symbol table citizen and remove a dependency
1943 (thanks Adam Kennedy)
1945 **~~ removed experimental & undocumented feature ~~**
1946 - commented out the 'method' and 'self' keywords, see the
1947 comments for more info.
1950 - added a FAQ and WTF files to document frequently
1951 asked questions and common problems
1953 * Moose::Util::TypeConstraints
1954 - added GlobRef and FileHandle type constraint
1955 - added tests for this
1957 * Moose::Meta::Attribute
1958 - if your attribute 'isa' ArrayRef of HashRef, and you have
1959 not explicitly set a default, then make the default DWIM.
1960 This will also work for subtypes of ArrayRef and HashRef
1962 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1963 - new test added for this (thanks to ashley)
1966 - added basic support for runtime role composition
1967 but this is still *highly experimental*, so feedback
1968 is much appreciated :)
1969 - added tests for this
1971 * Moose::Meta::TypeConstraint
1972 - the type constraint now handles the coercion process
1973 through delegation, this is to support the coercion
1976 * Moose::Meta::TypeConstraint::Union
1977 - it is now possible for coercions to be performed
1979 - added tests for this (thanks to konobi)
1981 * Moose::Meta::TypeCoercion
1982 - properly capturing error when type constraint
1986 - Scalar::Util 1.18 is bad on Win32, so temporarily
1987 only require version 1.17 for Win32 and cygwin.
1988 (thanks Adam Kennedy)
1990 0.12 Sat. Sept. 1, 2006
1992 - Recipe5 (subtypes & coercion) has been written
1995 - fixed "bad meta" error message to be more descriptive
1996 - fixed &unimport to not remove the &inner and &super
1997 keywords because we need to localize them.
1998 - fixed number of spelling/grammer issues, thanks Theory :)
2000 **~~ experimental & undocumented feature ~~**
2001 - added the method and self keywords, they are basically
2002 just sugar, and they may not stay around.
2005 - added &dump method to easily Data::Dumper
2008 * Moose::Meta::TypeConstraint
2009 - added the &is_a_type_of method to check both the current
2010 and the subtype of a method (similar to &isa with classes)
2013 - this is now a subclass of Class::MOP::Module, and no longer
2014 creates the _role_meta ugliness of before.
2015 - fixed tests to reflect this change
2017 0.11 Wed. July 12, 2006
2019 - added an &unimport method to remove all the keywords
2020 that Moose will import, simply add 'no Moose' to the
2021 bottom of your class file.
2024 - fixed some test failures caused by a forgotten test
2027 0.10 Thurs. July 6, 2006
2029 - improved error message when loading modules so
2030 it is less confusing when you load a role.
2031 - added &calculate_all_roles method to
2032 Moose::Meta::Class and Moose::Meta::Role
2035 This module has been tested against Class::MOP 0.30
2036 but it does not yet utilize the optimizations
2037 it makes available. Stay tuned for that ;)
2039 0.09_03 Fri. June 23, 2006
2040 ++ DEVELOPER RELEASE ++
2042 - 'use strict' and 'use warnings' are no longer
2043 needed in Moose classes, Moose itself will
2044 turn them on for you.
2045 - added tests for this
2046 - moved code from exported subs to private methods
2047 in Moose::Meta::Class
2050 - as with Moose, strict and warnings are
2051 automatically turned on for you.
2052 - added tests for this
2055 - now handles an edge case for override errors
2056 - added tests for this
2057 - added some more edge case tests
2059 0.09_02 Tues. May 16, 2006
2060 ++ DEVELOPER RELEASE ++
2062 - added prototypes to the exported subs
2066 - added prototypes to the exported subs
2069 * Moose::Util::TypeConstraints
2070 - cleaned up prototypes for the subs
2073 0.09_01 Fri. May 12, 2006
2074 ++ DEVELOPER RELEASE ++
2075 - This release works in combination with
2076 Class::MOP 0.29_01, it is a developer
2077 release because it uses the a new
2078 instance sub-protocol and a fairly
2079 complete Role implementation. It has
2080 not yet been optimized, so it slower
2081 the the previous CPAN version. This
2082 release also lacks good updated docs,
2083 the official release will have updated docs.
2086 - refactored the keyword exports
2087 - 'with' now checks Role validaity and
2088 accepts more than one Role at a time
2089 - 'extends' makes metaclass adjustments as
2090 needed to ensure metaclass compatibility
2093 - refactored the keyword exports
2094 - 'with' now checks Role validaity and
2095 accepts more than one Role at a time
2097 * Moose::Util::TypeConstraints
2098 - added the 'enum' keyword for simple
2099 string enumerations which can be used as
2101 - see example of usage in t/202_example.t
2104 - more careful checking of params to new()
2107 - much work done on the role composition
2108 - many new tests for conflict detection
2109 and composition edge cases
2110 - not enough documentation, I suggest
2111 looking at the tests
2113 * Moose::Meta::Instance
2114 - added new Instance metaclass to support
2115 the new Class::MOP instance protocol
2117 * Moose::Meta::Class
2118 - some small changes to support the new
2120 - some small additions to support Roles
2122 * Moose::Meta::Attribute
2123 - some improvements to the accessor generation code
2125 - some small changes to support the new
2127 - (still somewhat) experimental delegation support
2128 with the 'handles' option
2129 - added several tests for this
2130 - no docs for this yet
2132 0.05 Thurs. April 27, 2006
2134 - keywords are now exported with Sub::Exporter
2135 thanks to chansen for this commit
2136 - has keyword now takes a 'metaclass' option
2137 to support custom attribute meta-classes
2138 on a per-attribute basis
2139 - added tests for this
2140 - the 'has' keyword not accepts inherited slot
2141 specifications (has '+foo'). This is still an
2142 experimental feature and probably not finished
2143 see t/038_attribute_inherited_slot_specs.t for
2144 more details, or ask about it on #moose
2145 - added tests for this
2148 - keywords are now exported with Sub::Exporter
2150 * Moose::Utils::TypeConstraints
2151 - reorganized the type constraint hierarchy, thanks
2152 to nothingmuch and chansen for his help and advice
2154 - added some tests for this
2155 - keywords are now exported with Sub::Exporter
2156 thanks to chansen for this commit
2158 * Moose::Meta::Class
2159 - due to changes in Class::MOP, we had to change
2160 construct_instance (for the better)
2162 * Moose::Meta::Attribute
2163 - due to changes in Class::MOP, we had to add the
2164 initialize_instance_slot method (it's a good thing)
2166 * Moose::Meta::TypeConstraint
2167 - added type constraint unions
2168 - added tests for this
2169 - added the is_subtype_of predicate method
2170 - added tests for this
2172 0.04 Sun. April 16th, 2006
2174 - Roles can now consume other roles
2175 - added tests for this
2176 - Roles can specify required methods now with
2177 the requires() keyword
2178 - added tests for this
2181 - ripped out much of it's guts ,.. much cleaner now
2182 - added required methods and correct handling of
2183 them in apply() for both classes and roles
2184 - added tests for this
2185 - no longer adds a does() method to consuming classes
2186 it relys on the one in Moose::Object
2187 - added roles attribute and some methods to support
2188 roles consuming roles
2190 * Moose::Meta::Attribute
2191 - added support for triggers on attributes
2192 - added tests for this
2193 - added support for does option on an attribute
2194 - added tests for this
2196 * Moose::Meta::Class
2197 - added support for attribute triggers in the
2199 - added tests for this
2202 - Moose no longer creates a subtype for your class
2203 if a subtype of the same name already exists, this
2204 should DWIM in 99.9999% of all cases
2206 * Moose::Util::TypeConstraints
2207 - fixed bug where incorrect subtype conflicts were
2209 - added test for this
2212 - this class can now be extended with 'use base' if
2213 you need it, it properly loads the metaclass class now
2214 - added test for this
2216 0.03_02 Wed. April 12, 2006
2218 - you must now explictly use Moose::Util::TypeConstraints
2219 it no longer gets exported for you automatically
2222 - new() now accepts hash-refs as well as key/value lists
2223 - added does() method to check for Roles
2224 - added tests for this
2226 * Moose::Meta::Class
2227 - added roles attribute along with the add_role() and
2229 - added tests for this
2232 - now adds a does() method to consuming classes
2233 which tests the class's hierarchy for roles
2234 - added tests for this
2236 0.03_01 Mon. April 10, 2006
2238 - added new Role recipe (no content yet, only code)
2241 - added 'with' keyword for Role support
2242 - added test and docs for this
2243 - fixed subtype quoting bug
2244 - added test for this
2248 - added test and docs
2250 * Moose::Util::TypeConstraints
2251 - added the message keyword to add custom
2252 error messages to type constraints
2255 - the meta role to support Moose::Role
2256 - added tests and docs
2258 * Moose::Meta::Class
2259 - moved a number of things from Moose.pm
2260 to here, they should have been here
2263 * Moose::Meta::Attribute
2264 - moved the attribute option macros here
2265 instead of putting them in Moose.pm
2267 * Moose::Meta::TypeConstraint
2268 - added the message attributes and the
2270 - added tests and docs for this
2272 0.03 Thurs. March 30, 2006
2274 - added the Moose::Cookbook with 5 recipes,
2275 describing all the stuff Moose can do.
2278 - fixed an issue with &extends super class loading
2279 it now captures errors and deals with inline
2280 packages correctly (bug found by mst, solution
2282 - added super/override & inner/augment features
2283 - added tests and docs for these
2286 - BUILDALL now takes a reference of the %params
2287 that are passed to &new, and passes that to
2290 * Moose::Util::TypeConstraints
2291 - Type constraints now survive runtime reloading
2292 - added test for this
2294 * Moose::Meta::Class
2295 - fixed the way attribute defaults are handled
2296 during instance construction (bug found by chansen)
2298 * Moose::Meta::Attribute
2299 - read-only attributes now actually enforce their
2300 read-only-ness (this corrected in Class::MOP as
2303 0.02 Tues. March 21, 2006
2305 - many more tests, fixing some bugs and
2307 - &extends now loads the base module with
2309 - added UNIVERSAL::require to the
2312 - each new Moose class will also create
2313 and register a subtype of Object which
2314 correspond to the new Moose class.
2315 - the 'isa' option in &has now only
2316 accepts strings, and will DWIM in
2319 * Moose::Util::TypeConstraints
2320 - added type coercion features
2321 - added tests for this
2322 - added support for this in attributes
2323 and instance construction
2325 - type construction no longer creates a
2326 function, it registers the type instead.
2327 - added several functions to get the
2331 - BUILDALL and DEMOLISHALL were broken
2332 because of a mis-named hash key, Whoops :)
2334 * Moose::Meta::Attribute
2335 - adding support for coercion in the
2336 autogenerated accessors
2338 * Moose::Meta::Class
2339 - adding support for coercion in the
2340 instance construction
2342 * Moose::Meta::TypeConstraint
2343 * Moose::Meta::TypeCoercion
2344 - type constraints and coercions are now
2345 full fledges meta-objects
2347 0.01 Wed. March 15, 2006
2348 - Moooooooooooooooooose!!!