1 Revision history for Perl extension Moose
4 - Make some keyword errors use throw_error instead of croak
5 since Moose::Exporter wraps keywords now (Sartak)
8 - Revised every recipe for style and clarity. Also moved some
9 documentation out of cookbook recipes and into Moose::Manual
12 0.68 Wed, February 4, 2009
14 - Many spelling, typo, and formatting fixes by daxim.
16 * Moose::Manual::Attributes
17 - The NAME section in the POD used "Attribute" so search.cpan
18 didn't resolve links from other documents properly.
20 * Moose::Meta::Method::Overriden
21 - Now properly spelled as Overridden. Thanks to daxim for
24 0.67 Tue, February 3, 2009
26 - Lots of little typo fixes and a few clarifications. Several
27 pages didn't have proper titles, and so weren't actually
28 visible on search.cpan.org. Thanks to hanekomu for a variety
29 of fixes and formatting improvements.
31 0.66 Tue, February 3, 2009
33 - This is a brand new, extensive manual for Moose. This aims to
34 provide a complete introduction to all of Moose's
35 features. This work was funded as part of the Moose docs grant
36 from TPF. (Dave Rolsky)
38 * Moose::Meta::Attribute
39 - Added a delegation_metaclass method to replace a hard-coded
40 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
42 * Moose::Util::TypeConstraints
43 - If you created a subtype and passed a parent that Moose didn't
44 know about, it simply ignored the parent. Now it automatically
45 creates the parent as a class type. This may not be what you
46 want, but is less broken than before. (Dave Rolsky)
48 * Moose::Util::TypeConstraints
49 - This module tried throw errors by calling Moose->throw_error,
50 but it did not ensure that Moose was loaded first. This could
51 cause very unhelpful errors when it tried to throw an error
52 before Moose was loaded. (Dave Rolsky)
54 * Moose::Util::TypeConstraints
55 - You could declare a name with subtype such as "Foo!Bar" that
56 would be allowed, but if you used it in a parameterized type
57 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
58 vetting on names created via the sugar functions, so that they
59 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
61 0.65 Thu, January 22, 2008
62 * Moose and Moose::Meta::Method::Overridden
63 - If an overridden method called super(), and then the
64 superclass's method (not overridden) _also_ called super(),
65 Moose went into an endless recursion loop. Test provided by
66 Chris Prather. (Dave Rolsky)
68 * Moose::Meta::TypeConstraint
69 - All methods are now documented. (gphat)
71 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
72 - Fixed some bogus failures that occurred because we tried to
73 validate filesystem paths in a very ad-hoc and
74 not-quite-correct way. (Dave Rolsky)
76 * Moose::Util::TypeConstraints
77 - Added maybe_type to exports. See docs for details. (rjbs)
80 - Added Moose::Util::TypeConstraints to the SEE ALSO
84 - Methods created via an attribute can now fulfill a "requires"
85 declaration for a role. (nothingmuch)
87 * Moose::Meta::Method::*
88 - Stack traces from inlined code will now report its line and
89 file as being in your class, as opposed to in Moose
92 0.64 Wed, December 31, 2008
93 * Moose::Meta::Method::Accessor
94 - Always inline predicate and clearer methods (Sartak)
96 * Moose::Meta::Attribute
97 - Support for parameterized traits (Sartak)
98 - verify_against_type_constraint method to avoid duplication
99 and enhance extensibility (Sartak)
102 - Tests (but no support yet) for parameterized traits (Sartak)
105 - Require Class::MOP 0.75+, which has the side effect of making
106 sure we work on Win32. (Dave Rolsky)
108 0.63 Mon, December 8, 2008
110 - Some small grammar tweaks and bug fixes in non-Moose example
113 0.62_02 Fri, December 5, 2008
114 * Moose::Meta::Role::Application::ToClass
115 - When a class does not provide all of a role's required
116 methods, the error thrown now mentions all of the missing
117 methods, as opposed to just the first one found. Requested by
118 Curtis Poe (RT #41119). (Dave Rolsky)
120 * Moose::Meta::Method::Constructor
121 - Moose will no longer inline a constructor for your class
122 unless it inherits its constructor from Moose::Object, and
123 will warn when it doesn't inline. If you want to force
124 inlining anyway, pass "replace_constructor => 1" to
125 make_immutable. Addresses RT #40968, reported by Jon
126 Swartz. (Dave Rolsky)
127 - The quoting of default values could be broken if the default
128 contained a single quote ('). Now we use quotemeta to escape
129 anything potentially dangerous in the defaults. (Dave Rolsky)
131 0.62_01 Wed, December 3, 2008
133 - use the method->execute API for BUILDALL
134 and DEMOLISHALL (Sartak)
136 * Moose::Util::TypeConstraints
137 - We now make all the type constraint meta classes immutable
138 before creating the default types provided by Moose. This
139 should make loading Moose a little faster. (Dave Rolsky)
141 0.62 Wed November 26, 2008
142 * Moose::Meta::Role::Application::ToClass
143 Moose::Meta::Role::Application::ToRole
144 - fixed issues where excluding and aliasing the
145 same methods for a single role did not work
146 right (worked just fine with multiple
148 - added test for this (stevan)
150 * Moose::Meta::Role::Application::RoleSummation
151 - fixed the error message when trying to compose
152 a role with a role it excludes (Sartak)
155 - Catch another case where recursion caused the value
156 of $CALLER to be stamped on (t0m)
157 - added test for this (t0m)
160 - Remove the make_immutable keyword, which has been
161 deprecated since April. It breaks metaclasses that
162 use Moose without no Moose (Sartak)
164 * Moose::Meta::Attribute
165 - Removing an attribute from a class now also removes delegation
166 (handles) methods installed for that attribute (t0m)
167 - added test for this (t0m)
169 * Moose::Meta::Method::Constructor
170 - An attribute with a default that looked like a number (but was
171 really a string) would accidentally be treated as a number
172 when the constructor was made immutable (perigrin)
173 - added test for this (perigrin)
176 - create method for constructing a role
178 - added test for this (Sartak)
179 - anonymous roles! (Sartak)
180 - added test for this (Sartak)
183 - more consistent error messages (Sartak)
185 * Moose::Cookbook::Roles::Recipe1
186 - attempt to explain why a role that just requires
187 methods is useful (Sartak)
189 0.61 Fri November 7, 2008
190 * Moose::Meta::Attribute
191 - When passing a role to handles, it will be loaded if necessary
195 - Method objects returned by get_method (and other methods)
196 Could end up being returned without an associated_metaclass
197 attribute. Removing get_method_map, which is provided by
198 Class::MOP::Class, fixed this. The Moose version did nothing
199 different from its parent except introduce a bug. (Dave Rolsky)
200 - added tests for this (jdv79)
203 - Added a $VERSION to all .pm files which didn't have one. Fixes
204 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
206 * Moose::Cookbook::Basics::Recipe4
207 * Moose::Cookbook::Basics::Recipe6
208 - These files had spaces on the first line of the SYNOPSIS, as
209 opposed to a totally empty line. According to RT #40432, this
210 confuses POD parsers. (Dave Rolsky)
212 0.60 Fri October 24, 2008
214 - Passing "-traits" when loading Moose caused the Moose.pm
215 exports to be broken. Reported by t0m. (Dave Rolsky)
216 - Tests for this bug. (t0m)
219 - Change resolve_metaclass alias to use the new
220 load_first_existing_class function. This makes it a lot
221 simpler, and also around 5 times faster. (t0m)
222 - Add caching to resolve_metaclass_alias, which gives an order
223 of magnitude speedup to things which repeatedly call the
224 Moose::Meta::Attribute->does method, notably MooseX::Storage
227 * Moose::Util::TypeConstraint
228 - Put back the changes for parameterized constraints that
229 shouldn't have been removed in 0.59. We still cannot parse
230 them, but MooseX modules can create them in some other
231 way. See the 0.58 changes for more details. (jnapiorkowski)
232 - Changed the way subtypes are created so that the job is
233 delegated to a type constraint parent. This clears up some
234 hardcoded checking and should allow correct subtypes of
235 Moose::Meta::Type::Constraint. Don't rely on this new API too
236 much (create_child_type) because it may go away in the
237 future. (jnapiorkowski)
239 * Moose::Meta::TypeConstraint::Union
240 - Type constraint names are sorted as strings, not numbers.
243 * Moose::Meta::TypeConstraint::Parameterizable
244 - New parameterize method. This can be used as a factory method
245 to make a new type constraint with a given parameterized
246 type. (jnapiorkowski)
247 - added tests (jnapiorkowski)
249 0.59 Tue October 14, 2008
251 - Add abridged documentation for builder/default/initializer/
252 predicate, and link to more details sections in
253 Class::MOP::Attribute. (t0m)
255 * Moose::Util::TypeConstraints
256 - removed prototypes from all but the &-based stuff (mst)
258 * Moose::Util::TypeConstraints
259 - Creating a anonymous subtype with both a constraint and a
260 message failed with a very unhelpful error, but should just
261 work. Reported by t0m. (Dave Rolsky)
264 - Some tests that used Test::Warn if it was available failed
265 with older versions of Test::Warn. Reported by Fayland. (Dave
267 - Test firing behavior of triggers in relation to builder/default/
269 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
270 kinds of supported type. (t0m)
273 - In create(), do not pass "roles" option to the superclass
274 - added related test that creates an anon metaclass with
277 * Moose::Meta::TypeConstraint::Class
278 * Moose::Meta::TypeConstraint::Role
279 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
280 other types (as per change in 0.55_02). (t0m)
282 * Moose::Meta::TypeConstraint::Registry
283 - Fix warning when dealing with unknown type names (t0m)
285 * Moose::Util::TypeConstraints
286 - Reverted changes from 0.58 related to handle parameterized
287 types. This caused random failures on BSD and Win32 systems,
288 apparently related to the regex engine. This means that Moose
289 can no longer parse structured type constraints like
290 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
291 supported in a slightly different way via MooseX::Types some
292 time in the future. (Dave Rolsky)
294 0.58 Sat September 20, 2008
295 !! This release has an incompatible change regarding !!
296 !! how roles add methods to a class !!
298 * Roles and role application
299 ! Roles now add methods by calling add_method, not
300 alias_method. They make sure to always provide a method
301 object, which will be cloned internally. This means that it is
302 now possible to track the source of a method provided by a
303 role, and even follow its history through intermediate roles.
305 This means that methods added by a role now show up when
306 looking at a class's method list/map. (Dave Rolsky)
309 - From this release on, we'll try to maintain a list of
310 conflicting modules, and warn you if you have one
311 installed. For example, this release conflicts with ...
312 - MooseX::Singleton <= 0.11
313 - MooseX::Params::Validate <= 0.05
316 In general, we try to not break backwards compatibility for
317 most Moose users, but MooseX modules and other code which
318 extends Moose's metaclasses is often affected by very small
319 changes in the Moose internals.
321 * Moose::Meta::Method::Delegation
322 * Moose::Meta::Attribute
323 - Delegation methods now have their own method class. (Dave
326 * Moose::Meta::TypeConstraint::Parameterizable
327 - Added a new method 'parameterize' which is basically a factory
328 for the containing constraint. This makes it easier to create
329 new types of parameterized constraints. (jnapiorkowski)
331 * Moose::Meta::TypeConstraint::Union
332 - Changed the way Union types canonicalize their names to follow
333 the normalized TC naming rules, which means we strip all
334 whitespace. (jnapiorkowski)
336 * Moose::Util::TypeConstraints
337 - Parameter and Union args are now sorted, this makes Int|Str
338 the same constraint as Str|Int. (jnapiorkowski)
339 - Changes to the way Union types are parsed to more correctly
340 stringify their names. (jnapiorkowski)
341 - When creating a parameterized type, we now use the new
342 parameterize method. (jnapiorkowski)
343 - Incoming type constraint strings are now normalized to remove
344 all whitespace differences. (jnapiorkowski)
345 - Changed the way we parse type constraint strings so that we now
346 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
347 constraints. This lays the foundation for more flexible type
348 constraint implementations.
350 * Tests and docs for all the above. (jnapiorkowski)
354 - Moose::Exporter will no longer remove a subroutine that the
355 exporting package re-exports. Moose re-exports the
356 Carp::confess function, among others. The reasoning is that we
357 cannot know whether you have also explicitly imported those
358 functions for your own use, so we err on the safe side and
359 always keep them. (Dave Rolsky)
360 - added tests for this (rafl)
363 - Changes to how we fix metaclass compatibility that are much
364 too complicated to go into. The summary is that Moose is much
365 less likely to complain about metaclass incompatibility
366 now. In particular, if two metaclasses differ because
367 Moose::Util::MetaRole was used on the two corresponding
368 classes, then the difference in roles is reconciled for the
369 subclass's metaclass. (Dave Rolsky)
370 - Squashed an warning in _process_attribute (thepler)
373 - throw exceptions (sooner) for invalid attribute names (thepler)
374 - added tests for this (thepler)
376 * Moose::Util::MetaRole
377 - If you explicitly set a constructor or destructor class for a
378 metaclass object, and then applied roles to the metaclass,
379 that explicitly set class would be lost and replaced with the
383 * Moose::Meta::Attribute
384 * Moose::Meta::Method
387 * Moose::Error::Default
388 * Moose::Error::Croak
389 * Moose::Error::Confess
390 - All instances of confess() changed to use overridable
391 C<throw_error> method. This method ultimately calls a class
392 constructor, and you can change the class being called. In
393 addition, errors now pass more information than just a string.
394 The default C<error_class> behaves like C<Carp::confess>, so
395 the behavior is not visibly different for end users.
397 0.57 Wed September 3, 2008
399 - A new bit of doc intended to introduce folks familiar with
400 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
403 - Shows examples of two classes, each done first with and then
404 without Moose. This makes a nice parallel to
405 Moose::Intro. (Dave Rolsky)
407 * Moose::Util::TypeConstraints
408 - Fixed a bug in find_or_parse_type_constraint so that it
409 accepts a Moose::Meta::TypeConstraint object as the parent
410 type, not just a name (jnapiorkowski)
411 - added tests (jnapiorkowski)
414 - If Sub::Name was not present, unimporting failed to actually
415 remove some sugar subs, causing test failures (Dave Rolsky)
417 0.56 Mon September 1, 2008
418 For those not following the series of dev releases, there are
419 several major changes in this release of Moose.
420 ! Moose::init_meta should now be called as a method. See the
423 - Major performance improvements by nothingmuch.
425 - New modules for extension writers, Moose::Exporter and
426 Moose::Util::MetaRole by Dave Rolsky.
428 - Lots of doc improvements and additions, especially in the
433 * Removed all references to the experimental-but-no-longer-needed
434 Moose::Meta::Role::Application::ToMetaclassInstance.
436 * Require Class::MOP 0.65.
438 0.55_04 Sat August 30, 2008
439 * Moose::Util::MetaRole
440 * Moose::Cookbook::Extending::Recipe2
441 - This simplifies the application of roles to any meta class, as
442 well as the base object class. Reimplemented metaclass traits
443 using this module. (Dave Rolsky)
445 * Moose::Cookbook::Extending::Recipe1
446 - This a new recipe, an overview of various ways to write Moose
447 extensions (Dave Rolsky)
449 * Moose::Cookbook::Extending::Recipe3
450 * Moose::Cookbook::Extending::Recipe4
451 - These used to be Extending::Recipe1 and Extending::Recipe2,
454 0.55_03 Fri August 29, 2008
455 * No changes from 0.55_02 except increasing the Class::MOP
456 dependency to 0.64_07.
458 0.55_02 Fri August 29, 2008
459 * Makefile.PL and Moose.pm
460 - explicitly require Perl 5.8.0+ (Dave Rolsky)
462 * Moose::Util::TypeConstraints
463 - Fix warnings from find_type_constraint if the type is not
466 * Moose::Meta::TypeConstraint
467 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
468 return false if the type you specify cannot be found in the
469 type registry, rather than throwing an unhelpful and
470 coincidental exception. (t0m).
471 - added docs & test for this (t0m)
473 * Moose::Meta::TypeConstraint::Registry
474 - add_type_constraint now throws an exception if a parameter is
476 - added docs & test for this (t0m)
478 * Moose::Cookbook::FAQ
479 - Added a faq entry on the difference between "role" and "trait"
483 - Fixed a bug that caused role composition to not see a required
484 method when that method was provided by another role being
485 composed at the same time. (Dave Rolsky)
486 - test and bug finding (tokuhirom)
488 0.55_01 Wed August 20, 2008
490 !! Calling Moose::init_meta as a function is now !!
491 !! deprecated. Please see the Moose.pm docs for details. !!
493 * Moose::Meta::Method::Constructor
494 - Fix inlined constructor so that values produced by default
495 or builder methods are coerced as required. (t0m)
496 - added test for this (t0m)
498 * Moose::Meta::Attribute
499 - A lazy attribute with a default or builder did not attempt to
500 coerce the default value. The immutable code _did_
502 - added test for this (t0m)
505 - This is a new helper module for writing "Moose-alike"
506 modules. This should make the lives of MooseX module authors
507 much easier. (Dave Rolsky)
510 * Moose::Cookbook::Meta::Recipe5
511 - Implemented metaclass traits (and wrote a recipe for it):
513 use Moose -traits => 'Foo'
515 This should make writing small Moose extensions a little
518 * Moose::Cookbook::Basics::Recipe1
519 - Removed any examples of direct hashref access, and applied an
520 editorial axe to reduce verbosity. (Dave Rolsky)
522 * Moose::Cookbook::Basics::Recipe1
523 - Also applied an editorial axe here. (Dave Rolsky)
526 * Moose::Cookbook::Extending::Recipe1
527 * Moose::Cookbook::Extending::Recipe2
528 - Rewrote extending and embedding moose documentation and
529 recipes to use Moose::Exporter (Dave Rolsky)
533 - These two modules now warn when you load them from the main
534 package "main" package, because we will not export sugar to
535 main. Previously it just did nothing. (Dave Rolsky)
538 - Now provide an init_meta method just like Moose.pm, and you
539 can call this to provide an alternate role metaclass. (Dave
540 Rolsky and nothingmuch)
541 - get_method_map now respects the package cache flag (nothingmuch)
544 - Two new methods - add_method and wrap_method_body
548 - Optimizations including allowing constructors to accept hash
549 refs, making many more classes immutable, and making
550 constructors immutable. (nothingmuch)
552 0.55 Sun August 3, 2008
553 * Moose::Meta::Attribute
554 - breaking down the way 'handles' methods are
555 created so that the process can be more easily
556 overridden by subclasses (stevan)
558 * Moose::Meta::TypeConstraint
559 - fixing what is passed into a ->message with
560 the type constraints (RT #37569)
561 - added tests for this (Charles Alderman)
563 * Moose::Util::TypeConstraints
564 - fix coerce to accept anon types like subtype can (mst)
567 - reorganized the recipes into sections - Basics, Roles, Meta,
568 Extending - and wrote abstracts for each section (Dave Rolsky)
570 * Moose::Cookbook::Basics::Recipe10
571 - A new recipe that demonstrates operator overloading
572 in combination with Moose. (bluefeet)
574 * Moose::Cookbook::Meta::Recipe1
575 - an introduction to what meta is and why you'd want to make
576 your own metaclass extensions (Dave Rolsky)
578 * Moose::Cookbook::Meta::Recipe4
579 - a very simple metaclass example (Dave Rolsky)
581 * Moose::Cookbook::Extending::Recipe1
582 - how to write a Moose-alike module to use your own object base
585 * Moose::Cookbook::Extending::Recipe2
586 - how to write modules with an API just like C<Moose.pm> (Dave
590 - Tons of fixes, both syntactical and grammatical (Dave
591 Rolsky, Paul Fenwick)
593 0.54 Thurs. July 3, 2008
594 ... this is not my day today ...
596 * Moose::Meta::Attribute
597 - fixed legal_options_for_inheritance such that
598 clone_and_inherit options still works for
599 Class::MOP::Attribute objects and therefore
600 does not break MooseX::AttributeHelpers
603 0.53 Thurs. July 3, 2008
604 * Whoops, I guess I should run 'make manifest' before
605 actually releasing the module. No actual changes
606 in this release, except the fact that it includes
607 the changes that I didn't include in the last
610 0.52 Thurs. July 3, 2008
612 - added "FEATURE REQUESTS" section to the Moose docs
613 to properly direct people (stevan) (RT #34333)
614 - making 'extends' croak if it is passed a Role since
615 this is not ever something you want to do
616 (fixed by stevan, found by obra)
617 - added tests for this (stevan)
620 - adding support for DOES (as in UNIVERSAL::DOES)
622 - added test for this
624 * Moose::Meta::Attribute
625 - added legal_options_for_inheritance (wreis)
626 - added tests for this (wreis)
628 * Moose::Cookbook::Snacks::*
629 - removed some of the unfinished snacks that should
630 not have been released yet. Added some more examples
631 to the 'Keywords' snack. (stevan)
633 * Moose::Cookbook::Style
634 - added general Moose "style guide" of sorts to the
635 cookbook (nothingmuch) (RT #34335)
638 - added more BUILDARGS tests (stevan)
640 0.51 Thurs. Jun 26, 2008
642 - add unimport so "no Moose::Role" actually does
645 * Moose::Meta::Role::Application::ToRole
646 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
647 order to provide its own implementation, that method still got
648 added to the list of required methods for consumers of
649 RoleB. Now an aliased method is only added to the list of
650 required methods if the role doing the aliasing does not
651 provide its own implementation. See Recipe 11 for an example
652 of all this. (Dave Rolsky)
653 - added tests for this
655 * Moose::Meta::Method::Constructor
656 - when a single argument that wasn't a hashref was provided to
657 an immutabilized constructor, the error message was very
658 unhelpful, as opposed to the non-immutable error. Reported by
660 - added test for this (Dave Rolsky)
662 * Moose::Meta::Attribute
663 - added support for meta_attr->does("ShortAlias") (sartak)
664 - added tests for this (sartak)
665 - moved the bulk of the `handles` handling to the new
666 install_delegation method (Stevan)
669 - Added BUILDARGS, a new step in new()
671 * Moose::Meta::Role::Application::RoleSummation
672 - fix typos no one ever sees (sartak)
674 * Moose::Util::TypeConstraints
675 * Moose::Meta::TypeConstraint
676 * Moose::Meta::TypeCoercion
677 - Attempt to work around the ??{ } vs. threads issue
679 - Some null_constraint optimizations
681 0.50 Thurs. Jun 11, 2008
682 - Fixed a version number issue by bumping all modules
685 0.49 Thurs. Jun 11, 2008
686 !! This version now approx. 20-25% !!
687 !! faster with new Class::MOP 0.59 !!
689 * Moose::Meta::Attribute
690 - fixed how the is => (ro|rw) works with
691 custom defined reader, writer and accessor
693 - added docs for this (TODO).
694 - added tests for this (Thanks to Penfold)
695 - added the custom attribute alias for regular
696 Moose attributes which is "Moose"
697 - fix builder and default both being used
702 Moose::Meta::Attribute
704 Moose::Meta::Role::Composite
705 Moose::Util::TypeConstraints
706 - switched usage of reftype to ref because
710 - changing add_package_symbol to use the new
714 - fixed how DEMOLISHALL is called so that it
715 can be overrided in subclasses (thanks to Sartak)
716 - added test for this (thanks to Sartak)
718 * Moose::Util::TypeConstraints
719 - move the ClassName type check code to
720 Class::MOP::is_class_loaded (thanks to Sartak)
722 * Moose::Cookbook::Recipe11
723 - add tests for this (thanks to tokuhirom)
725 0.48 Thurs. May 29, 2008
726 (early morning release engineering)--
728 - fixing the version in Moose::Meta::Method::Destructor
729 which was causing the indexer to choke
731 0.47 Thurs. May 29, 2008
732 (late night release engineering)--
734 - fixing the version is META.yml, no functional
735 changes in this release
737 0.46 Wed. May 28, 2008
738 !! This version now approx. 20-25% !!
739 !! faster with new Class::MOP 0.57 !!
742 - some optimizations of the &initialize method
743 since it is called so often by &meta
747 - now use the get_all_package_symbols from the
748 updated Class::MOP, test suite is now 10 seconds
751 * Moose::Meta::Method::Destructor
752 - is_needed can now also be called as a class
753 method for immutablization to check if the
754 destructor object even needs to be created
757 * Moose::Meta::Method::Destructor
758 Moose::Meta::Method::Constructor
759 - added more descriptive error message to help
760 keep people from wasting time tracking an error
761 that is easily fixed by upgrading.
763 0.45 Saturday, May 24, 2008
765 - Because of work in Class::MOP 0.57, all
766 XS based functionality is now optional
767 and a Pure Perl version is supplied
768 - the CLASS_MOP_NO_XS environment variable
769 can now be used to force non-XS versions
771 - several of the packages have been tweaked
772 to take care of this, mostly we added
773 support for the package_name and name
774 variables in all the Method metaclasses
775 - before/around/after method modifiers now
776 support regexp matching of names
777 (thanks to Takatoshi Kitano)
778 - tests added for this
779 - NOTE: this only works for classes, it
780 is currently not supported in roles,
781 but, ... patches welcome
782 - All usage of Carp::confess have been replaced
783 by Carp::croak in the "keyword" functions since
784 the stack trace is usually not helpful
787 - All usage of Carp::confess have been replaced
788 by Carp::croak in the "keyword" functions since
789 the stack trace is usually not helpful
790 - The 'has' keyword for roles now accepts the
791 same array ref form that Moose.pm does
792 (has [qw/foo bar/] => (is => 'rw', ...))
793 - added test for this
795 * Moose::Meta::Attribute
796 - trigger on a ro-attribute is no longer an
797 error, as it's useful to trigger off of the
801 - added same 'add_package_symbol' fix as in
805 - does_role now handles non-Moose classes
807 - added tests for this
808 - added the 'add_method_modifier' function
809 (thanks to Takatoshi Kitano)
811 * Moose::Util::TypeConstraints
812 - subtypes of parameterizable types now are
813 themselves parameterizable types
815 * Moose::Meta::Method::Constructor
816 - fixed bug where trigger was not being
817 called by the inlined immutable
819 - added test for this (thanks to Caelum)
821 * Moose::Meta::Role::Application::ToInstance
822 - now uses the metaclass of the instance
823 (if possible) to create the anon-class
824 (thanks Jonathan Rockway)
826 * Moose::Cookbook::Recipe22
827 - added the meta-attribute trait recipe
831 - fixed hash-ordering test bug that was
832 causing occasional cpantester failures
833 - renamed the t/000_recipe/*.t tests to be
834 more descriptive (thanks to Sartak)
836 0.44 Sat. May 10, 2008
838 - made make_immutable warning cluck to
839 show where the error is (thanks mst)
842 - BUILDALL and DEMOLISHALL now call
843 ->body when looping through the
844 methods, to avoid the overloaded
846 - fixed issue where DEMOLISHALL was
847 eating the $@ values, and so not
848 working correctly, it still kind of
849 eats them, but so does vanilla perl
850 - added tests for this
852 * Moose::Cookbook::Recipe7
853 - added new recipe for immutable
854 functionality (thanks Dave Rolsky)
856 * Moose::Cookbook::Recipe9
857 - added new recipe for builder and
858 lazy_build (thanks Dave Rolsky)
860 * Moose::Cookbook::Recipe11
861 - added new recipe for method aliasing
862 and exclusion with Roles (thanks Dave Rolsky)
865 - fixed Win32 test failure (thanks spicyjack)
867 ~ removed Build.PL and Module::Build compat
868 since Module::Install has done that.
870 0.43 Wed. April, 30, 2008
872 drink more coffee before
873 doing release engineering
875 - whoops, forgot to do the smolder tests,
876 and we broke some of the custom meta-attr
877 modules. This fixes that.
879 0.42 Mon. April 28, 2008
880 - some bad tests slipped by, nothing else
881 changed in this release (cpantesters++)
883 - upped the Class::MOP dependency to 0.55
884 since we have tests which need the C3
887 0.41 Mon. April 28, 2008
888 ~~ numerous documentation updates ~~
890 - Changed all usage of die to Carp::croak for better
891 error reporting (initial patch by Tod Hagan)
894 - the make_immutable keyword is now deprecated, don't
895 use it in any new code and please fix your old code
896 as well. There will be 2 releases, and then it will
902 - refactored the way inner and super work to avoid
903 any method/@ISA cache penalty (nothingmuch)
906 - fixing &new_object to make sure trigger gets the
907 coerced value (spotted by Charles Alderman on the
909 - added test for this
911 * Moose::Meta::Method::Constructor
912 - immutable classes which had non-lazy attributes were calling
913 the default generating sub twice in the constructor. (bug
914 found by Jesse Luehrs, fixed by Dave Rolsky)
915 - added tests for this (Dave Rolsky)
916 - fix typo in initialize_body method (nothingmuch)
918 * Moose::Meta::Method::Destructor
919 - fix typo in initialize_body method (nothingmuch)
921 * Moose::Meta::Method::Overriden
922 Moose::Meta::Method::Augmented
923 - moved the logic for these into their own
924 classes (nothingmuch)
926 * Moose::Meta::Attribute
927 - inherited attributes may now be extended without
928 restriction on the type ('isa', 'does') (Sartak)
929 - added tests for this (Sartak)
930 - when an attribute property is malformed (such as lazy without
931 a default), give the name of the attribute in the error
933 - added the &applied_traits and &has_applied_traits methods
934 to allow introspection of traits
935 - added tests for this
936 - moved 'trait' and 'metaclass' argument handling to here from
938 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
939 '+foo' syntax) (nothingmuch)
940 - added tests for this (t0m)
943 - localize $@ inside DEMOLISHALL to avoid it
944 eating $@ (found by Ernesto)
945 - added test for this (thanks to Ernesto)
947 * Moose::Util::TypeConstraints
948 - &find_type_constraint now DWIMs when given an
949 type constraint object or name (nothingmuch)
950 - &find_or_create_type_constraint superseded with a number of more
952 - find_or_create_{isa,does}_type_constraint
953 - find_or_parse_type_constraint
955 * Moose::Meta::TypeConstraint
956 Moose::Meta::TypeConstraint::Class
957 Moose::Meta::TypeConstraint::Role
958 Moose::Meta::TypeConstraint::Enum
959 Moose::Meta::TypeConstraint::Union
960 Moose::Meta::TypeConstraint::Parameterized
961 - added the &equals method for comparing two type
962 constraints (nothingmuch)
963 - added tests for this (nothingmuch)
965 * Moose::Meta::TypeConstraint
966 - add the &parents method, which is just an alias to &parent.
967 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
969 * Moose::Meta::TypeConstraint::Class
970 - added the class attribute for introspection purposes
972 - added tests for this
974 * Moose::Meta::TypeConstraint::Enum
975 Moose::Meta::TypeConstraint::Role
976 - broke these out into their own classes (nothingmuch)
978 * Moose::Cookbook::Recipe*
979 - fixed references to test file locations in the POD
980 and updated up some text for new Moose features
984 - Added &resolve_metaclass_alias, a helper function for finding an actual
985 class for a short name (e.g. in the traits list)
987 0.40 Fri. March 14, 2008
988 - I hate Pod::Coverage
990 0.39 Fri. March 14, 2008
992 - documenting the use of '+name' with attributes
993 that come from recently composed roles. It makes
994 sense, people are using it, and so why not just
995 officially support it.
996 - fixing the 'extends' keyword so that it will not
997 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1000 - added the perl -Moose=+Class::Name feature to allow
1001 monkeypatching of classes in one liners
1004 - fixing the 'apply_all_roles' keyword so that it will not
1005 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1007 * Moose::Meta::Class
1008 - added ->create method which now supports roles (thanks to jrockway)
1009 - added tests for this
1010 - added ->create_anon_class which now supports roles and caching of
1011 the results (thanks to jrockway)
1012 - added tests for this
1013 - made ->does_role a little more forgiving when it is
1014 checking a Class::MOP era metaclasses.
1016 * Moose::Meta::Role::Application::ToInstance
1017 - it is now possible to pass extra params to be used when
1018 a role is applied to an the instance (rebless_params)
1019 - added tests for this
1021 * Moose::Util::TypeConstraints
1022 - class_type now accepts an optional second argument for a
1023 custom message. POD anotated accordingly (groditi)
1024 - added tests for this
1025 - it is now possible to make anon-enums by passing 'enum' an
1026 ARRAY ref instead of the $name => @values. Everything else
1028 - added tests for this
1031 - making test for using '+name' on attributes consumed
1032 from a role, it works and makes sense too.
1034 * Moose::Meta::Attribute
1035 - fix handles so that it doesn't return nothing
1036 when the method cannot be found, not sure why
1037 it ever did this originally, this means we now
1038 have slightly better support for AUTOLOADed
1040 - added more delegation tests
1041 - adding ->does method to this so as to better
1042 support traits and their introspection.
1043 - added tests for this
1046 - localizing the Data::Dumper configurations so
1047 that it does not pollute others (RT #33509)
1048 - made ->does a little more forgiving when it is
1049 passed Class::MOP era metaclasses.
1051 0.38 Fri. Feb. 15, 2008
1052 * Moose::Meta::Attribute
1053 - fixed initializer to correctly do
1054 type checking and coercion in the
1056 - added tests for this
1059 - fixed some finicky tests (thanks to konobi)
1061 0.37 Thurs. Feb. 14, 2008
1063 - fixed some details in Moose::init_meta
1064 and its superclass handling (thanks thepler)
1065 - added tests for this (thanks thepler)
1066 - 'has' now dies if you don't pass in name
1068 - added the 'make_immutable' keyword as a shortcut
1071 * Moose::Meta::Class
1072 Moose::Meta::Method::Constructor
1073 Moose::Meta::Attribute
1074 - making (init_arg => undef) work here too
1075 (thanks to nothingmuch)
1077 * Moose::Meta::Attribute
1078 Moose::Meta::Method::Constructor
1079 Moose::Meta::Method::Accessor
1080 - make lazy attributes respect attr initializers (rjbs)
1081 - added tests for this
1083 * Moose::Util::TypeConstraints
1084 Moose::Util::TypeConstraints::OptimizedConstraints
1085 Moose::Meta::TypeConstraints
1086 Moose::Meta::Attribute
1087 Moose::Meta::Method::Constructor
1088 Moose::Meta::Method::Accessor
1089 - making type errors use the
1090 assigned message (thanks to Sartak)
1091 - added tests for this
1093 * Moose::Meta::Method::Destructor
1094 - making sure DESTROY gets inlined properly
1095 with successive DEMOLISH calls (thanks to manito)
1097 * Moose::Meta::Attribute
1098 Moose::Meta::Method::Accessor
1099 - fixed handling of undef with type constraints
1101 - added tests for this
1104 - added &get_all_init_args and &get_all_attribute_values
1105 (thanks to Sartak and nothingmuch)
1107 0.36 Sat. Jan. 26, 2008
1109 Moose::Meta::Attribute
1110 - role type tests now support when roles are
1111 applied to non-Moose classes (found by ash)
1112 - added tests for this (thanks to ash)
1113 - couple extra tests to boost code coverage
1115 * Moose::Meta::Method::Constructor
1116 - improved fix for handling Class::MOP attributes
1117 - added test for this
1119 * Moose::Meta::Class
1120 - handled the add_attribute($attribute_meta_object)
1122 - added test for this
1124 0.35 Tues. Jan. 22, 2008
1125 * Moose::Meta::Method::Constructor
1126 - fix to make sure even Class::MOP attributes
1127 are handled correctly (Thanks to Dave Rolsky)
1128 - added test for this (also Dave Rolsky)
1130 * Moose::Meta::Class
1131 - improved error message on _apply_all_roles,
1132 you should now use Moose::Util::apply_all_roles
1133 and you shouldnt have been using a _ prefixed
1134 method in the first place ;)
1136 0.34 Mon. Jan. 21, 2008
1137 ~~~ more misc. doc. fixes ~~~
1138 ~~ updated copyright dates ~~
1140 Moose is now a postmodern object system :)
1141 - (see the POD for details)
1143 * <<Role System Refactoring>>
1144 - this release contains a major reworking and
1145 cleanup of the role system
1146 - 100% backwards compat.
1147 - Role application now restructured into seperate
1148 classes based on type of applicants
1149 - Role summation (combining of more than one role)
1150 is much cleaner and anon-classes are no longer
1151 used in this process
1152 - new Composite role metaclass
1153 - runtime application of roles to instances
1154 is now more efficient and re-uses generated
1155 classes when applicable
1157 * <<New Role composition features>>
1158 - methods can now be excluded from a given role
1160 - methods can now be aliased to another name (and
1161 still retain the original as well)
1163 * Moose::Util::TypeConstraints::OptimizedConstraints
1164 - added this module (see above)
1166 * Moose::Meta::Class
1167 - fixed the &_process_attribute method to be called
1168 by &add_attribute, so that the API is now correct
1170 * Moose::Meta::Method::Accessor
1171 - fixed bug when passing a list of values to
1172 an accessor would get (incorrectly) ignored.
1173 Thanks to Sartak for finding this ;)
1174 - added tests for this (Sartak again)
1176 * Moose::Meta::Method::Accessor
1177 Moose::Meta::Method::Constructor
1178 Moose::Meta::Attribute
1179 Moose::Meta::TypeConstraint
1180 Moose::Meta::TypeCoercion
1181 - lots of cleanup of such things as:
1183 - type constraint handling
1184 - error handling/messages
1185 (thanks to nothingmuch)
1187 * Moose::Meta::TypeConstraint::Parameterizable
1188 - added this module to support the refactor
1189 in Moose::Meta::TypeConstraint::Parameterized
1191 * Moose::Meta::TypeConstraint::Parameterized
1192 - refactored how these types are handled so they
1193 are more generic and not confined to ArrayRef
1197 - shortened some file names for better VMS support (RT #32381)
1199 0.33 Fri. Dec. 14, 2007
1200 !! Moose now loads 2 x faster !!
1201 !! with new Class::MOP 0.49 !!
1203 ++ new oose.pm module to make command line
1204 Moose-ness easier (see POD docs for more)
1206 * Moose::Meta::Class
1208 - several tweaks to take advantage of the
1209 new method map caching in Class::MOP
1211 * Moose::Meta::TypeConstraint::Parameterized
1212 - allow subtypes of ArrayRef and HashRef to
1213 be used as a container (sartak)
1214 - added tests for this
1215 - basic support for coercion to ArrayRef and
1216 HashRef for containers (sartak)
1217 - added tests for this
1219 * Moose::Meta::TypeCoercion
1220 - coercions will now create subtypes as needed
1221 so you can now add coercions to parameterized
1222 types without having to explictly define them
1223 - added tests for this
1225 * Moose::Meta::Method::Accessor
1226 - allow subclasses to decide whether we need
1227 to copy the value into a new variable (sartak)
1229 0.32 Tues. Dec. 4, 2007
1230 * Moose::Util::TypeConstraints
1231 - fixing how subtype aliases of unions work
1232 they should inherit the parent's coercion
1233 - added tests for this
1234 - you can now define multiple coercions on
1235 a single type at different times instead of
1236 having to do it all in one place
1237 - added tests for this
1239 * Moose::Meta::TypeConstraint
1240 - there is now a default constraint of sub { 1 }
1241 instead of Moose::Util::TypeConstraints setting
1244 * Moose::Meta::TypeCoercion
1245 * Moose::Meta::TypeCoercion::Union
1246 - added the &has_coercion_for_type and
1247 &add_type_coercions methods to support the
1248 new features above (although you cannot add
1249 more type coercions for Union types)
1251 0.31 Mon. Nov. 26, 2007
1252 * Moose::Meta::Attribute
1253 - made the +attr syntax handle extending types with
1254 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1255 now works if the original foo is an ArrayRef.
1256 - added tests for this.
1257 - delegation now works even if the attribute does not
1258 have a reader method using the get_read_method_ref
1259 method from Class::MOP::Attribute.
1260 - added tests for this
1261 - added docs for this
1263 * Moose::Util::TypeConstraints
1264 - passing no "additional attribute info" to
1265 &find_or_create_type_constraint will no longer
1266 attempt to create an __ANON__ type for you,
1267 instead it will just return undef.
1268 - added docs for this
1270 0.30 Fri. Nov. 23, 2007
1271 * Moose::Meta::Method::Constructor
1272 -builder related bug in inlined constructor. (groditi)
1274 * Moose::Meta::Method::Accessor
1275 - genereate unnecessary calls to predicates and refactor
1276 code generation for runtime speed (groditi)
1278 * Moose::Util::TypeConstraints
1279 - fix ClassName constraint to introspect symbol table (mst)
1280 - added more tests for this (mst)
1281 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1282 with work correctly.
1283 - added tests for this
1286 - adding the link to Recipie 11 (written by Sartak)
1287 - adding test for SYNOPSIS code
1290 - New tests for builder bug. Upon instantiation, if an
1291 attribute had a builder, no value and was not lazy the
1292 builder default was not getting run, oops. (groditi)
1294 0.29 Tues. Nov. 13, 2007
1295 * Moose::Meta::Attribute
1296 - Fix error message on missing builder method (groditi)
1298 * Moose::Meta::Method::Accessor
1299 - Fix error message on missing builder method (groditi)
1302 - Add test to check for the correct error message when
1303 builder method is missing (groditi)
1305 0.28 Tues. Nov. 13, 2007
1306 - 0.27 packaged incorrectly (groditi)
1308 0.27 Tues. Nov. 13, 2007
1309 * Moose::Meta::Attribute
1310 - Added support for the new builder option (groditi)
1311 - Added support for lazy_build option (groditi)
1312 - Changed slot initialization for predicate changes (groditi)
1314 * Moose::Meta::Method::Accessor
1315 - Added support for lazy_build option (groditi)
1316 - Fix inline methods to work with corrected predicate
1319 * Moose::Meta::Method::Constructor
1320 - Added support for lazy_build option (groditi)
1323 - tests for builder and lazy_build (groditi)
1325 * fixing some misc. bits in the docs that
1326 got mentioned on CPAN Forum & perlmonks
1329 - fixed how required methods are handled
1330 when they encounter overriden or modified
1331 methods from a class (thanks to confound).
1332 - added tests for this
1334 * Moose::Util::TypeConstraint
1335 - fixed the type notation parser so that
1336 the | always creates a union and so is
1337 no longer a valid type char (thanks to
1338 konobi, mugwump and #moose for working
1340 - added more tests for this
1342 0.26 Thurs. Sept. 27, 2007
1345 * Parameterized Types
1346 We now support parameterized collection types, such as:
1347 ArrayRef[Int] # array or integers
1348 HashRef[Object] # a hash with object values
1349 They can also be nested:
1350 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1351 And work with the type unions as well:
1352 ArrayRef[Int | Str] # array of integers of strings
1354 * Better Framework Extendability
1355 Moose.pm is now "extendable" such that it is now much
1356 easier to extend the framework and add your own keywords
1357 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1358 section of the Moose.pm docs.
1361 In an effort to begin documenting some of the various
1362 details of Moose as well as some common idioms, we have
1363 created Moose::Cookbook::Snacks as a place to find
1364 small (easily digestable) nuggets of Moose code.
1367 ~ Several doc updates/cleanup thanks to castaway ~
1369 - converted build system to use Module::Install instead of
1370 Module::Build (thanks to jrockway)
1373 - added all the meta classes to the immutable list and
1374 set it to inline the accessors
1375 - fix import to allow Sub::Exporter like { into => }
1376 and { into_level => } (perigrin)
1377 - exposed and documented init_meta() to allow better
1378 embedding and extending of Moose (perigrin)
1381 - complete re-organization of the test suite
1382 - added some new tests as well
1383 - finally re-enabled the Moose::POOP test since
1384 the new version of DBM::Deep now works again
1387 * Moose::Meta::Class
1388 - fixed very odd and very nasty recursion bug with
1390 - added tests for this (eilara)
1392 * Moose::Meta::Attribute
1393 Moose::Meta::Method::Constructor
1394 Moose::Meta::Method::Accessor
1395 - fixed issue with overload::Overloaded getting called
1396 on non-blessed items. (RT #29269)
1397 - added tests for this
1399 * Moose::Meta::Method::Accessor
1400 - fixed issue with generated accessor code making
1401 assumptions about hash based classes (thanks to dexter)
1403 * Moose::Coookbook::Snacks
1404 - these are bits of documentation, not quite as big as
1405 Recipes but which have no clear place in the module docs.
1406 So they are Snacks! (horray for castaway++)
1408 * Moose::Cookbook::Recipe4
1409 - updated it to use the new ArrayRef[MyType] construct
1410 - updated the accompanying test as well
1412 +++ Major Refactor of the Type Constraint system +++
1413 +++ with new features added as well +++
1415 * Moose::Util::TypeConstraint
1416 - no longer uses package variable to keep track of
1417 the type constraints, now uses the an instance of
1418 Moose::Meta::TypeConstraint::Registry to do it
1419 - added more sophisticated type notation parsing
1421 - added tests for this
1423 * Moose::Meta::TypeConstraint
1424 - some minor adjustments to make subclassing easier
1425 - added the package_defined_in attribute so that we
1426 can track where the type constraints are created
1428 * Moose::Meta::TypeConstraint::Union
1429 - this is now been refactored to be a subclass of
1430 Moose::Meta::TypeConstraint
1432 * Moose::Meta::TypeCoercion::Union
1433 - this has been added to service the newly refactored
1434 Moose::Meta::TypeConstraint::Union and is itself
1435 a subclass of Moose::Meta::TypeCoercion
1437 * Moose::Meta::TypeConstraint::Parameterized
1438 - added this module (taken from MooseX::AttributeHelpers)
1439 to help construct nested collection types
1440 - added tests for this
1442 * Moose::Meta::TypeConstraint::Registry
1443 - added this class to keep track of type constraints
1445 0.25 Mon. Aug. 13, 2007
1447 - Documentation update to reference Moose::Util::TypeConstraints
1448 under 'isa' in 'has' for how to define a new type
1449 (thanks to shlomif).
1451 * Moose::Meta::Attribute
1452 - required attributes now will no longer accept undef
1453 from the constructor, even if there is a default and lazy
1454 - added tests for this
1455 - default subroutines must return a value which passes the
1457 - added tests for this
1459 * Moose::Meta::Attribute
1460 * Moose::Meta::Method::Constructor
1461 * Moose::Meta::Method::Accessor
1462 - type-constraint tests now handle overloaded objects correctly
1463 in the error message
1464 - added tests for this (thanks to EvanCarroll)
1466 * Moose::Meta::TypeConstraint::Union
1467 - added (has_)hand_optimized_constraint to this class so that
1468 it behaves as the regular Moose::Meta::TypeConstraint does.
1471 - large refactoring of this code
1472 - added several more tests
1473 - tests for subtle conflict resolition issues
1474 added, but not currently running
1477 * Moose::Cookbook::Recipe7
1478 - added new recipe for augment/inner functionality
1480 - added test for this
1483 - a formal definition of roles (still in progress)
1486 - utilities for easier working with Moose classes
1487 - added tests for these
1490 - This contains Moose specific test functions
1491 - added tests for these
1493 0.24 Tues. July 3, 2007
1494 ~ Some doc updates/cleanup ~
1496 * Moose::Meta::Attribute
1497 - added support for roles to be given as parameters
1498 to the 'handles' option.
1499 - added tests and docs for this
1500 - the has '+foo' attribute form now accepts changes to
1501 the lazy option, and the addition of a handles option
1502 (but not changing the handles option)
1503 - added tests and docs for this
1506 - required methods are now fetched using find_method_by_name
1507 so that required methods can come from superclasses
1508 - adjusted tests for this
1510 0.23 Mon. June 18, 2007
1511 * Moose::Meta::Method::Constructor
1512 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1513 * Moose::Meta::Class
1514 - Modify make_immutable to work with the new Class::MOP immutable
1515 mechanism + POD + very basic test (groditi)
1516 * Moose::Meta::Attribute
1517 - Fix handles to use goto() so that caller() comes out properly on
1518 the other side (perigrin)
1520 0.22 Thurs. May 31, 2007
1521 * Moose::Util::TypeConstraints
1522 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1523 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1524 prototypes for functions
1525 - added the ClassName type constraint, this checks for strings
1526 which will respond true to ->isa(UNIVERSAL).
1527 - added tests and docs for this
1528 - subtyping just in name now works correctly by making the
1529 default for where be { 1 }
1530 - added test for this
1532 * Moose::Meta::Method::Accessor
1533 - coerce and lazy now work together correctly, thanks to
1534 merlyn for finding this bug
1535 - tests added for this
1536 - fix reader presedence bug in Moose::Meta::Attribute + tests
1539 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1540 a HASH-ref and missed. This produces better error messages then
1541 having it die cause undef is not a HASH.
1542 - added tests for this
1544 0.21 Thursday, May 2nd, 2007
1546 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1547 - modified unimport to remove super and inner along with the rest
1548 - altered unimport tests to handle this
1551 - altered super export to populate SUPER_SLOT
1553 * Moose::Meta::Class
1554 - altered augment and override modifier application to use *_SLOT
1555 - modified tests for these to unimport one test class each to test
1558 - fixed issue where custom attribute metaclasses
1559 where not handled correctly in roles
1560 - added tests for this
1562 * Moose::Meta::Class
1563 - fixed issue where extending metaclasses with
1564 roles would blow up. Thanks to Aankhen`` for
1565 finding this insidious error, and it's solution.
1567 ~~ lots of spelling and grammer fixes in the docs,
1568 many many thanks to rlb3 and Aankhen for these :)
1570 0.20 Friday, April 6th, 2007
1571 >> I messed up the SKIP logic in one test
1572 so this release is just to fix that.
1575 - 'has' now also accepts an ARRAY ref
1576 to create multiple attrs (see docs)
1577 (thanks to konobi for this)
1578 - added tests and docs
1580 0.19 Thurs. April 5th, 2007
1581 ~~ More documentation updates ~~
1583 * Moose::Util::TypeConstraints
1584 - 'type' now supports messages as well
1585 thanks to phaylon for finding this
1586 - added tests for this
1587 - added &list_all_type_constraints and
1588 &list_all_builtin_type_constraints
1589 functions to facilitate introspection.
1591 * Moose::Meta::Attribute
1592 - fixed regexp 'handles' declarations
1593 to build the list of delegated methods
1594 correctly (and not override important
1595 things like &new) thanks to ashleyb
1597 - added tests and docs for this
1598 - added the 'documentation' attributes
1599 so that you can actually document your
1600 attributes and inspect them through the
1602 - added tests and docs for this
1604 * Moose::Meta::Class
1605 - when loading custom attribute metaclasses
1606 it will first look in for the class in the
1607 Moose::Meta::Attribute::Custom::$name, and
1608 then default to just loading $name.
1609 - added tests and docs for this
1611 * Moose::Meta::TypeConstraint
1612 - type constraints now stringify to their names.
1613 - added test for this
1616 - added tests to assure we work with Module::Refresh
1617 - added stricter test skip logic in the Moose POOP
1618 test, ask Rob Kinyon why.
1619 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1621 0.18 Sat. March 10, 2007
1622 ~~ Many, many documentation updates ~~
1625 - We now use Class::MOP::load_class to
1627 - added tests to show types and subtypes
1628 working with Declare::Constraints::Simple
1629 and Test::Deep as constraint engines.
1632 !! You must have Class::MOP 0.37_001 !!
1633 !! for this developer release to work !!
1635 This release was primarily adding the immutable
1636 feature to Moose. An immutable class is one which
1637 you promise not to alter. When you set the class
1638 as immutable it will perform various bits of
1639 memoization and inline certain part of the code
1640 (constructors, destructors and accessors). This
1641 minimizes (and in some cases totally eliminates)
1642 one of Moose's biggest performance hits. This
1643 feature is not on by default, and is 100% optional.
1644 It has several configurable bits as well, so you
1645 can pick and choose to your specific needs.
1647 The changes involved in this were fairly wide and
1648 highly specific, but 100% backwards compatible, so
1649 I am not going to enumerate them here. If you are
1650 truely interested in what was changed, please do
1653 0.17 Tues. Nov. 14, 2006
1654 * Moose::Meta::Method::Accessor
1655 - bugfix for read-only accessors which
1656 are have a type constraint and lazy.
1657 Thanks to chansen for finding it.
1659 0.16 Tues. Nov. 14, 2006
1661 There are some speed improvements in this release,
1662 but they are only the begining, so stay tuned.
1665 - BUILDALL and DEMOLISHALL no longer get
1666 called unless they actually need to be.
1667 This gave us a signifigant speed boost
1668 for the cases when there is no BUILD or
1669 DEMOLISH method present.
1671 * Moose::Util::TypeConstraints
1672 * Moose::Meta::TypeConstraint
1673 - added an 'optimize_as' option to the
1674 type constraint, which allows for a
1675 hand optimized version of the type
1676 constraint to be used when possible.
1677 - Any internally created type constraints
1678 now provide an optimized version as well.
1680 0.15 Sun. Nov. 5, 2006
1682 This version of Moose *must* have Class::MOP 0.36 in order
1683 to work correctly. A number of small internal tweaks have
1684 been made in order to be compatible with that release.
1686 * Moose::Util::TypeConstraints
1687 - added &unimport so that you can clean out
1688 your class namespace of these exported
1691 * Moose::Meta::Class
1692 - fixed minor issue which occasionally
1693 comes up during global destruction
1695 - moved Moose::Meta::Method::Overriden into
1699 - moved Moose::Meta::Role::Method into
1702 * Moose::Meta::Attribute
1703 - changed how we do type checks so that
1704 we reduce the overall cost, but still
1707 - moved accessor generation methods to
1708 Moose::Meta::Method::Accessor to
1709 conform to the API changes from
1712 * Moose::Meta::TypeConstraint
1713 - changed how constraints are compiled
1714 so that we do less recursion and more
1715 iteration. This makes the type check
1717 - moved Moose::Meta::TypeConstraint::Union
1720 * Moose::Meta::Method::Accessor
1721 - created this from methods formerly found in
1722 Moose::Meta::Attribute
1724 * Moose::Meta::Role::Method
1725 - moved this from Moose::Meta::Role
1727 * Moose::Meta::Method::Overriden
1728 - moved this from Moose::Meta::Class
1730 * Moose::Meta::TypeConstraint::Union
1731 - moved this from Moose::Meta::TypeConstraint
1733 0.14 Mon. Oct. 9, 2006
1735 * Moose::Meta::Attribute
1736 - fixed lazy attributes which were not getting
1737 checked with the type constraint (thanks ashley)
1738 - added tests for this
1739 - removed the over-enthusiastic DWIMery of the
1740 automatic ArrayRef and HashRef defaults, it
1741 broke predicates in an ugly way.
1742 - removed tests for this
1744 0.13 Sat. Sept. 30, 2006
1746 This version of Moose *must* have Class::MOP 0.35 in order
1747 to work correctly. A number of small internal tweaks have
1748 been made in order to be compatible with that release.
1751 - Removed the use of UNIVERSAL::require to be a better
1752 symbol table citizen and remove a dependency
1753 (thanks Adam Kennedy)
1755 **~~ removed experimental & undocumented feature ~~**
1756 - commented out the 'method' and 'self' keywords, see the
1757 comments for more info.
1760 - added a FAQ and WTF files to document frequently
1761 asked questions and common problems
1763 * Moose::Util::TypeConstraints
1764 - added GlobRef and FileHandle type constraint
1765 - added tests for this
1767 * Moose::Meta::Attribute
1768 - if your attribute 'isa' ArrayRef of HashRef, and you have
1769 not explicitly set a default, then make the default DWIM.
1770 This will also work for subtypes of ArrayRef and HashRef
1772 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1773 - new test added for this (thanks to ashley)
1776 - added basic support for runtime role composition
1777 but this is still *highly experimental*, so feedback
1778 is much appreciated :)
1779 - added tests for this
1781 * Moose::Meta::TypeConstraint
1782 - the type constraint now handles the coercion process
1783 through delegation, this is to support the coercion
1786 * Moose::Meta::TypeConstraint::Union
1787 - it is now possible for coercions to be performed
1789 - added tests for this (thanks to konobi)
1791 * Moose::Meta::TypeCoercion
1792 - properly capturing error when type constraint
1796 - Scalar::Util 1.18 is bad on Win32, so temporarily
1797 only require version 1.17 for Win32 and cygwin.
1798 (thanks Adam Kennedy)
1800 0.12 Sat. Sept. 1, 2006
1802 - Recipe5 (subtypes & coercion) has been written
1805 - fixed "bad meta" error message to be more descriptive
1806 - fixed &unimport to not remove the &inner and &super
1807 keywords because we need to localize them.
1808 - fixed number of spelling/grammer issues, thanks Theory :)
1810 **~~ experimental & undocumented feature ~~**
1811 - added the method and self keywords, they are basically
1812 just sugar, and they may not stay around.
1815 - added &dump method to easily Data::Dumper
1818 * Moose::Meta::TypeConstraint
1819 - added the &is_a_type_of method to check both the current
1820 and the subtype of a method (similar to &isa with classes)
1823 - this is now a subclass of Class::MOP::Module, and no longer
1824 creates the _role_meta ugliness of before.
1825 - fixed tests to reflect this change
1827 0.11 Wed. July 12, 2006
1829 - added an &unimport method to remove all the keywords
1830 that Moose will import, simply add 'no Moose' to the
1831 bottom of your class file.
1834 - fixed some test failures caused by a forgotten test
1837 0.10 Thurs. July 6, 2006
1839 - improved error message when loading modules so
1840 it is less confusing when you load a role.
1841 - added &calculate_all_roles method to
1842 Moose::Meta::Class and Moose::Meta::Role
1845 This module has been tested against Class::MOP 0.30
1846 but it does not yet utilize the optimizations
1847 it makes available. Stay tuned for that ;)
1849 0.09_03 Fri. June 23, 2006
1850 ++ DEVELOPER RELEASE ++
1852 - 'use strict' and 'use warnings' are no longer
1853 needed in Moose classes, Moose itself will
1854 turn them on for you.
1855 - added tests for this
1856 - moved code from exported subs to private methods
1857 in Moose::Meta::Class
1860 - as with Moose, strict and warnings are
1861 automatically turned on for you.
1862 - added tests for this
1865 - now handles an edge case for override errors
1866 - added tests for this
1867 - added some more edge case tests
1869 0.09_02 Tues. May 16, 2006
1870 ++ DEVELOPER RELEASE ++
1872 - added prototypes to the exported subs
1876 - added prototypes to the exported subs
1879 * Moose::Util::TypeConstraints
1880 - cleaned up prototypes for the subs
1883 0.09_01 Fri. May 12, 2006
1884 ++ DEVELOPER RELEASE ++
1885 - This release works in combination with
1886 Class::MOP 0.29_01, it is a developer
1887 release because it uses the a new
1888 instance sub-protocol and a fairly
1889 complete Role implementation. It has
1890 not yet been optimized, so it slower
1891 the the previous CPAN version. This
1892 release also lacks good updated docs,
1893 the official release will have updated docs.
1896 - refactored the keyword exports
1897 - 'with' now checks Role validaity and
1898 accepts more than one Role at a time
1899 - 'extends' makes metaclass adjustments as
1900 needed to ensure metaclass compatibility
1903 - refactored the keyword exports
1904 - 'with' now checks Role validaity and
1905 accepts more than one Role at a time
1907 * Moose::Util::TypeConstraints
1908 - added the 'enum' keyword for simple
1909 string enumerations which can be used as
1911 - see example of usage in t/202_example.t
1914 - more careful checking of params to new()
1917 - much work done on the role composition
1918 - many new tests for conflict detection
1919 and composition edge cases
1920 - not enough documentation, I suggest
1921 looking at the tests
1923 * Moose::Meta::Instance
1924 - added new Instance metaclass to support
1925 the new Class::MOP instance protocol
1927 * Moose::Meta::Class
1928 - some small changes to support the new
1930 - some small additions to support Roles
1932 * Moose::Meta::Attribute
1933 - some improvements to the accessor generation code
1935 - some small changes to support the new
1937 - (still somewhat) experimental delegation support
1938 with the 'handles' option
1939 - added several tests for this
1940 - no docs for this yet
1942 0.05 Thurs. April 27, 2006
1944 - keywords are now exported with Sub::Exporter
1945 thanks to chansen for this commit
1946 - has keyword now takes a 'metaclass' option
1947 to support custom attribute meta-classes
1948 on a per-attribute basis
1949 - added tests for this
1950 - the 'has' keyword not accepts inherited slot
1951 specifications (has '+foo'). This is still an
1952 experimental feature and probably not finished
1953 see t/038_attribute_inherited_slot_specs.t for
1954 more details, or ask about it on #moose
1955 - added tests for this
1958 - keywords are now exported with Sub::Exporter
1960 * Moose::Utils::TypeConstraints
1961 - reorganized the type constraint hierarchy, thanks
1962 to nothingmuch and chansen for his help and advice
1964 - added some tests for this
1965 - keywords are now exported with Sub::Exporter
1966 thanks to chansen for this commit
1968 * Moose::Meta::Class
1969 - due to changes in Class::MOP, we had to change
1970 construct_instance (for the better)
1972 * Moose::Meta::Attribute
1973 - due to changes in Class::MOP, we had to add the
1974 initialize_instance_slot method (it's a good thing)
1976 * Moose::Meta::TypeConstraint
1977 - added type constraint unions
1978 - added tests for this
1979 - added the is_subtype_of predicate method
1980 - added tests for this
1982 0.04 Sun. April 16th, 2006
1984 - Roles can now consume other roles
1985 - added tests for this
1986 - Roles can specify required methods now with
1987 the requires() keyword
1988 - added tests for this
1991 - ripped out much of it's guts ,.. much cleaner now
1992 - added required methods and correct handling of
1993 them in apply() for both classes and roles
1994 - added tests for this
1995 - no longer adds a does() method to consuming classes
1996 it relys on the one in Moose::Object
1997 - added roles attribute and some methods to support
1998 roles consuming roles
2000 * Moose::Meta::Attribute
2001 - added support for triggers on attributes
2002 - added tests for this
2003 - added support for does option on an attribute
2004 - added tests for this
2006 * Moose::Meta::Class
2007 - added support for attribute triggers in the
2009 - added tests for this
2012 - Moose no longer creates a subtype for your class
2013 if a subtype of the same name already exists, this
2014 should DWIM in 99.9999% of all cases
2016 * Moose::Util::TypeConstraints
2017 - fixed bug where incorrect subtype conflicts were
2019 - added test for this
2022 - this class can now be extended with 'use base' if
2023 you need it, it properly loads the metaclass class now
2024 - added test for this
2026 0.03_02 Wed. April 12, 2006
2028 - you must now explictly use Moose::Util::TypeConstraints
2029 it no longer gets exported for you automatically
2032 - new() now accepts hash-refs as well as key/value lists
2033 - added does() method to check for Roles
2034 - added tests for this
2036 * Moose::Meta::Class
2037 - added roles attribute along with the add_role() and
2039 - added tests for this
2042 - now adds a does() method to consuming classes
2043 which tests the class's hierarchy for roles
2044 - added tests for this
2046 0.03_01 Mon. April 10, 2006
2048 - added new Role recipe (no content yet, only code)
2051 - added 'with' keyword for Role support
2052 - added test and docs for this
2053 - fixed subtype quoting bug
2054 - added test for this
2058 - added test and docs
2060 * Moose::Util::TypeConstraints
2061 - added the message keyword to add custom
2062 error messages to type constraints
2065 - the meta role to support Moose::Role
2066 - added tests and docs
2068 * Moose::Meta::Class
2069 - moved a number of things from Moose.pm
2070 to here, they should have been here
2073 * Moose::Meta::Attribute
2074 - moved the attribute option macros here
2075 instead of putting them in Moose.pm
2077 * Moose::Meta::TypeConstraint
2078 - added the message attributes and the
2080 - added tests and docs for this
2082 0.03 Thurs. March 30, 2006
2084 - added the Moose::Cookbook with 5 recipes,
2085 describing all the stuff Moose can do.
2088 - fixed an issue with &extends super class loading
2089 it now captures errors and deals with inline
2090 packages correctly (bug found by mst, solution
2092 - added super/override & inner/augment features
2093 - added tests and docs for these
2096 - BUILDALL now takes a reference of the %params
2097 that are passed to &new, and passes that to
2100 * Moose::Util::TypeConstraints
2101 - Type constraints now survive runtime reloading
2102 - added test for this
2104 * Moose::Meta::Class
2105 - fixed the way attribute defaults are handled
2106 during instance construction (bug found by chansen)
2108 * Moose::Meta::Attribute
2109 - read-only attributes now actually enforce their
2110 read-only-ness (this corrected in Class::MOP as
2113 0.02 Tues. March 21, 2006
2115 - many more tests, fixing some bugs and
2117 - &extends now loads the base module with
2119 - added UNIVERSAL::require to the
2122 - each new Moose class will also create
2123 and register a subtype of Object which
2124 correspond to the new Moose class.
2125 - the 'isa' option in &has now only
2126 accepts strings, and will DWIM in
2129 * Moose::Util::TypeConstraints
2130 - added type coercion features
2131 - added tests for this
2132 - added support for this in attributes
2133 and instance construction
2135 - type construction no longer creates a
2136 function, it registers the type instead.
2137 - added several functions to get the
2141 - BUILDALL and DEMOLISHALL were broken
2142 because of a mis-named hash key, Whoops :)
2144 * Moose::Meta::Attribute
2145 - adding support for coercion in the
2146 autogenerated accessors
2148 * Moose::Meta::Class
2149 - adding support for coercion in the
2150 instance construction
2152 * Moose::Meta::TypeConstraint
2153 * Moose::Meta::TypeCoercion
2154 - type constraints and coercions are now
2155 full fledges meta-objects
2157 0.01 Wed. March 15, 2006
2158 - Moooooooooooooooooose!!!