1 Revision history for Perl extension Moose
3 0.71 Thu, February 19, 2009
4 * Moose::Cookbook::Basics::Recipe11
5 - A new recipe which demonstrates the use of BUILDARGS and
8 * Moose::Cookbook::Roles::Recipe3
9 - A new recipe, applying a role to an object instance. (Dave
12 * Moose::Util::TypeConstraints::Optimized
13 - Just use Class::MOP for the optimized ClassName check. (Dave
17 - Allow overriding specific keywords from "also" packages. (doy)
20 - Replace hardcoded cookbook tests with Test::Inline POD
21 to ensure they don't get out of sync. (Dave Rolsky)
24 - Working on the above turned up a number of little bugs in the
25 recipe code. (Dave Rolsky)
27 0.70 Sat, February 14, 2009
28 * Moose::Util::TypeConstraints
29 - Added the RoleName type (stevan)
30 - added tests for this (stevan)
32 * Moose::Cookbook::Basics::Recipe3
33 - Updated the before qw[left right] sub to be a little more
34 defensive about what it accepts (stevan)
35 - added more tests to t/000_recipies/basics/003_binary_tree.t
39 - We now always call DEMOLISHALL, even if a class does not
40 define DEMOLISH. This makes sure that method modifiers on
41 DEMOLISHALL work as expected. (doy)
42 - added tests for this (EvanCarroll)
44 * Moose::Util::MetaRole
45 - Accept roles for the wrapped_method_metaclass (rafl)
46 - added tests for this (rafl)
48 * Moose::Meta::Attribute
49 - We no longer pass the meta-attribute object as a final
50 argument to triggers. This actually changed for inlined code a
51 while back, but the non-inlined version and the docs were
55 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
56 they require 0.11. (Dave Rolsky)
59 - Lots of small changes to the manual, cookbook, and
60 elsewhere. These were based on feedback from various
61 users, too many to list here. (Dave Rolsky)
63 0.69 Thu, February 12, 2009
65 - Make some keyword errors use throw_error instead of croak
66 since Moose::Exporter wraps keywords now (Sartak)
69 - Revised every recipe for style and clarity. Also moved some
70 documentation out of cookbook recipes and into Moose::Manual
71 pages. This work was funded as part of the Moose docs grant
72 from TPF. (Dave Rolsky)
74 * Moose::Meta::Method::Delegation
75 - If the attribute doing the delegation was not populated, the
76 error message did not specify the attribute name
79 0.68 Wed, February 4, 2009
81 - Many spelling, typo, and formatting fixes by daxim.
83 * Moose::Manual::Attributes
84 - The NAME section in the POD used "Attribute" so search.cpan
85 didn't resolve links from other documents properly.
87 * Moose::Meta::Method::Overriden
88 - Now properly spelled as Overridden. Thanks to daxim for
91 0.67 Tue, February 3, 2009
93 - Lots of little typo fixes and a few clarifications. Several
94 pages didn't have proper titles, and so weren't actually
95 visible on search.cpan.org. Thanks to hanekomu for a variety
96 of fixes and formatting improvements.
98 0.66 Tue, February 3, 2009
100 - This is a brand new, extensive manual for Moose. This aims to
101 provide a complete introduction to all of Moose's
102 features. This work was funded as part of the Moose docs grant
103 from TPF. (Dave Rolsky)
105 * Moose::Meta::Attribute
106 - Added a delegation_metaclass method to replace a hard-coded
107 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
109 * Moose::Util::TypeConstraints
110 - If you created a subtype and passed a parent that Moose didn't
111 know about, it simply ignored the parent. Now it automatically
112 creates the parent as a class type. This may not be what you
113 want, but is less broken than before. (Dave Rolsky)
115 * Moose::Util::TypeConstraints
116 - This module tried throw errors by calling Moose->throw_error,
117 but it did not ensure that Moose was loaded first. This could
118 cause very unhelpful errors when it tried to throw an error
119 before Moose was loaded. (Dave Rolsky)
121 * Moose::Util::TypeConstraints
122 - You could declare a name with subtype such as "Foo!Bar" that
123 would be allowed, but if you used it in a parameterized type
124 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
125 vetting on names created via the sugar functions, so that they
126 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
128 0.65 Thu, January 22, 2008
129 * Moose and Moose::Meta::Method::Overridden
130 - If an overridden method called super(), and then the
131 superclass's method (not overridden) _also_ called super(),
132 Moose went into an endless recursion loop. Test provided by
133 Chris Prather. (Dave Rolsky)
135 * Moose::Meta::TypeConstraint
136 - All methods are now documented. (gphat)
138 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
139 - Fixed some bogus failures that occurred because we tried to
140 validate filesystem paths in a very ad-hoc and
141 not-quite-correct way. (Dave Rolsky)
143 * Moose::Util::TypeConstraints
144 - Added maybe_type to exports. See docs for details. (rjbs)
147 - Added Moose::Util::TypeConstraints to the SEE ALSO
151 - Methods created via an attribute can now fulfill a "requires"
152 declaration for a role. (nothingmuch)
154 * Moose::Meta::Method::*
155 - Stack traces from inlined code will now report its line and
156 file as being in your class, as opposed to in Moose
159 0.64 Wed, December 31, 2008
160 * Moose::Meta::Method::Accessor
161 - Always inline predicate and clearer methods (Sartak)
163 * Moose::Meta::Attribute
164 - Support for parameterized traits (Sartak)
165 - verify_against_type_constraint method to avoid duplication
166 and enhance extensibility (Sartak)
169 - Tests (but no support yet) for parameterized traits (Sartak)
172 - Require Class::MOP 0.75+, which has the side effect of making
173 sure we work on Win32. (Dave Rolsky)
175 0.63 Mon, December 8, 2008
177 - Some small grammar tweaks and bug fixes in non-Moose example
180 0.62_02 Fri, December 5, 2008
181 * Moose::Meta::Role::Application::ToClass
182 - When a class does not provide all of a role's required
183 methods, the error thrown now mentions all of the missing
184 methods, as opposed to just the first one found. Requested by
185 Curtis Poe (RT #41119). (Dave Rolsky)
187 * Moose::Meta::Method::Constructor
188 - Moose will no longer inline a constructor for your class
189 unless it inherits its constructor from Moose::Object, and
190 will warn when it doesn't inline. If you want to force
191 inlining anyway, pass "replace_constructor => 1" to
192 make_immutable. Addresses RT #40968, reported by Jon
193 Swartz. (Dave Rolsky)
194 - The quoting of default values could be broken if the default
195 contained a single quote ('). Now we use quotemeta to escape
196 anything potentially dangerous in the defaults. (Dave Rolsky)
198 0.62_01 Wed, December 3, 2008
200 - use the method->execute API for BUILDALL
201 and DEMOLISHALL (Sartak)
203 * Moose::Util::TypeConstraints
204 - We now make all the type constraint meta classes immutable
205 before creating the default types provided by Moose. This
206 should make loading Moose a little faster. (Dave Rolsky)
208 0.62 Wed November 26, 2008
209 * Moose::Meta::Role::Application::ToClass
210 Moose::Meta::Role::Application::ToRole
211 - fixed issues where excluding and aliasing the
212 same methods for a single role did not work
213 right (worked just fine with multiple
215 - added test for this (stevan)
217 * Moose::Meta::Role::Application::RoleSummation
218 - fixed the error message when trying to compose
219 a role with a role it excludes (Sartak)
222 - Catch another case where recursion caused the value
223 of $CALLER to be stamped on (t0m)
224 - added test for this (t0m)
227 - Remove the make_immutable keyword, which has been
228 deprecated since April. It breaks metaclasses that
229 use Moose without no Moose (Sartak)
231 * Moose::Meta::Attribute
232 - Removing an attribute from a class now also removes delegation
233 (handles) methods installed for that attribute (t0m)
234 - added test for this (t0m)
236 * Moose::Meta::Method::Constructor
237 - An attribute with a default that looked like a number (but was
238 really a string) would accidentally be treated as a number
239 when the constructor was made immutable (perigrin)
240 - added test for this (perigrin)
243 - create method for constructing a role
245 - added test for this (Sartak)
246 - anonymous roles! (Sartak)
247 - added test for this (Sartak)
250 - more consistent error messages (Sartak)
252 * Moose::Cookbook::Roles::Recipe1
253 - attempt to explain why a role that just requires
254 methods is useful (Sartak)
256 0.61 Fri November 7, 2008
257 * Moose::Meta::Attribute
258 - When passing a role to handles, it will be loaded if necessary
262 - Method objects returned by get_method (and other methods)
263 Could end up being returned without an associated_metaclass
264 attribute. Removing get_method_map, which is provided by
265 Class::MOP::Class, fixed this. The Moose version did nothing
266 different from its parent except introduce a bug. (Dave Rolsky)
267 - added tests for this (jdv79)
270 - Added a $VERSION to all .pm files which didn't have one. Fixes
271 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
273 * Moose::Cookbook::Basics::Recipe4
274 * Moose::Cookbook::Basics::Recipe6
275 - These files had spaces on the first line of the SYNOPSIS, as
276 opposed to a totally empty line. According to RT #40432, this
277 confuses POD parsers. (Dave Rolsky)
279 0.60 Fri October 24, 2008
281 - Passing "-traits" when loading Moose caused the Moose.pm
282 exports to be broken. Reported by t0m. (Dave Rolsky)
283 - Tests for this bug. (t0m)
286 - Change resolve_metaclass alias to use the new
287 load_first_existing_class function. This makes it a lot
288 simpler, and also around 5 times faster. (t0m)
289 - Add caching to resolve_metaclass_alias, which gives an order
290 of magnitude speedup to things which repeatedly call the
291 Moose::Meta::Attribute->does method, notably MooseX::Storage
294 * Moose::Util::TypeConstraint
295 - Put back the changes for parameterized constraints that
296 shouldn't have been removed in 0.59. We still cannot parse
297 them, but MooseX modules can create them in some other
298 way. See the 0.58 changes for more details. (jnapiorkowski)
299 - Changed the way subtypes are created so that the job is
300 delegated to a type constraint parent. This clears up some
301 hardcoded checking and should allow correct subtypes of
302 Moose::Meta::Type::Constraint. Don't rely on this new API too
303 much (create_child_type) because it may go away in the
304 future. (jnapiorkowski)
306 * Moose::Meta::TypeConstraint::Union
307 - Type constraint names are sorted as strings, not numbers.
310 * Moose::Meta::TypeConstraint::Parameterizable
311 - New parameterize method. This can be used as a factory method
312 to make a new type constraint with a given parameterized
313 type. (jnapiorkowski)
314 - added tests (jnapiorkowski)
316 0.59 Tue October 14, 2008
318 - Add abridged documentation for builder/default/initializer/
319 predicate, and link to more details sections in
320 Class::MOP::Attribute. (t0m)
322 * Moose::Util::TypeConstraints
323 - removed prototypes from all but the &-based stuff (mst)
325 * Moose::Util::TypeConstraints
326 - Creating a anonymous subtype with both a constraint and a
327 message failed with a very unhelpful error, but should just
328 work. Reported by t0m. (Dave Rolsky)
331 - Some tests that used Test::Warn if it was available failed
332 with older versions of Test::Warn. Reported by Fayland. (Dave
334 - Test firing behavior of triggers in relation to builder/default/
336 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
337 kinds of supported type. (t0m)
340 - In create(), do not pass "roles" option to the superclass
341 - added related test that creates an anon metaclass with
344 * Moose::Meta::TypeConstraint::Class
345 * Moose::Meta::TypeConstraint::Role
346 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
347 other types (as per change in 0.55_02). (t0m)
349 * Moose::Meta::TypeConstraint::Registry
350 - Fix warning when dealing with unknown type names (t0m)
352 * Moose::Util::TypeConstraints
353 - Reverted changes from 0.58 related to handle parameterized
354 types. This caused random failures on BSD and Win32 systems,
355 apparently related to the regex engine. This means that Moose
356 can no longer parse structured type constraints like
357 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
358 supported in a slightly different way via MooseX::Types some
359 time in the future. (Dave Rolsky)
361 0.58 Sat September 20, 2008
362 !! This release has an incompatible change regarding !!
363 !! how roles add methods to a class !!
365 * Roles and role application
366 ! Roles now add methods by calling add_method, not
367 alias_method. They make sure to always provide a method
368 object, which will be cloned internally. This means that it is
369 now possible to track the source of a method provided by a
370 role, and even follow its history through intermediate roles.
372 This means that methods added by a role now show up when
373 looking at a class's method list/map. (Dave Rolsky)
376 - From this release on, we'll try to maintain a list of
377 conflicting modules, and warn you if you have one
378 installed. For example, this release conflicts with ...
379 - MooseX::Singleton <= 0.11
380 - MooseX::Params::Validate <= 0.05
383 In general, we try to not break backwards compatibility for
384 most Moose users, but MooseX modules and other code which
385 extends Moose's metaclasses is often affected by very small
386 changes in the Moose internals.
388 * Moose::Meta::Method::Delegation
389 * Moose::Meta::Attribute
390 - Delegation methods now have their own method class. (Dave
393 * Moose::Meta::TypeConstraint::Parameterizable
394 - Added a new method 'parameterize' which is basically a factory
395 for the containing constraint. This makes it easier to create
396 new types of parameterized constraints. (jnapiorkowski)
398 * Moose::Meta::TypeConstraint::Union
399 - Changed the way Union types canonicalize their names to follow
400 the normalized TC naming rules, which means we strip all
401 whitespace. (jnapiorkowski)
403 * Moose::Util::TypeConstraints
404 - Parameter and Union args are now sorted, this makes Int|Str
405 the same constraint as Str|Int. (jnapiorkowski)
406 - Changes to the way Union types are parsed to more correctly
407 stringify their names. (jnapiorkowski)
408 - When creating a parameterized type, we now use the new
409 parameterize method. (jnapiorkowski)
410 - Incoming type constraint strings are now normalized to remove
411 all whitespace differences. (jnapiorkowski)
412 - Changed the way we parse type constraint strings so that we now
413 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
414 constraints. This lays the foundation for more flexible type
415 constraint implementations.
417 * Tests and docs for all the above. (jnapiorkowski)
421 - Moose::Exporter will no longer remove a subroutine that the
422 exporting package re-exports. Moose re-exports the
423 Carp::confess function, among others. The reasoning is that we
424 cannot know whether you have also explicitly imported those
425 functions for your own use, so we err on the safe side and
426 always keep them. (Dave Rolsky)
427 - added tests for this (rafl)
430 - Changes to how we fix metaclass compatibility that are much
431 too complicated to go into. The summary is that Moose is much
432 less likely to complain about metaclass incompatibility
433 now. In particular, if two metaclasses differ because
434 Moose::Util::MetaRole was used on the two corresponding
435 classes, then the difference in roles is reconciled for the
436 subclass's metaclass. (Dave Rolsky)
437 - Squashed an warning in _process_attribute (thepler)
440 - throw exceptions (sooner) for invalid attribute names (thepler)
441 - added tests for this (thepler)
443 * Moose::Util::MetaRole
444 - If you explicitly set a constructor or destructor class for a
445 metaclass object, and then applied roles to the metaclass,
446 that explicitly set class would be lost and replaced with the
450 * Moose::Meta::Attribute
451 * Moose::Meta::Method
454 * Moose::Error::Default
455 * Moose::Error::Croak
456 * Moose::Error::Confess
457 - All instances of confess() changed to use overridable
458 C<throw_error> method. This method ultimately calls a class
459 constructor, and you can change the class being called. In
460 addition, errors now pass more information than just a string.
461 The default C<error_class> behaves like C<Carp::confess>, so
462 the behavior is not visibly different for end users.
464 0.57 Wed September 3, 2008
466 - A new bit of doc intended to introduce folks familiar with
467 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
470 - Shows examples of two classes, each done first with and then
471 without Moose. This makes a nice parallel to
472 Moose::Intro. (Dave Rolsky)
474 * Moose::Util::TypeConstraints
475 - Fixed a bug in find_or_parse_type_constraint so that it
476 accepts a Moose::Meta::TypeConstraint object as the parent
477 type, not just a name (jnapiorkowski)
478 - added tests (jnapiorkowski)
481 - If Sub::Name was not present, unimporting failed to actually
482 remove some sugar subs, causing test failures (Dave Rolsky)
484 0.56 Mon September 1, 2008
485 For those not following the series of dev releases, there are
486 several major changes in this release of Moose.
487 ! Moose::init_meta should now be called as a method. See the
490 - Major performance improvements by nothingmuch.
492 - New modules for extension writers, Moose::Exporter and
493 Moose::Util::MetaRole by Dave Rolsky.
495 - Lots of doc improvements and additions, especially in the
500 * Removed all references to the experimental-but-no-longer-needed
501 Moose::Meta::Role::Application::ToMetaclassInstance.
503 * Require Class::MOP 0.65.
505 0.55_04 Sat August 30, 2008
506 * Moose::Util::MetaRole
507 * Moose::Cookbook::Extending::Recipe2
508 - This simplifies the application of roles to any meta class, as
509 well as the base object class. Reimplemented metaclass traits
510 using this module. (Dave Rolsky)
512 * Moose::Cookbook::Extending::Recipe1
513 - This a new recipe, an overview of various ways to write Moose
514 extensions (Dave Rolsky)
516 * Moose::Cookbook::Extending::Recipe3
517 * Moose::Cookbook::Extending::Recipe4
518 - These used to be Extending::Recipe1 and Extending::Recipe2,
521 0.55_03 Fri August 29, 2008
522 * No changes from 0.55_02 except increasing the Class::MOP
523 dependency to 0.64_07.
525 0.55_02 Fri August 29, 2008
526 * Makefile.PL and Moose.pm
527 - explicitly require Perl 5.8.0+ (Dave Rolsky)
529 * Moose::Util::TypeConstraints
530 - Fix warnings from find_type_constraint if the type is not
533 * Moose::Meta::TypeConstraint
534 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
535 return false if the type you specify cannot be found in the
536 type registry, rather than throwing an unhelpful and
537 coincidental exception. (t0m).
538 - added docs & test for this (t0m)
540 * Moose::Meta::TypeConstraint::Registry
541 - add_type_constraint now throws an exception if a parameter is
543 - added docs & test for this (t0m)
545 * Moose::Cookbook::FAQ
546 - Added a faq entry on the difference between "role" and "trait"
550 - Fixed a bug that caused role composition to not see a required
551 method when that method was provided by another role being
552 composed at the same time. (Dave Rolsky)
553 - test and bug finding (tokuhirom)
555 0.55_01 Wed August 20, 2008
557 !! Calling Moose::init_meta as a function is now !!
558 !! deprecated. Please see the Moose.pm docs for details. !!
560 * Moose::Meta::Method::Constructor
561 - Fix inlined constructor so that values produced by default
562 or builder methods are coerced as required. (t0m)
563 - added test for this (t0m)
565 * Moose::Meta::Attribute
566 - A lazy attribute with a default or builder did not attempt to
567 coerce the default value. The immutable code _did_
569 - added test for this (t0m)
572 - This is a new helper module for writing "Moose-alike"
573 modules. This should make the lives of MooseX module authors
574 much easier. (Dave Rolsky)
577 * Moose::Cookbook::Meta::Recipe5
578 - Implemented metaclass traits (and wrote a recipe for it):
580 use Moose -traits => 'Foo'
582 This should make writing small Moose extensions a little
585 * Moose::Cookbook::Basics::Recipe1
586 - Removed any examples of direct hashref access, and applied an
587 editorial axe to reduce verbosity. (Dave Rolsky)
589 * Moose::Cookbook::Basics::Recipe1
590 - Also applied an editorial axe here. (Dave Rolsky)
593 * Moose::Cookbook::Extending::Recipe1
594 * Moose::Cookbook::Extending::Recipe2
595 - Rewrote extending and embedding moose documentation and
596 recipes to use Moose::Exporter (Dave Rolsky)
600 - These two modules now warn when you load them from the main
601 package "main" package, because we will not export sugar to
602 main. Previously it just did nothing. (Dave Rolsky)
605 - Now provide an init_meta method just like Moose.pm, and you
606 can call this to provide an alternate role metaclass. (Dave
607 Rolsky and nothingmuch)
608 - get_method_map now respects the package cache flag (nothingmuch)
611 - Two new methods - add_method and wrap_method_body
615 - Optimizations including allowing constructors to accept hash
616 refs, making many more classes immutable, and making
617 constructors immutable. (nothingmuch)
619 0.55 Sun August 3, 2008
620 * Moose::Meta::Attribute
621 - breaking down the way 'handles' methods are
622 created so that the process can be more easily
623 overridden by subclasses (stevan)
625 * Moose::Meta::TypeConstraint
626 - fixing what is passed into a ->message with
627 the type constraints (RT #37569)
628 - added tests for this (Charles Alderman)
630 * Moose::Util::TypeConstraints
631 - fix coerce to accept anon types like subtype can (mst)
634 - reorganized the recipes into sections - Basics, Roles, Meta,
635 Extending - and wrote abstracts for each section (Dave Rolsky)
637 * Moose::Cookbook::Basics::Recipe10
638 - A new recipe that demonstrates operator overloading
639 in combination with Moose. (bluefeet)
641 * Moose::Cookbook::Meta::Recipe1
642 - an introduction to what meta is and why you'd want to make
643 your own metaclass extensions (Dave Rolsky)
645 * Moose::Cookbook::Meta::Recipe4
646 - a very simple metaclass example (Dave Rolsky)
648 * Moose::Cookbook::Extending::Recipe1
649 - how to write a Moose-alike module to use your own object base
652 * Moose::Cookbook::Extending::Recipe2
653 - how to write modules with an API just like C<Moose.pm> (Dave
657 - Tons of fixes, both syntactical and grammatical (Dave
658 Rolsky, Paul Fenwick)
660 0.54 Thurs. July 3, 2008
661 ... this is not my day today ...
663 * Moose::Meta::Attribute
664 - fixed legal_options_for_inheritance such that
665 clone_and_inherit options still works for
666 Class::MOP::Attribute objects and therefore
667 does not break MooseX::AttributeHelpers
670 0.53 Thurs. July 3, 2008
671 * Whoops, I guess I should run 'make manifest' before
672 actually releasing the module. No actual changes
673 in this release, except the fact that it includes
674 the changes that I didn't include in the last
677 0.52 Thurs. July 3, 2008
679 - added "FEATURE REQUESTS" section to the Moose docs
680 to properly direct people (stevan) (RT #34333)
681 - making 'extends' croak if it is passed a Role since
682 this is not ever something you want to do
683 (fixed by stevan, found by obra)
684 - added tests for this (stevan)
687 - adding support for DOES (as in UNIVERSAL::DOES)
689 - added test for this
691 * Moose::Meta::Attribute
692 - added legal_options_for_inheritance (wreis)
693 - added tests for this (wreis)
695 * Moose::Cookbook::Snacks::*
696 - removed some of the unfinished snacks that should
697 not have been released yet. Added some more examples
698 to the 'Keywords' snack. (stevan)
700 * Moose::Cookbook::Style
701 - added general Moose "style guide" of sorts to the
702 cookbook (nothingmuch) (RT #34335)
705 - added more BUILDARGS tests (stevan)
707 0.51 Thurs. Jun 26, 2008
709 - add unimport so "no Moose::Role" actually does
712 * Moose::Meta::Role::Application::ToRole
713 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
714 order to provide its own implementation, that method still got
715 added to the list of required methods for consumers of
716 RoleB. Now an aliased method is only added to the list of
717 required methods if the role doing the aliasing does not
718 provide its own implementation. See Recipe 11 for an example
719 of all this. (Dave Rolsky)
720 - added tests for this
722 * Moose::Meta::Method::Constructor
723 - when a single argument that wasn't a hashref was provided to
724 an immutabilized constructor, the error message was very
725 unhelpful, as opposed to the non-immutable error. Reported by
727 - added test for this (Dave Rolsky)
729 * Moose::Meta::Attribute
730 - added support for meta_attr->does("ShortAlias") (sartak)
731 - added tests for this (sartak)
732 - moved the bulk of the `handles` handling to the new
733 install_delegation method (Stevan)
736 - Added BUILDARGS, a new step in new()
738 * Moose::Meta::Role::Application::RoleSummation
739 - fix typos no one ever sees (sartak)
741 * Moose::Util::TypeConstraints
742 * Moose::Meta::TypeConstraint
743 * Moose::Meta::TypeCoercion
744 - Attempt to work around the ??{ } vs. threads issue
746 - Some null_constraint optimizations
748 0.50 Thurs. Jun 11, 2008
749 - Fixed a version number issue by bumping all modules
752 0.49 Thurs. Jun 11, 2008
753 !! This version now approx. 20-25% !!
754 !! faster with new Class::MOP 0.59 !!
756 * Moose::Meta::Attribute
757 - fixed how the is => (ro|rw) works with
758 custom defined reader, writer and accessor
760 - added docs for this (TODO).
761 - added tests for this (Thanks to Penfold)
762 - added the custom attribute alias for regular
763 Moose attributes which is "Moose"
764 - fix builder and default both being used
769 Moose::Meta::Attribute
771 Moose::Meta::Role::Composite
772 Moose::Util::TypeConstraints
773 - switched usage of reftype to ref because
777 - changing add_package_symbol to use the new
781 - fixed how DEMOLISHALL is called so that it
782 can be overrided in subclasses (thanks to Sartak)
783 - added test for this (thanks to Sartak)
785 * Moose::Util::TypeConstraints
786 - move the ClassName type check code to
787 Class::MOP::is_class_loaded (thanks to Sartak)
789 * Moose::Cookbook::Recipe11
790 - add tests for this (thanks to tokuhirom)
792 0.48 Thurs. May 29, 2008
793 (early morning release engineering)--
795 - fixing the version in Moose::Meta::Method::Destructor
796 which was causing the indexer to choke
798 0.47 Thurs. May 29, 2008
799 (late night release engineering)--
801 - fixing the version is META.yml, no functional
802 changes in this release
804 0.46 Wed. May 28, 2008
805 !! This version now approx. 20-25% !!
806 !! faster with new Class::MOP 0.57 !!
809 - some optimizations of the &initialize method
810 since it is called so often by &meta
814 - now use the get_all_package_symbols from the
815 updated Class::MOP, test suite is now 10 seconds
818 * Moose::Meta::Method::Destructor
819 - is_needed can now also be called as a class
820 method for immutablization to check if the
821 destructor object even needs to be created
824 * Moose::Meta::Method::Destructor
825 Moose::Meta::Method::Constructor
826 - added more descriptive error message to help
827 keep people from wasting time tracking an error
828 that is easily fixed by upgrading.
830 0.45 Saturday, May 24, 2008
832 - Because of work in Class::MOP 0.57, all
833 XS based functionality is now optional
834 and a Pure Perl version is supplied
835 - the CLASS_MOP_NO_XS environment variable
836 can now be used to force non-XS versions
838 - several of the packages have been tweaked
839 to take care of this, mostly we added
840 support for the package_name and name
841 variables in all the Method metaclasses
842 - before/around/after method modifiers now
843 support regexp matching of names
844 (thanks to Takatoshi Kitano)
845 - tests added for this
846 - NOTE: this only works for classes, it
847 is currently not supported in roles,
848 but, ... patches welcome
849 - All usage of Carp::confess have been replaced
850 by Carp::croak in the "keyword" functions since
851 the stack trace is usually not helpful
854 - All usage of Carp::confess have been replaced
855 by Carp::croak in the "keyword" functions since
856 the stack trace is usually not helpful
857 - The 'has' keyword for roles now accepts the
858 same array ref form that Moose.pm does
859 (has [qw/foo bar/] => (is => 'rw', ...))
860 - added test for this
862 * Moose::Meta::Attribute
863 - trigger on a ro-attribute is no longer an
864 error, as it's useful to trigger off of the
868 - added same 'add_package_symbol' fix as in
872 - does_role now handles non-Moose classes
874 - added tests for this
875 - added the 'add_method_modifier' function
876 (thanks to Takatoshi Kitano)
878 * Moose::Util::TypeConstraints
879 - subtypes of parameterizable types now are
880 themselves parameterizable types
882 * Moose::Meta::Method::Constructor
883 - fixed bug where trigger was not being
884 called by the inlined immutable
886 - added test for this (thanks to Caelum)
888 * Moose::Meta::Role::Application::ToInstance
889 - now uses the metaclass of the instance
890 (if possible) to create the anon-class
891 (thanks Jonathan Rockway)
893 * Moose::Cookbook::Recipe22
894 - added the meta-attribute trait recipe
898 - fixed hash-ordering test bug that was
899 causing occasional cpantester failures
900 - renamed the t/000_recipe/*.t tests to be
901 more descriptive (thanks to Sartak)
903 0.44 Sat. May 10, 2008
905 - made make_immutable warning cluck to
906 show where the error is (thanks mst)
909 - BUILDALL and DEMOLISHALL now call
910 ->body when looping through the
911 methods, to avoid the overloaded
913 - fixed issue where DEMOLISHALL was
914 eating the $@ values, and so not
915 working correctly, it still kind of
916 eats them, but so does vanilla perl
917 - added tests for this
919 * Moose::Cookbook::Recipe7
920 - added new recipe for immutable
921 functionality (thanks Dave Rolsky)
923 * Moose::Cookbook::Recipe9
924 - added new recipe for builder and
925 lazy_build (thanks Dave Rolsky)
927 * Moose::Cookbook::Recipe11
928 - added new recipe for method aliasing
929 and exclusion with Roles (thanks Dave Rolsky)
932 - fixed Win32 test failure (thanks spicyjack)
934 ~ removed Build.PL and Module::Build compat
935 since Module::Install has done that.
937 0.43 Wed. April, 30, 2008
939 drink more coffee before
940 doing release engineering
942 - whoops, forgot to do the smolder tests,
943 and we broke some of the custom meta-attr
944 modules. This fixes that.
946 0.42 Mon. April 28, 2008
947 - some bad tests slipped by, nothing else
948 changed in this release (cpantesters++)
950 - upped the Class::MOP dependency to 0.55
951 since we have tests which need the C3
954 0.41 Mon. April 28, 2008
955 ~~ numerous documentation updates ~~
957 - Changed all usage of die to Carp::croak for better
958 error reporting (initial patch by Tod Hagan)
961 - the make_immutable keyword is now deprecated, don't
962 use it in any new code and please fix your old code
963 as well. There will be 2 releases, and then it will
969 - refactored the way inner and super work to avoid
970 any method/@ISA cache penalty (nothingmuch)
973 - fixing &new_object to make sure trigger gets the
974 coerced value (spotted by Charles Alderman on the
976 - added test for this
978 * Moose::Meta::Method::Constructor
979 - immutable classes which had non-lazy attributes were calling
980 the default generating sub twice in the constructor. (bug
981 found by Jesse Luehrs, fixed by Dave Rolsky)
982 - added tests for this (Dave Rolsky)
983 - fix typo in initialize_body method (nothingmuch)
985 * Moose::Meta::Method::Destructor
986 - fix typo in initialize_body method (nothingmuch)
988 * Moose::Meta::Method::Overriden
989 Moose::Meta::Method::Augmented
990 - moved the logic for these into their own
991 classes (nothingmuch)
993 * Moose::Meta::Attribute
994 - inherited attributes may now be extended without
995 restriction on the type ('isa', 'does') (Sartak)
996 - added tests for this (Sartak)
997 - when an attribute property is malformed (such as lazy without
998 a default), give the name of the attribute in the error
1000 - added the &applied_traits and &has_applied_traits methods
1001 to allow introspection of traits
1002 - added tests for this
1003 - moved 'trait' and 'metaclass' argument handling to here from
1005 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1006 '+foo' syntax) (nothingmuch)
1007 - added tests for this (t0m)
1010 - localize $@ inside DEMOLISHALL to avoid it
1011 eating $@ (found by Ernesto)
1012 - added test for this (thanks to Ernesto)
1014 * Moose::Util::TypeConstraints
1015 - &find_type_constraint now DWIMs when given an
1016 type constraint object or name (nothingmuch)
1017 - &find_or_create_type_constraint superseded with a number of more
1019 - find_or_create_{isa,does}_type_constraint
1020 - find_or_parse_type_constraint
1022 * Moose::Meta::TypeConstraint
1023 Moose::Meta::TypeConstraint::Class
1024 Moose::Meta::TypeConstraint::Role
1025 Moose::Meta::TypeConstraint::Enum
1026 Moose::Meta::TypeConstraint::Union
1027 Moose::Meta::TypeConstraint::Parameterized
1028 - added the &equals method for comparing two type
1029 constraints (nothingmuch)
1030 - added tests for this (nothingmuch)
1032 * Moose::Meta::TypeConstraint
1033 - add the &parents method, which is just an alias to &parent.
1034 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1036 * Moose::Meta::TypeConstraint::Class
1037 - added the class attribute for introspection purposes
1039 - added tests for this
1041 * Moose::Meta::TypeConstraint::Enum
1042 Moose::Meta::TypeConstraint::Role
1043 - broke these out into their own classes (nothingmuch)
1045 * Moose::Cookbook::Recipe*
1046 - fixed references to test file locations in the POD
1047 and updated up some text for new Moose features
1051 - Added &resolve_metaclass_alias, a helper function for finding an actual
1052 class for a short name (e.g. in the traits list)
1054 0.40 Fri. March 14, 2008
1055 - I hate Pod::Coverage
1057 0.39 Fri. March 14, 2008
1059 - documenting the use of '+name' with attributes
1060 that come from recently composed roles. It makes
1061 sense, people are using it, and so why not just
1062 officially support it.
1063 - fixing the 'extends' keyword so that it will not
1064 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1067 - added the perl -Moose=+Class::Name feature to allow
1068 monkeypatching of classes in one liners
1071 - fixing the 'apply_all_roles' keyword so that it will not
1072 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1074 * Moose::Meta::Class
1075 - added ->create method which now supports roles (thanks to jrockway)
1076 - added tests for this
1077 - added ->create_anon_class which now supports roles and caching of
1078 the results (thanks to jrockway)
1079 - added tests for this
1080 - made ->does_role a little more forgiving when it is
1081 checking a Class::MOP era metaclasses.
1083 * Moose::Meta::Role::Application::ToInstance
1084 - it is now possible to pass extra params to be used when
1085 a role is applied to an the instance (rebless_params)
1086 - added tests for this
1088 * Moose::Util::TypeConstraints
1089 - class_type now accepts an optional second argument for a
1090 custom message. POD anotated accordingly (groditi)
1091 - added tests for this
1092 - it is now possible to make anon-enums by passing 'enum' an
1093 ARRAY ref instead of the $name => @values. Everything else
1095 - added tests for this
1098 - making test for using '+name' on attributes consumed
1099 from a role, it works and makes sense too.
1101 * Moose::Meta::Attribute
1102 - fix handles so that it doesn't return nothing
1103 when the method cannot be found, not sure why
1104 it ever did this originally, this means we now
1105 have slightly better support for AUTOLOADed
1107 - added more delegation tests
1108 - adding ->does method to this so as to better
1109 support traits and their introspection.
1110 - added tests for this
1113 - localizing the Data::Dumper configurations so
1114 that it does not pollute others (RT #33509)
1115 - made ->does a little more forgiving when it is
1116 passed Class::MOP era metaclasses.
1118 0.38 Fri. Feb. 15, 2008
1119 * Moose::Meta::Attribute
1120 - fixed initializer to correctly do
1121 type checking and coercion in the
1123 - added tests for this
1126 - fixed some finicky tests (thanks to konobi)
1128 0.37 Thurs. Feb. 14, 2008
1130 - fixed some details in Moose::init_meta
1131 and its superclass handling (thanks thepler)
1132 - added tests for this (thanks thepler)
1133 - 'has' now dies if you don't pass in name
1135 - added the 'make_immutable' keyword as a shortcut
1138 * Moose::Meta::Class
1139 Moose::Meta::Method::Constructor
1140 Moose::Meta::Attribute
1141 - making (init_arg => undef) work here too
1142 (thanks to nothingmuch)
1144 * Moose::Meta::Attribute
1145 Moose::Meta::Method::Constructor
1146 Moose::Meta::Method::Accessor
1147 - make lazy attributes respect attr initializers (rjbs)
1148 - added tests for this
1150 * Moose::Util::TypeConstraints
1151 Moose::Util::TypeConstraints::OptimizedConstraints
1152 Moose::Meta::TypeConstraints
1153 Moose::Meta::Attribute
1154 Moose::Meta::Method::Constructor
1155 Moose::Meta::Method::Accessor
1156 - making type errors use the
1157 assigned message (thanks to Sartak)
1158 - added tests for this
1160 * Moose::Meta::Method::Destructor
1161 - making sure DESTROY gets inlined properly
1162 with successive DEMOLISH calls (thanks to manito)
1164 * Moose::Meta::Attribute
1165 Moose::Meta::Method::Accessor
1166 - fixed handling of undef with type constraints
1168 - added tests for this
1171 - added &get_all_init_args and &get_all_attribute_values
1172 (thanks to Sartak and nothingmuch)
1174 0.36 Sat. Jan. 26, 2008
1176 Moose::Meta::Attribute
1177 - role type tests now support when roles are
1178 applied to non-Moose classes (found by ash)
1179 - added tests for this (thanks to ash)
1180 - couple extra tests to boost code coverage
1182 * Moose::Meta::Method::Constructor
1183 - improved fix for handling Class::MOP attributes
1184 - added test for this
1186 * Moose::Meta::Class
1187 - handled the add_attribute($attribute_meta_object)
1189 - added test for this
1191 0.35 Tues. Jan. 22, 2008
1192 * Moose::Meta::Method::Constructor
1193 - fix to make sure even Class::MOP attributes
1194 are handled correctly (Thanks to Dave Rolsky)
1195 - added test for this (also Dave Rolsky)
1197 * Moose::Meta::Class
1198 - improved error message on _apply_all_roles,
1199 you should now use Moose::Util::apply_all_roles
1200 and you shouldnt have been using a _ prefixed
1201 method in the first place ;)
1203 0.34 Mon. Jan. 21, 2008
1204 ~~~ more misc. doc. fixes ~~~
1205 ~~ updated copyright dates ~~
1207 Moose is now a postmodern object system :)
1208 - (see the POD for details)
1210 * <<Role System Refactoring>>
1211 - this release contains a major reworking and
1212 cleanup of the role system
1213 - 100% backwards compat.
1214 - Role application now restructured into seperate
1215 classes based on type of applicants
1216 - Role summation (combining of more than one role)
1217 is much cleaner and anon-classes are no longer
1218 used in this process
1219 - new Composite role metaclass
1220 - runtime application of roles to instances
1221 is now more efficient and re-uses generated
1222 classes when applicable
1224 * <<New Role composition features>>
1225 - methods can now be excluded from a given role
1227 - methods can now be aliased to another name (and
1228 still retain the original as well)
1230 * Moose::Util::TypeConstraints::OptimizedConstraints
1231 - added this module (see above)
1233 * Moose::Meta::Class
1234 - fixed the &_process_attribute method to be called
1235 by &add_attribute, so that the API is now correct
1237 * Moose::Meta::Method::Accessor
1238 - fixed bug when passing a list of values to
1239 an accessor would get (incorrectly) ignored.
1240 Thanks to Sartak for finding this ;)
1241 - added tests for this (Sartak again)
1243 * Moose::Meta::Method::Accessor
1244 Moose::Meta::Method::Constructor
1245 Moose::Meta::Attribute
1246 Moose::Meta::TypeConstraint
1247 Moose::Meta::TypeCoercion
1248 - lots of cleanup of such things as:
1250 - type constraint handling
1251 - error handling/messages
1252 (thanks to nothingmuch)
1254 * Moose::Meta::TypeConstraint::Parameterizable
1255 - added this module to support the refactor
1256 in Moose::Meta::TypeConstraint::Parameterized
1258 * Moose::Meta::TypeConstraint::Parameterized
1259 - refactored how these types are handled so they
1260 are more generic and not confined to ArrayRef
1264 - shortened some file names for better VMS support (RT #32381)
1266 0.33 Fri. Dec. 14, 2007
1267 !! Moose now loads 2 x faster !!
1268 !! with new Class::MOP 0.49 !!
1270 ++ new oose.pm module to make command line
1271 Moose-ness easier (see POD docs for more)
1273 * Moose::Meta::Class
1275 - several tweaks to take advantage of the
1276 new method map caching in Class::MOP
1278 * Moose::Meta::TypeConstraint::Parameterized
1279 - allow subtypes of ArrayRef and HashRef to
1280 be used as a container (sartak)
1281 - added tests for this
1282 - basic support for coercion to ArrayRef and
1283 HashRef for containers (sartak)
1284 - added tests for this
1286 * Moose::Meta::TypeCoercion
1287 - coercions will now create subtypes as needed
1288 so you can now add coercions to parameterized
1289 types without having to explictly define them
1290 - added tests for this
1292 * Moose::Meta::Method::Accessor
1293 - allow subclasses to decide whether we need
1294 to copy the value into a new variable (sartak)
1296 0.32 Tues. Dec. 4, 2007
1297 * Moose::Util::TypeConstraints
1298 - fixing how subtype aliases of unions work
1299 they should inherit the parent's coercion
1300 - added tests for this
1301 - you can now define multiple coercions on
1302 a single type at different times instead of
1303 having to do it all in one place
1304 - added tests for this
1306 * Moose::Meta::TypeConstraint
1307 - there is now a default constraint of sub { 1 }
1308 instead of Moose::Util::TypeConstraints setting
1311 * Moose::Meta::TypeCoercion
1312 * Moose::Meta::TypeCoercion::Union
1313 - added the &has_coercion_for_type and
1314 &add_type_coercions methods to support the
1315 new features above (although you cannot add
1316 more type coercions for Union types)
1318 0.31 Mon. Nov. 26, 2007
1319 * Moose::Meta::Attribute
1320 - made the +attr syntax handle extending types with
1321 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1322 now works if the original foo is an ArrayRef.
1323 - added tests for this.
1324 - delegation now works even if the attribute does not
1325 have a reader method using the get_read_method_ref
1326 method from Class::MOP::Attribute.
1327 - added tests for this
1328 - added docs for this
1330 * Moose::Util::TypeConstraints
1331 - passing no "additional attribute info" to
1332 &find_or_create_type_constraint will no longer
1333 attempt to create an __ANON__ type for you,
1334 instead it will just return undef.
1335 - added docs for this
1337 0.30 Fri. Nov. 23, 2007
1338 * Moose::Meta::Method::Constructor
1339 -builder related bug in inlined constructor. (groditi)
1341 * Moose::Meta::Method::Accessor
1342 - genereate unnecessary calls to predicates and refactor
1343 code generation for runtime speed (groditi)
1345 * Moose::Util::TypeConstraints
1346 - fix ClassName constraint to introspect symbol table (mst)
1347 - added more tests for this (mst)
1348 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1349 with work correctly.
1350 - added tests for this
1353 - adding the link to Recipie 11 (written by Sartak)
1354 - adding test for SYNOPSIS code
1357 - New tests for builder bug. Upon instantiation, if an
1358 attribute had a builder, no value and was not lazy the
1359 builder default was not getting run, oops. (groditi)
1361 0.29 Tues. Nov. 13, 2007
1362 * Moose::Meta::Attribute
1363 - Fix error message on missing builder method (groditi)
1365 * Moose::Meta::Method::Accessor
1366 - Fix error message on missing builder method (groditi)
1369 - Add test to check for the correct error message when
1370 builder method is missing (groditi)
1372 0.28 Tues. Nov. 13, 2007
1373 - 0.27 packaged incorrectly (groditi)
1375 0.27 Tues. Nov. 13, 2007
1376 * Moose::Meta::Attribute
1377 - Added support for the new builder option (groditi)
1378 - Added support for lazy_build option (groditi)
1379 - Changed slot initialization for predicate changes (groditi)
1381 * Moose::Meta::Method::Accessor
1382 - Added support for lazy_build option (groditi)
1383 - Fix inline methods to work with corrected predicate
1386 * Moose::Meta::Method::Constructor
1387 - Added support for lazy_build option (groditi)
1390 - tests for builder and lazy_build (groditi)
1392 * fixing some misc. bits in the docs that
1393 got mentioned on CPAN Forum & perlmonks
1396 - fixed how required methods are handled
1397 when they encounter overriden or modified
1398 methods from a class (thanks to confound).
1399 - added tests for this
1401 * Moose::Util::TypeConstraint
1402 - fixed the type notation parser so that
1403 the | always creates a union and so is
1404 no longer a valid type char (thanks to
1405 konobi, mugwump and #moose for working
1407 - added more tests for this
1409 0.26 Thurs. Sept. 27, 2007
1412 * Parameterized Types
1413 We now support parameterized collection types, such as:
1414 ArrayRef[Int] # array or integers
1415 HashRef[Object] # a hash with object values
1416 They can also be nested:
1417 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1418 And work with the type unions as well:
1419 ArrayRef[Int | Str] # array of integers of strings
1421 * Better Framework Extendability
1422 Moose.pm is now "extendable" such that it is now much
1423 easier to extend the framework and add your own keywords
1424 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1425 section of the Moose.pm docs.
1428 In an effort to begin documenting some of the various
1429 details of Moose as well as some common idioms, we have
1430 created Moose::Cookbook::Snacks as a place to find
1431 small (easily digestable) nuggets of Moose code.
1434 ~ Several doc updates/cleanup thanks to castaway ~
1436 - converted build system to use Module::Install instead of
1437 Module::Build (thanks to jrockway)
1440 - added all the meta classes to the immutable list and
1441 set it to inline the accessors
1442 - fix import to allow Sub::Exporter like { into => }
1443 and { into_level => } (perigrin)
1444 - exposed and documented init_meta() to allow better
1445 embedding and extending of Moose (perigrin)
1448 - complete re-organization of the test suite
1449 - added some new tests as well
1450 - finally re-enabled the Moose::POOP test since
1451 the new version of DBM::Deep now works again
1454 * Moose::Meta::Class
1455 - fixed very odd and very nasty recursion bug with
1457 - added tests for this (eilara)
1459 * Moose::Meta::Attribute
1460 Moose::Meta::Method::Constructor
1461 Moose::Meta::Method::Accessor
1462 - fixed issue with overload::Overloaded getting called
1463 on non-blessed items. (RT #29269)
1464 - added tests for this
1466 * Moose::Meta::Method::Accessor
1467 - fixed issue with generated accessor code making
1468 assumptions about hash based classes (thanks to dexter)
1470 * Moose::Coookbook::Snacks
1471 - these are bits of documentation, not quite as big as
1472 Recipes but which have no clear place in the module docs.
1473 So they are Snacks! (horray for castaway++)
1475 * Moose::Cookbook::Recipe4
1476 - updated it to use the new ArrayRef[MyType] construct
1477 - updated the accompanying test as well
1479 +++ Major Refactor of the Type Constraint system +++
1480 +++ with new features added as well +++
1482 * Moose::Util::TypeConstraint
1483 - no longer uses package variable to keep track of
1484 the type constraints, now uses the an instance of
1485 Moose::Meta::TypeConstraint::Registry to do it
1486 - added more sophisticated type notation parsing
1488 - added tests for this
1490 * Moose::Meta::TypeConstraint
1491 - some minor adjustments to make subclassing easier
1492 - added the package_defined_in attribute so that we
1493 can track where the type constraints are created
1495 * Moose::Meta::TypeConstraint::Union
1496 - this is now been refactored to be a subclass of
1497 Moose::Meta::TypeConstraint
1499 * Moose::Meta::TypeCoercion::Union
1500 - this has been added to service the newly refactored
1501 Moose::Meta::TypeConstraint::Union and is itself
1502 a subclass of Moose::Meta::TypeCoercion
1504 * Moose::Meta::TypeConstraint::Parameterized
1505 - added this module (taken from MooseX::AttributeHelpers)
1506 to help construct nested collection types
1507 - added tests for this
1509 * Moose::Meta::TypeConstraint::Registry
1510 - added this class to keep track of type constraints
1512 0.25 Mon. Aug. 13, 2007
1514 - Documentation update to reference Moose::Util::TypeConstraints
1515 under 'isa' in 'has' for how to define a new type
1516 (thanks to shlomif).
1518 * Moose::Meta::Attribute
1519 - required attributes now will no longer accept undef
1520 from the constructor, even if there is a default and lazy
1521 - added tests for this
1522 - default subroutines must return a value which passes the
1524 - added tests for this
1526 * Moose::Meta::Attribute
1527 * Moose::Meta::Method::Constructor
1528 * Moose::Meta::Method::Accessor
1529 - type-constraint tests now handle overloaded objects correctly
1530 in the error message
1531 - added tests for this (thanks to EvanCarroll)
1533 * Moose::Meta::TypeConstraint::Union
1534 - added (has_)hand_optimized_constraint to this class so that
1535 it behaves as the regular Moose::Meta::TypeConstraint does.
1538 - large refactoring of this code
1539 - added several more tests
1540 - tests for subtle conflict resolition issues
1541 added, but not currently running
1544 * Moose::Cookbook::Recipe7
1545 - added new recipe for augment/inner functionality
1547 - added test for this
1550 - a formal definition of roles (still in progress)
1553 - utilities for easier working with Moose classes
1554 - added tests for these
1557 - This contains Moose specific test functions
1558 - added tests for these
1560 0.24 Tues. July 3, 2007
1561 ~ Some doc updates/cleanup ~
1563 * Moose::Meta::Attribute
1564 - added support for roles to be given as parameters
1565 to the 'handles' option.
1566 - added tests and docs for this
1567 - the has '+foo' attribute form now accepts changes to
1568 the lazy option, and the addition of a handles option
1569 (but not changing the handles option)
1570 - added tests and docs for this
1573 - required methods are now fetched using find_method_by_name
1574 so that required methods can come from superclasses
1575 - adjusted tests for this
1577 0.23 Mon. June 18, 2007
1578 * Moose::Meta::Method::Constructor
1579 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1580 * Moose::Meta::Class
1581 - Modify make_immutable to work with the new Class::MOP immutable
1582 mechanism + POD + very basic test (groditi)
1583 * Moose::Meta::Attribute
1584 - Fix handles to use goto() so that caller() comes out properly on
1585 the other side (perigrin)
1587 0.22 Thurs. May 31, 2007
1588 * Moose::Util::TypeConstraints
1589 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1590 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1591 prototypes for functions
1592 - added the ClassName type constraint, this checks for strings
1593 which will respond true to ->isa(UNIVERSAL).
1594 - added tests and docs for this
1595 - subtyping just in name now works correctly by making the
1596 default for where be { 1 }
1597 - added test for this
1599 * Moose::Meta::Method::Accessor
1600 - coerce and lazy now work together correctly, thanks to
1601 merlyn for finding this bug
1602 - tests added for this
1603 - fix reader presedence bug in Moose::Meta::Attribute + tests
1606 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1607 a HASH-ref and missed. This produces better error messages then
1608 having it die cause undef is not a HASH.
1609 - added tests for this
1611 0.21 Thursday, May 2nd, 2007
1613 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1614 - modified unimport to remove super and inner along with the rest
1615 - altered unimport tests to handle this
1618 - altered super export to populate SUPER_SLOT
1620 * Moose::Meta::Class
1621 - altered augment and override modifier application to use *_SLOT
1622 - modified tests for these to unimport one test class each to test
1625 - fixed issue where custom attribute metaclasses
1626 where not handled correctly in roles
1627 - added tests for this
1629 * Moose::Meta::Class
1630 - fixed issue where extending metaclasses with
1631 roles would blow up. Thanks to Aankhen`` for
1632 finding this insidious error, and it's solution.
1634 ~~ lots of spelling and grammer fixes in the docs,
1635 many many thanks to rlb3 and Aankhen for these :)
1637 0.20 Friday, April 6th, 2007
1638 >> I messed up the SKIP logic in one test
1639 so this release is just to fix that.
1642 - 'has' now also accepts an ARRAY ref
1643 to create multiple attrs (see docs)
1644 (thanks to konobi for this)
1645 - added tests and docs
1647 0.19 Thurs. April 5th, 2007
1648 ~~ More documentation updates ~~
1650 * Moose::Util::TypeConstraints
1651 - 'type' now supports messages as well
1652 thanks to phaylon for finding this
1653 - added tests for this
1654 - added &list_all_type_constraints and
1655 &list_all_builtin_type_constraints
1656 functions to facilitate introspection.
1658 * Moose::Meta::Attribute
1659 - fixed regexp 'handles' declarations
1660 to build the list of delegated methods
1661 correctly (and not override important
1662 things like &new) thanks to ashleyb
1664 - added tests and docs for this
1665 - added the 'documentation' attributes
1666 so that you can actually document your
1667 attributes and inspect them through the
1669 - added tests and docs for this
1671 * Moose::Meta::Class
1672 - when loading custom attribute metaclasses
1673 it will first look in for the class in the
1674 Moose::Meta::Attribute::Custom::$name, and
1675 then default to just loading $name.
1676 - added tests and docs for this
1678 * Moose::Meta::TypeConstraint
1679 - type constraints now stringify to their names.
1680 - added test for this
1683 - added tests to assure we work with Module::Refresh
1684 - added stricter test skip logic in the Moose POOP
1685 test, ask Rob Kinyon why.
1686 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1688 0.18 Sat. March 10, 2007
1689 ~~ Many, many documentation updates ~~
1692 - We now use Class::MOP::load_class to
1694 - added tests to show types and subtypes
1695 working with Declare::Constraints::Simple
1696 and Test::Deep as constraint engines.
1699 !! You must have Class::MOP 0.37_001 !!
1700 !! for this developer release to work !!
1702 This release was primarily adding the immutable
1703 feature to Moose. An immutable class is one which
1704 you promise not to alter. When you set the class
1705 as immutable it will perform various bits of
1706 memoization and inline certain part of the code
1707 (constructors, destructors and accessors). This
1708 minimizes (and in some cases totally eliminates)
1709 one of Moose's biggest performance hits. This
1710 feature is not on by default, and is 100% optional.
1711 It has several configurable bits as well, so you
1712 can pick and choose to your specific needs.
1714 The changes involved in this were fairly wide and
1715 highly specific, but 100% backwards compatible, so
1716 I am not going to enumerate them here. If you are
1717 truely interested in what was changed, please do
1720 0.17 Tues. Nov. 14, 2006
1721 * Moose::Meta::Method::Accessor
1722 - bugfix for read-only accessors which
1723 are have a type constraint and lazy.
1724 Thanks to chansen for finding it.
1726 0.16 Tues. Nov. 14, 2006
1728 There are some speed improvements in this release,
1729 but they are only the begining, so stay tuned.
1732 - BUILDALL and DEMOLISHALL no longer get
1733 called unless they actually need to be.
1734 This gave us a signifigant speed boost
1735 for the cases when there is no BUILD or
1736 DEMOLISH method present.
1738 * Moose::Util::TypeConstraints
1739 * Moose::Meta::TypeConstraint
1740 - added an 'optimize_as' option to the
1741 type constraint, which allows for a
1742 hand optimized version of the type
1743 constraint to be used when possible.
1744 - Any internally created type constraints
1745 now provide an optimized version as well.
1747 0.15 Sun. Nov. 5, 2006
1749 This version of Moose *must* have Class::MOP 0.36 in order
1750 to work correctly. A number of small internal tweaks have
1751 been made in order to be compatible with that release.
1753 * Moose::Util::TypeConstraints
1754 - added &unimport so that you can clean out
1755 your class namespace of these exported
1758 * Moose::Meta::Class
1759 - fixed minor issue which occasionally
1760 comes up during global destruction
1762 - moved Moose::Meta::Method::Overriden into
1766 - moved Moose::Meta::Role::Method into
1769 * Moose::Meta::Attribute
1770 - changed how we do type checks so that
1771 we reduce the overall cost, but still
1774 - moved accessor generation methods to
1775 Moose::Meta::Method::Accessor to
1776 conform to the API changes from
1779 * Moose::Meta::TypeConstraint
1780 - changed how constraints are compiled
1781 so that we do less recursion and more
1782 iteration. This makes the type check
1784 - moved Moose::Meta::TypeConstraint::Union
1787 * Moose::Meta::Method::Accessor
1788 - created this from methods formerly found in
1789 Moose::Meta::Attribute
1791 * Moose::Meta::Role::Method
1792 - moved this from Moose::Meta::Role
1794 * Moose::Meta::Method::Overriden
1795 - moved this from Moose::Meta::Class
1797 * Moose::Meta::TypeConstraint::Union
1798 - moved this from Moose::Meta::TypeConstraint
1800 0.14 Mon. Oct. 9, 2006
1802 * Moose::Meta::Attribute
1803 - fixed lazy attributes which were not getting
1804 checked with the type constraint (thanks ashley)
1805 - added tests for this
1806 - removed the over-enthusiastic DWIMery of the
1807 automatic ArrayRef and HashRef defaults, it
1808 broke predicates in an ugly way.
1809 - removed tests for this
1811 0.13 Sat. Sept. 30, 2006
1813 This version of Moose *must* have Class::MOP 0.35 in order
1814 to work correctly. A number of small internal tweaks have
1815 been made in order to be compatible with that release.
1818 - Removed the use of UNIVERSAL::require to be a better
1819 symbol table citizen and remove a dependency
1820 (thanks Adam Kennedy)
1822 **~~ removed experimental & undocumented feature ~~**
1823 - commented out the 'method' and 'self' keywords, see the
1824 comments for more info.
1827 - added a FAQ and WTF files to document frequently
1828 asked questions and common problems
1830 * Moose::Util::TypeConstraints
1831 - added GlobRef and FileHandle type constraint
1832 - added tests for this
1834 * Moose::Meta::Attribute
1835 - if your attribute 'isa' ArrayRef of HashRef, and you have
1836 not explicitly set a default, then make the default DWIM.
1837 This will also work for subtypes of ArrayRef and HashRef
1839 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1840 - new test added for this (thanks to ashley)
1843 - added basic support for runtime role composition
1844 but this is still *highly experimental*, so feedback
1845 is much appreciated :)
1846 - added tests for this
1848 * Moose::Meta::TypeConstraint
1849 - the type constraint now handles the coercion process
1850 through delegation, this is to support the coercion
1853 * Moose::Meta::TypeConstraint::Union
1854 - it is now possible for coercions to be performed
1856 - added tests for this (thanks to konobi)
1858 * Moose::Meta::TypeCoercion
1859 - properly capturing error when type constraint
1863 - Scalar::Util 1.18 is bad on Win32, so temporarily
1864 only require version 1.17 for Win32 and cygwin.
1865 (thanks Adam Kennedy)
1867 0.12 Sat. Sept. 1, 2006
1869 - Recipe5 (subtypes & coercion) has been written
1872 - fixed "bad meta" error message to be more descriptive
1873 - fixed &unimport to not remove the &inner and &super
1874 keywords because we need to localize them.
1875 - fixed number of spelling/grammer issues, thanks Theory :)
1877 **~~ experimental & undocumented feature ~~**
1878 - added the method and self keywords, they are basically
1879 just sugar, and they may not stay around.
1882 - added &dump method to easily Data::Dumper
1885 * Moose::Meta::TypeConstraint
1886 - added the &is_a_type_of method to check both the current
1887 and the subtype of a method (similar to &isa with classes)
1890 - this is now a subclass of Class::MOP::Module, and no longer
1891 creates the _role_meta ugliness of before.
1892 - fixed tests to reflect this change
1894 0.11 Wed. July 12, 2006
1896 - added an &unimport method to remove all the keywords
1897 that Moose will import, simply add 'no Moose' to the
1898 bottom of your class file.
1901 - fixed some test failures caused by a forgotten test
1904 0.10 Thurs. July 6, 2006
1906 - improved error message when loading modules so
1907 it is less confusing when you load a role.
1908 - added &calculate_all_roles method to
1909 Moose::Meta::Class and Moose::Meta::Role
1912 This module has been tested against Class::MOP 0.30
1913 but it does not yet utilize the optimizations
1914 it makes available. Stay tuned for that ;)
1916 0.09_03 Fri. June 23, 2006
1917 ++ DEVELOPER RELEASE ++
1919 - 'use strict' and 'use warnings' are no longer
1920 needed in Moose classes, Moose itself will
1921 turn them on for you.
1922 - added tests for this
1923 - moved code from exported subs to private methods
1924 in Moose::Meta::Class
1927 - as with Moose, strict and warnings are
1928 automatically turned on for you.
1929 - added tests for this
1932 - now handles an edge case for override errors
1933 - added tests for this
1934 - added some more edge case tests
1936 0.09_02 Tues. May 16, 2006
1937 ++ DEVELOPER RELEASE ++
1939 - added prototypes to the exported subs
1943 - added prototypes to the exported subs
1946 * Moose::Util::TypeConstraints
1947 - cleaned up prototypes for the subs
1950 0.09_01 Fri. May 12, 2006
1951 ++ DEVELOPER RELEASE ++
1952 - This release works in combination with
1953 Class::MOP 0.29_01, it is a developer
1954 release because it uses the a new
1955 instance sub-protocol and a fairly
1956 complete Role implementation. It has
1957 not yet been optimized, so it slower
1958 the the previous CPAN version. This
1959 release also lacks good updated docs,
1960 the official release will have updated docs.
1963 - refactored the keyword exports
1964 - 'with' now checks Role validaity and
1965 accepts more than one Role at a time
1966 - 'extends' makes metaclass adjustments as
1967 needed to ensure metaclass compatibility
1970 - refactored the keyword exports
1971 - 'with' now checks Role validaity and
1972 accepts more than one Role at a time
1974 * Moose::Util::TypeConstraints
1975 - added the 'enum' keyword for simple
1976 string enumerations which can be used as
1978 - see example of usage in t/202_example.t
1981 - more careful checking of params to new()
1984 - much work done on the role composition
1985 - many new tests for conflict detection
1986 and composition edge cases
1987 - not enough documentation, I suggest
1988 looking at the tests
1990 * Moose::Meta::Instance
1991 - added new Instance metaclass to support
1992 the new Class::MOP instance protocol
1994 * Moose::Meta::Class
1995 - some small changes to support the new
1997 - some small additions to support Roles
1999 * Moose::Meta::Attribute
2000 - some improvements to the accessor generation code
2002 - some small changes to support the new
2004 - (still somewhat) experimental delegation support
2005 with the 'handles' option
2006 - added several tests for this
2007 - no docs for this yet
2009 0.05 Thurs. April 27, 2006
2011 - keywords are now exported with Sub::Exporter
2012 thanks to chansen for this commit
2013 - has keyword now takes a 'metaclass' option
2014 to support custom attribute meta-classes
2015 on a per-attribute basis
2016 - added tests for this
2017 - the 'has' keyword not accepts inherited slot
2018 specifications (has '+foo'). This is still an
2019 experimental feature and probably not finished
2020 see t/038_attribute_inherited_slot_specs.t for
2021 more details, or ask about it on #moose
2022 - added tests for this
2025 - keywords are now exported with Sub::Exporter
2027 * Moose::Utils::TypeConstraints
2028 - reorganized the type constraint hierarchy, thanks
2029 to nothingmuch and chansen for his help and advice
2031 - added some tests for this
2032 - keywords are now exported with Sub::Exporter
2033 thanks to chansen for this commit
2035 * Moose::Meta::Class
2036 - due to changes in Class::MOP, we had to change
2037 construct_instance (for the better)
2039 * Moose::Meta::Attribute
2040 - due to changes in Class::MOP, we had to add the
2041 initialize_instance_slot method (it's a good thing)
2043 * Moose::Meta::TypeConstraint
2044 - added type constraint unions
2045 - added tests for this
2046 - added the is_subtype_of predicate method
2047 - added tests for this
2049 0.04 Sun. April 16th, 2006
2051 - Roles can now consume other roles
2052 - added tests for this
2053 - Roles can specify required methods now with
2054 the requires() keyword
2055 - added tests for this
2058 - ripped out much of it's guts ,.. much cleaner now
2059 - added required methods and correct handling of
2060 them in apply() for both classes and roles
2061 - added tests for this
2062 - no longer adds a does() method to consuming classes
2063 it relys on the one in Moose::Object
2064 - added roles attribute and some methods to support
2065 roles consuming roles
2067 * Moose::Meta::Attribute
2068 - added support for triggers on attributes
2069 - added tests for this
2070 - added support for does option on an attribute
2071 - added tests for this
2073 * Moose::Meta::Class
2074 - added support for attribute triggers in the
2076 - added tests for this
2079 - Moose no longer creates a subtype for your class
2080 if a subtype of the same name already exists, this
2081 should DWIM in 99.9999% of all cases
2083 * Moose::Util::TypeConstraints
2084 - fixed bug where incorrect subtype conflicts were
2086 - added test for this
2089 - this class can now be extended with 'use base' if
2090 you need it, it properly loads the metaclass class now
2091 - added test for this
2093 0.03_02 Wed. April 12, 2006
2095 - you must now explictly use Moose::Util::TypeConstraints
2096 it no longer gets exported for you automatically
2099 - new() now accepts hash-refs as well as key/value lists
2100 - added does() method to check for Roles
2101 - added tests for this
2103 * Moose::Meta::Class
2104 - added roles attribute along with the add_role() and
2106 - added tests for this
2109 - now adds a does() method to consuming classes
2110 which tests the class's hierarchy for roles
2111 - added tests for this
2113 0.03_01 Mon. April 10, 2006
2115 - added new Role recipe (no content yet, only code)
2118 - added 'with' keyword for Role support
2119 - added test and docs for this
2120 - fixed subtype quoting bug
2121 - added test for this
2125 - added test and docs
2127 * Moose::Util::TypeConstraints
2128 - added the message keyword to add custom
2129 error messages to type constraints
2132 - the meta role to support Moose::Role
2133 - added tests and docs
2135 * Moose::Meta::Class
2136 - moved a number of things from Moose.pm
2137 to here, they should have been here
2140 * Moose::Meta::Attribute
2141 - moved the attribute option macros here
2142 instead of putting them in Moose.pm
2144 * Moose::Meta::TypeConstraint
2145 - added the message attributes and the
2147 - added tests and docs for this
2149 0.03 Thurs. March 30, 2006
2151 - added the Moose::Cookbook with 5 recipes,
2152 describing all the stuff Moose can do.
2155 - fixed an issue with &extends super class loading
2156 it now captures errors and deals with inline
2157 packages correctly (bug found by mst, solution
2159 - added super/override & inner/augment features
2160 - added tests and docs for these
2163 - BUILDALL now takes a reference of the %params
2164 that are passed to &new, and passes that to
2167 * Moose::Util::TypeConstraints
2168 - Type constraints now survive runtime reloading
2169 - added test for this
2171 * Moose::Meta::Class
2172 - fixed the way attribute defaults are handled
2173 during instance construction (bug found by chansen)
2175 * Moose::Meta::Attribute
2176 - read-only attributes now actually enforce their
2177 read-only-ness (this corrected in Class::MOP as
2180 0.02 Tues. March 21, 2006
2182 - many more tests, fixing some bugs and
2184 - &extends now loads the base module with
2186 - added UNIVERSAL::require to the
2189 - each new Moose class will also create
2190 and register a subtype of Object which
2191 correspond to the new Moose class.
2192 - the 'isa' option in &has now only
2193 accepts strings, and will DWIM in
2196 * Moose::Util::TypeConstraints
2197 - added type coercion features
2198 - added tests for this
2199 - added support for this in attributes
2200 and instance construction
2202 - type construction no longer creates a
2203 function, it registers the type instead.
2204 - added several functions to get the
2208 - BUILDALL and DEMOLISHALL were broken
2209 because of a mis-named hash key, Whoops :)
2211 * Moose::Meta::Attribute
2212 - adding support for coercion in the
2213 autogenerated accessors
2215 * Moose::Meta::Class
2216 - adding support for coercion in the
2217 instance construction
2219 * Moose::Meta::TypeConstraint
2220 * Moose::Meta::TypeCoercion
2221 - type constraints and coercions are now
2222 full fledges meta-objects
2224 0.01 Wed. March 15, 2006
2225 - Moooooooooooooooooose!!!