1 Revision history for Perl extension Moose
3 0.73 Fri, March 29, 2009
4 * No changes from 0.72_01.
6 0.72_01 Thu, March 26, 2009
8 - Almost every module has complete API documentation. A few
9 methods (and even whole classes) have been intentionally
10 excluded pending some rethinking of their APIs.
12 * Moose::Util::TypeConstraints
13 - Calling subtype with a name as the only argument is now an
14 exception. If you want an anonymous subtype do:
16 my $subtype = subtype as 'Foo';
18 * Moose::Cookbook::Meta::Recipe7
19 - A new recipe, creating a custom meta-instance class.
21 * Moose::Cookbook::Basics::Recipe5
22 - Fix various typos and mistakes. Includes a patch from Radu
25 * Moose::Cookbook::Basics::Recipe9
26 - Link to this recipe from Moose.pm's builder blurb
29 - When wrapping a function with a prototype, Moose::Exporter now
30 makes sure the wrapped function still has the same
31 prototype. (Daisuke Maki)
33 * Moose::Meta::Attribute
34 - Allow a subclass to set lazy_build for an inherited
35 attribute. (Dieter Pearcey)
38 - Explicitly depend on Data::OptList. We already had this dependency
39 via Sub::Exporter, but since we're using it directly we're
40 better off with it listed. (Sartak)
42 * Moose::Meta::Method::Constructor
43 - Make it easier to subclass the inlining behaviour. (Ash
46 * Moose::Manual::Delta
47 - Details significant changes in the history of Moose, along
48 with recommended workarounds.
50 * Moose::Manual::Contributing
51 - Contributor's guide to Moose.
53 * Moose::Meta::Method::Constructor
54 - The long-deprecated intialize_body method has been removed
55 (yes, spelled like that).
57 * Moose::Meta::Method::Destructor
58 - This is_needed method is now always a class method.
61 - Changes to the internals of how make_immutable works to match
62 changes in latest Class::MOP.
64 0.72 Mon, February 23, 2009
66 * Moose::Meta::Method::Constructor
67 - A mutable class accepted Foo->new(undef) without complaint,
68 while an immutable class would blow up with an unhelpful
69 error. Now, in both cases we throw a helpful error
70 instead. Reported by doy.
72 0.71_01 Sun, February 22, 2009
74 - Hopefully fixed some POD errors in a few recipes that caused
75 them to display weird on search.cpan.org.
77 * Moose::Util::TypeConstraints
78 - Calling type or subtype without the sugar helpers (as, where,
79 message) is now deprecated.
80 - The subtype function tried hard to guess what you meant, but
81 often got it wrong. For example:
83 my $subtype = subtype as 'ArrayRef[Object]';
85 This caused an error in the past, but now works as you'd
89 - Make sure Moose.pm is loaded before calling
90 Moose->throw_error. This wasn't normally an issue, but could
91 bite you in weird cases.
93 0.71 Thu, February 19, 2009
94 * Moose::Cookbook::Basics::Recipe11
95 - A new recipe which demonstrates the use of BUILDARGS and
98 * Moose::Cookbook::Roles::Recipe3
99 - A new recipe, applying a role to an object instance. (Dave
103 - Allow overriding specific keywords from "also" packages. (doy)
106 - Replace hardcoded cookbook tests with Test::Inline to ensure
107 the tests match the actual code in the recipes. (Dave Rolsky)
110 - Working on the above turned up a number of little bugs in the
111 recipe code. (Dave Rolsky)
113 * Moose::Util::TypeConstraints::Optimized
114 - Just use Class::MOP for the optimized ClassName check. (Dave
117 0.70 Sat, February 14, 2009
118 * Moose::Util::TypeConstraints
119 - Added the RoleName type (stevan)
120 - added tests for this (stevan)
122 * Moose::Cookbook::Basics::Recipe3
123 - Updated the before qw[left right] sub to be a little more
124 defensive about what it accepts (stevan)
125 - added more tests to t/000_recipies/basics/003_binary_tree.t
129 - We now always call DEMOLISHALL, even if a class does not
130 define DEMOLISH. This makes sure that method modifiers on
131 DEMOLISHALL work as expected. (doy)
132 - added tests for this (EvanCarroll)
134 * Moose::Util::MetaRole
135 - Accept roles for the wrapped_method_metaclass (rafl)
136 - added tests for this (rafl)
138 * Moose::Meta::Attribute
139 - We no longer pass the meta-attribute object as a final
140 argument to triggers. This actually changed for inlined code a
141 while back, but the non-inlined version and the docs were
145 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
146 they require 0.11. (Dave Rolsky)
149 - Lots of small changes to the manual, cookbook, and
150 elsewhere. These were based on feedback from various
151 users, too many to list here. (Dave Rolsky)
153 0.69 Thu, February 12, 2009
155 - Make some keyword errors use throw_error instead of croak
156 since Moose::Exporter wraps keywords now (Sartak)
159 - Revised every recipe for style and clarity. Also moved some
160 documentation out of cookbook recipes and into Moose::Manual
161 pages. This work was funded as part of the Moose docs grant
162 from TPF. (Dave Rolsky)
164 * Moose::Meta::Method::Delegation
165 - If the attribute doing the delegation was not populated, the
166 error message did not specify the attribute name
169 0.68 Wed, February 4, 2009
171 - Many spelling, typo, and formatting fixes by daxim.
173 * Moose::Manual::Attributes
174 - The NAME section in the POD used "Attribute" so search.cpan
175 didn't resolve links from other documents properly.
177 * Moose::Meta::Method::Overriden
178 - Now properly spelled as Overridden. Thanks to daxim for
181 0.67 Tue, February 3, 2009
183 - Lots of little typo fixes and a few clarifications. Several
184 pages didn't have proper titles, and so weren't actually
185 visible on search.cpan.org. Thanks to hanekomu for a variety
186 of fixes and formatting improvements.
188 0.66 Tue, February 3, 2009
190 - This is a brand new, extensive manual for Moose. This aims to
191 provide a complete introduction to all of Moose's
192 features. This work was funded as part of the Moose docs grant
193 from TPF. (Dave Rolsky)
195 * Moose::Meta::Attribute
196 - Added a delegation_metaclass method to replace a hard-coded
197 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
199 * Moose::Util::TypeConstraints
200 - If you created a subtype and passed a parent that Moose didn't
201 know about, it simply ignored the parent. Now it automatically
202 creates the parent as a class type. This may not be what you
203 want, but is less broken than before. (Dave Rolsky)
205 * Moose::Util::TypeConstraints
206 - This module tried throw errors by calling Moose->throw_error,
207 but it did not ensure that Moose was loaded first. This could
208 cause very unhelpful errors when it tried to throw an error
209 before Moose was loaded. (Dave Rolsky)
211 * Moose::Util::TypeConstraints
212 - You could declare a name with subtype such as "Foo!Bar" that
213 would be allowed, but if you used it in a parameterized type
214 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
215 vetting on names created via the sugar functions, so that they
216 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
218 0.65 Thu, January 22, 2008
219 * Moose and Moose::Meta::Method::Overridden
220 - If an overridden method called super(), and then the
221 superclass's method (not overridden) _also_ called super(),
222 Moose went into an endless recursion loop. Test provided by
223 Chris Prather. (Dave Rolsky)
225 * Moose::Meta::TypeConstraint
226 - All methods are now documented. (gphat)
228 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
229 - Fixed some bogus failures that occurred because we tried to
230 validate filesystem paths in a very ad-hoc and
231 not-quite-correct way. (Dave Rolsky)
233 * Moose::Util::TypeConstraints
234 - Added maybe_type to exports. See docs for details. (rjbs)
237 - Added Moose::Util::TypeConstraints to the SEE ALSO
241 - Methods created via an attribute can now fulfill a "requires"
242 declaration for a role. (nothingmuch)
244 * Moose::Meta::Method::*
245 - Stack traces from inlined code will now report its line and
246 file as being in your class, as opposed to in Moose
249 0.64 Wed, December 31, 2008
250 * Moose::Meta::Method::Accessor
251 - Always inline predicate and clearer methods (Sartak)
253 * Moose::Meta::Attribute
254 - Support for parameterized traits (Sartak)
255 - verify_against_type_constraint method to avoid duplication
256 and enhance extensibility (Sartak)
259 - Tests (but no support yet) for parameterized traits (Sartak)
262 - Require Class::MOP 0.75+, which has the side effect of making
263 sure we work on Win32. (Dave Rolsky)
265 0.63 Mon, December 8, 2008
267 - Some small grammar tweaks and bug fixes in non-Moose example
270 0.62_02 Fri, December 5, 2008
271 * Moose::Meta::Role::Application::ToClass
272 - When a class does not provide all of a role's required
273 methods, the error thrown now mentions all of the missing
274 methods, as opposed to just the first one found. Requested by
275 Curtis Poe (RT #41119). (Dave Rolsky)
277 * Moose::Meta::Method::Constructor
278 - Moose will no longer inline a constructor for your class
279 unless it inherits its constructor from Moose::Object, and
280 will warn when it doesn't inline. If you want to force
281 inlining anyway, pass "replace_constructor => 1" to
282 make_immutable. Addresses RT #40968, reported by Jon
283 Swartz. (Dave Rolsky)
284 - The quoting of default values could be broken if the default
285 contained a single quote ('). Now we use quotemeta to escape
286 anything potentially dangerous in the defaults. (Dave Rolsky)
288 0.62_01 Wed, December 3, 2008
290 - use the method->execute API for BUILDALL
291 and DEMOLISHALL (Sartak)
293 * Moose::Util::TypeConstraints
294 - We now make all the type constraint meta classes immutable
295 before creating the default types provided by Moose. This
296 should make loading Moose a little faster. (Dave Rolsky)
298 0.62 Wed November 26, 2008
299 * Moose::Meta::Role::Application::ToClass
300 Moose::Meta::Role::Application::ToRole
301 - fixed issues where excluding and aliasing the
302 same methods for a single role did not work
303 right (worked just fine with multiple
305 - added test for this (stevan)
307 * Moose::Meta::Role::Application::RoleSummation
308 - fixed the error message when trying to compose
309 a role with a role it excludes (Sartak)
312 - Catch another case where recursion caused the value
313 of $CALLER to be stamped on (t0m)
314 - added test for this (t0m)
317 - Remove the make_immutable keyword, which has been
318 deprecated since April. It breaks metaclasses that
319 use Moose without no Moose (Sartak)
321 * Moose::Meta::Attribute
322 - Removing an attribute from a class now also removes delegation
323 (handles) methods installed for that attribute (t0m)
324 - added test for this (t0m)
326 * Moose::Meta::Method::Constructor
327 - An attribute with a default that looked like a number (but was
328 really a string) would accidentally be treated as a number
329 when the constructor was made immutable (perigrin)
330 - added test for this (perigrin)
333 - create method for constructing a role
335 - added test for this (Sartak)
336 - anonymous roles! (Sartak)
337 - added test for this (Sartak)
340 - more consistent error messages (Sartak)
342 * Moose::Cookbook::Roles::Recipe1
343 - attempt to explain why a role that just requires
344 methods is useful (Sartak)
346 0.61 Fri November 7, 2008
347 * Moose::Meta::Attribute
348 - When passing a role to handles, it will be loaded if necessary
352 - Method objects returned by get_method (and other methods)
353 Could end up being returned without an associated_metaclass
354 attribute. Removing get_method_map, which is provided by
355 Class::MOP::Class, fixed this. The Moose version did nothing
356 different from its parent except introduce a bug. (Dave Rolsky)
357 - added tests for this (jdv79)
360 - Added a $VERSION to all .pm files which didn't have one. Fixes
361 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
363 * Moose::Cookbook::Basics::Recipe4
364 * Moose::Cookbook::Basics::Recipe6
365 - These files had spaces on the first line of the SYNOPSIS, as
366 opposed to a totally empty line. According to RT #40432, this
367 confuses POD parsers. (Dave Rolsky)
369 0.60 Fri October 24, 2008
371 - Passing "-traits" when loading Moose caused the Moose.pm
372 exports to be broken. Reported by t0m. (Dave Rolsky)
373 - Tests for this bug. (t0m)
376 - Change resolve_metaclass alias to use the new
377 load_first_existing_class function. This makes it a lot
378 simpler, and also around 5 times faster. (t0m)
379 - Add caching to resolve_metaclass_alias, which gives an order
380 of magnitude speedup to things which repeatedly call the
381 Moose::Meta::Attribute->does method, notably MooseX::Storage
384 * Moose::Util::TypeConstraint
385 - Put back the changes for parameterized constraints that
386 shouldn't have been removed in 0.59. We still cannot parse
387 them, but MooseX modules can create them in some other
388 way. See the 0.58 changes for more details. (jnapiorkowski)
389 - Changed the way subtypes are created so that the job is
390 delegated to a type constraint parent. This clears up some
391 hardcoded checking and should allow correct subtypes of
392 Moose::Meta::Type::Constraint. Don't rely on this new API too
393 much (create_child_type) because it may go away in the
394 future. (jnapiorkowski)
396 * Moose::Meta::TypeConstraint::Union
397 - Type constraint names are sorted as strings, not numbers.
400 * Moose::Meta::TypeConstraint::Parameterizable
401 - New parameterize method. This can be used as a factory method
402 to make a new type constraint with a given parameterized
403 type. (jnapiorkowski)
404 - added tests (jnapiorkowski)
406 0.59 Tue October 14, 2008
408 - Add abridged documentation for builder/default/initializer/
409 predicate, and link to more details sections in
410 Class::MOP::Attribute. (t0m)
412 * Moose::Util::TypeConstraints
413 - removed prototypes from all but the &-based stuff (mst)
415 * Moose::Util::TypeConstraints
416 - Creating a anonymous subtype with both a constraint and a
417 message failed with a very unhelpful error, but should just
418 work. Reported by t0m. (Dave Rolsky)
421 - Some tests that used Test::Warn if it was available failed
422 with older versions of Test::Warn. Reported by Fayland. (Dave
424 - Test firing behavior of triggers in relation to builder/default/
426 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
427 kinds of supported type. (t0m)
430 - In create(), do not pass "roles" option to the superclass
431 - added related test that creates an anon metaclass with
434 * Moose::Meta::TypeConstraint::Class
435 * Moose::Meta::TypeConstraint::Role
436 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
437 other types (as per change in 0.55_02). (t0m)
439 * Moose::Meta::TypeConstraint::Registry
440 - Fix warning when dealing with unknown type names (t0m)
442 * Moose::Util::TypeConstraints
443 - Reverted changes from 0.58 related to handle parameterized
444 types. This caused random failures on BSD and Win32 systems,
445 apparently related to the regex engine. This means that Moose
446 can no longer parse structured type constraints like
447 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
448 supported in a slightly different way via MooseX::Types some
449 time in the future. (Dave Rolsky)
451 0.58 Sat September 20, 2008
452 !! This release has an incompatible change regarding !!
453 !! how roles add methods to a class !!
455 * Roles and role application
456 ! Roles now add methods by calling add_method, not
457 alias_method. They make sure to always provide a method
458 object, which will be cloned internally. This means that it is
459 now possible to track the source of a method provided by a
460 role, and even follow its history through intermediate roles.
462 This means that methods added by a role now show up when
463 looking at a class's method list/map. (Dave Rolsky)
466 - From this release on, we'll try to maintain a list of
467 conflicting modules, and warn you if you have one
468 installed. For example, this release conflicts with ...
469 - MooseX::Singleton <= 0.11
470 - MooseX::Params::Validate <= 0.05
473 In general, we try to not break backwards compatibility for
474 most Moose users, but MooseX modules and other code which
475 extends Moose's metaclasses is often affected by very small
476 changes in the Moose internals.
478 * Moose::Meta::Method::Delegation
479 * Moose::Meta::Attribute
480 - Delegation methods now have their own method class. (Dave
483 * Moose::Meta::TypeConstraint::Parameterizable
484 - Added a new method 'parameterize' which is basically a factory
485 for the containing constraint. This makes it easier to create
486 new types of parameterized constraints. (jnapiorkowski)
488 * Moose::Meta::TypeConstraint::Union
489 - Changed the way Union types canonicalize their names to follow
490 the normalized TC naming rules, which means we strip all
491 whitespace. (jnapiorkowski)
493 * Moose::Util::TypeConstraints
494 - Parameter and Union args are now sorted, this makes Int|Str
495 the same constraint as Str|Int. (jnapiorkowski)
496 - Changes to the way Union types are parsed to more correctly
497 stringify their names. (jnapiorkowski)
498 - When creating a parameterized type, we now use the new
499 parameterize method. (jnapiorkowski)
500 - Incoming type constraint strings are now normalized to remove
501 all whitespace differences. (jnapiorkowski)
502 - Changed the way we parse type constraint strings so that we now
503 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
504 constraints. This lays the foundation for more flexible type
505 constraint implementations.
507 * Tests and docs for all the above. (jnapiorkowski)
511 - Moose::Exporter will no longer remove a subroutine that the
512 exporting package re-exports. Moose re-exports the
513 Carp::confess function, among others. The reasoning is that we
514 cannot know whether you have also explicitly imported those
515 functions for your own use, so we err on the safe side and
516 always keep them. (Dave Rolsky)
517 - added tests for this (rafl)
520 - Changes to how we fix metaclass compatibility that are much
521 too complicated to go into. The summary is that Moose is much
522 less likely to complain about metaclass incompatibility
523 now. In particular, if two metaclasses differ because
524 Moose::Util::MetaRole was used on the two corresponding
525 classes, then the difference in roles is reconciled for the
526 subclass's metaclass. (Dave Rolsky)
527 - Squashed an warning in _process_attribute (thepler)
530 - throw exceptions (sooner) for invalid attribute names (thepler)
531 - added tests for this (thepler)
533 * Moose::Util::MetaRole
534 - If you explicitly set a constructor or destructor class for a
535 metaclass object, and then applied roles to the metaclass,
536 that explicitly set class would be lost and replaced with the
540 * Moose::Meta::Attribute
541 * Moose::Meta::Method
544 * Moose::Error::Default
545 * Moose::Error::Croak
546 * Moose::Error::Confess
547 - All instances of confess() changed to use overridable
548 C<throw_error> method. This method ultimately calls a class
549 constructor, and you can change the class being called. In
550 addition, errors now pass more information than just a string.
551 The default C<error_class> behaves like C<Carp::confess>, so
552 the behavior is not visibly different for end users.
554 0.57 Wed September 3, 2008
556 - A new bit of doc intended to introduce folks familiar with
557 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
560 - Shows examples of two classes, each done first with and then
561 without Moose. This makes a nice parallel to
562 Moose::Intro. (Dave Rolsky)
564 * Moose::Util::TypeConstraints
565 - Fixed a bug in find_or_parse_type_constraint so that it
566 accepts a Moose::Meta::TypeConstraint object as the parent
567 type, not just a name (jnapiorkowski)
568 - added tests (jnapiorkowski)
571 - If Sub::Name was not present, unimporting failed to actually
572 remove some sugar subs, causing test failures (Dave Rolsky)
574 0.56 Mon September 1, 2008
575 For those not following the series of dev releases, there are
576 several major changes in this release of Moose.
577 ! Moose::init_meta should now be called as a method. See the
580 - Major performance improvements by nothingmuch.
582 - New modules for extension writers, Moose::Exporter and
583 Moose::Util::MetaRole by Dave Rolsky.
585 - Lots of doc improvements and additions, especially in the
590 * Removed all references to the experimental-but-no-longer-needed
591 Moose::Meta::Role::Application::ToMetaclassInstance.
593 * Require Class::MOP 0.65.
595 0.55_04 Sat August 30, 2008
596 * Moose::Util::MetaRole
597 * Moose::Cookbook::Extending::Recipe2
598 - This simplifies the application of roles to any meta class, as
599 well as the base object class. Reimplemented metaclass traits
600 using this module. (Dave Rolsky)
602 * Moose::Cookbook::Extending::Recipe1
603 - This a new recipe, an overview of various ways to write Moose
604 extensions (Dave Rolsky)
606 * Moose::Cookbook::Extending::Recipe3
607 * Moose::Cookbook::Extending::Recipe4
608 - These used to be Extending::Recipe1 and Extending::Recipe2,
611 0.55_03 Fri August 29, 2008
612 * No changes from 0.55_02 except increasing the Class::MOP
613 dependency to 0.64_07.
615 0.55_02 Fri August 29, 2008
616 * Makefile.PL and Moose.pm
617 - explicitly require Perl 5.8.0+ (Dave Rolsky)
619 * Moose::Util::TypeConstraints
620 - Fix warnings from find_type_constraint if the type is not
623 * Moose::Meta::TypeConstraint
624 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
625 return false if the type you specify cannot be found in the
626 type registry, rather than throwing an unhelpful and
627 coincidental exception. (t0m).
628 - added docs & test for this (t0m)
630 * Moose::Meta::TypeConstraint::Registry
631 - add_type_constraint now throws an exception if a parameter is
633 - added docs & test for this (t0m)
635 * Moose::Cookbook::FAQ
636 - Added a faq entry on the difference between "role" and "trait"
640 - Fixed a bug that caused role composition to not see a required
641 method when that method was provided by another role being
642 composed at the same time. (Dave Rolsky)
643 - test and bug finding (tokuhirom)
645 0.55_01 Wed August 20, 2008
647 !! Calling Moose::init_meta as a function is now !!
648 !! deprecated. Please see the Moose.pm docs for details. !!
650 * Moose::Meta::Method::Constructor
651 - Fix inlined constructor so that values produced by default
652 or builder methods are coerced as required. (t0m)
653 - added test for this (t0m)
655 * Moose::Meta::Attribute
656 - A lazy attribute with a default or builder did not attempt to
657 coerce the default value. The immutable code _did_
659 - added test for this (t0m)
662 - This is a new helper module for writing "Moose-alike"
663 modules. This should make the lives of MooseX module authors
664 much easier. (Dave Rolsky)
667 * Moose::Cookbook::Meta::Recipe5
668 - Implemented metaclass traits (and wrote a recipe for it):
670 use Moose -traits => 'Foo'
672 This should make writing small Moose extensions a little
675 * Moose::Cookbook::Basics::Recipe1
676 - Removed any examples of direct hashref access, and applied an
677 editorial axe to reduce verbosity. (Dave Rolsky)
679 * Moose::Cookbook::Basics::Recipe1
680 - Also applied an editorial axe here. (Dave Rolsky)
683 * Moose::Cookbook::Extending::Recipe1
684 * Moose::Cookbook::Extending::Recipe2
685 - Rewrote extending and embedding moose documentation and
686 recipes to use Moose::Exporter (Dave Rolsky)
690 - These two modules now warn when you load them from the main
691 package "main" package, because we will not export sugar to
692 main. Previously it just did nothing. (Dave Rolsky)
695 - Now provide an init_meta method just like Moose.pm, and you
696 can call this to provide an alternate role metaclass. (Dave
697 Rolsky and nothingmuch)
698 - get_method_map now respects the package cache flag (nothingmuch)
701 - Two new methods - add_method and wrap_method_body
705 - Optimizations including allowing constructors to accept hash
706 refs, making many more classes immutable, and making
707 constructors immutable. (nothingmuch)
709 0.55 Sun August 3, 2008
710 * Moose::Meta::Attribute
711 - breaking down the way 'handles' methods are
712 created so that the process can be more easily
713 overridden by subclasses (stevan)
715 * Moose::Meta::TypeConstraint
716 - fixing what is passed into a ->message with
717 the type constraints (RT #37569)
718 - added tests for this (Charles Alderman)
720 * Moose::Util::TypeConstraints
721 - fix coerce to accept anon types like subtype can (mst)
724 - reorganized the recipes into sections - Basics, Roles, Meta,
725 Extending - and wrote abstracts for each section (Dave Rolsky)
727 * Moose::Cookbook::Basics::Recipe10
728 - A new recipe that demonstrates operator overloading
729 in combination with Moose. (bluefeet)
731 * Moose::Cookbook::Meta::Recipe1
732 - an introduction to what meta is and why you'd want to make
733 your own metaclass extensions (Dave Rolsky)
735 * Moose::Cookbook::Meta::Recipe4
736 - a very simple metaclass example (Dave Rolsky)
738 * Moose::Cookbook::Extending::Recipe1
739 - how to write a Moose-alike module to use your own object base
742 * Moose::Cookbook::Extending::Recipe2
743 - how to write modules with an API just like C<Moose.pm> (Dave
747 - Tons of fixes, both syntactical and grammatical (Dave
748 Rolsky, Paul Fenwick)
750 0.54 Thurs. July 3, 2008
751 ... this is not my day today ...
753 * Moose::Meta::Attribute
754 - fixed legal_options_for_inheritance such that
755 clone_and_inherit options still works for
756 Class::MOP::Attribute objects and therefore
757 does not break MooseX::AttributeHelpers
760 0.53 Thurs. July 3, 2008
761 * Whoops, I guess I should run 'make manifest' before
762 actually releasing the module. No actual changes
763 in this release, except the fact that it includes
764 the changes that I didn't include in the last
767 0.52 Thurs. July 3, 2008
769 - added "FEATURE REQUESTS" section to the Moose docs
770 to properly direct people (stevan) (RT #34333)
771 - making 'extends' croak if it is passed a Role since
772 this is not ever something you want to do
773 (fixed by stevan, found by obra)
774 - added tests for this (stevan)
777 - adding support for DOES (as in UNIVERSAL::DOES)
779 - added test for this
781 * Moose::Meta::Attribute
782 - added legal_options_for_inheritance (wreis)
783 - added tests for this (wreis)
785 * Moose::Cookbook::Snacks::*
786 - removed some of the unfinished snacks that should
787 not have been released yet. Added some more examples
788 to the 'Keywords' snack. (stevan)
790 * Moose::Cookbook::Style
791 - added general Moose "style guide" of sorts to the
792 cookbook (nothingmuch) (RT #34335)
795 - added more BUILDARGS tests (stevan)
797 0.51 Thurs. Jun 26, 2008
799 - add unimport so "no Moose::Role" actually does
802 * Moose::Meta::Role::Application::ToRole
803 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
804 order to provide its own implementation, that method still got
805 added to the list of required methods for consumers of
806 RoleB. Now an aliased method is only added to the list of
807 required methods if the role doing the aliasing does not
808 provide its own implementation. See Recipe 11 for an example
809 of all this. (Dave Rolsky)
810 - added tests for this
812 * Moose::Meta::Method::Constructor
813 - when a single argument that wasn't a hashref was provided to
814 an immutabilized constructor, the error message was very
815 unhelpful, as opposed to the non-immutable error. Reported by
817 - added test for this (Dave Rolsky)
819 * Moose::Meta::Attribute
820 - added support for meta_attr->does("ShortAlias") (sartak)
821 - added tests for this (sartak)
822 - moved the bulk of the `handles` handling to the new
823 install_delegation method (Stevan)
826 - Added BUILDARGS, a new step in new()
828 * Moose::Meta::Role::Application::RoleSummation
829 - fix typos no one ever sees (sartak)
831 * Moose::Util::TypeConstraints
832 * Moose::Meta::TypeConstraint
833 * Moose::Meta::TypeCoercion
834 - Attempt to work around the ??{ } vs. threads issue
836 - Some null_constraint optimizations
838 0.50 Thurs. Jun 11, 2008
839 - Fixed a version number issue by bumping all modules
842 0.49 Thurs. Jun 11, 2008
843 !! This version now approx. 20-25% !!
844 !! faster with new Class::MOP 0.59 !!
846 * Moose::Meta::Attribute
847 - fixed how the is => (ro|rw) works with
848 custom defined reader, writer and accessor
850 - added docs for this (TODO).
851 - added tests for this (Thanks to Penfold)
852 - added the custom attribute alias for regular
853 Moose attributes which is "Moose"
854 - fix builder and default both being used
859 Moose::Meta::Attribute
861 Moose::Meta::Role::Composite
862 Moose::Util::TypeConstraints
863 - switched usage of reftype to ref because
867 - changing add_package_symbol to use the new
871 - fixed how DEMOLISHALL is called so that it
872 can be overrided in subclasses (thanks to Sartak)
873 - added test for this (thanks to Sartak)
875 * Moose::Util::TypeConstraints
876 - move the ClassName type check code to
877 Class::MOP::is_class_loaded (thanks to Sartak)
879 * Moose::Cookbook::Recipe11
880 - add tests for this (thanks to tokuhirom)
882 0.48 Thurs. May 29, 2008
883 (early morning release engineering)--
885 - fixing the version in Moose::Meta::Method::Destructor
886 which was causing the indexer to choke
888 0.47 Thurs. May 29, 2008
889 (late night release engineering)--
891 - fixing the version is META.yml, no functional
892 changes in this release
894 0.46 Wed. May 28, 2008
895 !! This version now approx. 20-25% !!
896 !! faster with new Class::MOP 0.57 !!
899 - some optimizations of the &initialize method
900 since it is called so often by &meta
904 - now use the get_all_package_symbols from the
905 updated Class::MOP, test suite is now 10 seconds
908 * Moose::Meta::Method::Destructor
909 - is_needed can now also be called as a class
910 method for immutablization to check if the
911 destructor object even needs to be created
914 * Moose::Meta::Method::Destructor
915 Moose::Meta::Method::Constructor
916 - added more descriptive error message to help
917 keep people from wasting time tracking an error
918 that is easily fixed by upgrading.
920 0.45 Saturday, May 24, 2008
922 - Because of work in Class::MOP 0.57, all
923 XS based functionality is now optional
924 and a Pure Perl version is supplied
925 - the CLASS_MOP_NO_XS environment variable
926 can now be used to force non-XS versions
928 - several of the packages have been tweaked
929 to take care of this, mostly we added
930 support for the package_name and name
931 variables in all the Method metaclasses
932 - before/around/after method modifiers now
933 support regexp matching of names
934 (thanks to Takatoshi Kitano)
935 - tests added for this
936 - NOTE: this only works for classes, it
937 is currently not supported in roles,
938 but, ... patches welcome
939 - All usage of Carp::confess have been replaced
940 by Carp::croak in the "keyword" functions since
941 the stack trace is usually not helpful
944 - All usage of Carp::confess have been replaced
945 by Carp::croak in the "keyword" functions since
946 the stack trace is usually not helpful
947 - The 'has' keyword for roles now accepts the
948 same array ref form that Moose.pm does
949 (has [qw/foo bar/] => (is => 'rw', ...))
950 - added test for this
952 * Moose::Meta::Attribute
953 - trigger on a ro-attribute is no longer an
954 error, as it's useful to trigger off of the
958 - added same 'add_package_symbol' fix as in
962 - does_role now handles non-Moose classes
964 - added tests for this
965 - added the 'add_method_modifier' function
966 (thanks to Takatoshi Kitano)
968 * Moose::Util::TypeConstraints
969 - subtypes of parameterizable types now are
970 themselves parameterizable types
972 * Moose::Meta::Method::Constructor
973 - fixed bug where trigger was not being
974 called by the inlined immutable
976 - added test for this (thanks to Caelum)
978 * Moose::Meta::Role::Application::ToInstance
979 - now uses the metaclass of the instance
980 (if possible) to create the anon-class
981 (thanks Jonathan Rockway)
983 * Moose::Cookbook::Recipe22
984 - added the meta-attribute trait recipe
988 - fixed hash-ordering test bug that was
989 causing occasional cpantester failures
990 - renamed the t/000_recipe/*.t tests to be
991 more descriptive (thanks to Sartak)
993 0.44 Sat. May 10, 2008
995 - made make_immutable warning cluck to
996 show where the error is (thanks mst)
999 - BUILDALL and DEMOLISHALL now call
1000 ->body when looping through the
1001 methods, to avoid the overloaded
1003 - fixed issue where DEMOLISHALL was
1004 eating the $@ values, and so not
1005 working correctly, it still kind of
1006 eats them, but so does vanilla perl
1007 - added tests for this
1009 * Moose::Cookbook::Recipe7
1010 - added new recipe for immutable
1011 functionality (thanks Dave Rolsky)
1013 * Moose::Cookbook::Recipe9
1014 - added new recipe for builder and
1015 lazy_build (thanks Dave Rolsky)
1017 * Moose::Cookbook::Recipe11
1018 - added new recipe for method aliasing
1019 and exclusion with Roles (thanks Dave Rolsky)
1022 - fixed Win32 test failure (thanks spicyjack)
1024 ~ removed Build.PL and Module::Build compat
1025 since Module::Install has done that.
1027 0.43 Wed. April, 30, 2008
1029 drink more coffee before
1030 doing release engineering
1032 - whoops, forgot to do the smolder tests,
1033 and we broke some of the custom meta-attr
1034 modules. This fixes that.
1036 0.42 Mon. April 28, 2008
1037 - some bad tests slipped by, nothing else
1038 changed in this release (cpantesters++)
1040 - upped the Class::MOP dependency to 0.55
1041 since we have tests which need the C3
1044 0.41 Mon. April 28, 2008
1045 ~~ numerous documentation updates ~~
1047 - Changed all usage of die to Carp::croak for better
1048 error reporting (initial patch by Tod Hagan)
1050 ** IMPORTANT NOTE **
1051 - the make_immutable keyword is now deprecated, don't
1052 use it in any new code and please fix your old code
1053 as well. There will be 2 releases, and then it will
1059 - refactored the way inner and super work to avoid
1060 any method/@ISA cache penalty (nothingmuch)
1062 * Moose::Meta::Class
1063 - fixing &new_object to make sure trigger gets the
1064 coerced value (spotted by Charles Alderman on the
1066 - added test for this
1068 * Moose::Meta::Method::Constructor
1069 - immutable classes which had non-lazy attributes were calling
1070 the default generating sub twice in the constructor. (bug
1071 found by Jesse Luehrs, fixed by Dave Rolsky)
1072 - added tests for this (Dave Rolsky)
1073 - fix typo in initialize_body method (nothingmuch)
1075 * Moose::Meta::Method::Destructor
1076 - fix typo in initialize_body method (nothingmuch)
1078 * Moose::Meta::Method::Overriden
1079 Moose::Meta::Method::Augmented
1080 - moved the logic for these into their own
1081 classes (nothingmuch)
1083 * Moose::Meta::Attribute
1084 - inherited attributes may now be extended without
1085 restriction on the type ('isa', 'does') (Sartak)
1086 - added tests for this (Sartak)
1087 - when an attribute property is malformed (such as lazy without
1088 a default), give the name of the attribute in the error
1090 - added the &applied_traits and &has_applied_traits methods
1091 to allow introspection of traits
1092 - added tests for this
1093 - moved 'trait' and 'metaclass' argument handling to here from
1095 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1096 '+foo' syntax) (nothingmuch)
1097 - added tests for this (t0m)
1100 - localize $@ inside DEMOLISHALL to avoid it
1101 eating $@ (found by Ernesto)
1102 - added test for this (thanks to Ernesto)
1104 * Moose::Util::TypeConstraints
1105 - &find_type_constraint now DWIMs when given an
1106 type constraint object or name (nothingmuch)
1107 - &find_or_create_type_constraint superseded with a number of more
1109 - find_or_create_{isa,does}_type_constraint
1110 - find_or_parse_type_constraint
1112 * Moose::Meta::TypeConstraint
1113 Moose::Meta::TypeConstraint::Class
1114 Moose::Meta::TypeConstraint::Role
1115 Moose::Meta::TypeConstraint::Enum
1116 Moose::Meta::TypeConstraint::Union
1117 Moose::Meta::TypeConstraint::Parameterized
1118 - added the &equals method for comparing two type
1119 constraints (nothingmuch)
1120 - added tests for this (nothingmuch)
1122 * Moose::Meta::TypeConstraint
1123 - add the &parents method, which is just an alias to &parent.
1124 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1126 * Moose::Meta::TypeConstraint::Class
1127 - added the class attribute for introspection purposes
1129 - added tests for this
1131 * Moose::Meta::TypeConstraint::Enum
1132 Moose::Meta::TypeConstraint::Role
1133 - broke these out into their own classes (nothingmuch)
1135 * Moose::Cookbook::Recipe*
1136 - fixed references to test file locations in the POD
1137 and updated up some text for new Moose features
1141 - Added &resolve_metaclass_alias, a helper function for finding an actual
1142 class for a short name (e.g. in the traits list)
1144 0.40 Fri. March 14, 2008
1145 - I hate Pod::Coverage
1147 0.39 Fri. March 14, 2008
1149 - documenting the use of '+name' with attributes
1150 that come from recently composed roles. It makes
1151 sense, people are using it, and so why not just
1152 officially support it.
1153 - fixing the 'extends' keyword so that it will not
1154 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1157 - added the perl -Moose=+Class::Name feature to allow
1158 monkeypatching of classes in one liners
1161 - fixing the 'apply_all_roles' keyword so that it will not
1162 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1164 * Moose::Meta::Class
1165 - added ->create method which now supports roles (thanks to jrockway)
1166 - added tests for this
1167 - added ->create_anon_class which now supports roles and caching of
1168 the results (thanks to jrockway)
1169 - added tests for this
1170 - made ->does_role a little more forgiving when it is
1171 checking a Class::MOP era metaclasses.
1173 * Moose::Meta::Role::Application::ToInstance
1174 - it is now possible to pass extra params to be used when
1175 a role is applied to an the instance (rebless_params)
1176 - added tests for this
1178 * Moose::Util::TypeConstraints
1179 - class_type now accepts an optional second argument for a
1180 custom message. POD anotated accordingly (groditi)
1181 - added tests for this
1182 - it is now possible to make anon-enums by passing 'enum' an
1183 ARRAY ref instead of the $name => @values. Everything else
1185 - added tests for this
1188 - making test for using '+name' on attributes consumed
1189 from a role, it works and makes sense too.
1191 * Moose::Meta::Attribute
1192 - fix handles so that it doesn't return nothing
1193 when the method cannot be found, not sure why
1194 it ever did this originally, this means we now
1195 have slightly better support for AUTOLOADed
1197 - added more delegation tests
1198 - adding ->does method to this so as to better
1199 support traits and their introspection.
1200 - added tests for this
1203 - localizing the Data::Dumper configurations so
1204 that it does not pollute others (RT #33509)
1205 - made ->does a little more forgiving when it is
1206 passed Class::MOP era metaclasses.
1208 0.38 Fri. Feb. 15, 2008
1209 * Moose::Meta::Attribute
1210 - fixed initializer to correctly do
1211 type checking and coercion in the
1213 - added tests for this
1216 - fixed some finicky tests (thanks to konobi)
1218 0.37 Thurs. Feb. 14, 2008
1220 - fixed some details in Moose::init_meta
1221 and its superclass handling (thanks thepler)
1222 - added tests for this (thanks thepler)
1223 - 'has' now dies if you don't pass in name
1225 - added the 'make_immutable' keyword as a shortcut
1228 * Moose::Meta::Class
1229 Moose::Meta::Method::Constructor
1230 Moose::Meta::Attribute
1231 - making (init_arg => undef) work here too
1232 (thanks to nothingmuch)
1234 * Moose::Meta::Attribute
1235 Moose::Meta::Method::Constructor
1236 Moose::Meta::Method::Accessor
1237 - make lazy attributes respect attr initializers (rjbs)
1238 - added tests for this
1240 * Moose::Util::TypeConstraints
1241 Moose::Util::TypeConstraints::OptimizedConstraints
1242 Moose::Meta::TypeConstraints
1243 Moose::Meta::Attribute
1244 Moose::Meta::Method::Constructor
1245 Moose::Meta::Method::Accessor
1246 - making type errors use the
1247 assigned message (thanks to Sartak)
1248 - added tests for this
1250 * Moose::Meta::Method::Destructor
1251 - making sure DESTROY gets inlined properly
1252 with successive DEMOLISH calls (thanks to manito)
1254 * Moose::Meta::Attribute
1255 Moose::Meta::Method::Accessor
1256 - fixed handling of undef with type constraints
1258 - added tests for this
1261 - added &get_all_init_args and &get_all_attribute_values
1262 (thanks to Sartak and nothingmuch)
1264 0.36 Sat. Jan. 26, 2008
1266 Moose::Meta::Attribute
1267 - role type tests now support when roles are
1268 applied to non-Moose classes (found by ash)
1269 - added tests for this (thanks to ash)
1270 - couple extra tests to boost code coverage
1272 * Moose::Meta::Method::Constructor
1273 - improved fix for handling Class::MOP attributes
1274 - added test for this
1276 * Moose::Meta::Class
1277 - handled the add_attribute($attribute_meta_object)
1279 - added test for this
1281 0.35 Tues. Jan. 22, 2008
1282 * Moose::Meta::Method::Constructor
1283 - fix to make sure even Class::MOP attributes
1284 are handled correctly (Thanks to Dave Rolsky)
1285 - added test for this (also Dave Rolsky)
1287 * Moose::Meta::Class
1288 - improved error message on _apply_all_roles,
1289 you should now use Moose::Util::apply_all_roles
1290 and you shouldnt have been using a _ prefixed
1291 method in the first place ;)
1293 0.34 Mon. Jan. 21, 2008
1294 ~~~ more misc. doc. fixes ~~~
1295 ~~ updated copyright dates ~~
1297 Moose is now a postmodern object system :)
1298 - (see the POD for details)
1300 * <<Role System Refactoring>>
1301 - this release contains a major reworking and
1302 cleanup of the role system
1303 - 100% backwards compat.
1304 - Role application now restructured into seperate
1305 classes based on type of applicants
1306 - Role summation (combining of more than one role)
1307 is much cleaner and anon-classes are no longer
1308 used in this process
1309 - new Composite role metaclass
1310 - runtime application of roles to instances
1311 is now more efficient and re-uses generated
1312 classes when applicable
1314 * <<New Role composition features>>
1315 - methods can now be excluded from a given role
1317 - methods can now be aliased to another name (and
1318 still retain the original as well)
1320 * Moose::Util::TypeConstraints::OptimizedConstraints
1321 - added this module (see above)
1323 * Moose::Meta::Class
1324 - fixed the &_process_attribute method to be called
1325 by &add_attribute, so that the API is now correct
1327 * Moose::Meta::Method::Accessor
1328 - fixed bug when passing a list of values to
1329 an accessor would get (incorrectly) ignored.
1330 Thanks to Sartak for finding this ;)
1331 - added tests for this (Sartak again)
1333 * Moose::Meta::Method::Accessor
1334 Moose::Meta::Method::Constructor
1335 Moose::Meta::Attribute
1336 Moose::Meta::TypeConstraint
1337 Moose::Meta::TypeCoercion
1338 - lots of cleanup of such things as:
1340 - type constraint handling
1341 - error handling/messages
1342 (thanks to nothingmuch)
1344 * Moose::Meta::TypeConstraint::Parameterizable
1345 - added this module to support the refactor
1346 in Moose::Meta::TypeConstraint::Parameterized
1348 * Moose::Meta::TypeConstraint::Parameterized
1349 - refactored how these types are handled so they
1350 are more generic and not confined to ArrayRef
1354 - shortened some file names for better VMS support (RT #32381)
1356 0.33 Fri. Dec. 14, 2007
1357 !! Moose now loads 2 x faster !!
1358 !! with new Class::MOP 0.49 !!
1360 ++ new oose.pm module to make command line
1361 Moose-ness easier (see POD docs for more)
1363 * Moose::Meta::Class
1365 - several tweaks to take advantage of the
1366 new method map caching in Class::MOP
1368 * Moose::Meta::TypeConstraint::Parameterized
1369 - allow subtypes of ArrayRef and HashRef to
1370 be used as a container (sartak)
1371 - added tests for this
1372 - basic support for coercion to ArrayRef and
1373 HashRef for containers (sartak)
1374 - added tests for this
1376 * Moose::Meta::TypeCoercion
1377 - coercions will now create subtypes as needed
1378 so you can now add coercions to parameterized
1379 types without having to explictly define them
1380 - added tests for this
1382 * Moose::Meta::Method::Accessor
1383 - allow subclasses to decide whether we need
1384 to copy the value into a new variable (sartak)
1386 0.32 Tues. Dec. 4, 2007
1387 * Moose::Util::TypeConstraints
1388 - fixing how subtype aliases of unions work
1389 they should inherit the parent's coercion
1390 - added tests for this
1391 - you can now define multiple coercions on
1392 a single type at different times instead of
1393 having to do it all in one place
1394 - added tests for this
1396 * Moose::Meta::TypeConstraint
1397 - there is now a default constraint of sub { 1 }
1398 instead of Moose::Util::TypeConstraints setting
1401 * Moose::Meta::TypeCoercion
1402 * Moose::Meta::TypeCoercion::Union
1403 - added the &has_coercion_for_type and
1404 &add_type_coercions methods to support the
1405 new features above (although you cannot add
1406 more type coercions for Union types)
1408 0.31 Mon. Nov. 26, 2007
1409 * Moose::Meta::Attribute
1410 - made the +attr syntax handle extending types with
1411 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1412 now works if the original foo is an ArrayRef.
1413 - added tests for this.
1414 - delegation now works even if the attribute does not
1415 have a reader method using the get_read_method_ref
1416 method from Class::MOP::Attribute.
1417 - added tests for this
1418 - added docs for this
1420 * Moose::Util::TypeConstraints
1421 - passing no "additional attribute info" to
1422 &find_or_create_type_constraint will no longer
1423 attempt to create an __ANON__ type for you,
1424 instead it will just return undef.
1425 - added docs for this
1427 0.30 Fri. Nov. 23, 2007
1428 * Moose::Meta::Method::Constructor
1429 -builder related bug in inlined constructor. (groditi)
1431 * Moose::Meta::Method::Accessor
1432 - genereate unnecessary calls to predicates and refactor
1433 code generation for runtime speed (groditi)
1435 * Moose::Util::TypeConstraints
1436 - fix ClassName constraint to introspect symbol table (mst)
1437 - added more tests for this (mst)
1438 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1439 with work correctly.
1440 - added tests for this
1443 - adding the link to Recipie 11 (written by Sartak)
1444 - adding test for SYNOPSIS code
1447 - New tests for builder bug. Upon instantiation, if an
1448 attribute had a builder, no value and was not lazy the
1449 builder default was not getting run, oops. (groditi)
1451 0.29 Tues. Nov. 13, 2007
1452 * Moose::Meta::Attribute
1453 - Fix error message on missing builder method (groditi)
1455 * Moose::Meta::Method::Accessor
1456 - Fix error message on missing builder method (groditi)
1459 - Add test to check for the correct error message when
1460 builder method is missing (groditi)
1462 0.28 Tues. Nov. 13, 2007
1463 - 0.27 packaged incorrectly (groditi)
1465 0.27 Tues. Nov. 13, 2007
1466 * Moose::Meta::Attribute
1467 - Added support for the new builder option (groditi)
1468 - Added support for lazy_build option (groditi)
1469 - Changed slot initialization for predicate changes (groditi)
1471 * Moose::Meta::Method::Accessor
1472 - Added support for lazy_build option (groditi)
1473 - Fix inline methods to work with corrected predicate
1476 * Moose::Meta::Method::Constructor
1477 - Added support for lazy_build option (groditi)
1480 - tests for builder and lazy_build (groditi)
1482 * fixing some misc. bits in the docs that
1483 got mentioned on CPAN Forum & perlmonks
1486 - fixed how required methods are handled
1487 when they encounter overriden or modified
1488 methods from a class (thanks to confound).
1489 - added tests for this
1491 * Moose::Util::TypeConstraint
1492 - fixed the type notation parser so that
1493 the | always creates a union and so is
1494 no longer a valid type char (thanks to
1495 konobi, mugwump and #moose for working
1497 - added more tests for this
1499 0.26 Thurs. Sept. 27, 2007
1502 * Parameterized Types
1503 We now support parameterized collection types, such as:
1504 ArrayRef[Int] # array or integers
1505 HashRef[Object] # a hash with object values
1506 They can also be nested:
1507 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1508 And work with the type unions as well:
1509 ArrayRef[Int | Str] # array of integers of strings
1511 * Better Framework Extendability
1512 Moose.pm is now "extendable" such that it is now much
1513 easier to extend the framework and add your own keywords
1514 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1515 section of the Moose.pm docs.
1518 In an effort to begin documenting some of the various
1519 details of Moose as well as some common idioms, we have
1520 created Moose::Cookbook::Snacks as a place to find
1521 small (easily digestable) nuggets of Moose code.
1524 ~ Several doc updates/cleanup thanks to castaway ~
1526 - converted build system to use Module::Install instead of
1527 Module::Build (thanks to jrockway)
1530 - added all the meta classes to the immutable list and
1531 set it to inline the accessors
1532 - fix import to allow Sub::Exporter like { into => }
1533 and { into_level => } (perigrin)
1534 - exposed and documented init_meta() to allow better
1535 embedding and extending of Moose (perigrin)
1538 - complete re-organization of the test suite
1539 - added some new tests as well
1540 - finally re-enabled the Moose::POOP test since
1541 the new version of DBM::Deep now works again
1544 * Moose::Meta::Class
1545 - fixed very odd and very nasty recursion bug with
1547 - added tests for this (eilara)
1549 * Moose::Meta::Attribute
1550 Moose::Meta::Method::Constructor
1551 Moose::Meta::Method::Accessor
1552 - fixed issue with overload::Overloaded getting called
1553 on non-blessed items. (RT #29269)
1554 - added tests for this
1556 * Moose::Meta::Method::Accessor
1557 - fixed issue with generated accessor code making
1558 assumptions about hash based classes (thanks to dexter)
1560 * Moose::Coookbook::Snacks
1561 - these are bits of documentation, not quite as big as
1562 Recipes but which have no clear place in the module docs.
1563 So they are Snacks! (horray for castaway++)
1565 * Moose::Cookbook::Recipe4
1566 - updated it to use the new ArrayRef[MyType] construct
1567 - updated the accompanying test as well
1569 +++ Major Refactor of the Type Constraint system +++
1570 +++ with new features added as well +++
1572 * Moose::Util::TypeConstraint
1573 - no longer uses package variable to keep track of
1574 the type constraints, now uses the an instance of
1575 Moose::Meta::TypeConstraint::Registry to do it
1576 - added more sophisticated type notation parsing
1578 - added tests for this
1580 * Moose::Meta::TypeConstraint
1581 - some minor adjustments to make subclassing easier
1582 - added the package_defined_in attribute so that we
1583 can track where the type constraints are created
1585 * Moose::Meta::TypeConstraint::Union
1586 - this is now been refactored to be a subclass of
1587 Moose::Meta::TypeConstraint
1589 * Moose::Meta::TypeCoercion::Union
1590 - this has been added to service the newly refactored
1591 Moose::Meta::TypeConstraint::Union and is itself
1592 a subclass of Moose::Meta::TypeCoercion
1594 * Moose::Meta::TypeConstraint::Parameterized
1595 - added this module (taken from MooseX::AttributeHelpers)
1596 to help construct nested collection types
1597 - added tests for this
1599 * Moose::Meta::TypeConstraint::Registry
1600 - added this class to keep track of type constraints
1602 0.25 Mon. Aug. 13, 2007
1604 - Documentation update to reference Moose::Util::TypeConstraints
1605 under 'isa' in 'has' for how to define a new type
1606 (thanks to shlomif).
1608 * Moose::Meta::Attribute
1609 - required attributes now will no longer accept undef
1610 from the constructor, even if there is a default and lazy
1611 - added tests for this
1612 - default subroutines must return a value which passes the
1614 - added tests for this
1616 * Moose::Meta::Attribute
1617 * Moose::Meta::Method::Constructor
1618 * Moose::Meta::Method::Accessor
1619 - type-constraint tests now handle overloaded objects correctly
1620 in the error message
1621 - added tests for this (thanks to EvanCarroll)
1623 * Moose::Meta::TypeConstraint::Union
1624 - added (has_)hand_optimized_constraint to this class so that
1625 it behaves as the regular Moose::Meta::TypeConstraint does.
1628 - large refactoring of this code
1629 - added several more tests
1630 - tests for subtle conflict resolition issues
1631 added, but not currently running
1634 * Moose::Cookbook::Recipe7
1635 - added new recipe for augment/inner functionality
1637 - added test for this
1640 - a formal definition of roles (still in progress)
1643 - utilities for easier working with Moose classes
1644 - added tests for these
1647 - This contains Moose specific test functions
1648 - added tests for these
1650 0.24 Tues. July 3, 2007
1651 ~ Some doc updates/cleanup ~
1653 * Moose::Meta::Attribute
1654 - added support for roles to be given as parameters
1655 to the 'handles' option.
1656 - added tests and docs for this
1657 - the has '+foo' attribute form now accepts changes to
1658 the lazy option, and the addition of a handles option
1659 (but not changing the handles option)
1660 - added tests and docs for this
1663 - required methods are now fetched using find_method_by_name
1664 so that required methods can come from superclasses
1665 - adjusted tests for this
1667 0.23 Mon. June 18, 2007
1668 * Moose::Meta::Method::Constructor
1669 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1670 * Moose::Meta::Class
1671 - Modify make_immutable to work with the new Class::MOP immutable
1672 mechanism + POD + very basic test (groditi)
1673 * Moose::Meta::Attribute
1674 - Fix handles to use goto() so that caller() comes out properly on
1675 the other side (perigrin)
1677 0.22 Thurs. May 31, 2007
1678 * Moose::Util::TypeConstraints
1679 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1680 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1681 prototypes for functions
1682 - added the ClassName type constraint, this checks for strings
1683 which will respond true to ->isa(UNIVERSAL).
1684 - added tests and docs for this
1685 - subtyping just in name now works correctly by making the
1686 default for where be { 1 }
1687 - added test for this
1689 * Moose::Meta::Method::Accessor
1690 - coerce and lazy now work together correctly, thanks to
1691 merlyn for finding this bug
1692 - tests added for this
1693 - fix reader presedence bug in Moose::Meta::Attribute + tests
1696 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1697 a HASH-ref and missed. This produces better error messages then
1698 having it die cause undef is not a HASH.
1699 - added tests for this
1701 0.21 Thursday, May 2nd, 2007
1703 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1704 - modified unimport to remove super and inner along with the rest
1705 - altered unimport tests to handle this
1708 - altered super export to populate SUPER_SLOT
1710 * Moose::Meta::Class
1711 - altered augment and override modifier application to use *_SLOT
1712 - modified tests for these to unimport one test class each to test
1715 - fixed issue where custom attribute metaclasses
1716 where not handled correctly in roles
1717 - added tests for this
1719 * Moose::Meta::Class
1720 - fixed issue where extending metaclasses with
1721 roles would blow up. Thanks to Aankhen`` for
1722 finding this insidious error, and it's solution.
1724 ~~ lots of spelling and grammer fixes in the docs,
1725 many many thanks to rlb3 and Aankhen for these :)
1727 0.20 Friday, April 6th, 2007
1728 >> I messed up the SKIP logic in one test
1729 so this release is just to fix that.
1732 - 'has' now also accepts an ARRAY ref
1733 to create multiple attrs (see docs)
1734 (thanks to konobi for this)
1735 - added tests and docs
1737 0.19 Thurs. April 5th, 2007
1738 ~~ More documentation updates ~~
1740 * Moose::Util::TypeConstraints
1741 - 'type' now supports messages as well
1742 thanks to phaylon for finding this
1743 - added tests for this
1744 - added &list_all_type_constraints and
1745 &list_all_builtin_type_constraints
1746 functions to facilitate introspection.
1748 * Moose::Meta::Attribute
1749 - fixed regexp 'handles' declarations
1750 to build the list of delegated methods
1751 correctly (and not override important
1752 things like &new) thanks to ashleyb
1754 - added tests and docs for this
1755 - added the 'documentation' attributes
1756 so that you can actually document your
1757 attributes and inspect them through the
1759 - added tests and docs for this
1761 * Moose::Meta::Class
1762 - when loading custom attribute metaclasses
1763 it will first look in for the class in the
1764 Moose::Meta::Attribute::Custom::$name, and
1765 then default to just loading $name.
1766 - added tests and docs for this
1768 * Moose::Meta::TypeConstraint
1769 - type constraints now stringify to their names.
1770 - added test for this
1773 - added tests to assure we work with Module::Refresh
1774 - added stricter test skip logic in the Moose POOP
1775 test, ask Rob Kinyon why.
1776 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1778 0.18 Sat. March 10, 2007
1779 ~~ Many, many documentation updates ~~
1782 - We now use Class::MOP::load_class to
1784 - added tests to show types and subtypes
1785 working with Declare::Constraints::Simple
1786 and Test::Deep as constraint engines.
1789 !! You must have Class::MOP 0.37_001 !!
1790 !! for this developer release to work !!
1792 This release was primarily adding the immutable
1793 feature to Moose. An immutable class is one which
1794 you promise not to alter. When you set the class
1795 as immutable it will perform various bits of
1796 memoization and inline certain part of the code
1797 (constructors, destructors and accessors). This
1798 minimizes (and in some cases totally eliminates)
1799 one of Moose's biggest performance hits. This
1800 feature is not on by default, and is 100% optional.
1801 It has several configurable bits as well, so you
1802 can pick and choose to your specific needs.
1804 The changes involved in this were fairly wide and
1805 highly specific, but 100% backwards compatible, so
1806 I am not going to enumerate them here. If you are
1807 truely interested in what was changed, please do
1810 0.17 Tues. Nov. 14, 2006
1811 * Moose::Meta::Method::Accessor
1812 - bugfix for read-only accessors which
1813 are have a type constraint and lazy.
1814 Thanks to chansen for finding it.
1816 0.16 Tues. Nov. 14, 2006
1818 There are some speed improvements in this release,
1819 but they are only the begining, so stay tuned.
1822 - BUILDALL and DEMOLISHALL no longer get
1823 called unless they actually need to be.
1824 This gave us a signifigant speed boost
1825 for the cases when there is no BUILD or
1826 DEMOLISH method present.
1828 * Moose::Util::TypeConstraints
1829 * Moose::Meta::TypeConstraint
1830 - added an 'optimize_as' option to the
1831 type constraint, which allows for a
1832 hand optimized version of the type
1833 constraint to be used when possible.
1834 - Any internally created type constraints
1835 now provide an optimized version as well.
1837 0.15 Sun. Nov. 5, 2006
1839 This version of Moose *must* have Class::MOP 0.36 in order
1840 to work correctly. A number of small internal tweaks have
1841 been made in order to be compatible with that release.
1843 * Moose::Util::TypeConstraints
1844 - added &unimport so that you can clean out
1845 your class namespace of these exported
1848 * Moose::Meta::Class
1849 - fixed minor issue which occasionally
1850 comes up during global destruction
1852 - moved Moose::Meta::Method::Overriden into
1856 - moved Moose::Meta::Role::Method into
1859 * Moose::Meta::Attribute
1860 - changed how we do type checks so that
1861 we reduce the overall cost, but still
1864 - moved accessor generation methods to
1865 Moose::Meta::Method::Accessor to
1866 conform to the API changes from
1869 * Moose::Meta::TypeConstraint
1870 - changed how constraints are compiled
1871 so that we do less recursion and more
1872 iteration. This makes the type check
1874 - moved Moose::Meta::TypeConstraint::Union
1877 * Moose::Meta::Method::Accessor
1878 - created this from methods formerly found in
1879 Moose::Meta::Attribute
1881 * Moose::Meta::Role::Method
1882 - moved this from Moose::Meta::Role
1884 * Moose::Meta::Method::Overriden
1885 - moved this from Moose::Meta::Class
1887 * Moose::Meta::TypeConstraint::Union
1888 - moved this from Moose::Meta::TypeConstraint
1890 0.14 Mon. Oct. 9, 2006
1892 * Moose::Meta::Attribute
1893 - fixed lazy attributes which were not getting
1894 checked with the type constraint (thanks ashley)
1895 - added tests for this
1896 - removed the over-enthusiastic DWIMery of the
1897 automatic ArrayRef and HashRef defaults, it
1898 broke predicates in an ugly way.
1899 - removed tests for this
1901 0.13 Sat. Sept. 30, 2006
1903 This version of Moose *must* have Class::MOP 0.35 in order
1904 to work correctly. A number of small internal tweaks have
1905 been made in order to be compatible with that release.
1908 - Removed the use of UNIVERSAL::require to be a better
1909 symbol table citizen and remove a dependency
1910 (thanks Adam Kennedy)
1912 **~~ removed experimental & undocumented feature ~~**
1913 - commented out the 'method' and 'self' keywords, see the
1914 comments for more info.
1917 - added a FAQ and WTF files to document frequently
1918 asked questions and common problems
1920 * Moose::Util::TypeConstraints
1921 - added GlobRef and FileHandle type constraint
1922 - added tests for this
1924 * Moose::Meta::Attribute
1925 - if your attribute 'isa' ArrayRef of HashRef, and you have
1926 not explicitly set a default, then make the default DWIM.
1927 This will also work for subtypes of ArrayRef and HashRef
1929 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1930 - new test added for this (thanks to ashley)
1933 - added basic support for runtime role composition
1934 but this is still *highly experimental*, so feedback
1935 is much appreciated :)
1936 - added tests for this
1938 * Moose::Meta::TypeConstraint
1939 - the type constraint now handles the coercion process
1940 through delegation, this is to support the coercion
1943 * Moose::Meta::TypeConstraint::Union
1944 - it is now possible for coercions to be performed
1946 - added tests for this (thanks to konobi)
1948 * Moose::Meta::TypeCoercion
1949 - properly capturing error when type constraint
1953 - Scalar::Util 1.18 is bad on Win32, so temporarily
1954 only require version 1.17 for Win32 and cygwin.
1955 (thanks Adam Kennedy)
1957 0.12 Sat. Sept. 1, 2006
1959 - Recipe5 (subtypes & coercion) has been written
1962 - fixed "bad meta" error message to be more descriptive
1963 - fixed &unimport to not remove the &inner and &super
1964 keywords because we need to localize them.
1965 - fixed number of spelling/grammer issues, thanks Theory :)
1967 **~~ experimental & undocumented feature ~~**
1968 - added the method and self keywords, they are basically
1969 just sugar, and they may not stay around.
1972 - added &dump method to easily Data::Dumper
1975 * Moose::Meta::TypeConstraint
1976 - added the &is_a_type_of method to check both the current
1977 and the subtype of a method (similar to &isa with classes)
1980 - this is now a subclass of Class::MOP::Module, and no longer
1981 creates the _role_meta ugliness of before.
1982 - fixed tests to reflect this change
1984 0.11 Wed. July 12, 2006
1986 - added an &unimport method to remove all the keywords
1987 that Moose will import, simply add 'no Moose' to the
1988 bottom of your class file.
1991 - fixed some test failures caused by a forgotten test
1994 0.10 Thurs. July 6, 2006
1996 - improved error message when loading modules so
1997 it is less confusing when you load a role.
1998 - added &calculate_all_roles method to
1999 Moose::Meta::Class and Moose::Meta::Role
2002 This module has been tested against Class::MOP 0.30
2003 but it does not yet utilize the optimizations
2004 it makes available. Stay tuned for that ;)
2006 0.09_03 Fri. June 23, 2006
2007 ++ DEVELOPER RELEASE ++
2009 - 'use strict' and 'use warnings' are no longer
2010 needed in Moose classes, Moose itself will
2011 turn them on for you.
2012 - added tests for this
2013 - moved code from exported subs to private methods
2014 in Moose::Meta::Class
2017 - as with Moose, strict and warnings are
2018 automatically turned on for you.
2019 - added tests for this
2022 - now handles an edge case for override errors
2023 - added tests for this
2024 - added some more edge case tests
2026 0.09_02 Tues. May 16, 2006
2027 ++ DEVELOPER RELEASE ++
2029 - added prototypes to the exported subs
2033 - added prototypes to the exported subs
2036 * Moose::Util::TypeConstraints
2037 - cleaned up prototypes for the subs
2040 0.09_01 Fri. May 12, 2006
2041 ++ DEVELOPER RELEASE ++
2042 - This release works in combination with
2043 Class::MOP 0.29_01, it is a developer
2044 release because it uses the a new
2045 instance sub-protocol and a fairly
2046 complete Role implementation. It has
2047 not yet been optimized, so it slower
2048 the the previous CPAN version. This
2049 release also lacks good updated docs,
2050 the official release will have updated docs.
2053 - refactored the keyword exports
2054 - 'with' now checks Role validaity and
2055 accepts more than one Role at a time
2056 - 'extends' makes metaclass adjustments as
2057 needed to ensure metaclass compatibility
2060 - refactored the keyword exports
2061 - 'with' now checks Role validaity and
2062 accepts more than one Role at a time
2064 * Moose::Util::TypeConstraints
2065 - added the 'enum' keyword for simple
2066 string enumerations which can be used as
2068 - see example of usage in t/202_example.t
2071 - more careful checking of params to new()
2074 - much work done on the role composition
2075 - many new tests for conflict detection
2076 and composition edge cases
2077 - not enough documentation, I suggest
2078 looking at the tests
2080 * Moose::Meta::Instance
2081 - added new Instance metaclass to support
2082 the new Class::MOP instance protocol
2084 * Moose::Meta::Class
2085 - some small changes to support the new
2087 - some small additions to support Roles
2089 * Moose::Meta::Attribute
2090 - some improvements to the accessor generation code
2092 - some small changes to support the new
2094 - (still somewhat) experimental delegation support
2095 with the 'handles' option
2096 - added several tests for this
2097 - no docs for this yet
2099 0.05 Thurs. April 27, 2006
2101 - keywords are now exported with Sub::Exporter
2102 thanks to chansen for this commit
2103 - has keyword now takes a 'metaclass' option
2104 to support custom attribute meta-classes
2105 on a per-attribute basis
2106 - added tests for this
2107 - the 'has' keyword not accepts inherited slot
2108 specifications (has '+foo'). This is still an
2109 experimental feature and probably not finished
2110 see t/038_attribute_inherited_slot_specs.t for
2111 more details, or ask about it on #moose
2112 - added tests for this
2115 - keywords are now exported with Sub::Exporter
2117 * Moose::Utils::TypeConstraints
2118 - reorganized the type constraint hierarchy, thanks
2119 to nothingmuch and chansen for his help and advice
2121 - added some tests for this
2122 - keywords are now exported with Sub::Exporter
2123 thanks to chansen for this commit
2125 * Moose::Meta::Class
2126 - due to changes in Class::MOP, we had to change
2127 construct_instance (for the better)
2129 * Moose::Meta::Attribute
2130 - due to changes in Class::MOP, we had to add the
2131 initialize_instance_slot method (it's a good thing)
2133 * Moose::Meta::TypeConstraint
2134 - added type constraint unions
2135 - added tests for this
2136 - added the is_subtype_of predicate method
2137 - added tests for this
2139 0.04 Sun. April 16th, 2006
2141 - Roles can now consume other roles
2142 - added tests for this
2143 - Roles can specify required methods now with
2144 the requires() keyword
2145 - added tests for this
2148 - ripped out much of it's guts ,.. much cleaner now
2149 - added required methods and correct handling of
2150 them in apply() for both classes and roles
2151 - added tests for this
2152 - no longer adds a does() method to consuming classes
2153 it relys on the one in Moose::Object
2154 - added roles attribute and some methods to support
2155 roles consuming roles
2157 * Moose::Meta::Attribute
2158 - added support for triggers on attributes
2159 - added tests for this
2160 - added support for does option on an attribute
2161 - added tests for this
2163 * Moose::Meta::Class
2164 - added support for attribute triggers in the
2166 - added tests for this
2169 - Moose no longer creates a subtype for your class
2170 if a subtype of the same name already exists, this
2171 should DWIM in 99.9999% of all cases
2173 * Moose::Util::TypeConstraints
2174 - fixed bug where incorrect subtype conflicts were
2176 - added test for this
2179 - this class can now be extended with 'use base' if
2180 you need it, it properly loads the metaclass class now
2181 - added test for this
2183 0.03_02 Wed. April 12, 2006
2185 - you must now explictly use Moose::Util::TypeConstraints
2186 it no longer gets exported for you automatically
2189 - new() now accepts hash-refs as well as key/value lists
2190 - added does() method to check for Roles
2191 - added tests for this
2193 * Moose::Meta::Class
2194 - added roles attribute along with the add_role() and
2196 - added tests for this
2199 - now adds a does() method to consuming classes
2200 which tests the class's hierarchy for roles
2201 - added tests for this
2203 0.03_01 Mon. April 10, 2006
2205 - added new Role recipe (no content yet, only code)
2208 - added 'with' keyword for Role support
2209 - added test and docs for this
2210 - fixed subtype quoting bug
2211 - added test for this
2215 - added test and docs
2217 * Moose::Util::TypeConstraints
2218 - added the message keyword to add custom
2219 error messages to type constraints
2222 - the meta role to support Moose::Role
2223 - added tests and docs
2225 * Moose::Meta::Class
2226 - moved a number of things from Moose.pm
2227 to here, they should have been here
2230 * Moose::Meta::Attribute
2231 - moved the attribute option macros here
2232 instead of putting them in Moose.pm
2234 * Moose::Meta::TypeConstraint
2235 - added the message attributes and the
2237 - added tests and docs for this
2239 0.03 Thurs. March 30, 2006
2241 - added the Moose::Cookbook with 5 recipes,
2242 describing all the stuff Moose can do.
2245 - fixed an issue with &extends super class loading
2246 it now captures errors and deals with inline
2247 packages correctly (bug found by mst, solution
2249 - added super/override & inner/augment features
2250 - added tests and docs for these
2253 - BUILDALL now takes a reference of the %params
2254 that are passed to &new, and passes that to
2257 * Moose::Util::TypeConstraints
2258 - Type constraints now survive runtime reloading
2259 - added test for this
2261 * Moose::Meta::Class
2262 - fixed the way attribute defaults are handled
2263 during instance construction (bug found by chansen)
2265 * Moose::Meta::Attribute
2266 - read-only attributes now actually enforce their
2267 read-only-ness (this corrected in Class::MOP as
2270 0.02 Tues. March 21, 2006
2272 - many more tests, fixing some bugs and
2274 - &extends now loads the base module with
2276 - added UNIVERSAL::require to the
2279 - each new Moose class will also create
2280 and register a subtype of Object which
2281 correspond to the new Moose class.
2282 - the 'isa' option in &has now only
2283 accepts strings, and will DWIM in
2286 * Moose::Util::TypeConstraints
2287 - added type coercion features
2288 - added tests for this
2289 - added support for this in attributes
2290 and instance construction
2292 - type construction no longer creates a
2293 function, it registers the type instead.
2294 - added several functions to get the
2298 - BUILDALL and DEMOLISHALL were broken
2299 because of a mis-named hash key, Whoops :)
2301 * Moose::Meta::Attribute
2302 - adding support for coercion in the
2303 autogenerated accessors
2305 * Moose::Meta::Class
2306 - adding support for coercion in the
2307 instance construction
2309 * Moose::Meta::TypeConstraint
2310 * Moose::Meta::TypeCoercion
2311 - type constraints and coercions are now
2312 full fledges meta-objects
2314 0.01 Wed. March 15, 2006
2315 - Moooooooooooooooooose!!!