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).
29 * Moose::Meta::Role::Application::ToInstance
30 - Attempting to apply the same role to an object repeatedly is
31 now a no-op after the first application. Previously, doing
32 this to an object instance eventually caused recursion
33 warnings from Perl. Reported by Curtis Poe. RT #43904.
35 0.72 Mon, February 23, 2009
37 * Moose::Meta::Method::Constructor
38 - A mutable class accepted Foo->new(undef) without complaint,
39 while an immutable class would blow up with an unhelpful
40 error. Now, in both cases we throw a helpful error
41 instead. Reported by doy.
43 0.71_01 Sun, February 22, 2009
45 - Hopefully fixed some POD errors in a few recipes that caused
46 them to display weird on search.cpan.org.
48 * Moose::Util::TypeConstraints
49 - Calling type or subtype without the sugar helpers (as, where,
50 message) is now deprecated.
51 - The subtype function tried hard to guess what you meant, but
52 often got it wrong. For example:
54 my $subtype = subtype as 'ArrayRef[Object]';
56 This caused an error in the past, but now works as you'd
60 - Make sure Moose.pm is loaded before calling
61 Moose->throw_error. This wasn't normally an issue, but could
62 bite you in weird cases.
64 0.71 Thu, February 19, 2009
65 * Moose::Cookbook::Basics::Recipe11
66 - A new recipe which demonstrates the use of BUILDARGS and
69 * Moose::Cookbook::Roles::Recipe3
70 - A new recipe, applying a role to an object instance. (Dave
74 - Allow overriding specific keywords from "also" packages. (doy)
77 - Replace hardcoded cookbook tests with Test::Inline to ensure
78 the tests match the actual code in the recipes. (Dave Rolsky)
81 - Working on the above turned up a number of little bugs in the
82 recipe code. (Dave Rolsky)
84 * Moose::Util::TypeConstraints::Optimized
85 - Just use Class::MOP for the optimized ClassName check. (Dave
88 0.70 Sat, February 14, 2009
89 * Moose::Util::TypeConstraints
90 - Added the RoleName type (stevan)
91 - added tests for this (stevan)
93 * Moose::Cookbook::Basics::Recipe3
94 - Updated the before qw[left right] sub to be a little more
95 defensive about what it accepts (stevan)
96 - added more tests to t/000_recipies/basics/003_binary_tree.t
100 - We now always call DEMOLISHALL, even if a class does not
101 define DEMOLISH. This makes sure that method modifiers on
102 DEMOLISHALL work as expected. (doy)
103 - added tests for this (EvanCarroll)
105 * Moose::Util::MetaRole
106 - Accept roles for the wrapped_method_metaclass (rafl)
107 - added tests for this (rafl)
109 * Moose::Meta::Attribute
110 - We no longer pass the meta-attribute object as a final
111 argument to triggers. This actually changed for inlined code a
112 while back, but the non-inlined version and the docs were
116 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
117 they require 0.11. (Dave Rolsky)
120 - Lots of small changes to the manual, cookbook, and
121 elsewhere. These were based on feedback from various
122 users, too many to list here. (Dave Rolsky)
124 0.69 Thu, February 12, 2009
126 - Make some keyword errors use throw_error instead of croak
127 since Moose::Exporter wraps keywords now (Sartak)
130 - Revised every recipe for style and clarity. Also moved some
131 documentation out of cookbook recipes and into Moose::Manual
132 pages. This work was funded as part of the Moose docs grant
133 from TPF. (Dave Rolsky)
135 * Moose::Meta::Method::Delegation
136 - If the attribute doing the delegation was not populated, the
137 error message did not specify the attribute name
140 0.68 Wed, February 4, 2009
142 - Many spelling, typo, and formatting fixes by daxim.
144 * Moose::Manual::Attributes
145 - The NAME section in the POD used "Attribute" so search.cpan
146 didn't resolve links from other documents properly.
148 * Moose::Meta::Method::Overriden
149 - Now properly spelled as Overridden. Thanks to daxim for
152 0.67 Tue, February 3, 2009
154 - Lots of little typo fixes and a few clarifications. Several
155 pages didn't have proper titles, and so weren't actually
156 visible on search.cpan.org. Thanks to hanekomu for a variety
157 of fixes and formatting improvements.
159 0.66 Tue, February 3, 2009
161 - This is a brand new, extensive manual for Moose. This aims to
162 provide a complete introduction to all of Moose's
163 features. This work was funded as part of the Moose docs grant
164 from TPF. (Dave Rolsky)
166 * Moose::Meta::Attribute
167 - Added a delegation_metaclass method to replace a hard-coded
168 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
170 * Moose::Util::TypeConstraints
171 - If you created a subtype and passed a parent that Moose didn't
172 know about, it simply ignored the parent. Now it automatically
173 creates the parent as a class type. This may not be what you
174 want, but is less broken than before. (Dave Rolsky)
176 * Moose::Util::TypeConstraints
177 - This module tried throw errors by calling Moose->throw_error,
178 but it did not ensure that Moose was loaded first. This could
179 cause very unhelpful errors when it tried to throw an error
180 before Moose was loaded. (Dave Rolsky)
182 * Moose::Util::TypeConstraints
183 - You could declare a name with subtype such as "Foo!Bar" that
184 would be allowed, but if you used it in a parameterized type
185 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
186 vetting on names created via the sugar functions, so that they
187 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
189 0.65 Thu, January 22, 2008
190 * Moose and Moose::Meta::Method::Overridden
191 - If an overridden method called super(), and then the
192 superclass's method (not overridden) _also_ called super(),
193 Moose went into an endless recursion loop. Test provided by
194 Chris Prather. (Dave Rolsky)
196 * Moose::Meta::TypeConstraint
197 - All methods are now documented. (gphat)
199 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
200 - Fixed some bogus failures that occurred because we tried to
201 validate filesystem paths in a very ad-hoc and
202 not-quite-correct way. (Dave Rolsky)
204 * Moose::Util::TypeConstraints
205 - Added maybe_type to exports. See docs for details. (rjbs)
208 - Added Moose::Util::TypeConstraints to the SEE ALSO
212 - Methods created via an attribute can now fulfill a "requires"
213 declaration for a role. (nothingmuch)
215 * Moose::Meta::Method::*
216 - Stack traces from inlined code will now report its line and
217 file as being in your class, as opposed to in Moose
220 0.64 Wed, December 31, 2008
221 * Moose::Meta::Method::Accessor
222 - Always inline predicate and clearer methods (Sartak)
224 * Moose::Meta::Attribute
225 - Support for parameterized traits (Sartak)
226 - verify_against_type_constraint method to avoid duplication
227 and enhance extensibility (Sartak)
230 - Tests (but no support yet) for parameterized traits (Sartak)
233 - Require Class::MOP 0.75+, which has the side effect of making
234 sure we work on Win32. (Dave Rolsky)
236 0.63 Mon, December 8, 2008
238 - Some small grammar tweaks and bug fixes in non-Moose example
241 0.62_02 Fri, December 5, 2008
242 * Moose::Meta::Role::Application::ToClass
243 - When a class does not provide all of a role's required
244 methods, the error thrown now mentions all of the missing
245 methods, as opposed to just the first one found. Requested by
246 Curtis Poe (RT #41119). (Dave Rolsky)
248 * Moose::Meta::Method::Constructor
249 - Moose will no longer inline a constructor for your class
250 unless it inherits its constructor from Moose::Object, and
251 will warn when it doesn't inline. If you want to force
252 inlining anyway, pass "replace_constructor => 1" to
253 make_immutable. Addresses RT #40968, reported by Jon
254 Swartz. (Dave Rolsky)
255 - The quoting of default values could be broken if the default
256 contained a single quote ('). Now we use quotemeta to escape
257 anything potentially dangerous in the defaults. (Dave Rolsky)
259 0.62_01 Wed, December 3, 2008
261 - use the method->execute API for BUILDALL
262 and DEMOLISHALL (Sartak)
264 * Moose::Util::TypeConstraints
265 - We now make all the type constraint meta classes immutable
266 before creating the default types provided by Moose. This
267 should make loading Moose a little faster. (Dave Rolsky)
269 0.62 Wed November 26, 2008
270 * Moose::Meta::Role::Application::ToClass
271 Moose::Meta::Role::Application::ToRole
272 - fixed issues where excluding and aliasing the
273 same methods for a single role did not work
274 right (worked just fine with multiple
276 - added test for this (stevan)
278 * Moose::Meta::Role::Application::RoleSummation
279 - fixed the error message when trying to compose
280 a role with a role it excludes (Sartak)
283 - Catch another case where recursion caused the value
284 of $CALLER to be stamped on (t0m)
285 - added test for this (t0m)
288 - Remove the make_immutable keyword, which has been
289 deprecated since April. It breaks metaclasses that
290 use Moose without no Moose (Sartak)
292 * Moose::Meta::Attribute
293 - Removing an attribute from a class now also removes delegation
294 (handles) methods installed for that attribute (t0m)
295 - added test for this (t0m)
297 * Moose::Meta::Method::Constructor
298 - An attribute with a default that looked like a number (but was
299 really a string) would accidentally be treated as a number
300 when the constructor was made immutable (perigrin)
301 - added test for this (perigrin)
304 - create method for constructing a role
306 - added test for this (Sartak)
307 - anonymous roles! (Sartak)
308 - added test for this (Sartak)
311 - more consistent error messages (Sartak)
313 * Moose::Cookbook::Roles::Recipe1
314 - attempt to explain why a role that just requires
315 methods is useful (Sartak)
317 0.61 Fri November 7, 2008
318 * Moose::Meta::Attribute
319 - When passing a role to handles, it will be loaded if necessary
323 - Method objects returned by get_method (and other methods)
324 Could end up being returned without an associated_metaclass
325 attribute. Removing get_method_map, which is provided by
326 Class::MOP::Class, fixed this. The Moose version did nothing
327 different from its parent except introduce a bug. (Dave Rolsky)
328 - added tests for this (jdv79)
331 - Added a $VERSION to all .pm files which didn't have one. Fixes
332 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
334 * Moose::Cookbook::Basics::Recipe4
335 * Moose::Cookbook::Basics::Recipe6
336 - These files had spaces on the first line of the SYNOPSIS, as
337 opposed to a totally empty line. According to RT #40432, this
338 confuses POD parsers. (Dave Rolsky)
340 0.60 Fri October 24, 2008
342 - Passing "-traits" when loading Moose caused the Moose.pm
343 exports to be broken. Reported by t0m. (Dave Rolsky)
344 - Tests for this bug. (t0m)
347 - Change resolve_metaclass alias to use the new
348 load_first_existing_class function. This makes it a lot
349 simpler, and also around 5 times faster. (t0m)
350 - Add caching to resolve_metaclass_alias, which gives an order
351 of magnitude speedup to things which repeatedly call the
352 Moose::Meta::Attribute->does method, notably MooseX::Storage
355 * Moose::Util::TypeConstraint
356 - Put back the changes for parameterized constraints that
357 shouldn't have been removed in 0.59. We still cannot parse
358 them, but MooseX modules can create them in some other
359 way. See the 0.58 changes for more details. (jnapiorkowski)
360 - Changed the way subtypes are created so that the job is
361 delegated to a type constraint parent. This clears up some
362 hardcoded checking and should allow correct subtypes of
363 Moose::Meta::Type::Constraint. Don't rely on this new API too
364 much (create_child_type) because it may go away in the
365 future. (jnapiorkowski)
367 * Moose::Meta::TypeConstraint::Union
368 - Type constraint names are sorted as strings, not numbers.
371 * Moose::Meta::TypeConstraint::Parameterizable
372 - New parameterize method. This can be used as a factory method
373 to make a new type constraint with a given parameterized
374 type. (jnapiorkowski)
375 - added tests (jnapiorkowski)
377 0.59 Tue October 14, 2008
379 - Add abridged documentation for builder/default/initializer/
380 predicate, and link to more details sections in
381 Class::MOP::Attribute. (t0m)
383 * Moose::Util::TypeConstraints
384 - removed prototypes from all but the &-based stuff (mst)
386 * Moose::Util::TypeConstraints
387 - Creating a anonymous subtype with both a constraint and a
388 message failed with a very unhelpful error, but should just
389 work. Reported by t0m. (Dave Rolsky)
392 - Some tests that used Test::Warn if it was available failed
393 with older versions of Test::Warn. Reported by Fayland. (Dave
395 - Test firing behavior of triggers in relation to builder/default/
397 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
398 kinds of supported type. (t0m)
401 - In create(), do not pass "roles" option to the superclass
402 - added related test that creates an anon metaclass with
405 * Moose::Meta::TypeConstraint::Class
406 * Moose::Meta::TypeConstraint::Role
407 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
408 other types (as per change in 0.55_02). (t0m)
410 * Moose::Meta::TypeConstraint::Registry
411 - Fix warning when dealing with unknown type names (t0m)
413 * Moose::Util::TypeConstraints
414 - Reverted changes from 0.58 related to handle parameterized
415 types. This caused random failures on BSD and Win32 systems,
416 apparently related to the regex engine. This means that Moose
417 can no longer parse structured type constraints like
418 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
419 supported in a slightly different way via MooseX::Types some
420 time in the future. (Dave Rolsky)
422 0.58 Sat September 20, 2008
423 !! This release has an incompatible change regarding !!
424 !! how roles add methods to a class !!
426 * Roles and role application
427 ! Roles now add methods by calling add_method, not
428 alias_method. They make sure to always provide a method
429 object, which will be cloned internally. This means that it is
430 now possible to track the source of a method provided by a
431 role, and even follow its history through intermediate roles.
433 This means that methods added by a role now show up when
434 looking at a class's method list/map. (Dave Rolsky)
437 - From this release on, we'll try to maintain a list of
438 conflicting modules, and warn you if you have one
439 installed. For example, this release conflicts with ...
440 - MooseX::Singleton <= 0.11
441 - MooseX::Params::Validate <= 0.05
444 In general, we try to not break backwards compatibility for
445 most Moose users, but MooseX modules and other code which
446 extends Moose's metaclasses is often affected by very small
447 changes in the Moose internals.
449 * Moose::Meta::Method::Delegation
450 * Moose::Meta::Attribute
451 - Delegation methods now have their own method class. (Dave
454 * Moose::Meta::TypeConstraint::Parameterizable
455 - Added a new method 'parameterize' which is basically a factory
456 for the containing constraint. This makes it easier to create
457 new types of parameterized constraints. (jnapiorkowski)
459 * Moose::Meta::TypeConstraint::Union
460 - Changed the way Union types canonicalize their names to follow
461 the normalized TC naming rules, which means we strip all
462 whitespace. (jnapiorkowski)
464 * Moose::Util::TypeConstraints
465 - Parameter and Union args are now sorted, this makes Int|Str
466 the same constraint as Str|Int. (jnapiorkowski)
467 - Changes to the way Union types are parsed to more correctly
468 stringify their names. (jnapiorkowski)
469 - When creating a parameterized type, we now use the new
470 parameterize method. (jnapiorkowski)
471 - Incoming type constraint strings are now normalized to remove
472 all whitespace differences. (jnapiorkowski)
473 - Changed the way we parse type constraint strings so that we now
474 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
475 constraints. This lays the foundation for more flexible type
476 constraint implementations.
478 * Tests and docs for all the above. (jnapiorkowski)
482 - Moose::Exporter will no longer remove a subroutine that the
483 exporting package re-exports. Moose re-exports the
484 Carp::confess function, among others. The reasoning is that we
485 cannot know whether you have also explicitly imported those
486 functions for your own use, so we err on the safe side and
487 always keep them. (Dave Rolsky)
488 - added tests for this (rafl)
491 - Changes to how we fix metaclass compatibility that are much
492 too complicated to go into. The summary is that Moose is much
493 less likely to complain about metaclass incompatibility
494 now. In particular, if two metaclasses differ because
495 Moose::Util::MetaRole was used on the two corresponding
496 classes, then the difference in roles is reconciled for the
497 subclass's metaclass. (Dave Rolsky)
498 - Squashed an warning in _process_attribute (thepler)
501 - throw exceptions (sooner) for invalid attribute names (thepler)
502 - added tests for this (thepler)
504 * Moose::Util::MetaRole
505 - If you explicitly set a constructor or destructor class for a
506 metaclass object, and then applied roles to the metaclass,
507 that explicitly set class would be lost and replaced with the
511 * Moose::Meta::Attribute
512 * Moose::Meta::Method
515 * Moose::Error::Default
516 * Moose::Error::Croak
517 * Moose::Error::Confess
518 - All instances of confess() changed to use overridable
519 C<throw_error> method. This method ultimately calls a class
520 constructor, and you can change the class being called. In
521 addition, errors now pass more information than just a string.
522 The default C<error_class> behaves like C<Carp::confess>, so
523 the behavior is not visibly different for end users.
525 0.57 Wed September 3, 2008
527 - A new bit of doc intended to introduce folks familiar with
528 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
531 - Shows examples of two classes, each done first with and then
532 without Moose. This makes a nice parallel to
533 Moose::Intro. (Dave Rolsky)
535 * Moose::Util::TypeConstraints
536 - Fixed a bug in find_or_parse_type_constraint so that it
537 accepts a Moose::Meta::TypeConstraint object as the parent
538 type, not just a name (jnapiorkowski)
539 - added tests (jnapiorkowski)
542 - If Sub::Name was not present, unimporting failed to actually
543 remove some sugar subs, causing test failures (Dave Rolsky)
545 0.56 Mon September 1, 2008
546 For those not following the series of dev releases, there are
547 several major changes in this release of Moose.
548 ! Moose::init_meta should now be called as a method. See the
551 - Major performance improvements by nothingmuch.
553 - New modules for extension writers, Moose::Exporter and
554 Moose::Util::MetaRole by Dave Rolsky.
556 - Lots of doc improvements and additions, especially in the
561 * Removed all references to the experimental-but-no-longer-needed
562 Moose::Meta::Role::Application::ToMetaclassInstance.
564 * Require Class::MOP 0.65.
566 0.55_04 Sat August 30, 2008
567 * Moose::Util::MetaRole
568 * Moose::Cookbook::Extending::Recipe2
569 - This simplifies the application of roles to any meta class, as
570 well as the base object class. Reimplemented metaclass traits
571 using this module. (Dave Rolsky)
573 * Moose::Cookbook::Extending::Recipe1
574 - This a new recipe, an overview of various ways to write Moose
575 extensions (Dave Rolsky)
577 * Moose::Cookbook::Extending::Recipe3
578 * Moose::Cookbook::Extending::Recipe4
579 - These used to be Extending::Recipe1 and Extending::Recipe2,
582 0.55_03 Fri August 29, 2008
583 * No changes from 0.55_02 except increasing the Class::MOP
584 dependency to 0.64_07.
586 0.55_02 Fri August 29, 2008
587 * Makefile.PL and Moose.pm
588 - explicitly require Perl 5.8.0+ (Dave Rolsky)
590 * Moose::Util::TypeConstraints
591 - Fix warnings from find_type_constraint if the type is not
594 * Moose::Meta::TypeConstraint
595 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
596 return false if the type you specify cannot be found in the
597 type registry, rather than throwing an unhelpful and
598 coincidental exception. (t0m).
599 - added docs & test for this (t0m)
601 * Moose::Meta::TypeConstraint::Registry
602 - add_type_constraint now throws an exception if a parameter is
604 - added docs & test for this (t0m)
606 * Moose::Cookbook::FAQ
607 - Added a faq entry on the difference between "role" and "trait"
611 - Fixed a bug that caused role composition to not see a required
612 method when that method was provided by another role being
613 composed at the same time. (Dave Rolsky)
614 - test and bug finding (tokuhirom)
616 0.55_01 Wed August 20, 2008
618 !! Calling Moose::init_meta as a function is now !!
619 !! deprecated. Please see the Moose.pm docs for details. !!
621 * Moose::Meta::Method::Constructor
622 - Fix inlined constructor so that values produced by default
623 or builder methods are coerced as required. (t0m)
624 - added test for this (t0m)
626 * Moose::Meta::Attribute
627 - A lazy attribute with a default or builder did not attempt to
628 coerce the default value. The immutable code _did_
630 - added test for this (t0m)
633 - This is a new helper module for writing "Moose-alike"
634 modules. This should make the lives of MooseX module authors
635 much easier. (Dave Rolsky)
638 * Moose::Cookbook::Meta::Recipe5
639 - Implemented metaclass traits (and wrote a recipe for it):
641 use Moose -traits => 'Foo'
643 This should make writing small Moose extensions a little
646 * Moose::Cookbook::Basics::Recipe1
647 - Removed any examples of direct hashref access, and applied an
648 editorial axe to reduce verbosity. (Dave Rolsky)
650 * Moose::Cookbook::Basics::Recipe1
651 - Also applied an editorial axe here. (Dave Rolsky)
654 * Moose::Cookbook::Extending::Recipe1
655 * Moose::Cookbook::Extending::Recipe2
656 - Rewrote extending and embedding moose documentation and
657 recipes to use Moose::Exporter (Dave Rolsky)
661 - These two modules now warn when you load them from the main
662 package "main" package, because we will not export sugar to
663 main. Previously it just did nothing. (Dave Rolsky)
666 - Now provide an init_meta method just like Moose.pm, and you
667 can call this to provide an alternate role metaclass. (Dave
668 Rolsky and nothingmuch)
669 - get_method_map now respects the package cache flag (nothingmuch)
672 - Two new methods - add_method and wrap_method_body
676 - Optimizations including allowing constructors to accept hash
677 refs, making many more classes immutable, and making
678 constructors immutable. (nothingmuch)
680 0.55 Sun August 3, 2008
681 * Moose::Meta::Attribute
682 - breaking down the way 'handles' methods are
683 created so that the process can be more easily
684 overridden by subclasses (stevan)
686 * Moose::Meta::TypeConstraint
687 - fixing what is passed into a ->message with
688 the type constraints (RT #37569)
689 - added tests for this (Charles Alderman)
691 * Moose::Util::TypeConstraints
692 - fix coerce to accept anon types like subtype can (mst)
695 - reorganized the recipes into sections - Basics, Roles, Meta,
696 Extending - and wrote abstracts for each section (Dave Rolsky)
698 * Moose::Cookbook::Basics::Recipe10
699 - A new recipe that demonstrates operator overloading
700 in combination with Moose. (bluefeet)
702 * Moose::Cookbook::Meta::Recipe1
703 - an introduction to what meta is and why you'd want to make
704 your own metaclass extensions (Dave Rolsky)
706 * Moose::Cookbook::Meta::Recipe4
707 - a very simple metaclass example (Dave Rolsky)
709 * Moose::Cookbook::Extending::Recipe1
710 - how to write a Moose-alike module to use your own object base
713 * Moose::Cookbook::Extending::Recipe2
714 - how to write modules with an API just like C<Moose.pm> (Dave
718 - Tons of fixes, both syntactical and grammatical (Dave
719 Rolsky, Paul Fenwick)
721 0.54 Thurs. July 3, 2008
722 ... this is not my day today ...
724 * Moose::Meta::Attribute
725 - fixed legal_options_for_inheritance such that
726 clone_and_inherit options still works for
727 Class::MOP::Attribute objects and therefore
728 does not break MooseX::AttributeHelpers
731 0.53 Thurs. July 3, 2008
732 * Whoops, I guess I should run 'make manifest' before
733 actually releasing the module. No actual changes
734 in this release, except the fact that it includes
735 the changes that I didn't include in the last
738 0.52 Thurs. July 3, 2008
740 - added "FEATURE REQUESTS" section to the Moose docs
741 to properly direct people (stevan) (RT #34333)
742 - making 'extends' croak if it is passed a Role since
743 this is not ever something you want to do
744 (fixed by stevan, found by obra)
745 - added tests for this (stevan)
748 - adding support for DOES (as in UNIVERSAL::DOES)
750 - added test for this
752 * Moose::Meta::Attribute
753 - added legal_options_for_inheritance (wreis)
754 - added tests for this (wreis)
756 * Moose::Cookbook::Snacks::*
757 - removed some of the unfinished snacks that should
758 not have been released yet. Added some more examples
759 to the 'Keywords' snack. (stevan)
761 * Moose::Cookbook::Style
762 - added general Moose "style guide" of sorts to the
763 cookbook (nothingmuch) (RT #34335)
766 - added more BUILDARGS tests (stevan)
768 0.51 Thurs. Jun 26, 2008
770 - add unimport so "no Moose::Role" actually does
773 * Moose::Meta::Role::Application::ToRole
774 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
775 order to provide its own implementation, that method still got
776 added to the list of required methods for consumers of
777 RoleB. Now an aliased method is only added to the list of
778 required methods if the role doing the aliasing does not
779 provide its own implementation. See Recipe 11 for an example
780 of all this. (Dave Rolsky)
781 - added tests for this
783 * Moose::Meta::Method::Constructor
784 - when a single argument that wasn't a hashref was provided to
785 an immutabilized constructor, the error message was very
786 unhelpful, as opposed to the non-immutable error. Reported by
788 - added test for this (Dave Rolsky)
790 * Moose::Meta::Attribute
791 - added support for meta_attr->does("ShortAlias") (sartak)
792 - added tests for this (sartak)
793 - moved the bulk of the `handles` handling to the new
794 install_delegation method (Stevan)
797 - Added BUILDARGS, a new step in new()
799 * Moose::Meta::Role::Application::RoleSummation
800 - fix typos no one ever sees (sartak)
802 * Moose::Util::TypeConstraints
803 * Moose::Meta::TypeConstraint
804 * Moose::Meta::TypeCoercion
805 - Attempt to work around the ??{ } vs. threads issue
807 - Some null_constraint optimizations
809 0.50 Thurs. Jun 11, 2008
810 - Fixed a version number issue by bumping all modules
813 0.49 Thurs. Jun 11, 2008
814 !! This version now approx. 20-25% !!
815 !! faster with new Class::MOP 0.59 !!
817 * Moose::Meta::Attribute
818 - fixed how the is => (ro|rw) works with
819 custom defined reader, writer and accessor
821 - added docs for this (TODO).
822 - added tests for this (Thanks to Penfold)
823 - added the custom attribute alias for regular
824 Moose attributes which is "Moose"
825 - fix builder and default both being used
830 Moose::Meta::Attribute
832 Moose::Meta::Role::Composite
833 Moose::Util::TypeConstraints
834 - switched usage of reftype to ref because
838 - changing add_package_symbol to use the new
842 - fixed how DEMOLISHALL is called so that it
843 can be overrided in subclasses (thanks to Sartak)
844 - added test for this (thanks to Sartak)
846 * Moose::Util::TypeConstraints
847 - move the ClassName type check code to
848 Class::MOP::is_class_loaded (thanks to Sartak)
850 * Moose::Cookbook::Recipe11
851 - add tests for this (thanks to tokuhirom)
853 0.48 Thurs. May 29, 2008
854 (early morning release engineering)--
856 - fixing the version in Moose::Meta::Method::Destructor
857 which was causing the indexer to choke
859 0.47 Thurs. May 29, 2008
860 (late night release engineering)--
862 - fixing the version is META.yml, no functional
863 changes in this release
865 0.46 Wed. May 28, 2008
866 !! This version now approx. 20-25% !!
867 !! faster with new Class::MOP 0.57 !!
870 - some optimizations of the &initialize method
871 since it is called so often by &meta
875 - now use the get_all_package_symbols from the
876 updated Class::MOP, test suite is now 10 seconds
879 * Moose::Meta::Method::Destructor
880 - is_needed can now also be called as a class
881 method for immutablization to check if the
882 destructor object even needs to be created
885 * Moose::Meta::Method::Destructor
886 Moose::Meta::Method::Constructor
887 - added more descriptive error message to help
888 keep people from wasting time tracking an error
889 that is easily fixed by upgrading.
891 0.45 Saturday, May 24, 2008
893 - Because of work in Class::MOP 0.57, all
894 XS based functionality is now optional
895 and a Pure Perl version is supplied
896 - the CLASS_MOP_NO_XS environment variable
897 can now be used to force non-XS versions
899 - several of the packages have been tweaked
900 to take care of this, mostly we added
901 support for the package_name and name
902 variables in all the Method metaclasses
903 - before/around/after method modifiers now
904 support regexp matching of names
905 (thanks to Takatoshi Kitano)
906 - tests added for this
907 - NOTE: this only works for classes, it
908 is currently not supported in roles,
909 but, ... patches welcome
910 - All usage of Carp::confess have been replaced
911 by Carp::croak in the "keyword" functions since
912 the stack trace is usually not helpful
915 - All usage of Carp::confess have been replaced
916 by Carp::croak in the "keyword" functions since
917 the stack trace is usually not helpful
918 - The 'has' keyword for roles now accepts the
919 same array ref form that Moose.pm does
920 (has [qw/foo bar/] => (is => 'rw', ...))
921 - added test for this
923 * Moose::Meta::Attribute
924 - trigger on a ro-attribute is no longer an
925 error, as it's useful to trigger off of the
929 - added same 'add_package_symbol' fix as in
933 - does_role now handles non-Moose classes
935 - added tests for this
936 - added the 'add_method_modifier' function
937 (thanks to Takatoshi Kitano)
939 * Moose::Util::TypeConstraints
940 - subtypes of parameterizable types now are
941 themselves parameterizable types
943 * Moose::Meta::Method::Constructor
944 - fixed bug where trigger was not being
945 called by the inlined immutable
947 - added test for this (thanks to Caelum)
949 * Moose::Meta::Role::Application::ToInstance
950 - now uses the metaclass of the instance
951 (if possible) to create the anon-class
952 (thanks Jonathan Rockway)
954 * Moose::Cookbook::Recipe22
955 - added the meta-attribute trait recipe
959 - fixed hash-ordering test bug that was
960 causing occasional cpantester failures
961 - renamed the t/000_recipe/*.t tests to be
962 more descriptive (thanks to Sartak)
964 0.44 Sat. May 10, 2008
966 - made make_immutable warning cluck to
967 show where the error is (thanks mst)
970 - BUILDALL and DEMOLISHALL now call
971 ->body when looping through the
972 methods, to avoid the overloaded
974 - fixed issue where DEMOLISHALL was
975 eating the $@ values, and so not
976 working correctly, it still kind of
977 eats them, but so does vanilla perl
978 - added tests for this
980 * Moose::Cookbook::Recipe7
981 - added new recipe for immutable
982 functionality (thanks Dave Rolsky)
984 * Moose::Cookbook::Recipe9
985 - added new recipe for builder and
986 lazy_build (thanks Dave Rolsky)
988 * Moose::Cookbook::Recipe11
989 - added new recipe for method aliasing
990 and exclusion with Roles (thanks Dave Rolsky)
993 - fixed Win32 test failure (thanks spicyjack)
995 ~ removed Build.PL and Module::Build compat
996 since Module::Install has done that.
998 0.43 Wed. April, 30, 2008
1000 drink more coffee before
1001 doing release engineering
1003 - whoops, forgot to do the smolder tests,
1004 and we broke some of the custom meta-attr
1005 modules. This fixes that.
1007 0.42 Mon. April 28, 2008
1008 - some bad tests slipped by, nothing else
1009 changed in this release (cpantesters++)
1011 - upped the Class::MOP dependency to 0.55
1012 since we have tests which need the C3
1015 0.41 Mon. April 28, 2008
1016 ~~ numerous documentation updates ~~
1018 - Changed all usage of die to Carp::croak for better
1019 error reporting (initial patch by Tod Hagan)
1021 ** IMPORTANT NOTE **
1022 - the make_immutable keyword is now deprecated, don't
1023 use it in any new code and please fix your old code
1024 as well. There will be 2 releases, and then it will
1030 - refactored the way inner and super work to avoid
1031 any method/@ISA cache penalty (nothingmuch)
1033 * Moose::Meta::Class
1034 - fixing &new_object to make sure trigger gets the
1035 coerced value (spotted by Charles Alderman on the
1037 - added test for this
1039 * Moose::Meta::Method::Constructor
1040 - immutable classes which had non-lazy attributes were calling
1041 the default generating sub twice in the constructor. (bug
1042 found by Jesse Luehrs, fixed by Dave Rolsky)
1043 - added tests for this (Dave Rolsky)
1044 - fix typo in initialize_body method (nothingmuch)
1046 * Moose::Meta::Method::Destructor
1047 - fix typo in initialize_body method (nothingmuch)
1049 * Moose::Meta::Method::Overriden
1050 Moose::Meta::Method::Augmented
1051 - moved the logic for these into their own
1052 classes (nothingmuch)
1054 * Moose::Meta::Attribute
1055 - inherited attributes may now be extended without
1056 restriction on the type ('isa', 'does') (Sartak)
1057 - added tests for this (Sartak)
1058 - when an attribute property is malformed (such as lazy without
1059 a default), give the name of the attribute in the error
1061 - added the &applied_traits and &has_applied_traits methods
1062 to allow introspection of traits
1063 - added tests for this
1064 - moved 'trait' and 'metaclass' argument handling to here from
1066 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1067 '+foo' syntax) (nothingmuch)
1068 - added tests for this (t0m)
1071 - localize $@ inside DEMOLISHALL to avoid it
1072 eating $@ (found by Ernesto)
1073 - added test for this (thanks to Ernesto)
1075 * Moose::Util::TypeConstraints
1076 - &find_type_constraint now DWIMs when given an
1077 type constraint object or name (nothingmuch)
1078 - &find_or_create_type_constraint superseded with a number of more
1080 - find_or_create_{isa,does}_type_constraint
1081 - find_or_parse_type_constraint
1083 * Moose::Meta::TypeConstraint
1084 Moose::Meta::TypeConstraint::Class
1085 Moose::Meta::TypeConstraint::Role
1086 Moose::Meta::TypeConstraint::Enum
1087 Moose::Meta::TypeConstraint::Union
1088 Moose::Meta::TypeConstraint::Parameterized
1089 - added the &equals method for comparing two type
1090 constraints (nothingmuch)
1091 - added tests for this (nothingmuch)
1093 * Moose::Meta::TypeConstraint
1094 - add the &parents method, which is just an alias to &parent.
1095 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1097 * Moose::Meta::TypeConstraint::Class
1098 - added the class attribute for introspection purposes
1100 - added tests for this
1102 * Moose::Meta::TypeConstraint::Enum
1103 Moose::Meta::TypeConstraint::Role
1104 - broke these out into their own classes (nothingmuch)
1106 * Moose::Cookbook::Recipe*
1107 - fixed references to test file locations in the POD
1108 and updated up some text for new Moose features
1112 - Added &resolve_metaclass_alias, a helper function for finding an actual
1113 class for a short name (e.g. in the traits list)
1115 0.40 Fri. March 14, 2008
1116 - I hate Pod::Coverage
1118 0.39 Fri. March 14, 2008
1120 - documenting the use of '+name' with attributes
1121 that come from recently composed roles. It makes
1122 sense, people are using it, and so why not just
1123 officially support it.
1124 - fixing the 'extends' keyword so that it will not
1125 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1128 - added the perl -Moose=+Class::Name feature to allow
1129 monkeypatching of classes in one liners
1132 - fixing the 'apply_all_roles' keyword so that it will not
1133 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1135 * Moose::Meta::Class
1136 - added ->create method which now supports roles (thanks to jrockway)
1137 - added tests for this
1138 - added ->create_anon_class which now supports roles and caching of
1139 the results (thanks to jrockway)
1140 - added tests for this
1141 - made ->does_role a little more forgiving when it is
1142 checking a Class::MOP era metaclasses.
1144 * Moose::Meta::Role::Application::ToInstance
1145 - it is now possible to pass extra params to be used when
1146 a role is applied to an the instance (rebless_params)
1147 - added tests for this
1149 * Moose::Util::TypeConstraints
1150 - class_type now accepts an optional second argument for a
1151 custom message. POD anotated accordingly (groditi)
1152 - added tests for this
1153 - it is now possible to make anon-enums by passing 'enum' an
1154 ARRAY ref instead of the $name => @values. Everything else
1156 - added tests for this
1159 - making test for using '+name' on attributes consumed
1160 from a role, it works and makes sense too.
1162 * Moose::Meta::Attribute
1163 - fix handles so that it doesn't return nothing
1164 when the method cannot be found, not sure why
1165 it ever did this originally, this means we now
1166 have slightly better support for AUTOLOADed
1168 - added more delegation tests
1169 - adding ->does method to this so as to better
1170 support traits and their introspection.
1171 - added tests for this
1174 - localizing the Data::Dumper configurations so
1175 that it does not pollute others (RT #33509)
1176 - made ->does a little more forgiving when it is
1177 passed Class::MOP era metaclasses.
1179 0.38 Fri. Feb. 15, 2008
1180 * Moose::Meta::Attribute
1181 - fixed initializer to correctly do
1182 type checking and coercion in the
1184 - added tests for this
1187 - fixed some finicky tests (thanks to konobi)
1189 0.37 Thurs. Feb. 14, 2008
1191 - fixed some details in Moose::init_meta
1192 and its superclass handling (thanks thepler)
1193 - added tests for this (thanks thepler)
1194 - 'has' now dies if you don't pass in name
1196 - added the 'make_immutable' keyword as a shortcut
1199 * Moose::Meta::Class
1200 Moose::Meta::Method::Constructor
1201 Moose::Meta::Attribute
1202 - making (init_arg => undef) work here too
1203 (thanks to nothingmuch)
1205 * Moose::Meta::Attribute
1206 Moose::Meta::Method::Constructor
1207 Moose::Meta::Method::Accessor
1208 - make lazy attributes respect attr initializers (rjbs)
1209 - added tests for this
1211 * Moose::Util::TypeConstraints
1212 Moose::Util::TypeConstraints::OptimizedConstraints
1213 Moose::Meta::TypeConstraints
1214 Moose::Meta::Attribute
1215 Moose::Meta::Method::Constructor
1216 Moose::Meta::Method::Accessor
1217 - making type errors use the
1218 assigned message (thanks to Sartak)
1219 - added tests for this
1221 * Moose::Meta::Method::Destructor
1222 - making sure DESTROY gets inlined properly
1223 with successive DEMOLISH calls (thanks to manito)
1225 * Moose::Meta::Attribute
1226 Moose::Meta::Method::Accessor
1227 - fixed handling of undef with type constraints
1229 - added tests for this
1232 - added &get_all_init_args and &get_all_attribute_values
1233 (thanks to Sartak and nothingmuch)
1235 0.36 Sat. Jan. 26, 2008
1237 Moose::Meta::Attribute
1238 - role type tests now support when roles are
1239 applied to non-Moose classes (found by ash)
1240 - added tests for this (thanks to ash)
1241 - couple extra tests to boost code coverage
1243 * Moose::Meta::Method::Constructor
1244 - improved fix for handling Class::MOP attributes
1245 - added test for this
1247 * Moose::Meta::Class
1248 - handled the add_attribute($attribute_meta_object)
1250 - added test for this
1252 0.35 Tues. Jan. 22, 2008
1253 * Moose::Meta::Method::Constructor
1254 - fix to make sure even Class::MOP attributes
1255 are handled correctly (Thanks to Dave Rolsky)
1256 - added test for this (also Dave Rolsky)
1258 * Moose::Meta::Class
1259 - improved error message on _apply_all_roles,
1260 you should now use Moose::Util::apply_all_roles
1261 and you shouldnt have been using a _ prefixed
1262 method in the first place ;)
1264 0.34 Mon. Jan. 21, 2008
1265 ~~~ more misc. doc. fixes ~~~
1266 ~~ updated copyright dates ~~
1268 Moose is now a postmodern object system :)
1269 - (see the POD for details)
1271 * <<Role System Refactoring>>
1272 - this release contains a major reworking and
1273 cleanup of the role system
1274 - 100% backwards compat.
1275 - Role application now restructured into seperate
1276 classes based on type of applicants
1277 - Role summation (combining of more than one role)
1278 is much cleaner and anon-classes are no longer
1279 used in this process
1280 - new Composite role metaclass
1281 - runtime application of roles to instances
1282 is now more efficient and re-uses generated
1283 classes when applicable
1285 * <<New Role composition features>>
1286 - methods can now be excluded from a given role
1288 - methods can now be aliased to another name (and
1289 still retain the original as well)
1291 * Moose::Util::TypeConstraints::OptimizedConstraints
1292 - added this module (see above)
1294 * Moose::Meta::Class
1295 - fixed the &_process_attribute method to be called
1296 by &add_attribute, so that the API is now correct
1298 * Moose::Meta::Method::Accessor
1299 - fixed bug when passing a list of values to
1300 an accessor would get (incorrectly) ignored.
1301 Thanks to Sartak for finding this ;)
1302 - added tests for this (Sartak again)
1304 * Moose::Meta::Method::Accessor
1305 Moose::Meta::Method::Constructor
1306 Moose::Meta::Attribute
1307 Moose::Meta::TypeConstraint
1308 Moose::Meta::TypeCoercion
1309 - lots of cleanup of such things as:
1311 - type constraint handling
1312 - error handling/messages
1313 (thanks to nothingmuch)
1315 * Moose::Meta::TypeConstraint::Parameterizable
1316 - added this module to support the refactor
1317 in Moose::Meta::TypeConstraint::Parameterized
1319 * Moose::Meta::TypeConstraint::Parameterized
1320 - refactored how these types are handled so they
1321 are more generic and not confined to ArrayRef
1325 - shortened some file names for better VMS support (RT #32381)
1327 0.33 Fri. Dec. 14, 2007
1328 !! Moose now loads 2 x faster !!
1329 !! with new Class::MOP 0.49 !!
1331 ++ new oose.pm module to make command line
1332 Moose-ness easier (see POD docs for more)
1334 * Moose::Meta::Class
1336 - several tweaks to take advantage of the
1337 new method map caching in Class::MOP
1339 * Moose::Meta::TypeConstraint::Parameterized
1340 - allow subtypes of ArrayRef and HashRef to
1341 be used as a container (sartak)
1342 - added tests for this
1343 - basic support for coercion to ArrayRef and
1344 HashRef for containers (sartak)
1345 - added tests for this
1347 * Moose::Meta::TypeCoercion
1348 - coercions will now create subtypes as needed
1349 so you can now add coercions to parameterized
1350 types without having to explictly define them
1351 - added tests for this
1353 * Moose::Meta::Method::Accessor
1354 - allow subclasses to decide whether we need
1355 to copy the value into a new variable (sartak)
1357 0.32 Tues. Dec. 4, 2007
1358 * Moose::Util::TypeConstraints
1359 - fixing how subtype aliases of unions work
1360 they should inherit the parent's coercion
1361 - added tests for this
1362 - you can now define multiple coercions on
1363 a single type at different times instead of
1364 having to do it all in one place
1365 - added tests for this
1367 * Moose::Meta::TypeConstraint
1368 - there is now a default constraint of sub { 1 }
1369 instead of Moose::Util::TypeConstraints setting
1372 * Moose::Meta::TypeCoercion
1373 * Moose::Meta::TypeCoercion::Union
1374 - added the &has_coercion_for_type and
1375 &add_type_coercions methods to support the
1376 new features above (although you cannot add
1377 more type coercions for Union types)
1379 0.31 Mon. Nov. 26, 2007
1380 * Moose::Meta::Attribute
1381 - made the +attr syntax handle extending types with
1382 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1383 now works if the original foo is an ArrayRef.
1384 - added tests for this.
1385 - delegation now works even if the attribute does not
1386 have a reader method using the get_read_method_ref
1387 method from Class::MOP::Attribute.
1388 - added tests for this
1389 - added docs for this
1391 * Moose::Util::TypeConstraints
1392 - passing no "additional attribute info" to
1393 &find_or_create_type_constraint will no longer
1394 attempt to create an __ANON__ type for you,
1395 instead it will just return undef.
1396 - added docs for this
1398 0.30 Fri. Nov. 23, 2007
1399 * Moose::Meta::Method::Constructor
1400 -builder related bug in inlined constructor. (groditi)
1402 * Moose::Meta::Method::Accessor
1403 - genereate unnecessary calls to predicates and refactor
1404 code generation for runtime speed (groditi)
1406 * Moose::Util::TypeConstraints
1407 - fix ClassName constraint to introspect symbol table (mst)
1408 - added more tests for this (mst)
1409 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1410 with work correctly.
1411 - added tests for this
1414 - adding the link to Recipie 11 (written by Sartak)
1415 - adding test for SYNOPSIS code
1418 - New tests for builder bug. Upon instantiation, if an
1419 attribute had a builder, no value and was not lazy the
1420 builder default was not getting run, oops. (groditi)
1422 0.29 Tues. Nov. 13, 2007
1423 * Moose::Meta::Attribute
1424 - Fix error message on missing builder method (groditi)
1426 * Moose::Meta::Method::Accessor
1427 - Fix error message on missing builder method (groditi)
1430 - Add test to check for the correct error message when
1431 builder method is missing (groditi)
1433 0.28 Tues. Nov. 13, 2007
1434 - 0.27 packaged incorrectly (groditi)
1436 0.27 Tues. Nov. 13, 2007
1437 * Moose::Meta::Attribute
1438 - Added support for the new builder option (groditi)
1439 - Added support for lazy_build option (groditi)
1440 - Changed slot initialization for predicate changes (groditi)
1442 * Moose::Meta::Method::Accessor
1443 - Added support for lazy_build option (groditi)
1444 - Fix inline methods to work with corrected predicate
1447 * Moose::Meta::Method::Constructor
1448 - Added support for lazy_build option (groditi)
1451 - tests for builder and lazy_build (groditi)
1453 * fixing some misc. bits in the docs that
1454 got mentioned on CPAN Forum & perlmonks
1457 - fixed how required methods are handled
1458 when they encounter overriden or modified
1459 methods from a class (thanks to confound).
1460 - added tests for this
1462 * Moose::Util::TypeConstraint
1463 - fixed the type notation parser so that
1464 the | always creates a union and so is
1465 no longer a valid type char (thanks to
1466 konobi, mugwump and #moose for working
1468 - added more tests for this
1470 0.26 Thurs. Sept. 27, 2007
1473 * Parameterized Types
1474 We now support parameterized collection types, such as:
1475 ArrayRef[Int] # array or integers
1476 HashRef[Object] # a hash with object values
1477 They can also be nested:
1478 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1479 And work with the type unions as well:
1480 ArrayRef[Int | Str] # array of integers of strings
1482 * Better Framework Extendability
1483 Moose.pm is now "extendable" such that it is now much
1484 easier to extend the framework and add your own keywords
1485 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1486 section of the Moose.pm docs.
1489 In an effort to begin documenting some of the various
1490 details of Moose as well as some common idioms, we have
1491 created Moose::Cookbook::Snacks as a place to find
1492 small (easily digestable) nuggets of Moose code.
1495 ~ Several doc updates/cleanup thanks to castaway ~
1497 - converted build system to use Module::Install instead of
1498 Module::Build (thanks to jrockway)
1501 - added all the meta classes to the immutable list and
1502 set it to inline the accessors
1503 - fix import to allow Sub::Exporter like { into => }
1504 and { into_level => } (perigrin)
1505 - exposed and documented init_meta() to allow better
1506 embedding and extending of Moose (perigrin)
1509 - complete re-organization of the test suite
1510 - added some new tests as well
1511 - finally re-enabled the Moose::POOP test since
1512 the new version of DBM::Deep now works again
1515 * Moose::Meta::Class
1516 - fixed very odd and very nasty recursion bug with
1518 - added tests for this (eilara)
1520 * Moose::Meta::Attribute
1521 Moose::Meta::Method::Constructor
1522 Moose::Meta::Method::Accessor
1523 - fixed issue with overload::Overloaded getting called
1524 on non-blessed items. (RT #29269)
1525 - added tests for this
1527 * Moose::Meta::Method::Accessor
1528 - fixed issue with generated accessor code making
1529 assumptions about hash based classes (thanks to dexter)
1531 * Moose::Coookbook::Snacks
1532 - these are bits of documentation, not quite as big as
1533 Recipes but which have no clear place in the module docs.
1534 So they are Snacks! (horray for castaway++)
1536 * Moose::Cookbook::Recipe4
1537 - updated it to use the new ArrayRef[MyType] construct
1538 - updated the accompanying test as well
1540 +++ Major Refactor of the Type Constraint system +++
1541 +++ with new features added as well +++
1543 * Moose::Util::TypeConstraint
1544 - no longer uses package variable to keep track of
1545 the type constraints, now uses the an instance of
1546 Moose::Meta::TypeConstraint::Registry to do it
1547 - added more sophisticated type notation parsing
1549 - added tests for this
1551 * Moose::Meta::TypeConstraint
1552 - some minor adjustments to make subclassing easier
1553 - added the package_defined_in attribute so that we
1554 can track where the type constraints are created
1556 * Moose::Meta::TypeConstraint::Union
1557 - this is now been refactored to be a subclass of
1558 Moose::Meta::TypeConstraint
1560 * Moose::Meta::TypeCoercion::Union
1561 - this has been added to service the newly refactored
1562 Moose::Meta::TypeConstraint::Union and is itself
1563 a subclass of Moose::Meta::TypeCoercion
1565 * Moose::Meta::TypeConstraint::Parameterized
1566 - added this module (taken from MooseX::AttributeHelpers)
1567 to help construct nested collection types
1568 - added tests for this
1570 * Moose::Meta::TypeConstraint::Registry
1571 - added this class to keep track of type constraints
1573 0.25 Mon. Aug. 13, 2007
1575 - Documentation update to reference Moose::Util::TypeConstraints
1576 under 'isa' in 'has' for how to define a new type
1577 (thanks to shlomif).
1579 * Moose::Meta::Attribute
1580 - required attributes now will no longer accept undef
1581 from the constructor, even if there is a default and lazy
1582 - added tests for this
1583 - default subroutines must return a value which passes the
1585 - added tests for this
1587 * Moose::Meta::Attribute
1588 * Moose::Meta::Method::Constructor
1589 * Moose::Meta::Method::Accessor
1590 - type-constraint tests now handle overloaded objects correctly
1591 in the error message
1592 - added tests for this (thanks to EvanCarroll)
1594 * Moose::Meta::TypeConstraint::Union
1595 - added (has_)hand_optimized_constraint to this class so that
1596 it behaves as the regular Moose::Meta::TypeConstraint does.
1599 - large refactoring of this code
1600 - added several more tests
1601 - tests for subtle conflict resolition issues
1602 added, but not currently running
1605 * Moose::Cookbook::Recipe7
1606 - added new recipe for augment/inner functionality
1608 - added test for this
1611 - a formal definition of roles (still in progress)
1614 - utilities for easier working with Moose classes
1615 - added tests for these
1618 - This contains Moose specific test functions
1619 - added tests for these
1621 0.24 Tues. July 3, 2007
1622 ~ Some doc updates/cleanup ~
1624 * Moose::Meta::Attribute
1625 - added support for roles to be given as parameters
1626 to the 'handles' option.
1627 - added tests and docs for this
1628 - the has '+foo' attribute form now accepts changes to
1629 the lazy option, and the addition of a handles option
1630 (but not changing the handles option)
1631 - added tests and docs for this
1634 - required methods are now fetched using find_method_by_name
1635 so that required methods can come from superclasses
1636 - adjusted tests for this
1638 0.23 Mon. June 18, 2007
1639 * Moose::Meta::Method::Constructor
1640 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1641 * Moose::Meta::Class
1642 - Modify make_immutable to work with the new Class::MOP immutable
1643 mechanism + POD + very basic test (groditi)
1644 * Moose::Meta::Attribute
1645 - Fix handles to use goto() so that caller() comes out properly on
1646 the other side (perigrin)
1648 0.22 Thurs. May 31, 2007
1649 * Moose::Util::TypeConstraints
1650 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1651 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1652 prototypes for functions
1653 - added the ClassName type constraint, this checks for strings
1654 which will respond true to ->isa(UNIVERSAL).
1655 - added tests and docs for this
1656 - subtyping just in name now works correctly by making the
1657 default for where be { 1 }
1658 - added test for this
1660 * Moose::Meta::Method::Accessor
1661 - coerce and lazy now work together correctly, thanks to
1662 merlyn for finding this bug
1663 - tests added for this
1664 - fix reader presedence bug in Moose::Meta::Attribute + tests
1667 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1668 a HASH-ref and missed. This produces better error messages then
1669 having it die cause undef is not a HASH.
1670 - added tests for this
1672 0.21 Thursday, May 2nd, 2007
1674 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1675 - modified unimport to remove super and inner along with the rest
1676 - altered unimport tests to handle this
1679 - altered super export to populate SUPER_SLOT
1681 * Moose::Meta::Class
1682 - altered augment and override modifier application to use *_SLOT
1683 - modified tests for these to unimport one test class each to test
1686 - fixed issue where custom attribute metaclasses
1687 where not handled correctly in roles
1688 - added tests for this
1690 * Moose::Meta::Class
1691 - fixed issue where extending metaclasses with
1692 roles would blow up. Thanks to Aankhen`` for
1693 finding this insidious error, and it's solution.
1695 ~~ lots of spelling and grammer fixes in the docs,
1696 many many thanks to rlb3 and Aankhen for these :)
1698 0.20 Friday, April 6th, 2007
1699 >> I messed up the SKIP logic in one test
1700 so this release is just to fix that.
1703 - 'has' now also accepts an ARRAY ref
1704 to create multiple attrs (see docs)
1705 (thanks to konobi for this)
1706 - added tests and docs
1708 0.19 Thurs. April 5th, 2007
1709 ~~ More documentation updates ~~
1711 * Moose::Util::TypeConstraints
1712 - 'type' now supports messages as well
1713 thanks to phaylon for finding this
1714 - added tests for this
1715 - added &list_all_type_constraints and
1716 &list_all_builtin_type_constraints
1717 functions to facilitate introspection.
1719 * Moose::Meta::Attribute
1720 - fixed regexp 'handles' declarations
1721 to build the list of delegated methods
1722 correctly (and not override important
1723 things like &new) thanks to ashleyb
1725 - added tests and docs for this
1726 - added the 'documentation' attributes
1727 so that you can actually document your
1728 attributes and inspect them through the
1730 - added tests and docs for this
1732 * Moose::Meta::Class
1733 - when loading custom attribute metaclasses
1734 it will first look in for the class in the
1735 Moose::Meta::Attribute::Custom::$name, and
1736 then default to just loading $name.
1737 - added tests and docs for this
1739 * Moose::Meta::TypeConstraint
1740 - type constraints now stringify to their names.
1741 - added test for this
1744 - added tests to assure we work with Module::Refresh
1745 - added stricter test skip logic in the Moose POOP
1746 test, ask Rob Kinyon why.
1747 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1749 0.18 Sat. March 10, 2007
1750 ~~ Many, many documentation updates ~~
1753 - We now use Class::MOP::load_class to
1755 - added tests to show types and subtypes
1756 working with Declare::Constraints::Simple
1757 and Test::Deep as constraint engines.
1760 !! You must have Class::MOP 0.37_001 !!
1761 !! for this developer release to work !!
1763 This release was primarily adding the immutable
1764 feature to Moose. An immutable class is one which
1765 you promise not to alter. When you set the class
1766 as immutable it will perform various bits of
1767 memoization and inline certain part of the code
1768 (constructors, destructors and accessors). This
1769 minimizes (and in some cases totally eliminates)
1770 one of Moose's biggest performance hits. This
1771 feature is not on by default, and is 100% optional.
1772 It has several configurable bits as well, so you
1773 can pick and choose to your specific needs.
1775 The changes involved in this were fairly wide and
1776 highly specific, but 100% backwards compatible, so
1777 I am not going to enumerate them here. If you are
1778 truely interested in what was changed, please do
1781 0.17 Tues. Nov. 14, 2006
1782 * Moose::Meta::Method::Accessor
1783 - bugfix for read-only accessors which
1784 are have a type constraint and lazy.
1785 Thanks to chansen for finding it.
1787 0.16 Tues. Nov. 14, 2006
1789 There are some speed improvements in this release,
1790 but they are only the begining, so stay tuned.
1793 - BUILDALL and DEMOLISHALL no longer get
1794 called unless they actually need to be.
1795 This gave us a signifigant speed boost
1796 for the cases when there is no BUILD or
1797 DEMOLISH method present.
1799 * Moose::Util::TypeConstraints
1800 * Moose::Meta::TypeConstraint
1801 - added an 'optimize_as' option to the
1802 type constraint, which allows for a
1803 hand optimized version of the type
1804 constraint to be used when possible.
1805 - Any internally created type constraints
1806 now provide an optimized version as well.
1808 0.15 Sun. Nov. 5, 2006
1810 This version of Moose *must* have Class::MOP 0.36 in order
1811 to work correctly. A number of small internal tweaks have
1812 been made in order to be compatible with that release.
1814 * Moose::Util::TypeConstraints
1815 - added &unimport so that you can clean out
1816 your class namespace of these exported
1819 * Moose::Meta::Class
1820 - fixed minor issue which occasionally
1821 comes up during global destruction
1823 - moved Moose::Meta::Method::Overriden into
1827 - moved Moose::Meta::Role::Method into
1830 * Moose::Meta::Attribute
1831 - changed how we do type checks so that
1832 we reduce the overall cost, but still
1835 - moved accessor generation methods to
1836 Moose::Meta::Method::Accessor to
1837 conform to the API changes from
1840 * Moose::Meta::TypeConstraint
1841 - changed how constraints are compiled
1842 so that we do less recursion and more
1843 iteration. This makes the type check
1845 - moved Moose::Meta::TypeConstraint::Union
1848 * Moose::Meta::Method::Accessor
1849 - created this from methods formerly found in
1850 Moose::Meta::Attribute
1852 * Moose::Meta::Role::Method
1853 - moved this from Moose::Meta::Role
1855 * Moose::Meta::Method::Overriden
1856 - moved this from Moose::Meta::Class
1858 * Moose::Meta::TypeConstraint::Union
1859 - moved this from Moose::Meta::TypeConstraint
1861 0.14 Mon. Oct. 9, 2006
1863 * Moose::Meta::Attribute
1864 - fixed lazy attributes which were not getting
1865 checked with the type constraint (thanks ashley)
1866 - added tests for this
1867 - removed the over-enthusiastic DWIMery of the
1868 automatic ArrayRef and HashRef defaults, it
1869 broke predicates in an ugly way.
1870 - removed tests for this
1872 0.13 Sat. Sept. 30, 2006
1874 This version of Moose *must* have Class::MOP 0.35 in order
1875 to work correctly. A number of small internal tweaks have
1876 been made in order to be compatible with that release.
1879 - Removed the use of UNIVERSAL::require to be a better
1880 symbol table citizen and remove a dependency
1881 (thanks Adam Kennedy)
1883 **~~ removed experimental & undocumented feature ~~**
1884 - commented out the 'method' and 'self' keywords, see the
1885 comments for more info.
1888 - added a FAQ and WTF files to document frequently
1889 asked questions and common problems
1891 * Moose::Util::TypeConstraints
1892 - added GlobRef and FileHandle type constraint
1893 - added tests for this
1895 * Moose::Meta::Attribute
1896 - if your attribute 'isa' ArrayRef of HashRef, and you have
1897 not explicitly set a default, then make the default DWIM.
1898 This will also work for subtypes of ArrayRef and HashRef
1900 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1901 - new test added for this (thanks to ashley)
1904 - added basic support for runtime role composition
1905 but this is still *highly experimental*, so feedback
1906 is much appreciated :)
1907 - added tests for this
1909 * Moose::Meta::TypeConstraint
1910 - the type constraint now handles the coercion process
1911 through delegation, this is to support the coercion
1914 * Moose::Meta::TypeConstraint::Union
1915 - it is now possible for coercions to be performed
1917 - added tests for this (thanks to konobi)
1919 * Moose::Meta::TypeCoercion
1920 - properly capturing error when type constraint
1924 - Scalar::Util 1.18 is bad on Win32, so temporarily
1925 only require version 1.17 for Win32 and cygwin.
1926 (thanks Adam Kennedy)
1928 0.12 Sat. Sept. 1, 2006
1930 - Recipe5 (subtypes & coercion) has been written
1933 - fixed "bad meta" error message to be more descriptive
1934 - fixed &unimport to not remove the &inner and &super
1935 keywords because we need to localize them.
1936 - fixed number of spelling/grammer issues, thanks Theory :)
1938 **~~ experimental & undocumented feature ~~**
1939 - added the method and self keywords, they are basically
1940 just sugar, and they may not stay around.
1943 - added &dump method to easily Data::Dumper
1946 * Moose::Meta::TypeConstraint
1947 - added the &is_a_type_of method to check both the current
1948 and the subtype of a method (similar to &isa with classes)
1951 - this is now a subclass of Class::MOP::Module, and no longer
1952 creates the _role_meta ugliness of before.
1953 - fixed tests to reflect this change
1955 0.11 Wed. July 12, 2006
1957 - added an &unimport method to remove all the keywords
1958 that Moose will import, simply add 'no Moose' to the
1959 bottom of your class file.
1962 - fixed some test failures caused by a forgotten test
1965 0.10 Thurs. July 6, 2006
1967 - improved error message when loading modules so
1968 it is less confusing when you load a role.
1969 - added &calculate_all_roles method to
1970 Moose::Meta::Class and Moose::Meta::Role
1973 This module has been tested against Class::MOP 0.30
1974 but it does not yet utilize the optimizations
1975 it makes available. Stay tuned for that ;)
1977 0.09_03 Fri. June 23, 2006
1978 ++ DEVELOPER RELEASE ++
1980 - 'use strict' and 'use warnings' are no longer
1981 needed in Moose classes, Moose itself will
1982 turn them on for you.
1983 - added tests for this
1984 - moved code from exported subs to private methods
1985 in Moose::Meta::Class
1988 - as with Moose, strict and warnings are
1989 automatically turned on for you.
1990 - added tests for this
1993 - now handles an edge case for override errors
1994 - added tests for this
1995 - added some more edge case tests
1997 0.09_02 Tues. May 16, 2006
1998 ++ DEVELOPER RELEASE ++
2000 - added prototypes to the exported subs
2004 - added prototypes to the exported subs
2007 * Moose::Util::TypeConstraints
2008 - cleaned up prototypes for the subs
2011 0.09_01 Fri. May 12, 2006
2012 ++ DEVELOPER RELEASE ++
2013 - This release works in combination with
2014 Class::MOP 0.29_01, it is a developer
2015 release because it uses the a new
2016 instance sub-protocol and a fairly
2017 complete Role implementation. It has
2018 not yet been optimized, so it slower
2019 the the previous CPAN version. This
2020 release also lacks good updated docs,
2021 the official release will have updated docs.
2024 - refactored the keyword exports
2025 - 'with' now checks Role validaity and
2026 accepts more than one Role at a time
2027 - 'extends' makes metaclass adjustments as
2028 needed to ensure metaclass compatibility
2031 - refactored the keyword exports
2032 - 'with' now checks Role validaity and
2033 accepts more than one Role at a time
2035 * Moose::Util::TypeConstraints
2036 - added the 'enum' keyword for simple
2037 string enumerations which can be used as
2039 - see example of usage in t/202_example.t
2042 - more careful checking of params to new()
2045 - much work done on the role composition
2046 - many new tests for conflict detection
2047 and composition edge cases
2048 - not enough documentation, I suggest
2049 looking at the tests
2051 * Moose::Meta::Instance
2052 - added new Instance metaclass to support
2053 the new Class::MOP instance protocol
2055 * Moose::Meta::Class
2056 - some small changes to support the new
2058 - some small additions to support Roles
2060 * Moose::Meta::Attribute
2061 - some improvements to the accessor generation code
2063 - some small changes to support the new
2065 - (still somewhat) experimental delegation support
2066 with the 'handles' option
2067 - added several tests for this
2068 - no docs for this yet
2070 0.05 Thurs. April 27, 2006
2072 - keywords are now exported with Sub::Exporter
2073 thanks to chansen for this commit
2074 - has keyword now takes a 'metaclass' option
2075 to support custom attribute meta-classes
2076 on a per-attribute basis
2077 - added tests for this
2078 - the 'has' keyword not accepts inherited slot
2079 specifications (has '+foo'). This is still an
2080 experimental feature and probably not finished
2081 see t/038_attribute_inherited_slot_specs.t for
2082 more details, or ask about it on #moose
2083 - added tests for this
2086 - keywords are now exported with Sub::Exporter
2088 * Moose::Utils::TypeConstraints
2089 - reorganized the type constraint hierarchy, thanks
2090 to nothingmuch and chansen for his help and advice
2092 - added some tests for this
2093 - keywords are now exported with Sub::Exporter
2094 thanks to chansen for this commit
2096 * Moose::Meta::Class
2097 - due to changes in Class::MOP, we had to change
2098 construct_instance (for the better)
2100 * Moose::Meta::Attribute
2101 - due to changes in Class::MOP, we had to add the
2102 initialize_instance_slot method (it's a good thing)
2104 * Moose::Meta::TypeConstraint
2105 - added type constraint unions
2106 - added tests for this
2107 - added the is_subtype_of predicate method
2108 - added tests for this
2110 0.04 Sun. April 16th, 2006
2112 - Roles can now consume other roles
2113 - added tests for this
2114 - Roles can specify required methods now with
2115 the requires() keyword
2116 - added tests for this
2119 - ripped out much of it's guts ,.. much cleaner now
2120 - added required methods and correct handling of
2121 them in apply() for both classes and roles
2122 - added tests for this
2123 - no longer adds a does() method to consuming classes
2124 it relys on the one in Moose::Object
2125 - added roles attribute and some methods to support
2126 roles consuming roles
2128 * Moose::Meta::Attribute
2129 - added support for triggers on attributes
2130 - added tests for this
2131 - added support for does option on an attribute
2132 - added tests for this
2134 * Moose::Meta::Class
2135 - added support for attribute triggers in the
2137 - added tests for this
2140 - Moose no longer creates a subtype for your class
2141 if a subtype of the same name already exists, this
2142 should DWIM in 99.9999% of all cases
2144 * Moose::Util::TypeConstraints
2145 - fixed bug where incorrect subtype conflicts were
2147 - added test for this
2150 - this class can now be extended with 'use base' if
2151 you need it, it properly loads the metaclass class now
2152 - added test for this
2154 0.03_02 Wed. April 12, 2006
2156 - you must now explictly use Moose::Util::TypeConstraints
2157 it no longer gets exported for you automatically
2160 - new() now accepts hash-refs as well as key/value lists
2161 - added does() method to check for Roles
2162 - added tests for this
2164 * Moose::Meta::Class
2165 - added roles attribute along with the add_role() and
2167 - added tests for this
2170 - now adds a does() method to consuming classes
2171 which tests the class's hierarchy for roles
2172 - added tests for this
2174 0.03_01 Mon. April 10, 2006
2176 - added new Role recipe (no content yet, only code)
2179 - added 'with' keyword for Role support
2180 - added test and docs for this
2181 - fixed subtype quoting bug
2182 - added test for this
2186 - added test and docs
2188 * Moose::Util::TypeConstraints
2189 - added the message keyword to add custom
2190 error messages to type constraints
2193 - the meta role to support Moose::Role
2194 - added tests and docs
2196 * Moose::Meta::Class
2197 - moved a number of things from Moose.pm
2198 to here, they should have been here
2201 * Moose::Meta::Attribute
2202 - moved the attribute option macros here
2203 instead of putting them in Moose.pm
2205 * Moose::Meta::TypeConstraint
2206 - added the message attributes and the
2208 - added tests and docs for this
2210 0.03 Thurs. March 30, 2006
2212 - added the Moose::Cookbook with 5 recipes,
2213 describing all the stuff Moose can do.
2216 - fixed an issue with &extends super class loading
2217 it now captures errors and deals with inline
2218 packages correctly (bug found by mst, solution
2220 - added super/override & inner/augment features
2221 - added tests and docs for these
2224 - BUILDALL now takes a reference of the %params
2225 that are passed to &new, and passes that to
2228 * Moose::Util::TypeConstraints
2229 - Type constraints now survive runtime reloading
2230 - added test for this
2232 * Moose::Meta::Class
2233 - fixed the way attribute defaults are handled
2234 during instance construction (bug found by chansen)
2236 * Moose::Meta::Attribute
2237 - read-only attributes now actually enforce their
2238 read-only-ness (this corrected in Class::MOP as
2241 0.02 Tues. March 21, 2006
2243 - many more tests, fixing some bugs and
2245 - &extends now loads the base module with
2247 - added UNIVERSAL::require to the
2250 - each new Moose class will also create
2251 and register a subtype of Object which
2252 correspond to the new Moose class.
2253 - the 'isa' option in &has now only
2254 accepts strings, and will DWIM in
2257 * Moose::Util::TypeConstraints
2258 - added type coercion features
2259 - added tests for this
2260 - added support for this in attributes
2261 and instance construction
2263 - type construction no longer creates a
2264 function, it registers the type instead.
2265 - added several functions to get the
2269 - BUILDALL and DEMOLISHALL were broken
2270 because of a mis-named hash key, Whoops :)
2272 * Moose::Meta::Attribute
2273 - adding support for coercion in the
2274 autogenerated accessors
2276 * Moose::Meta::Class
2277 - adding support for coercion in the
2278 instance construction
2280 * Moose::Meta::TypeConstraint
2281 * Moose::Meta::TypeCoercion
2282 - type constraints and coercions are now
2283 full fledges meta-objects
2285 0.01 Wed. March 15, 2006
2286 - Moooooooooooooooooose!!!