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 0.72 Mon, February 23, 2009
27 * Moose::Meta::Method::Constructor
28 - A mutable class accepted Foo->new(undef) without complaint,
29 while an immutable class would blow up with an unhelpful
30 error. Now, in both cases we throw a helpful error
31 instead. Reported by doy.
33 0.71_01 Sun, February 22, 2009
35 - Hopefully fixed some POD errors in a few recipes that caused
36 them to display weird on search.cpan.org.
38 * Moose::Util::TypeConstraints
39 - Calling type or subtype without the sugar helpers (as, where,
40 message) is now deprecated.
41 - The subtype function tried hard to guess what you meant, but
42 often got it wrong. For example:
44 my $subtype = subtype as 'ArrayRef[Object]';
46 This caused an error in the past, but now works as you'd
50 - Make sure Moose.pm is loaded before calling
51 Moose->throw_error. This wasn't normally an issue, but could
52 bite you in weird cases.
54 0.71 Thu, February 19, 2009
55 * Moose::Cookbook::Basics::Recipe11
56 - A new recipe which demonstrates the use of BUILDARGS and
59 * Moose::Cookbook::Roles::Recipe3
60 - A new recipe, applying a role to an object instance. (Dave
64 - Allow overriding specific keywords from "also" packages. (doy)
67 - Replace hardcoded cookbook tests with Test::Inline to ensure
68 the tests match the actual code in the recipes. (Dave Rolsky)
71 - Working on the above turned up a number of little bugs in the
72 recipe code. (Dave Rolsky)
74 * Moose::Util::TypeConstraints::Optimized
75 - Just use Class::MOP for the optimized ClassName check. (Dave
78 0.70 Sat, February 14, 2009
79 * Moose::Util::TypeConstraints
80 - Added the RoleName type (stevan)
81 - added tests for this (stevan)
83 * Moose::Cookbook::Basics::Recipe3
84 - Updated the before qw[left right] sub to be a little more
85 defensive about what it accepts (stevan)
86 - added more tests to t/000_recipies/basics/003_binary_tree.t
90 - We now always call DEMOLISHALL, even if a class does not
91 define DEMOLISH. This makes sure that method modifiers on
92 DEMOLISHALL work as expected. (doy)
93 - added tests for this (EvanCarroll)
95 * Moose::Util::MetaRole
96 - Accept roles for the wrapped_method_metaclass (rafl)
97 - added tests for this (rafl)
99 * Moose::Meta::Attribute
100 - We no longer pass the meta-attribute object as a final
101 argument to triggers. This actually changed for inlined code a
102 while back, but the non-inlined version and the docs were
106 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
107 they require 0.11. (Dave Rolsky)
110 - Lots of small changes to the manual, cookbook, and
111 elsewhere. These were based on feedback from various
112 users, too many to list here. (Dave Rolsky)
114 0.69 Thu, February 12, 2009
116 - Make some keyword errors use throw_error instead of croak
117 since Moose::Exporter wraps keywords now (Sartak)
120 - Revised every recipe for style and clarity. Also moved some
121 documentation out of cookbook recipes and into Moose::Manual
122 pages. This work was funded as part of the Moose docs grant
123 from TPF. (Dave Rolsky)
125 * Moose::Meta::Method::Delegation
126 - If the attribute doing the delegation was not populated, the
127 error message did not specify the attribute name
130 0.68 Wed, February 4, 2009
132 - Many spelling, typo, and formatting fixes by daxim.
134 * Moose::Manual::Attributes
135 - The NAME section in the POD used "Attribute" so search.cpan
136 didn't resolve links from other documents properly.
138 * Moose::Meta::Method::Overriden
139 - Now properly spelled as Overridden. Thanks to daxim for
142 0.67 Tue, February 3, 2009
144 - Lots of little typo fixes and a few clarifications. Several
145 pages didn't have proper titles, and so weren't actually
146 visible on search.cpan.org. Thanks to hanekomu for a variety
147 of fixes and formatting improvements.
149 0.66 Tue, February 3, 2009
151 - This is a brand new, extensive manual for Moose. This aims to
152 provide a complete introduction to all of Moose's
153 features. This work was funded as part of the Moose docs grant
154 from TPF. (Dave Rolsky)
156 * Moose::Meta::Attribute
157 - Added a delegation_metaclass method to replace a hard-coded
158 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
160 * Moose::Util::TypeConstraints
161 - If you created a subtype and passed a parent that Moose didn't
162 know about, it simply ignored the parent. Now it automatically
163 creates the parent as a class type. This may not be what you
164 want, but is less broken than before. (Dave Rolsky)
166 * Moose::Util::TypeConstraints
167 - This module tried throw errors by calling Moose->throw_error,
168 but it did not ensure that Moose was loaded first. This could
169 cause very unhelpful errors when it tried to throw an error
170 before Moose was loaded. (Dave Rolsky)
172 * Moose::Util::TypeConstraints
173 - You could declare a name with subtype such as "Foo!Bar" that
174 would be allowed, but if you used it in a parameterized type
175 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
176 vetting on names created via the sugar functions, so that they
177 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
179 0.65 Thu, January 22, 2008
180 * Moose and Moose::Meta::Method::Overridden
181 - If an overridden method called super(), and then the
182 superclass's method (not overridden) _also_ called super(),
183 Moose went into an endless recursion loop. Test provided by
184 Chris Prather. (Dave Rolsky)
186 * Moose::Meta::TypeConstraint
187 - All methods are now documented. (gphat)
189 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
190 - Fixed some bogus failures that occurred because we tried to
191 validate filesystem paths in a very ad-hoc and
192 not-quite-correct way. (Dave Rolsky)
194 * Moose::Util::TypeConstraints
195 - Added maybe_type to exports. See docs for details. (rjbs)
198 - Added Moose::Util::TypeConstraints to the SEE ALSO
202 - Methods created via an attribute can now fulfill a "requires"
203 declaration for a role. (nothingmuch)
205 * Moose::Meta::Method::*
206 - Stack traces from inlined code will now report its line and
207 file as being in your class, as opposed to in Moose
210 0.64 Wed, December 31, 2008
211 * Moose::Meta::Method::Accessor
212 - Always inline predicate and clearer methods (Sartak)
214 * Moose::Meta::Attribute
215 - Support for parameterized traits (Sartak)
216 - verify_against_type_constraint method to avoid duplication
217 and enhance extensibility (Sartak)
220 - Tests (but no support yet) for parameterized traits (Sartak)
223 - Require Class::MOP 0.75+, which has the side effect of making
224 sure we work on Win32. (Dave Rolsky)
226 0.63 Mon, December 8, 2008
228 - Some small grammar tweaks and bug fixes in non-Moose example
231 0.62_02 Fri, December 5, 2008
232 * Moose::Meta::Role::Application::ToClass
233 - When a class does not provide all of a role's required
234 methods, the error thrown now mentions all of the missing
235 methods, as opposed to just the first one found. Requested by
236 Curtis Poe (RT #41119). (Dave Rolsky)
238 * Moose::Meta::Method::Constructor
239 - Moose will no longer inline a constructor for your class
240 unless it inherits its constructor from Moose::Object, and
241 will warn when it doesn't inline. If you want to force
242 inlining anyway, pass "replace_constructor => 1" to
243 make_immutable. Addresses RT #40968, reported by Jon
244 Swartz. (Dave Rolsky)
245 - The quoting of default values could be broken if the default
246 contained a single quote ('). Now we use quotemeta to escape
247 anything potentially dangerous in the defaults. (Dave Rolsky)
249 0.62_01 Wed, December 3, 2008
251 - use the method->execute API for BUILDALL
252 and DEMOLISHALL (Sartak)
254 * Moose::Util::TypeConstraints
255 - We now make all the type constraint meta classes immutable
256 before creating the default types provided by Moose. This
257 should make loading Moose a little faster. (Dave Rolsky)
259 0.62 Wed November 26, 2008
260 * Moose::Meta::Role::Application::ToClass
261 Moose::Meta::Role::Application::ToRole
262 - fixed issues where excluding and aliasing the
263 same methods for a single role did not work
264 right (worked just fine with multiple
266 - added test for this (stevan)
268 * Moose::Meta::Role::Application::RoleSummation
269 - fixed the error message when trying to compose
270 a role with a role it excludes (Sartak)
273 - Catch another case where recursion caused the value
274 of $CALLER to be stamped on (t0m)
275 - added test for this (t0m)
278 - Remove the make_immutable keyword, which has been
279 deprecated since April. It breaks metaclasses that
280 use Moose without no Moose (Sartak)
282 * Moose::Meta::Attribute
283 - Removing an attribute from a class now also removes delegation
284 (handles) methods installed for that attribute (t0m)
285 - added test for this (t0m)
287 * Moose::Meta::Method::Constructor
288 - An attribute with a default that looked like a number (but was
289 really a string) would accidentally be treated as a number
290 when the constructor was made immutable (perigrin)
291 - added test for this (perigrin)
294 - create method for constructing a role
296 - added test for this (Sartak)
297 - anonymous roles! (Sartak)
298 - added test for this (Sartak)
301 - more consistent error messages (Sartak)
303 * Moose::Cookbook::Roles::Recipe1
304 - attempt to explain why a role that just requires
305 methods is useful (Sartak)
307 0.61 Fri November 7, 2008
308 * Moose::Meta::Attribute
309 - When passing a role to handles, it will be loaded if necessary
313 - Method objects returned by get_method (and other methods)
314 Could end up being returned without an associated_metaclass
315 attribute. Removing get_method_map, which is provided by
316 Class::MOP::Class, fixed this. The Moose version did nothing
317 different from its parent except introduce a bug. (Dave Rolsky)
318 - added tests for this (jdv79)
321 - Added a $VERSION to all .pm files which didn't have one. Fixes
322 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
324 * Moose::Cookbook::Basics::Recipe4
325 * Moose::Cookbook::Basics::Recipe6
326 - These files had spaces on the first line of the SYNOPSIS, as
327 opposed to a totally empty line. According to RT #40432, this
328 confuses POD parsers. (Dave Rolsky)
330 0.60 Fri October 24, 2008
332 - Passing "-traits" when loading Moose caused the Moose.pm
333 exports to be broken. Reported by t0m. (Dave Rolsky)
334 - Tests for this bug. (t0m)
337 - Change resolve_metaclass alias to use the new
338 load_first_existing_class function. This makes it a lot
339 simpler, and also around 5 times faster. (t0m)
340 - Add caching to resolve_metaclass_alias, which gives an order
341 of magnitude speedup to things which repeatedly call the
342 Moose::Meta::Attribute->does method, notably MooseX::Storage
345 * Moose::Util::TypeConstraint
346 - Put back the changes for parameterized constraints that
347 shouldn't have been removed in 0.59. We still cannot parse
348 them, but MooseX modules can create them in some other
349 way. See the 0.58 changes for more details. (jnapiorkowski)
350 - Changed the way subtypes are created so that the job is
351 delegated to a type constraint parent. This clears up some
352 hardcoded checking and should allow correct subtypes of
353 Moose::Meta::Type::Constraint. Don't rely on this new API too
354 much (create_child_type) because it may go away in the
355 future. (jnapiorkowski)
357 * Moose::Meta::TypeConstraint::Union
358 - Type constraint names are sorted as strings, not numbers.
361 * Moose::Meta::TypeConstraint::Parameterizable
362 - New parameterize method. This can be used as a factory method
363 to make a new type constraint with a given parameterized
364 type. (jnapiorkowski)
365 - added tests (jnapiorkowski)
367 0.59 Tue October 14, 2008
369 - Add abridged documentation for builder/default/initializer/
370 predicate, and link to more details sections in
371 Class::MOP::Attribute. (t0m)
373 * Moose::Util::TypeConstraints
374 - removed prototypes from all but the &-based stuff (mst)
376 * Moose::Util::TypeConstraints
377 - Creating a anonymous subtype with both a constraint and a
378 message failed with a very unhelpful error, but should just
379 work. Reported by t0m. (Dave Rolsky)
382 - Some tests that used Test::Warn if it was available failed
383 with older versions of Test::Warn. Reported by Fayland. (Dave
385 - Test firing behavior of triggers in relation to builder/default/
387 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
388 kinds of supported type. (t0m)
391 - In create(), do not pass "roles" option to the superclass
392 - added related test that creates an anon metaclass with
395 * Moose::Meta::TypeConstraint::Class
396 * Moose::Meta::TypeConstraint::Role
397 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
398 other types (as per change in 0.55_02). (t0m)
400 * Moose::Meta::TypeConstraint::Registry
401 - Fix warning when dealing with unknown type names (t0m)
403 * Moose::Util::TypeConstraints
404 - Reverted changes from 0.58 related to handle parameterized
405 types. This caused random failures on BSD and Win32 systems,
406 apparently related to the regex engine. This means that Moose
407 can no longer parse structured type constraints like
408 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
409 supported in a slightly different way via MooseX::Types some
410 time in the future. (Dave Rolsky)
412 0.58 Sat September 20, 2008
413 !! This release has an incompatible change regarding !!
414 !! how roles add methods to a class !!
416 * Roles and role application
417 ! Roles now add methods by calling add_method, not
418 alias_method. They make sure to always provide a method
419 object, which will be cloned internally. This means that it is
420 now possible to track the source of a method provided by a
421 role, and even follow its history through intermediate roles.
423 This means that methods added by a role now show up when
424 looking at a class's method list/map. (Dave Rolsky)
427 - From this release on, we'll try to maintain a list of
428 conflicting modules, and warn you if you have one
429 installed. For example, this release conflicts with ...
430 - MooseX::Singleton <= 0.11
431 - MooseX::Params::Validate <= 0.05
434 In general, we try to not break backwards compatibility for
435 most Moose users, but MooseX modules and other code which
436 extends Moose's metaclasses is often affected by very small
437 changes in the Moose internals.
439 * Moose::Meta::Method::Delegation
440 * Moose::Meta::Attribute
441 - Delegation methods now have their own method class. (Dave
444 * Moose::Meta::TypeConstraint::Parameterizable
445 - Added a new method 'parameterize' which is basically a factory
446 for the containing constraint. This makes it easier to create
447 new types of parameterized constraints. (jnapiorkowski)
449 * Moose::Meta::TypeConstraint::Union
450 - Changed the way Union types canonicalize their names to follow
451 the normalized TC naming rules, which means we strip all
452 whitespace. (jnapiorkowski)
454 * Moose::Util::TypeConstraints
455 - Parameter and Union args are now sorted, this makes Int|Str
456 the same constraint as Str|Int. (jnapiorkowski)
457 - Changes to the way Union types are parsed to more correctly
458 stringify their names. (jnapiorkowski)
459 - When creating a parameterized type, we now use the new
460 parameterize method. (jnapiorkowski)
461 - Incoming type constraint strings are now normalized to remove
462 all whitespace differences. (jnapiorkowski)
463 - Changed the way we parse type constraint strings so that we now
464 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
465 constraints. This lays the foundation for more flexible type
466 constraint implementations.
468 * Tests and docs for all the above. (jnapiorkowski)
472 - Moose::Exporter will no longer remove a subroutine that the
473 exporting package re-exports. Moose re-exports the
474 Carp::confess function, among others. The reasoning is that we
475 cannot know whether you have also explicitly imported those
476 functions for your own use, so we err on the safe side and
477 always keep them. (Dave Rolsky)
478 - added tests for this (rafl)
481 - Changes to how we fix metaclass compatibility that are much
482 too complicated to go into. The summary is that Moose is much
483 less likely to complain about metaclass incompatibility
484 now. In particular, if two metaclasses differ because
485 Moose::Util::MetaRole was used on the two corresponding
486 classes, then the difference in roles is reconciled for the
487 subclass's metaclass. (Dave Rolsky)
488 - Squashed an warning in _process_attribute (thepler)
491 - throw exceptions (sooner) for invalid attribute names (thepler)
492 - added tests for this (thepler)
494 * Moose::Util::MetaRole
495 - If you explicitly set a constructor or destructor class for a
496 metaclass object, and then applied roles to the metaclass,
497 that explicitly set class would be lost and replaced with the
501 * Moose::Meta::Attribute
502 * Moose::Meta::Method
505 * Moose::Error::Default
506 * Moose::Error::Croak
507 * Moose::Error::Confess
508 - All instances of confess() changed to use overridable
509 C<throw_error> method. This method ultimately calls a class
510 constructor, and you can change the class being called. In
511 addition, errors now pass more information than just a string.
512 The default C<error_class> behaves like C<Carp::confess>, so
513 the behavior is not visibly different for end users.
515 0.57 Wed September 3, 2008
517 - A new bit of doc intended to introduce folks familiar with
518 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
521 - Shows examples of two classes, each done first with and then
522 without Moose. This makes a nice parallel to
523 Moose::Intro. (Dave Rolsky)
525 * Moose::Util::TypeConstraints
526 - Fixed a bug in find_or_parse_type_constraint so that it
527 accepts a Moose::Meta::TypeConstraint object as the parent
528 type, not just a name (jnapiorkowski)
529 - added tests (jnapiorkowski)
532 - If Sub::Name was not present, unimporting failed to actually
533 remove some sugar subs, causing test failures (Dave Rolsky)
535 0.56 Mon September 1, 2008
536 For those not following the series of dev releases, there are
537 several major changes in this release of Moose.
538 ! Moose::init_meta should now be called as a method. See the
541 - Major performance improvements by nothingmuch.
543 - New modules for extension writers, Moose::Exporter and
544 Moose::Util::MetaRole by Dave Rolsky.
546 - Lots of doc improvements and additions, especially in the
551 * Removed all references to the experimental-but-no-longer-needed
552 Moose::Meta::Role::Application::ToMetaclassInstance.
554 * Require Class::MOP 0.65.
556 0.55_04 Sat August 30, 2008
557 * Moose::Util::MetaRole
558 * Moose::Cookbook::Extending::Recipe2
559 - This simplifies the application of roles to any meta class, as
560 well as the base object class. Reimplemented metaclass traits
561 using this module. (Dave Rolsky)
563 * Moose::Cookbook::Extending::Recipe1
564 - This a new recipe, an overview of various ways to write Moose
565 extensions (Dave Rolsky)
567 * Moose::Cookbook::Extending::Recipe3
568 * Moose::Cookbook::Extending::Recipe4
569 - These used to be Extending::Recipe1 and Extending::Recipe2,
572 0.55_03 Fri August 29, 2008
573 * No changes from 0.55_02 except increasing the Class::MOP
574 dependency to 0.64_07.
576 0.55_02 Fri August 29, 2008
577 * Makefile.PL and Moose.pm
578 - explicitly require Perl 5.8.0+ (Dave Rolsky)
580 * Moose::Util::TypeConstraints
581 - Fix warnings from find_type_constraint if the type is not
584 * Moose::Meta::TypeConstraint
585 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
586 return false if the type you specify cannot be found in the
587 type registry, rather than throwing an unhelpful and
588 coincidental exception. (t0m).
589 - added docs & test for this (t0m)
591 * Moose::Meta::TypeConstraint::Registry
592 - add_type_constraint now throws an exception if a parameter is
594 - added docs & test for this (t0m)
596 * Moose::Cookbook::FAQ
597 - Added a faq entry on the difference between "role" and "trait"
601 - Fixed a bug that caused role composition to not see a required
602 method when that method was provided by another role being
603 composed at the same time. (Dave Rolsky)
604 - test and bug finding (tokuhirom)
606 0.55_01 Wed August 20, 2008
608 !! Calling Moose::init_meta as a function is now !!
609 !! deprecated. Please see the Moose.pm docs for details. !!
611 * Moose::Meta::Method::Constructor
612 - Fix inlined constructor so that values produced by default
613 or builder methods are coerced as required. (t0m)
614 - added test for this (t0m)
616 * Moose::Meta::Attribute
617 - A lazy attribute with a default or builder did not attempt to
618 coerce the default value. The immutable code _did_
620 - added test for this (t0m)
623 - This is a new helper module for writing "Moose-alike"
624 modules. This should make the lives of MooseX module authors
625 much easier. (Dave Rolsky)
628 * Moose::Cookbook::Meta::Recipe5
629 - Implemented metaclass traits (and wrote a recipe for it):
631 use Moose -traits => 'Foo'
633 This should make writing small Moose extensions a little
636 * Moose::Cookbook::Basics::Recipe1
637 - Removed any examples of direct hashref access, and applied an
638 editorial axe to reduce verbosity. (Dave Rolsky)
640 * Moose::Cookbook::Basics::Recipe1
641 - Also applied an editorial axe here. (Dave Rolsky)
644 * Moose::Cookbook::Extending::Recipe1
645 * Moose::Cookbook::Extending::Recipe2
646 - Rewrote extending and embedding moose documentation and
647 recipes to use Moose::Exporter (Dave Rolsky)
651 - These two modules now warn when you load them from the main
652 package "main" package, because we will not export sugar to
653 main. Previously it just did nothing. (Dave Rolsky)
656 - Now provide an init_meta method just like Moose.pm, and you
657 can call this to provide an alternate role metaclass. (Dave
658 Rolsky and nothingmuch)
659 - get_method_map now respects the package cache flag (nothingmuch)
662 - Two new methods - add_method and wrap_method_body
666 - Optimizations including allowing constructors to accept hash
667 refs, making many more classes immutable, and making
668 constructors immutable. (nothingmuch)
670 0.55 Sun August 3, 2008
671 * Moose::Meta::Attribute
672 - breaking down the way 'handles' methods are
673 created so that the process can be more easily
674 overridden by subclasses (stevan)
676 * Moose::Meta::TypeConstraint
677 - fixing what is passed into a ->message with
678 the type constraints (RT #37569)
679 - added tests for this (Charles Alderman)
681 * Moose::Util::TypeConstraints
682 - fix coerce to accept anon types like subtype can (mst)
685 - reorganized the recipes into sections - Basics, Roles, Meta,
686 Extending - and wrote abstracts for each section (Dave Rolsky)
688 * Moose::Cookbook::Basics::Recipe10
689 - A new recipe that demonstrates operator overloading
690 in combination with Moose. (bluefeet)
692 * Moose::Cookbook::Meta::Recipe1
693 - an introduction to what meta is and why you'd want to make
694 your own metaclass extensions (Dave Rolsky)
696 * Moose::Cookbook::Meta::Recipe4
697 - a very simple metaclass example (Dave Rolsky)
699 * Moose::Cookbook::Extending::Recipe1
700 - how to write a Moose-alike module to use your own object base
703 * Moose::Cookbook::Extending::Recipe2
704 - how to write modules with an API just like C<Moose.pm> (Dave
708 - Tons of fixes, both syntactical and grammatical (Dave
709 Rolsky, Paul Fenwick)
711 0.54 Thurs. July 3, 2008
712 ... this is not my day today ...
714 * Moose::Meta::Attribute
715 - fixed legal_options_for_inheritance such that
716 clone_and_inherit options still works for
717 Class::MOP::Attribute objects and therefore
718 does not break MooseX::AttributeHelpers
721 0.53 Thurs. July 3, 2008
722 * Whoops, I guess I should run 'make manifest' before
723 actually releasing the module. No actual changes
724 in this release, except the fact that it includes
725 the changes that I didn't include in the last
728 0.52 Thurs. July 3, 2008
730 - added "FEATURE REQUESTS" section to the Moose docs
731 to properly direct people (stevan) (RT #34333)
732 - making 'extends' croak if it is passed a Role since
733 this is not ever something you want to do
734 (fixed by stevan, found by obra)
735 - added tests for this (stevan)
738 - adding support for DOES (as in UNIVERSAL::DOES)
740 - added test for this
742 * Moose::Meta::Attribute
743 - added legal_options_for_inheritance (wreis)
744 - added tests for this (wreis)
746 * Moose::Cookbook::Snacks::*
747 - removed some of the unfinished snacks that should
748 not have been released yet. Added some more examples
749 to the 'Keywords' snack. (stevan)
751 * Moose::Cookbook::Style
752 - added general Moose "style guide" of sorts to the
753 cookbook (nothingmuch) (RT #34335)
756 - added more BUILDARGS tests (stevan)
758 0.51 Thurs. Jun 26, 2008
760 - add unimport so "no Moose::Role" actually does
763 * Moose::Meta::Role::Application::ToRole
764 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
765 order to provide its own implementation, that method still got
766 added to the list of required methods for consumers of
767 RoleB. Now an aliased method is only added to the list of
768 required methods if the role doing the aliasing does not
769 provide its own implementation. See Recipe 11 for an example
770 of all this. (Dave Rolsky)
771 - added tests for this
773 * Moose::Meta::Method::Constructor
774 - when a single argument that wasn't a hashref was provided to
775 an immutabilized constructor, the error message was very
776 unhelpful, as opposed to the non-immutable error. Reported by
778 - added test for this (Dave Rolsky)
780 * Moose::Meta::Attribute
781 - added support for meta_attr->does("ShortAlias") (sartak)
782 - added tests for this (sartak)
783 - moved the bulk of the `handles` handling to the new
784 install_delegation method (Stevan)
787 - Added BUILDARGS, a new step in new()
789 * Moose::Meta::Role::Application::RoleSummation
790 - fix typos no one ever sees (sartak)
792 * Moose::Util::TypeConstraints
793 * Moose::Meta::TypeConstraint
794 * Moose::Meta::TypeCoercion
795 - Attempt to work around the ??{ } vs. threads issue
797 - Some null_constraint optimizations
799 0.50 Thurs. Jun 11, 2008
800 - Fixed a version number issue by bumping all modules
803 0.49 Thurs. Jun 11, 2008
804 !! This version now approx. 20-25% !!
805 !! faster with new Class::MOP 0.59 !!
807 * Moose::Meta::Attribute
808 - fixed how the is => (ro|rw) works with
809 custom defined reader, writer and accessor
811 - added docs for this (TODO).
812 - added tests for this (Thanks to Penfold)
813 - added the custom attribute alias for regular
814 Moose attributes which is "Moose"
815 - fix builder and default both being used
820 Moose::Meta::Attribute
822 Moose::Meta::Role::Composite
823 Moose::Util::TypeConstraints
824 - switched usage of reftype to ref because
828 - changing add_package_symbol to use the new
832 - fixed how DEMOLISHALL is called so that it
833 can be overrided in subclasses (thanks to Sartak)
834 - added test for this (thanks to Sartak)
836 * Moose::Util::TypeConstraints
837 - move the ClassName type check code to
838 Class::MOP::is_class_loaded (thanks to Sartak)
840 * Moose::Cookbook::Recipe11
841 - add tests for this (thanks to tokuhirom)
843 0.48 Thurs. May 29, 2008
844 (early morning release engineering)--
846 - fixing the version in Moose::Meta::Method::Destructor
847 which was causing the indexer to choke
849 0.47 Thurs. May 29, 2008
850 (late night release engineering)--
852 - fixing the version is META.yml, no functional
853 changes in this release
855 0.46 Wed. May 28, 2008
856 !! This version now approx. 20-25% !!
857 !! faster with new Class::MOP 0.57 !!
860 - some optimizations of the &initialize method
861 since it is called so often by &meta
865 - now use the get_all_package_symbols from the
866 updated Class::MOP, test suite is now 10 seconds
869 * Moose::Meta::Method::Destructor
870 - is_needed can now also be called as a class
871 method for immutablization to check if the
872 destructor object even needs to be created
875 * Moose::Meta::Method::Destructor
876 Moose::Meta::Method::Constructor
877 - added more descriptive error message to help
878 keep people from wasting time tracking an error
879 that is easily fixed by upgrading.
881 0.45 Saturday, May 24, 2008
883 - Because of work in Class::MOP 0.57, all
884 XS based functionality is now optional
885 and a Pure Perl version is supplied
886 - the CLASS_MOP_NO_XS environment variable
887 can now be used to force non-XS versions
889 - several of the packages have been tweaked
890 to take care of this, mostly we added
891 support for the package_name and name
892 variables in all the Method metaclasses
893 - before/around/after method modifiers now
894 support regexp matching of names
895 (thanks to Takatoshi Kitano)
896 - tests added for this
897 - NOTE: this only works for classes, it
898 is currently not supported in roles,
899 but, ... patches welcome
900 - All usage of Carp::confess have been replaced
901 by Carp::croak in the "keyword" functions since
902 the stack trace is usually not helpful
905 - All usage of Carp::confess have been replaced
906 by Carp::croak in the "keyword" functions since
907 the stack trace is usually not helpful
908 - The 'has' keyword for roles now accepts the
909 same array ref form that Moose.pm does
910 (has [qw/foo bar/] => (is => 'rw', ...))
911 - added test for this
913 * Moose::Meta::Attribute
914 - trigger on a ro-attribute is no longer an
915 error, as it's useful to trigger off of the
919 - added same 'add_package_symbol' fix as in
923 - does_role now handles non-Moose classes
925 - added tests for this
926 - added the 'add_method_modifier' function
927 (thanks to Takatoshi Kitano)
929 * Moose::Util::TypeConstraints
930 - subtypes of parameterizable types now are
931 themselves parameterizable types
933 * Moose::Meta::Method::Constructor
934 - fixed bug where trigger was not being
935 called by the inlined immutable
937 - added test for this (thanks to Caelum)
939 * Moose::Meta::Role::Application::ToInstance
940 - now uses the metaclass of the instance
941 (if possible) to create the anon-class
942 (thanks Jonathan Rockway)
944 * Moose::Cookbook::Recipe22
945 - added the meta-attribute trait recipe
949 - fixed hash-ordering test bug that was
950 causing occasional cpantester failures
951 - renamed the t/000_recipe/*.t tests to be
952 more descriptive (thanks to Sartak)
954 0.44 Sat. May 10, 2008
956 - made make_immutable warning cluck to
957 show where the error is (thanks mst)
960 - BUILDALL and DEMOLISHALL now call
961 ->body when looping through the
962 methods, to avoid the overloaded
964 - fixed issue where DEMOLISHALL was
965 eating the $@ values, and so not
966 working correctly, it still kind of
967 eats them, but so does vanilla perl
968 - added tests for this
970 * Moose::Cookbook::Recipe7
971 - added new recipe for immutable
972 functionality (thanks Dave Rolsky)
974 * Moose::Cookbook::Recipe9
975 - added new recipe for builder and
976 lazy_build (thanks Dave Rolsky)
978 * Moose::Cookbook::Recipe11
979 - added new recipe for method aliasing
980 and exclusion with Roles (thanks Dave Rolsky)
983 - fixed Win32 test failure (thanks spicyjack)
985 ~ removed Build.PL and Module::Build compat
986 since Module::Install has done that.
988 0.43 Wed. April, 30, 2008
990 drink more coffee before
991 doing release engineering
993 - whoops, forgot to do the smolder tests,
994 and we broke some of the custom meta-attr
995 modules. This fixes that.
997 0.42 Mon. April 28, 2008
998 - some bad tests slipped by, nothing else
999 changed in this release (cpantesters++)
1001 - upped the Class::MOP dependency to 0.55
1002 since we have tests which need the C3
1005 0.41 Mon. April 28, 2008
1006 ~~ numerous documentation updates ~~
1008 - Changed all usage of die to Carp::croak for better
1009 error reporting (initial patch by Tod Hagan)
1011 ** IMPORTANT NOTE **
1012 - the make_immutable keyword is now deprecated, don't
1013 use it in any new code and please fix your old code
1014 as well. There will be 2 releases, and then it will
1020 - refactored the way inner and super work to avoid
1021 any method/@ISA cache penalty (nothingmuch)
1023 * Moose::Meta::Class
1024 - fixing &new_object to make sure trigger gets the
1025 coerced value (spotted by Charles Alderman on the
1027 - added test for this
1029 * Moose::Meta::Method::Constructor
1030 - immutable classes which had non-lazy attributes were calling
1031 the default generating sub twice in the constructor. (bug
1032 found by Jesse Luehrs, fixed by Dave Rolsky)
1033 - added tests for this (Dave Rolsky)
1034 - fix typo in initialize_body method (nothingmuch)
1036 * Moose::Meta::Method::Destructor
1037 - fix typo in initialize_body method (nothingmuch)
1039 * Moose::Meta::Method::Overriden
1040 Moose::Meta::Method::Augmented
1041 - moved the logic for these into their own
1042 classes (nothingmuch)
1044 * Moose::Meta::Attribute
1045 - inherited attributes may now be extended without
1046 restriction on the type ('isa', 'does') (Sartak)
1047 - added tests for this (Sartak)
1048 - when an attribute property is malformed (such as lazy without
1049 a default), give the name of the attribute in the error
1051 - added the &applied_traits and &has_applied_traits methods
1052 to allow introspection of traits
1053 - added tests for this
1054 - moved 'trait' and 'metaclass' argument handling to here from
1056 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1057 '+foo' syntax) (nothingmuch)
1058 - added tests for this (t0m)
1061 - localize $@ inside DEMOLISHALL to avoid it
1062 eating $@ (found by Ernesto)
1063 - added test for this (thanks to Ernesto)
1065 * Moose::Util::TypeConstraints
1066 - &find_type_constraint now DWIMs when given an
1067 type constraint object or name (nothingmuch)
1068 - &find_or_create_type_constraint superseded with a number of more
1070 - find_or_create_{isa,does}_type_constraint
1071 - find_or_parse_type_constraint
1073 * Moose::Meta::TypeConstraint
1074 Moose::Meta::TypeConstraint::Class
1075 Moose::Meta::TypeConstraint::Role
1076 Moose::Meta::TypeConstraint::Enum
1077 Moose::Meta::TypeConstraint::Union
1078 Moose::Meta::TypeConstraint::Parameterized
1079 - added the &equals method for comparing two type
1080 constraints (nothingmuch)
1081 - added tests for this (nothingmuch)
1083 * Moose::Meta::TypeConstraint
1084 - add the &parents method, which is just an alias to &parent.
1085 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1087 * Moose::Meta::TypeConstraint::Class
1088 - added the class attribute for introspection purposes
1090 - added tests for this
1092 * Moose::Meta::TypeConstraint::Enum
1093 Moose::Meta::TypeConstraint::Role
1094 - broke these out into their own classes (nothingmuch)
1096 * Moose::Cookbook::Recipe*
1097 - fixed references to test file locations in the POD
1098 and updated up some text for new Moose features
1102 - Added &resolve_metaclass_alias, a helper function for finding an actual
1103 class for a short name (e.g. in the traits list)
1105 0.40 Fri. March 14, 2008
1106 - I hate Pod::Coverage
1108 0.39 Fri. March 14, 2008
1110 - documenting the use of '+name' with attributes
1111 that come from recently composed roles. It makes
1112 sense, people are using it, and so why not just
1113 officially support it.
1114 - fixing the 'extends' keyword so that it will not
1115 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1118 - added the perl -Moose=+Class::Name feature to allow
1119 monkeypatching of classes in one liners
1122 - fixing the 'apply_all_roles' keyword so that it will not
1123 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1125 * Moose::Meta::Class
1126 - added ->create method which now supports roles (thanks to jrockway)
1127 - added tests for this
1128 - added ->create_anon_class which now supports roles and caching of
1129 the results (thanks to jrockway)
1130 - added tests for this
1131 - made ->does_role a little more forgiving when it is
1132 checking a Class::MOP era metaclasses.
1134 * Moose::Meta::Role::Application::ToInstance
1135 - it is now possible to pass extra params to be used when
1136 a role is applied to an the instance (rebless_params)
1137 - added tests for this
1139 * Moose::Util::TypeConstraints
1140 - class_type now accepts an optional second argument for a
1141 custom message. POD anotated accordingly (groditi)
1142 - added tests for this
1143 - it is now possible to make anon-enums by passing 'enum' an
1144 ARRAY ref instead of the $name => @values. Everything else
1146 - added tests for this
1149 - making test for using '+name' on attributes consumed
1150 from a role, it works and makes sense too.
1152 * Moose::Meta::Attribute
1153 - fix handles so that it doesn't return nothing
1154 when the method cannot be found, not sure why
1155 it ever did this originally, this means we now
1156 have slightly better support for AUTOLOADed
1158 - added more delegation tests
1159 - adding ->does method to this so as to better
1160 support traits and their introspection.
1161 - added tests for this
1164 - localizing the Data::Dumper configurations so
1165 that it does not pollute others (RT #33509)
1166 - made ->does a little more forgiving when it is
1167 passed Class::MOP era metaclasses.
1169 0.38 Fri. Feb. 15, 2008
1170 * Moose::Meta::Attribute
1171 - fixed initializer to correctly do
1172 type checking and coercion in the
1174 - added tests for this
1177 - fixed some finicky tests (thanks to konobi)
1179 0.37 Thurs. Feb. 14, 2008
1181 - fixed some details in Moose::init_meta
1182 and its superclass handling (thanks thepler)
1183 - added tests for this (thanks thepler)
1184 - 'has' now dies if you don't pass in name
1186 - added the 'make_immutable' keyword as a shortcut
1189 * Moose::Meta::Class
1190 Moose::Meta::Method::Constructor
1191 Moose::Meta::Attribute
1192 - making (init_arg => undef) work here too
1193 (thanks to nothingmuch)
1195 * Moose::Meta::Attribute
1196 Moose::Meta::Method::Constructor
1197 Moose::Meta::Method::Accessor
1198 - make lazy attributes respect attr initializers (rjbs)
1199 - added tests for this
1201 * Moose::Util::TypeConstraints
1202 Moose::Util::TypeConstraints::OptimizedConstraints
1203 Moose::Meta::TypeConstraints
1204 Moose::Meta::Attribute
1205 Moose::Meta::Method::Constructor
1206 Moose::Meta::Method::Accessor
1207 - making type errors use the
1208 assigned message (thanks to Sartak)
1209 - added tests for this
1211 * Moose::Meta::Method::Destructor
1212 - making sure DESTROY gets inlined properly
1213 with successive DEMOLISH calls (thanks to manito)
1215 * Moose::Meta::Attribute
1216 Moose::Meta::Method::Accessor
1217 - fixed handling of undef with type constraints
1219 - added tests for this
1222 - added &get_all_init_args and &get_all_attribute_values
1223 (thanks to Sartak and nothingmuch)
1225 0.36 Sat. Jan. 26, 2008
1227 Moose::Meta::Attribute
1228 - role type tests now support when roles are
1229 applied to non-Moose classes (found by ash)
1230 - added tests for this (thanks to ash)
1231 - couple extra tests to boost code coverage
1233 * Moose::Meta::Method::Constructor
1234 - improved fix for handling Class::MOP attributes
1235 - added test for this
1237 * Moose::Meta::Class
1238 - handled the add_attribute($attribute_meta_object)
1240 - added test for this
1242 0.35 Tues. Jan. 22, 2008
1243 * Moose::Meta::Method::Constructor
1244 - fix to make sure even Class::MOP attributes
1245 are handled correctly (Thanks to Dave Rolsky)
1246 - added test for this (also Dave Rolsky)
1248 * Moose::Meta::Class
1249 - improved error message on _apply_all_roles,
1250 you should now use Moose::Util::apply_all_roles
1251 and you shouldnt have been using a _ prefixed
1252 method in the first place ;)
1254 0.34 Mon. Jan. 21, 2008
1255 ~~~ more misc. doc. fixes ~~~
1256 ~~ updated copyright dates ~~
1258 Moose is now a postmodern object system :)
1259 - (see the POD for details)
1261 * <<Role System Refactoring>>
1262 - this release contains a major reworking and
1263 cleanup of the role system
1264 - 100% backwards compat.
1265 - Role application now restructured into seperate
1266 classes based on type of applicants
1267 - Role summation (combining of more than one role)
1268 is much cleaner and anon-classes are no longer
1269 used in this process
1270 - new Composite role metaclass
1271 - runtime application of roles to instances
1272 is now more efficient and re-uses generated
1273 classes when applicable
1275 * <<New Role composition features>>
1276 - methods can now be excluded from a given role
1278 - methods can now be aliased to another name (and
1279 still retain the original as well)
1281 * Moose::Util::TypeConstraints::OptimizedConstraints
1282 - added this module (see above)
1284 * Moose::Meta::Class
1285 - fixed the &_process_attribute method to be called
1286 by &add_attribute, so that the API is now correct
1288 * Moose::Meta::Method::Accessor
1289 - fixed bug when passing a list of values to
1290 an accessor would get (incorrectly) ignored.
1291 Thanks to Sartak for finding this ;)
1292 - added tests for this (Sartak again)
1294 * Moose::Meta::Method::Accessor
1295 Moose::Meta::Method::Constructor
1296 Moose::Meta::Attribute
1297 Moose::Meta::TypeConstraint
1298 Moose::Meta::TypeCoercion
1299 - lots of cleanup of such things as:
1301 - type constraint handling
1302 - error handling/messages
1303 (thanks to nothingmuch)
1305 * Moose::Meta::TypeConstraint::Parameterizable
1306 - added this module to support the refactor
1307 in Moose::Meta::TypeConstraint::Parameterized
1309 * Moose::Meta::TypeConstraint::Parameterized
1310 - refactored how these types are handled so they
1311 are more generic and not confined to ArrayRef
1315 - shortened some file names for better VMS support (RT #32381)
1317 0.33 Fri. Dec. 14, 2007
1318 !! Moose now loads 2 x faster !!
1319 !! with new Class::MOP 0.49 !!
1321 ++ new oose.pm module to make command line
1322 Moose-ness easier (see POD docs for more)
1324 * Moose::Meta::Class
1326 - several tweaks to take advantage of the
1327 new method map caching in Class::MOP
1329 * Moose::Meta::TypeConstraint::Parameterized
1330 - allow subtypes of ArrayRef and HashRef to
1331 be used as a container (sartak)
1332 - added tests for this
1333 - basic support for coercion to ArrayRef and
1334 HashRef for containers (sartak)
1335 - added tests for this
1337 * Moose::Meta::TypeCoercion
1338 - coercions will now create subtypes as needed
1339 so you can now add coercions to parameterized
1340 types without having to explictly define them
1341 - added tests for this
1343 * Moose::Meta::Method::Accessor
1344 - allow subclasses to decide whether we need
1345 to copy the value into a new variable (sartak)
1347 0.32 Tues. Dec. 4, 2007
1348 * Moose::Util::TypeConstraints
1349 - fixing how subtype aliases of unions work
1350 they should inherit the parent's coercion
1351 - added tests for this
1352 - you can now define multiple coercions on
1353 a single type at different times instead of
1354 having to do it all in one place
1355 - added tests for this
1357 * Moose::Meta::TypeConstraint
1358 - there is now a default constraint of sub { 1 }
1359 instead of Moose::Util::TypeConstraints setting
1362 * Moose::Meta::TypeCoercion
1363 * Moose::Meta::TypeCoercion::Union
1364 - added the &has_coercion_for_type and
1365 &add_type_coercions methods to support the
1366 new features above (although you cannot add
1367 more type coercions for Union types)
1369 0.31 Mon. Nov. 26, 2007
1370 * Moose::Meta::Attribute
1371 - made the +attr syntax handle extending types with
1372 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1373 now works if the original foo is an ArrayRef.
1374 - added tests for this.
1375 - delegation now works even if the attribute does not
1376 have a reader method using the get_read_method_ref
1377 method from Class::MOP::Attribute.
1378 - added tests for this
1379 - added docs for this
1381 * Moose::Util::TypeConstraints
1382 - passing no "additional attribute info" to
1383 &find_or_create_type_constraint will no longer
1384 attempt to create an __ANON__ type for you,
1385 instead it will just return undef.
1386 - added docs for this
1388 0.30 Fri. Nov. 23, 2007
1389 * Moose::Meta::Method::Constructor
1390 -builder related bug in inlined constructor. (groditi)
1392 * Moose::Meta::Method::Accessor
1393 - genereate unnecessary calls to predicates and refactor
1394 code generation for runtime speed (groditi)
1396 * Moose::Util::TypeConstraints
1397 - fix ClassName constraint to introspect symbol table (mst)
1398 - added more tests for this (mst)
1399 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1400 with work correctly.
1401 - added tests for this
1404 - adding the link to Recipie 11 (written by Sartak)
1405 - adding test for SYNOPSIS code
1408 - New tests for builder bug. Upon instantiation, if an
1409 attribute had a builder, no value and was not lazy the
1410 builder default was not getting run, oops. (groditi)
1412 0.29 Tues. Nov. 13, 2007
1413 * Moose::Meta::Attribute
1414 - Fix error message on missing builder method (groditi)
1416 * Moose::Meta::Method::Accessor
1417 - Fix error message on missing builder method (groditi)
1420 - Add test to check for the correct error message when
1421 builder method is missing (groditi)
1423 0.28 Tues. Nov. 13, 2007
1424 - 0.27 packaged incorrectly (groditi)
1426 0.27 Tues. Nov. 13, 2007
1427 * Moose::Meta::Attribute
1428 - Added support for the new builder option (groditi)
1429 - Added support for lazy_build option (groditi)
1430 - Changed slot initialization for predicate changes (groditi)
1432 * Moose::Meta::Method::Accessor
1433 - Added support for lazy_build option (groditi)
1434 - Fix inline methods to work with corrected predicate
1437 * Moose::Meta::Method::Constructor
1438 - Added support for lazy_build option (groditi)
1441 - tests for builder and lazy_build (groditi)
1443 * fixing some misc. bits in the docs that
1444 got mentioned on CPAN Forum & perlmonks
1447 - fixed how required methods are handled
1448 when they encounter overriden or modified
1449 methods from a class (thanks to confound).
1450 - added tests for this
1452 * Moose::Util::TypeConstraint
1453 - fixed the type notation parser so that
1454 the | always creates a union and so is
1455 no longer a valid type char (thanks to
1456 konobi, mugwump and #moose for working
1458 - added more tests for this
1460 0.26 Thurs. Sept. 27, 2007
1463 * Parameterized Types
1464 We now support parameterized collection types, such as:
1465 ArrayRef[Int] # array or integers
1466 HashRef[Object] # a hash with object values
1467 They can also be nested:
1468 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1469 And work with the type unions as well:
1470 ArrayRef[Int | Str] # array of integers of strings
1472 * Better Framework Extendability
1473 Moose.pm is now "extendable" such that it is now much
1474 easier to extend the framework and add your own keywords
1475 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1476 section of the Moose.pm docs.
1479 In an effort to begin documenting some of the various
1480 details of Moose as well as some common idioms, we have
1481 created Moose::Cookbook::Snacks as a place to find
1482 small (easily digestable) nuggets of Moose code.
1485 ~ Several doc updates/cleanup thanks to castaway ~
1487 - converted build system to use Module::Install instead of
1488 Module::Build (thanks to jrockway)
1491 - added all the meta classes to the immutable list and
1492 set it to inline the accessors
1493 - fix import to allow Sub::Exporter like { into => }
1494 and { into_level => } (perigrin)
1495 - exposed and documented init_meta() to allow better
1496 embedding and extending of Moose (perigrin)
1499 - complete re-organization of the test suite
1500 - added some new tests as well
1501 - finally re-enabled the Moose::POOP test since
1502 the new version of DBM::Deep now works again
1505 * Moose::Meta::Class
1506 - fixed very odd and very nasty recursion bug with
1508 - added tests for this (eilara)
1510 * Moose::Meta::Attribute
1511 Moose::Meta::Method::Constructor
1512 Moose::Meta::Method::Accessor
1513 - fixed issue with overload::Overloaded getting called
1514 on non-blessed items. (RT #29269)
1515 - added tests for this
1517 * Moose::Meta::Method::Accessor
1518 - fixed issue with generated accessor code making
1519 assumptions about hash based classes (thanks to dexter)
1521 * Moose::Coookbook::Snacks
1522 - these are bits of documentation, not quite as big as
1523 Recipes but which have no clear place in the module docs.
1524 So they are Snacks! (horray for castaway++)
1526 * Moose::Cookbook::Recipe4
1527 - updated it to use the new ArrayRef[MyType] construct
1528 - updated the accompanying test as well
1530 +++ Major Refactor of the Type Constraint system +++
1531 +++ with new features added as well +++
1533 * Moose::Util::TypeConstraint
1534 - no longer uses package variable to keep track of
1535 the type constraints, now uses the an instance of
1536 Moose::Meta::TypeConstraint::Registry to do it
1537 - added more sophisticated type notation parsing
1539 - added tests for this
1541 * Moose::Meta::TypeConstraint
1542 - some minor adjustments to make subclassing easier
1543 - added the package_defined_in attribute so that we
1544 can track where the type constraints are created
1546 * Moose::Meta::TypeConstraint::Union
1547 - this is now been refactored to be a subclass of
1548 Moose::Meta::TypeConstraint
1550 * Moose::Meta::TypeCoercion::Union
1551 - this has been added to service the newly refactored
1552 Moose::Meta::TypeConstraint::Union and is itself
1553 a subclass of Moose::Meta::TypeCoercion
1555 * Moose::Meta::TypeConstraint::Parameterized
1556 - added this module (taken from MooseX::AttributeHelpers)
1557 to help construct nested collection types
1558 - added tests for this
1560 * Moose::Meta::TypeConstraint::Registry
1561 - added this class to keep track of type constraints
1563 0.25 Mon. Aug. 13, 2007
1565 - Documentation update to reference Moose::Util::TypeConstraints
1566 under 'isa' in 'has' for how to define a new type
1567 (thanks to shlomif).
1569 * Moose::Meta::Attribute
1570 - required attributes now will no longer accept undef
1571 from the constructor, even if there is a default and lazy
1572 - added tests for this
1573 - default subroutines must return a value which passes the
1575 - added tests for this
1577 * Moose::Meta::Attribute
1578 * Moose::Meta::Method::Constructor
1579 * Moose::Meta::Method::Accessor
1580 - type-constraint tests now handle overloaded objects correctly
1581 in the error message
1582 - added tests for this (thanks to EvanCarroll)
1584 * Moose::Meta::TypeConstraint::Union
1585 - added (has_)hand_optimized_constraint to this class so that
1586 it behaves as the regular Moose::Meta::TypeConstraint does.
1589 - large refactoring of this code
1590 - added several more tests
1591 - tests for subtle conflict resolition issues
1592 added, but not currently running
1595 * Moose::Cookbook::Recipe7
1596 - added new recipe for augment/inner functionality
1598 - added test for this
1601 - a formal definition of roles (still in progress)
1604 - utilities for easier working with Moose classes
1605 - added tests for these
1608 - This contains Moose specific test functions
1609 - added tests for these
1611 0.24 Tues. July 3, 2007
1612 ~ Some doc updates/cleanup ~
1614 * Moose::Meta::Attribute
1615 - added support for roles to be given as parameters
1616 to the 'handles' option.
1617 - added tests and docs for this
1618 - the has '+foo' attribute form now accepts changes to
1619 the lazy option, and the addition of a handles option
1620 (but not changing the handles option)
1621 - added tests and docs for this
1624 - required methods are now fetched using find_method_by_name
1625 so that required methods can come from superclasses
1626 - adjusted tests for this
1628 0.23 Mon. June 18, 2007
1629 * Moose::Meta::Method::Constructor
1630 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1631 * Moose::Meta::Class
1632 - Modify make_immutable to work with the new Class::MOP immutable
1633 mechanism + POD + very basic test (groditi)
1634 * Moose::Meta::Attribute
1635 - Fix handles to use goto() so that caller() comes out properly on
1636 the other side (perigrin)
1638 0.22 Thurs. May 31, 2007
1639 * Moose::Util::TypeConstraints
1640 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1641 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1642 prototypes for functions
1643 - added the ClassName type constraint, this checks for strings
1644 which will respond true to ->isa(UNIVERSAL).
1645 - added tests and docs for this
1646 - subtyping just in name now works correctly by making the
1647 default for where be { 1 }
1648 - added test for this
1650 * Moose::Meta::Method::Accessor
1651 - coerce and lazy now work together correctly, thanks to
1652 merlyn for finding this bug
1653 - tests added for this
1654 - fix reader presedence bug in Moose::Meta::Attribute + tests
1657 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1658 a HASH-ref and missed. This produces better error messages then
1659 having it die cause undef is not a HASH.
1660 - added tests for this
1662 0.21 Thursday, May 2nd, 2007
1664 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1665 - modified unimport to remove super and inner along with the rest
1666 - altered unimport tests to handle this
1669 - altered super export to populate SUPER_SLOT
1671 * Moose::Meta::Class
1672 - altered augment and override modifier application to use *_SLOT
1673 - modified tests for these to unimport one test class each to test
1676 - fixed issue where custom attribute metaclasses
1677 where not handled correctly in roles
1678 - added tests for this
1680 * Moose::Meta::Class
1681 - fixed issue where extending metaclasses with
1682 roles would blow up. Thanks to Aankhen`` for
1683 finding this insidious error, and it's solution.
1685 ~~ lots of spelling and grammer fixes in the docs,
1686 many many thanks to rlb3 and Aankhen for these :)
1688 0.20 Friday, April 6th, 2007
1689 >> I messed up the SKIP logic in one test
1690 so this release is just to fix that.
1693 - 'has' now also accepts an ARRAY ref
1694 to create multiple attrs (see docs)
1695 (thanks to konobi for this)
1696 - added tests and docs
1698 0.19 Thurs. April 5th, 2007
1699 ~~ More documentation updates ~~
1701 * Moose::Util::TypeConstraints
1702 - 'type' now supports messages as well
1703 thanks to phaylon for finding this
1704 - added tests for this
1705 - added &list_all_type_constraints and
1706 &list_all_builtin_type_constraints
1707 functions to facilitate introspection.
1709 * Moose::Meta::Attribute
1710 - fixed regexp 'handles' declarations
1711 to build the list of delegated methods
1712 correctly (and not override important
1713 things like &new) thanks to ashleyb
1715 - added tests and docs for this
1716 - added the 'documentation' attributes
1717 so that you can actually document your
1718 attributes and inspect them through the
1720 - added tests and docs for this
1722 * Moose::Meta::Class
1723 - when loading custom attribute metaclasses
1724 it will first look in for the class in the
1725 Moose::Meta::Attribute::Custom::$name, and
1726 then default to just loading $name.
1727 - added tests and docs for this
1729 * Moose::Meta::TypeConstraint
1730 - type constraints now stringify to their names.
1731 - added test for this
1734 - added tests to assure we work with Module::Refresh
1735 - added stricter test skip logic in the Moose POOP
1736 test, ask Rob Kinyon why.
1737 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1739 0.18 Sat. March 10, 2007
1740 ~~ Many, many documentation updates ~~
1743 - We now use Class::MOP::load_class to
1745 - added tests to show types and subtypes
1746 working with Declare::Constraints::Simple
1747 and Test::Deep as constraint engines.
1750 !! You must have Class::MOP 0.37_001 !!
1751 !! for this developer release to work !!
1753 This release was primarily adding the immutable
1754 feature to Moose. An immutable class is one which
1755 you promise not to alter. When you set the class
1756 as immutable it will perform various bits of
1757 memoization and inline certain part of the code
1758 (constructors, destructors and accessors). This
1759 minimizes (and in some cases totally eliminates)
1760 one of Moose's biggest performance hits. This
1761 feature is not on by default, and is 100% optional.
1762 It has several configurable bits as well, so you
1763 can pick and choose to your specific needs.
1765 The changes involved in this were fairly wide and
1766 highly specific, but 100% backwards compatible, so
1767 I am not going to enumerate them here. If you are
1768 truely interested in what was changed, please do
1771 0.17 Tues. Nov. 14, 2006
1772 * Moose::Meta::Method::Accessor
1773 - bugfix for read-only accessors which
1774 are have a type constraint and lazy.
1775 Thanks to chansen for finding it.
1777 0.16 Tues. Nov. 14, 2006
1779 There are some speed improvements in this release,
1780 but they are only the begining, so stay tuned.
1783 - BUILDALL and DEMOLISHALL no longer get
1784 called unless they actually need to be.
1785 This gave us a signifigant speed boost
1786 for the cases when there is no BUILD or
1787 DEMOLISH method present.
1789 * Moose::Util::TypeConstraints
1790 * Moose::Meta::TypeConstraint
1791 - added an 'optimize_as' option to the
1792 type constraint, which allows for a
1793 hand optimized version of the type
1794 constraint to be used when possible.
1795 - Any internally created type constraints
1796 now provide an optimized version as well.
1798 0.15 Sun. Nov. 5, 2006
1800 This version of Moose *must* have Class::MOP 0.36 in order
1801 to work correctly. A number of small internal tweaks have
1802 been made in order to be compatible with that release.
1804 * Moose::Util::TypeConstraints
1805 - added &unimport so that you can clean out
1806 your class namespace of these exported
1809 * Moose::Meta::Class
1810 - fixed minor issue which occasionally
1811 comes up during global destruction
1813 - moved Moose::Meta::Method::Overriden into
1817 - moved Moose::Meta::Role::Method into
1820 * Moose::Meta::Attribute
1821 - changed how we do type checks so that
1822 we reduce the overall cost, but still
1825 - moved accessor generation methods to
1826 Moose::Meta::Method::Accessor to
1827 conform to the API changes from
1830 * Moose::Meta::TypeConstraint
1831 - changed how constraints are compiled
1832 so that we do less recursion and more
1833 iteration. This makes the type check
1835 - moved Moose::Meta::TypeConstraint::Union
1838 * Moose::Meta::Method::Accessor
1839 - created this from methods formerly found in
1840 Moose::Meta::Attribute
1842 * Moose::Meta::Role::Method
1843 - moved this from Moose::Meta::Role
1845 * Moose::Meta::Method::Overriden
1846 - moved this from Moose::Meta::Class
1848 * Moose::Meta::TypeConstraint::Union
1849 - moved this from Moose::Meta::TypeConstraint
1851 0.14 Mon. Oct. 9, 2006
1853 * Moose::Meta::Attribute
1854 - fixed lazy attributes which were not getting
1855 checked with the type constraint (thanks ashley)
1856 - added tests for this
1857 - removed the over-enthusiastic DWIMery of the
1858 automatic ArrayRef and HashRef defaults, it
1859 broke predicates in an ugly way.
1860 - removed tests for this
1862 0.13 Sat. Sept. 30, 2006
1864 This version of Moose *must* have Class::MOP 0.35 in order
1865 to work correctly. A number of small internal tweaks have
1866 been made in order to be compatible with that release.
1869 - Removed the use of UNIVERSAL::require to be a better
1870 symbol table citizen and remove a dependency
1871 (thanks Adam Kennedy)
1873 **~~ removed experimental & undocumented feature ~~**
1874 - commented out the 'method' and 'self' keywords, see the
1875 comments for more info.
1878 - added a FAQ and WTF files to document frequently
1879 asked questions and common problems
1881 * Moose::Util::TypeConstraints
1882 - added GlobRef and FileHandle type constraint
1883 - added tests for this
1885 * Moose::Meta::Attribute
1886 - if your attribute 'isa' ArrayRef of HashRef, and you have
1887 not explicitly set a default, then make the default DWIM.
1888 This will also work for subtypes of ArrayRef and HashRef
1890 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1891 - new test added for this (thanks to ashley)
1894 - added basic support for runtime role composition
1895 but this is still *highly experimental*, so feedback
1896 is much appreciated :)
1897 - added tests for this
1899 * Moose::Meta::TypeConstraint
1900 - the type constraint now handles the coercion process
1901 through delegation, this is to support the coercion
1904 * Moose::Meta::TypeConstraint::Union
1905 - it is now possible for coercions to be performed
1907 - added tests for this (thanks to konobi)
1909 * Moose::Meta::TypeCoercion
1910 - properly capturing error when type constraint
1914 - Scalar::Util 1.18 is bad on Win32, so temporarily
1915 only require version 1.17 for Win32 and cygwin.
1916 (thanks Adam Kennedy)
1918 0.12 Sat. Sept. 1, 2006
1920 - Recipe5 (subtypes & coercion) has been written
1923 - fixed "bad meta" error message to be more descriptive
1924 - fixed &unimport to not remove the &inner and &super
1925 keywords because we need to localize them.
1926 - fixed number of spelling/grammer issues, thanks Theory :)
1928 **~~ experimental & undocumented feature ~~**
1929 - added the method and self keywords, they are basically
1930 just sugar, and they may not stay around.
1933 - added &dump method to easily Data::Dumper
1936 * Moose::Meta::TypeConstraint
1937 - added the &is_a_type_of method to check both the current
1938 and the subtype of a method (similar to &isa with classes)
1941 - this is now a subclass of Class::MOP::Module, and no longer
1942 creates the _role_meta ugliness of before.
1943 - fixed tests to reflect this change
1945 0.11 Wed. July 12, 2006
1947 - added an &unimport method to remove all the keywords
1948 that Moose will import, simply add 'no Moose' to the
1949 bottom of your class file.
1952 - fixed some test failures caused by a forgotten test
1955 0.10 Thurs. July 6, 2006
1957 - improved error message when loading modules so
1958 it is less confusing when you load a role.
1959 - added &calculate_all_roles method to
1960 Moose::Meta::Class and Moose::Meta::Role
1963 This module has been tested against Class::MOP 0.30
1964 but it does not yet utilize the optimizations
1965 it makes available. Stay tuned for that ;)
1967 0.09_03 Fri. June 23, 2006
1968 ++ DEVELOPER RELEASE ++
1970 - 'use strict' and 'use warnings' are no longer
1971 needed in Moose classes, Moose itself will
1972 turn them on for you.
1973 - added tests for this
1974 - moved code from exported subs to private methods
1975 in Moose::Meta::Class
1978 - as with Moose, strict and warnings are
1979 automatically turned on for you.
1980 - added tests for this
1983 - now handles an edge case for override errors
1984 - added tests for this
1985 - added some more edge case tests
1987 0.09_02 Tues. May 16, 2006
1988 ++ DEVELOPER RELEASE ++
1990 - added prototypes to the exported subs
1994 - added prototypes to the exported subs
1997 * Moose::Util::TypeConstraints
1998 - cleaned up prototypes for the subs
2001 0.09_01 Fri. May 12, 2006
2002 ++ DEVELOPER RELEASE ++
2003 - This release works in combination with
2004 Class::MOP 0.29_01, it is a developer
2005 release because it uses the a new
2006 instance sub-protocol and a fairly
2007 complete Role implementation. It has
2008 not yet been optimized, so it slower
2009 the the previous CPAN version. This
2010 release also lacks good updated docs,
2011 the official release will have updated docs.
2014 - refactored the keyword exports
2015 - 'with' now checks Role validaity and
2016 accepts more than one Role at a time
2017 - 'extends' makes metaclass adjustments as
2018 needed to ensure metaclass compatibility
2021 - refactored the keyword exports
2022 - 'with' now checks Role validaity and
2023 accepts more than one Role at a time
2025 * Moose::Util::TypeConstraints
2026 - added the 'enum' keyword for simple
2027 string enumerations which can be used as
2029 - see example of usage in t/202_example.t
2032 - more careful checking of params to new()
2035 - much work done on the role composition
2036 - many new tests for conflict detection
2037 and composition edge cases
2038 - not enough documentation, I suggest
2039 looking at the tests
2041 * Moose::Meta::Instance
2042 - added new Instance metaclass to support
2043 the new Class::MOP instance protocol
2045 * Moose::Meta::Class
2046 - some small changes to support the new
2048 - some small additions to support Roles
2050 * Moose::Meta::Attribute
2051 - some improvements to the accessor generation code
2053 - some small changes to support the new
2055 - (still somewhat) experimental delegation support
2056 with the 'handles' option
2057 - added several tests for this
2058 - no docs for this yet
2060 0.05 Thurs. April 27, 2006
2062 - keywords are now exported with Sub::Exporter
2063 thanks to chansen for this commit
2064 - has keyword now takes a 'metaclass' option
2065 to support custom attribute meta-classes
2066 on a per-attribute basis
2067 - added tests for this
2068 - the 'has' keyword not accepts inherited slot
2069 specifications (has '+foo'). This is still an
2070 experimental feature and probably not finished
2071 see t/038_attribute_inherited_slot_specs.t for
2072 more details, or ask about it on #moose
2073 - added tests for this
2076 - keywords are now exported with Sub::Exporter
2078 * Moose::Utils::TypeConstraints
2079 - reorganized the type constraint hierarchy, thanks
2080 to nothingmuch and chansen for his help and advice
2082 - added some tests for this
2083 - keywords are now exported with Sub::Exporter
2084 thanks to chansen for this commit
2086 * Moose::Meta::Class
2087 - due to changes in Class::MOP, we had to change
2088 construct_instance (for the better)
2090 * Moose::Meta::Attribute
2091 - due to changes in Class::MOP, we had to add the
2092 initialize_instance_slot method (it's a good thing)
2094 * Moose::Meta::TypeConstraint
2095 - added type constraint unions
2096 - added tests for this
2097 - added the is_subtype_of predicate method
2098 - added tests for this
2100 0.04 Sun. April 16th, 2006
2102 - Roles can now consume other roles
2103 - added tests for this
2104 - Roles can specify required methods now with
2105 the requires() keyword
2106 - added tests for this
2109 - ripped out much of it's guts ,.. much cleaner now
2110 - added required methods and correct handling of
2111 them in apply() for both classes and roles
2112 - added tests for this
2113 - no longer adds a does() method to consuming classes
2114 it relys on the one in Moose::Object
2115 - added roles attribute and some methods to support
2116 roles consuming roles
2118 * Moose::Meta::Attribute
2119 - added support for triggers on attributes
2120 - added tests for this
2121 - added support for does option on an attribute
2122 - added tests for this
2124 * Moose::Meta::Class
2125 - added support for attribute triggers in the
2127 - added tests for this
2130 - Moose no longer creates a subtype for your class
2131 if a subtype of the same name already exists, this
2132 should DWIM in 99.9999% of all cases
2134 * Moose::Util::TypeConstraints
2135 - fixed bug where incorrect subtype conflicts were
2137 - added test for this
2140 - this class can now be extended with 'use base' if
2141 you need it, it properly loads the metaclass class now
2142 - added test for this
2144 0.03_02 Wed. April 12, 2006
2146 - you must now explictly use Moose::Util::TypeConstraints
2147 it no longer gets exported for you automatically
2150 - new() now accepts hash-refs as well as key/value lists
2151 - added does() method to check for Roles
2152 - added tests for this
2154 * Moose::Meta::Class
2155 - added roles attribute along with the add_role() and
2157 - added tests for this
2160 - now adds a does() method to consuming classes
2161 which tests the class's hierarchy for roles
2162 - added tests for this
2164 0.03_01 Mon. April 10, 2006
2166 - added new Role recipe (no content yet, only code)
2169 - added 'with' keyword for Role support
2170 - added test and docs for this
2171 - fixed subtype quoting bug
2172 - added test for this
2176 - added test and docs
2178 * Moose::Util::TypeConstraints
2179 - added the message keyword to add custom
2180 error messages to type constraints
2183 - the meta role to support Moose::Role
2184 - added tests and docs
2186 * Moose::Meta::Class
2187 - moved a number of things from Moose.pm
2188 to here, they should have been here
2191 * Moose::Meta::Attribute
2192 - moved the attribute option macros here
2193 instead of putting them in Moose.pm
2195 * Moose::Meta::TypeConstraint
2196 - added the message attributes and the
2198 - added tests and docs for this
2200 0.03 Thurs. March 30, 2006
2202 - added the Moose::Cookbook with 5 recipes,
2203 describing all the stuff Moose can do.
2206 - fixed an issue with &extends super class loading
2207 it now captures errors and deals with inline
2208 packages correctly (bug found by mst, solution
2210 - added super/override & inner/augment features
2211 - added tests and docs for these
2214 - BUILDALL now takes a reference of the %params
2215 that are passed to &new, and passes that to
2218 * Moose::Util::TypeConstraints
2219 - Type constraints now survive runtime reloading
2220 - added test for this
2222 * Moose::Meta::Class
2223 - fixed the way attribute defaults are handled
2224 during instance construction (bug found by chansen)
2226 * Moose::Meta::Attribute
2227 - read-only attributes now actually enforce their
2228 read-only-ness (this corrected in Class::MOP as
2231 0.02 Tues. March 21, 2006
2233 - many more tests, fixing some bugs and
2235 - &extends now loads the base module with
2237 - added UNIVERSAL::require to the
2240 - each new Moose class will also create
2241 and register a subtype of Object which
2242 correspond to the new Moose class.
2243 - the 'isa' option in &has now only
2244 accepts strings, and will DWIM in
2247 * Moose::Util::TypeConstraints
2248 - added type coercion features
2249 - added tests for this
2250 - added support for this in attributes
2251 and instance construction
2253 - type construction no longer creates a
2254 function, it registers the type instead.
2255 - added several functions to get the
2259 - BUILDALL and DEMOLISHALL were broken
2260 because of a mis-named hash key, Whoops :)
2262 * Moose::Meta::Attribute
2263 - adding support for coercion in the
2264 autogenerated accessors
2266 * Moose::Meta::Class
2267 - adding support for coercion in the
2268 instance construction
2270 * Moose::Meta::TypeConstraint
2271 * Moose::Meta::TypeCoercion
2272 - type constraints and coercions are now
2273 full fledges meta-objects
2275 0.01 Wed. March 15, 2006
2276 - Moooooooooooooooooose!!!