1 Revision history for Perl extension Moose
4 * Moose::Util::TypeConstraints
5 - Added the RoleName type (stevan)
6 - added tests for this (stevan)
8 * Moose::Cookbook::Basics::Recipe3
9 - Updated the before qw[left right] sub to be a little more
10 defensive about what it accepts (stevan)
11 - added more tests to t/000_recipies/basics/003_binary_tree.t
15 - We now always call DEMOLISHALL, even if a class does not
16 define DEMOLISH. This makes sure that method modifiers on
17 DEMOLISHALL work as expected. (doy)
18 - added tests for this (EvanCarroll)
20 * Moose::Util::MetaRole
21 - Accept roles for the wrapped_method_metaclass (rafl)
22 - added tests for this (rafl)
25 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
26 they require 0.11. (Dave Rolsky)
28 * Moose::Meta::Attribute
29 - We no longer pass the meta-attribute object as a final
30 argument to triggers. This actually changed for inlined code a
31 while back, but the non-inlined version and the docs were
34 0.69 Thu, February 12, 2009
36 - Make some keyword errors use throw_error instead of croak
37 since Moose::Exporter wraps keywords now (Sartak)
40 - Revised every recipe for style and clarity. Also moved some
41 documentation out of cookbook recipes and into Moose::Manual
42 pages. This work was funded as part of the Moose docs grant
43 from TPF. (Dave Rolsky)
45 * Moose::Meta::Method::Delegation
46 - If the attribute doing the delegation was not populated, the
47 error message did not specify the attribute name
50 0.68 Wed, February 4, 2009
52 - Many spelling, typo, and formatting fixes by daxim.
54 * Moose::Manual::Attributes
55 - The NAME section in the POD used "Attribute" so search.cpan
56 didn't resolve links from other documents properly.
58 * Moose::Meta::Method::Overriden
59 - Now properly spelled as Overridden. Thanks to daxim for
62 0.67 Tue, February 3, 2009
64 - Lots of little typo fixes and a few clarifications. Several
65 pages didn't have proper titles, and so weren't actually
66 visible on search.cpan.org. Thanks to hanekomu for a variety
67 of fixes and formatting improvements.
69 0.66 Tue, February 3, 2009
71 - This is a brand new, extensive manual for Moose. This aims to
72 provide a complete introduction to all of Moose's
73 features. This work was funded as part of the Moose docs grant
74 from TPF. (Dave Rolsky)
76 * Moose::Meta::Attribute
77 - Added a delegation_metaclass method to replace a hard-coded
78 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
80 * Moose::Util::TypeConstraints
81 - If you created a subtype and passed a parent that Moose didn't
82 know about, it simply ignored the parent. Now it automatically
83 creates the parent as a class type. This may not be what you
84 want, but is less broken than before. (Dave Rolsky)
86 * Moose::Util::TypeConstraints
87 - This module tried throw errors by calling Moose->throw_error,
88 but it did not ensure that Moose was loaded first. This could
89 cause very unhelpful errors when it tried to throw an error
90 before Moose was loaded. (Dave Rolsky)
92 * Moose::Util::TypeConstraints
93 - You could declare a name with subtype such as "Foo!Bar" that
94 would be allowed, but if you used it in a parameterized type
95 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
96 vetting on names created via the sugar functions, so that they
97 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
99 0.65 Thu, January 22, 2008
100 * Moose and Moose::Meta::Method::Overridden
101 - If an overridden method called super(), and then the
102 superclass's method (not overridden) _also_ called super(),
103 Moose went into an endless recursion loop. Test provided by
104 Chris Prather. (Dave Rolsky)
106 * Moose::Meta::TypeConstraint
107 - All methods are now documented. (gphat)
109 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
110 - Fixed some bogus failures that occurred because we tried to
111 validate filesystem paths in a very ad-hoc and
112 not-quite-correct way. (Dave Rolsky)
114 * Moose::Util::TypeConstraints
115 - Added maybe_type to exports. See docs for details. (rjbs)
118 - Added Moose::Util::TypeConstraints to the SEE ALSO
122 - Methods created via an attribute can now fulfill a "requires"
123 declaration for a role. (nothingmuch)
125 * Moose::Meta::Method::*
126 - Stack traces from inlined code will now report its line and
127 file as being in your class, as opposed to in Moose
130 0.64 Wed, December 31, 2008
131 * Moose::Meta::Method::Accessor
132 - Always inline predicate and clearer methods (Sartak)
134 * Moose::Meta::Attribute
135 - Support for parameterized traits (Sartak)
136 - verify_against_type_constraint method to avoid duplication
137 and enhance extensibility (Sartak)
140 - Tests (but no support yet) for parameterized traits (Sartak)
143 - Require Class::MOP 0.75+, which has the side effect of making
144 sure we work on Win32. (Dave Rolsky)
146 0.63 Mon, December 8, 2008
148 - Some small grammar tweaks and bug fixes in non-Moose example
151 0.62_02 Fri, December 5, 2008
152 * Moose::Meta::Role::Application::ToClass
153 - When a class does not provide all of a role's required
154 methods, the error thrown now mentions all of the missing
155 methods, as opposed to just the first one found. Requested by
156 Curtis Poe (RT #41119). (Dave Rolsky)
158 * Moose::Meta::Method::Constructor
159 - Moose will no longer inline a constructor for your class
160 unless it inherits its constructor from Moose::Object, and
161 will warn when it doesn't inline. If you want to force
162 inlining anyway, pass "replace_constructor => 1" to
163 make_immutable. Addresses RT #40968, reported by Jon
164 Swartz. (Dave Rolsky)
165 - The quoting of default values could be broken if the default
166 contained a single quote ('). Now we use quotemeta to escape
167 anything potentially dangerous in the defaults. (Dave Rolsky)
169 0.62_01 Wed, December 3, 2008
171 - use the method->execute API for BUILDALL
172 and DEMOLISHALL (Sartak)
174 * Moose::Util::TypeConstraints
175 - We now make all the type constraint meta classes immutable
176 before creating the default types provided by Moose. This
177 should make loading Moose a little faster. (Dave Rolsky)
179 0.62 Wed November 26, 2008
180 * Moose::Meta::Role::Application::ToClass
181 Moose::Meta::Role::Application::ToRole
182 - fixed issues where excluding and aliasing the
183 same methods for a single role did not work
184 right (worked just fine with multiple
186 - added test for this (stevan)
188 * Moose::Meta::Role::Application::RoleSummation
189 - fixed the error message when trying to compose
190 a role with a role it excludes (Sartak)
193 - Catch another case where recursion caused the value
194 of $CALLER to be stamped on (t0m)
195 - added test for this (t0m)
198 - Remove the make_immutable keyword, which has been
199 deprecated since April. It breaks metaclasses that
200 use Moose without no Moose (Sartak)
202 * Moose::Meta::Attribute
203 - Removing an attribute from a class now also removes delegation
204 (handles) methods installed for that attribute (t0m)
205 - added test for this (t0m)
207 * Moose::Meta::Method::Constructor
208 - An attribute with a default that looked like a number (but was
209 really a string) would accidentally be treated as a number
210 when the constructor was made immutable (perigrin)
211 - added test for this (perigrin)
214 - create method for constructing a role
216 - added test for this (Sartak)
217 - anonymous roles! (Sartak)
218 - added test for this (Sartak)
221 - more consistent error messages (Sartak)
223 * Moose::Cookbook::Roles::Recipe1
224 - attempt to explain why a role that just requires
225 methods is useful (Sartak)
227 0.61 Fri November 7, 2008
228 * Moose::Meta::Attribute
229 - When passing a role to handles, it will be loaded if necessary
233 - Method objects returned by get_method (and other methods)
234 Could end up being returned without an associated_metaclass
235 attribute. Removing get_method_map, which is provided by
236 Class::MOP::Class, fixed this. The Moose version did nothing
237 different from its parent except introduce a bug. (Dave Rolsky)
238 - added tests for this (jdv79)
241 - Added a $VERSION to all .pm files which didn't have one. Fixes
242 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
244 * Moose::Cookbook::Basics::Recipe4
245 * Moose::Cookbook::Basics::Recipe6
246 - These files had spaces on the first line of the SYNOPSIS, as
247 opposed to a totally empty line. According to RT #40432, this
248 confuses POD parsers. (Dave Rolsky)
250 0.60 Fri October 24, 2008
252 - Passing "-traits" when loading Moose caused the Moose.pm
253 exports to be broken. Reported by t0m. (Dave Rolsky)
254 - Tests for this bug. (t0m)
257 - Change resolve_metaclass alias to use the new
258 load_first_existing_class function. This makes it a lot
259 simpler, and also around 5 times faster. (t0m)
260 - Add caching to resolve_metaclass_alias, which gives an order
261 of magnitude speedup to things which repeatedly call the
262 Moose::Meta::Attribute->does method, notably MooseX::Storage
265 * Moose::Util::TypeConstraint
266 - Put back the changes for parameterized constraints that
267 shouldn't have been removed in 0.59. We still cannot parse
268 them, but MooseX modules can create them in some other
269 way. See the 0.58 changes for more details. (jnapiorkowski)
270 - Changed the way subtypes are created so that the job is
271 delegated to a type constraint parent. This clears up some
272 hardcoded checking and should allow correct subtypes of
273 Moose::Meta::Type::Constraint. Don't rely on this new API too
274 much (create_child_type) because it may go away in the
275 future. (jnapiorkowski)
277 * Moose::Meta::TypeConstraint::Union
278 - Type constraint names are sorted as strings, not numbers.
281 * Moose::Meta::TypeConstraint::Parameterizable
282 - New parameterize method. This can be used as a factory method
283 to make a new type constraint with a given parameterized
284 type. (jnapiorkowski)
285 - added tests (jnapiorkowski)
287 0.59 Tue October 14, 2008
289 - Add abridged documentation for builder/default/initializer/
290 predicate, and link to more details sections in
291 Class::MOP::Attribute. (t0m)
293 * Moose::Util::TypeConstraints
294 - removed prototypes from all but the &-based stuff (mst)
296 * Moose::Util::TypeConstraints
297 - Creating a anonymous subtype with both a constraint and a
298 message failed with a very unhelpful error, but should just
299 work. Reported by t0m. (Dave Rolsky)
302 - Some tests that used Test::Warn if it was available failed
303 with older versions of Test::Warn. Reported by Fayland. (Dave
305 - Test firing behavior of triggers in relation to builder/default/
307 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
308 kinds of supported type. (t0m)
311 - In create(), do not pass "roles" option to the superclass
312 - added related test that creates an anon metaclass with
315 * Moose::Meta::TypeConstraint::Class
316 * Moose::Meta::TypeConstraint::Role
317 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
318 other types (as per change in 0.55_02). (t0m)
320 * Moose::Meta::TypeConstraint::Registry
321 - Fix warning when dealing with unknown type names (t0m)
323 * Moose::Util::TypeConstraints
324 - Reverted changes from 0.58 related to handle parameterized
325 types. This caused random failures on BSD and Win32 systems,
326 apparently related to the regex engine. This means that Moose
327 can no longer parse structured type constraints like
328 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
329 supported in a slightly different way via MooseX::Types some
330 time in the future. (Dave Rolsky)
332 0.58 Sat September 20, 2008
333 !! This release has an incompatible change regarding !!
334 !! how roles add methods to a class !!
336 * Roles and role application
337 ! Roles now add methods by calling add_method, not
338 alias_method. They make sure to always provide a method
339 object, which will be cloned internally. This means that it is
340 now possible to track the source of a method provided by a
341 role, and even follow its history through intermediate roles.
343 This means that methods added by a role now show up when
344 looking at a class's method list/map. (Dave Rolsky)
347 - From this release on, we'll try to maintain a list of
348 conflicting modules, and warn you if you have one
349 installed. For example, this release conflicts with ...
350 - MooseX::Singleton <= 0.11
351 - MooseX::Params::Validate <= 0.05
354 In general, we try to not break backwards compatibility for
355 most Moose users, but MooseX modules and other code which
356 extends Moose's metaclasses is often affected by very small
357 changes in the Moose internals.
359 * Moose::Meta::Method::Delegation
360 * Moose::Meta::Attribute
361 - Delegation methods now have their own method class. (Dave
364 * Moose::Meta::TypeConstraint::Parameterizable
365 - Added a new method 'parameterize' which is basically a factory
366 for the containing constraint. This makes it easier to create
367 new types of parameterized constraints. (jnapiorkowski)
369 * Moose::Meta::TypeConstraint::Union
370 - Changed the way Union types canonicalize their names to follow
371 the normalized TC naming rules, which means we strip all
372 whitespace. (jnapiorkowski)
374 * Moose::Util::TypeConstraints
375 - Parameter and Union args are now sorted, this makes Int|Str
376 the same constraint as Str|Int. (jnapiorkowski)
377 - Changes to the way Union types are parsed to more correctly
378 stringify their names. (jnapiorkowski)
379 - When creating a parameterized type, we now use the new
380 parameterize method. (jnapiorkowski)
381 - Incoming type constraint strings are now normalized to remove
382 all whitespace differences. (jnapiorkowski)
383 - Changed the way we parse type constraint strings so that we now
384 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
385 constraints. This lays the foundation for more flexible type
386 constraint implementations.
388 * Tests and docs for all the above. (jnapiorkowski)
392 - Moose::Exporter will no longer remove a subroutine that the
393 exporting package re-exports. Moose re-exports the
394 Carp::confess function, among others. The reasoning is that we
395 cannot know whether you have also explicitly imported those
396 functions for your own use, so we err on the safe side and
397 always keep them. (Dave Rolsky)
398 - added tests for this (rafl)
401 - Changes to how we fix metaclass compatibility that are much
402 too complicated to go into. The summary is that Moose is much
403 less likely to complain about metaclass incompatibility
404 now. In particular, if two metaclasses differ because
405 Moose::Util::MetaRole was used on the two corresponding
406 classes, then the difference in roles is reconciled for the
407 subclass's metaclass. (Dave Rolsky)
408 - Squashed an warning in _process_attribute (thepler)
411 - throw exceptions (sooner) for invalid attribute names (thepler)
412 - added tests for this (thepler)
414 * Moose::Util::MetaRole
415 - If you explicitly set a constructor or destructor class for a
416 metaclass object, and then applied roles to the metaclass,
417 that explicitly set class would be lost and replaced with the
421 * Moose::Meta::Attribute
422 * Moose::Meta::Method
425 * Moose::Error::Default
426 * Moose::Error::Croak
427 * Moose::Error::Confess
428 - All instances of confess() changed to use overridable
429 C<throw_error> method. This method ultimately calls a class
430 constructor, and you can change the class being called. In
431 addition, errors now pass more information than just a string.
432 The default C<error_class> behaves like C<Carp::confess>, so
433 the behavior is not visibly different for end users.
435 0.57 Wed September 3, 2008
437 - A new bit of doc intended to introduce folks familiar with
438 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
441 - Shows examples of two classes, each done first with and then
442 without Moose. This makes a nice parallel to
443 Moose::Intro. (Dave Rolsky)
445 * Moose::Util::TypeConstraints
446 - Fixed a bug in find_or_parse_type_constraint so that it
447 accepts a Moose::Meta::TypeConstraint object as the parent
448 type, not just a name (jnapiorkowski)
449 - added tests (jnapiorkowski)
452 - If Sub::Name was not present, unimporting failed to actually
453 remove some sugar subs, causing test failures (Dave Rolsky)
455 0.56 Mon September 1, 2008
456 For those not following the series of dev releases, there are
457 several major changes in this release of Moose.
458 ! Moose::init_meta should now be called as a method. See the
461 - Major performance improvements by nothingmuch.
463 - New modules for extension writers, Moose::Exporter and
464 Moose::Util::MetaRole by Dave Rolsky.
466 - Lots of doc improvements and additions, especially in the
471 * Removed all references to the experimental-but-no-longer-needed
472 Moose::Meta::Role::Application::ToMetaclassInstance.
474 * Require Class::MOP 0.65.
476 0.55_04 Sat August 30, 2008
477 * Moose::Util::MetaRole
478 * Moose::Cookbook::Extending::Recipe2
479 - This simplifies the application of roles to any meta class, as
480 well as the base object class. Reimplemented metaclass traits
481 using this module. (Dave Rolsky)
483 * Moose::Cookbook::Extending::Recipe1
484 - This a new recipe, an overview of various ways to write Moose
485 extensions (Dave Rolsky)
487 * Moose::Cookbook::Extending::Recipe3
488 * Moose::Cookbook::Extending::Recipe4
489 - These used to be Extending::Recipe1 and Extending::Recipe2,
492 0.55_03 Fri August 29, 2008
493 * No changes from 0.55_02 except increasing the Class::MOP
494 dependency to 0.64_07.
496 0.55_02 Fri August 29, 2008
497 * Makefile.PL and Moose.pm
498 - explicitly require Perl 5.8.0+ (Dave Rolsky)
500 * Moose::Util::TypeConstraints
501 - Fix warnings from find_type_constraint if the type is not
504 * Moose::Meta::TypeConstraint
505 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
506 return false if the type you specify cannot be found in the
507 type registry, rather than throwing an unhelpful and
508 coincidental exception. (t0m).
509 - added docs & test for this (t0m)
511 * Moose::Meta::TypeConstraint::Registry
512 - add_type_constraint now throws an exception if a parameter is
514 - added docs & test for this (t0m)
516 * Moose::Cookbook::FAQ
517 - Added a faq entry on the difference between "role" and "trait"
521 - Fixed a bug that caused role composition to not see a required
522 method when that method was provided by another role being
523 composed at the same time. (Dave Rolsky)
524 - test and bug finding (tokuhirom)
526 0.55_01 Wed August 20, 2008
528 !! Calling Moose::init_meta as a function is now !!
529 !! deprecated. Please see the Moose.pm docs for details. !!
531 * Moose::Meta::Method::Constructor
532 - Fix inlined constructor so that values produced by default
533 or builder methods are coerced as required. (t0m)
534 - added test for this (t0m)
536 * Moose::Meta::Attribute
537 - A lazy attribute with a default or builder did not attempt to
538 coerce the default value. The immutable code _did_
540 - added test for this (t0m)
543 - This is a new helper module for writing "Moose-alike"
544 modules. This should make the lives of MooseX module authors
545 much easier. (Dave Rolsky)
548 * Moose::Cookbook::Meta::Recipe5
549 - Implemented metaclass traits (and wrote a recipe for it):
551 use Moose -traits => 'Foo'
553 This should make writing small Moose extensions a little
556 * Moose::Cookbook::Basics::Recipe1
557 - Removed any examples of direct hashref access, and applied an
558 editorial axe to reduce verbosity. (Dave Rolsky)
560 * Moose::Cookbook::Basics::Recipe1
561 - Also applied an editorial axe here. (Dave Rolsky)
564 * Moose::Cookbook::Extending::Recipe1
565 * Moose::Cookbook::Extending::Recipe2
566 - Rewrote extending and embedding moose documentation and
567 recipes to use Moose::Exporter (Dave Rolsky)
571 - These two modules now warn when you load them from the main
572 package "main" package, because we will not export sugar to
573 main. Previously it just did nothing. (Dave Rolsky)
576 - Now provide an init_meta method just like Moose.pm, and you
577 can call this to provide an alternate role metaclass. (Dave
578 Rolsky and nothingmuch)
579 - get_method_map now respects the package cache flag (nothingmuch)
582 - Two new methods - add_method and wrap_method_body
586 - Optimizations including allowing constructors to accept hash
587 refs, making many more classes immutable, and making
588 constructors immutable. (nothingmuch)
590 0.55 Sun August 3, 2008
591 * Moose::Meta::Attribute
592 - breaking down the way 'handles' methods are
593 created so that the process can be more easily
594 overridden by subclasses (stevan)
596 * Moose::Meta::TypeConstraint
597 - fixing what is passed into a ->message with
598 the type constraints (RT #37569)
599 - added tests for this (Charles Alderman)
601 * Moose::Util::TypeConstraints
602 - fix coerce to accept anon types like subtype can (mst)
605 - reorganized the recipes into sections - Basics, Roles, Meta,
606 Extending - and wrote abstracts for each section (Dave Rolsky)
608 * Moose::Cookbook::Basics::Recipe10
609 - A new recipe that demonstrates operator overloading
610 in combination with Moose. (bluefeet)
612 * Moose::Cookbook::Meta::Recipe1
613 - an introduction to what meta is and why you'd want to make
614 your own metaclass extensions (Dave Rolsky)
616 * Moose::Cookbook::Meta::Recipe4
617 - a very simple metaclass example (Dave Rolsky)
619 * Moose::Cookbook::Extending::Recipe1
620 - how to write a Moose-alike module to use your own object base
623 * Moose::Cookbook::Extending::Recipe2
624 - how to write modules with an API just like C<Moose.pm> (Dave
628 - Tons of fixes, both syntactical and grammatical (Dave
629 Rolsky, Paul Fenwick)
631 0.54 Thurs. July 3, 2008
632 ... this is not my day today ...
634 * Moose::Meta::Attribute
635 - fixed legal_options_for_inheritance such that
636 clone_and_inherit options still works for
637 Class::MOP::Attribute objects and therefore
638 does not break MooseX::AttributeHelpers
641 0.53 Thurs. July 3, 2008
642 * Whoops, I guess I should run 'make manifest' before
643 actually releasing the module. No actual changes
644 in this release, except the fact that it includes
645 the changes that I didn't include in the last
648 0.52 Thurs. July 3, 2008
650 - added "FEATURE REQUESTS" section to the Moose docs
651 to properly direct people (stevan) (RT #34333)
652 - making 'extends' croak if it is passed a Role since
653 this is not ever something you want to do
654 (fixed by stevan, found by obra)
655 - added tests for this (stevan)
658 - adding support for DOES (as in UNIVERSAL::DOES)
660 - added test for this
662 * Moose::Meta::Attribute
663 - added legal_options_for_inheritance (wreis)
664 - added tests for this (wreis)
666 * Moose::Cookbook::Snacks::*
667 - removed some of the unfinished snacks that should
668 not have been released yet. Added some more examples
669 to the 'Keywords' snack. (stevan)
671 * Moose::Cookbook::Style
672 - added general Moose "style guide" of sorts to the
673 cookbook (nothingmuch) (RT #34335)
676 - added more BUILDARGS tests (stevan)
678 0.51 Thurs. Jun 26, 2008
680 - add unimport so "no Moose::Role" actually does
683 * Moose::Meta::Role::Application::ToRole
684 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
685 order to provide its own implementation, that method still got
686 added to the list of required methods for consumers of
687 RoleB. Now an aliased method is only added to the list of
688 required methods if the role doing the aliasing does not
689 provide its own implementation. See Recipe 11 for an example
690 of all this. (Dave Rolsky)
691 - added tests for this
693 * Moose::Meta::Method::Constructor
694 - when a single argument that wasn't a hashref was provided to
695 an immutabilized constructor, the error message was very
696 unhelpful, as opposed to the non-immutable error. Reported by
698 - added test for this (Dave Rolsky)
700 * Moose::Meta::Attribute
701 - added support for meta_attr->does("ShortAlias") (sartak)
702 - added tests for this (sartak)
703 - moved the bulk of the `handles` handling to the new
704 install_delegation method (Stevan)
707 - Added BUILDARGS, a new step in new()
709 * Moose::Meta::Role::Application::RoleSummation
710 - fix typos no one ever sees (sartak)
712 * Moose::Util::TypeConstraints
713 * Moose::Meta::TypeConstraint
714 * Moose::Meta::TypeCoercion
715 - Attempt to work around the ??{ } vs. threads issue
717 - Some null_constraint optimizations
719 0.50 Thurs. Jun 11, 2008
720 - Fixed a version number issue by bumping all modules
723 0.49 Thurs. Jun 11, 2008
724 !! This version now approx. 20-25% !!
725 !! faster with new Class::MOP 0.59 !!
727 * Moose::Meta::Attribute
728 - fixed how the is => (ro|rw) works with
729 custom defined reader, writer and accessor
731 - added docs for this (TODO).
732 - added tests for this (Thanks to Penfold)
733 - added the custom attribute alias for regular
734 Moose attributes which is "Moose"
735 - fix builder and default both being used
740 Moose::Meta::Attribute
742 Moose::Meta::Role::Composite
743 Moose::Util::TypeConstraints
744 - switched usage of reftype to ref because
748 - changing add_package_symbol to use the new
752 - fixed how DEMOLISHALL is called so that it
753 can be overrided in subclasses (thanks to Sartak)
754 - added test for this (thanks to Sartak)
756 * Moose::Util::TypeConstraints
757 - move the ClassName type check code to
758 Class::MOP::is_class_loaded (thanks to Sartak)
760 * Moose::Cookbook::Recipe11
761 - add tests for this (thanks to tokuhirom)
763 0.48 Thurs. May 29, 2008
764 (early morning release engineering)--
766 - fixing the version in Moose::Meta::Method::Destructor
767 which was causing the indexer to choke
769 0.47 Thurs. May 29, 2008
770 (late night release engineering)--
772 - fixing the version is META.yml, no functional
773 changes in this release
775 0.46 Wed. May 28, 2008
776 !! This version now approx. 20-25% !!
777 !! faster with new Class::MOP 0.57 !!
780 - some optimizations of the &initialize method
781 since it is called so often by &meta
785 - now use the get_all_package_symbols from the
786 updated Class::MOP, test suite is now 10 seconds
789 * Moose::Meta::Method::Destructor
790 - is_needed can now also be called as a class
791 method for immutablization to check if the
792 destructor object even needs to be created
795 * Moose::Meta::Method::Destructor
796 Moose::Meta::Method::Constructor
797 - added more descriptive error message to help
798 keep people from wasting time tracking an error
799 that is easily fixed by upgrading.
801 0.45 Saturday, May 24, 2008
803 - Because of work in Class::MOP 0.57, all
804 XS based functionality is now optional
805 and a Pure Perl version is supplied
806 - the CLASS_MOP_NO_XS environment variable
807 can now be used to force non-XS versions
809 - several of the packages have been tweaked
810 to take care of this, mostly we added
811 support for the package_name and name
812 variables in all the Method metaclasses
813 - before/around/after method modifiers now
814 support regexp matching of names
815 (thanks to Takatoshi Kitano)
816 - tests added for this
817 - NOTE: this only works for classes, it
818 is currently not supported in roles,
819 but, ... patches welcome
820 - All usage of Carp::confess have been replaced
821 by Carp::croak in the "keyword" functions since
822 the stack trace is usually not helpful
825 - All usage of Carp::confess have been replaced
826 by Carp::croak in the "keyword" functions since
827 the stack trace is usually not helpful
828 - The 'has' keyword for roles now accepts the
829 same array ref form that Moose.pm does
830 (has [qw/foo bar/] => (is => 'rw', ...))
831 - added test for this
833 * Moose::Meta::Attribute
834 - trigger on a ro-attribute is no longer an
835 error, as it's useful to trigger off of the
839 - added same 'add_package_symbol' fix as in
843 - does_role now handles non-Moose classes
845 - added tests for this
846 - added the 'add_method_modifier' function
847 (thanks to Takatoshi Kitano)
849 * Moose::Util::TypeConstraints
850 - subtypes of parameterizable types now are
851 themselves parameterizable types
853 * Moose::Meta::Method::Constructor
854 - fixed bug where trigger was not being
855 called by the inlined immutable
857 - added test for this (thanks to Caelum)
859 * Moose::Meta::Role::Application::ToInstance
860 - now uses the metaclass of the instance
861 (if possible) to create the anon-class
862 (thanks Jonathan Rockway)
864 * Moose::Cookbook::Recipe22
865 - added the meta-attribute trait recipe
869 - fixed hash-ordering test bug that was
870 causing occasional cpantester failures
871 - renamed the t/000_recipe/*.t tests to be
872 more descriptive (thanks to Sartak)
874 0.44 Sat. May 10, 2008
876 - made make_immutable warning cluck to
877 show where the error is (thanks mst)
880 - BUILDALL and DEMOLISHALL now call
881 ->body when looping through the
882 methods, to avoid the overloaded
884 - fixed issue where DEMOLISHALL was
885 eating the $@ values, and so not
886 working correctly, it still kind of
887 eats them, but so does vanilla perl
888 - added tests for this
890 * Moose::Cookbook::Recipe7
891 - added new recipe for immutable
892 functionality (thanks Dave Rolsky)
894 * Moose::Cookbook::Recipe9
895 - added new recipe for builder and
896 lazy_build (thanks Dave Rolsky)
898 * Moose::Cookbook::Recipe11
899 - added new recipe for method aliasing
900 and exclusion with Roles (thanks Dave Rolsky)
903 - fixed Win32 test failure (thanks spicyjack)
905 ~ removed Build.PL and Module::Build compat
906 since Module::Install has done that.
908 0.43 Wed. April, 30, 2008
910 drink more coffee before
911 doing release engineering
913 - whoops, forgot to do the smolder tests,
914 and we broke some of the custom meta-attr
915 modules. This fixes that.
917 0.42 Mon. April 28, 2008
918 - some bad tests slipped by, nothing else
919 changed in this release (cpantesters++)
921 - upped the Class::MOP dependency to 0.55
922 since we have tests which need the C3
925 0.41 Mon. April 28, 2008
926 ~~ numerous documentation updates ~~
928 - Changed all usage of die to Carp::croak for better
929 error reporting (initial patch by Tod Hagan)
932 - the make_immutable keyword is now deprecated, don't
933 use it in any new code and please fix your old code
934 as well. There will be 2 releases, and then it will
940 - refactored the way inner and super work to avoid
941 any method/@ISA cache penalty (nothingmuch)
944 - fixing &new_object to make sure trigger gets the
945 coerced value (spotted by Charles Alderman on the
947 - added test for this
949 * Moose::Meta::Method::Constructor
950 - immutable classes which had non-lazy attributes were calling
951 the default generating sub twice in the constructor. (bug
952 found by Jesse Luehrs, fixed by Dave Rolsky)
953 - added tests for this (Dave Rolsky)
954 - fix typo in initialize_body method (nothingmuch)
956 * Moose::Meta::Method::Destructor
957 - fix typo in initialize_body method (nothingmuch)
959 * Moose::Meta::Method::Overriden
960 Moose::Meta::Method::Augmented
961 - moved the logic for these into their own
962 classes (nothingmuch)
964 * Moose::Meta::Attribute
965 - inherited attributes may now be extended without
966 restriction on the type ('isa', 'does') (Sartak)
967 - added tests for this (Sartak)
968 - when an attribute property is malformed (such as lazy without
969 a default), give the name of the attribute in the error
971 - added the &applied_traits and &has_applied_traits methods
972 to allow introspection of traits
973 - added tests for this
974 - moved 'trait' and 'metaclass' argument handling to here from
976 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
977 '+foo' syntax) (nothingmuch)
978 - added tests for this (t0m)
981 - localize $@ inside DEMOLISHALL to avoid it
982 eating $@ (found by Ernesto)
983 - added test for this (thanks to Ernesto)
985 * Moose::Util::TypeConstraints
986 - &find_type_constraint now DWIMs when given an
987 type constraint object or name (nothingmuch)
988 - &find_or_create_type_constraint superseded with a number of more
990 - find_or_create_{isa,does}_type_constraint
991 - find_or_parse_type_constraint
993 * Moose::Meta::TypeConstraint
994 Moose::Meta::TypeConstraint::Class
995 Moose::Meta::TypeConstraint::Role
996 Moose::Meta::TypeConstraint::Enum
997 Moose::Meta::TypeConstraint::Union
998 Moose::Meta::TypeConstraint::Parameterized
999 - added the &equals method for comparing two type
1000 constraints (nothingmuch)
1001 - added tests for this (nothingmuch)
1003 * Moose::Meta::TypeConstraint
1004 - add the &parents method, which is just an alias to &parent.
1005 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1007 * Moose::Meta::TypeConstraint::Class
1008 - added the class attribute for introspection purposes
1010 - added tests for this
1012 * Moose::Meta::TypeConstraint::Enum
1013 Moose::Meta::TypeConstraint::Role
1014 - broke these out into their own classes (nothingmuch)
1016 * Moose::Cookbook::Recipe*
1017 - fixed references to test file locations in the POD
1018 and updated up some text for new Moose features
1022 - Added &resolve_metaclass_alias, a helper function for finding an actual
1023 class for a short name (e.g. in the traits list)
1025 0.40 Fri. March 14, 2008
1026 - I hate Pod::Coverage
1028 0.39 Fri. March 14, 2008
1030 - documenting the use of '+name' with attributes
1031 that come from recently composed roles. It makes
1032 sense, people are using it, and so why not just
1033 officially support it.
1034 - fixing the 'extends' keyword so that it will not
1035 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1038 - added the perl -Moose=+Class::Name feature to allow
1039 monkeypatching of classes in one liners
1042 - fixing the 'apply_all_roles' keyword so that it will not
1043 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1045 * Moose::Meta::Class
1046 - added ->create method which now supports roles (thanks to jrockway)
1047 - added tests for this
1048 - added ->create_anon_class which now supports roles and caching of
1049 the results (thanks to jrockway)
1050 - added tests for this
1051 - made ->does_role a little more forgiving when it is
1052 checking a Class::MOP era metaclasses.
1054 * Moose::Meta::Role::Application::ToInstance
1055 - it is now possible to pass extra params to be used when
1056 a role is applied to an the instance (rebless_params)
1057 - added tests for this
1059 * Moose::Util::TypeConstraints
1060 - class_type now accepts an optional second argument for a
1061 custom message. POD anotated accordingly (groditi)
1062 - added tests for this
1063 - it is now possible to make anon-enums by passing 'enum' an
1064 ARRAY ref instead of the $name => @values. Everything else
1066 - added tests for this
1069 - making test for using '+name' on attributes consumed
1070 from a role, it works and makes sense too.
1072 * Moose::Meta::Attribute
1073 - fix handles so that it doesn't return nothing
1074 when the method cannot be found, not sure why
1075 it ever did this originally, this means we now
1076 have slightly better support for AUTOLOADed
1078 - added more delegation tests
1079 - adding ->does method to this so as to better
1080 support traits and their introspection.
1081 - added tests for this
1084 - localizing the Data::Dumper configurations so
1085 that it does not pollute others (RT #33509)
1086 - made ->does a little more forgiving when it is
1087 passed Class::MOP era metaclasses.
1089 0.38 Fri. Feb. 15, 2008
1090 * Moose::Meta::Attribute
1091 - fixed initializer to correctly do
1092 type checking and coercion in the
1094 - added tests for this
1097 - fixed some finicky tests (thanks to konobi)
1099 0.37 Thurs. Feb. 14, 2008
1101 - fixed some details in Moose::init_meta
1102 and its superclass handling (thanks thepler)
1103 - added tests for this (thanks thepler)
1104 - 'has' now dies if you don't pass in name
1106 - added the 'make_immutable' keyword as a shortcut
1109 * Moose::Meta::Class
1110 Moose::Meta::Method::Constructor
1111 Moose::Meta::Attribute
1112 - making (init_arg => undef) work here too
1113 (thanks to nothingmuch)
1115 * Moose::Meta::Attribute
1116 Moose::Meta::Method::Constructor
1117 Moose::Meta::Method::Accessor
1118 - make lazy attributes respect attr initializers (rjbs)
1119 - added tests for this
1121 * Moose::Util::TypeConstraints
1122 Moose::Util::TypeConstraints::OptimizedConstraints
1123 Moose::Meta::TypeConstraints
1124 Moose::Meta::Attribute
1125 Moose::Meta::Method::Constructor
1126 Moose::Meta::Method::Accessor
1127 - making type errors use the
1128 assigned message (thanks to Sartak)
1129 - added tests for this
1131 * Moose::Meta::Method::Destructor
1132 - making sure DESTROY gets inlined properly
1133 with successive DEMOLISH calls (thanks to manito)
1135 * Moose::Meta::Attribute
1136 Moose::Meta::Method::Accessor
1137 - fixed handling of undef with type constraints
1139 - added tests for this
1142 - added &get_all_init_args and &get_all_attribute_values
1143 (thanks to Sartak and nothingmuch)
1145 0.36 Sat. Jan. 26, 2008
1147 Moose::Meta::Attribute
1148 - role type tests now support when roles are
1149 applied to non-Moose classes (found by ash)
1150 - added tests for this (thanks to ash)
1151 - couple extra tests to boost code coverage
1153 * Moose::Meta::Method::Constructor
1154 - improved fix for handling Class::MOP attributes
1155 - added test for this
1157 * Moose::Meta::Class
1158 - handled the add_attribute($attribute_meta_object)
1160 - added test for this
1162 0.35 Tues. Jan. 22, 2008
1163 * Moose::Meta::Method::Constructor
1164 - fix to make sure even Class::MOP attributes
1165 are handled correctly (Thanks to Dave Rolsky)
1166 - added test for this (also Dave Rolsky)
1168 * Moose::Meta::Class
1169 - improved error message on _apply_all_roles,
1170 you should now use Moose::Util::apply_all_roles
1171 and you shouldnt have been using a _ prefixed
1172 method in the first place ;)
1174 0.34 Mon. Jan. 21, 2008
1175 ~~~ more misc. doc. fixes ~~~
1176 ~~ updated copyright dates ~~
1178 Moose is now a postmodern object system :)
1179 - (see the POD for details)
1181 * <<Role System Refactoring>>
1182 - this release contains a major reworking and
1183 cleanup of the role system
1184 - 100% backwards compat.
1185 - Role application now restructured into seperate
1186 classes based on type of applicants
1187 - Role summation (combining of more than one role)
1188 is much cleaner and anon-classes are no longer
1189 used in this process
1190 - new Composite role metaclass
1191 - runtime application of roles to instances
1192 is now more efficient and re-uses generated
1193 classes when applicable
1195 * <<New Role composition features>>
1196 - methods can now be excluded from a given role
1198 - methods can now be aliased to another name (and
1199 still retain the original as well)
1201 * Moose::Util::TypeConstraints::OptimizedConstraints
1202 - added this module (see above)
1204 * Moose::Meta::Class
1205 - fixed the &_process_attribute method to be called
1206 by &add_attribute, so that the API is now correct
1208 * Moose::Meta::Method::Accessor
1209 - fixed bug when passing a list of values to
1210 an accessor would get (incorrectly) ignored.
1211 Thanks to Sartak for finding this ;)
1212 - added tests for this (Sartak again)
1214 * Moose::Meta::Method::Accessor
1215 Moose::Meta::Method::Constructor
1216 Moose::Meta::Attribute
1217 Moose::Meta::TypeConstraint
1218 Moose::Meta::TypeCoercion
1219 - lots of cleanup of such things as:
1221 - type constraint handling
1222 - error handling/messages
1223 (thanks to nothingmuch)
1225 * Moose::Meta::TypeConstraint::Parameterizable
1226 - added this module to support the refactor
1227 in Moose::Meta::TypeConstraint::Parameterized
1229 * Moose::Meta::TypeConstraint::Parameterized
1230 - refactored how these types are handled so they
1231 are more generic and not confined to ArrayRef
1235 - shortened some file names for better VMS support (RT #32381)
1237 0.33 Fri. Dec. 14, 2007
1238 !! Moose now loads 2 x faster !!
1239 !! with new Class::MOP 0.49 !!
1241 ++ new oose.pm module to make command line
1242 Moose-ness easier (see POD docs for more)
1244 * Moose::Meta::Class
1246 - several tweaks to take advantage of the
1247 new method map caching in Class::MOP
1249 * Moose::Meta::TypeConstraint::Parameterized
1250 - allow subtypes of ArrayRef and HashRef to
1251 be used as a container (sartak)
1252 - added tests for this
1253 - basic support for coercion to ArrayRef and
1254 HashRef for containers (sartak)
1255 - added tests for this
1257 * Moose::Meta::TypeCoercion
1258 - coercions will now create subtypes as needed
1259 so you can now add coercions to parameterized
1260 types without having to explictly define them
1261 - added tests for this
1263 * Moose::Meta::Method::Accessor
1264 - allow subclasses to decide whether we need
1265 to copy the value into a new variable (sartak)
1267 0.32 Tues. Dec. 4, 2007
1268 * Moose::Util::TypeConstraints
1269 - fixing how subtype aliases of unions work
1270 they should inherit the parent's coercion
1271 - added tests for this
1272 - you can now define multiple coercions on
1273 a single type at different times instead of
1274 having to do it all in one place
1275 - added tests for this
1277 * Moose::Meta::TypeConstraint
1278 - there is now a default constraint of sub { 1 }
1279 instead of Moose::Util::TypeConstraints setting
1282 * Moose::Meta::TypeCoercion
1283 * Moose::Meta::TypeCoercion::Union
1284 - added the &has_coercion_for_type and
1285 &add_type_coercions methods to support the
1286 new features above (although you cannot add
1287 more type coercions for Union types)
1289 0.31 Mon. Nov. 26, 2007
1290 * Moose::Meta::Attribute
1291 - made the +attr syntax handle extending types with
1292 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1293 now works if the original foo is an ArrayRef.
1294 - added tests for this.
1295 - delegation now works even if the attribute does not
1296 have a reader method using the get_read_method_ref
1297 method from Class::MOP::Attribute.
1298 - added tests for this
1299 - added docs for this
1301 * Moose::Util::TypeConstraints
1302 - passing no "additional attribute info" to
1303 &find_or_create_type_constraint will no longer
1304 attempt to create an __ANON__ type for you,
1305 instead it will just return undef.
1306 - added docs for this
1308 0.30 Fri. Nov. 23, 2007
1309 * Moose::Meta::Method::Constructor
1310 -builder related bug in inlined constructor. (groditi)
1312 * Moose::Meta::Method::Accessor
1313 - genereate unnecessary calls to predicates and refactor
1314 code generation for runtime speed (groditi)
1316 * Moose::Util::TypeConstraints
1317 - fix ClassName constraint to introspect symbol table (mst)
1318 - added more tests for this (mst)
1319 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1320 with work correctly.
1321 - added tests for this
1324 - adding the link to Recipie 11 (written by Sartak)
1325 - adding test for SYNOPSIS code
1328 - New tests for builder bug. Upon instantiation, if an
1329 attribute had a builder, no value and was not lazy the
1330 builder default was not getting run, oops. (groditi)
1332 0.29 Tues. Nov. 13, 2007
1333 * Moose::Meta::Attribute
1334 - Fix error message on missing builder method (groditi)
1336 * Moose::Meta::Method::Accessor
1337 - Fix error message on missing builder method (groditi)
1340 - Add test to check for the correct error message when
1341 builder method is missing (groditi)
1343 0.28 Tues. Nov. 13, 2007
1344 - 0.27 packaged incorrectly (groditi)
1346 0.27 Tues. Nov. 13, 2007
1347 * Moose::Meta::Attribute
1348 - Added support for the new builder option (groditi)
1349 - Added support for lazy_build option (groditi)
1350 - Changed slot initialization for predicate changes (groditi)
1352 * Moose::Meta::Method::Accessor
1353 - Added support for lazy_build option (groditi)
1354 - Fix inline methods to work with corrected predicate
1357 * Moose::Meta::Method::Constructor
1358 - Added support for lazy_build option (groditi)
1361 - tests for builder and lazy_build (groditi)
1363 * fixing some misc. bits in the docs that
1364 got mentioned on CPAN Forum & perlmonks
1367 - fixed how required methods are handled
1368 when they encounter overriden or modified
1369 methods from a class (thanks to confound).
1370 - added tests for this
1372 * Moose::Util::TypeConstraint
1373 - fixed the type notation parser so that
1374 the | always creates a union and so is
1375 no longer a valid type char (thanks to
1376 konobi, mugwump and #moose for working
1378 - added more tests for this
1380 0.26 Thurs. Sept. 27, 2007
1383 * Parameterized Types
1384 We now support parameterized collection types, such as:
1385 ArrayRef[Int] # array or integers
1386 HashRef[Object] # a hash with object values
1387 They can also be nested:
1388 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1389 And work with the type unions as well:
1390 ArrayRef[Int | Str] # array of integers of strings
1392 * Better Framework Extendability
1393 Moose.pm is now "extendable" such that it is now much
1394 easier to extend the framework and add your own keywords
1395 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1396 section of the Moose.pm docs.
1399 In an effort to begin documenting some of the various
1400 details of Moose as well as some common idioms, we have
1401 created Moose::Cookbook::Snacks as a place to find
1402 small (easily digestable) nuggets of Moose code.
1405 ~ Several doc updates/cleanup thanks to castaway ~
1407 - converted build system to use Module::Install instead of
1408 Module::Build (thanks to jrockway)
1411 - added all the meta classes to the immutable list and
1412 set it to inline the accessors
1413 - fix import to allow Sub::Exporter like { into => }
1414 and { into_level => } (perigrin)
1415 - exposed and documented init_meta() to allow better
1416 embedding and extending of Moose (perigrin)
1419 - complete re-organization of the test suite
1420 - added some new tests as well
1421 - finally re-enabled the Moose::POOP test since
1422 the new version of DBM::Deep now works again
1425 * Moose::Meta::Class
1426 - fixed very odd and very nasty recursion bug with
1428 - added tests for this (eilara)
1430 * Moose::Meta::Attribute
1431 Moose::Meta::Method::Constructor
1432 Moose::Meta::Method::Accessor
1433 - fixed issue with overload::Overloaded getting called
1434 on non-blessed items. (RT #29269)
1435 - added tests for this
1437 * Moose::Meta::Method::Accessor
1438 - fixed issue with generated accessor code making
1439 assumptions about hash based classes (thanks to dexter)
1441 * Moose::Coookbook::Snacks
1442 - these are bits of documentation, not quite as big as
1443 Recipes but which have no clear place in the module docs.
1444 So they are Snacks! (horray for castaway++)
1446 * Moose::Cookbook::Recipe4
1447 - updated it to use the new ArrayRef[MyType] construct
1448 - updated the accompanying test as well
1450 +++ Major Refactor of the Type Constraint system +++
1451 +++ with new features added as well +++
1453 * Moose::Util::TypeConstraint
1454 - no longer uses package variable to keep track of
1455 the type constraints, now uses the an instance of
1456 Moose::Meta::TypeConstraint::Registry to do it
1457 - added more sophisticated type notation parsing
1459 - added tests for this
1461 * Moose::Meta::TypeConstraint
1462 - some minor adjustments to make subclassing easier
1463 - added the package_defined_in attribute so that we
1464 can track where the type constraints are created
1466 * Moose::Meta::TypeConstraint::Union
1467 - this is now been refactored to be a subclass of
1468 Moose::Meta::TypeConstraint
1470 * Moose::Meta::TypeCoercion::Union
1471 - this has been added to service the newly refactored
1472 Moose::Meta::TypeConstraint::Union and is itself
1473 a subclass of Moose::Meta::TypeCoercion
1475 * Moose::Meta::TypeConstraint::Parameterized
1476 - added this module (taken from MooseX::AttributeHelpers)
1477 to help construct nested collection types
1478 - added tests for this
1480 * Moose::Meta::TypeConstraint::Registry
1481 - added this class to keep track of type constraints
1483 0.25 Mon. Aug. 13, 2007
1485 - Documentation update to reference Moose::Util::TypeConstraints
1486 under 'isa' in 'has' for how to define a new type
1487 (thanks to shlomif).
1489 * Moose::Meta::Attribute
1490 - required attributes now will no longer accept undef
1491 from the constructor, even if there is a default and lazy
1492 - added tests for this
1493 - default subroutines must return a value which passes the
1495 - added tests for this
1497 * Moose::Meta::Attribute
1498 * Moose::Meta::Method::Constructor
1499 * Moose::Meta::Method::Accessor
1500 - type-constraint tests now handle overloaded objects correctly
1501 in the error message
1502 - added tests for this (thanks to EvanCarroll)
1504 * Moose::Meta::TypeConstraint::Union
1505 - added (has_)hand_optimized_constraint to this class so that
1506 it behaves as the regular Moose::Meta::TypeConstraint does.
1509 - large refactoring of this code
1510 - added several more tests
1511 - tests for subtle conflict resolition issues
1512 added, but not currently running
1515 * Moose::Cookbook::Recipe7
1516 - added new recipe for augment/inner functionality
1518 - added test for this
1521 - a formal definition of roles (still in progress)
1524 - utilities for easier working with Moose classes
1525 - added tests for these
1528 - This contains Moose specific test functions
1529 - added tests for these
1531 0.24 Tues. July 3, 2007
1532 ~ Some doc updates/cleanup ~
1534 * Moose::Meta::Attribute
1535 - added support for roles to be given as parameters
1536 to the 'handles' option.
1537 - added tests and docs for this
1538 - the has '+foo' attribute form now accepts changes to
1539 the lazy option, and the addition of a handles option
1540 (but not changing the handles option)
1541 - added tests and docs for this
1544 - required methods are now fetched using find_method_by_name
1545 so that required methods can come from superclasses
1546 - adjusted tests for this
1548 0.23 Mon. June 18, 2007
1549 * Moose::Meta::Method::Constructor
1550 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1551 * Moose::Meta::Class
1552 - Modify make_immutable to work with the new Class::MOP immutable
1553 mechanism + POD + very basic test (groditi)
1554 * Moose::Meta::Attribute
1555 - Fix handles to use goto() so that caller() comes out properly on
1556 the other side (perigrin)
1558 0.22 Thurs. May 31, 2007
1559 * Moose::Util::TypeConstraints
1560 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1561 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1562 prototypes for functions
1563 - added the ClassName type constraint, this checks for strings
1564 which will respond true to ->isa(UNIVERSAL).
1565 - added tests and docs for this
1566 - subtyping just in name now works correctly by making the
1567 default for where be { 1 }
1568 - added test for this
1570 * Moose::Meta::Method::Accessor
1571 - coerce and lazy now work together correctly, thanks to
1572 merlyn for finding this bug
1573 - tests added for this
1574 - fix reader presedence bug in Moose::Meta::Attribute + tests
1577 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1578 a HASH-ref and missed. This produces better error messages then
1579 having it die cause undef is not a HASH.
1580 - added tests for this
1582 0.21 Thursday, May 2nd, 2007
1584 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1585 - modified unimport to remove super and inner along with the rest
1586 - altered unimport tests to handle this
1589 - altered super export to populate SUPER_SLOT
1591 * Moose::Meta::Class
1592 - altered augment and override modifier application to use *_SLOT
1593 - modified tests for these to unimport one test class each to test
1596 - fixed issue where custom attribute metaclasses
1597 where not handled correctly in roles
1598 - added tests for this
1600 * Moose::Meta::Class
1601 - fixed issue where extending metaclasses with
1602 roles would blow up. Thanks to Aankhen`` for
1603 finding this insidious error, and it's solution.
1605 ~~ lots of spelling and grammer fixes in the docs,
1606 many many thanks to rlb3 and Aankhen for these :)
1608 0.20 Friday, April 6th, 2007
1609 >> I messed up the SKIP logic in one test
1610 so this release is just to fix that.
1613 - 'has' now also accepts an ARRAY ref
1614 to create multiple attrs (see docs)
1615 (thanks to konobi for this)
1616 - added tests and docs
1618 0.19 Thurs. April 5th, 2007
1619 ~~ More documentation updates ~~
1621 * Moose::Util::TypeConstraints
1622 - 'type' now supports messages as well
1623 thanks to phaylon for finding this
1624 - added tests for this
1625 - added &list_all_type_constraints and
1626 &list_all_builtin_type_constraints
1627 functions to facilitate introspection.
1629 * Moose::Meta::Attribute
1630 - fixed regexp 'handles' declarations
1631 to build the list of delegated methods
1632 correctly (and not override important
1633 things like &new) thanks to ashleyb
1635 - added tests and docs for this
1636 - added the 'documentation' attributes
1637 so that you can actually document your
1638 attributes and inspect them through the
1640 - added tests and docs for this
1642 * Moose::Meta::Class
1643 - when loading custom attribute metaclasses
1644 it will first look in for the class in the
1645 Moose::Meta::Attribute::Custom::$name, and
1646 then default to just loading $name.
1647 - added tests and docs for this
1649 * Moose::Meta::TypeConstraint
1650 - type constraints now stringify to their names.
1651 - added test for this
1654 - added tests to assure we work with Module::Refresh
1655 - added stricter test skip logic in the Moose POOP
1656 test, ask Rob Kinyon why.
1657 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1659 0.18 Sat. March 10, 2007
1660 ~~ Many, many documentation updates ~~
1663 - We now use Class::MOP::load_class to
1665 - added tests to show types and subtypes
1666 working with Declare::Constraints::Simple
1667 and Test::Deep as constraint engines.
1670 !! You must have Class::MOP 0.37_001 !!
1671 !! for this developer release to work !!
1673 This release was primarily adding the immutable
1674 feature to Moose. An immutable class is one which
1675 you promise not to alter. When you set the class
1676 as immutable it will perform various bits of
1677 memoization and inline certain part of the code
1678 (constructors, destructors and accessors). This
1679 minimizes (and in some cases totally eliminates)
1680 one of Moose's biggest performance hits. This
1681 feature is not on by default, and is 100% optional.
1682 It has several configurable bits as well, so you
1683 can pick and choose to your specific needs.
1685 The changes involved in this were fairly wide and
1686 highly specific, but 100% backwards compatible, so
1687 I am not going to enumerate them here. If you are
1688 truely interested in what was changed, please do
1691 0.17 Tues. Nov. 14, 2006
1692 * Moose::Meta::Method::Accessor
1693 - bugfix for read-only accessors which
1694 are have a type constraint and lazy.
1695 Thanks to chansen for finding it.
1697 0.16 Tues. Nov. 14, 2006
1699 There are some speed improvements in this release,
1700 but they are only the begining, so stay tuned.
1703 - BUILDALL and DEMOLISHALL no longer get
1704 called unless they actually need to be.
1705 This gave us a signifigant speed boost
1706 for the cases when there is no BUILD or
1707 DEMOLISH method present.
1709 * Moose::Util::TypeConstraints
1710 * Moose::Meta::TypeConstraint
1711 - added an 'optimize_as' option to the
1712 type constraint, which allows for a
1713 hand optimized version of the type
1714 constraint to be used when possible.
1715 - Any internally created type constraints
1716 now provide an optimized version as well.
1718 0.15 Sun. Nov. 5, 2006
1720 This version of Moose *must* have Class::MOP 0.36 in order
1721 to work correctly. A number of small internal tweaks have
1722 been made in order to be compatible with that release.
1724 * Moose::Util::TypeConstraints
1725 - added &unimport so that you can clean out
1726 your class namespace of these exported
1729 * Moose::Meta::Class
1730 - fixed minor issue which occasionally
1731 comes up during global destruction
1733 - moved Moose::Meta::Method::Overriden into
1737 - moved Moose::Meta::Role::Method into
1740 * Moose::Meta::Attribute
1741 - changed how we do type checks so that
1742 we reduce the overall cost, but still
1745 - moved accessor generation methods to
1746 Moose::Meta::Method::Accessor to
1747 conform to the API changes from
1750 * Moose::Meta::TypeConstraint
1751 - changed how constraints are compiled
1752 so that we do less recursion and more
1753 iteration. This makes the type check
1755 - moved Moose::Meta::TypeConstraint::Union
1758 * Moose::Meta::Method::Accessor
1759 - created this from methods formerly found in
1760 Moose::Meta::Attribute
1762 * Moose::Meta::Role::Method
1763 - moved this from Moose::Meta::Role
1765 * Moose::Meta::Method::Overriden
1766 - moved this from Moose::Meta::Class
1768 * Moose::Meta::TypeConstraint::Union
1769 - moved this from Moose::Meta::TypeConstraint
1771 0.14 Mon. Oct. 9, 2006
1773 * Moose::Meta::Attribute
1774 - fixed lazy attributes which were not getting
1775 checked with the type constraint (thanks ashley)
1776 - added tests for this
1777 - removed the over-enthusiastic DWIMery of the
1778 automatic ArrayRef and HashRef defaults, it
1779 broke predicates in an ugly way.
1780 - removed tests for this
1782 0.13 Sat. Sept. 30, 2006
1784 This version of Moose *must* have Class::MOP 0.35 in order
1785 to work correctly. A number of small internal tweaks have
1786 been made in order to be compatible with that release.
1789 - Removed the use of UNIVERSAL::require to be a better
1790 symbol table citizen and remove a dependency
1791 (thanks Adam Kennedy)
1793 **~~ removed experimental & undocumented feature ~~**
1794 - commented out the 'method' and 'self' keywords, see the
1795 comments for more info.
1798 - added a FAQ and WTF files to document frequently
1799 asked questions and common problems
1801 * Moose::Util::TypeConstraints
1802 - added GlobRef and FileHandle type constraint
1803 - added tests for this
1805 * Moose::Meta::Attribute
1806 - if your attribute 'isa' ArrayRef of HashRef, and you have
1807 not explicitly set a default, then make the default DWIM.
1808 This will also work for subtypes of ArrayRef and HashRef
1810 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1811 - new test added for this (thanks to ashley)
1814 - added basic support for runtime role composition
1815 but this is still *highly experimental*, so feedback
1816 is much appreciated :)
1817 - added tests for this
1819 * Moose::Meta::TypeConstraint
1820 - the type constraint now handles the coercion process
1821 through delegation, this is to support the coercion
1824 * Moose::Meta::TypeConstraint::Union
1825 - it is now possible for coercions to be performed
1827 - added tests for this (thanks to konobi)
1829 * Moose::Meta::TypeCoercion
1830 - properly capturing error when type constraint
1834 - Scalar::Util 1.18 is bad on Win32, so temporarily
1835 only require version 1.17 for Win32 and cygwin.
1836 (thanks Adam Kennedy)
1838 0.12 Sat. Sept. 1, 2006
1840 - Recipe5 (subtypes & coercion) has been written
1843 - fixed "bad meta" error message to be more descriptive
1844 - fixed &unimport to not remove the &inner and &super
1845 keywords because we need to localize them.
1846 - fixed number of spelling/grammer issues, thanks Theory :)
1848 **~~ experimental & undocumented feature ~~**
1849 - added the method and self keywords, they are basically
1850 just sugar, and they may not stay around.
1853 - added &dump method to easily Data::Dumper
1856 * Moose::Meta::TypeConstraint
1857 - added the &is_a_type_of method to check both the current
1858 and the subtype of a method (similar to &isa with classes)
1861 - this is now a subclass of Class::MOP::Module, and no longer
1862 creates the _role_meta ugliness of before.
1863 - fixed tests to reflect this change
1865 0.11 Wed. July 12, 2006
1867 - added an &unimport method to remove all the keywords
1868 that Moose will import, simply add 'no Moose' to the
1869 bottom of your class file.
1872 - fixed some test failures caused by a forgotten test
1875 0.10 Thurs. July 6, 2006
1877 - improved error message when loading modules so
1878 it is less confusing when you load a role.
1879 - added &calculate_all_roles method to
1880 Moose::Meta::Class and Moose::Meta::Role
1883 This module has been tested against Class::MOP 0.30
1884 but it does not yet utilize the optimizations
1885 it makes available. Stay tuned for that ;)
1887 0.09_03 Fri. June 23, 2006
1888 ++ DEVELOPER RELEASE ++
1890 - 'use strict' and 'use warnings' are no longer
1891 needed in Moose classes, Moose itself will
1892 turn them on for you.
1893 - added tests for this
1894 - moved code from exported subs to private methods
1895 in Moose::Meta::Class
1898 - as with Moose, strict and warnings are
1899 automatically turned on for you.
1900 - added tests for this
1903 - now handles an edge case for override errors
1904 - added tests for this
1905 - added some more edge case tests
1907 0.09_02 Tues. May 16, 2006
1908 ++ DEVELOPER RELEASE ++
1910 - added prototypes to the exported subs
1914 - added prototypes to the exported subs
1917 * Moose::Util::TypeConstraints
1918 - cleaned up prototypes for the subs
1921 0.09_01 Fri. May 12, 2006
1922 ++ DEVELOPER RELEASE ++
1923 - This release works in combination with
1924 Class::MOP 0.29_01, it is a developer
1925 release because it uses the a new
1926 instance sub-protocol and a fairly
1927 complete Role implementation. It has
1928 not yet been optimized, so it slower
1929 the the previous CPAN version. This
1930 release also lacks good updated docs,
1931 the official release will have updated docs.
1934 - refactored the keyword exports
1935 - 'with' now checks Role validaity and
1936 accepts more than one Role at a time
1937 - 'extends' makes metaclass adjustments as
1938 needed to ensure metaclass compatibility
1941 - refactored the keyword exports
1942 - 'with' now checks Role validaity and
1943 accepts more than one Role at a time
1945 * Moose::Util::TypeConstraints
1946 - added the 'enum' keyword for simple
1947 string enumerations which can be used as
1949 - see example of usage in t/202_example.t
1952 - more careful checking of params to new()
1955 - much work done on the role composition
1956 - many new tests for conflict detection
1957 and composition edge cases
1958 - not enough documentation, I suggest
1959 looking at the tests
1961 * Moose::Meta::Instance
1962 - added new Instance metaclass to support
1963 the new Class::MOP instance protocol
1965 * Moose::Meta::Class
1966 - some small changes to support the new
1968 - some small additions to support Roles
1970 * Moose::Meta::Attribute
1971 - some improvements to the accessor generation code
1973 - some small changes to support the new
1975 - (still somewhat) experimental delegation support
1976 with the 'handles' option
1977 - added several tests for this
1978 - no docs for this yet
1980 0.05 Thurs. April 27, 2006
1982 - keywords are now exported with Sub::Exporter
1983 thanks to chansen for this commit
1984 - has keyword now takes a 'metaclass' option
1985 to support custom attribute meta-classes
1986 on a per-attribute basis
1987 - added tests for this
1988 - the 'has' keyword not accepts inherited slot
1989 specifications (has '+foo'). This is still an
1990 experimental feature and probably not finished
1991 see t/038_attribute_inherited_slot_specs.t for
1992 more details, or ask about it on #moose
1993 - added tests for this
1996 - keywords are now exported with Sub::Exporter
1998 * Moose::Utils::TypeConstraints
1999 - reorganized the type constraint hierarchy, thanks
2000 to nothingmuch and chansen for his help and advice
2002 - added some tests for this
2003 - keywords are now exported with Sub::Exporter
2004 thanks to chansen for this commit
2006 * Moose::Meta::Class
2007 - due to changes in Class::MOP, we had to change
2008 construct_instance (for the better)
2010 * Moose::Meta::Attribute
2011 - due to changes in Class::MOP, we had to add the
2012 initialize_instance_slot method (it's a good thing)
2014 * Moose::Meta::TypeConstraint
2015 - added type constraint unions
2016 - added tests for this
2017 - added the is_subtype_of predicate method
2018 - added tests for this
2020 0.04 Sun. April 16th, 2006
2022 - Roles can now consume other roles
2023 - added tests for this
2024 - Roles can specify required methods now with
2025 the requires() keyword
2026 - added tests for this
2029 - ripped out much of it's guts ,.. much cleaner now
2030 - added required methods and correct handling of
2031 them in apply() for both classes and roles
2032 - added tests for this
2033 - no longer adds a does() method to consuming classes
2034 it relys on the one in Moose::Object
2035 - added roles attribute and some methods to support
2036 roles consuming roles
2038 * Moose::Meta::Attribute
2039 - added support for triggers on attributes
2040 - added tests for this
2041 - added support for does option on an attribute
2042 - added tests for this
2044 * Moose::Meta::Class
2045 - added support for attribute triggers in the
2047 - added tests for this
2050 - Moose no longer creates a subtype for your class
2051 if a subtype of the same name already exists, this
2052 should DWIM in 99.9999% of all cases
2054 * Moose::Util::TypeConstraints
2055 - fixed bug where incorrect subtype conflicts were
2057 - added test for this
2060 - this class can now be extended with 'use base' if
2061 you need it, it properly loads the metaclass class now
2062 - added test for this
2064 0.03_02 Wed. April 12, 2006
2066 - you must now explictly use Moose::Util::TypeConstraints
2067 it no longer gets exported for you automatically
2070 - new() now accepts hash-refs as well as key/value lists
2071 - added does() method to check for Roles
2072 - added tests for this
2074 * Moose::Meta::Class
2075 - added roles attribute along with the add_role() and
2077 - added tests for this
2080 - now adds a does() method to consuming classes
2081 which tests the class's hierarchy for roles
2082 - added tests for this
2084 0.03_01 Mon. April 10, 2006
2086 - added new Role recipe (no content yet, only code)
2089 - added 'with' keyword for Role support
2090 - added test and docs for this
2091 - fixed subtype quoting bug
2092 - added test for this
2096 - added test and docs
2098 * Moose::Util::TypeConstraints
2099 - added the message keyword to add custom
2100 error messages to type constraints
2103 - the meta role to support Moose::Role
2104 - added tests and docs
2106 * Moose::Meta::Class
2107 - moved a number of things from Moose.pm
2108 to here, they should have been here
2111 * Moose::Meta::Attribute
2112 - moved the attribute option macros here
2113 instead of putting them in Moose.pm
2115 * Moose::Meta::TypeConstraint
2116 - added the message attributes and the
2118 - added tests and docs for this
2120 0.03 Thurs. March 30, 2006
2122 - added the Moose::Cookbook with 5 recipes,
2123 describing all the stuff Moose can do.
2126 - fixed an issue with &extends super class loading
2127 it now captures errors and deals with inline
2128 packages correctly (bug found by mst, solution
2130 - added super/override & inner/augment features
2131 - added tests and docs for these
2134 - BUILDALL now takes a reference of the %params
2135 that are passed to &new, and passes that to
2138 * Moose::Util::TypeConstraints
2139 - Type constraints now survive runtime reloading
2140 - added test for this
2142 * Moose::Meta::Class
2143 - fixed the way attribute defaults are handled
2144 during instance construction (bug found by chansen)
2146 * Moose::Meta::Attribute
2147 - read-only attributes now actually enforce their
2148 read-only-ness (this corrected in Class::MOP as
2151 0.02 Tues. March 21, 2006
2153 - many more tests, fixing some bugs and
2155 - &extends now loads the base module with
2157 - added UNIVERSAL::require to the
2160 - each new Moose class will also create
2161 and register a subtype of Object which
2162 correspond to the new Moose class.
2163 - the 'isa' option in &has now only
2164 accepts strings, and will DWIM in
2167 * Moose::Util::TypeConstraints
2168 - added type coercion features
2169 - added tests for this
2170 - added support for this in attributes
2171 and instance construction
2173 - type construction no longer creates a
2174 function, it registers the type instead.
2175 - added several functions to get the
2179 - BUILDALL and DEMOLISHALL were broken
2180 because of a mis-named hash key, Whoops :)
2182 * Moose::Meta::Attribute
2183 - adding support for coercion in the
2184 autogenerated accessors
2186 * Moose::Meta::Class
2187 - adding support for coercion in the
2188 instance construction
2190 * Moose::Meta::TypeConstraint
2191 * Moose::Meta::TypeCoercion
2192 - type constraints and coercions are now
2193 full fledges meta-objects
2195 0.01 Wed. March 15, 2006
2196 - Moooooooooooooooooose!!!