1 Revision history for Perl extension Moose
3 0.70 Sat, February 14, 2009
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)
24 * Moose::Meta::Attribute
25 - We no longer pass the meta-attribute object as a final
26 argument to triggers. This actually changed for inlined code a
27 while back, but the non-inlined version and the docs were
31 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
32 they require 0.11. (Dave Rolsky)
35 - Lots of small changes to the manual, cookbook, and
36 elsewhere. These were based on feedback from various
37 users, too many to list here. (Dave Rolsky)
39 0.69 Thu, February 12, 2009
41 - Make some keyword errors use throw_error instead of croak
42 since Moose::Exporter wraps keywords now (Sartak)
45 - Revised every recipe for style and clarity. Also moved some
46 documentation out of cookbook recipes and into Moose::Manual
47 pages. This work was funded as part of the Moose docs grant
48 from TPF. (Dave Rolsky)
50 * Moose::Meta::Method::Delegation
51 - If the attribute doing the delegation was not populated, the
52 error message did not specify the attribute name
55 0.68 Wed, February 4, 2009
57 - Many spelling, typo, and formatting fixes by daxim.
59 * Moose::Manual::Attributes
60 - The NAME section in the POD used "Attribute" so search.cpan
61 didn't resolve links from other documents properly.
63 * Moose::Meta::Method::Overriden
64 - Now properly spelled as Overridden. Thanks to daxim for
67 0.67 Tue, February 3, 2009
69 - Lots of little typo fixes and a few clarifications. Several
70 pages didn't have proper titles, and so weren't actually
71 visible on search.cpan.org. Thanks to hanekomu for a variety
72 of fixes and formatting improvements.
74 0.66 Tue, February 3, 2009
76 - This is a brand new, extensive manual for Moose. This aims to
77 provide a complete introduction to all of Moose's
78 features. This work was funded as part of the Moose docs grant
79 from TPF. (Dave Rolsky)
81 * Moose::Meta::Attribute
82 - Added a delegation_metaclass method to replace a hard-coded
83 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
85 * Moose::Util::TypeConstraints
86 - If you created a subtype and passed a parent that Moose didn't
87 know about, it simply ignored the parent. Now it automatically
88 creates the parent as a class type. This may not be what you
89 want, but is less broken than before. (Dave Rolsky)
91 * Moose::Util::TypeConstraints
92 - This module tried throw errors by calling Moose->throw_error,
93 but it did not ensure that Moose was loaded first. This could
94 cause very unhelpful errors when it tried to throw an error
95 before Moose was loaded. (Dave Rolsky)
97 * Moose::Util::TypeConstraints
98 - You could declare a name with subtype such as "Foo!Bar" that
99 would be allowed, but if you used it in a parameterized type
100 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
101 vetting on names created via the sugar functions, so that they
102 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
104 0.65 Thu, January 22, 2008
105 * Moose and Moose::Meta::Method::Overridden
106 - If an overridden method called super(), and then the
107 superclass's method (not overridden) _also_ called super(),
108 Moose went into an endless recursion loop. Test provided by
109 Chris Prather. (Dave Rolsky)
111 * Moose::Meta::TypeConstraint
112 - All methods are now documented. (gphat)
114 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
115 - Fixed some bogus failures that occurred because we tried to
116 validate filesystem paths in a very ad-hoc and
117 not-quite-correct way. (Dave Rolsky)
119 * Moose::Util::TypeConstraints
120 - Added maybe_type to exports. See docs for details. (rjbs)
123 - Added Moose::Util::TypeConstraints to the SEE ALSO
127 - Methods created via an attribute can now fulfill a "requires"
128 declaration for a role. (nothingmuch)
130 * Moose::Meta::Method::*
131 - Stack traces from inlined code will now report its line and
132 file as being in your class, as opposed to in Moose
135 0.64 Wed, December 31, 2008
136 * Moose::Meta::Method::Accessor
137 - Always inline predicate and clearer methods (Sartak)
139 * Moose::Meta::Attribute
140 - Support for parameterized traits (Sartak)
141 - verify_against_type_constraint method to avoid duplication
142 and enhance extensibility (Sartak)
145 - Tests (but no support yet) for parameterized traits (Sartak)
148 - Require Class::MOP 0.75+, which has the side effect of making
149 sure we work on Win32. (Dave Rolsky)
151 0.63 Mon, December 8, 2008
153 - Some small grammar tweaks and bug fixes in non-Moose example
156 0.62_02 Fri, December 5, 2008
157 * Moose::Meta::Role::Application::ToClass
158 - When a class does not provide all of a role's required
159 methods, the error thrown now mentions all of the missing
160 methods, as opposed to just the first one found. Requested by
161 Curtis Poe (RT #41119). (Dave Rolsky)
163 * Moose::Meta::Method::Constructor
164 - Moose will no longer inline a constructor for your class
165 unless it inherits its constructor from Moose::Object, and
166 will warn when it doesn't inline. If you want to force
167 inlining anyway, pass "replace_constructor => 1" to
168 make_immutable. Addresses RT #40968, reported by Jon
169 Swartz. (Dave Rolsky)
170 - The quoting of default values could be broken if the default
171 contained a single quote ('). Now we use quotemeta to escape
172 anything potentially dangerous in the defaults. (Dave Rolsky)
174 0.62_01 Wed, December 3, 2008
176 - use the method->execute API for BUILDALL
177 and DEMOLISHALL (Sartak)
179 * Moose::Util::TypeConstraints
180 - We now make all the type constraint meta classes immutable
181 before creating the default types provided by Moose. This
182 should make loading Moose a little faster. (Dave Rolsky)
184 0.62 Wed November 26, 2008
185 * Moose::Meta::Role::Application::ToClass
186 Moose::Meta::Role::Application::ToRole
187 - fixed issues where excluding and aliasing the
188 same methods for a single role did not work
189 right (worked just fine with multiple
191 - added test for this (stevan)
193 * Moose::Meta::Role::Application::RoleSummation
194 - fixed the error message when trying to compose
195 a role with a role it excludes (Sartak)
198 - Catch another case where recursion caused the value
199 of $CALLER to be stamped on (t0m)
200 - added test for this (t0m)
203 - Remove the make_immutable keyword, which has been
204 deprecated since April. It breaks metaclasses that
205 use Moose without no Moose (Sartak)
207 * Moose::Meta::Attribute
208 - Removing an attribute from a class now also removes delegation
209 (handles) methods installed for that attribute (t0m)
210 - added test for this (t0m)
212 * Moose::Meta::Method::Constructor
213 - An attribute with a default that looked like a number (but was
214 really a string) would accidentally be treated as a number
215 when the constructor was made immutable (perigrin)
216 - added test for this (perigrin)
219 - create method for constructing a role
221 - added test for this (Sartak)
222 - anonymous roles! (Sartak)
223 - added test for this (Sartak)
226 - more consistent error messages (Sartak)
228 * Moose::Cookbook::Roles::Recipe1
229 - attempt to explain why a role that just requires
230 methods is useful (Sartak)
232 0.61 Fri November 7, 2008
233 * Moose::Meta::Attribute
234 - When passing a role to handles, it will be loaded if necessary
238 - Method objects returned by get_method (and other methods)
239 Could end up being returned without an associated_metaclass
240 attribute. Removing get_method_map, which is provided by
241 Class::MOP::Class, fixed this. The Moose version did nothing
242 different from its parent except introduce a bug. (Dave Rolsky)
243 - added tests for this (jdv79)
246 - Added a $VERSION to all .pm files which didn't have one. Fixes
247 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
249 * Moose::Cookbook::Basics::Recipe4
250 * Moose::Cookbook::Basics::Recipe6
251 - These files had spaces on the first line of the SYNOPSIS, as
252 opposed to a totally empty line. According to RT #40432, this
253 confuses POD parsers. (Dave Rolsky)
255 0.60 Fri October 24, 2008
257 - Passing "-traits" when loading Moose caused the Moose.pm
258 exports to be broken. Reported by t0m. (Dave Rolsky)
259 - Tests for this bug. (t0m)
262 - Change resolve_metaclass alias to use the new
263 load_first_existing_class function. This makes it a lot
264 simpler, and also around 5 times faster. (t0m)
265 - Add caching to resolve_metaclass_alias, which gives an order
266 of magnitude speedup to things which repeatedly call the
267 Moose::Meta::Attribute->does method, notably MooseX::Storage
270 * Moose::Util::TypeConstraint
271 - Put back the changes for parameterized constraints that
272 shouldn't have been removed in 0.59. We still cannot parse
273 them, but MooseX modules can create them in some other
274 way. See the 0.58 changes for more details. (jnapiorkowski)
275 - Changed the way subtypes are created so that the job is
276 delegated to a type constraint parent. This clears up some
277 hardcoded checking and should allow correct subtypes of
278 Moose::Meta::Type::Constraint. Don't rely on this new API too
279 much (create_child_type) because it may go away in the
280 future. (jnapiorkowski)
282 * Moose::Meta::TypeConstraint::Union
283 - Type constraint names are sorted as strings, not numbers.
286 * Moose::Meta::TypeConstraint::Parameterizable
287 - New parameterize method. This can be used as a factory method
288 to make a new type constraint with a given parameterized
289 type. (jnapiorkowski)
290 - added tests (jnapiorkowski)
292 0.59 Tue October 14, 2008
294 - Add abridged documentation for builder/default/initializer/
295 predicate, and link to more details sections in
296 Class::MOP::Attribute. (t0m)
298 * Moose::Util::TypeConstraints
299 - removed prototypes from all but the &-based stuff (mst)
301 * Moose::Util::TypeConstraints
302 - Creating a anonymous subtype with both a constraint and a
303 message failed with a very unhelpful error, but should just
304 work. Reported by t0m. (Dave Rolsky)
307 - Some tests that used Test::Warn if it was available failed
308 with older versions of Test::Warn. Reported by Fayland. (Dave
310 - Test firing behavior of triggers in relation to builder/default/
312 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
313 kinds of supported type. (t0m)
316 - In create(), do not pass "roles" option to the superclass
317 - added related test that creates an anon metaclass with
320 * Moose::Meta::TypeConstraint::Class
321 * Moose::Meta::TypeConstraint::Role
322 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
323 other types (as per change in 0.55_02). (t0m)
325 * Moose::Meta::TypeConstraint::Registry
326 - Fix warning when dealing with unknown type names (t0m)
328 * Moose::Util::TypeConstraints
329 - Reverted changes from 0.58 related to handle parameterized
330 types. This caused random failures on BSD and Win32 systems,
331 apparently related to the regex engine. This means that Moose
332 can no longer parse structured type constraints like
333 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
334 supported in a slightly different way via MooseX::Types some
335 time in the future. (Dave Rolsky)
337 0.58 Sat September 20, 2008
338 !! This release has an incompatible change regarding !!
339 !! how roles add methods to a class !!
341 * Roles and role application
342 ! Roles now add methods by calling add_method, not
343 alias_method. They make sure to always provide a method
344 object, which will be cloned internally. This means that it is
345 now possible to track the source of a method provided by a
346 role, and even follow its history through intermediate roles.
348 This means that methods added by a role now show up when
349 looking at a class's method list/map. (Dave Rolsky)
352 - From this release on, we'll try to maintain a list of
353 conflicting modules, and warn you if you have one
354 installed. For example, this release conflicts with ...
355 - MooseX::Singleton <= 0.11
356 - MooseX::Params::Validate <= 0.05
359 In general, we try to not break backwards compatibility for
360 most Moose users, but MooseX modules and other code which
361 extends Moose's metaclasses is often affected by very small
362 changes in the Moose internals.
364 * Moose::Meta::Method::Delegation
365 * Moose::Meta::Attribute
366 - Delegation methods now have their own method class. (Dave
369 * Moose::Meta::TypeConstraint::Parameterizable
370 - Added a new method 'parameterize' which is basically a factory
371 for the containing constraint. This makes it easier to create
372 new types of parameterized constraints. (jnapiorkowski)
374 * Moose::Meta::TypeConstraint::Union
375 - Changed the way Union types canonicalize their names to follow
376 the normalized TC naming rules, which means we strip all
377 whitespace. (jnapiorkowski)
379 * Moose::Util::TypeConstraints
380 - Parameter and Union args are now sorted, this makes Int|Str
381 the same constraint as Str|Int. (jnapiorkowski)
382 - Changes to the way Union types are parsed to more correctly
383 stringify their names. (jnapiorkowski)
384 - When creating a parameterized type, we now use the new
385 parameterize method. (jnapiorkowski)
386 - Incoming type constraint strings are now normalized to remove
387 all whitespace differences. (jnapiorkowski)
388 - Changed the way we parse type constraint strings so that we now
389 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
390 constraints. This lays the foundation for more flexible type
391 constraint implementations.
393 * Tests and docs for all the above. (jnapiorkowski)
397 - Moose::Exporter will no longer remove a subroutine that the
398 exporting package re-exports. Moose re-exports the
399 Carp::confess function, among others. The reasoning is that we
400 cannot know whether you have also explicitly imported those
401 functions for your own use, so we err on the safe side and
402 always keep them. (Dave Rolsky)
403 - added tests for this (rafl)
406 - Changes to how we fix metaclass compatibility that are much
407 too complicated to go into. The summary is that Moose is much
408 less likely to complain about metaclass incompatibility
409 now. In particular, if two metaclasses differ because
410 Moose::Util::MetaRole was used on the two corresponding
411 classes, then the difference in roles is reconciled for the
412 subclass's metaclass. (Dave Rolsky)
413 - Squashed an warning in _process_attribute (thepler)
416 - throw exceptions (sooner) for invalid attribute names (thepler)
417 - added tests for this (thepler)
419 * Moose::Util::MetaRole
420 - If you explicitly set a constructor or destructor class for a
421 metaclass object, and then applied roles to the metaclass,
422 that explicitly set class would be lost and replaced with the
426 * Moose::Meta::Attribute
427 * Moose::Meta::Method
430 * Moose::Error::Default
431 * Moose::Error::Croak
432 * Moose::Error::Confess
433 - All instances of confess() changed to use overridable
434 C<throw_error> method. This method ultimately calls a class
435 constructor, and you can change the class being called. In
436 addition, errors now pass more information than just a string.
437 The default C<error_class> behaves like C<Carp::confess>, so
438 the behavior is not visibly different for end users.
440 0.57 Wed September 3, 2008
442 - A new bit of doc intended to introduce folks familiar with
443 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
446 - Shows examples of two classes, each done first with and then
447 without Moose. This makes a nice parallel to
448 Moose::Intro. (Dave Rolsky)
450 * Moose::Util::TypeConstraints
451 - Fixed a bug in find_or_parse_type_constraint so that it
452 accepts a Moose::Meta::TypeConstraint object as the parent
453 type, not just a name (jnapiorkowski)
454 - added tests (jnapiorkowski)
457 - If Sub::Name was not present, unimporting failed to actually
458 remove some sugar subs, causing test failures (Dave Rolsky)
460 0.56 Mon September 1, 2008
461 For those not following the series of dev releases, there are
462 several major changes in this release of Moose.
463 ! Moose::init_meta should now be called as a method. See the
466 - Major performance improvements by nothingmuch.
468 - New modules for extension writers, Moose::Exporter and
469 Moose::Util::MetaRole by Dave Rolsky.
471 - Lots of doc improvements and additions, especially in the
476 * Removed all references to the experimental-but-no-longer-needed
477 Moose::Meta::Role::Application::ToMetaclassInstance.
479 * Require Class::MOP 0.65.
481 0.55_04 Sat August 30, 2008
482 * Moose::Util::MetaRole
483 * Moose::Cookbook::Extending::Recipe2
484 - This simplifies the application of roles to any meta class, as
485 well as the base object class. Reimplemented metaclass traits
486 using this module. (Dave Rolsky)
488 * Moose::Cookbook::Extending::Recipe1
489 - This a new recipe, an overview of various ways to write Moose
490 extensions (Dave Rolsky)
492 * Moose::Cookbook::Extending::Recipe3
493 * Moose::Cookbook::Extending::Recipe4
494 - These used to be Extending::Recipe1 and Extending::Recipe2,
497 0.55_03 Fri August 29, 2008
498 * No changes from 0.55_02 except increasing the Class::MOP
499 dependency to 0.64_07.
501 0.55_02 Fri August 29, 2008
502 * Makefile.PL and Moose.pm
503 - explicitly require Perl 5.8.0+ (Dave Rolsky)
505 * Moose::Util::TypeConstraints
506 - Fix warnings from find_type_constraint if the type is not
509 * Moose::Meta::TypeConstraint
510 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
511 return false if the type you specify cannot be found in the
512 type registry, rather than throwing an unhelpful and
513 coincidental exception. (t0m).
514 - added docs & test for this (t0m)
516 * Moose::Meta::TypeConstraint::Registry
517 - add_type_constraint now throws an exception if a parameter is
519 - added docs & test for this (t0m)
521 * Moose::Cookbook::FAQ
522 - Added a faq entry on the difference between "role" and "trait"
526 - Fixed a bug that caused role composition to not see a required
527 method when that method was provided by another role being
528 composed at the same time. (Dave Rolsky)
529 - test and bug finding (tokuhirom)
531 0.55_01 Wed August 20, 2008
533 !! Calling Moose::init_meta as a function is now !!
534 !! deprecated. Please see the Moose.pm docs for details. !!
536 * Moose::Meta::Method::Constructor
537 - Fix inlined constructor so that values produced by default
538 or builder methods are coerced as required. (t0m)
539 - added test for this (t0m)
541 * Moose::Meta::Attribute
542 - A lazy attribute with a default or builder did not attempt to
543 coerce the default value. The immutable code _did_
545 - added test for this (t0m)
548 - This is a new helper module for writing "Moose-alike"
549 modules. This should make the lives of MooseX module authors
550 much easier. (Dave Rolsky)
553 * Moose::Cookbook::Meta::Recipe5
554 - Implemented metaclass traits (and wrote a recipe for it):
556 use Moose -traits => 'Foo'
558 This should make writing small Moose extensions a little
561 * Moose::Cookbook::Basics::Recipe1
562 - Removed any examples of direct hashref access, and applied an
563 editorial axe to reduce verbosity. (Dave Rolsky)
565 * Moose::Cookbook::Basics::Recipe1
566 - Also applied an editorial axe here. (Dave Rolsky)
569 * Moose::Cookbook::Extending::Recipe1
570 * Moose::Cookbook::Extending::Recipe2
571 - Rewrote extending and embedding moose documentation and
572 recipes to use Moose::Exporter (Dave Rolsky)
576 - These two modules now warn when you load them from the main
577 package "main" package, because we will not export sugar to
578 main. Previously it just did nothing. (Dave Rolsky)
581 - Now provide an init_meta method just like Moose.pm, and you
582 can call this to provide an alternate role metaclass. (Dave
583 Rolsky and nothingmuch)
584 - get_method_map now respects the package cache flag (nothingmuch)
587 - Two new methods - add_method and wrap_method_body
591 - Optimizations including allowing constructors to accept hash
592 refs, making many more classes immutable, and making
593 constructors immutable. (nothingmuch)
595 0.55 Sun August 3, 2008
596 * Moose::Meta::Attribute
597 - breaking down the way 'handles' methods are
598 created so that the process can be more easily
599 overridden by subclasses (stevan)
601 * Moose::Meta::TypeConstraint
602 - fixing what is passed into a ->message with
603 the type constraints (RT #37569)
604 - added tests for this (Charles Alderman)
606 * Moose::Util::TypeConstraints
607 - fix coerce to accept anon types like subtype can (mst)
610 - reorganized the recipes into sections - Basics, Roles, Meta,
611 Extending - and wrote abstracts for each section (Dave Rolsky)
613 * Moose::Cookbook::Basics::Recipe10
614 - A new recipe that demonstrates operator overloading
615 in combination with Moose. (bluefeet)
617 * Moose::Cookbook::Meta::Recipe1
618 - an introduction to what meta is and why you'd want to make
619 your own metaclass extensions (Dave Rolsky)
621 * Moose::Cookbook::Meta::Recipe4
622 - a very simple metaclass example (Dave Rolsky)
624 * Moose::Cookbook::Extending::Recipe1
625 - how to write a Moose-alike module to use your own object base
628 * Moose::Cookbook::Extending::Recipe2
629 - how to write modules with an API just like C<Moose.pm> (Dave
633 - Tons of fixes, both syntactical and grammatical (Dave
634 Rolsky, Paul Fenwick)
636 0.54 Thurs. July 3, 2008
637 ... this is not my day today ...
639 * Moose::Meta::Attribute
640 - fixed legal_options_for_inheritance such that
641 clone_and_inherit options still works for
642 Class::MOP::Attribute objects and therefore
643 does not break MooseX::AttributeHelpers
646 0.53 Thurs. July 3, 2008
647 * Whoops, I guess I should run 'make manifest' before
648 actually releasing the module. No actual changes
649 in this release, except the fact that it includes
650 the changes that I didn't include in the last
653 0.52 Thurs. July 3, 2008
655 - added "FEATURE REQUESTS" section to the Moose docs
656 to properly direct people (stevan) (RT #34333)
657 - making 'extends' croak if it is passed a Role since
658 this is not ever something you want to do
659 (fixed by stevan, found by obra)
660 - added tests for this (stevan)
663 - adding support for DOES (as in UNIVERSAL::DOES)
665 - added test for this
667 * Moose::Meta::Attribute
668 - added legal_options_for_inheritance (wreis)
669 - added tests for this (wreis)
671 * Moose::Cookbook::Snacks::*
672 - removed some of the unfinished snacks that should
673 not have been released yet. Added some more examples
674 to the 'Keywords' snack. (stevan)
676 * Moose::Cookbook::Style
677 - added general Moose "style guide" of sorts to the
678 cookbook (nothingmuch) (RT #34335)
681 - added more BUILDARGS tests (stevan)
683 0.51 Thurs. Jun 26, 2008
685 - add unimport so "no Moose::Role" actually does
688 * Moose::Meta::Role::Application::ToRole
689 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
690 order to provide its own implementation, that method still got
691 added to the list of required methods for consumers of
692 RoleB. Now an aliased method is only added to the list of
693 required methods if the role doing the aliasing does not
694 provide its own implementation. See Recipe 11 for an example
695 of all this. (Dave Rolsky)
696 - added tests for this
698 * Moose::Meta::Method::Constructor
699 - when a single argument that wasn't a hashref was provided to
700 an immutabilized constructor, the error message was very
701 unhelpful, as opposed to the non-immutable error. Reported by
703 - added test for this (Dave Rolsky)
705 * Moose::Meta::Attribute
706 - added support for meta_attr->does("ShortAlias") (sartak)
707 - added tests for this (sartak)
708 - moved the bulk of the `handles` handling to the new
709 install_delegation method (Stevan)
712 - Added BUILDARGS, a new step in new()
714 * Moose::Meta::Role::Application::RoleSummation
715 - fix typos no one ever sees (sartak)
717 * Moose::Util::TypeConstraints
718 * Moose::Meta::TypeConstraint
719 * Moose::Meta::TypeCoercion
720 - Attempt to work around the ??{ } vs. threads issue
722 - Some null_constraint optimizations
724 0.50 Thurs. Jun 11, 2008
725 - Fixed a version number issue by bumping all modules
728 0.49 Thurs. Jun 11, 2008
729 !! This version now approx. 20-25% !!
730 !! faster with new Class::MOP 0.59 !!
732 * Moose::Meta::Attribute
733 - fixed how the is => (ro|rw) works with
734 custom defined reader, writer and accessor
736 - added docs for this (TODO).
737 - added tests for this (Thanks to Penfold)
738 - added the custom attribute alias for regular
739 Moose attributes which is "Moose"
740 - fix builder and default both being used
745 Moose::Meta::Attribute
747 Moose::Meta::Role::Composite
748 Moose::Util::TypeConstraints
749 - switched usage of reftype to ref because
753 - changing add_package_symbol to use the new
757 - fixed how DEMOLISHALL is called so that it
758 can be overrided in subclasses (thanks to Sartak)
759 - added test for this (thanks to Sartak)
761 * Moose::Util::TypeConstraints
762 - move the ClassName type check code to
763 Class::MOP::is_class_loaded (thanks to Sartak)
765 * Moose::Cookbook::Recipe11
766 - add tests for this (thanks to tokuhirom)
768 0.48 Thurs. May 29, 2008
769 (early morning release engineering)--
771 - fixing the version in Moose::Meta::Method::Destructor
772 which was causing the indexer to choke
774 0.47 Thurs. May 29, 2008
775 (late night release engineering)--
777 - fixing the version is META.yml, no functional
778 changes in this release
780 0.46 Wed. May 28, 2008
781 !! This version now approx. 20-25% !!
782 !! faster with new Class::MOP 0.57 !!
785 - some optimizations of the &initialize method
786 since it is called so often by &meta
790 - now use the get_all_package_symbols from the
791 updated Class::MOP, test suite is now 10 seconds
794 * Moose::Meta::Method::Destructor
795 - is_needed can now also be called as a class
796 method for immutablization to check if the
797 destructor object even needs to be created
800 * Moose::Meta::Method::Destructor
801 Moose::Meta::Method::Constructor
802 - added more descriptive error message to help
803 keep people from wasting time tracking an error
804 that is easily fixed by upgrading.
806 0.45 Saturday, May 24, 2008
808 - Because of work in Class::MOP 0.57, all
809 XS based functionality is now optional
810 and a Pure Perl version is supplied
811 - the CLASS_MOP_NO_XS environment variable
812 can now be used to force non-XS versions
814 - several of the packages have been tweaked
815 to take care of this, mostly we added
816 support for the package_name and name
817 variables in all the Method metaclasses
818 - before/around/after method modifiers now
819 support regexp matching of names
820 (thanks to Takatoshi Kitano)
821 - tests added for this
822 - NOTE: this only works for classes, it
823 is currently not supported in roles,
824 but, ... patches welcome
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
830 - All usage of Carp::confess have been replaced
831 by Carp::croak in the "keyword" functions since
832 the stack trace is usually not helpful
833 - The 'has' keyword for roles now accepts the
834 same array ref form that Moose.pm does
835 (has [qw/foo bar/] => (is => 'rw', ...))
836 - added test for this
838 * Moose::Meta::Attribute
839 - trigger on a ro-attribute is no longer an
840 error, as it's useful to trigger off of the
844 - added same 'add_package_symbol' fix as in
848 - does_role now handles non-Moose classes
850 - added tests for this
851 - added the 'add_method_modifier' function
852 (thanks to Takatoshi Kitano)
854 * Moose::Util::TypeConstraints
855 - subtypes of parameterizable types now are
856 themselves parameterizable types
858 * Moose::Meta::Method::Constructor
859 - fixed bug where trigger was not being
860 called by the inlined immutable
862 - added test for this (thanks to Caelum)
864 * Moose::Meta::Role::Application::ToInstance
865 - now uses the metaclass of the instance
866 (if possible) to create the anon-class
867 (thanks Jonathan Rockway)
869 * Moose::Cookbook::Recipe22
870 - added the meta-attribute trait recipe
874 - fixed hash-ordering test bug that was
875 causing occasional cpantester failures
876 - renamed the t/000_recipe/*.t tests to be
877 more descriptive (thanks to Sartak)
879 0.44 Sat. May 10, 2008
881 - made make_immutable warning cluck to
882 show where the error is (thanks mst)
885 - BUILDALL and DEMOLISHALL now call
886 ->body when looping through the
887 methods, to avoid the overloaded
889 - fixed issue where DEMOLISHALL was
890 eating the $@ values, and so not
891 working correctly, it still kind of
892 eats them, but so does vanilla perl
893 - added tests for this
895 * Moose::Cookbook::Recipe7
896 - added new recipe for immutable
897 functionality (thanks Dave Rolsky)
899 * Moose::Cookbook::Recipe9
900 - added new recipe for builder and
901 lazy_build (thanks Dave Rolsky)
903 * Moose::Cookbook::Recipe11
904 - added new recipe for method aliasing
905 and exclusion with Roles (thanks Dave Rolsky)
908 - fixed Win32 test failure (thanks spicyjack)
910 ~ removed Build.PL and Module::Build compat
911 since Module::Install has done that.
913 0.43 Wed. April, 30, 2008
915 drink more coffee before
916 doing release engineering
918 - whoops, forgot to do the smolder tests,
919 and we broke some of the custom meta-attr
920 modules. This fixes that.
922 0.42 Mon. April 28, 2008
923 - some bad tests slipped by, nothing else
924 changed in this release (cpantesters++)
926 - upped the Class::MOP dependency to 0.55
927 since we have tests which need the C3
930 0.41 Mon. April 28, 2008
931 ~~ numerous documentation updates ~~
933 - Changed all usage of die to Carp::croak for better
934 error reporting (initial patch by Tod Hagan)
937 - the make_immutable keyword is now deprecated, don't
938 use it in any new code and please fix your old code
939 as well. There will be 2 releases, and then it will
945 - refactored the way inner and super work to avoid
946 any method/@ISA cache penalty (nothingmuch)
949 - fixing &new_object to make sure trigger gets the
950 coerced value (spotted by Charles Alderman on the
952 - added test for this
954 * Moose::Meta::Method::Constructor
955 - immutable classes which had non-lazy attributes were calling
956 the default generating sub twice in the constructor. (bug
957 found by Jesse Luehrs, fixed by Dave Rolsky)
958 - added tests for this (Dave Rolsky)
959 - fix typo in initialize_body method (nothingmuch)
961 * Moose::Meta::Method::Destructor
962 - fix typo in initialize_body method (nothingmuch)
964 * Moose::Meta::Method::Overriden
965 Moose::Meta::Method::Augmented
966 - moved the logic for these into their own
967 classes (nothingmuch)
969 * Moose::Meta::Attribute
970 - inherited attributes may now be extended without
971 restriction on the type ('isa', 'does') (Sartak)
972 - added tests for this (Sartak)
973 - when an attribute property is malformed (such as lazy without
974 a default), give the name of the attribute in the error
976 - added the &applied_traits and &has_applied_traits methods
977 to allow introspection of traits
978 - added tests for this
979 - moved 'trait' and 'metaclass' argument handling to here from
981 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
982 '+foo' syntax) (nothingmuch)
983 - added tests for this (t0m)
986 - localize $@ inside DEMOLISHALL to avoid it
987 eating $@ (found by Ernesto)
988 - added test for this (thanks to Ernesto)
990 * Moose::Util::TypeConstraints
991 - &find_type_constraint now DWIMs when given an
992 type constraint object or name (nothingmuch)
993 - &find_or_create_type_constraint superseded with a number of more
995 - find_or_create_{isa,does}_type_constraint
996 - find_or_parse_type_constraint
998 * Moose::Meta::TypeConstraint
999 Moose::Meta::TypeConstraint::Class
1000 Moose::Meta::TypeConstraint::Role
1001 Moose::Meta::TypeConstraint::Enum
1002 Moose::Meta::TypeConstraint::Union
1003 Moose::Meta::TypeConstraint::Parameterized
1004 - added the &equals method for comparing two type
1005 constraints (nothingmuch)
1006 - added tests for this (nothingmuch)
1008 * Moose::Meta::TypeConstraint
1009 - add the &parents method, which is just an alias to &parent.
1010 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1012 * Moose::Meta::TypeConstraint::Class
1013 - added the class attribute for introspection purposes
1015 - added tests for this
1017 * Moose::Meta::TypeConstraint::Enum
1018 Moose::Meta::TypeConstraint::Role
1019 - broke these out into their own classes (nothingmuch)
1021 * Moose::Cookbook::Recipe*
1022 - fixed references to test file locations in the POD
1023 and updated up some text for new Moose features
1027 - Added &resolve_metaclass_alias, a helper function for finding an actual
1028 class for a short name (e.g. in the traits list)
1030 0.40 Fri. March 14, 2008
1031 - I hate Pod::Coverage
1033 0.39 Fri. March 14, 2008
1035 - documenting the use of '+name' with attributes
1036 that come from recently composed roles. It makes
1037 sense, people are using it, and so why not just
1038 officially support it.
1039 - fixing the 'extends' keyword so that it will not
1040 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1043 - added the perl -Moose=+Class::Name feature to allow
1044 monkeypatching of classes in one liners
1047 - fixing the 'apply_all_roles' keyword so that it will not
1048 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1050 * Moose::Meta::Class
1051 - added ->create method which now supports roles (thanks to jrockway)
1052 - added tests for this
1053 - added ->create_anon_class which now supports roles and caching of
1054 the results (thanks to jrockway)
1055 - added tests for this
1056 - made ->does_role a little more forgiving when it is
1057 checking a Class::MOP era metaclasses.
1059 * Moose::Meta::Role::Application::ToInstance
1060 - it is now possible to pass extra params to be used when
1061 a role is applied to an the instance (rebless_params)
1062 - added tests for this
1064 * Moose::Util::TypeConstraints
1065 - class_type now accepts an optional second argument for a
1066 custom message. POD anotated accordingly (groditi)
1067 - added tests for this
1068 - it is now possible to make anon-enums by passing 'enum' an
1069 ARRAY ref instead of the $name => @values. Everything else
1071 - added tests for this
1074 - making test for using '+name' on attributes consumed
1075 from a role, it works and makes sense too.
1077 * Moose::Meta::Attribute
1078 - fix handles so that it doesn't return nothing
1079 when the method cannot be found, not sure why
1080 it ever did this originally, this means we now
1081 have slightly better support for AUTOLOADed
1083 - added more delegation tests
1084 - adding ->does method to this so as to better
1085 support traits and their introspection.
1086 - added tests for this
1089 - localizing the Data::Dumper configurations so
1090 that it does not pollute others (RT #33509)
1091 - made ->does a little more forgiving when it is
1092 passed Class::MOP era metaclasses.
1094 0.38 Fri. Feb. 15, 2008
1095 * Moose::Meta::Attribute
1096 - fixed initializer to correctly do
1097 type checking and coercion in the
1099 - added tests for this
1102 - fixed some finicky tests (thanks to konobi)
1104 0.37 Thurs. Feb. 14, 2008
1106 - fixed some details in Moose::init_meta
1107 and its superclass handling (thanks thepler)
1108 - added tests for this (thanks thepler)
1109 - 'has' now dies if you don't pass in name
1111 - added the 'make_immutable' keyword as a shortcut
1114 * Moose::Meta::Class
1115 Moose::Meta::Method::Constructor
1116 Moose::Meta::Attribute
1117 - making (init_arg => undef) work here too
1118 (thanks to nothingmuch)
1120 * Moose::Meta::Attribute
1121 Moose::Meta::Method::Constructor
1122 Moose::Meta::Method::Accessor
1123 - make lazy attributes respect attr initializers (rjbs)
1124 - added tests for this
1126 * Moose::Util::TypeConstraints
1127 Moose::Util::TypeConstraints::OptimizedConstraints
1128 Moose::Meta::TypeConstraints
1129 Moose::Meta::Attribute
1130 Moose::Meta::Method::Constructor
1131 Moose::Meta::Method::Accessor
1132 - making type errors use the
1133 assigned message (thanks to Sartak)
1134 - added tests for this
1136 * Moose::Meta::Method::Destructor
1137 - making sure DESTROY gets inlined properly
1138 with successive DEMOLISH calls (thanks to manito)
1140 * Moose::Meta::Attribute
1141 Moose::Meta::Method::Accessor
1142 - fixed handling of undef with type constraints
1144 - added tests for this
1147 - added &get_all_init_args and &get_all_attribute_values
1148 (thanks to Sartak and nothingmuch)
1150 0.36 Sat. Jan. 26, 2008
1152 Moose::Meta::Attribute
1153 - role type tests now support when roles are
1154 applied to non-Moose classes (found by ash)
1155 - added tests for this (thanks to ash)
1156 - couple extra tests to boost code coverage
1158 * Moose::Meta::Method::Constructor
1159 - improved fix for handling Class::MOP attributes
1160 - added test for this
1162 * Moose::Meta::Class
1163 - handled the add_attribute($attribute_meta_object)
1165 - added test for this
1167 0.35 Tues. Jan. 22, 2008
1168 * Moose::Meta::Method::Constructor
1169 - fix to make sure even Class::MOP attributes
1170 are handled correctly (Thanks to Dave Rolsky)
1171 - added test for this (also Dave Rolsky)
1173 * Moose::Meta::Class
1174 - improved error message on _apply_all_roles,
1175 you should now use Moose::Util::apply_all_roles
1176 and you shouldnt have been using a _ prefixed
1177 method in the first place ;)
1179 0.34 Mon. Jan. 21, 2008
1180 ~~~ more misc. doc. fixes ~~~
1181 ~~ updated copyright dates ~~
1183 Moose is now a postmodern object system :)
1184 - (see the POD for details)
1186 * <<Role System Refactoring>>
1187 - this release contains a major reworking and
1188 cleanup of the role system
1189 - 100% backwards compat.
1190 - Role application now restructured into seperate
1191 classes based on type of applicants
1192 - Role summation (combining of more than one role)
1193 is much cleaner and anon-classes are no longer
1194 used in this process
1195 - new Composite role metaclass
1196 - runtime application of roles to instances
1197 is now more efficient and re-uses generated
1198 classes when applicable
1200 * <<New Role composition features>>
1201 - methods can now be excluded from a given role
1203 - methods can now be aliased to another name (and
1204 still retain the original as well)
1206 * Moose::Util::TypeConstraints::OptimizedConstraints
1207 - added this module (see above)
1209 * Moose::Meta::Class
1210 - fixed the &_process_attribute method to be called
1211 by &add_attribute, so that the API is now correct
1213 * Moose::Meta::Method::Accessor
1214 - fixed bug when passing a list of values to
1215 an accessor would get (incorrectly) ignored.
1216 Thanks to Sartak for finding this ;)
1217 - added tests for this (Sartak again)
1219 * Moose::Meta::Method::Accessor
1220 Moose::Meta::Method::Constructor
1221 Moose::Meta::Attribute
1222 Moose::Meta::TypeConstraint
1223 Moose::Meta::TypeCoercion
1224 - lots of cleanup of such things as:
1226 - type constraint handling
1227 - error handling/messages
1228 (thanks to nothingmuch)
1230 * Moose::Meta::TypeConstraint::Parameterizable
1231 - added this module to support the refactor
1232 in Moose::Meta::TypeConstraint::Parameterized
1234 * Moose::Meta::TypeConstraint::Parameterized
1235 - refactored how these types are handled so they
1236 are more generic and not confined to ArrayRef
1240 - shortened some file names for better VMS support (RT #32381)
1242 0.33 Fri. Dec. 14, 2007
1243 !! Moose now loads 2 x faster !!
1244 !! with new Class::MOP 0.49 !!
1246 ++ new oose.pm module to make command line
1247 Moose-ness easier (see POD docs for more)
1249 * Moose::Meta::Class
1251 - several tweaks to take advantage of the
1252 new method map caching in Class::MOP
1254 * Moose::Meta::TypeConstraint::Parameterized
1255 - allow subtypes of ArrayRef and HashRef to
1256 be used as a container (sartak)
1257 - added tests for this
1258 - basic support for coercion to ArrayRef and
1259 HashRef for containers (sartak)
1260 - added tests for this
1262 * Moose::Meta::TypeCoercion
1263 - coercions will now create subtypes as needed
1264 so you can now add coercions to parameterized
1265 types without having to explictly define them
1266 - added tests for this
1268 * Moose::Meta::Method::Accessor
1269 - allow subclasses to decide whether we need
1270 to copy the value into a new variable (sartak)
1272 0.32 Tues. Dec. 4, 2007
1273 * Moose::Util::TypeConstraints
1274 - fixing how subtype aliases of unions work
1275 they should inherit the parent's coercion
1276 - added tests for this
1277 - you can now define multiple coercions on
1278 a single type at different times instead of
1279 having to do it all in one place
1280 - added tests for this
1282 * Moose::Meta::TypeConstraint
1283 - there is now a default constraint of sub { 1 }
1284 instead of Moose::Util::TypeConstraints setting
1287 * Moose::Meta::TypeCoercion
1288 * Moose::Meta::TypeCoercion::Union
1289 - added the &has_coercion_for_type and
1290 &add_type_coercions methods to support the
1291 new features above (although you cannot add
1292 more type coercions for Union types)
1294 0.31 Mon. Nov. 26, 2007
1295 * Moose::Meta::Attribute
1296 - made the +attr syntax handle extending types with
1297 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1298 now works if the original foo is an ArrayRef.
1299 - added tests for this.
1300 - delegation now works even if the attribute does not
1301 have a reader method using the get_read_method_ref
1302 method from Class::MOP::Attribute.
1303 - added tests for this
1304 - added docs for this
1306 * Moose::Util::TypeConstraints
1307 - passing no "additional attribute info" to
1308 &find_or_create_type_constraint will no longer
1309 attempt to create an __ANON__ type for you,
1310 instead it will just return undef.
1311 - added docs for this
1313 0.30 Fri. Nov. 23, 2007
1314 * Moose::Meta::Method::Constructor
1315 -builder related bug in inlined constructor. (groditi)
1317 * Moose::Meta::Method::Accessor
1318 - genereate unnecessary calls to predicates and refactor
1319 code generation for runtime speed (groditi)
1321 * Moose::Util::TypeConstraints
1322 - fix ClassName constraint to introspect symbol table (mst)
1323 - added more tests for this (mst)
1324 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1325 with work correctly.
1326 - added tests for this
1329 - adding the link to Recipie 11 (written by Sartak)
1330 - adding test for SYNOPSIS code
1333 - New tests for builder bug. Upon instantiation, if an
1334 attribute had a builder, no value and was not lazy the
1335 builder default was not getting run, oops. (groditi)
1337 0.29 Tues. Nov. 13, 2007
1338 * Moose::Meta::Attribute
1339 - Fix error message on missing builder method (groditi)
1341 * Moose::Meta::Method::Accessor
1342 - Fix error message on missing builder method (groditi)
1345 - Add test to check for the correct error message when
1346 builder method is missing (groditi)
1348 0.28 Tues. Nov. 13, 2007
1349 - 0.27 packaged incorrectly (groditi)
1351 0.27 Tues. Nov. 13, 2007
1352 * Moose::Meta::Attribute
1353 - Added support for the new builder option (groditi)
1354 - Added support for lazy_build option (groditi)
1355 - Changed slot initialization for predicate changes (groditi)
1357 * Moose::Meta::Method::Accessor
1358 - Added support for lazy_build option (groditi)
1359 - Fix inline methods to work with corrected predicate
1362 * Moose::Meta::Method::Constructor
1363 - Added support for lazy_build option (groditi)
1366 - tests for builder and lazy_build (groditi)
1368 * fixing some misc. bits in the docs that
1369 got mentioned on CPAN Forum & perlmonks
1372 - fixed how required methods are handled
1373 when they encounter overriden or modified
1374 methods from a class (thanks to confound).
1375 - added tests for this
1377 * Moose::Util::TypeConstraint
1378 - fixed the type notation parser so that
1379 the | always creates a union and so is
1380 no longer a valid type char (thanks to
1381 konobi, mugwump and #moose for working
1383 - added more tests for this
1385 0.26 Thurs. Sept. 27, 2007
1388 * Parameterized Types
1389 We now support parameterized collection types, such as:
1390 ArrayRef[Int] # array or integers
1391 HashRef[Object] # a hash with object values
1392 They can also be nested:
1393 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1394 And work with the type unions as well:
1395 ArrayRef[Int | Str] # array of integers of strings
1397 * Better Framework Extendability
1398 Moose.pm is now "extendable" such that it is now much
1399 easier to extend the framework and add your own keywords
1400 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1401 section of the Moose.pm docs.
1404 In an effort to begin documenting some of the various
1405 details of Moose as well as some common idioms, we have
1406 created Moose::Cookbook::Snacks as a place to find
1407 small (easily digestable) nuggets of Moose code.
1410 ~ Several doc updates/cleanup thanks to castaway ~
1412 - converted build system to use Module::Install instead of
1413 Module::Build (thanks to jrockway)
1416 - added all the meta classes to the immutable list and
1417 set it to inline the accessors
1418 - fix import to allow Sub::Exporter like { into => }
1419 and { into_level => } (perigrin)
1420 - exposed and documented init_meta() to allow better
1421 embedding and extending of Moose (perigrin)
1424 - complete re-organization of the test suite
1425 - added some new tests as well
1426 - finally re-enabled the Moose::POOP test since
1427 the new version of DBM::Deep now works again
1430 * Moose::Meta::Class
1431 - fixed very odd and very nasty recursion bug with
1433 - added tests for this (eilara)
1435 * Moose::Meta::Attribute
1436 Moose::Meta::Method::Constructor
1437 Moose::Meta::Method::Accessor
1438 - fixed issue with overload::Overloaded getting called
1439 on non-blessed items. (RT #29269)
1440 - added tests for this
1442 * Moose::Meta::Method::Accessor
1443 - fixed issue with generated accessor code making
1444 assumptions about hash based classes (thanks to dexter)
1446 * Moose::Coookbook::Snacks
1447 - these are bits of documentation, not quite as big as
1448 Recipes but which have no clear place in the module docs.
1449 So they are Snacks! (horray for castaway++)
1451 * Moose::Cookbook::Recipe4
1452 - updated it to use the new ArrayRef[MyType] construct
1453 - updated the accompanying test as well
1455 +++ Major Refactor of the Type Constraint system +++
1456 +++ with new features added as well +++
1458 * Moose::Util::TypeConstraint
1459 - no longer uses package variable to keep track of
1460 the type constraints, now uses the an instance of
1461 Moose::Meta::TypeConstraint::Registry to do it
1462 - added more sophisticated type notation parsing
1464 - added tests for this
1466 * Moose::Meta::TypeConstraint
1467 - some minor adjustments to make subclassing easier
1468 - added the package_defined_in attribute so that we
1469 can track where the type constraints are created
1471 * Moose::Meta::TypeConstraint::Union
1472 - this is now been refactored to be a subclass of
1473 Moose::Meta::TypeConstraint
1475 * Moose::Meta::TypeCoercion::Union
1476 - this has been added to service the newly refactored
1477 Moose::Meta::TypeConstraint::Union and is itself
1478 a subclass of Moose::Meta::TypeCoercion
1480 * Moose::Meta::TypeConstraint::Parameterized
1481 - added this module (taken from MooseX::AttributeHelpers)
1482 to help construct nested collection types
1483 - added tests for this
1485 * Moose::Meta::TypeConstraint::Registry
1486 - added this class to keep track of type constraints
1488 0.25 Mon. Aug. 13, 2007
1490 - Documentation update to reference Moose::Util::TypeConstraints
1491 under 'isa' in 'has' for how to define a new type
1492 (thanks to shlomif).
1494 * Moose::Meta::Attribute
1495 - required attributes now will no longer accept undef
1496 from the constructor, even if there is a default and lazy
1497 - added tests for this
1498 - default subroutines must return a value which passes the
1500 - added tests for this
1502 * Moose::Meta::Attribute
1503 * Moose::Meta::Method::Constructor
1504 * Moose::Meta::Method::Accessor
1505 - type-constraint tests now handle overloaded objects correctly
1506 in the error message
1507 - added tests for this (thanks to EvanCarroll)
1509 * Moose::Meta::TypeConstraint::Union
1510 - added (has_)hand_optimized_constraint to this class so that
1511 it behaves as the regular Moose::Meta::TypeConstraint does.
1514 - large refactoring of this code
1515 - added several more tests
1516 - tests for subtle conflict resolition issues
1517 added, but not currently running
1520 * Moose::Cookbook::Recipe7
1521 - added new recipe for augment/inner functionality
1523 - added test for this
1526 - a formal definition of roles (still in progress)
1529 - utilities for easier working with Moose classes
1530 - added tests for these
1533 - This contains Moose specific test functions
1534 - added tests for these
1536 0.24 Tues. July 3, 2007
1537 ~ Some doc updates/cleanup ~
1539 * Moose::Meta::Attribute
1540 - added support for roles to be given as parameters
1541 to the 'handles' option.
1542 - added tests and docs for this
1543 - the has '+foo' attribute form now accepts changes to
1544 the lazy option, and the addition of a handles option
1545 (but not changing the handles option)
1546 - added tests and docs for this
1549 - required methods are now fetched using find_method_by_name
1550 so that required methods can come from superclasses
1551 - adjusted tests for this
1553 0.23 Mon. June 18, 2007
1554 * Moose::Meta::Method::Constructor
1555 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1556 * Moose::Meta::Class
1557 - Modify make_immutable to work with the new Class::MOP immutable
1558 mechanism + POD + very basic test (groditi)
1559 * Moose::Meta::Attribute
1560 - Fix handles to use goto() so that caller() comes out properly on
1561 the other side (perigrin)
1563 0.22 Thurs. May 31, 2007
1564 * Moose::Util::TypeConstraints
1565 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1566 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1567 prototypes for functions
1568 - added the ClassName type constraint, this checks for strings
1569 which will respond true to ->isa(UNIVERSAL).
1570 - added tests and docs for this
1571 - subtyping just in name now works correctly by making the
1572 default for where be { 1 }
1573 - added test for this
1575 * Moose::Meta::Method::Accessor
1576 - coerce and lazy now work together correctly, thanks to
1577 merlyn for finding this bug
1578 - tests added for this
1579 - fix reader presedence bug in Moose::Meta::Attribute + tests
1582 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1583 a HASH-ref and missed. This produces better error messages then
1584 having it die cause undef is not a HASH.
1585 - added tests for this
1587 0.21 Thursday, May 2nd, 2007
1589 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1590 - modified unimport to remove super and inner along with the rest
1591 - altered unimport tests to handle this
1594 - altered super export to populate SUPER_SLOT
1596 * Moose::Meta::Class
1597 - altered augment and override modifier application to use *_SLOT
1598 - modified tests for these to unimport one test class each to test
1601 - fixed issue where custom attribute metaclasses
1602 where not handled correctly in roles
1603 - added tests for this
1605 * Moose::Meta::Class
1606 - fixed issue where extending metaclasses with
1607 roles would blow up. Thanks to Aankhen`` for
1608 finding this insidious error, and it's solution.
1610 ~~ lots of spelling and grammer fixes in the docs,
1611 many many thanks to rlb3 and Aankhen for these :)
1613 0.20 Friday, April 6th, 2007
1614 >> I messed up the SKIP logic in one test
1615 so this release is just to fix that.
1618 - 'has' now also accepts an ARRAY ref
1619 to create multiple attrs (see docs)
1620 (thanks to konobi for this)
1621 - added tests and docs
1623 0.19 Thurs. April 5th, 2007
1624 ~~ More documentation updates ~~
1626 * Moose::Util::TypeConstraints
1627 - 'type' now supports messages as well
1628 thanks to phaylon for finding this
1629 - added tests for this
1630 - added &list_all_type_constraints and
1631 &list_all_builtin_type_constraints
1632 functions to facilitate introspection.
1634 * Moose::Meta::Attribute
1635 - fixed regexp 'handles' declarations
1636 to build the list of delegated methods
1637 correctly (and not override important
1638 things like &new) thanks to ashleyb
1640 - added tests and docs for this
1641 - added the 'documentation' attributes
1642 so that you can actually document your
1643 attributes and inspect them through the
1645 - added tests and docs for this
1647 * Moose::Meta::Class
1648 - when loading custom attribute metaclasses
1649 it will first look in for the class in the
1650 Moose::Meta::Attribute::Custom::$name, and
1651 then default to just loading $name.
1652 - added tests and docs for this
1654 * Moose::Meta::TypeConstraint
1655 - type constraints now stringify to their names.
1656 - added test for this
1659 - added tests to assure we work with Module::Refresh
1660 - added stricter test skip logic in the Moose POOP
1661 test, ask Rob Kinyon why.
1662 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1664 0.18 Sat. March 10, 2007
1665 ~~ Many, many documentation updates ~~
1668 - We now use Class::MOP::load_class to
1670 - added tests to show types and subtypes
1671 working with Declare::Constraints::Simple
1672 and Test::Deep as constraint engines.
1675 !! You must have Class::MOP 0.37_001 !!
1676 !! for this developer release to work !!
1678 This release was primarily adding the immutable
1679 feature to Moose. An immutable class is one which
1680 you promise not to alter. When you set the class
1681 as immutable it will perform various bits of
1682 memoization and inline certain part of the code
1683 (constructors, destructors and accessors). This
1684 minimizes (and in some cases totally eliminates)
1685 one of Moose's biggest performance hits. This
1686 feature is not on by default, and is 100% optional.
1687 It has several configurable bits as well, so you
1688 can pick and choose to your specific needs.
1690 The changes involved in this were fairly wide and
1691 highly specific, but 100% backwards compatible, so
1692 I am not going to enumerate them here. If you are
1693 truely interested in what was changed, please do
1696 0.17 Tues. Nov. 14, 2006
1697 * Moose::Meta::Method::Accessor
1698 - bugfix for read-only accessors which
1699 are have a type constraint and lazy.
1700 Thanks to chansen for finding it.
1702 0.16 Tues. Nov. 14, 2006
1704 There are some speed improvements in this release,
1705 but they are only the begining, so stay tuned.
1708 - BUILDALL and DEMOLISHALL no longer get
1709 called unless they actually need to be.
1710 This gave us a signifigant speed boost
1711 for the cases when there is no BUILD or
1712 DEMOLISH method present.
1714 * Moose::Util::TypeConstraints
1715 * Moose::Meta::TypeConstraint
1716 - added an 'optimize_as' option to the
1717 type constraint, which allows for a
1718 hand optimized version of the type
1719 constraint to be used when possible.
1720 - Any internally created type constraints
1721 now provide an optimized version as well.
1723 0.15 Sun. Nov. 5, 2006
1725 This version of Moose *must* have Class::MOP 0.36 in order
1726 to work correctly. A number of small internal tweaks have
1727 been made in order to be compatible with that release.
1729 * Moose::Util::TypeConstraints
1730 - added &unimport so that you can clean out
1731 your class namespace of these exported
1734 * Moose::Meta::Class
1735 - fixed minor issue which occasionally
1736 comes up during global destruction
1738 - moved Moose::Meta::Method::Overriden into
1742 - moved Moose::Meta::Role::Method into
1745 * Moose::Meta::Attribute
1746 - changed how we do type checks so that
1747 we reduce the overall cost, but still
1750 - moved accessor generation methods to
1751 Moose::Meta::Method::Accessor to
1752 conform to the API changes from
1755 * Moose::Meta::TypeConstraint
1756 - changed how constraints are compiled
1757 so that we do less recursion and more
1758 iteration. This makes the type check
1760 - moved Moose::Meta::TypeConstraint::Union
1763 * Moose::Meta::Method::Accessor
1764 - created this from methods formerly found in
1765 Moose::Meta::Attribute
1767 * Moose::Meta::Role::Method
1768 - moved this from Moose::Meta::Role
1770 * Moose::Meta::Method::Overriden
1771 - moved this from Moose::Meta::Class
1773 * Moose::Meta::TypeConstraint::Union
1774 - moved this from Moose::Meta::TypeConstraint
1776 0.14 Mon. Oct. 9, 2006
1778 * Moose::Meta::Attribute
1779 - fixed lazy attributes which were not getting
1780 checked with the type constraint (thanks ashley)
1781 - added tests for this
1782 - removed the over-enthusiastic DWIMery of the
1783 automatic ArrayRef and HashRef defaults, it
1784 broke predicates in an ugly way.
1785 - removed tests for this
1787 0.13 Sat. Sept. 30, 2006
1789 This version of Moose *must* have Class::MOP 0.35 in order
1790 to work correctly. A number of small internal tweaks have
1791 been made in order to be compatible with that release.
1794 - Removed the use of UNIVERSAL::require to be a better
1795 symbol table citizen and remove a dependency
1796 (thanks Adam Kennedy)
1798 **~~ removed experimental & undocumented feature ~~**
1799 - commented out the 'method' and 'self' keywords, see the
1800 comments for more info.
1803 - added a FAQ and WTF files to document frequently
1804 asked questions and common problems
1806 * Moose::Util::TypeConstraints
1807 - added GlobRef and FileHandle type constraint
1808 - added tests for this
1810 * Moose::Meta::Attribute
1811 - if your attribute 'isa' ArrayRef of HashRef, and you have
1812 not explicitly set a default, then make the default DWIM.
1813 This will also work for subtypes of ArrayRef and HashRef
1815 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1816 - new test added for this (thanks to ashley)
1819 - added basic support for runtime role composition
1820 but this is still *highly experimental*, so feedback
1821 is much appreciated :)
1822 - added tests for this
1824 * Moose::Meta::TypeConstraint
1825 - the type constraint now handles the coercion process
1826 through delegation, this is to support the coercion
1829 * Moose::Meta::TypeConstraint::Union
1830 - it is now possible for coercions to be performed
1832 - added tests for this (thanks to konobi)
1834 * Moose::Meta::TypeCoercion
1835 - properly capturing error when type constraint
1839 - Scalar::Util 1.18 is bad on Win32, so temporarily
1840 only require version 1.17 for Win32 and cygwin.
1841 (thanks Adam Kennedy)
1843 0.12 Sat. Sept. 1, 2006
1845 - Recipe5 (subtypes & coercion) has been written
1848 - fixed "bad meta" error message to be more descriptive
1849 - fixed &unimport to not remove the &inner and &super
1850 keywords because we need to localize them.
1851 - fixed number of spelling/grammer issues, thanks Theory :)
1853 **~~ experimental & undocumented feature ~~**
1854 - added the method and self keywords, they are basically
1855 just sugar, and they may not stay around.
1858 - added &dump method to easily Data::Dumper
1861 * Moose::Meta::TypeConstraint
1862 - added the &is_a_type_of method to check both the current
1863 and the subtype of a method (similar to &isa with classes)
1866 - this is now a subclass of Class::MOP::Module, and no longer
1867 creates the _role_meta ugliness of before.
1868 - fixed tests to reflect this change
1870 0.11 Wed. July 12, 2006
1872 - added an &unimport method to remove all the keywords
1873 that Moose will import, simply add 'no Moose' to the
1874 bottom of your class file.
1877 - fixed some test failures caused by a forgotten test
1880 0.10 Thurs. July 6, 2006
1882 - improved error message when loading modules so
1883 it is less confusing when you load a role.
1884 - added &calculate_all_roles method to
1885 Moose::Meta::Class and Moose::Meta::Role
1888 This module has been tested against Class::MOP 0.30
1889 but it does not yet utilize the optimizations
1890 it makes available. Stay tuned for that ;)
1892 0.09_03 Fri. June 23, 2006
1893 ++ DEVELOPER RELEASE ++
1895 - 'use strict' and 'use warnings' are no longer
1896 needed in Moose classes, Moose itself will
1897 turn them on for you.
1898 - added tests for this
1899 - moved code from exported subs to private methods
1900 in Moose::Meta::Class
1903 - as with Moose, strict and warnings are
1904 automatically turned on for you.
1905 - added tests for this
1908 - now handles an edge case for override errors
1909 - added tests for this
1910 - added some more edge case tests
1912 0.09_02 Tues. May 16, 2006
1913 ++ DEVELOPER RELEASE ++
1915 - added prototypes to the exported subs
1919 - added prototypes to the exported subs
1922 * Moose::Util::TypeConstraints
1923 - cleaned up prototypes for the subs
1926 0.09_01 Fri. May 12, 2006
1927 ++ DEVELOPER RELEASE ++
1928 - This release works in combination with
1929 Class::MOP 0.29_01, it is a developer
1930 release because it uses the a new
1931 instance sub-protocol and a fairly
1932 complete Role implementation. It has
1933 not yet been optimized, so it slower
1934 the the previous CPAN version. This
1935 release also lacks good updated docs,
1936 the official release will have updated docs.
1939 - refactored the keyword exports
1940 - 'with' now checks Role validaity and
1941 accepts more than one Role at a time
1942 - 'extends' makes metaclass adjustments as
1943 needed to ensure metaclass compatibility
1946 - refactored the keyword exports
1947 - 'with' now checks Role validaity and
1948 accepts more than one Role at a time
1950 * Moose::Util::TypeConstraints
1951 - added the 'enum' keyword for simple
1952 string enumerations which can be used as
1954 - see example of usage in t/202_example.t
1957 - more careful checking of params to new()
1960 - much work done on the role composition
1961 - many new tests for conflict detection
1962 and composition edge cases
1963 - not enough documentation, I suggest
1964 looking at the tests
1966 * Moose::Meta::Instance
1967 - added new Instance metaclass to support
1968 the new Class::MOP instance protocol
1970 * Moose::Meta::Class
1971 - some small changes to support the new
1973 - some small additions to support Roles
1975 * Moose::Meta::Attribute
1976 - some improvements to the accessor generation code
1978 - some small changes to support the new
1980 - (still somewhat) experimental delegation support
1981 with the 'handles' option
1982 - added several tests for this
1983 - no docs for this yet
1985 0.05 Thurs. April 27, 2006
1987 - keywords are now exported with Sub::Exporter
1988 thanks to chansen for this commit
1989 - has keyword now takes a 'metaclass' option
1990 to support custom attribute meta-classes
1991 on a per-attribute basis
1992 - added tests for this
1993 - the 'has' keyword not accepts inherited slot
1994 specifications (has '+foo'). This is still an
1995 experimental feature and probably not finished
1996 see t/038_attribute_inherited_slot_specs.t for
1997 more details, or ask about it on #moose
1998 - added tests for this
2001 - keywords are now exported with Sub::Exporter
2003 * Moose::Utils::TypeConstraints
2004 - reorganized the type constraint hierarchy, thanks
2005 to nothingmuch and chansen for his help and advice
2007 - added some tests for this
2008 - keywords are now exported with Sub::Exporter
2009 thanks to chansen for this commit
2011 * Moose::Meta::Class
2012 - due to changes in Class::MOP, we had to change
2013 construct_instance (for the better)
2015 * Moose::Meta::Attribute
2016 - due to changes in Class::MOP, we had to add the
2017 initialize_instance_slot method (it's a good thing)
2019 * Moose::Meta::TypeConstraint
2020 - added type constraint unions
2021 - added tests for this
2022 - added the is_subtype_of predicate method
2023 - added tests for this
2025 0.04 Sun. April 16th, 2006
2027 - Roles can now consume other roles
2028 - added tests for this
2029 - Roles can specify required methods now with
2030 the requires() keyword
2031 - added tests for this
2034 - ripped out much of it's guts ,.. much cleaner now
2035 - added required methods and correct handling of
2036 them in apply() for both classes and roles
2037 - added tests for this
2038 - no longer adds a does() method to consuming classes
2039 it relys on the one in Moose::Object
2040 - added roles attribute and some methods to support
2041 roles consuming roles
2043 * Moose::Meta::Attribute
2044 - added support for triggers on attributes
2045 - added tests for this
2046 - added support for does option on an attribute
2047 - added tests for this
2049 * Moose::Meta::Class
2050 - added support for attribute triggers in the
2052 - added tests for this
2055 - Moose no longer creates a subtype for your class
2056 if a subtype of the same name already exists, this
2057 should DWIM in 99.9999% of all cases
2059 * Moose::Util::TypeConstraints
2060 - fixed bug where incorrect subtype conflicts were
2062 - added test for this
2065 - this class can now be extended with 'use base' if
2066 you need it, it properly loads the metaclass class now
2067 - added test for this
2069 0.03_02 Wed. April 12, 2006
2071 - you must now explictly use Moose::Util::TypeConstraints
2072 it no longer gets exported for you automatically
2075 - new() now accepts hash-refs as well as key/value lists
2076 - added does() method to check for Roles
2077 - added tests for this
2079 * Moose::Meta::Class
2080 - added roles attribute along with the add_role() and
2082 - added tests for this
2085 - now adds a does() method to consuming classes
2086 which tests the class's hierarchy for roles
2087 - added tests for this
2089 0.03_01 Mon. April 10, 2006
2091 - added new Role recipe (no content yet, only code)
2094 - added 'with' keyword for Role support
2095 - added test and docs for this
2096 - fixed subtype quoting bug
2097 - added test for this
2101 - added test and docs
2103 * Moose::Util::TypeConstraints
2104 - added the message keyword to add custom
2105 error messages to type constraints
2108 - the meta role to support Moose::Role
2109 - added tests and docs
2111 * Moose::Meta::Class
2112 - moved a number of things from Moose.pm
2113 to here, they should have been here
2116 * Moose::Meta::Attribute
2117 - moved the attribute option macros here
2118 instead of putting them in Moose.pm
2120 * Moose::Meta::TypeConstraint
2121 - added the message attributes and the
2123 - added tests and docs for this
2125 0.03 Thurs. March 30, 2006
2127 - added the Moose::Cookbook with 5 recipes,
2128 describing all the stuff Moose can do.
2131 - fixed an issue with &extends super class loading
2132 it now captures errors and deals with inline
2133 packages correctly (bug found by mst, solution
2135 - added super/override & inner/augment features
2136 - added tests and docs for these
2139 - BUILDALL now takes a reference of the %params
2140 that are passed to &new, and passes that to
2143 * Moose::Util::TypeConstraints
2144 - Type constraints now survive runtime reloading
2145 - added test for this
2147 * Moose::Meta::Class
2148 - fixed the way attribute defaults are handled
2149 during instance construction (bug found by chansen)
2151 * Moose::Meta::Attribute
2152 - read-only attributes now actually enforce their
2153 read-only-ness (this corrected in Class::MOP as
2156 0.02 Tues. March 21, 2006
2158 - many more tests, fixing some bugs and
2160 - &extends now loads the base module with
2162 - added UNIVERSAL::require to the
2165 - each new Moose class will also create
2166 and register a subtype of Object which
2167 correspond to the new Moose class.
2168 - the 'isa' option in &has now only
2169 accepts strings, and will DWIM in
2172 * Moose::Util::TypeConstraints
2173 - added type coercion features
2174 - added tests for this
2175 - added support for this in attributes
2176 and instance construction
2178 - type construction no longer creates a
2179 function, it registers the type instead.
2180 - added several functions to get the
2184 - BUILDALL and DEMOLISHALL were broken
2185 because of a mis-named hash key, Whoops :)
2187 * Moose::Meta::Attribute
2188 - adding support for coercion in the
2189 autogenerated accessors
2191 * Moose::Meta::Class
2192 - adding support for coercion in the
2193 instance construction
2195 * Moose::Meta::TypeConstraint
2196 * Moose::Meta::TypeCoercion
2197 - type constraints and coercions are now
2198 full fledges meta-objects
2200 0.01 Wed. March 15, 2006
2201 - Moooooooooooooooooose!!!