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 * Moose::Meta::Method::Constructor
35 - Make it easier to subclass the inlining behaviour
37 * Moose::Manual::Delta
38 - Details significant changes in the history of Moose, along
39 with recommended workarounds.
41 * Moose::Manual::Contributing
42 - Contributor's guide to Moose.
44 * Moose::Meta::Method::Constructor
45 - The long-deprecated intialize_body method has been removed
46 (yes, spelled like that).
48 * Moose::Meta::Method::Destructor
49 - This is_needed method is now always a class method.
52 - Changes to the internals of how make_immutable works to match
53 changes in latest Class::MOP.
55 0.72 Mon, February 23, 2009
57 * Moose::Meta::Method::Constructor
58 - A mutable class accepted Foo->new(undef) without complaint,
59 while an immutable class would blow up with an unhelpful
60 error. Now, in both cases we throw a helpful error
61 instead. Reported by doy.
63 0.71_01 Sun, February 22, 2009
65 - Hopefully fixed some POD errors in a few recipes that caused
66 them to display weird on search.cpan.org.
68 * Moose::Util::TypeConstraints
69 - Calling type or subtype without the sugar helpers (as, where,
70 message) is now deprecated.
71 - The subtype function tried hard to guess what you meant, but
72 often got it wrong. For example:
74 my $subtype = subtype as 'ArrayRef[Object]';
76 This caused an error in the past, but now works as you'd
80 - Make sure Moose.pm is loaded before calling
81 Moose->throw_error. This wasn't normally an issue, but could
82 bite you in weird cases.
84 0.71 Thu, February 19, 2009
85 * Moose::Cookbook::Basics::Recipe11
86 - A new recipe which demonstrates the use of BUILDARGS and
89 * Moose::Cookbook::Roles::Recipe3
90 - A new recipe, applying a role to an object instance. (Dave
94 - Allow overriding specific keywords from "also" packages. (doy)
97 - Replace hardcoded cookbook tests with Test::Inline to ensure
98 the tests match the actual code in the recipes. (Dave Rolsky)
101 - Working on the above turned up a number of little bugs in the
102 recipe code. (Dave Rolsky)
104 * Moose::Util::TypeConstraints::Optimized
105 - Just use Class::MOP for the optimized ClassName check. (Dave
108 0.70 Sat, February 14, 2009
109 * Moose::Util::TypeConstraints
110 - Added the RoleName type (stevan)
111 - added tests for this (stevan)
113 * Moose::Cookbook::Basics::Recipe3
114 - Updated the before qw[left right] sub to be a little more
115 defensive about what it accepts (stevan)
116 - added more tests to t/000_recipies/basics/003_binary_tree.t
120 - We now always call DEMOLISHALL, even if a class does not
121 define DEMOLISH. This makes sure that method modifiers on
122 DEMOLISHALL work as expected. (doy)
123 - added tests for this (EvanCarroll)
125 * Moose::Util::MetaRole
126 - Accept roles for the wrapped_method_metaclass (rafl)
127 - added tests for this (rafl)
129 * Moose::Meta::Attribute
130 - We no longer pass the meta-attribute object as a final
131 argument to triggers. This actually changed for inlined code a
132 while back, but the non-inlined version and the docs were
136 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
137 they require 0.11. (Dave Rolsky)
140 - Lots of small changes to the manual, cookbook, and
141 elsewhere. These were based on feedback from various
142 users, too many to list here. (Dave Rolsky)
144 0.69 Thu, February 12, 2009
146 - Make some keyword errors use throw_error instead of croak
147 since Moose::Exporter wraps keywords now (Sartak)
150 - Revised every recipe for style and clarity. Also moved some
151 documentation out of cookbook recipes and into Moose::Manual
152 pages. This work was funded as part of the Moose docs grant
153 from TPF. (Dave Rolsky)
155 * Moose::Meta::Method::Delegation
156 - If the attribute doing the delegation was not populated, the
157 error message did not specify the attribute name
160 0.68 Wed, February 4, 2009
162 - Many spelling, typo, and formatting fixes by daxim.
164 * Moose::Manual::Attributes
165 - The NAME section in the POD used "Attribute" so search.cpan
166 didn't resolve links from other documents properly.
168 * Moose::Meta::Method::Overriden
169 - Now properly spelled as Overridden. Thanks to daxim for
172 0.67 Tue, February 3, 2009
174 - Lots of little typo fixes and a few clarifications. Several
175 pages didn't have proper titles, and so weren't actually
176 visible on search.cpan.org. Thanks to hanekomu for a variety
177 of fixes and formatting improvements.
179 0.66 Tue, February 3, 2009
181 - This is a brand new, extensive manual for Moose. This aims to
182 provide a complete introduction to all of Moose's
183 features. This work was funded as part of the Moose docs grant
184 from TPF. (Dave Rolsky)
186 * Moose::Meta::Attribute
187 - Added a delegation_metaclass method to replace a hard-coded
188 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
190 * Moose::Util::TypeConstraints
191 - If you created a subtype and passed a parent that Moose didn't
192 know about, it simply ignored the parent. Now it automatically
193 creates the parent as a class type. This may not be what you
194 want, but is less broken than before. (Dave Rolsky)
196 * Moose::Util::TypeConstraints
197 - This module tried throw errors by calling Moose->throw_error,
198 but it did not ensure that Moose was loaded first. This could
199 cause very unhelpful errors when it tried to throw an error
200 before Moose was loaded. (Dave Rolsky)
202 * Moose::Util::TypeConstraints
203 - You could declare a name with subtype such as "Foo!Bar" that
204 would be allowed, but if you used it in a parameterized type
205 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
206 vetting on names created via the sugar functions, so that they
207 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
209 0.65 Thu, January 22, 2008
210 * Moose and Moose::Meta::Method::Overridden
211 - If an overridden method called super(), and then the
212 superclass's method (not overridden) _also_ called super(),
213 Moose went into an endless recursion loop. Test provided by
214 Chris Prather. (Dave Rolsky)
216 * Moose::Meta::TypeConstraint
217 - All methods are now documented. (gphat)
219 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
220 - Fixed some bogus failures that occurred because we tried to
221 validate filesystem paths in a very ad-hoc and
222 not-quite-correct way. (Dave Rolsky)
224 * Moose::Util::TypeConstraints
225 - Added maybe_type to exports. See docs for details. (rjbs)
228 - Added Moose::Util::TypeConstraints to the SEE ALSO
232 - Methods created via an attribute can now fulfill a "requires"
233 declaration for a role. (nothingmuch)
235 * Moose::Meta::Method::*
236 - Stack traces from inlined code will now report its line and
237 file as being in your class, as opposed to in Moose
240 0.64 Wed, December 31, 2008
241 * Moose::Meta::Method::Accessor
242 - Always inline predicate and clearer methods (Sartak)
244 * Moose::Meta::Attribute
245 - Support for parameterized traits (Sartak)
246 - verify_against_type_constraint method to avoid duplication
247 and enhance extensibility (Sartak)
250 - Tests (but no support yet) for parameterized traits (Sartak)
253 - Require Class::MOP 0.75+, which has the side effect of making
254 sure we work on Win32. (Dave Rolsky)
256 0.63 Mon, December 8, 2008
258 - Some small grammar tweaks and bug fixes in non-Moose example
261 0.62_02 Fri, December 5, 2008
262 * Moose::Meta::Role::Application::ToClass
263 - When a class does not provide all of a role's required
264 methods, the error thrown now mentions all of the missing
265 methods, as opposed to just the first one found. Requested by
266 Curtis Poe (RT #41119). (Dave Rolsky)
268 * Moose::Meta::Method::Constructor
269 - Moose will no longer inline a constructor for your class
270 unless it inherits its constructor from Moose::Object, and
271 will warn when it doesn't inline. If you want to force
272 inlining anyway, pass "replace_constructor => 1" to
273 make_immutable. Addresses RT #40968, reported by Jon
274 Swartz. (Dave Rolsky)
275 - The quoting of default values could be broken if the default
276 contained a single quote ('). Now we use quotemeta to escape
277 anything potentially dangerous in the defaults. (Dave Rolsky)
279 0.62_01 Wed, December 3, 2008
281 - use the method->execute API for BUILDALL
282 and DEMOLISHALL (Sartak)
284 * Moose::Util::TypeConstraints
285 - We now make all the type constraint meta classes immutable
286 before creating the default types provided by Moose. This
287 should make loading Moose a little faster. (Dave Rolsky)
289 0.62 Wed November 26, 2008
290 * Moose::Meta::Role::Application::ToClass
291 Moose::Meta::Role::Application::ToRole
292 - fixed issues where excluding and aliasing the
293 same methods for a single role did not work
294 right (worked just fine with multiple
296 - added test for this (stevan)
298 * Moose::Meta::Role::Application::RoleSummation
299 - fixed the error message when trying to compose
300 a role with a role it excludes (Sartak)
303 - Catch another case where recursion caused the value
304 of $CALLER to be stamped on (t0m)
305 - added test for this (t0m)
308 - Remove the make_immutable keyword, which has been
309 deprecated since April. It breaks metaclasses that
310 use Moose without no Moose (Sartak)
312 * Moose::Meta::Attribute
313 - Removing an attribute from a class now also removes delegation
314 (handles) methods installed for that attribute (t0m)
315 - added test for this (t0m)
317 * Moose::Meta::Method::Constructor
318 - An attribute with a default that looked like a number (but was
319 really a string) would accidentally be treated as a number
320 when the constructor was made immutable (perigrin)
321 - added test for this (perigrin)
324 - create method for constructing a role
326 - added test for this (Sartak)
327 - anonymous roles! (Sartak)
328 - added test for this (Sartak)
331 - more consistent error messages (Sartak)
333 * Moose::Cookbook::Roles::Recipe1
334 - attempt to explain why a role that just requires
335 methods is useful (Sartak)
337 0.61 Fri November 7, 2008
338 * Moose::Meta::Attribute
339 - When passing a role to handles, it will be loaded if necessary
343 - Method objects returned by get_method (and other methods)
344 Could end up being returned without an associated_metaclass
345 attribute. Removing get_method_map, which is provided by
346 Class::MOP::Class, fixed this. The Moose version did nothing
347 different from its parent except introduce a bug. (Dave Rolsky)
348 - added tests for this (jdv79)
351 - Added a $VERSION to all .pm files which didn't have one. Fixes
352 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
354 * Moose::Cookbook::Basics::Recipe4
355 * Moose::Cookbook::Basics::Recipe6
356 - These files had spaces on the first line of the SYNOPSIS, as
357 opposed to a totally empty line. According to RT #40432, this
358 confuses POD parsers. (Dave Rolsky)
360 0.60 Fri October 24, 2008
362 - Passing "-traits" when loading Moose caused the Moose.pm
363 exports to be broken. Reported by t0m. (Dave Rolsky)
364 - Tests for this bug. (t0m)
367 - Change resolve_metaclass alias to use the new
368 load_first_existing_class function. This makes it a lot
369 simpler, and also around 5 times faster. (t0m)
370 - Add caching to resolve_metaclass_alias, which gives an order
371 of magnitude speedup to things which repeatedly call the
372 Moose::Meta::Attribute->does method, notably MooseX::Storage
375 * Moose::Util::TypeConstraint
376 - Put back the changes for parameterized constraints that
377 shouldn't have been removed in 0.59. We still cannot parse
378 them, but MooseX modules can create them in some other
379 way. See the 0.58 changes for more details. (jnapiorkowski)
380 - Changed the way subtypes are created so that the job is
381 delegated to a type constraint parent. This clears up some
382 hardcoded checking and should allow correct subtypes of
383 Moose::Meta::Type::Constraint. Don't rely on this new API too
384 much (create_child_type) because it may go away in the
385 future. (jnapiorkowski)
387 * Moose::Meta::TypeConstraint::Union
388 - Type constraint names are sorted as strings, not numbers.
391 * Moose::Meta::TypeConstraint::Parameterizable
392 - New parameterize method. This can be used as a factory method
393 to make a new type constraint with a given parameterized
394 type. (jnapiorkowski)
395 - added tests (jnapiorkowski)
397 0.59 Tue October 14, 2008
399 - Add abridged documentation for builder/default/initializer/
400 predicate, and link to more details sections in
401 Class::MOP::Attribute. (t0m)
403 * Moose::Util::TypeConstraints
404 - removed prototypes from all but the &-based stuff (mst)
406 * Moose::Util::TypeConstraints
407 - Creating a anonymous subtype with both a constraint and a
408 message failed with a very unhelpful error, but should just
409 work. Reported by t0m. (Dave Rolsky)
412 - Some tests that used Test::Warn if it was available failed
413 with older versions of Test::Warn. Reported by Fayland. (Dave
415 - Test firing behavior of triggers in relation to builder/default/
417 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
418 kinds of supported type. (t0m)
421 - In create(), do not pass "roles" option to the superclass
422 - added related test that creates an anon metaclass with
425 * Moose::Meta::TypeConstraint::Class
426 * Moose::Meta::TypeConstraint::Role
427 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
428 other types (as per change in 0.55_02). (t0m)
430 * Moose::Meta::TypeConstraint::Registry
431 - Fix warning when dealing with unknown type names (t0m)
433 * Moose::Util::TypeConstraints
434 - Reverted changes from 0.58 related to handle parameterized
435 types. This caused random failures on BSD and Win32 systems,
436 apparently related to the regex engine. This means that Moose
437 can no longer parse structured type constraints like
438 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
439 supported in a slightly different way via MooseX::Types some
440 time in the future. (Dave Rolsky)
442 0.58 Sat September 20, 2008
443 !! This release has an incompatible change regarding !!
444 !! how roles add methods to a class !!
446 * Roles and role application
447 ! Roles now add methods by calling add_method, not
448 alias_method. They make sure to always provide a method
449 object, which will be cloned internally. This means that it is
450 now possible to track the source of a method provided by a
451 role, and even follow its history through intermediate roles.
453 This means that methods added by a role now show up when
454 looking at a class's method list/map. (Dave Rolsky)
457 - From this release on, we'll try to maintain a list of
458 conflicting modules, and warn you if you have one
459 installed. For example, this release conflicts with ...
460 - MooseX::Singleton <= 0.11
461 - MooseX::Params::Validate <= 0.05
464 In general, we try to not break backwards compatibility for
465 most Moose users, but MooseX modules and other code which
466 extends Moose's metaclasses is often affected by very small
467 changes in the Moose internals.
469 * Moose::Meta::Method::Delegation
470 * Moose::Meta::Attribute
471 - Delegation methods now have their own method class. (Dave
474 * Moose::Meta::TypeConstraint::Parameterizable
475 - Added a new method 'parameterize' which is basically a factory
476 for the containing constraint. This makes it easier to create
477 new types of parameterized constraints. (jnapiorkowski)
479 * Moose::Meta::TypeConstraint::Union
480 - Changed the way Union types canonicalize their names to follow
481 the normalized TC naming rules, which means we strip all
482 whitespace. (jnapiorkowski)
484 * Moose::Util::TypeConstraints
485 - Parameter and Union args are now sorted, this makes Int|Str
486 the same constraint as Str|Int. (jnapiorkowski)
487 - Changes to the way Union types are parsed to more correctly
488 stringify their names. (jnapiorkowski)
489 - When creating a parameterized type, we now use the new
490 parameterize method. (jnapiorkowski)
491 - Incoming type constraint strings are now normalized to remove
492 all whitespace differences. (jnapiorkowski)
493 - Changed the way we parse type constraint strings so that we now
494 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
495 constraints. This lays the foundation for more flexible type
496 constraint implementations.
498 * Tests and docs for all the above. (jnapiorkowski)
502 - Moose::Exporter will no longer remove a subroutine that the
503 exporting package re-exports. Moose re-exports the
504 Carp::confess function, among others. The reasoning is that we
505 cannot know whether you have also explicitly imported those
506 functions for your own use, so we err on the safe side and
507 always keep them. (Dave Rolsky)
508 - added tests for this (rafl)
511 - Changes to how we fix metaclass compatibility that are much
512 too complicated to go into. The summary is that Moose is much
513 less likely to complain about metaclass incompatibility
514 now. In particular, if two metaclasses differ because
515 Moose::Util::MetaRole was used on the two corresponding
516 classes, then the difference in roles is reconciled for the
517 subclass's metaclass. (Dave Rolsky)
518 - Squashed an warning in _process_attribute (thepler)
521 - throw exceptions (sooner) for invalid attribute names (thepler)
522 - added tests for this (thepler)
524 * Moose::Util::MetaRole
525 - If you explicitly set a constructor or destructor class for a
526 metaclass object, and then applied roles to the metaclass,
527 that explicitly set class would be lost and replaced with the
531 * Moose::Meta::Attribute
532 * Moose::Meta::Method
535 * Moose::Error::Default
536 * Moose::Error::Croak
537 * Moose::Error::Confess
538 - All instances of confess() changed to use overridable
539 C<throw_error> method. This method ultimately calls a class
540 constructor, and you can change the class being called. In
541 addition, errors now pass more information than just a string.
542 The default C<error_class> behaves like C<Carp::confess>, so
543 the behavior is not visibly different for end users.
545 0.57 Wed September 3, 2008
547 - A new bit of doc intended to introduce folks familiar with
548 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
551 - Shows examples of two classes, each done first with and then
552 without Moose. This makes a nice parallel to
553 Moose::Intro. (Dave Rolsky)
555 * Moose::Util::TypeConstraints
556 - Fixed a bug in find_or_parse_type_constraint so that it
557 accepts a Moose::Meta::TypeConstraint object as the parent
558 type, not just a name (jnapiorkowski)
559 - added tests (jnapiorkowski)
562 - If Sub::Name was not present, unimporting failed to actually
563 remove some sugar subs, causing test failures (Dave Rolsky)
565 0.56 Mon September 1, 2008
566 For those not following the series of dev releases, there are
567 several major changes in this release of Moose.
568 ! Moose::init_meta should now be called as a method. See the
571 - Major performance improvements by nothingmuch.
573 - New modules for extension writers, Moose::Exporter and
574 Moose::Util::MetaRole by Dave Rolsky.
576 - Lots of doc improvements and additions, especially in the
581 * Removed all references to the experimental-but-no-longer-needed
582 Moose::Meta::Role::Application::ToMetaclassInstance.
584 * Require Class::MOP 0.65.
586 0.55_04 Sat August 30, 2008
587 * Moose::Util::MetaRole
588 * Moose::Cookbook::Extending::Recipe2
589 - This simplifies the application of roles to any meta class, as
590 well as the base object class. Reimplemented metaclass traits
591 using this module. (Dave Rolsky)
593 * Moose::Cookbook::Extending::Recipe1
594 - This a new recipe, an overview of various ways to write Moose
595 extensions (Dave Rolsky)
597 * Moose::Cookbook::Extending::Recipe3
598 * Moose::Cookbook::Extending::Recipe4
599 - These used to be Extending::Recipe1 and Extending::Recipe2,
602 0.55_03 Fri August 29, 2008
603 * No changes from 0.55_02 except increasing the Class::MOP
604 dependency to 0.64_07.
606 0.55_02 Fri August 29, 2008
607 * Makefile.PL and Moose.pm
608 - explicitly require Perl 5.8.0+ (Dave Rolsky)
610 * Moose::Util::TypeConstraints
611 - Fix warnings from find_type_constraint if the type is not
614 * Moose::Meta::TypeConstraint
615 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
616 return false if the type you specify cannot be found in the
617 type registry, rather than throwing an unhelpful and
618 coincidental exception. (t0m).
619 - added docs & test for this (t0m)
621 * Moose::Meta::TypeConstraint::Registry
622 - add_type_constraint now throws an exception if a parameter is
624 - added docs & test for this (t0m)
626 * Moose::Cookbook::FAQ
627 - Added a faq entry on the difference between "role" and "trait"
631 - Fixed a bug that caused role composition to not see a required
632 method when that method was provided by another role being
633 composed at the same time. (Dave Rolsky)
634 - test and bug finding (tokuhirom)
636 0.55_01 Wed August 20, 2008
638 !! Calling Moose::init_meta as a function is now !!
639 !! deprecated. Please see the Moose.pm docs for details. !!
641 * Moose::Meta::Method::Constructor
642 - Fix inlined constructor so that values produced by default
643 or builder methods are coerced as required. (t0m)
644 - added test for this (t0m)
646 * Moose::Meta::Attribute
647 - A lazy attribute with a default or builder did not attempt to
648 coerce the default value. The immutable code _did_
650 - added test for this (t0m)
653 - This is a new helper module for writing "Moose-alike"
654 modules. This should make the lives of MooseX module authors
655 much easier. (Dave Rolsky)
658 * Moose::Cookbook::Meta::Recipe5
659 - Implemented metaclass traits (and wrote a recipe for it):
661 use Moose -traits => 'Foo'
663 This should make writing small Moose extensions a little
666 * Moose::Cookbook::Basics::Recipe1
667 - Removed any examples of direct hashref access, and applied an
668 editorial axe to reduce verbosity. (Dave Rolsky)
670 * Moose::Cookbook::Basics::Recipe1
671 - Also applied an editorial axe here. (Dave Rolsky)
674 * Moose::Cookbook::Extending::Recipe1
675 * Moose::Cookbook::Extending::Recipe2
676 - Rewrote extending and embedding moose documentation and
677 recipes to use Moose::Exporter (Dave Rolsky)
681 - These two modules now warn when you load them from the main
682 package "main" package, because we will not export sugar to
683 main. Previously it just did nothing. (Dave Rolsky)
686 - Now provide an init_meta method just like Moose.pm, and you
687 can call this to provide an alternate role metaclass. (Dave
688 Rolsky and nothingmuch)
689 - get_method_map now respects the package cache flag (nothingmuch)
692 - Two new methods - add_method and wrap_method_body
696 - Optimizations including allowing constructors to accept hash
697 refs, making many more classes immutable, and making
698 constructors immutable. (nothingmuch)
700 0.55 Sun August 3, 2008
701 * Moose::Meta::Attribute
702 - breaking down the way 'handles' methods are
703 created so that the process can be more easily
704 overridden by subclasses (stevan)
706 * Moose::Meta::TypeConstraint
707 - fixing what is passed into a ->message with
708 the type constraints (RT #37569)
709 - added tests for this (Charles Alderman)
711 * Moose::Util::TypeConstraints
712 - fix coerce to accept anon types like subtype can (mst)
715 - reorganized the recipes into sections - Basics, Roles, Meta,
716 Extending - and wrote abstracts for each section (Dave Rolsky)
718 * Moose::Cookbook::Basics::Recipe10
719 - A new recipe that demonstrates operator overloading
720 in combination with Moose. (bluefeet)
722 * Moose::Cookbook::Meta::Recipe1
723 - an introduction to what meta is and why you'd want to make
724 your own metaclass extensions (Dave Rolsky)
726 * Moose::Cookbook::Meta::Recipe4
727 - a very simple metaclass example (Dave Rolsky)
729 * Moose::Cookbook::Extending::Recipe1
730 - how to write a Moose-alike module to use your own object base
733 * Moose::Cookbook::Extending::Recipe2
734 - how to write modules with an API just like C<Moose.pm> (Dave
738 - Tons of fixes, both syntactical and grammatical (Dave
739 Rolsky, Paul Fenwick)
741 0.54 Thurs. July 3, 2008
742 ... this is not my day today ...
744 * Moose::Meta::Attribute
745 - fixed legal_options_for_inheritance such that
746 clone_and_inherit options still works for
747 Class::MOP::Attribute objects and therefore
748 does not break MooseX::AttributeHelpers
751 0.53 Thurs. July 3, 2008
752 * Whoops, I guess I should run 'make manifest' before
753 actually releasing the module. No actual changes
754 in this release, except the fact that it includes
755 the changes that I didn't include in the last
758 0.52 Thurs. July 3, 2008
760 - added "FEATURE REQUESTS" section to the Moose docs
761 to properly direct people (stevan) (RT #34333)
762 - making 'extends' croak if it is passed a Role since
763 this is not ever something you want to do
764 (fixed by stevan, found by obra)
765 - added tests for this (stevan)
768 - adding support for DOES (as in UNIVERSAL::DOES)
770 - added test for this
772 * Moose::Meta::Attribute
773 - added legal_options_for_inheritance (wreis)
774 - added tests for this (wreis)
776 * Moose::Cookbook::Snacks::*
777 - removed some of the unfinished snacks that should
778 not have been released yet. Added some more examples
779 to the 'Keywords' snack. (stevan)
781 * Moose::Cookbook::Style
782 - added general Moose "style guide" of sorts to the
783 cookbook (nothingmuch) (RT #34335)
786 - added more BUILDARGS tests (stevan)
788 0.51 Thurs. Jun 26, 2008
790 - add unimport so "no Moose::Role" actually does
793 * Moose::Meta::Role::Application::ToRole
794 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
795 order to provide its own implementation, that method still got
796 added to the list of required methods for consumers of
797 RoleB. Now an aliased method is only added to the list of
798 required methods if the role doing the aliasing does not
799 provide its own implementation. See Recipe 11 for an example
800 of all this. (Dave Rolsky)
801 - added tests for this
803 * Moose::Meta::Method::Constructor
804 - when a single argument that wasn't a hashref was provided to
805 an immutabilized constructor, the error message was very
806 unhelpful, as opposed to the non-immutable error. Reported by
808 - added test for this (Dave Rolsky)
810 * Moose::Meta::Attribute
811 - added support for meta_attr->does("ShortAlias") (sartak)
812 - added tests for this (sartak)
813 - moved the bulk of the `handles` handling to the new
814 install_delegation method (Stevan)
817 - Added BUILDARGS, a new step in new()
819 * Moose::Meta::Role::Application::RoleSummation
820 - fix typos no one ever sees (sartak)
822 * Moose::Util::TypeConstraints
823 * Moose::Meta::TypeConstraint
824 * Moose::Meta::TypeCoercion
825 - Attempt to work around the ??{ } vs. threads issue
827 - Some null_constraint optimizations
829 0.50 Thurs. Jun 11, 2008
830 - Fixed a version number issue by bumping all modules
833 0.49 Thurs. Jun 11, 2008
834 !! This version now approx. 20-25% !!
835 !! faster with new Class::MOP 0.59 !!
837 * Moose::Meta::Attribute
838 - fixed how the is => (ro|rw) works with
839 custom defined reader, writer and accessor
841 - added docs for this (TODO).
842 - added tests for this (Thanks to Penfold)
843 - added the custom attribute alias for regular
844 Moose attributes which is "Moose"
845 - fix builder and default both being used
850 Moose::Meta::Attribute
852 Moose::Meta::Role::Composite
853 Moose::Util::TypeConstraints
854 - switched usage of reftype to ref because
858 - changing add_package_symbol to use the new
862 - fixed how DEMOLISHALL is called so that it
863 can be overrided in subclasses (thanks to Sartak)
864 - added test for this (thanks to Sartak)
866 * Moose::Util::TypeConstraints
867 - move the ClassName type check code to
868 Class::MOP::is_class_loaded (thanks to Sartak)
870 * Moose::Cookbook::Recipe11
871 - add tests for this (thanks to tokuhirom)
873 0.48 Thurs. May 29, 2008
874 (early morning release engineering)--
876 - fixing the version in Moose::Meta::Method::Destructor
877 which was causing the indexer to choke
879 0.47 Thurs. May 29, 2008
880 (late night release engineering)--
882 - fixing the version is META.yml, no functional
883 changes in this release
885 0.46 Wed. May 28, 2008
886 !! This version now approx. 20-25% !!
887 !! faster with new Class::MOP 0.57 !!
890 - some optimizations of the &initialize method
891 since it is called so often by &meta
895 - now use the get_all_package_symbols from the
896 updated Class::MOP, test suite is now 10 seconds
899 * Moose::Meta::Method::Destructor
900 - is_needed can now also be called as a class
901 method for immutablization to check if the
902 destructor object even needs to be created
905 * Moose::Meta::Method::Destructor
906 Moose::Meta::Method::Constructor
907 - added more descriptive error message to help
908 keep people from wasting time tracking an error
909 that is easily fixed by upgrading.
911 0.45 Saturday, May 24, 2008
913 - Because of work in Class::MOP 0.57, all
914 XS based functionality is now optional
915 and a Pure Perl version is supplied
916 - the CLASS_MOP_NO_XS environment variable
917 can now be used to force non-XS versions
919 - several of the packages have been tweaked
920 to take care of this, mostly we added
921 support for the package_name and name
922 variables in all the Method metaclasses
923 - before/around/after method modifiers now
924 support regexp matching of names
925 (thanks to Takatoshi Kitano)
926 - tests added for this
927 - NOTE: this only works for classes, it
928 is currently not supported in roles,
929 but, ... patches welcome
930 - All usage of Carp::confess have been replaced
931 by Carp::croak in the "keyword" functions since
932 the stack trace is usually not helpful
935 - All usage of Carp::confess have been replaced
936 by Carp::croak in the "keyword" functions since
937 the stack trace is usually not helpful
938 - The 'has' keyword for roles now accepts the
939 same array ref form that Moose.pm does
940 (has [qw/foo bar/] => (is => 'rw', ...))
941 - added test for this
943 * Moose::Meta::Attribute
944 - trigger on a ro-attribute is no longer an
945 error, as it's useful to trigger off of the
949 - added same 'add_package_symbol' fix as in
953 - does_role now handles non-Moose classes
955 - added tests for this
956 - added the 'add_method_modifier' function
957 (thanks to Takatoshi Kitano)
959 * Moose::Util::TypeConstraints
960 - subtypes of parameterizable types now are
961 themselves parameterizable types
963 * Moose::Meta::Method::Constructor
964 - fixed bug where trigger was not being
965 called by the inlined immutable
967 - added test for this (thanks to Caelum)
969 * Moose::Meta::Role::Application::ToInstance
970 - now uses the metaclass of the instance
971 (if possible) to create the anon-class
972 (thanks Jonathan Rockway)
974 * Moose::Cookbook::Recipe22
975 - added the meta-attribute trait recipe
979 - fixed hash-ordering test bug that was
980 causing occasional cpantester failures
981 - renamed the t/000_recipe/*.t tests to be
982 more descriptive (thanks to Sartak)
984 0.44 Sat. May 10, 2008
986 - made make_immutable warning cluck to
987 show where the error is (thanks mst)
990 - BUILDALL and DEMOLISHALL now call
991 ->body when looping through the
992 methods, to avoid the overloaded
994 - fixed issue where DEMOLISHALL was
995 eating the $@ values, and so not
996 working correctly, it still kind of
997 eats them, but so does vanilla perl
998 - added tests for this
1000 * Moose::Cookbook::Recipe7
1001 - added new recipe for immutable
1002 functionality (thanks Dave Rolsky)
1004 * Moose::Cookbook::Recipe9
1005 - added new recipe for builder and
1006 lazy_build (thanks Dave Rolsky)
1008 * Moose::Cookbook::Recipe11
1009 - added new recipe for method aliasing
1010 and exclusion with Roles (thanks Dave Rolsky)
1013 - fixed Win32 test failure (thanks spicyjack)
1015 ~ removed Build.PL and Module::Build compat
1016 since Module::Install has done that.
1018 0.43 Wed. April, 30, 2008
1020 drink more coffee before
1021 doing release engineering
1023 - whoops, forgot to do the smolder tests,
1024 and we broke some of the custom meta-attr
1025 modules. This fixes that.
1027 0.42 Mon. April 28, 2008
1028 - some bad tests slipped by, nothing else
1029 changed in this release (cpantesters++)
1031 - upped the Class::MOP dependency to 0.55
1032 since we have tests which need the C3
1035 0.41 Mon. April 28, 2008
1036 ~~ numerous documentation updates ~~
1038 - Changed all usage of die to Carp::croak for better
1039 error reporting (initial patch by Tod Hagan)
1041 ** IMPORTANT NOTE **
1042 - the make_immutable keyword is now deprecated, don't
1043 use it in any new code and please fix your old code
1044 as well. There will be 2 releases, and then it will
1050 - refactored the way inner and super work to avoid
1051 any method/@ISA cache penalty (nothingmuch)
1053 * Moose::Meta::Class
1054 - fixing &new_object to make sure trigger gets the
1055 coerced value (spotted by Charles Alderman on the
1057 - added test for this
1059 * Moose::Meta::Method::Constructor
1060 - immutable classes which had non-lazy attributes were calling
1061 the default generating sub twice in the constructor. (bug
1062 found by Jesse Luehrs, fixed by Dave Rolsky)
1063 - added tests for this (Dave Rolsky)
1064 - fix typo in initialize_body method (nothingmuch)
1066 * Moose::Meta::Method::Destructor
1067 - fix typo in initialize_body method (nothingmuch)
1069 * Moose::Meta::Method::Overriden
1070 Moose::Meta::Method::Augmented
1071 - moved the logic for these into their own
1072 classes (nothingmuch)
1074 * Moose::Meta::Attribute
1075 - inherited attributes may now be extended without
1076 restriction on the type ('isa', 'does') (Sartak)
1077 - added tests for this (Sartak)
1078 - when an attribute property is malformed (such as lazy without
1079 a default), give the name of the attribute in the error
1081 - added the &applied_traits and &has_applied_traits methods
1082 to allow introspection of traits
1083 - added tests for this
1084 - moved 'trait' and 'metaclass' argument handling to here from
1086 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1087 '+foo' syntax) (nothingmuch)
1088 - added tests for this (t0m)
1091 - localize $@ inside DEMOLISHALL to avoid it
1092 eating $@ (found by Ernesto)
1093 - added test for this (thanks to Ernesto)
1095 * Moose::Util::TypeConstraints
1096 - &find_type_constraint now DWIMs when given an
1097 type constraint object or name (nothingmuch)
1098 - &find_or_create_type_constraint superseded with a number of more
1100 - find_or_create_{isa,does}_type_constraint
1101 - find_or_parse_type_constraint
1103 * Moose::Meta::TypeConstraint
1104 Moose::Meta::TypeConstraint::Class
1105 Moose::Meta::TypeConstraint::Role
1106 Moose::Meta::TypeConstraint::Enum
1107 Moose::Meta::TypeConstraint::Union
1108 Moose::Meta::TypeConstraint::Parameterized
1109 - added the &equals method for comparing two type
1110 constraints (nothingmuch)
1111 - added tests for this (nothingmuch)
1113 * Moose::Meta::TypeConstraint
1114 - add the &parents method, which is just an alias to &parent.
1115 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1117 * Moose::Meta::TypeConstraint::Class
1118 - added the class attribute for introspection purposes
1120 - added tests for this
1122 * Moose::Meta::TypeConstraint::Enum
1123 Moose::Meta::TypeConstraint::Role
1124 - broke these out into their own classes (nothingmuch)
1126 * Moose::Cookbook::Recipe*
1127 - fixed references to test file locations in the POD
1128 and updated up some text for new Moose features
1132 - Added &resolve_metaclass_alias, a helper function for finding an actual
1133 class for a short name (e.g. in the traits list)
1135 0.40 Fri. March 14, 2008
1136 - I hate Pod::Coverage
1138 0.39 Fri. March 14, 2008
1140 - documenting the use of '+name' with attributes
1141 that come from recently composed roles. It makes
1142 sense, people are using it, and so why not just
1143 officially support it.
1144 - fixing the 'extends' keyword so that it will not
1145 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1148 - added the perl -Moose=+Class::Name feature to allow
1149 monkeypatching of classes in one liners
1152 - fixing the 'apply_all_roles' keyword so that it will not
1153 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1155 * Moose::Meta::Class
1156 - added ->create method which now supports roles (thanks to jrockway)
1157 - added tests for this
1158 - added ->create_anon_class which now supports roles and caching of
1159 the results (thanks to jrockway)
1160 - added tests for this
1161 - made ->does_role a little more forgiving when it is
1162 checking a Class::MOP era metaclasses.
1164 * Moose::Meta::Role::Application::ToInstance
1165 - it is now possible to pass extra params to be used when
1166 a role is applied to an the instance (rebless_params)
1167 - added tests for this
1169 * Moose::Util::TypeConstraints
1170 - class_type now accepts an optional second argument for a
1171 custom message. POD anotated accordingly (groditi)
1172 - added tests for this
1173 - it is now possible to make anon-enums by passing 'enum' an
1174 ARRAY ref instead of the $name => @values. Everything else
1176 - added tests for this
1179 - making test for using '+name' on attributes consumed
1180 from a role, it works and makes sense too.
1182 * Moose::Meta::Attribute
1183 - fix handles so that it doesn't return nothing
1184 when the method cannot be found, not sure why
1185 it ever did this originally, this means we now
1186 have slightly better support for AUTOLOADed
1188 - added more delegation tests
1189 - adding ->does method to this so as to better
1190 support traits and their introspection.
1191 - added tests for this
1194 - localizing the Data::Dumper configurations so
1195 that it does not pollute others (RT #33509)
1196 - made ->does a little more forgiving when it is
1197 passed Class::MOP era metaclasses.
1199 0.38 Fri. Feb. 15, 2008
1200 * Moose::Meta::Attribute
1201 - fixed initializer to correctly do
1202 type checking and coercion in the
1204 - added tests for this
1207 - fixed some finicky tests (thanks to konobi)
1209 0.37 Thurs. Feb. 14, 2008
1211 - fixed some details in Moose::init_meta
1212 and its superclass handling (thanks thepler)
1213 - added tests for this (thanks thepler)
1214 - 'has' now dies if you don't pass in name
1216 - added the 'make_immutable' keyword as a shortcut
1219 * Moose::Meta::Class
1220 Moose::Meta::Method::Constructor
1221 Moose::Meta::Attribute
1222 - making (init_arg => undef) work here too
1223 (thanks to nothingmuch)
1225 * Moose::Meta::Attribute
1226 Moose::Meta::Method::Constructor
1227 Moose::Meta::Method::Accessor
1228 - make lazy attributes respect attr initializers (rjbs)
1229 - added tests for this
1231 * Moose::Util::TypeConstraints
1232 Moose::Util::TypeConstraints::OptimizedConstraints
1233 Moose::Meta::TypeConstraints
1234 Moose::Meta::Attribute
1235 Moose::Meta::Method::Constructor
1236 Moose::Meta::Method::Accessor
1237 - making type errors use the
1238 assigned message (thanks to Sartak)
1239 - added tests for this
1241 * Moose::Meta::Method::Destructor
1242 - making sure DESTROY gets inlined properly
1243 with successive DEMOLISH calls (thanks to manito)
1245 * Moose::Meta::Attribute
1246 Moose::Meta::Method::Accessor
1247 - fixed handling of undef with type constraints
1249 - added tests for this
1252 - added &get_all_init_args and &get_all_attribute_values
1253 (thanks to Sartak and nothingmuch)
1255 0.36 Sat. Jan. 26, 2008
1257 Moose::Meta::Attribute
1258 - role type tests now support when roles are
1259 applied to non-Moose classes (found by ash)
1260 - added tests for this (thanks to ash)
1261 - couple extra tests to boost code coverage
1263 * Moose::Meta::Method::Constructor
1264 - improved fix for handling Class::MOP attributes
1265 - added test for this
1267 * Moose::Meta::Class
1268 - handled the add_attribute($attribute_meta_object)
1270 - added test for this
1272 0.35 Tues. Jan. 22, 2008
1273 * Moose::Meta::Method::Constructor
1274 - fix to make sure even Class::MOP attributes
1275 are handled correctly (Thanks to Dave Rolsky)
1276 - added test for this (also Dave Rolsky)
1278 * Moose::Meta::Class
1279 - improved error message on _apply_all_roles,
1280 you should now use Moose::Util::apply_all_roles
1281 and you shouldnt have been using a _ prefixed
1282 method in the first place ;)
1284 0.34 Mon. Jan. 21, 2008
1285 ~~~ more misc. doc. fixes ~~~
1286 ~~ updated copyright dates ~~
1288 Moose is now a postmodern object system :)
1289 - (see the POD for details)
1291 * <<Role System Refactoring>>
1292 - this release contains a major reworking and
1293 cleanup of the role system
1294 - 100% backwards compat.
1295 - Role application now restructured into seperate
1296 classes based on type of applicants
1297 - Role summation (combining of more than one role)
1298 is much cleaner and anon-classes are no longer
1299 used in this process
1300 - new Composite role metaclass
1301 - runtime application of roles to instances
1302 is now more efficient and re-uses generated
1303 classes when applicable
1305 * <<New Role composition features>>
1306 - methods can now be excluded from a given role
1308 - methods can now be aliased to another name (and
1309 still retain the original as well)
1311 * Moose::Util::TypeConstraints::OptimizedConstraints
1312 - added this module (see above)
1314 * Moose::Meta::Class
1315 - fixed the &_process_attribute method to be called
1316 by &add_attribute, so that the API is now correct
1318 * Moose::Meta::Method::Accessor
1319 - fixed bug when passing a list of values to
1320 an accessor would get (incorrectly) ignored.
1321 Thanks to Sartak for finding this ;)
1322 - added tests for this (Sartak again)
1324 * Moose::Meta::Method::Accessor
1325 Moose::Meta::Method::Constructor
1326 Moose::Meta::Attribute
1327 Moose::Meta::TypeConstraint
1328 Moose::Meta::TypeCoercion
1329 - lots of cleanup of such things as:
1331 - type constraint handling
1332 - error handling/messages
1333 (thanks to nothingmuch)
1335 * Moose::Meta::TypeConstraint::Parameterizable
1336 - added this module to support the refactor
1337 in Moose::Meta::TypeConstraint::Parameterized
1339 * Moose::Meta::TypeConstraint::Parameterized
1340 - refactored how these types are handled so they
1341 are more generic and not confined to ArrayRef
1345 - shortened some file names for better VMS support (RT #32381)
1347 0.33 Fri. Dec. 14, 2007
1348 !! Moose now loads 2 x faster !!
1349 !! with new Class::MOP 0.49 !!
1351 ++ new oose.pm module to make command line
1352 Moose-ness easier (see POD docs for more)
1354 * Moose::Meta::Class
1356 - several tweaks to take advantage of the
1357 new method map caching in Class::MOP
1359 * Moose::Meta::TypeConstraint::Parameterized
1360 - allow subtypes of ArrayRef and HashRef to
1361 be used as a container (sartak)
1362 - added tests for this
1363 - basic support for coercion to ArrayRef and
1364 HashRef for containers (sartak)
1365 - added tests for this
1367 * Moose::Meta::TypeCoercion
1368 - coercions will now create subtypes as needed
1369 so you can now add coercions to parameterized
1370 types without having to explictly define them
1371 - added tests for this
1373 * Moose::Meta::Method::Accessor
1374 - allow subclasses to decide whether we need
1375 to copy the value into a new variable (sartak)
1377 0.32 Tues. Dec. 4, 2007
1378 * Moose::Util::TypeConstraints
1379 - fixing how subtype aliases of unions work
1380 they should inherit the parent's coercion
1381 - added tests for this
1382 - you can now define multiple coercions on
1383 a single type at different times instead of
1384 having to do it all in one place
1385 - added tests for this
1387 * Moose::Meta::TypeConstraint
1388 - there is now a default constraint of sub { 1 }
1389 instead of Moose::Util::TypeConstraints setting
1392 * Moose::Meta::TypeCoercion
1393 * Moose::Meta::TypeCoercion::Union
1394 - added the &has_coercion_for_type and
1395 &add_type_coercions methods to support the
1396 new features above (although you cannot add
1397 more type coercions for Union types)
1399 0.31 Mon. Nov. 26, 2007
1400 * Moose::Meta::Attribute
1401 - made the +attr syntax handle extending types with
1402 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1403 now works if the original foo is an ArrayRef.
1404 - added tests for this.
1405 - delegation now works even if the attribute does not
1406 have a reader method using the get_read_method_ref
1407 method from Class::MOP::Attribute.
1408 - added tests for this
1409 - added docs for this
1411 * Moose::Util::TypeConstraints
1412 - passing no "additional attribute info" to
1413 &find_or_create_type_constraint will no longer
1414 attempt to create an __ANON__ type for you,
1415 instead it will just return undef.
1416 - added docs for this
1418 0.30 Fri. Nov. 23, 2007
1419 * Moose::Meta::Method::Constructor
1420 -builder related bug in inlined constructor. (groditi)
1422 * Moose::Meta::Method::Accessor
1423 - genereate unnecessary calls to predicates and refactor
1424 code generation for runtime speed (groditi)
1426 * Moose::Util::TypeConstraints
1427 - fix ClassName constraint to introspect symbol table (mst)
1428 - added more tests for this (mst)
1429 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1430 with work correctly.
1431 - added tests for this
1434 - adding the link to Recipie 11 (written by Sartak)
1435 - adding test for SYNOPSIS code
1438 - New tests for builder bug. Upon instantiation, if an
1439 attribute had a builder, no value and was not lazy the
1440 builder default was not getting run, oops. (groditi)
1442 0.29 Tues. Nov. 13, 2007
1443 * Moose::Meta::Attribute
1444 - Fix error message on missing builder method (groditi)
1446 * Moose::Meta::Method::Accessor
1447 - Fix error message on missing builder method (groditi)
1450 - Add test to check for the correct error message when
1451 builder method is missing (groditi)
1453 0.28 Tues. Nov. 13, 2007
1454 - 0.27 packaged incorrectly (groditi)
1456 0.27 Tues. Nov. 13, 2007
1457 * Moose::Meta::Attribute
1458 - Added support for the new builder option (groditi)
1459 - Added support for lazy_build option (groditi)
1460 - Changed slot initialization for predicate changes (groditi)
1462 * Moose::Meta::Method::Accessor
1463 - Added support for lazy_build option (groditi)
1464 - Fix inline methods to work with corrected predicate
1467 * Moose::Meta::Method::Constructor
1468 - Added support for lazy_build option (groditi)
1471 - tests for builder and lazy_build (groditi)
1473 * fixing some misc. bits in the docs that
1474 got mentioned on CPAN Forum & perlmonks
1477 - fixed how required methods are handled
1478 when they encounter overriden or modified
1479 methods from a class (thanks to confound).
1480 - added tests for this
1482 * Moose::Util::TypeConstraint
1483 - fixed the type notation parser so that
1484 the | always creates a union and so is
1485 no longer a valid type char (thanks to
1486 konobi, mugwump and #moose for working
1488 - added more tests for this
1490 0.26 Thurs. Sept. 27, 2007
1493 * Parameterized Types
1494 We now support parameterized collection types, such as:
1495 ArrayRef[Int] # array or integers
1496 HashRef[Object] # a hash with object values
1497 They can also be nested:
1498 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1499 And work with the type unions as well:
1500 ArrayRef[Int | Str] # array of integers of strings
1502 * Better Framework Extendability
1503 Moose.pm is now "extendable" such that it is now much
1504 easier to extend the framework and add your own keywords
1505 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1506 section of the Moose.pm docs.
1509 In an effort to begin documenting some of the various
1510 details of Moose as well as some common idioms, we have
1511 created Moose::Cookbook::Snacks as a place to find
1512 small (easily digestable) nuggets of Moose code.
1515 ~ Several doc updates/cleanup thanks to castaway ~
1517 - converted build system to use Module::Install instead of
1518 Module::Build (thanks to jrockway)
1521 - added all the meta classes to the immutable list and
1522 set it to inline the accessors
1523 - fix import to allow Sub::Exporter like { into => }
1524 and { into_level => } (perigrin)
1525 - exposed and documented init_meta() to allow better
1526 embedding and extending of Moose (perigrin)
1529 - complete re-organization of the test suite
1530 - added some new tests as well
1531 - finally re-enabled the Moose::POOP test since
1532 the new version of DBM::Deep now works again
1535 * Moose::Meta::Class
1536 - fixed very odd and very nasty recursion bug with
1538 - added tests for this (eilara)
1540 * Moose::Meta::Attribute
1541 Moose::Meta::Method::Constructor
1542 Moose::Meta::Method::Accessor
1543 - fixed issue with overload::Overloaded getting called
1544 on non-blessed items. (RT #29269)
1545 - added tests for this
1547 * Moose::Meta::Method::Accessor
1548 - fixed issue with generated accessor code making
1549 assumptions about hash based classes (thanks to dexter)
1551 * Moose::Coookbook::Snacks
1552 - these are bits of documentation, not quite as big as
1553 Recipes but which have no clear place in the module docs.
1554 So they are Snacks! (horray for castaway++)
1556 * Moose::Cookbook::Recipe4
1557 - updated it to use the new ArrayRef[MyType] construct
1558 - updated the accompanying test as well
1560 +++ Major Refactor of the Type Constraint system +++
1561 +++ with new features added as well +++
1563 * Moose::Util::TypeConstraint
1564 - no longer uses package variable to keep track of
1565 the type constraints, now uses the an instance of
1566 Moose::Meta::TypeConstraint::Registry to do it
1567 - added more sophisticated type notation parsing
1569 - added tests for this
1571 * Moose::Meta::TypeConstraint
1572 - some minor adjustments to make subclassing easier
1573 - added the package_defined_in attribute so that we
1574 can track where the type constraints are created
1576 * Moose::Meta::TypeConstraint::Union
1577 - this is now been refactored to be a subclass of
1578 Moose::Meta::TypeConstraint
1580 * Moose::Meta::TypeCoercion::Union
1581 - this has been added to service the newly refactored
1582 Moose::Meta::TypeConstraint::Union and is itself
1583 a subclass of Moose::Meta::TypeCoercion
1585 * Moose::Meta::TypeConstraint::Parameterized
1586 - added this module (taken from MooseX::AttributeHelpers)
1587 to help construct nested collection types
1588 - added tests for this
1590 * Moose::Meta::TypeConstraint::Registry
1591 - added this class to keep track of type constraints
1593 0.25 Mon. Aug. 13, 2007
1595 - Documentation update to reference Moose::Util::TypeConstraints
1596 under 'isa' in 'has' for how to define a new type
1597 (thanks to shlomif).
1599 * Moose::Meta::Attribute
1600 - required attributes now will no longer accept undef
1601 from the constructor, even if there is a default and lazy
1602 - added tests for this
1603 - default subroutines must return a value which passes the
1605 - added tests for this
1607 * Moose::Meta::Attribute
1608 * Moose::Meta::Method::Constructor
1609 * Moose::Meta::Method::Accessor
1610 - type-constraint tests now handle overloaded objects correctly
1611 in the error message
1612 - added tests for this (thanks to EvanCarroll)
1614 * Moose::Meta::TypeConstraint::Union
1615 - added (has_)hand_optimized_constraint to this class so that
1616 it behaves as the regular Moose::Meta::TypeConstraint does.
1619 - large refactoring of this code
1620 - added several more tests
1621 - tests for subtle conflict resolition issues
1622 added, but not currently running
1625 * Moose::Cookbook::Recipe7
1626 - added new recipe for augment/inner functionality
1628 - added test for this
1631 - a formal definition of roles (still in progress)
1634 - utilities for easier working with Moose classes
1635 - added tests for these
1638 - This contains Moose specific test functions
1639 - added tests for these
1641 0.24 Tues. July 3, 2007
1642 ~ Some doc updates/cleanup ~
1644 * Moose::Meta::Attribute
1645 - added support for roles to be given as parameters
1646 to the 'handles' option.
1647 - added tests and docs for this
1648 - the has '+foo' attribute form now accepts changes to
1649 the lazy option, and the addition of a handles option
1650 (but not changing the handles option)
1651 - added tests and docs for this
1654 - required methods are now fetched using find_method_by_name
1655 so that required methods can come from superclasses
1656 - adjusted tests for this
1658 0.23 Mon. June 18, 2007
1659 * Moose::Meta::Method::Constructor
1660 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1661 * Moose::Meta::Class
1662 - Modify make_immutable to work with the new Class::MOP immutable
1663 mechanism + POD + very basic test (groditi)
1664 * Moose::Meta::Attribute
1665 - Fix handles to use goto() so that caller() comes out properly on
1666 the other side (perigrin)
1668 0.22 Thurs. May 31, 2007
1669 * Moose::Util::TypeConstraints
1670 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1671 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1672 prototypes for functions
1673 - added the ClassName type constraint, this checks for strings
1674 which will respond true to ->isa(UNIVERSAL).
1675 - added tests and docs for this
1676 - subtyping just in name now works correctly by making the
1677 default for where be { 1 }
1678 - added test for this
1680 * Moose::Meta::Method::Accessor
1681 - coerce and lazy now work together correctly, thanks to
1682 merlyn for finding this bug
1683 - tests added for this
1684 - fix reader presedence bug in Moose::Meta::Attribute + tests
1687 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1688 a HASH-ref and missed. This produces better error messages then
1689 having it die cause undef is not a HASH.
1690 - added tests for this
1692 0.21 Thursday, May 2nd, 2007
1694 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1695 - modified unimport to remove super and inner along with the rest
1696 - altered unimport tests to handle this
1699 - altered super export to populate SUPER_SLOT
1701 * Moose::Meta::Class
1702 - altered augment and override modifier application to use *_SLOT
1703 - modified tests for these to unimport one test class each to test
1706 - fixed issue where custom attribute metaclasses
1707 where not handled correctly in roles
1708 - added tests for this
1710 * Moose::Meta::Class
1711 - fixed issue where extending metaclasses with
1712 roles would blow up. Thanks to Aankhen`` for
1713 finding this insidious error, and it's solution.
1715 ~~ lots of spelling and grammer fixes in the docs,
1716 many many thanks to rlb3 and Aankhen for these :)
1718 0.20 Friday, April 6th, 2007
1719 >> I messed up the SKIP logic in one test
1720 so this release is just to fix that.
1723 - 'has' now also accepts an ARRAY ref
1724 to create multiple attrs (see docs)
1725 (thanks to konobi for this)
1726 - added tests and docs
1728 0.19 Thurs. April 5th, 2007
1729 ~~ More documentation updates ~~
1731 * Moose::Util::TypeConstraints
1732 - 'type' now supports messages as well
1733 thanks to phaylon for finding this
1734 - added tests for this
1735 - added &list_all_type_constraints and
1736 &list_all_builtin_type_constraints
1737 functions to facilitate introspection.
1739 * Moose::Meta::Attribute
1740 - fixed regexp 'handles' declarations
1741 to build the list of delegated methods
1742 correctly (and not override important
1743 things like &new) thanks to ashleyb
1745 - added tests and docs for this
1746 - added the 'documentation' attributes
1747 so that you can actually document your
1748 attributes and inspect them through the
1750 - added tests and docs for this
1752 * Moose::Meta::Class
1753 - when loading custom attribute metaclasses
1754 it will first look in for the class in the
1755 Moose::Meta::Attribute::Custom::$name, and
1756 then default to just loading $name.
1757 - added tests and docs for this
1759 * Moose::Meta::TypeConstraint
1760 - type constraints now stringify to their names.
1761 - added test for this
1764 - added tests to assure we work with Module::Refresh
1765 - added stricter test skip logic in the Moose POOP
1766 test, ask Rob Kinyon why.
1767 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1769 0.18 Sat. March 10, 2007
1770 ~~ Many, many documentation updates ~~
1773 - We now use Class::MOP::load_class to
1775 - added tests to show types and subtypes
1776 working with Declare::Constraints::Simple
1777 and Test::Deep as constraint engines.
1780 !! You must have Class::MOP 0.37_001 !!
1781 !! for this developer release to work !!
1783 This release was primarily adding the immutable
1784 feature to Moose. An immutable class is one which
1785 you promise not to alter. When you set the class
1786 as immutable it will perform various bits of
1787 memoization and inline certain part of the code
1788 (constructors, destructors and accessors). This
1789 minimizes (and in some cases totally eliminates)
1790 one of Moose's biggest performance hits. This
1791 feature is not on by default, and is 100% optional.
1792 It has several configurable bits as well, so you
1793 can pick and choose to your specific needs.
1795 The changes involved in this were fairly wide and
1796 highly specific, but 100% backwards compatible, so
1797 I am not going to enumerate them here. If you are
1798 truely interested in what was changed, please do
1801 0.17 Tues. Nov. 14, 2006
1802 * Moose::Meta::Method::Accessor
1803 - bugfix for read-only accessors which
1804 are have a type constraint and lazy.
1805 Thanks to chansen for finding it.
1807 0.16 Tues. Nov. 14, 2006
1809 There are some speed improvements in this release,
1810 but they are only the begining, so stay tuned.
1813 - BUILDALL and DEMOLISHALL no longer get
1814 called unless they actually need to be.
1815 This gave us a signifigant speed boost
1816 for the cases when there is no BUILD or
1817 DEMOLISH method present.
1819 * Moose::Util::TypeConstraints
1820 * Moose::Meta::TypeConstraint
1821 - added an 'optimize_as' option to the
1822 type constraint, which allows for a
1823 hand optimized version of the type
1824 constraint to be used when possible.
1825 - Any internally created type constraints
1826 now provide an optimized version as well.
1828 0.15 Sun. Nov. 5, 2006
1830 This version of Moose *must* have Class::MOP 0.36 in order
1831 to work correctly. A number of small internal tweaks have
1832 been made in order to be compatible with that release.
1834 * Moose::Util::TypeConstraints
1835 - added &unimport so that you can clean out
1836 your class namespace of these exported
1839 * Moose::Meta::Class
1840 - fixed minor issue which occasionally
1841 comes up during global destruction
1843 - moved Moose::Meta::Method::Overriden into
1847 - moved Moose::Meta::Role::Method into
1850 * Moose::Meta::Attribute
1851 - changed how we do type checks so that
1852 we reduce the overall cost, but still
1855 - moved accessor generation methods to
1856 Moose::Meta::Method::Accessor to
1857 conform to the API changes from
1860 * Moose::Meta::TypeConstraint
1861 - changed how constraints are compiled
1862 so that we do less recursion and more
1863 iteration. This makes the type check
1865 - moved Moose::Meta::TypeConstraint::Union
1868 * Moose::Meta::Method::Accessor
1869 - created this from methods formerly found in
1870 Moose::Meta::Attribute
1872 * Moose::Meta::Role::Method
1873 - moved this from Moose::Meta::Role
1875 * Moose::Meta::Method::Overriden
1876 - moved this from Moose::Meta::Class
1878 * Moose::Meta::TypeConstraint::Union
1879 - moved this from Moose::Meta::TypeConstraint
1881 0.14 Mon. Oct. 9, 2006
1883 * Moose::Meta::Attribute
1884 - fixed lazy attributes which were not getting
1885 checked with the type constraint (thanks ashley)
1886 - added tests for this
1887 - removed the over-enthusiastic DWIMery of the
1888 automatic ArrayRef and HashRef defaults, it
1889 broke predicates in an ugly way.
1890 - removed tests for this
1892 0.13 Sat. Sept. 30, 2006
1894 This version of Moose *must* have Class::MOP 0.35 in order
1895 to work correctly. A number of small internal tweaks have
1896 been made in order to be compatible with that release.
1899 - Removed the use of UNIVERSAL::require to be a better
1900 symbol table citizen and remove a dependency
1901 (thanks Adam Kennedy)
1903 **~~ removed experimental & undocumented feature ~~**
1904 - commented out the 'method' and 'self' keywords, see the
1905 comments for more info.
1908 - added a FAQ and WTF files to document frequently
1909 asked questions and common problems
1911 * Moose::Util::TypeConstraints
1912 - added GlobRef and FileHandle type constraint
1913 - added tests for this
1915 * Moose::Meta::Attribute
1916 - if your attribute 'isa' ArrayRef of HashRef, and you have
1917 not explicitly set a default, then make the default DWIM.
1918 This will also work for subtypes of ArrayRef and HashRef
1920 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1921 - new test added for this (thanks to ashley)
1924 - added basic support for runtime role composition
1925 but this is still *highly experimental*, so feedback
1926 is much appreciated :)
1927 - added tests for this
1929 * Moose::Meta::TypeConstraint
1930 - the type constraint now handles the coercion process
1931 through delegation, this is to support the coercion
1934 * Moose::Meta::TypeConstraint::Union
1935 - it is now possible for coercions to be performed
1937 - added tests for this (thanks to konobi)
1939 * Moose::Meta::TypeCoercion
1940 - properly capturing error when type constraint
1944 - Scalar::Util 1.18 is bad on Win32, so temporarily
1945 only require version 1.17 for Win32 and cygwin.
1946 (thanks Adam Kennedy)
1948 0.12 Sat. Sept. 1, 2006
1950 - Recipe5 (subtypes & coercion) has been written
1953 - fixed "bad meta" error message to be more descriptive
1954 - fixed &unimport to not remove the &inner and &super
1955 keywords because we need to localize them.
1956 - fixed number of spelling/grammer issues, thanks Theory :)
1958 **~~ experimental & undocumented feature ~~**
1959 - added the method and self keywords, they are basically
1960 just sugar, and they may not stay around.
1963 - added &dump method to easily Data::Dumper
1966 * Moose::Meta::TypeConstraint
1967 - added the &is_a_type_of method to check both the current
1968 and the subtype of a method (similar to &isa with classes)
1971 - this is now a subclass of Class::MOP::Module, and no longer
1972 creates the _role_meta ugliness of before.
1973 - fixed tests to reflect this change
1975 0.11 Wed. July 12, 2006
1977 - added an &unimport method to remove all the keywords
1978 that Moose will import, simply add 'no Moose' to the
1979 bottom of your class file.
1982 - fixed some test failures caused by a forgotten test
1985 0.10 Thurs. July 6, 2006
1987 - improved error message when loading modules so
1988 it is less confusing when you load a role.
1989 - added &calculate_all_roles method to
1990 Moose::Meta::Class and Moose::Meta::Role
1993 This module has been tested against Class::MOP 0.30
1994 but it does not yet utilize the optimizations
1995 it makes available. Stay tuned for that ;)
1997 0.09_03 Fri. June 23, 2006
1998 ++ DEVELOPER RELEASE ++
2000 - 'use strict' and 'use warnings' are no longer
2001 needed in Moose classes, Moose itself will
2002 turn them on for you.
2003 - added tests for this
2004 - moved code from exported subs to private methods
2005 in Moose::Meta::Class
2008 - as with Moose, strict and warnings are
2009 automatically turned on for you.
2010 - added tests for this
2013 - now handles an edge case for override errors
2014 - added tests for this
2015 - added some more edge case tests
2017 0.09_02 Tues. May 16, 2006
2018 ++ DEVELOPER RELEASE ++
2020 - added prototypes to the exported subs
2024 - added prototypes to the exported subs
2027 * Moose::Util::TypeConstraints
2028 - cleaned up prototypes for the subs
2031 0.09_01 Fri. May 12, 2006
2032 ++ DEVELOPER RELEASE ++
2033 - This release works in combination with
2034 Class::MOP 0.29_01, it is a developer
2035 release because it uses the a new
2036 instance sub-protocol and a fairly
2037 complete Role implementation. It has
2038 not yet been optimized, so it slower
2039 the the previous CPAN version. This
2040 release also lacks good updated docs,
2041 the official release will have updated docs.
2044 - refactored the keyword exports
2045 - 'with' now checks Role validaity and
2046 accepts more than one Role at a time
2047 - 'extends' makes metaclass adjustments as
2048 needed to ensure metaclass compatibility
2051 - refactored the keyword exports
2052 - 'with' now checks Role validaity and
2053 accepts more than one Role at a time
2055 * Moose::Util::TypeConstraints
2056 - added the 'enum' keyword for simple
2057 string enumerations which can be used as
2059 - see example of usage in t/202_example.t
2062 - more careful checking of params to new()
2065 - much work done on the role composition
2066 - many new tests for conflict detection
2067 and composition edge cases
2068 - not enough documentation, I suggest
2069 looking at the tests
2071 * Moose::Meta::Instance
2072 - added new Instance metaclass to support
2073 the new Class::MOP instance protocol
2075 * Moose::Meta::Class
2076 - some small changes to support the new
2078 - some small additions to support Roles
2080 * Moose::Meta::Attribute
2081 - some improvements to the accessor generation code
2083 - some small changes to support the new
2085 - (still somewhat) experimental delegation support
2086 with the 'handles' option
2087 - added several tests for this
2088 - no docs for this yet
2090 0.05 Thurs. April 27, 2006
2092 - keywords are now exported with Sub::Exporter
2093 thanks to chansen for this commit
2094 - has keyword now takes a 'metaclass' option
2095 to support custom attribute meta-classes
2096 on a per-attribute basis
2097 - added tests for this
2098 - the 'has' keyword not accepts inherited slot
2099 specifications (has '+foo'). This is still an
2100 experimental feature and probably not finished
2101 see t/038_attribute_inherited_slot_specs.t for
2102 more details, or ask about it on #moose
2103 - added tests for this
2106 - keywords are now exported with Sub::Exporter
2108 * Moose::Utils::TypeConstraints
2109 - reorganized the type constraint hierarchy, thanks
2110 to nothingmuch and chansen for his help and advice
2112 - added some tests for this
2113 - keywords are now exported with Sub::Exporter
2114 thanks to chansen for this commit
2116 * Moose::Meta::Class
2117 - due to changes in Class::MOP, we had to change
2118 construct_instance (for the better)
2120 * Moose::Meta::Attribute
2121 - due to changes in Class::MOP, we had to add the
2122 initialize_instance_slot method (it's a good thing)
2124 * Moose::Meta::TypeConstraint
2125 - added type constraint unions
2126 - added tests for this
2127 - added the is_subtype_of predicate method
2128 - added tests for this
2130 0.04 Sun. April 16th, 2006
2132 - Roles can now consume other roles
2133 - added tests for this
2134 - Roles can specify required methods now with
2135 the requires() keyword
2136 - added tests for this
2139 - ripped out much of it's guts ,.. much cleaner now
2140 - added required methods and correct handling of
2141 them in apply() for both classes and roles
2142 - added tests for this
2143 - no longer adds a does() method to consuming classes
2144 it relys on the one in Moose::Object
2145 - added roles attribute and some methods to support
2146 roles consuming roles
2148 * Moose::Meta::Attribute
2149 - added support for triggers on attributes
2150 - added tests for this
2151 - added support for does option on an attribute
2152 - added tests for this
2154 * Moose::Meta::Class
2155 - added support for attribute triggers in the
2157 - added tests for this
2160 - Moose no longer creates a subtype for your class
2161 if a subtype of the same name already exists, this
2162 should DWIM in 99.9999% of all cases
2164 * Moose::Util::TypeConstraints
2165 - fixed bug where incorrect subtype conflicts were
2167 - added test for this
2170 - this class can now be extended with 'use base' if
2171 you need it, it properly loads the metaclass class now
2172 - added test for this
2174 0.03_02 Wed. April 12, 2006
2176 - you must now explictly use Moose::Util::TypeConstraints
2177 it no longer gets exported for you automatically
2180 - new() now accepts hash-refs as well as key/value lists
2181 - added does() method to check for Roles
2182 - added tests for this
2184 * Moose::Meta::Class
2185 - added roles attribute along with the add_role() and
2187 - added tests for this
2190 - now adds a does() method to consuming classes
2191 which tests the class's hierarchy for roles
2192 - added tests for this
2194 0.03_01 Mon. April 10, 2006
2196 - added new Role recipe (no content yet, only code)
2199 - added 'with' keyword for Role support
2200 - added test and docs for this
2201 - fixed subtype quoting bug
2202 - added test for this
2206 - added test and docs
2208 * Moose::Util::TypeConstraints
2209 - added the message keyword to add custom
2210 error messages to type constraints
2213 - the meta role to support Moose::Role
2214 - added tests and docs
2216 * Moose::Meta::Class
2217 - moved a number of things from Moose.pm
2218 to here, they should have been here
2221 * Moose::Meta::Attribute
2222 - moved the attribute option macros here
2223 instead of putting them in Moose.pm
2225 * Moose::Meta::TypeConstraint
2226 - added the message attributes and the
2228 - added tests and docs for this
2230 0.03 Thurs. March 30, 2006
2232 - added the Moose::Cookbook with 5 recipes,
2233 describing all the stuff Moose can do.
2236 - fixed an issue with &extends super class loading
2237 it now captures errors and deals with inline
2238 packages correctly (bug found by mst, solution
2240 - added super/override & inner/augment features
2241 - added tests and docs for these
2244 - BUILDALL now takes a reference of the %params
2245 that are passed to &new, and passes that to
2248 * Moose::Util::TypeConstraints
2249 - Type constraints now survive runtime reloading
2250 - added test for this
2252 * Moose::Meta::Class
2253 - fixed the way attribute defaults are handled
2254 during instance construction (bug found by chansen)
2256 * Moose::Meta::Attribute
2257 - read-only attributes now actually enforce their
2258 read-only-ness (this corrected in Class::MOP as
2261 0.02 Tues. March 21, 2006
2263 - many more tests, fixing some bugs and
2265 - &extends now loads the base module with
2267 - added UNIVERSAL::require to the
2270 - each new Moose class will also create
2271 and register a subtype of Object which
2272 correspond to the new Moose class.
2273 - the 'isa' option in &has now only
2274 accepts strings, and will DWIM in
2277 * Moose::Util::TypeConstraints
2278 - added type coercion features
2279 - added tests for this
2280 - added support for this in attributes
2281 and instance construction
2283 - type construction no longer creates a
2284 function, it registers the type instead.
2285 - added several functions to get the
2289 - BUILDALL and DEMOLISHALL were broken
2290 because of a mis-named hash key, Whoops :)
2292 * Moose::Meta::Attribute
2293 - adding support for coercion in the
2294 autogenerated accessors
2296 * Moose::Meta::Class
2297 - adding support for coercion in the
2298 instance construction
2300 * Moose::Meta::TypeConstraint
2301 * Moose::Meta::TypeCoercion
2302 - type constraints and coercions are now
2303 full fledges meta-objects
2305 0.01 Wed. March 15, 2006
2306 - Moooooooooooooooooose!!!