1 Revision history for Perl extension Moose
4 * Moose::Util::TypeConstraints
5 - Calling subtype with a name as the only argument is now an
6 exception. If you want an anonymous subtype do:
8 my $subtype = subtype as 'Foo';
10 * Moose::Cookbook::Meta::Recipe7
11 - A new recipe, creating a custom meta-instance class.
13 * Moose::Cookbook::Basics::Recipe5
14 - Fix various typos and mistakes. Includes a patch from Radu
17 * Moose::Cookbook::Basics::Recipe9
18 - Link to this recipe from Moose.pm's builder blurb
21 - When wrapping a function with a prototype, Moose::Exporter now
22 makes sure the wrapped function still has the same
23 prototype. Patch by Daisuke Maki.
25 * Moose::Meta::Attribute
26 - Allow a subclass to set lazy_build for an inherited
27 attribute. (Dieter Pearcey).
30 - Explicitly depend on Data::OptList. We already had this dependency
31 via Sub::Exporter, but since we're using it directly we're
32 better off with it listed. (Sartak)
34 0.72 Mon, February 23, 2009
36 * Moose::Meta::Method::Constructor
37 - A mutable class accepted Foo->new(undef) without complaint,
38 while an immutable class would blow up with an unhelpful
39 error. Now, in both cases we throw a helpful error
40 instead. Reported by doy.
42 0.71_01 Sun, February 22, 2009
44 - Hopefully fixed some POD errors in a few recipes that caused
45 them to display weird on search.cpan.org.
47 * Moose::Util::TypeConstraints
48 - Calling type or subtype without the sugar helpers (as, where,
49 message) is now deprecated.
50 - The subtype function tried hard to guess what you meant, but
51 often got it wrong. For example:
53 my $subtype = subtype as 'ArrayRef[Object]';
55 This caused an error in the past, but now works as you'd
59 - Make sure Moose.pm is loaded before calling
60 Moose->throw_error. This wasn't normally an issue, but could
61 bite you in weird cases.
63 0.71 Thu, February 19, 2009
64 * Moose::Cookbook::Basics::Recipe11
65 - A new recipe which demonstrates the use of BUILDARGS and
68 * Moose::Cookbook::Roles::Recipe3
69 - A new recipe, applying a role to an object instance. (Dave
73 - Allow overriding specific keywords from "also" packages. (doy)
76 - Replace hardcoded cookbook tests with Test::Inline to ensure
77 the tests match the actual code in the recipes. (Dave Rolsky)
80 - Working on the above turned up a number of little bugs in the
81 recipe code. (Dave Rolsky)
83 * Moose::Util::TypeConstraints::Optimized
84 - Just use Class::MOP for the optimized ClassName check. (Dave
87 0.70 Sat, February 14, 2009
88 * Moose::Util::TypeConstraints
89 - Added the RoleName type (stevan)
90 - added tests for this (stevan)
92 * Moose::Cookbook::Basics::Recipe3
93 - Updated the before qw[left right] sub to be a little more
94 defensive about what it accepts (stevan)
95 - added more tests to t/000_recipies/basics/003_binary_tree.t
99 - We now always call DEMOLISHALL, even if a class does not
100 define DEMOLISH. This makes sure that method modifiers on
101 DEMOLISHALL work as expected. (doy)
102 - added tests for this (EvanCarroll)
104 * Moose::Util::MetaRole
105 - Accept roles for the wrapped_method_metaclass (rafl)
106 - added tests for this (rafl)
108 * Moose::Meta::Attribute
109 - We no longer pass the meta-attribute object as a final
110 argument to triggers. This actually changed for inlined code a
111 while back, but the non-inlined version and the docs were
115 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
116 they require 0.11. (Dave Rolsky)
119 - Lots of small changes to the manual, cookbook, and
120 elsewhere. These were based on feedback from various
121 users, too many to list here. (Dave Rolsky)
123 0.69 Thu, February 12, 2009
125 - Make some keyword errors use throw_error instead of croak
126 since Moose::Exporter wraps keywords now (Sartak)
129 - Revised every recipe for style and clarity. Also moved some
130 documentation out of cookbook recipes and into Moose::Manual
131 pages. This work was funded as part of the Moose docs grant
132 from TPF. (Dave Rolsky)
134 * Moose::Meta::Method::Delegation
135 - If the attribute doing the delegation was not populated, the
136 error message did not specify the attribute name
139 0.68 Wed, February 4, 2009
141 - Many spelling, typo, and formatting fixes by daxim.
143 * Moose::Manual::Attributes
144 - The NAME section in the POD used "Attribute" so search.cpan
145 didn't resolve links from other documents properly.
147 * Moose::Meta::Method::Overriden
148 - Now properly spelled as Overridden. Thanks to daxim for
151 0.67 Tue, February 3, 2009
153 - Lots of little typo fixes and a few clarifications. Several
154 pages didn't have proper titles, and so weren't actually
155 visible on search.cpan.org. Thanks to hanekomu for a variety
156 of fixes and formatting improvements.
158 0.66 Tue, February 3, 2009
160 - This is a brand new, extensive manual for Moose. This aims to
161 provide a complete introduction to all of Moose's
162 features. This work was funded as part of the Moose docs grant
163 from TPF. (Dave Rolsky)
165 * Moose::Meta::Attribute
166 - Added a delegation_metaclass method to replace a hard-coded
167 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
169 * Moose::Util::TypeConstraints
170 - If you created a subtype and passed a parent that Moose didn't
171 know about, it simply ignored the parent. Now it automatically
172 creates the parent as a class type. This may not be what you
173 want, but is less broken than before. (Dave Rolsky)
175 * Moose::Util::TypeConstraints
176 - This module tried throw errors by calling Moose->throw_error,
177 but it did not ensure that Moose was loaded first. This could
178 cause very unhelpful errors when it tried to throw an error
179 before Moose was loaded. (Dave Rolsky)
181 * Moose::Util::TypeConstraints
182 - You could declare a name with subtype such as "Foo!Bar" that
183 would be allowed, but if you used it in a parameterized type
184 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
185 vetting on names created via the sugar functions, so that they
186 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
188 0.65 Thu, January 22, 2008
189 * Moose and Moose::Meta::Method::Overridden
190 - If an overridden method called super(), and then the
191 superclass's method (not overridden) _also_ called super(),
192 Moose went into an endless recursion loop. Test provided by
193 Chris Prather. (Dave Rolsky)
195 * Moose::Meta::TypeConstraint
196 - All methods are now documented. (gphat)
198 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
199 - Fixed some bogus failures that occurred because we tried to
200 validate filesystem paths in a very ad-hoc and
201 not-quite-correct way. (Dave Rolsky)
203 * Moose::Util::TypeConstraints
204 - Added maybe_type to exports. See docs for details. (rjbs)
207 - Added Moose::Util::TypeConstraints to the SEE ALSO
211 - Methods created via an attribute can now fulfill a "requires"
212 declaration for a role. (nothingmuch)
214 * Moose::Meta::Method::*
215 - Stack traces from inlined code will now report its line and
216 file as being in your class, as opposed to in Moose
219 0.64 Wed, December 31, 2008
220 * Moose::Meta::Method::Accessor
221 - Always inline predicate and clearer methods (Sartak)
223 * Moose::Meta::Attribute
224 - Support for parameterized traits (Sartak)
225 - verify_against_type_constraint method to avoid duplication
226 and enhance extensibility (Sartak)
229 - Tests (but no support yet) for parameterized traits (Sartak)
232 - Require Class::MOP 0.75+, which has the side effect of making
233 sure we work on Win32. (Dave Rolsky)
235 0.63 Mon, December 8, 2008
237 - Some small grammar tweaks and bug fixes in non-Moose example
240 0.62_02 Fri, December 5, 2008
241 * Moose::Meta::Role::Application::ToClass
242 - When a class does not provide all of a role's required
243 methods, the error thrown now mentions all of the missing
244 methods, as opposed to just the first one found. Requested by
245 Curtis Poe (RT #41119). (Dave Rolsky)
247 * Moose::Meta::Method::Constructor
248 - Moose will no longer inline a constructor for your class
249 unless it inherits its constructor from Moose::Object, and
250 will warn when it doesn't inline. If you want to force
251 inlining anyway, pass "replace_constructor => 1" to
252 make_immutable. Addresses RT #40968, reported by Jon
253 Swartz. (Dave Rolsky)
254 - The quoting of default values could be broken if the default
255 contained a single quote ('). Now we use quotemeta to escape
256 anything potentially dangerous in the defaults. (Dave Rolsky)
258 0.62_01 Wed, December 3, 2008
260 - use the method->execute API for BUILDALL
261 and DEMOLISHALL (Sartak)
263 * Moose::Util::TypeConstraints
264 - We now make all the type constraint meta classes immutable
265 before creating the default types provided by Moose. This
266 should make loading Moose a little faster. (Dave Rolsky)
268 0.62 Wed November 26, 2008
269 * Moose::Meta::Role::Application::ToClass
270 Moose::Meta::Role::Application::ToRole
271 - fixed issues where excluding and aliasing the
272 same methods for a single role did not work
273 right (worked just fine with multiple
275 - added test for this (stevan)
277 * Moose::Meta::Role::Application::RoleSummation
278 - fixed the error message when trying to compose
279 a role with a role it excludes (Sartak)
282 - Catch another case where recursion caused the value
283 of $CALLER to be stamped on (t0m)
284 - added test for this (t0m)
287 - Remove the make_immutable keyword, which has been
288 deprecated since April. It breaks metaclasses that
289 use Moose without no Moose (Sartak)
291 * Moose::Meta::Attribute
292 - Removing an attribute from a class now also removes delegation
293 (handles) methods installed for that attribute (t0m)
294 - added test for this (t0m)
296 * Moose::Meta::Method::Constructor
297 - An attribute with a default that looked like a number (but was
298 really a string) would accidentally be treated as a number
299 when the constructor was made immutable (perigrin)
300 - added test for this (perigrin)
303 - create method for constructing a role
305 - added test for this (Sartak)
306 - anonymous roles! (Sartak)
307 - added test for this (Sartak)
310 - more consistent error messages (Sartak)
312 * Moose::Cookbook::Roles::Recipe1
313 - attempt to explain why a role that just requires
314 methods is useful (Sartak)
316 0.61 Fri November 7, 2008
317 * Moose::Meta::Attribute
318 - When passing a role to handles, it will be loaded if necessary
322 - Method objects returned by get_method (and other methods)
323 Could end up being returned without an associated_metaclass
324 attribute. Removing get_method_map, which is provided by
325 Class::MOP::Class, fixed this. The Moose version did nothing
326 different from its parent except introduce a bug. (Dave Rolsky)
327 - added tests for this (jdv79)
330 - Added a $VERSION to all .pm files which didn't have one. Fixes
331 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
333 * Moose::Cookbook::Basics::Recipe4
334 * Moose::Cookbook::Basics::Recipe6
335 - These files had spaces on the first line of the SYNOPSIS, as
336 opposed to a totally empty line. According to RT #40432, this
337 confuses POD parsers. (Dave Rolsky)
339 0.60 Fri October 24, 2008
341 - Passing "-traits" when loading Moose caused the Moose.pm
342 exports to be broken. Reported by t0m. (Dave Rolsky)
343 - Tests for this bug. (t0m)
346 - Change resolve_metaclass alias to use the new
347 load_first_existing_class function. This makes it a lot
348 simpler, and also around 5 times faster. (t0m)
349 - Add caching to resolve_metaclass_alias, which gives an order
350 of magnitude speedup to things which repeatedly call the
351 Moose::Meta::Attribute->does method, notably MooseX::Storage
354 * Moose::Util::TypeConstraint
355 - Put back the changes for parameterized constraints that
356 shouldn't have been removed in 0.59. We still cannot parse
357 them, but MooseX modules can create them in some other
358 way. See the 0.58 changes for more details. (jnapiorkowski)
359 - Changed the way subtypes are created so that the job is
360 delegated to a type constraint parent. This clears up some
361 hardcoded checking and should allow correct subtypes of
362 Moose::Meta::Type::Constraint. Don't rely on this new API too
363 much (create_child_type) because it may go away in the
364 future. (jnapiorkowski)
366 * Moose::Meta::TypeConstraint::Union
367 - Type constraint names are sorted as strings, not numbers.
370 * Moose::Meta::TypeConstraint::Parameterizable
371 - New parameterize method. This can be used as a factory method
372 to make a new type constraint with a given parameterized
373 type. (jnapiorkowski)
374 - added tests (jnapiorkowski)
376 0.59 Tue October 14, 2008
378 - Add abridged documentation for builder/default/initializer/
379 predicate, and link to more details sections in
380 Class::MOP::Attribute. (t0m)
382 * Moose::Util::TypeConstraints
383 - removed prototypes from all but the &-based stuff (mst)
385 * Moose::Util::TypeConstraints
386 - Creating a anonymous subtype with both a constraint and a
387 message failed with a very unhelpful error, but should just
388 work. Reported by t0m. (Dave Rolsky)
391 - Some tests that used Test::Warn if it was available failed
392 with older versions of Test::Warn. Reported by Fayland. (Dave
394 - Test firing behavior of triggers in relation to builder/default/
396 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
397 kinds of supported type. (t0m)
400 - In create(), do not pass "roles" option to the superclass
401 - added related test that creates an anon metaclass with
404 * Moose::Meta::TypeConstraint::Class
405 * Moose::Meta::TypeConstraint::Role
406 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
407 other types (as per change in 0.55_02). (t0m)
409 * Moose::Meta::TypeConstraint::Registry
410 - Fix warning when dealing with unknown type names (t0m)
412 * Moose::Util::TypeConstraints
413 - Reverted changes from 0.58 related to handle parameterized
414 types. This caused random failures on BSD and Win32 systems,
415 apparently related to the regex engine. This means that Moose
416 can no longer parse structured type constraints like
417 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
418 supported in a slightly different way via MooseX::Types some
419 time in the future. (Dave Rolsky)
421 0.58 Sat September 20, 2008
422 !! This release has an incompatible change regarding !!
423 !! how roles add methods to a class !!
425 * Roles and role application
426 ! Roles now add methods by calling add_method, not
427 alias_method. They make sure to always provide a method
428 object, which will be cloned internally. This means that it is
429 now possible to track the source of a method provided by a
430 role, and even follow its history through intermediate roles.
432 This means that methods added by a role now show up when
433 looking at a class's method list/map. (Dave Rolsky)
436 - From this release on, we'll try to maintain a list of
437 conflicting modules, and warn you if you have one
438 installed. For example, this release conflicts with ...
439 - MooseX::Singleton <= 0.11
440 - MooseX::Params::Validate <= 0.05
443 In general, we try to not break backwards compatibility for
444 most Moose users, but MooseX modules and other code which
445 extends Moose's metaclasses is often affected by very small
446 changes in the Moose internals.
448 * Moose::Meta::Method::Delegation
449 * Moose::Meta::Attribute
450 - Delegation methods now have their own method class. (Dave
453 * Moose::Meta::TypeConstraint::Parameterizable
454 - Added a new method 'parameterize' which is basically a factory
455 for the containing constraint. This makes it easier to create
456 new types of parameterized constraints. (jnapiorkowski)
458 * Moose::Meta::TypeConstraint::Union
459 - Changed the way Union types canonicalize their names to follow
460 the normalized TC naming rules, which means we strip all
461 whitespace. (jnapiorkowski)
463 * Moose::Util::TypeConstraints
464 - Parameter and Union args are now sorted, this makes Int|Str
465 the same constraint as Str|Int. (jnapiorkowski)
466 - Changes to the way Union types are parsed to more correctly
467 stringify their names. (jnapiorkowski)
468 - When creating a parameterized type, we now use the new
469 parameterize method. (jnapiorkowski)
470 - Incoming type constraint strings are now normalized to remove
471 all whitespace differences. (jnapiorkowski)
472 - Changed the way we parse type constraint strings so that we now
473 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
474 constraints. This lays the foundation for more flexible type
475 constraint implementations.
477 * Tests and docs for all the above. (jnapiorkowski)
481 - Moose::Exporter will no longer remove a subroutine that the
482 exporting package re-exports. Moose re-exports the
483 Carp::confess function, among others. The reasoning is that we
484 cannot know whether you have also explicitly imported those
485 functions for your own use, so we err on the safe side and
486 always keep them. (Dave Rolsky)
487 - added tests for this (rafl)
490 - Changes to how we fix metaclass compatibility that are much
491 too complicated to go into. The summary is that Moose is much
492 less likely to complain about metaclass incompatibility
493 now. In particular, if two metaclasses differ because
494 Moose::Util::MetaRole was used on the two corresponding
495 classes, then the difference in roles is reconciled for the
496 subclass's metaclass. (Dave Rolsky)
497 - Squashed an warning in _process_attribute (thepler)
500 - throw exceptions (sooner) for invalid attribute names (thepler)
501 - added tests for this (thepler)
503 * Moose::Util::MetaRole
504 - If you explicitly set a constructor or destructor class for a
505 metaclass object, and then applied roles to the metaclass,
506 that explicitly set class would be lost and replaced with the
510 * Moose::Meta::Attribute
511 * Moose::Meta::Method
514 * Moose::Error::Default
515 * Moose::Error::Croak
516 * Moose::Error::Confess
517 - All instances of confess() changed to use overridable
518 C<throw_error> method. This method ultimately calls a class
519 constructor, and you can change the class being called. In
520 addition, errors now pass more information than just a string.
521 The default C<error_class> behaves like C<Carp::confess>, so
522 the behavior is not visibly different for end users.
524 0.57 Wed September 3, 2008
526 - A new bit of doc intended to introduce folks familiar with
527 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
530 - Shows examples of two classes, each done first with and then
531 without Moose. This makes a nice parallel to
532 Moose::Intro. (Dave Rolsky)
534 * Moose::Util::TypeConstraints
535 - Fixed a bug in find_or_parse_type_constraint so that it
536 accepts a Moose::Meta::TypeConstraint object as the parent
537 type, not just a name (jnapiorkowski)
538 - added tests (jnapiorkowski)
541 - If Sub::Name was not present, unimporting failed to actually
542 remove some sugar subs, causing test failures (Dave Rolsky)
544 0.56 Mon September 1, 2008
545 For those not following the series of dev releases, there are
546 several major changes in this release of Moose.
547 ! Moose::init_meta should now be called as a method. See the
550 - Major performance improvements by nothingmuch.
552 - New modules for extension writers, Moose::Exporter and
553 Moose::Util::MetaRole by Dave Rolsky.
555 - Lots of doc improvements and additions, especially in the
560 * Removed all references to the experimental-but-no-longer-needed
561 Moose::Meta::Role::Application::ToMetaclassInstance.
563 * Require Class::MOP 0.65.
565 0.55_04 Sat August 30, 2008
566 * Moose::Util::MetaRole
567 * Moose::Cookbook::Extending::Recipe2
568 - This simplifies the application of roles to any meta class, as
569 well as the base object class. Reimplemented metaclass traits
570 using this module. (Dave Rolsky)
572 * Moose::Cookbook::Extending::Recipe1
573 - This a new recipe, an overview of various ways to write Moose
574 extensions (Dave Rolsky)
576 * Moose::Cookbook::Extending::Recipe3
577 * Moose::Cookbook::Extending::Recipe4
578 - These used to be Extending::Recipe1 and Extending::Recipe2,
581 0.55_03 Fri August 29, 2008
582 * No changes from 0.55_02 except increasing the Class::MOP
583 dependency to 0.64_07.
585 0.55_02 Fri August 29, 2008
586 * Makefile.PL and Moose.pm
587 - explicitly require Perl 5.8.0+ (Dave Rolsky)
589 * Moose::Util::TypeConstraints
590 - Fix warnings from find_type_constraint if the type is not
593 * Moose::Meta::TypeConstraint
594 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
595 return false if the type you specify cannot be found in the
596 type registry, rather than throwing an unhelpful and
597 coincidental exception. (t0m).
598 - added docs & test for this (t0m)
600 * Moose::Meta::TypeConstraint::Registry
601 - add_type_constraint now throws an exception if a parameter is
603 - added docs & test for this (t0m)
605 * Moose::Cookbook::FAQ
606 - Added a faq entry on the difference between "role" and "trait"
610 - Fixed a bug that caused role composition to not see a required
611 method when that method was provided by another role being
612 composed at the same time. (Dave Rolsky)
613 - test and bug finding (tokuhirom)
615 0.55_01 Wed August 20, 2008
617 !! Calling Moose::init_meta as a function is now !!
618 !! deprecated. Please see the Moose.pm docs for details. !!
620 * Moose::Meta::Method::Constructor
621 - Fix inlined constructor so that values produced by default
622 or builder methods are coerced as required. (t0m)
623 - added test for this (t0m)
625 * Moose::Meta::Attribute
626 - A lazy attribute with a default or builder did not attempt to
627 coerce the default value. The immutable code _did_
629 - added test for this (t0m)
632 - This is a new helper module for writing "Moose-alike"
633 modules. This should make the lives of MooseX module authors
634 much easier. (Dave Rolsky)
637 * Moose::Cookbook::Meta::Recipe5
638 - Implemented metaclass traits (and wrote a recipe for it):
640 use Moose -traits => 'Foo'
642 This should make writing small Moose extensions a little
645 * Moose::Cookbook::Basics::Recipe1
646 - Removed any examples of direct hashref access, and applied an
647 editorial axe to reduce verbosity. (Dave Rolsky)
649 * Moose::Cookbook::Basics::Recipe1
650 - Also applied an editorial axe here. (Dave Rolsky)
653 * Moose::Cookbook::Extending::Recipe1
654 * Moose::Cookbook::Extending::Recipe2
655 - Rewrote extending and embedding moose documentation and
656 recipes to use Moose::Exporter (Dave Rolsky)
660 - These two modules now warn when you load them from the main
661 package "main" package, because we will not export sugar to
662 main. Previously it just did nothing. (Dave Rolsky)
665 - Now provide an init_meta method just like Moose.pm, and you
666 can call this to provide an alternate role metaclass. (Dave
667 Rolsky and nothingmuch)
668 - get_method_map now respects the package cache flag (nothingmuch)
671 - Two new methods - add_method and wrap_method_body
675 - Optimizations including allowing constructors to accept hash
676 refs, making many more classes immutable, and making
677 constructors immutable. (nothingmuch)
679 0.55 Sun August 3, 2008
680 * Moose::Meta::Attribute
681 - breaking down the way 'handles' methods are
682 created so that the process can be more easily
683 overridden by subclasses (stevan)
685 * Moose::Meta::TypeConstraint
686 - fixing what is passed into a ->message with
687 the type constraints (RT #37569)
688 - added tests for this (Charles Alderman)
690 * Moose::Util::TypeConstraints
691 - fix coerce to accept anon types like subtype can (mst)
694 - reorganized the recipes into sections - Basics, Roles, Meta,
695 Extending - and wrote abstracts for each section (Dave Rolsky)
697 * Moose::Cookbook::Basics::Recipe10
698 - A new recipe that demonstrates operator overloading
699 in combination with Moose. (bluefeet)
701 * Moose::Cookbook::Meta::Recipe1
702 - an introduction to what meta is and why you'd want to make
703 your own metaclass extensions (Dave Rolsky)
705 * Moose::Cookbook::Meta::Recipe4
706 - a very simple metaclass example (Dave Rolsky)
708 * Moose::Cookbook::Extending::Recipe1
709 - how to write a Moose-alike module to use your own object base
712 * Moose::Cookbook::Extending::Recipe2
713 - how to write modules with an API just like C<Moose.pm> (Dave
717 - Tons of fixes, both syntactical and grammatical (Dave
718 Rolsky, Paul Fenwick)
720 0.54 Thurs. July 3, 2008
721 ... this is not my day today ...
723 * Moose::Meta::Attribute
724 - fixed legal_options_for_inheritance such that
725 clone_and_inherit options still works for
726 Class::MOP::Attribute objects and therefore
727 does not break MooseX::AttributeHelpers
730 0.53 Thurs. July 3, 2008
731 * Whoops, I guess I should run 'make manifest' before
732 actually releasing the module. No actual changes
733 in this release, except the fact that it includes
734 the changes that I didn't include in the last
737 0.52 Thurs. July 3, 2008
739 - added "FEATURE REQUESTS" section to the Moose docs
740 to properly direct people (stevan) (RT #34333)
741 - making 'extends' croak if it is passed a Role since
742 this is not ever something you want to do
743 (fixed by stevan, found by obra)
744 - added tests for this (stevan)
747 - adding support for DOES (as in UNIVERSAL::DOES)
749 - added test for this
751 * Moose::Meta::Attribute
752 - added legal_options_for_inheritance (wreis)
753 - added tests for this (wreis)
755 * Moose::Cookbook::Snacks::*
756 - removed some of the unfinished snacks that should
757 not have been released yet. Added some more examples
758 to the 'Keywords' snack. (stevan)
760 * Moose::Cookbook::Style
761 - added general Moose "style guide" of sorts to the
762 cookbook (nothingmuch) (RT #34335)
765 - added more BUILDARGS tests (stevan)
767 0.51 Thurs. Jun 26, 2008
769 - add unimport so "no Moose::Role" actually does
772 * Moose::Meta::Role::Application::ToRole
773 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
774 order to provide its own implementation, that method still got
775 added to the list of required methods for consumers of
776 RoleB. Now an aliased method is only added to the list of
777 required methods if the role doing the aliasing does not
778 provide its own implementation. See Recipe 11 for an example
779 of all this. (Dave Rolsky)
780 - added tests for this
782 * Moose::Meta::Method::Constructor
783 - when a single argument that wasn't a hashref was provided to
784 an immutabilized constructor, the error message was very
785 unhelpful, as opposed to the non-immutable error. Reported by
787 - added test for this (Dave Rolsky)
789 * Moose::Meta::Attribute
790 - added support for meta_attr->does("ShortAlias") (sartak)
791 - added tests for this (sartak)
792 - moved the bulk of the `handles` handling to the new
793 install_delegation method (Stevan)
796 - Added BUILDARGS, a new step in new()
798 * Moose::Meta::Role::Application::RoleSummation
799 - fix typos no one ever sees (sartak)
801 * Moose::Util::TypeConstraints
802 * Moose::Meta::TypeConstraint
803 * Moose::Meta::TypeCoercion
804 - Attempt to work around the ??{ } vs. threads issue
806 - Some null_constraint optimizations
808 0.50 Thurs. Jun 11, 2008
809 - Fixed a version number issue by bumping all modules
812 0.49 Thurs. Jun 11, 2008
813 !! This version now approx. 20-25% !!
814 !! faster with new Class::MOP 0.59 !!
816 * Moose::Meta::Attribute
817 - fixed how the is => (ro|rw) works with
818 custom defined reader, writer and accessor
820 - added docs for this (TODO).
821 - added tests for this (Thanks to Penfold)
822 - added the custom attribute alias for regular
823 Moose attributes which is "Moose"
824 - fix builder and default both being used
829 Moose::Meta::Attribute
831 Moose::Meta::Role::Composite
832 Moose::Util::TypeConstraints
833 - switched usage of reftype to ref because
837 - changing add_package_symbol to use the new
841 - fixed how DEMOLISHALL is called so that it
842 can be overrided in subclasses (thanks to Sartak)
843 - added test for this (thanks to Sartak)
845 * Moose::Util::TypeConstraints
846 - move the ClassName type check code to
847 Class::MOP::is_class_loaded (thanks to Sartak)
849 * Moose::Cookbook::Recipe11
850 - add tests for this (thanks to tokuhirom)
852 0.48 Thurs. May 29, 2008
853 (early morning release engineering)--
855 - fixing the version in Moose::Meta::Method::Destructor
856 which was causing the indexer to choke
858 0.47 Thurs. May 29, 2008
859 (late night release engineering)--
861 - fixing the version is META.yml, no functional
862 changes in this release
864 0.46 Wed. May 28, 2008
865 !! This version now approx. 20-25% !!
866 !! faster with new Class::MOP 0.57 !!
869 - some optimizations of the &initialize method
870 since it is called so often by &meta
874 - now use the get_all_package_symbols from the
875 updated Class::MOP, test suite is now 10 seconds
878 * Moose::Meta::Method::Destructor
879 - is_needed can now also be called as a class
880 method for immutablization to check if the
881 destructor object even needs to be created
884 * Moose::Meta::Method::Destructor
885 Moose::Meta::Method::Constructor
886 - added more descriptive error message to help
887 keep people from wasting time tracking an error
888 that is easily fixed by upgrading.
890 0.45 Saturday, May 24, 2008
892 - Because of work in Class::MOP 0.57, all
893 XS based functionality is now optional
894 and a Pure Perl version is supplied
895 - the CLASS_MOP_NO_XS environment variable
896 can now be used to force non-XS versions
898 - several of the packages have been tweaked
899 to take care of this, mostly we added
900 support for the package_name and name
901 variables in all the Method metaclasses
902 - before/around/after method modifiers now
903 support regexp matching of names
904 (thanks to Takatoshi Kitano)
905 - tests added for this
906 - NOTE: this only works for classes, it
907 is currently not supported in roles,
908 but, ... patches welcome
909 - All usage of Carp::confess have been replaced
910 by Carp::croak in the "keyword" functions since
911 the stack trace is usually not helpful
914 - All usage of Carp::confess have been replaced
915 by Carp::croak in the "keyword" functions since
916 the stack trace is usually not helpful
917 - The 'has' keyword for roles now accepts the
918 same array ref form that Moose.pm does
919 (has [qw/foo bar/] => (is => 'rw', ...))
920 - added test for this
922 * Moose::Meta::Attribute
923 - trigger on a ro-attribute is no longer an
924 error, as it's useful to trigger off of the
928 - added same 'add_package_symbol' fix as in
932 - does_role now handles non-Moose classes
934 - added tests for this
935 - added the 'add_method_modifier' function
936 (thanks to Takatoshi Kitano)
938 * Moose::Util::TypeConstraints
939 - subtypes of parameterizable types now are
940 themselves parameterizable types
942 * Moose::Meta::Method::Constructor
943 - fixed bug where trigger was not being
944 called by the inlined immutable
946 - added test for this (thanks to Caelum)
948 * Moose::Meta::Role::Application::ToInstance
949 - now uses the metaclass of the instance
950 (if possible) to create the anon-class
951 (thanks Jonathan Rockway)
953 * Moose::Cookbook::Recipe22
954 - added the meta-attribute trait recipe
958 - fixed hash-ordering test bug that was
959 causing occasional cpantester failures
960 - renamed the t/000_recipe/*.t tests to be
961 more descriptive (thanks to Sartak)
963 0.44 Sat. May 10, 2008
965 - made make_immutable warning cluck to
966 show where the error is (thanks mst)
969 - BUILDALL and DEMOLISHALL now call
970 ->body when looping through the
971 methods, to avoid the overloaded
973 - fixed issue where DEMOLISHALL was
974 eating the $@ values, and so not
975 working correctly, it still kind of
976 eats them, but so does vanilla perl
977 - added tests for this
979 * Moose::Cookbook::Recipe7
980 - added new recipe for immutable
981 functionality (thanks Dave Rolsky)
983 * Moose::Cookbook::Recipe9
984 - added new recipe for builder and
985 lazy_build (thanks Dave Rolsky)
987 * Moose::Cookbook::Recipe11
988 - added new recipe for method aliasing
989 and exclusion with Roles (thanks Dave Rolsky)
992 - fixed Win32 test failure (thanks spicyjack)
994 ~ removed Build.PL and Module::Build compat
995 since Module::Install has done that.
997 0.43 Wed. April, 30, 2008
999 drink more coffee before
1000 doing release engineering
1002 - whoops, forgot to do the smolder tests,
1003 and we broke some of the custom meta-attr
1004 modules. This fixes that.
1006 0.42 Mon. April 28, 2008
1007 - some bad tests slipped by, nothing else
1008 changed in this release (cpantesters++)
1010 - upped the Class::MOP dependency to 0.55
1011 since we have tests which need the C3
1014 0.41 Mon. April 28, 2008
1015 ~~ numerous documentation updates ~~
1017 - Changed all usage of die to Carp::croak for better
1018 error reporting (initial patch by Tod Hagan)
1020 ** IMPORTANT NOTE **
1021 - the make_immutable keyword is now deprecated, don't
1022 use it in any new code and please fix your old code
1023 as well. There will be 2 releases, and then it will
1029 - refactored the way inner and super work to avoid
1030 any method/@ISA cache penalty (nothingmuch)
1032 * Moose::Meta::Class
1033 - fixing &new_object to make sure trigger gets the
1034 coerced value (spotted by Charles Alderman on the
1036 - added test for this
1038 * Moose::Meta::Method::Constructor
1039 - immutable classes which had non-lazy attributes were calling
1040 the default generating sub twice in the constructor. (bug
1041 found by Jesse Luehrs, fixed by Dave Rolsky)
1042 - added tests for this (Dave Rolsky)
1043 - fix typo in initialize_body method (nothingmuch)
1045 * Moose::Meta::Method::Destructor
1046 - fix typo in initialize_body method (nothingmuch)
1048 * Moose::Meta::Method::Overriden
1049 Moose::Meta::Method::Augmented
1050 - moved the logic for these into their own
1051 classes (nothingmuch)
1053 * Moose::Meta::Attribute
1054 - inherited attributes may now be extended without
1055 restriction on the type ('isa', 'does') (Sartak)
1056 - added tests for this (Sartak)
1057 - when an attribute property is malformed (such as lazy without
1058 a default), give the name of the attribute in the error
1060 - added the &applied_traits and &has_applied_traits methods
1061 to allow introspection of traits
1062 - added tests for this
1063 - moved 'trait' and 'metaclass' argument handling to here from
1065 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1066 '+foo' syntax) (nothingmuch)
1067 - added tests for this (t0m)
1070 - localize $@ inside DEMOLISHALL to avoid it
1071 eating $@ (found by Ernesto)
1072 - added test for this (thanks to Ernesto)
1074 * Moose::Util::TypeConstraints
1075 - &find_type_constraint now DWIMs when given an
1076 type constraint object or name (nothingmuch)
1077 - &find_or_create_type_constraint superseded with a number of more
1079 - find_or_create_{isa,does}_type_constraint
1080 - find_or_parse_type_constraint
1082 * Moose::Meta::TypeConstraint
1083 Moose::Meta::TypeConstraint::Class
1084 Moose::Meta::TypeConstraint::Role
1085 Moose::Meta::TypeConstraint::Enum
1086 Moose::Meta::TypeConstraint::Union
1087 Moose::Meta::TypeConstraint::Parameterized
1088 - added the &equals method for comparing two type
1089 constraints (nothingmuch)
1090 - added tests for this (nothingmuch)
1092 * Moose::Meta::TypeConstraint
1093 - add the &parents method, which is just an alias to &parent.
1094 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1096 * Moose::Meta::TypeConstraint::Class
1097 - added the class attribute for introspection purposes
1099 - added tests for this
1101 * Moose::Meta::TypeConstraint::Enum
1102 Moose::Meta::TypeConstraint::Role
1103 - broke these out into their own classes (nothingmuch)
1105 * Moose::Cookbook::Recipe*
1106 - fixed references to test file locations in the POD
1107 and updated up some text for new Moose features
1111 - Added &resolve_metaclass_alias, a helper function for finding an actual
1112 class for a short name (e.g. in the traits list)
1114 0.40 Fri. March 14, 2008
1115 - I hate Pod::Coverage
1117 0.39 Fri. March 14, 2008
1119 - documenting the use of '+name' with attributes
1120 that come from recently composed roles. It makes
1121 sense, people are using it, and so why not just
1122 officially support it.
1123 - fixing the 'extends' keyword so that it will not
1124 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1127 - added the perl -Moose=+Class::Name feature to allow
1128 monkeypatching of classes in one liners
1131 - fixing the 'apply_all_roles' keyword so that it will not
1132 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1134 * Moose::Meta::Class
1135 - added ->create method which now supports roles (thanks to jrockway)
1136 - added tests for this
1137 - added ->create_anon_class which now supports roles and caching of
1138 the results (thanks to jrockway)
1139 - added tests for this
1140 - made ->does_role a little more forgiving when it is
1141 checking a Class::MOP era metaclasses.
1143 * Moose::Meta::Role::Application::ToInstance
1144 - it is now possible to pass extra params to be used when
1145 a role is applied to an the instance (rebless_params)
1146 - added tests for this
1148 * Moose::Util::TypeConstraints
1149 - class_type now accepts an optional second argument for a
1150 custom message. POD anotated accordingly (groditi)
1151 - added tests for this
1152 - it is now possible to make anon-enums by passing 'enum' an
1153 ARRAY ref instead of the $name => @values. Everything else
1155 - added tests for this
1158 - making test for using '+name' on attributes consumed
1159 from a role, it works and makes sense too.
1161 * Moose::Meta::Attribute
1162 - fix handles so that it doesn't return nothing
1163 when the method cannot be found, not sure why
1164 it ever did this originally, this means we now
1165 have slightly better support for AUTOLOADed
1167 - added more delegation tests
1168 - adding ->does method to this so as to better
1169 support traits and their introspection.
1170 - added tests for this
1173 - localizing the Data::Dumper configurations so
1174 that it does not pollute others (RT #33509)
1175 - made ->does a little more forgiving when it is
1176 passed Class::MOP era metaclasses.
1178 0.38 Fri. Feb. 15, 2008
1179 * Moose::Meta::Attribute
1180 - fixed initializer to correctly do
1181 type checking and coercion in the
1183 - added tests for this
1186 - fixed some finicky tests (thanks to konobi)
1188 0.37 Thurs. Feb. 14, 2008
1190 - fixed some details in Moose::init_meta
1191 and its superclass handling (thanks thepler)
1192 - added tests for this (thanks thepler)
1193 - 'has' now dies if you don't pass in name
1195 - added the 'make_immutable' keyword as a shortcut
1198 * Moose::Meta::Class
1199 Moose::Meta::Method::Constructor
1200 Moose::Meta::Attribute
1201 - making (init_arg => undef) work here too
1202 (thanks to nothingmuch)
1204 * Moose::Meta::Attribute
1205 Moose::Meta::Method::Constructor
1206 Moose::Meta::Method::Accessor
1207 - make lazy attributes respect attr initializers (rjbs)
1208 - added tests for this
1210 * Moose::Util::TypeConstraints
1211 Moose::Util::TypeConstraints::OptimizedConstraints
1212 Moose::Meta::TypeConstraints
1213 Moose::Meta::Attribute
1214 Moose::Meta::Method::Constructor
1215 Moose::Meta::Method::Accessor
1216 - making type errors use the
1217 assigned message (thanks to Sartak)
1218 - added tests for this
1220 * Moose::Meta::Method::Destructor
1221 - making sure DESTROY gets inlined properly
1222 with successive DEMOLISH calls (thanks to manito)
1224 * Moose::Meta::Attribute
1225 Moose::Meta::Method::Accessor
1226 - fixed handling of undef with type constraints
1228 - added tests for this
1231 - added &get_all_init_args and &get_all_attribute_values
1232 (thanks to Sartak and nothingmuch)
1234 0.36 Sat. Jan. 26, 2008
1236 Moose::Meta::Attribute
1237 - role type tests now support when roles are
1238 applied to non-Moose classes (found by ash)
1239 - added tests for this (thanks to ash)
1240 - couple extra tests to boost code coverage
1242 * Moose::Meta::Method::Constructor
1243 - improved fix for handling Class::MOP attributes
1244 - added test for this
1246 * Moose::Meta::Class
1247 - handled the add_attribute($attribute_meta_object)
1249 - added test for this
1251 0.35 Tues. Jan. 22, 2008
1252 * Moose::Meta::Method::Constructor
1253 - fix to make sure even Class::MOP attributes
1254 are handled correctly (Thanks to Dave Rolsky)
1255 - added test for this (also Dave Rolsky)
1257 * Moose::Meta::Class
1258 - improved error message on _apply_all_roles,
1259 you should now use Moose::Util::apply_all_roles
1260 and you shouldnt have been using a _ prefixed
1261 method in the first place ;)
1263 0.34 Mon. Jan. 21, 2008
1264 ~~~ more misc. doc. fixes ~~~
1265 ~~ updated copyright dates ~~
1267 Moose is now a postmodern object system :)
1268 - (see the POD for details)
1270 * <<Role System Refactoring>>
1271 - this release contains a major reworking and
1272 cleanup of the role system
1273 - 100% backwards compat.
1274 - Role application now restructured into seperate
1275 classes based on type of applicants
1276 - Role summation (combining of more than one role)
1277 is much cleaner and anon-classes are no longer
1278 used in this process
1279 - new Composite role metaclass
1280 - runtime application of roles to instances
1281 is now more efficient and re-uses generated
1282 classes when applicable
1284 * <<New Role composition features>>
1285 - methods can now be excluded from a given role
1287 - methods can now be aliased to another name (and
1288 still retain the original as well)
1290 * Moose::Util::TypeConstraints::OptimizedConstraints
1291 - added this module (see above)
1293 * Moose::Meta::Class
1294 - fixed the &_process_attribute method to be called
1295 by &add_attribute, so that the API is now correct
1297 * Moose::Meta::Method::Accessor
1298 - fixed bug when passing a list of values to
1299 an accessor would get (incorrectly) ignored.
1300 Thanks to Sartak for finding this ;)
1301 - added tests for this (Sartak again)
1303 * Moose::Meta::Method::Accessor
1304 Moose::Meta::Method::Constructor
1305 Moose::Meta::Attribute
1306 Moose::Meta::TypeConstraint
1307 Moose::Meta::TypeCoercion
1308 - lots of cleanup of such things as:
1310 - type constraint handling
1311 - error handling/messages
1312 (thanks to nothingmuch)
1314 * Moose::Meta::TypeConstraint::Parameterizable
1315 - added this module to support the refactor
1316 in Moose::Meta::TypeConstraint::Parameterized
1318 * Moose::Meta::TypeConstraint::Parameterized
1319 - refactored how these types are handled so they
1320 are more generic and not confined to ArrayRef
1324 - shortened some file names for better VMS support (RT #32381)
1326 0.33 Fri. Dec. 14, 2007
1327 !! Moose now loads 2 x faster !!
1328 !! with new Class::MOP 0.49 !!
1330 ++ new oose.pm module to make command line
1331 Moose-ness easier (see POD docs for more)
1333 * Moose::Meta::Class
1335 - several tweaks to take advantage of the
1336 new method map caching in Class::MOP
1338 * Moose::Meta::TypeConstraint::Parameterized
1339 - allow subtypes of ArrayRef and HashRef to
1340 be used as a container (sartak)
1341 - added tests for this
1342 - basic support for coercion to ArrayRef and
1343 HashRef for containers (sartak)
1344 - added tests for this
1346 * Moose::Meta::TypeCoercion
1347 - coercions will now create subtypes as needed
1348 so you can now add coercions to parameterized
1349 types without having to explictly define them
1350 - added tests for this
1352 * Moose::Meta::Method::Accessor
1353 - allow subclasses to decide whether we need
1354 to copy the value into a new variable (sartak)
1356 0.32 Tues. Dec. 4, 2007
1357 * Moose::Util::TypeConstraints
1358 - fixing how subtype aliases of unions work
1359 they should inherit the parent's coercion
1360 - added tests for this
1361 - you can now define multiple coercions on
1362 a single type at different times instead of
1363 having to do it all in one place
1364 - added tests for this
1366 * Moose::Meta::TypeConstraint
1367 - there is now a default constraint of sub { 1 }
1368 instead of Moose::Util::TypeConstraints setting
1371 * Moose::Meta::TypeCoercion
1372 * Moose::Meta::TypeCoercion::Union
1373 - added the &has_coercion_for_type and
1374 &add_type_coercions methods to support the
1375 new features above (although you cannot add
1376 more type coercions for Union types)
1378 0.31 Mon. Nov. 26, 2007
1379 * Moose::Meta::Attribute
1380 - made the +attr syntax handle extending types with
1381 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1382 now works if the original foo is an ArrayRef.
1383 - added tests for this.
1384 - delegation now works even if the attribute does not
1385 have a reader method using the get_read_method_ref
1386 method from Class::MOP::Attribute.
1387 - added tests for this
1388 - added docs for this
1390 * Moose::Util::TypeConstraints
1391 - passing no "additional attribute info" to
1392 &find_or_create_type_constraint will no longer
1393 attempt to create an __ANON__ type for you,
1394 instead it will just return undef.
1395 - added docs for this
1397 0.30 Fri. Nov. 23, 2007
1398 * Moose::Meta::Method::Constructor
1399 -builder related bug in inlined constructor. (groditi)
1401 * Moose::Meta::Method::Accessor
1402 - genereate unnecessary calls to predicates and refactor
1403 code generation for runtime speed (groditi)
1405 * Moose::Util::TypeConstraints
1406 - fix ClassName constraint to introspect symbol table (mst)
1407 - added more tests for this (mst)
1408 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1409 with work correctly.
1410 - added tests for this
1413 - adding the link to Recipie 11 (written by Sartak)
1414 - adding test for SYNOPSIS code
1417 - New tests for builder bug. Upon instantiation, if an
1418 attribute had a builder, no value and was not lazy the
1419 builder default was not getting run, oops. (groditi)
1421 0.29 Tues. Nov. 13, 2007
1422 * Moose::Meta::Attribute
1423 - Fix error message on missing builder method (groditi)
1425 * Moose::Meta::Method::Accessor
1426 - Fix error message on missing builder method (groditi)
1429 - Add test to check for the correct error message when
1430 builder method is missing (groditi)
1432 0.28 Tues. Nov. 13, 2007
1433 - 0.27 packaged incorrectly (groditi)
1435 0.27 Tues. Nov. 13, 2007
1436 * Moose::Meta::Attribute
1437 - Added support for the new builder option (groditi)
1438 - Added support for lazy_build option (groditi)
1439 - Changed slot initialization for predicate changes (groditi)
1441 * Moose::Meta::Method::Accessor
1442 - Added support for lazy_build option (groditi)
1443 - Fix inline methods to work with corrected predicate
1446 * Moose::Meta::Method::Constructor
1447 - Added support for lazy_build option (groditi)
1450 - tests for builder and lazy_build (groditi)
1452 * fixing some misc. bits in the docs that
1453 got mentioned on CPAN Forum & perlmonks
1456 - fixed how required methods are handled
1457 when they encounter overriden or modified
1458 methods from a class (thanks to confound).
1459 - added tests for this
1461 * Moose::Util::TypeConstraint
1462 - fixed the type notation parser so that
1463 the | always creates a union and so is
1464 no longer a valid type char (thanks to
1465 konobi, mugwump and #moose for working
1467 - added more tests for this
1469 0.26 Thurs. Sept. 27, 2007
1472 * Parameterized Types
1473 We now support parameterized collection types, such as:
1474 ArrayRef[Int] # array or integers
1475 HashRef[Object] # a hash with object values
1476 They can also be nested:
1477 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1478 And work with the type unions as well:
1479 ArrayRef[Int | Str] # array of integers of strings
1481 * Better Framework Extendability
1482 Moose.pm is now "extendable" such that it is now much
1483 easier to extend the framework and add your own keywords
1484 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1485 section of the Moose.pm docs.
1488 In an effort to begin documenting some of the various
1489 details of Moose as well as some common idioms, we have
1490 created Moose::Cookbook::Snacks as a place to find
1491 small (easily digestable) nuggets of Moose code.
1494 ~ Several doc updates/cleanup thanks to castaway ~
1496 - converted build system to use Module::Install instead of
1497 Module::Build (thanks to jrockway)
1500 - added all the meta classes to the immutable list and
1501 set it to inline the accessors
1502 - fix import to allow Sub::Exporter like { into => }
1503 and { into_level => } (perigrin)
1504 - exposed and documented init_meta() to allow better
1505 embedding and extending of Moose (perigrin)
1508 - complete re-organization of the test suite
1509 - added some new tests as well
1510 - finally re-enabled the Moose::POOP test since
1511 the new version of DBM::Deep now works again
1514 * Moose::Meta::Class
1515 - fixed very odd and very nasty recursion bug with
1517 - added tests for this (eilara)
1519 * Moose::Meta::Attribute
1520 Moose::Meta::Method::Constructor
1521 Moose::Meta::Method::Accessor
1522 - fixed issue with overload::Overloaded getting called
1523 on non-blessed items. (RT #29269)
1524 - added tests for this
1526 * Moose::Meta::Method::Accessor
1527 - fixed issue with generated accessor code making
1528 assumptions about hash based classes (thanks to dexter)
1530 * Moose::Coookbook::Snacks
1531 - these are bits of documentation, not quite as big as
1532 Recipes but which have no clear place in the module docs.
1533 So they are Snacks! (horray for castaway++)
1535 * Moose::Cookbook::Recipe4
1536 - updated it to use the new ArrayRef[MyType] construct
1537 - updated the accompanying test as well
1539 +++ Major Refactor of the Type Constraint system +++
1540 +++ with new features added as well +++
1542 * Moose::Util::TypeConstraint
1543 - no longer uses package variable to keep track of
1544 the type constraints, now uses the an instance of
1545 Moose::Meta::TypeConstraint::Registry to do it
1546 - added more sophisticated type notation parsing
1548 - added tests for this
1550 * Moose::Meta::TypeConstraint
1551 - some minor adjustments to make subclassing easier
1552 - added the package_defined_in attribute so that we
1553 can track where the type constraints are created
1555 * Moose::Meta::TypeConstraint::Union
1556 - this is now been refactored to be a subclass of
1557 Moose::Meta::TypeConstraint
1559 * Moose::Meta::TypeCoercion::Union
1560 - this has been added to service the newly refactored
1561 Moose::Meta::TypeConstraint::Union and is itself
1562 a subclass of Moose::Meta::TypeCoercion
1564 * Moose::Meta::TypeConstraint::Parameterized
1565 - added this module (taken from MooseX::AttributeHelpers)
1566 to help construct nested collection types
1567 - added tests for this
1569 * Moose::Meta::TypeConstraint::Registry
1570 - added this class to keep track of type constraints
1572 0.25 Mon. Aug. 13, 2007
1574 - Documentation update to reference Moose::Util::TypeConstraints
1575 under 'isa' in 'has' for how to define a new type
1576 (thanks to shlomif).
1578 * Moose::Meta::Attribute
1579 - required attributes now will no longer accept undef
1580 from the constructor, even if there is a default and lazy
1581 - added tests for this
1582 - default subroutines must return a value which passes the
1584 - added tests for this
1586 * Moose::Meta::Attribute
1587 * Moose::Meta::Method::Constructor
1588 * Moose::Meta::Method::Accessor
1589 - type-constraint tests now handle overloaded objects correctly
1590 in the error message
1591 - added tests for this (thanks to EvanCarroll)
1593 * Moose::Meta::TypeConstraint::Union
1594 - added (has_)hand_optimized_constraint to this class so that
1595 it behaves as the regular Moose::Meta::TypeConstraint does.
1598 - large refactoring of this code
1599 - added several more tests
1600 - tests for subtle conflict resolition issues
1601 added, but not currently running
1604 * Moose::Cookbook::Recipe7
1605 - added new recipe for augment/inner functionality
1607 - added test for this
1610 - a formal definition of roles (still in progress)
1613 - utilities for easier working with Moose classes
1614 - added tests for these
1617 - This contains Moose specific test functions
1618 - added tests for these
1620 0.24 Tues. July 3, 2007
1621 ~ Some doc updates/cleanup ~
1623 * Moose::Meta::Attribute
1624 - added support for roles to be given as parameters
1625 to the 'handles' option.
1626 - added tests and docs for this
1627 - the has '+foo' attribute form now accepts changes to
1628 the lazy option, and the addition of a handles option
1629 (but not changing the handles option)
1630 - added tests and docs for this
1633 - required methods are now fetched using find_method_by_name
1634 so that required methods can come from superclasses
1635 - adjusted tests for this
1637 0.23 Mon. June 18, 2007
1638 * Moose::Meta::Method::Constructor
1639 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1640 * Moose::Meta::Class
1641 - Modify make_immutable to work with the new Class::MOP immutable
1642 mechanism + POD + very basic test (groditi)
1643 * Moose::Meta::Attribute
1644 - Fix handles to use goto() so that caller() comes out properly on
1645 the other side (perigrin)
1647 0.22 Thurs. May 31, 2007
1648 * Moose::Util::TypeConstraints
1649 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1650 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1651 prototypes for functions
1652 - added the ClassName type constraint, this checks for strings
1653 which will respond true to ->isa(UNIVERSAL).
1654 - added tests and docs for this
1655 - subtyping just in name now works correctly by making the
1656 default for where be { 1 }
1657 - added test for this
1659 * Moose::Meta::Method::Accessor
1660 - coerce and lazy now work together correctly, thanks to
1661 merlyn for finding this bug
1662 - tests added for this
1663 - fix reader presedence bug in Moose::Meta::Attribute + tests
1666 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1667 a HASH-ref and missed. This produces better error messages then
1668 having it die cause undef is not a HASH.
1669 - added tests for this
1671 0.21 Thursday, May 2nd, 2007
1673 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1674 - modified unimport to remove super and inner along with the rest
1675 - altered unimport tests to handle this
1678 - altered super export to populate SUPER_SLOT
1680 * Moose::Meta::Class
1681 - altered augment and override modifier application to use *_SLOT
1682 - modified tests for these to unimport one test class each to test
1685 - fixed issue where custom attribute metaclasses
1686 where not handled correctly in roles
1687 - added tests for this
1689 * Moose::Meta::Class
1690 - fixed issue where extending metaclasses with
1691 roles would blow up. Thanks to Aankhen`` for
1692 finding this insidious error, and it's solution.
1694 ~~ lots of spelling and grammer fixes in the docs,
1695 many many thanks to rlb3 and Aankhen for these :)
1697 0.20 Friday, April 6th, 2007
1698 >> I messed up the SKIP logic in one test
1699 so this release is just to fix that.
1702 - 'has' now also accepts an ARRAY ref
1703 to create multiple attrs (see docs)
1704 (thanks to konobi for this)
1705 - added tests and docs
1707 0.19 Thurs. April 5th, 2007
1708 ~~ More documentation updates ~~
1710 * Moose::Util::TypeConstraints
1711 - 'type' now supports messages as well
1712 thanks to phaylon for finding this
1713 - added tests for this
1714 - added &list_all_type_constraints and
1715 &list_all_builtin_type_constraints
1716 functions to facilitate introspection.
1718 * Moose::Meta::Attribute
1719 - fixed regexp 'handles' declarations
1720 to build the list of delegated methods
1721 correctly (and not override important
1722 things like &new) thanks to ashleyb
1724 - added tests and docs for this
1725 - added the 'documentation' attributes
1726 so that you can actually document your
1727 attributes and inspect them through the
1729 - added tests and docs for this
1731 * Moose::Meta::Class
1732 - when loading custom attribute metaclasses
1733 it will first look in for the class in the
1734 Moose::Meta::Attribute::Custom::$name, and
1735 then default to just loading $name.
1736 - added tests and docs for this
1738 * Moose::Meta::TypeConstraint
1739 - type constraints now stringify to their names.
1740 - added test for this
1743 - added tests to assure we work with Module::Refresh
1744 - added stricter test skip logic in the Moose POOP
1745 test, ask Rob Kinyon why.
1746 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1748 0.18 Sat. March 10, 2007
1749 ~~ Many, many documentation updates ~~
1752 - We now use Class::MOP::load_class to
1754 - added tests to show types and subtypes
1755 working with Declare::Constraints::Simple
1756 and Test::Deep as constraint engines.
1759 !! You must have Class::MOP 0.37_001 !!
1760 !! for this developer release to work !!
1762 This release was primarily adding the immutable
1763 feature to Moose. An immutable class is one which
1764 you promise not to alter. When you set the class
1765 as immutable it will perform various bits of
1766 memoization and inline certain part of the code
1767 (constructors, destructors and accessors). This
1768 minimizes (and in some cases totally eliminates)
1769 one of Moose's biggest performance hits. This
1770 feature is not on by default, and is 100% optional.
1771 It has several configurable bits as well, so you
1772 can pick and choose to your specific needs.
1774 The changes involved in this were fairly wide and
1775 highly specific, but 100% backwards compatible, so
1776 I am not going to enumerate them here. If you are
1777 truely interested in what was changed, please do
1780 0.17 Tues. Nov. 14, 2006
1781 * Moose::Meta::Method::Accessor
1782 - bugfix for read-only accessors which
1783 are have a type constraint and lazy.
1784 Thanks to chansen for finding it.
1786 0.16 Tues. Nov. 14, 2006
1788 There are some speed improvements in this release,
1789 but they are only the begining, so stay tuned.
1792 - BUILDALL and DEMOLISHALL no longer get
1793 called unless they actually need to be.
1794 This gave us a signifigant speed boost
1795 for the cases when there is no BUILD or
1796 DEMOLISH method present.
1798 * Moose::Util::TypeConstraints
1799 * Moose::Meta::TypeConstraint
1800 - added an 'optimize_as' option to the
1801 type constraint, which allows for a
1802 hand optimized version of the type
1803 constraint to be used when possible.
1804 - Any internally created type constraints
1805 now provide an optimized version as well.
1807 0.15 Sun. Nov. 5, 2006
1809 This version of Moose *must* have Class::MOP 0.36 in order
1810 to work correctly. A number of small internal tweaks have
1811 been made in order to be compatible with that release.
1813 * Moose::Util::TypeConstraints
1814 - added &unimport so that you can clean out
1815 your class namespace of these exported
1818 * Moose::Meta::Class
1819 - fixed minor issue which occasionally
1820 comes up during global destruction
1822 - moved Moose::Meta::Method::Overriden into
1826 - moved Moose::Meta::Role::Method into
1829 * Moose::Meta::Attribute
1830 - changed how we do type checks so that
1831 we reduce the overall cost, but still
1834 - moved accessor generation methods to
1835 Moose::Meta::Method::Accessor to
1836 conform to the API changes from
1839 * Moose::Meta::TypeConstraint
1840 - changed how constraints are compiled
1841 so that we do less recursion and more
1842 iteration. This makes the type check
1844 - moved Moose::Meta::TypeConstraint::Union
1847 * Moose::Meta::Method::Accessor
1848 - created this from methods formerly found in
1849 Moose::Meta::Attribute
1851 * Moose::Meta::Role::Method
1852 - moved this from Moose::Meta::Role
1854 * Moose::Meta::Method::Overriden
1855 - moved this from Moose::Meta::Class
1857 * Moose::Meta::TypeConstraint::Union
1858 - moved this from Moose::Meta::TypeConstraint
1860 0.14 Mon. Oct. 9, 2006
1862 * Moose::Meta::Attribute
1863 - fixed lazy attributes which were not getting
1864 checked with the type constraint (thanks ashley)
1865 - added tests for this
1866 - removed the over-enthusiastic DWIMery of the
1867 automatic ArrayRef and HashRef defaults, it
1868 broke predicates in an ugly way.
1869 - removed tests for this
1871 0.13 Sat. Sept. 30, 2006
1873 This version of Moose *must* have Class::MOP 0.35 in order
1874 to work correctly. A number of small internal tweaks have
1875 been made in order to be compatible with that release.
1878 - Removed the use of UNIVERSAL::require to be a better
1879 symbol table citizen and remove a dependency
1880 (thanks Adam Kennedy)
1882 **~~ removed experimental & undocumented feature ~~**
1883 - commented out the 'method' and 'self' keywords, see the
1884 comments for more info.
1887 - added a FAQ and WTF files to document frequently
1888 asked questions and common problems
1890 * Moose::Util::TypeConstraints
1891 - added GlobRef and FileHandle type constraint
1892 - added tests for this
1894 * Moose::Meta::Attribute
1895 - if your attribute 'isa' ArrayRef of HashRef, and you have
1896 not explicitly set a default, then make the default DWIM.
1897 This will also work for subtypes of ArrayRef and HashRef
1899 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1900 - new test added for this (thanks to ashley)
1903 - added basic support for runtime role composition
1904 but this is still *highly experimental*, so feedback
1905 is much appreciated :)
1906 - added tests for this
1908 * Moose::Meta::TypeConstraint
1909 - the type constraint now handles the coercion process
1910 through delegation, this is to support the coercion
1913 * Moose::Meta::TypeConstraint::Union
1914 - it is now possible for coercions to be performed
1916 - added tests for this (thanks to konobi)
1918 * Moose::Meta::TypeCoercion
1919 - properly capturing error when type constraint
1923 - Scalar::Util 1.18 is bad on Win32, so temporarily
1924 only require version 1.17 for Win32 and cygwin.
1925 (thanks Adam Kennedy)
1927 0.12 Sat. Sept. 1, 2006
1929 - Recipe5 (subtypes & coercion) has been written
1932 - fixed "bad meta" error message to be more descriptive
1933 - fixed &unimport to not remove the &inner and &super
1934 keywords because we need to localize them.
1935 - fixed number of spelling/grammer issues, thanks Theory :)
1937 **~~ experimental & undocumented feature ~~**
1938 - added the method and self keywords, they are basically
1939 just sugar, and they may not stay around.
1942 - added &dump method to easily Data::Dumper
1945 * Moose::Meta::TypeConstraint
1946 - added the &is_a_type_of method to check both the current
1947 and the subtype of a method (similar to &isa with classes)
1950 - this is now a subclass of Class::MOP::Module, and no longer
1951 creates the _role_meta ugliness of before.
1952 - fixed tests to reflect this change
1954 0.11 Wed. July 12, 2006
1956 - added an &unimport method to remove all the keywords
1957 that Moose will import, simply add 'no Moose' to the
1958 bottom of your class file.
1961 - fixed some test failures caused by a forgotten test
1964 0.10 Thurs. July 6, 2006
1966 - improved error message when loading modules so
1967 it is less confusing when you load a role.
1968 - added &calculate_all_roles method to
1969 Moose::Meta::Class and Moose::Meta::Role
1972 This module has been tested against Class::MOP 0.30
1973 but it does not yet utilize the optimizations
1974 it makes available. Stay tuned for that ;)
1976 0.09_03 Fri. June 23, 2006
1977 ++ DEVELOPER RELEASE ++
1979 - 'use strict' and 'use warnings' are no longer
1980 needed in Moose classes, Moose itself will
1981 turn them on for you.
1982 - added tests for this
1983 - moved code from exported subs to private methods
1984 in Moose::Meta::Class
1987 - as with Moose, strict and warnings are
1988 automatically turned on for you.
1989 - added tests for this
1992 - now handles an edge case for override errors
1993 - added tests for this
1994 - added some more edge case tests
1996 0.09_02 Tues. May 16, 2006
1997 ++ DEVELOPER RELEASE ++
1999 - added prototypes to the exported subs
2003 - added prototypes to the exported subs
2006 * Moose::Util::TypeConstraints
2007 - cleaned up prototypes for the subs
2010 0.09_01 Fri. May 12, 2006
2011 ++ DEVELOPER RELEASE ++
2012 - This release works in combination with
2013 Class::MOP 0.29_01, it is a developer
2014 release because it uses the a new
2015 instance sub-protocol and a fairly
2016 complete Role implementation. It has
2017 not yet been optimized, so it slower
2018 the the previous CPAN version. This
2019 release also lacks good updated docs,
2020 the official release will have updated docs.
2023 - refactored the keyword exports
2024 - 'with' now checks Role validaity and
2025 accepts more than one Role at a time
2026 - 'extends' makes metaclass adjustments as
2027 needed to ensure metaclass compatibility
2030 - refactored the keyword exports
2031 - 'with' now checks Role validaity and
2032 accepts more than one Role at a time
2034 * Moose::Util::TypeConstraints
2035 - added the 'enum' keyword for simple
2036 string enumerations which can be used as
2038 - see example of usage in t/202_example.t
2041 - more careful checking of params to new()
2044 - much work done on the role composition
2045 - many new tests for conflict detection
2046 and composition edge cases
2047 - not enough documentation, I suggest
2048 looking at the tests
2050 * Moose::Meta::Instance
2051 - added new Instance metaclass to support
2052 the new Class::MOP instance protocol
2054 * Moose::Meta::Class
2055 - some small changes to support the new
2057 - some small additions to support Roles
2059 * Moose::Meta::Attribute
2060 - some improvements to the accessor generation code
2062 - some small changes to support the new
2064 - (still somewhat) experimental delegation support
2065 with the 'handles' option
2066 - added several tests for this
2067 - no docs for this yet
2069 0.05 Thurs. April 27, 2006
2071 - keywords are now exported with Sub::Exporter
2072 thanks to chansen for this commit
2073 - has keyword now takes a 'metaclass' option
2074 to support custom attribute meta-classes
2075 on a per-attribute basis
2076 - added tests for this
2077 - the 'has' keyword not accepts inherited slot
2078 specifications (has '+foo'). This is still an
2079 experimental feature and probably not finished
2080 see t/038_attribute_inherited_slot_specs.t for
2081 more details, or ask about it on #moose
2082 - added tests for this
2085 - keywords are now exported with Sub::Exporter
2087 * Moose::Utils::TypeConstraints
2088 - reorganized the type constraint hierarchy, thanks
2089 to nothingmuch and chansen for his help and advice
2091 - added some tests for this
2092 - keywords are now exported with Sub::Exporter
2093 thanks to chansen for this commit
2095 * Moose::Meta::Class
2096 - due to changes in Class::MOP, we had to change
2097 construct_instance (for the better)
2099 * Moose::Meta::Attribute
2100 - due to changes in Class::MOP, we had to add the
2101 initialize_instance_slot method (it's a good thing)
2103 * Moose::Meta::TypeConstraint
2104 - added type constraint unions
2105 - added tests for this
2106 - added the is_subtype_of predicate method
2107 - added tests for this
2109 0.04 Sun. April 16th, 2006
2111 - Roles can now consume other roles
2112 - added tests for this
2113 - Roles can specify required methods now with
2114 the requires() keyword
2115 - added tests for this
2118 - ripped out much of it's guts ,.. much cleaner now
2119 - added required methods and correct handling of
2120 them in apply() for both classes and roles
2121 - added tests for this
2122 - no longer adds a does() method to consuming classes
2123 it relys on the one in Moose::Object
2124 - added roles attribute and some methods to support
2125 roles consuming roles
2127 * Moose::Meta::Attribute
2128 - added support for triggers on attributes
2129 - added tests for this
2130 - added support for does option on an attribute
2131 - added tests for this
2133 * Moose::Meta::Class
2134 - added support for attribute triggers in the
2136 - added tests for this
2139 - Moose no longer creates a subtype for your class
2140 if a subtype of the same name already exists, this
2141 should DWIM in 99.9999% of all cases
2143 * Moose::Util::TypeConstraints
2144 - fixed bug where incorrect subtype conflicts were
2146 - added test for this
2149 - this class can now be extended with 'use base' if
2150 you need it, it properly loads the metaclass class now
2151 - added test for this
2153 0.03_02 Wed. April 12, 2006
2155 - you must now explictly use Moose::Util::TypeConstraints
2156 it no longer gets exported for you automatically
2159 - new() now accepts hash-refs as well as key/value lists
2160 - added does() method to check for Roles
2161 - added tests for this
2163 * Moose::Meta::Class
2164 - added roles attribute along with the add_role() and
2166 - added tests for this
2169 - now adds a does() method to consuming classes
2170 which tests the class's hierarchy for roles
2171 - added tests for this
2173 0.03_01 Mon. April 10, 2006
2175 - added new Role recipe (no content yet, only code)
2178 - added 'with' keyword for Role support
2179 - added test and docs for this
2180 - fixed subtype quoting bug
2181 - added test for this
2185 - added test and docs
2187 * Moose::Util::TypeConstraints
2188 - added the message keyword to add custom
2189 error messages to type constraints
2192 - the meta role to support Moose::Role
2193 - added tests and docs
2195 * Moose::Meta::Class
2196 - moved a number of things from Moose.pm
2197 to here, they should have been here
2200 * Moose::Meta::Attribute
2201 - moved the attribute option macros here
2202 instead of putting them in Moose.pm
2204 * Moose::Meta::TypeConstraint
2205 - added the message attributes and the
2207 - added tests and docs for this
2209 0.03 Thurs. March 30, 2006
2211 - added the Moose::Cookbook with 5 recipes,
2212 describing all the stuff Moose can do.
2215 - fixed an issue with &extends super class loading
2216 it now captures errors and deals with inline
2217 packages correctly (bug found by mst, solution
2219 - added super/override & inner/augment features
2220 - added tests and docs for these
2223 - BUILDALL now takes a reference of the %params
2224 that are passed to &new, and passes that to
2227 * Moose::Util::TypeConstraints
2228 - Type constraints now survive runtime reloading
2229 - added test for this
2231 * Moose::Meta::Class
2232 - fixed the way attribute defaults are handled
2233 during instance construction (bug found by chansen)
2235 * Moose::Meta::Attribute
2236 - read-only attributes now actually enforce their
2237 read-only-ness (this corrected in Class::MOP as
2240 0.02 Tues. March 21, 2006
2242 - many more tests, fixing some bugs and
2244 - &extends now loads the base module with
2246 - added UNIVERSAL::require to the
2249 - each new Moose class will also create
2250 and register a subtype of Object which
2251 correspond to the new Moose class.
2252 - the 'isa' option in &has now only
2253 accepts strings, and will DWIM in
2256 * Moose::Util::TypeConstraints
2257 - added type coercion features
2258 - added tests for this
2259 - added support for this in attributes
2260 and instance construction
2262 - type construction no longer creates a
2263 function, it registers the type instead.
2264 - added several functions to get the
2268 - BUILDALL and DEMOLISHALL were broken
2269 because of a mis-named hash key, Whoops :)
2271 * Moose::Meta::Attribute
2272 - adding support for coercion in the
2273 autogenerated accessors
2275 * Moose::Meta::Class
2276 - adding support for coercion in the
2277 instance construction
2279 * Moose::Meta::TypeConstraint
2280 * Moose::Meta::TypeCoercion
2281 - type constraints and coercions are now
2282 full fledges meta-objects
2284 0.01 Wed. March 15, 2006
2285 - Moooooooooooooooooose!!!