1 Revision history for Perl extension Moose
4 * Moose::Util::TypeConstraints
5 - Calling subtype with a name as the only argument is now an
6 exception. If you want an anonymous subtype do:
8 my $subtype = subtype as 'Foo';
10 * Moose::Cookbook::Meta::Recipe7
11 - A new recipe, creating a custom meta-instance class.
13 * Moose::Cookbook::Basics::Recipe5
14 - Fix various typos and mistakes. Includes a patch from Radu
17 * Moose::Cookbook::Basics::Recipe9
18 - Link to this recipe from Moose.pm's builder blurb
21 - When wrapping a function with a prototype, Moose::Exporter now
22 makes sure the wrapped function still has the same
23 prototype. Patch by Daisuke Maki.
25 * Moose::Meta::Attribute
26 - Allow a subclass to set lazy_build for an inherited
27 attribute. (Dieter Pearcey).
30 - Explicitly depend on Data::OptList. We already had this dependency
31 via Sub::Exporter, but since we're using it directly we're
32 better off with it listed. (Sartak)
34 * Moose::Meta::Method::Constructor
35 - Make it easier to subclass the inlining behaviour
37 * Moose::Manual::Delta
38 - Details significant changes in the history of Moose, along
39 with recommended workarounds.
41 * Moose::Manual::Contributing
42 - Contributor's guide to Moose.
44 * Moose::Meta::Method::Constructor
45 - The long-deprecated intialize_body method has been removed
46 (yes, spelled like that).
48 * Moose::Meta::Method::Destructor
49 - This is_needed method is now always a class method.
51 0.72 Mon, February 23, 2009
53 * Moose::Meta::Method::Constructor
54 - A mutable class accepted Foo->new(undef) without complaint,
55 while an immutable class would blow up with an unhelpful
56 error. Now, in both cases we throw a helpful error
57 instead. Reported by doy.
59 0.71_01 Sun, February 22, 2009
61 - Hopefully fixed some POD errors in a few recipes that caused
62 them to display weird on search.cpan.org.
64 * Moose::Util::TypeConstraints
65 - Calling type or subtype without the sugar helpers (as, where,
66 message) is now deprecated.
67 - The subtype function tried hard to guess what you meant, but
68 often got it wrong. For example:
70 my $subtype = subtype as 'ArrayRef[Object]';
72 This caused an error in the past, but now works as you'd
76 - Make sure Moose.pm is loaded before calling
77 Moose->throw_error. This wasn't normally an issue, but could
78 bite you in weird cases.
80 0.71 Thu, February 19, 2009
81 * Moose::Cookbook::Basics::Recipe11
82 - A new recipe which demonstrates the use of BUILDARGS and
85 * Moose::Cookbook::Roles::Recipe3
86 - A new recipe, applying a role to an object instance. (Dave
90 - Allow overriding specific keywords from "also" packages. (doy)
93 - Replace hardcoded cookbook tests with Test::Inline to ensure
94 the tests match the actual code in the recipes. (Dave Rolsky)
97 - Working on the above turned up a number of little bugs in the
98 recipe code. (Dave Rolsky)
100 * Moose::Util::TypeConstraints::Optimized
101 - Just use Class::MOP for the optimized ClassName check. (Dave
104 0.70 Sat, February 14, 2009
105 * Moose::Util::TypeConstraints
106 - Added the RoleName type (stevan)
107 - added tests for this (stevan)
109 * Moose::Cookbook::Basics::Recipe3
110 - Updated the before qw[left right] sub to be a little more
111 defensive about what it accepts (stevan)
112 - added more tests to t/000_recipies/basics/003_binary_tree.t
116 - We now always call DEMOLISHALL, even if a class does not
117 define DEMOLISH. This makes sure that method modifiers on
118 DEMOLISHALL work as expected. (doy)
119 - added tests for this (EvanCarroll)
121 * Moose::Util::MetaRole
122 - Accept roles for the wrapped_method_metaclass (rafl)
123 - added tests for this (rafl)
125 * Moose::Meta::Attribute
126 - We no longer pass the meta-attribute object as a final
127 argument to triggers. This actually changed for inlined code a
128 while back, but the non-inlined version and the docs were
132 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
133 they require 0.11. (Dave Rolsky)
136 - Lots of small changes to the manual, cookbook, and
137 elsewhere. These were based on feedback from various
138 users, too many to list here. (Dave Rolsky)
140 0.69 Thu, February 12, 2009
142 - Make some keyword errors use throw_error instead of croak
143 since Moose::Exporter wraps keywords now (Sartak)
146 - Revised every recipe for style and clarity. Also moved some
147 documentation out of cookbook recipes and into Moose::Manual
148 pages. This work was funded as part of the Moose docs grant
149 from TPF. (Dave Rolsky)
151 * Moose::Meta::Method::Delegation
152 - If the attribute doing the delegation was not populated, the
153 error message did not specify the attribute name
156 0.68 Wed, February 4, 2009
158 - Many spelling, typo, and formatting fixes by daxim.
160 * Moose::Manual::Attributes
161 - The NAME section in the POD used "Attribute" so search.cpan
162 didn't resolve links from other documents properly.
164 * Moose::Meta::Method::Overriden
165 - Now properly spelled as Overridden. Thanks to daxim for
168 0.67 Tue, February 3, 2009
170 - Lots of little typo fixes and a few clarifications. Several
171 pages didn't have proper titles, and so weren't actually
172 visible on search.cpan.org. Thanks to hanekomu for a variety
173 of fixes and formatting improvements.
175 0.66 Tue, February 3, 2009
177 - This is a brand new, extensive manual for Moose. This aims to
178 provide a complete introduction to all of Moose's
179 features. This work was funded as part of the Moose docs grant
180 from TPF. (Dave Rolsky)
182 * Moose::Meta::Attribute
183 - Added a delegation_metaclass method to replace a hard-coded
184 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
186 * Moose::Util::TypeConstraints
187 - If you created a subtype and passed a parent that Moose didn't
188 know about, it simply ignored the parent. Now it automatically
189 creates the parent as a class type. This may not be what you
190 want, but is less broken than before. (Dave Rolsky)
192 * Moose::Util::TypeConstraints
193 - This module tried throw errors by calling Moose->throw_error,
194 but it did not ensure that Moose was loaded first. This could
195 cause very unhelpful errors when it tried to throw an error
196 before Moose was loaded. (Dave Rolsky)
198 * Moose::Util::TypeConstraints
199 - You could declare a name with subtype such as "Foo!Bar" that
200 would be allowed, but if you used it in a parameterized type
201 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
202 vetting on names created via the sugar functions, so that they
203 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
205 0.65 Thu, January 22, 2008
206 * Moose and Moose::Meta::Method::Overridden
207 - If an overridden method called super(), and then the
208 superclass's method (not overridden) _also_ called super(),
209 Moose went into an endless recursion loop. Test provided by
210 Chris Prather. (Dave Rolsky)
212 * Moose::Meta::TypeConstraint
213 - All methods are now documented. (gphat)
215 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
216 - Fixed some bogus failures that occurred because we tried to
217 validate filesystem paths in a very ad-hoc and
218 not-quite-correct way. (Dave Rolsky)
220 * Moose::Util::TypeConstraints
221 - Added maybe_type to exports. See docs for details. (rjbs)
224 - Added Moose::Util::TypeConstraints to the SEE ALSO
228 - Methods created via an attribute can now fulfill a "requires"
229 declaration for a role. (nothingmuch)
231 * Moose::Meta::Method::*
232 - Stack traces from inlined code will now report its line and
233 file as being in your class, as opposed to in Moose
236 0.64 Wed, December 31, 2008
237 * Moose::Meta::Method::Accessor
238 - Always inline predicate and clearer methods (Sartak)
240 * Moose::Meta::Attribute
241 - Support for parameterized traits (Sartak)
242 - verify_against_type_constraint method to avoid duplication
243 and enhance extensibility (Sartak)
246 - Tests (but no support yet) for parameterized traits (Sartak)
249 - Require Class::MOP 0.75+, which has the side effect of making
250 sure we work on Win32. (Dave Rolsky)
252 0.63 Mon, December 8, 2008
254 - Some small grammar tweaks and bug fixes in non-Moose example
257 0.62_02 Fri, December 5, 2008
258 * Moose::Meta::Role::Application::ToClass
259 - When a class does not provide all of a role's required
260 methods, the error thrown now mentions all of the missing
261 methods, as opposed to just the first one found. Requested by
262 Curtis Poe (RT #41119). (Dave Rolsky)
264 * Moose::Meta::Method::Constructor
265 - Moose will no longer inline a constructor for your class
266 unless it inherits its constructor from Moose::Object, and
267 will warn when it doesn't inline. If you want to force
268 inlining anyway, pass "replace_constructor => 1" to
269 make_immutable. Addresses RT #40968, reported by Jon
270 Swartz. (Dave Rolsky)
271 - The quoting of default values could be broken if the default
272 contained a single quote ('). Now we use quotemeta to escape
273 anything potentially dangerous in the defaults. (Dave Rolsky)
275 0.62_01 Wed, December 3, 2008
277 - use the method->execute API for BUILDALL
278 and DEMOLISHALL (Sartak)
280 * Moose::Util::TypeConstraints
281 - We now make all the type constraint meta classes immutable
282 before creating the default types provided by Moose. This
283 should make loading Moose a little faster. (Dave Rolsky)
285 0.62 Wed November 26, 2008
286 * Moose::Meta::Role::Application::ToClass
287 Moose::Meta::Role::Application::ToRole
288 - fixed issues where excluding and aliasing the
289 same methods for a single role did not work
290 right (worked just fine with multiple
292 - added test for this (stevan)
294 * Moose::Meta::Role::Application::RoleSummation
295 - fixed the error message when trying to compose
296 a role with a role it excludes (Sartak)
299 - Catch another case where recursion caused the value
300 of $CALLER to be stamped on (t0m)
301 - added test for this (t0m)
304 - Remove the make_immutable keyword, which has been
305 deprecated since April. It breaks metaclasses that
306 use Moose without no Moose (Sartak)
308 * Moose::Meta::Attribute
309 - Removing an attribute from a class now also removes delegation
310 (handles) methods installed for that attribute (t0m)
311 - added test for this (t0m)
313 * Moose::Meta::Method::Constructor
314 - An attribute with a default that looked like a number (but was
315 really a string) would accidentally be treated as a number
316 when the constructor was made immutable (perigrin)
317 - added test for this (perigrin)
320 - create method for constructing a role
322 - added test for this (Sartak)
323 - anonymous roles! (Sartak)
324 - added test for this (Sartak)
327 - more consistent error messages (Sartak)
329 * Moose::Cookbook::Roles::Recipe1
330 - attempt to explain why a role that just requires
331 methods is useful (Sartak)
333 0.61 Fri November 7, 2008
334 * Moose::Meta::Attribute
335 - When passing a role to handles, it will be loaded if necessary
339 - Method objects returned by get_method (and other methods)
340 Could end up being returned without an associated_metaclass
341 attribute. Removing get_method_map, which is provided by
342 Class::MOP::Class, fixed this. The Moose version did nothing
343 different from its parent except introduce a bug. (Dave Rolsky)
344 - added tests for this (jdv79)
347 - Added a $VERSION to all .pm files which didn't have one. Fixes
348 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
350 * Moose::Cookbook::Basics::Recipe4
351 * Moose::Cookbook::Basics::Recipe6
352 - These files had spaces on the first line of the SYNOPSIS, as
353 opposed to a totally empty line. According to RT #40432, this
354 confuses POD parsers. (Dave Rolsky)
356 0.60 Fri October 24, 2008
358 - Passing "-traits" when loading Moose caused the Moose.pm
359 exports to be broken. Reported by t0m. (Dave Rolsky)
360 - Tests for this bug. (t0m)
363 - Change resolve_metaclass alias to use the new
364 load_first_existing_class function. This makes it a lot
365 simpler, and also around 5 times faster. (t0m)
366 - Add caching to resolve_metaclass_alias, which gives an order
367 of magnitude speedup to things which repeatedly call the
368 Moose::Meta::Attribute->does method, notably MooseX::Storage
371 * Moose::Util::TypeConstraint
372 - Put back the changes for parameterized constraints that
373 shouldn't have been removed in 0.59. We still cannot parse
374 them, but MooseX modules can create them in some other
375 way. See the 0.58 changes for more details. (jnapiorkowski)
376 - Changed the way subtypes are created so that the job is
377 delegated to a type constraint parent. This clears up some
378 hardcoded checking and should allow correct subtypes of
379 Moose::Meta::Type::Constraint. Don't rely on this new API too
380 much (create_child_type) because it may go away in the
381 future. (jnapiorkowski)
383 * Moose::Meta::TypeConstraint::Union
384 - Type constraint names are sorted as strings, not numbers.
387 * Moose::Meta::TypeConstraint::Parameterizable
388 - New parameterize method. This can be used as a factory method
389 to make a new type constraint with a given parameterized
390 type. (jnapiorkowski)
391 - added tests (jnapiorkowski)
393 0.59 Tue October 14, 2008
395 - Add abridged documentation for builder/default/initializer/
396 predicate, and link to more details sections in
397 Class::MOP::Attribute. (t0m)
399 * Moose::Util::TypeConstraints
400 - removed prototypes from all but the &-based stuff (mst)
402 * Moose::Util::TypeConstraints
403 - Creating a anonymous subtype with both a constraint and a
404 message failed with a very unhelpful error, but should just
405 work. Reported by t0m. (Dave Rolsky)
408 - Some tests that used Test::Warn if it was available failed
409 with older versions of Test::Warn. Reported by Fayland. (Dave
411 - Test firing behavior of triggers in relation to builder/default/
413 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
414 kinds of supported type. (t0m)
417 - In create(), do not pass "roles" option to the superclass
418 - added related test that creates an anon metaclass with
421 * Moose::Meta::TypeConstraint::Class
422 * Moose::Meta::TypeConstraint::Role
423 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
424 other types (as per change in 0.55_02). (t0m)
426 * Moose::Meta::TypeConstraint::Registry
427 - Fix warning when dealing with unknown type names (t0m)
429 * Moose::Util::TypeConstraints
430 - Reverted changes from 0.58 related to handle parameterized
431 types. This caused random failures on BSD and Win32 systems,
432 apparently related to the regex engine. This means that Moose
433 can no longer parse structured type constraints like
434 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
435 supported in a slightly different way via MooseX::Types some
436 time in the future. (Dave Rolsky)
438 0.58 Sat September 20, 2008
439 !! This release has an incompatible change regarding !!
440 !! how roles add methods to a class !!
442 * Roles and role application
443 ! Roles now add methods by calling add_method, not
444 alias_method. They make sure to always provide a method
445 object, which will be cloned internally. This means that it is
446 now possible to track the source of a method provided by a
447 role, and even follow its history through intermediate roles.
449 This means that methods added by a role now show up when
450 looking at a class's method list/map. (Dave Rolsky)
453 - From this release on, we'll try to maintain a list of
454 conflicting modules, and warn you if you have one
455 installed. For example, this release conflicts with ...
456 - MooseX::Singleton <= 0.11
457 - MooseX::Params::Validate <= 0.05
460 In general, we try to not break backwards compatibility for
461 most Moose users, but MooseX modules and other code which
462 extends Moose's metaclasses is often affected by very small
463 changes in the Moose internals.
465 * Moose::Meta::Method::Delegation
466 * Moose::Meta::Attribute
467 - Delegation methods now have their own method class. (Dave
470 * Moose::Meta::TypeConstraint::Parameterizable
471 - Added a new method 'parameterize' which is basically a factory
472 for the containing constraint. This makes it easier to create
473 new types of parameterized constraints. (jnapiorkowski)
475 * Moose::Meta::TypeConstraint::Union
476 - Changed the way Union types canonicalize their names to follow
477 the normalized TC naming rules, which means we strip all
478 whitespace. (jnapiorkowski)
480 * Moose::Util::TypeConstraints
481 - Parameter and Union args are now sorted, this makes Int|Str
482 the same constraint as Str|Int. (jnapiorkowski)
483 - Changes to the way Union types are parsed to more correctly
484 stringify their names. (jnapiorkowski)
485 - When creating a parameterized type, we now use the new
486 parameterize method. (jnapiorkowski)
487 - Incoming type constraint strings are now normalized to remove
488 all whitespace differences. (jnapiorkowski)
489 - Changed the way we parse type constraint strings so that we now
490 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
491 constraints. This lays the foundation for more flexible type
492 constraint implementations.
494 * Tests and docs for all the above. (jnapiorkowski)
498 - Moose::Exporter will no longer remove a subroutine that the
499 exporting package re-exports. Moose re-exports the
500 Carp::confess function, among others. The reasoning is that we
501 cannot know whether you have also explicitly imported those
502 functions for your own use, so we err on the safe side and
503 always keep them. (Dave Rolsky)
504 - added tests for this (rafl)
507 - Changes to how we fix metaclass compatibility that are much
508 too complicated to go into. The summary is that Moose is much
509 less likely to complain about metaclass incompatibility
510 now. In particular, if two metaclasses differ because
511 Moose::Util::MetaRole was used on the two corresponding
512 classes, then the difference in roles is reconciled for the
513 subclass's metaclass. (Dave Rolsky)
514 - Squashed an warning in _process_attribute (thepler)
517 - throw exceptions (sooner) for invalid attribute names (thepler)
518 - added tests for this (thepler)
520 * Moose::Util::MetaRole
521 - If you explicitly set a constructor or destructor class for a
522 metaclass object, and then applied roles to the metaclass,
523 that explicitly set class would be lost and replaced with the
527 * Moose::Meta::Attribute
528 * Moose::Meta::Method
531 * Moose::Error::Default
532 * Moose::Error::Croak
533 * Moose::Error::Confess
534 - All instances of confess() changed to use overridable
535 C<throw_error> method. This method ultimately calls a class
536 constructor, and you can change the class being called. In
537 addition, errors now pass more information than just a string.
538 The default C<error_class> behaves like C<Carp::confess>, so
539 the behavior is not visibly different for end users.
541 0.57 Wed September 3, 2008
543 - A new bit of doc intended to introduce folks familiar with
544 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
547 - Shows examples of two classes, each done first with and then
548 without Moose. This makes a nice parallel to
549 Moose::Intro. (Dave Rolsky)
551 * Moose::Util::TypeConstraints
552 - Fixed a bug in find_or_parse_type_constraint so that it
553 accepts a Moose::Meta::TypeConstraint object as the parent
554 type, not just a name (jnapiorkowski)
555 - added tests (jnapiorkowski)
558 - If Sub::Name was not present, unimporting failed to actually
559 remove some sugar subs, causing test failures (Dave Rolsky)
561 0.56 Mon September 1, 2008
562 For those not following the series of dev releases, there are
563 several major changes in this release of Moose.
564 ! Moose::init_meta should now be called as a method. See the
567 - Major performance improvements by nothingmuch.
569 - New modules for extension writers, Moose::Exporter and
570 Moose::Util::MetaRole by Dave Rolsky.
572 - Lots of doc improvements and additions, especially in the
577 * Removed all references to the experimental-but-no-longer-needed
578 Moose::Meta::Role::Application::ToMetaclassInstance.
580 * Require Class::MOP 0.65.
582 0.55_04 Sat August 30, 2008
583 * Moose::Util::MetaRole
584 * Moose::Cookbook::Extending::Recipe2
585 - This simplifies the application of roles to any meta class, as
586 well as the base object class. Reimplemented metaclass traits
587 using this module. (Dave Rolsky)
589 * Moose::Cookbook::Extending::Recipe1
590 - This a new recipe, an overview of various ways to write Moose
591 extensions (Dave Rolsky)
593 * Moose::Cookbook::Extending::Recipe3
594 * Moose::Cookbook::Extending::Recipe4
595 - These used to be Extending::Recipe1 and Extending::Recipe2,
598 0.55_03 Fri August 29, 2008
599 * No changes from 0.55_02 except increasing the Class::MOP
600 dependency to 0.64_07.
602 0.55_02 Fri August 29, 2008
603 * Makefile.PL and Moose.pm
604 - explicitly require Perl 5.8.0+ (Dave Rolsky)
606 * Moose::Util::TypeConstraints
607 - Fix warnings from find_type_constraint if the type is not
610 * Moose::Meta::TypeConstraint
611 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
612 return false if the type you specify cannot be found in the
613 type registry, rather than throwing an unhelpful and
614 coincidental exception. (t0m).
615 - added docs & test for this (t0m)
617 * Moose::Meta::TypeConstraint::Registry
618 - add_type_constraint now throws an exception if a parameter is
620 - added docs & test for this (t0m)
622 * Moose::Cookbook::FAQ
623 - Added a faq entry on the difference between "role" and "trait"
627 - Fixed a bug that caused role composition to not see a required
628 method when that method was provided by another role being
629 composed at the same time. (Dave Rolsky)
630 - test and bug finding (tokuhirom)
632 0.55_01 Wed August 20, 2008
634 !! Calling Moose::init_meta as a function is now !!
635 !! deprecated. Please see the Moose.pm docs for details. !!
637 * Moose::Meta::Method::Constructor
638 - Fix inlined constructor so that values produced by default
639 or builder methods are coerced as required. (t0m)
640 - added test for this (t0m)
642 * Moose::Meta::Attribute
643 - A lazy attribute with a default or builder did not attempt to
644 coerce the default value. The immutable code _did_
646 - added test for this (t0m)
649 - This is a new helper module for writing "Moose-alike"
650 modules. This should make the lives of MooseX module authors
651 much easier. (Dave Rolsky)
654 * Moose::Cookbook::Meta::Recipe5
655 - Implemented metaclass traits (and wrote a recipe for it):
657 use Moose -traits => 'Foo'
659 This should make writing small Moose extensions a little
662 * Moose::Cookbook::Basics::Recipe1
663 - Removed any examples of direct hashref access, and applied an
664 editorial axe to reduce verbosity. (Dave Rolsky)
666 * Moose::Cookbook::Basics::Recipe1
667 - Also applied an editorial axe here. (Dave Rolsky)
670 * Moose::Cookbook::Extending::Recipe1
671 * Moose::Cookbook::Extending::Recipe2
672 - Rewrote extending and embedding moose documentation and
673 recipes to use Moose::Exporter (Dave Rolsky)
677 - These two modules now warn when you load them from the main
678 package "main" package, because we will not export sugar to
679 main. Previously it just did nothing. (Dave Rolsky)
682 - Now provide an init_meta method just like Moose.pm, and you
683 can call this to provide an alternate role metaclass. (Dave
684 Rolsky and nothingmuch)
685 - get_method_map now respects the package cache flag (nothingmuch)
688 - Two new methods - add_method and wrap_method_body
692 - Optimizations including allowing constructors to accept hash
693 refs, making many more classes immutable, and making
694 constructors immutable. (nothingmuch)
696 0.55 Sun August 3, 2008
697 * Moose::Meta::Attribute
698 - breaking down the way 'handles' methods are
699 created so that the process can be more easily
700 overridden by subclasses (stevan)
702 * Moose::Meta::TypeConstraint
703 - fixing what is passed into a ->message with
704 the type constraints (RT #37569)
705 - added tests for this (Charles Alderman)
707 * Moose::Util::TypeConstraints
708 - fix coerce to accept anon types like subtype can (mst)
711 - reorganized the recipes into sections - Basics, Roles, Meta,
712 Extending - and wrote abstracts for each section (Dave Rolsky)
714 * Moose::Cookbook::Basics::Recipe10
715 - A new recipe that demonstrates operator overloading
716 in combination with Moose. (bluefeet)
718 * Moose::Cookbook::Meta::Recipe1
719 - an introduction to what meta is and why you'd want to make
720 your own metaclass extensions (Dave Rolsky)
722 * Moose::Cookbook::Meta::Recipe4
723 - a very simple metaclass example (Dave Rolsky)
725 * Moose::Cookbook::Extending::Recipe1
726 - how to write a Moose-alike module to use your own object base
729 * Moose::Cookbook::Extending::Recipe2
730 - how to write modules with an API just like C<Moose.pm> (Dave
734 - Tons of fixes, both syntactical and grammatical (Dave
735 Rolsky, Paul Fenwick)
737 0.54 Thurs. July 3, 2008
738 ... this is not my day today ...
740 * Moose::Meta::Attribute
741 - fixed legal_options_for_inheritance such that
742 clone_and_inherit options still works for
743 Class::MOP::Attribute objects and therefore
744 does not break MooseX::AttributeHelpers
747 0.53 Thurs. July 3, 2008
748 * Whoops, I guess I should run 'make manifest' before
749 actually releasing the module. No actual changes
750 in this release, except the fact that it includes
751 the changes that I didn't include in the last
754 0.52 Thurs. July 3, 2008
756 - added "FEATURE REQUESTS" section to the Moose docs
757 to properly direct people (stevan) (RT #34333)
758 - making 'extends' croak if it is passed a Role since
759 this is not ever something you want to do
760 (fixed by stevan, found by obra)
761 - added tests for this (stevan)
764 - adding support for DOES (as in UNIVERSAL::DOES)
766 - added test for this
768 * Moose::Meta::Attribute
769 - added legal_options_for_inheritance (wreis)
770 - added tests for this (wreis)
772 * Moose::Cookbook::Snacks::*
773 - removed some of the unfinished snacks that should
774 not have been released yet. Added some more examples
775 to the 'Keywords' snack. (stevan)
777 * Moose::Cookbook::Style
778 - added general Moose "style guide" of sorts to the
779 cookbook (nothingmuch) (RT #34335)
782 - added more BUILDARGS tests (stevan)
784 0.51 Thurs. Jun 26, 2008
786 - add unimport so "no Moose::Role" actually does
789 * Moose::Meta::Role::Application::ToRole
790 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
791 order to provide its own implementation, that method still got
792 added to the list of required methods for consumers of
793 RoleB. Now an aliased method is only added to the list of
794 required methods if the role doing the aliasing does not
795 provide its own implementation. See Recipe 11 for an example
796 of all this. (Dave Rolsky)
797 - added tests for this
799 * Moose::Meta::Method::Constructor
800 - when a single argument that wasn't a hashref was provided to
801 an immutabilized constructor, the error message was very
802 unhelpful, as opposed to the non-immutable error. Reported by
804 - added test for this (Dave Rolsky)
806 * Moose::Meta::Attribute
807 - added support for meta_attr->does("ShortAlias") (sartak)
808 - added tests for this (sartak)
809 - moved the bulk of the `handles` handling to the new
810 install_delegation method (Stevan)
813 - Added BUILDARGS, a new step in new()
815 * Moose::Meta::Role::Application::RoleSummation
816 - fix typos no one ever sees (sartak)
818 * Moose::Util::TypeConstraints
819 * Moose::Meta::TypeConstraint
820 * Moose::Meta::TypeCoercion
821 - Attempt to work around the ??{ } vs. threads issue
823 - Some null_constraint optimizations
825 0.50 Thurs. Jun 11, 2008
826 - Fixed a version number issue by bumping all modules
829 0.49 Thurs. Jun 11, 2008
830 !! This version now approx. 20-25% !!
831 !! faster with new Class::MOP 0.59 !!
833 * Moose::Meta::Attribute
834 - fixed how the is => (ro|rw) works with
835 custom defined reader, writer and accessor
837 - added docs for this (TODO).
838 - added tests for this (Thanks to Penfold)
839 - added the custom attribute alias for regular
840 Moose attributes which is "Moose"
841 - fix builder and default both being used
846 Moose::Meta::Attribute
848 Moose::Meta::Role::Composite
849 Moose::Util::TypeConstraints
850 - switched usage of reftype to ref because
854 - changing add_package_symbol to use the new
858 - fixed how DEMOLISHALL is called so that it
859 can be overrided in subclasses (thanks to Sartak)
860 - added test for this (thanks to Sartak)
862 * Moose::Util::TypeConstraints
863 - move the ClassName type check code to
864 Class::MOP::is_class_loaded (thanks to Sartak)
866 * Moose::Cookbook::Recipe11
867 - add tests for this (thanks to tokuhirom)
869 0.48 Thurs. May 29, 2008
870 (early morning release engineering)--
872 - fixing the version in Moose::Meta::Method::Destructor
873 which was causing the indexer to choke
875 0.47 Thurs. May 29, 2008
876 (late night release engineering)--
878 - fixing the version is META.yml, no functional
879 changes in this release
881 0.46 Wed. May 28, 2008
882 !! This version now approx. 20-25% !!
883 !! faster with new Class::MOP 0.57 !!
886 - some optimizations of the &initialize method
887 since it is called so often by &meta
891 - now use the get_all_package_symbols from the
892 updated Class::MOP, test suite is now 10 seconds
895 * Moose::Meta::Method::Destructor
896 - is_needed can now also be called as a class
897 method for immutablization to check if the
898 destructor object even needs to be created
901 * Moose::Meta::Method::Destructor
902 Moose::Meta::Method::Constructor
903 - added more descriptive error message to help
904 keep people from wasting time tracking an error
905 that is easily fixed by upgrading.
907 0.45 Saturday, May 24, 2008
909 - Because of work in Class::MOP 0.57, all
910 XS based functionality is now optional
911 and a Pure Perl version is supplied
912 - the CLASS_MOP_NO_XS environment variable
913 can now be used to force non-XS versions
915 - several of the packages have been tweaked
916 to take care of this, mostly we added
917 support for the package_name and name
918 variables in all the Method metaclasses
919 - before/around/after method modifiers now
920 support regexp matching of names
921 (thanks to Takatoshi Kitano)
922 - tests added for this
923 - NOTE: this only works for classes, it
924 is currently not supported in roles,
925 but, ... patches welcome
926 - All usage of Carp::confess have been replaced
927 by Carp::croak in the "keyword" functions since
928 the stack trace is usually not helpful
931 - All usage of Carp::confess have been replaced
932 by Carp::croak in the "keyword" functions since
933 the stack trace is usually not helpful
934 - The 'has' keyword for roles now accepts the
935 same array ref form that Moose.pm does
936 (has [qw/foo bar/] => (is => 'rw', ...))
937 - added test for this
939 * Moose::Meta::Attribute
940 - trigger on a ro-attribute is no longer an
941 error, as it's useful to trigger off of the
945 - added same 'add_package_symbol' fix as in
949 - does_role now handles non-Moose classes
951 - added tests for this
952 - added the 'add_method_modifier' function
953 (thanks to Takatoshi Kitano)
955 * Moose::Util::TypeConstraints
956 - subtypes of parameterizable types now are
957 themselves parameterizable types
959 * Moose::Meta::Method::Constructor
960 - fixed bug where trigger was not being
961 called by the inlined immutable
963 - added test for this (thanks to Caelum)
965 * Moose::Meta::Role::Application::ToInstance
966 - now uses the metaclass of the instance
967 (if possible) to create the anon-class
968 (thanks Jonathan Rockway)
970 * Moose::Cookbook::Recipe22
971 - added the meta-attribute trait recipe
975 - fixed hash-ordering test bug that was
976 causing occasional cpantester failures
977 - renamed the t/000_recipe/*.t tests to be
978 more descriptive (thanks to Sartak)
980 0.44 Sat. May 10, 2008
982 - made make_immutable warning cluck to
983 show where the error is (thanks mst)
986 - BUILDALL and DEMOLISHALL now call
987 ->body when looping through the
988 methods, to avoid the overloaded
990 - fixed issue where DEMOLISHALL was
991 eating the $@ values, and so not
992 working correctly, it still kind of
993 eats them, but so does vanilla perl
994 - added tests for this
996 * Moose::Cookbook::Recipe7
997 - added new recipe for immutable
998 functionality (thanks Dave Rolsky)
1000 * Moose::Cookbook::Recipe9
1001 - added new recipe for builder and
1002 lazy_build (thanks Dave Rolsky)
1004 * Moose::Cookbook::Recipe11
1005 - added new recipe for method aliasing
1006 and exclusion with Roles (thanks Dave Rolsky)
1009 - fixed Win32 test failure (thanks spicyjack)
1011 ~ removed Build.PL and Module::Build compat
1012 since Module::Install has done that.
1014 0.43 Wed. April, 30, 2008
1016 drink more coffee before
1017 doing release engineering
1019 - whoops, forgot to do the smolder tests,
1020 and we broke some of the custom meta-attr
1021 modules. This fixes that.
1023 0.42 Mon. April 28, 2008
1024 - some bad tests slipped by, nothing else
1025 changed in this release (cpantesters++)
1027 - upped the Class::MOP dependency to 0.55
1028 since we have tests which need the C3
1031 0.41 Mon. April 28, 2008
1032 ~~ numerous documentation updates ~~
1034 - Changed all usage of die to Carp::croak for better
1035 error reporting (initial patch by Tod Hagan)
1037 ** IMPORTANT NOTE **
1038 - the make_immutable keyword is now deprecated, don't
1039 use it in any new code and please fix your old code
1040 as well. There will be 2 releases, and then it will
1046 - refactored the way inner and super work to avoid
1047 any method/@ISA cache penalty (nothingmuch)
1049 * Moose::Meta::Class
1050 - fixing &new_object to make sure trigger gets the
1051 coerced value (spotted by Charles Alderman on the
1053 - added test for this
1055 * Moose::Meta::Method::Constructor
1056 - immutable classes which had non-lazy attributes were calling
1057 the default generating sub twice in the constructor. (bug
1058 found by Jesse Luehrs, fixed by Dave Rolsky)
1059 - added tests for this (Dave Rolsky)
1060 - fix typo in initialize_body method (nothingmuch)
1062 * Moose::Meta::Method::Destructor
1063 - fix typo in initialize_body method (nothingmuch)
1065 * Moose::Meta::Method::Overriden
1066 Moose::Meta::Method::Augmented
1067 - moved the logic for these into their own
1068 classes (nothingmuch)
1070 * Moose::Meta::Attribute
1071 - inherited attributes may now be extended without
1072 restriction on the type ('isa', 'does') (Sartak)
1073 - added tests for this (Sartak)
1074 - when an attribute property is malformed (such as lazy without
1075 a default), give the name of the attribute in the error
1077 - added the &applied_traits and &has_applied_traits methods
1078 to allow introspection of traits
1079 - added tests for this
1080 - moved 'trait' and 'metaclass' argument handling to here from
1082 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1083 '+foo' syntax) (nothingmuch)
1084 - added tests for this (t0m)
1087 - localize $@ inside DEMOLISHALL to avoid it
1088 eating $@ (found by Ernesto)
1089 - added test for this (thanks to Ernesto)
1091 * Moose::Util::TypeConstraints
1092 - &find_type_constraint now DWIMs when given an
1093 type constraint object or name (nothingmuch)
1094 - &find_or_create_type_constraint superseded with a number of more
1096 - find_or_create_{isa,does}_type_constraint
1097 - find_or_parse_type_constraint
1099 * Moose::Meta::TypeConstraint
1100 Moose::Meta::TypeConstraint::Class
1101 Moose::Meta::TypeConstraint::Role
1102 Moose::Meta::TypeConstraint::Enum
1103 Moose::Meta::TypeConstraint::Union
1104 Moose::Meta::TypeConstraint::Parameterized
1105 - added the &equals method for comparing two type
1106 constraints (nothingmuch)
1107 - added tests for this (nothingmuch)
1109 * Moose::Meta::TypeConstraint
1110 - add the &parents method, which is just an alias to &parent.
1111 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1113 * Moose::Meta::TypeConstraint::Class
1114 - added the class attribute for introspection purposes
1116 - added tests for this
1118 * Moose::Meta::TypeConstraint::Enum
1119 Moose::Meta::TypeConstraint::Role
1120 - broke these out into their own classes (nothingmuch)
1122 * Moose::Cookbook::Recipe*
1123 - fixed references to test file locations in the POD
1124 and updated up some text for new Moose features
1128 - Added &resolve_metaclass_alias, a helper function for finding an actual
1129 class for a short name (e.g. in the traits list)
1131 0.40 Fri. March 14, 2008
1132 - I hate Pod::Coverage
1134 0.39 Fri. March 14, 2008
1136 - documenting the use of '+name' with attributes
1137 that come from recently composed roles. It makes
1138 sense, people are using it, and so why not just
1139 officially support it.
1140 - fixing the 'extends' keyword so that it will not
1141 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1144 - added the perl -Moose=+Class::Name feature to allow
1145 monkeypatching of classes in one liners
1148 - fixing the 'apply_all_roles' keyword so that it will not
1149 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1151 * Moose::Meta::Class
1152 - added ->create method which now supports roles (thanks to jrockway)
1153 - added tests for this
1154 - added ->create_anon_class which now supports roles and caching of
1155 the results (thanks to jrockway)
1156 - added tests for this
1157 - made ->does_role a little more forgiving when it is
1158 checking a Class::MOP era metaclasses.
1160 * Moose::Meta::Role::Application::ToInstance
1161 - it is now possible to pass extra params to be used when
1162 a role is applied to an the instance (rebless_params)
1163 - added tests for this
1165 * Moose::Util::TypeConstraints
1166 - class_type now accepts an optional second argument for a
1167 custom message. POD anotated accordingly (groditi)
1168 - added tests for this
1169 - it is now possible to make anon-enums by passing 'enum' an
1170 ARRAY ref instead of the $name => @values. Everything else
1172 - added tests for this
1175 - making test for using '+name' on attributes consumed
1176 from a role, it works and makes sense too.
1178 * Moose::Meta::Attribute
1179 - fix handles so that it doesn't return nothing
1180 when the method cannot be found, not sure why
1181 it ever did this originally, this means we now
1182 have slightly better support for AUTOLOADed
1184 - added more delegation tests
1185 - adding ->does method to this so as to better
1186 support traits and their introspection.
1187 - added tests for this
1190 - localizing the Data::Dumper configurations so
1191 that it does not pollute others (RT #33509)
1192 - made ->does a little more forgiving when it is
1193 passed Class::MOP era metaclasses.
1195 0.38 Fri. Feb. 15, 2008
1196 * Moose::Meta::Attribute
1197 - fixed initializer to correctly do
1198 type checking and coercion in the
1200 - added tests for this
1203 - fixed some finicky tests (thanks to konobi)
1205 0.37 Thurs. Feb. 14, 2008
1207 - fixed some details in Moose::init_meta
1208 and its superclass handling (thanks thepler)
1209 - added tests for this (thanks thepler)
1210 - 'has' now dies if you don't pass in name
1212 - added the 'make_immutable' keyword as a shortcut
1215 * Moose::Meta::Class
1216 Moose::Meta::Method::Constructor
1217 Moose::Meta::Attribute
1218 - making (init_arg => undef) work here too
1219 (thanks to nothingmuch)
1221 * Moose::Meta::Attribute
1222 Moose::Meta::Method::Constructor
1223 Moose::Meta::Method::Accessor
1224 - make lazy attributes respect attr initializers (rjbs)
1225 - added tests for this
1227 * Moose::Util::TypeConstraints
1228 Moose::Util::TypeConstraints::OptimizedConstraints
1229 Moose::Meta::TypeConstraints
1230 Moose::Meta::Attribute
1231 Moose::Meta::Method::Constructor
1232 Moose::Meta::Method::Accessor
1233 - making type errors use the
1234 assigned message (thanks to Sartak)
1235 - added tests for this
1237 * Moose::Meta::Method::Destructor
1238 - making sure DESTROY gets inlined properly
1239 with successive DEMOLISH calls (thanks to manito)
1241 * Moose::Meta::Attribute
1242 Moose::Meta::Method::Accessor
1243 - fixed handling of undef with type constraints
1245 - added tests for this
1248 - added &get_all_init_args and &get_all_attribute_values
1249 (thanks to Sartak and nothingmuch)
1251 0.36 Sat. Jan. 26, 2008
1253 Moose::Meta::Attribute
1254 - role type tests now support when roles are
1255 applied to non-Moose classes (found by ash)
1256 - added tests for this (thanks to ash)
1257 - couple extra tests to boost code coverage
1259 * Moose::Meta::Method::Constructor
1260 - improved fix for handling Class::MOP attributes
1261 - added test for this
1263 * Moose::Meta::Class
1264 - handled the add_attribute($attribute_meta_object)
1266 - added test for this
1268 0.35 Tues. Jan. 22, 2008
1269 * Moose::Meta::Method::Constructor
1270 - fix to make sure even Class::MOP attributes
1271 are handled correctly (Thanks to Dave Rolsky)
1272 - added test for this (also Dave Rolsky)
1274 * Moose::Meta::Class
1275 - improved error message on _apply_all_roles,
1276 you should now use Moose::Util::apply_all_roles
1277 and you shouldnt have been using a _ prefixed
1278 method in the first place ;)
1280 0.34 Mon. Jan. 21, 2008
1281 ~~~ more misc. doc. fixes ~~~
1282 ~~ updated copyright dates ~~
1284 Moose is now a postmodern object system :)
1285 - (see the POD for details)
1287 * <<Role System Refactoring>>
1288 - this release contains a major reworking and
1289 cleanup of the role system
1290 - 100% backwards compat.
1291 - Role application now restructured into seperate
1292 classes based on type of applicants
1293 - Role summation (combining of more than one role)
1294 is much cleaner and anon-classes are no longer
1295 used in this process
1296 - new Composite role metaclass
1297 - runtime application of roles to instances
1298 is now more efficient and re-uses generated
1299 classes when applicable
1301 * <<New Role composition features>>
1302 - methods can now be excluded from a given role
1304 - methods can now be aliased to another name (and
1305 still retain the original as well)
1307 * Moose::Util::TypeConstraints::OptimizedConstraints
1308 - added this module (see above)
1310 * Moose::Meta::Class
1311 - fixed the &_process_attribute method to be called
1312 by &add_attribute, so that the API is now correct
1314 * Moose::Meta::Method::Accessor
1315 - fixed bug when passing a list of values to
1316 an accessor would get (incorrectly) ignored.
1317 Thanks to Sartak for finding this ;)
1318 - added tests for this (Sartak again)
1320 * Moose::Meta::Method::Accessor
1321 Moose::Meta::Method::Constructor
1322 Moose::Meta::Attribute
1323 Moose::Meta::TypeConstraint
1324 Moose::Meta::TypeCoercion
1325 - lots of cleanup of such things as:
1327 - type constraint handling
1328 - error handling/messages
1329 (thanks to nothingmuch)
1331 * Moose::Meta::TypeConstraint::Parameterizable
1332 - added this module to support the refactor
1333 in Moose::Meta::TypeConstraint::Parameterized
1335 * Moose::Meta::TypeConstraint::Parameterized
1336 - refactored how these types are handled so they
1337 are more generic and not confined to ArrayRef
1341 - shortened some file names for better VMS support (RT #32381)
1343 0.33 Fri. Dec. 14, 2007
1344 !! Moose now loads 2 x faster !!
1345 !! with new Class::MOP 0.49 !!
1347 ++ new oose.pm module to make command line
1348 Moose-ness easier (see POD docs for more)
1350 * Moose::Meta::Class
1352 - several tweaks to take advantage of the
1353 new method map caching in Class::MOP
1355 * Moose::Meta::TypeConstraint::Parameterized
1356 - allow subtypes of ArrayRef and HashRef to
1357 be used as a container (sartak)
1358 - added tests for this
1359 - basic support for coercion to ArrayRef and
1360 HashRef for containers (sartak)
1361 - added tests for this
1363 * Moose::Meta::TypeCoercion
1364 - coercions will now create subtypes as needed
1365 so you can now add coercions to parameterized
1366 types without having to explictly define them
1367 - added tests for this
1369 * Moose::Meta::Method::Accessor
1370 - allow subclasses to decide whether we need
1371 to copy the value into a new variable (sartak)
1373 0.32 Tues. Dec. 4, 2007
1374 * Moose::Util::TypeConstraints
1375 - fixing how subtype aliases of unions work
1376 they should inherit the parent's coercion
1377 - added tests for this
1378 - you can now define multiple coercions on
1379 a single type at different times instead of
1380 having to do it all in one place
1381 - added tests for this
1383 * Moose::Meta::TypeConstraint
1384 - there is now a default constraint of sub { 1 }
1385 instead of Moose::Util::TypeConstraints setting
1388 * Moose::Meta::TypeCoercion
1389 * Moose::Meta::TypeCoercion::Union
1390 - added the &has_coercion_for_type and
1391 &add_type_coercions methods to support the
1392 new features above (although you cannot add
1393 more type coercions for Union types)
1395 0.31 Mon. Nov. 26, 2007
1396 * Moose::Meta::Attribute
1397 - made the +attr syntax handle extending types with
1398 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1399 now works if the original foo is an ArrayRef.
1400 - added tests for this.
1401 - delegation now works even if the attribute does not
1402 have a reader method using the get_read_method_ref
1403 method from Class::MOP::Attribute.
1404 - added tests for this
1405 - added docs for this
1407 * Moose::Util::TypeConstraints
1408 - passing no "additional attribute info" to
1409 &find_or_create_type_constraint will no longer
1410 attempt to create an __ANON__ type for you,
1411 instead it will just return undef.
1412 - added docs for this
1414 0.30 Fri. Nov. 23, 2007
1415 * Moose::Meta::Method::Constructor
1416 -builder related bug in inlined constructor. (groditi)
1418 * Moose::Meta::Method::Accessor
1419 - genereate unnecessary calls to predicates and refactor
1420 code generation for runtime speed (groditi)
1422 * Moose::Util::TypeConstraints
1423 - fix ClassName constraint to introspect symbol table (mst)
1424 - added more tests for this (mst)
1425 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1426 with work correctly.
1427 - added tests for this
1430 - adding the link to Recipie 11 (written by Sartak)
1431 - adding test for SYNOPSIS code
1434 - New tests for builder bug. Upon instantiation, if an
1435 attribute had a builder, no value and was not lazy the
1436 builder default was not getting run, oops. (groditi)
1438 0.29 Tues. Nov. 13, 2007
1439 * Moose::Meta::Attribute
1440 - Fix error message on missing builder method (groditi)
1442 * Moose::Meta::Method::Accessor
1443 - Fix error message on missing builder method (groditi)
1446 - Add test to check for the correct error message when
1447 builder method is missing (groditi)
1449 0.28 Tues. Nov. 13, 2007
1450 - 0.27 packaged incorrectly (groditi)
1452 0.27 Tues. Nov. 13, 2007
1453 * Moose::Meta::Attribute
1454 - Added support for the new builder option (groditi)
1455 - Added support for lazy_build option (groditi)
1456 - Changed slot initialization for predicate changes (groditi)
1458 * Moose::Meta::Method::Accessor
1459 - Added support for lazy_build option (groditi)
1460 - Fix inline methods to work with corrected predicate
1463 * Moose::Meta::Method::Constructor
1464 - Added support for lazy_build option (groditi)
1467 - tests for builder and lazy_build (groditi)
1469 * fixing some misc. bits in the docs that
1470 got mentioned on CPAN Forum & perlmonks
1473 - fixed how required methods are handled
1474 when they encounter overriden or modified
1475 methods from a class (thanks to confound).
1476 - added tests for this
1478 * Moose::Util::TypeConstraint
1479 - fixed the type notation parser so that
1480 the | always creates a union and so is
1481 no longer a valid type char (thanks to
1482 konobi, mugwump and #moose for working
1484 - added more tests for this
1486 0.26 Thurs. Sept. 27, 2007
1489 * Parameterized Types
1490 We now support parameterized collection types, such as:
1491 ArrayRef[Int] # array or integers
1492 HashRef[Object] # a hash with object values
1493 They can also be nested:
1494 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1495 And work with the type unions as well:
1496 ArrayRef[Int | Str] # array of integers of strings
1498 * Better Framework Extendability
1499 Moose.pm is now "extendable" such that it is now much
1500 easier to extend the framework and add your own keywords
1501 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1502 section of the Moose.pm docs.
1505 In an effort to begin documenting some of the various
1506 details of Moose as well as some common idioms, we have
1507 created Moose::Cookbook::Snacks as a place to find
1508 small (easily digestable) nuggets of Moose code.
1511 ~ Several doc updates/cleanup thanks to castaway ~
1513 - converted build system to use Module::Install instead of
1514 Module::Build (thanks to jrockway)
1517 - added all the meta classes to the immutable list and
1518 set it to inline the accessors
1519 - fix import to allow Sub::Exporter like { into => }
1520 and { into_level => } (perigrin)
1521 - exposed and documented init_meta() to allow better
1522 embedding and extending of Moose (perigrin)
1525 - complete re-organization of the test suite
1526 - added some new tests as well
1527 - finally re-enabled the Moose::POOP test since
1528 the new version of DBM::Deep now works again
1531 * Moose::Meta::Class
1532 - fixed very odd and very nasty recursion bug with
1534 - added tests for this (eilara)
1536 * Moose::Meta::Attribute
1537 Moose::Meta::Method::Constructor
1538 Moose::Meta::Method::Accessor
1539 - fixed issue with overload::Overloaded getting called
1540 on non-blessed items. (RT #29269)
1541 - added tests for this
1543 * Moose::Meta::Method::Accessor
1544 - fixed issue with generated accessor code making
1545 assumptions about hash based classes (thanks to dexter)
1547 * Moose::Coookbook::Snacks
1548 - these are bits of documentation, not quite as big as
1549 Recipes but which have no clear place in the module docs.
1550 So they are Snacks! (horray for castaway++)
1552 * Moose::Cookbook::Recipe4
1553 - updated it to use the new ArrayRef[MyType] construct
1554 - updated the accompanying test as well
1556 +++ Major Refactor of the Type Constraint system +++
1557 +++ with new features added as well +++
1559 * Moose::Util::TypeConstraint
1560 - no longer uses package variable to keep track of
1561 the type constraints, now uses the an instance of
1562 Moose::Meta::TypeConstraint::Registry to do it
1563 - added more sophisticated type notation parsing
1565 - added tests for this
1567 * Moose::Meta::TypeConstraint
1568 - some minor adjustments to make subclassing easier
1569 - added the package_defined_in attribute so that we
1570 can track where the type constraints are created
1572 * Moose::Meta::TypeConstraint::Union
1573 - this is now been refactored to be a subclass of
1574 Moose::Meta::TypeConstraint
1576 * Moose::Meta::TypeCoercion::Union
1577 - this has been added to service the newly refactored
1578 Moose::Meta::TypeConstraint::Union and is itself
1579 a subclass of Moose::Meta::TypeCoercion
1581 * Moose::Meta::TypeConstraint::Parameterized
1582 - added this module (taken from MooseX::AttributeHelpers)
1583 to help construct nested collection types
1584 - added tests for this
1586 * Moose::Meta::TypeConstraint::Registry
1587 - added this class to keep track of type constraints
1589 0.25 Mon. Aug. 13, 2007
1591 - Documentation update to reference Moose::Util::TypeConstraints
1592 under 'isa' in 'has' for how to define a new type
1593 (thanks to shlomif).
1595 * Moose::Meta::Attribute
1596 - required attributes now will no longer accept undef
1597 from the constructor, even if there is a default and lazy
1598 - added tests for this
1599 - default subroutines must return a value which passes the
1601 - added tests for this
1603 * Moose::Meta::Attribute
1604 * Moose::Meta::Method::Constructor
1605 * Moose::Meta::Method::Accessor
1606 - type-constraint tests now handle overloaded objects correctly
1607 in the error message
1608 - added tests for this (thanks to EvanCarroll)
1610 * Moose::Meta::TypeConstraint::Union
1611 - added (has_)hand_optimized_constraint to this class so that
1612 it behaves as the regular Moose::Meta::TypeConstraint does.
1615 - large refactoring of this code
1616 - added several more tests
1617 - tests for subtle conflict resolition issues
1618 added, but not currently running
1621 * Moose::Cookbook::Recipe7
1622 - added new recipe for augment/inner functionality
1624 - added test for this
1627 - a formal definition of roles (still in progress)
1630 - utilities for easier working with Moose classes
1631 - added tests for these
1634 - This contains Moose specific test functions
1635 - added tests for these
1637 0.24 Tues. July 3, 2007
1638 ~ Some doc updates/cleanup ~
1640 * Moose::Meta::Attribute
1641 - added support for roles to be given as parameters
1642 to the 'handles' option.
1643 - added tests and docs for this
1644 - the has '+foo' attribute form now accepts changes to
1645 the lazy option, and the addition of a handles option
1646 (but not changing the handles option)
1647 - added tests and docs for this
1650 - required methods are now fetched using find_method_by_name
1651 so that required methods can come from superclasses
1652 - adjusted tests for this
1654 0.23 Mon. June 18, 2007
1655 * Moose::Meta::Method::Constructor
1656 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1657 * Moose::Meta::Class
1658 - Modify make_immutable to work with the new Class::MOP immutable
1659 mechanism + POD + very basic test (groditi)
1660 * Moose::Meta::Attribute
1661 - Fix handles to use goto() so that caller() comes out properly on
1662 the other side (perigrin)
1664 0.22 Thurs. May 31, 2007
1665 * Moose::Util::TypeConstraints
1666 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1667 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1668 prototypes for functions
1669 - added the ClassName type constraint, this checks for strings
1670 which will respond true to ->isa(UNIVERSAL).
1671 - added tests and docs for this
1672 - subtyping just in name now works correctly by making the
1673 default for where be { 1 }
1674 - added test for this
1676 * Moose::Meta::Method::Accessor
1677 - coerce and lazy now work together correctly, thanks to
1678 merlyn for finding this bug
1679 - tests added for this
1680 - fix reader presedence bug in Moose::Meta::Attribute + tests
1683 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1684 a HASH-ref and missed. This produces better error messages then
1685 having it die cause undef is not a HASH.
1686 - added tests for this
1688 0.21 Thursday, May 2nd, 2007
1690 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1691 - modified unimport to remove super and inner along with the rest
1692 - altered unimport tests to handle this
1695 - altered super export to populate SUPER_SLOT
1697 * Moose::Meta::Class
1698 - altered augment and override modifier application to use *_SLOT
1699 - modified tests for these to unimport one test class each to test
1702 - fixed issue where custom attribute metaclasses
1703 where not handled correctly in roles
1704 - added tests for this
1706 * Moose::Meta::Class
1707 - fixed issue where extending metaclasses with
1708 roles would blow up. Thanks to Aankhen`` for
1709 finding this insidious error, and it's solution.
1711 ~~ lots of spelling and grammer fixes in the docs,
1712 many many thanks to rlb3 and Aankhen for these :)
1714 0.20 Friday, April 6th, 2007
1715 >> I messed up the SKIP logic in one test
1716 so this release is just to fix that.
1719 - 'has' now also accepts an ARRAY ref
1720 to create multiple attrs (see docs)
1721 (thanks to konobi for this)
1722 - added tests and docs
1724 0.19 Thurs. April 5th, 2007
1725 ~~ More documentation updates ~~
1727 * Moose::Util::TypeConstraints
1728 - 'type' now supports messages as well
1729 thanks to phaylon for finding this
1730 - added tests for this
1731 - added &list_all_type_constraints and
1732 &list_all_builtin_type_constraints
1733 functions to facilitate introspection.
1735 * Moose::Meta::Attribute
1736 - fixed regexp 'handles' declarations
1737 to build the list of delegated methods
1738 correctly (and not override important
1739 things like &new) thanks to ashleyb
1741 - added tests and docs for this
1742 - added the 'documentation' attributes
1743 so that you can actually document your
1744 attributes and inspect them through the
1746 - added tests and docs for this
1748 * Moose::Meta::Class
1749 - when loading custom attribute metaclasses
1750 it will first look in for the class in the
1751 Moose::Meta::Attribute::Custom::$name, and
1752 then default to just loading $name.
1753 - added tests and docs for this
1755 * Moose::Meta::TypeConstraint
1756 - type constraints now stringify to their names.
1757 - added test for this
1760 - added tests to assure we work with Module::Refresh
1761 - added stricter test skip logic in the Moose POOP
1762 test, ask Rob Kinyon why.
1763 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1765 0.18 Sat. March 10, 2007
1766 ~~ Many, many documentation updates ~~
1769 - We now use Class::MOP::load_class to
1771 - added tests to show types and subtypes
1772 working with Declare::Constraints::Simple
1773 and Test::Deep as constraint engines.
1776 !! You must have Class::MOP 0.37_001 !!
1777 !! for this developer release to work !!
1779 This release was primarily adding the immutable
1780 feature to Moose. An immutable class is one which
1781 you promise not to alter. When you set the class
1782 as immutable it will perform various bits of
1783 memoization and inline certain part of the code
1784 (constructors, destructors and accessors). This
1785 minimizes (and in some cases totally eliminates)
1786 one of Moose's biggest performance hits. This
1787 feature is not on by default, and is 100% optional.
1788 It has several configurable bits as well, so you
1789 can pick and choose to your specific needs.
1791 The changes involved in this were fairly wide and
1792 highly specific, but 100% backwards compatible, so
1793 I am not going to enumerate them here. If you are
1794 truely interested in what was changed, please do
1797 0.17 Tues. Nov. 14, 2006
1798 * Moose::Meta::Method::Accessor
1799 - bugfix for read-only accessors which
1800 are have a type constraint and lazy.
1801 Thanks to chansen for finding it.
1803 0.16 Tues. Nov. 14, 2006
1805 There are some speed improvements in this release,
1806 but they are only the begining, so stay tuned.
1809 - BUILDALL and DEMOLISHALL no longer get
1810 called unless they actually need to be.
1811 This gave us a signifigant speed boost
1812 for the cases when there is no BUILD or
1813 DEMOLISH method present.
1815 * Moose::Util::TypeConstraints
1816 * Moose::Meta::TypeConstraint
1817 - added an 'optimize_as' option to the
1818 type constraint, which allows for a
1819 hand optimized version of the type
1820 constraint to be used when possible.
1821 - Any internally created type constraints
1822 now provide an optimized version as well.
1824 0.15 Sun. Nov. 5, 2006
1826 This version of Moose *must* have Class::MOP 0.36 in order
1827 to work correctly. A number of small internal tweaks have
1828 been made in order to be compatible with that release.
1830 * Moose::Util::TypeConstraints
1831 - added &unimport so that you can clean out
1832 your class namespace of these exported
1835 * Moose::Meta::Class
1836 - fixed minor issue which occasionally
1837 comes up during global destruction
1839 - moved Moose::Meta::Method::Overriden into
1843 - moved Moose::Meta::Role::Method into
1846 * Moose::Meta::Attribute
1847 - changed how we do type checks so that
1848 we reduce the overall cost, but still
1851 - moved accessor generation methods to
1852 Moose::Meta::Method::Accessor to
1853 conform to the API changes from
1856 * Moose::Meta::TypeConstraint
1857 - changed how constraints are compiled
1858 so that we do less recursion and more
1859 iteration. This makes the type check
1861 - moved Moose::Meta::TypeConstraint::Union
1864 * Moose::Meta::Method::Accessor
1865 - created this from methods formerly found in
1866 Moose::Meta::Attribute
1868 * Moose::Meta::Role::Method
1869 - moved this from Moose::Meta::Role
1871 * Moose::Meta::Method::Overriden
1872 - moved this from Moose::Meta::Class
1874 * Moose::Meta::TypeConstraint::Union
1875 - moved this from Moose::Meta::TypeConstraint
1877 0.14 Mon. Oct. 9, 2006
1879 * Moose::Meta::Attribute
1880 - fixed lazy attributes which were not getting
1881 checked with the type constraint (thanks ashley)
1882 - added tests for this
1883 - removed the over-enthusiastic DWIMery of the
1884 automatic ArrayRef and HashRef defaults, it
1885 broke predicates in an ugly way.
1886 - removed tests for this
1888 0.13 Sat. Sept. 30, 2006
1890 This version of Moose *must* have Class::MOP 0.35 in order
1891 to work correctly. A number of small internal tweaks have
1892 been made in order to be compatible with that release.
1895 - Removed the use of UNIVERSAL::require to be a better
1896 symbol table citizen and remove a dependency
1897 (thanks Adam Kennedy)
1899 **~~ removed experimental & undocumented feature ~~**
1900 - commented out the 'method' and 'self' keywords, see the
1901 comments for more info.
1904 - added a FAQ and WTF files to document frequently
1905 asked questions and common problems
1907 * Moose::Util::TypeConstraints
1908 - added GlobRef and FileHandle type constraint
1909 - added tests for this
1911 * Moose::Meta::Attribute
1912 - if your attribute 'isa' ArrayRef of HashRef, and you have
1913 not explicitly set a default, then make the default DWIM.
1914 This will also work for subtypes of ArrayRef and HashRef
1916 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1917 - new test added for this (thanks to ashley)
1920 - added basic support for runtime role composition
1921 but this is still *highly experimental*, so feedback
1922 is much appreciated :)
1923 - added tests for this
1925 * Moose::Meta::TypeConstraint
1926 - the type constraint now handles the coercion process
1927 through delegation, this is to support the coercion
1930 * Moose::Meta::TypeConstraint::Union
1931 - it is now possible for coercions to be performed
1933 - added tests for this (thanks to konobi)
1935 * Moose::Meta::TypeCoercion
1936 - properly capturing error when type constraint
1940 - Scalar::Util 1.18 is bad on Win32, so temporarily
1941 only require version 1.17 for Win32 and cygwin.
1942 (thanks Adam Kennedy)
1944 0.12 Sat. Sept. 1, 2006
1946 - Recipe5 (subtypes & coercion) has been written
1949 - fixed "bad meta" error message to be more descriptive
1950 - fixed &unimport to not remove the &inner and &super
1951 keywords because we need to localize them.
1952 - fixed number of spelling/grammer issues, thanks Theory :)
1954 **~~ experimental & undocumented feature ~~**
1955 - added the method and self keywords, they are basically
1956 just sugar, and they may not stay around.
1959 - added &dump method to easily Data::Dumper
1962 * Moose::Meta::TypeConstraint
1963 - added the &is_a_type_of method to check both the current
1964 and the subtype of a method (similar to &isa with classes)
1967 - this is now a subclass of Class::MOP::Module, and no longer
1968 creates the _role_meta ugliness of before.
1969 - fixed tests to reflect this change
1971 0.11 Wed. July 12, 2006
1973 - added an &unimport method to remove all the keywords
1974 that Moose will import, simply add 'no Moose' to the
1975 bottom of your class file.
1978 - fixed some test failures caused by a forgotten test
1981 0.10 Thurs. July 6, 2006
1983 - improved error message when loading modules so
1984 it is less confusing when you load a role.
1985 - added &calculate_all_roles method to
1986 Moose::Meta::Class and Moose::Meta::Role
1989 This module has been tested against Class::MOP 0.30
1990 but it does not yet utilize the optimizations
1991 it makes available. Stay tuned for that ;)
1993 0.09_03 Fri. June 23, 2006
1994 ++ DEVELOPER RELEASE ++
1996 - 'use strict' and 'use warnings' are no longer
1997 needed in Moose classes, Moose itself will
1998 turn them on for you.
1999 - added tests for this
2000 - moved code from exported subs to private methods
2001 in Moose::Meta::Class
2004 - as with Moose, strict and warnings are
2005 automatically turned on for you.
2006 - added tests for this
2009 - now handles an edge case for override errors
2010 - added tests for this
2011 - added some more edge case tests
2013 0.09_02 Tues. May 16, 2006
2014 ++ DEVELOPER RELEASE ++
2016 - added prototypes to the exported subs
2020 - added prototypes to the exported subs
2023 * Moose::Util::TypeConstraints
2024 - cleaned up prototypes for the subs
2027 0.09_01 Fri. May 12, 2006
2028 ++ DEVELOPER RELEASE ++
2029 - This release works in combination with
2030 Class::MOP 0.29_01, it is a developer
2031 release because it uses the a new
2032 instance sub-protocol and a fairly
2033 complete Role implementation. It has
2034 not yet been optimized, so it slower
2035 the the previous CPAN version. This
2036 release also lacks good updated docs,
2037 the official release will have updated docs.
2040 - refactored the keyword exports
2041 - 'with' now checks Role validaity and
2042 accepts more than one Role at a time
2043 - 'extends' makes metaclass adjustments as
2044 needed to ensure metaclass compatibility
2047 - refactored the keyword exports
2048 - 'with' now checks Role validaity and
2049 accepts more than one Role at a time
2051 * Moose::Util::TypeConstraints
2052 - added the 'enum' keyword for simple
2053 string enumerations which can be used as
2055 - see example of usage in t/202_example.t
2058 - more careful checking of params to new()
2061 - much work done on the role composition
2062 - many new tests for conflict detection
2063 and composition edge cases
2064 - not enough documentation, I suggest
2065 looking at the tests
2067 * Moose::Meta::Instance
2068 - added new Instance metaclass to support
2069 the new Class::MOP instance protocol
2071 * Moose::Meta::Class
2072 - some small changes to support the new
2074 - some small additions to support Roles
2076 * Moose::Meta::Attribute
2077 - some improvements to the accessor generation code
2079 - some small changes to support the new
2081 - (still somewhat) experimental delegation support
2082 with the 'handles' option
2083 - added several tests for this
2084 - no docs for this yet
2086 0.05 Thurs. April 27, 2006
2088 - keywords are now exported with Sub::Exporter
2089 thanks to chansen for this commit
2090 - has keyword now takes a 'metaclass' option
2091 to support custom attribute meta-classes
2092 on a per-attribute basis
2093 - added tests for this
2094 - the 'has' keyword not accepts inherited slot
2095 specifications (has '+foo'). This is still an
2096 experimental feature and probably not finished
2097 see t/038_attribute_inherited_slot_specs.t for
2098 more details, or ask about it on #moose
2099 - added tests for this
2102 - keywords are now exported with Sub::Exporter
2104 * Moose::Utils::TypeConstraints
2105 - reorganized the type constraint hierarchy, thanks
2106 to nothingmuch and chansen for his help and advice
2108 - added some tests for this
2109 - keywords are now exported with Sub::Exporter
2110 thanks to chansen for this commit
2112 * Moose::Meta::Class
2113 - due to changes in Class::MOP, we had to change
2114 construct_instance (for the better)
2116 * Moose::Meta::Attribute
2117 - due to changes in Class::MOP, we had to add the
2118 initialize_instance_slot method (it's a good thing)
2120 * Moose::Meta::TypeConstraint
2121 - added type constraint unions
2122 - added tests for this
2123 - added the is_subtype_of predicate method
2124 - added tests for this
2126 0.04 Sun. April 16th, 2006
2128 - Roles can now consume other roles
2129 - added tests for this
2130 - Roles can specify required methods now with
2131 the requires() keyword
2132 - added tests for this
2135 - ripped out much of it's guts ,.. much cleaner now
2136 - added required methods and correct handling of
2137 them in apply() for both classes and roles
2138 - added tests for this
2139 - no longer adds a does() method to consuming classes
2140 it relys on the one in Moose::Object
2141 - added roles attribute and some methods to support
2142 roles consuming roles
2144 * Moose::Meta::Attribute
2145 - added support for triggers on attributes
2146 - added tests for this
2147 - added support for does option on an attribute
2148 - added tests for this
2150 * Moose::Meta::Class
2151 - added support for attribute triggers in the
2153 - added tests for this
2156 - Moose no longer creates a subtype for your class
2157 if a subtype of the same name already exists, this
2158 should DWIM in 99.9999% of all cases
2160 * Moose::Util::TypeConstraints
2161 - fixed bug where incorrect subtype conflicts were
2163 - added test for this
2166 - this class can now be extended with 'use base' if
2167 you need it, it properly loads the metaclass class now
2168 - added test for this
2170 0.03_02 Wed. April 12, 2006
2172 - you must now explictly use Moose::Util::TypeConstraints
2173 it no longer gets exported for you automatically
2176 - new() now accepts hash-refs as well as key/value lists
2177 - added does() method to check for Roles
2178 - added tests for this
2180 * Moose::Meta::Class
2181 - added roles attribute along with the add_role() and
2183 - added tests for this
2186 - now adds a does() method to consuming classes
2187 which tests the class's hierarchy for roles
2188 - added tests for this
2190 0.03_01 Mon. April 10, 2006
2192 - added new Role recipe (no content yet, only code)
2195 - added 'with' keyword for Role support
2196 - added test and docs for this
2197 - fixed subtype quoting bug
2198 - added test for this
2202 - added test and docs
2204 * Moose::Util::TypeConstraints
2205 - added the message keyword to add custom
2206 error messages to type constraints
2209 - the meta role to support Moose::Role
2210 - added tests and docs
2212 * Moose::Meta::Class
2213 - moved a number of things from Moose.pm
2214 to here, they should have been here
2217 * Moose::Meta::Attribute
2218 - moved the attribute option macros here
2219 instead of putting them in Moose.pm
2221 * Moose::Meta::TypeConstraint
2222 - added the message attributes and the
2224 - added tests and docs for this
2226 0.03 Thurs. March 30, 2006
2228 - added the Moose::Cookbook with 5 recipes,
2229 describing all the stuff Moose can do.
2232 - fixed an issue with &extends super class loading
2233 it now captures errors and deals with inline
2234 packages correctly (bug found by mst, solution
2236 - added super/override & inner/augment features
2237 - added tests and docs for these
2240 - BUILDALL now takes a reference of the %params
2241 that are passed to &new, and passes that to
2244 * Moose::Util::TypeConstraints
2245 - Type constraints now survive runtime reloading
2246 - added test for this
2248 * Moose::Meta::Class
2249 - fixed the way attribute defaults are handled
2250 during instance construction (bug found by chansen)
2252 * Moose::Meta::Attribute
2253 - read-only attributes now actually enforce their
2254 read-only-ness (this corrected in Class::MOP as
2257 0.02 Tues. March 21, 2006
2259 - many more tests, fixing some bugs and
2261 - &extends now loads the base module with
2263 - added UNIVERSAL::require to the
2266 - each new Moose class will also create
2267 and register a subtype of Object which
2268 correspond to the new Moose class.
2269 - the 'isa' option in &has now only
2270 accepts strings, and will DWIM in
2273 * Moose::Util::TypeConstraints
2274 - added type coercion features
2275 - added tests for this
2276 - added support for this in attributes
2277 and instance construction
2279 - type construction no longer creates a
2280 function, it registers the type instead.
2281 - added several functions to get the
2285 - BUILDALL and DEMOLISHALL were broken
2286 because of a mis-named hash key, Whoops :)
2288 * Moose::Meta::Attribute
2289 - adding support for coercion in the
2290 autogenerated accessors
2292 * Moose::Meta::Class
2293 - adding support for coercion in the
2294 instance construction
2296 * Moose::Meta::TypeConstraint
2297 * Moose::Meta::TypeCoercion
2298 - type constraints and coercions are now
2299 full fledges meta-objects
2301 0.01 Wed. March 15, 2006
2302 - Moooooooooooooooooose!!!