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).
29 0.72 Mon, February 23, 2009
31 * Moose::Meta::Method::Constructor
32 - A mutable class accepted Foo->new(undef) without complaint,
33 while an immutable class would blow up with an unhelpful
34 error. Now, in both cases we throw a helpful error
35 instead. Reported by doy.
37 0.71_01 Sun, February 22, 2009
39 - Hopefully fixed some POD errors in a few recipes that caused
40 them to display weird on search.cpan.org.
42 * Moose::Util::TypeConstraints
43 - Calling type or subtype without the sugar helpers (as, where,
44 message) is now deprecated.
45 - The subtype function tried hard to guess what you meant, but
46 often got it wrong. For example:
48 my $subtype = subtype as 'ArrayRef[Object]';
50 This caused an error in the past, but now works as you'd
54 - Make sure Moose.pm is loaded before calling
55 Moose->throw_error. This wasn't normally an issue, but could
56 bite you in weird cases.
58 0.71 Thu, February 19, 2009
59 * Moose::Cookbook::Basics::Recipe11
60 - A new recipe which demonstrates the use of BUILDARGS and
63 * Moose::Cookbook::Roles::Recipe3
64 - A new recipe, applying a role to an object instance. (Dave
68 - Allow overriding specific keywords from "also" packages. (doy)
71 - Replace hardcoded cookbook tests with Test::Inline to ensure
72 the tests match the actual code in the recipes. (Dave Rolsky)
75 - Working on the above turned up a number of little bugs in the
76 recipe code. (Dave Rolsky)
78 * Moose::Util::TypeConstraints::Optimized
79 - Just use Class::MOP for the optimized ClassName check. (Dave
82 0.70 Sat, February 14, 2009
83 * Moose::Util::TypeConstraints
84 - Added the RoleName type (stevan)
85 - added tests for this (stevan)
87 * Moose::Cookbook::Basics::Recipe3
88 - Updated the before qw[left right] sub to be a little more
89 defensive about what it accepts (stevan)
90 - added more tests to t/000_recipies/basics/003_binary_tree.t
94 - We now always call DEMOLISHALL, even if a class does not
95 define DEMOLISH. This makes sure that method modifiers on
96 DEMOLISHALL work as expected. (doy)
97 - added tests for this (EvanCarroll)
99 * Moose::Util::MetaRole
100 - Accept roles for the wrapped_method_metaclass (rafl)
101 - added tests for this (rafl)
103 * Moose::Meta::Attribute
104 - We no longer pass the meta-attribute object as a final
105 argument to triggers. This actually changed for inlined code a
106 while back, but the non-inlined version and the docs were
110 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
111 they require 0.11. (Dave Rolsky)
114 - Lots of small changes to the manual, cookbook, and
115 elsewhere. These were based on feedback from various
116 users, too many to list here. (Dave Rolsky)
118 0.69 Thu, February 12, 2009
120 - Make some keyword errors use throw_error instead of croak
121 since Moose::Exporter wraps keywords now (Sartak)
124 - Revised every recipe for style and clarity. Also moved some
125 documentation out of cookbook recipes and into Moose::Manual
126 pages. This work was funded as part of the Moose docs grant
127 from TPF. (Dave Rolsky)
129 * Moose::Meta::Method::Delegation
130 - If the attribute doing the delegation was not populated, the
131 error message did not specify the attribute name
134 0.68 Wed, February 4, 2009
136 - Many spelling, typo, and formatting fixes by daxim.
138 * Moose::Manual::Attributes
139 - The NAME section in the POD used "Attribute" so search.cpan
140 didn't resolve links from other documents properly.
142 * Moose::Meta::Method::Overriden
143 - Now properly spelled as Overridden. Thanks to daxim for
146 0.67 Tue, February 3, 2009
148 - Lots of little typo fixes and a few clarifications. Several
149 pages didn't have proper titles, and so weren't actually
150 visible on search.cpan.org. Thanks to hanekomu for a variety
151 of fixes and formatting improvements.
153 0.66 Tue, February 3, 2009
155 - This is a brand new, extensive manual for Moose. This aims to
156 provide a complete introduction to all of Moose's
157 features. This work was funded as part of the Moose docs grant
158 from TPF. (Dave Rolsky)
160 * Moose::Meta::Attribute
161 - Added a delegation_metaclass method to replace a hard-coded
162 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
164 * Moose::Util::TypeConstraints
165 - If you created a subtype and passed a parent that Moose didn't
166 know about, it simply ignored the parent. Now it automatically
167 creates the parent as a class type. This may not be what you
168 want, but is less broken than before. (Dave Rolsky)
170 * Moose::Util::TypeConstraints
171 - This module tried throw errors by calling Moose->throw_error,
172 but it did not ensure that Moose was loaded first. This could
173 cause very unhelpful errors when it tried to throw an error
174 before Moose was loaded. (Dave Rolsky)
176 * Moose::Util::TypeConstraints
177 - You could declare a name with subtype such as "Foo!Bar" that
178 would be allowed, but if you used it in a parameterized type
179 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
180 vetting on names created via the sugar functions, so that they
181 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
183 0.65 Thu, January 22, 2008
184 * Moose and Moose::Meta::Method::Overridden
185 - If an overridden method called super(), and then the
186 superclass's method (not overridden) _also_ called super(),
187 Moose went into an endless recursion loop. Test provided by
188 Chris Prather. (Dave Rolsky)
190 * Moose::Meta::TypeConstraint
191 - All methods are now documented. (gphat)
193 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
194 - Fixed some bogus failures that occurred because we tried to
195 validate filesystem paths in a very ad-hoc and
196 not-quite-correct way. (Dave Rolsky)
198 * Moose::Util::TypeConstraints
199 - Added maybe_type to exports. See docs for details. (rjbs)
202 - Added Moose::Util::TypeConstraints to the SEE ALSO
206 - Methods created via an attribute can now fulfill a "requires"
207 declaration for a role. (nothingmuch)
209 * Moose::Meta::Method::*
210 - Stack traces from inlined code will now report its line and
211 file as being in your class, as opposed to in Moose
214 0.64 Wed, December 31, 2008
215 * Moose::Meta::Method::Accessor
216 - Always inline predicate and clearer methods (Sartak)
218 * Moose::Meta::Attribute
219 - Support for parameterized traits (Sartak)
220 - verify_against_type_constraint method to avoid duplication
221 and enhance extensibility (Sartak)
224 - Tests (but no support yet) for parameterized traits (Sartak)
227 - Require Class::MOP 0.75+, which has the side effect of making
228 sure we work on Win32. (Dave Rolsky)
230 0.63 Mon, December 8, 2008
232 - Some small grammar tweaks and bug fixes in non-Moose example
235 0.62_02 Fri, December 5, 2008
236 * Moose::Meta::Role::Application::ToClass
237 - When a class does not provide all of a role's required
238 methods, the error thrown now mentions all of the missing
239 methods, as opposed to just the first one found. Requested by
240 Curtis Poe (RT #41119). (Dave Rolsky)
242 * Moose::Meta::Method::Constructor
243 - Moose will no longer inline a constructor for your class
244 unless it inherits its constructor from Moose::Object, and
245 will warn when it doesn't inline. If you want to force
246 inlining anyway, pass "replace_constructor => 1" to
247 make_immutable. Addresses RT #40968, reported by Jon
248 Swartz. (Dave Rolsky)
249 - The quoting of default values could be broken if the default
250 contained a single quote ('). Now we use quotemeta to escape
251 anything potentially dangerous in the defaults. (Dave Rolsky)
253 0.62_01 Wed, December 3, 2008
255 - use the method->execute API for BUILDALL
256 and DEMOLISHALL (Sartak)
258 * Moose::Util::TypeConstraints
259 - We now make all the type constraint meta classes immutable
260 before creating the default types provided by Moose. This
261 should make loading Moose a little faster. (Dave Rolsky)
263 0.62 Wed November 26, 2008
264 * Moose::Meta::Role::Application::ToClass
265 Moose::Meta::Role::Application::ToRole
266 - fixed issues where excluding and aliasing the
267 same methods for a single role did not work
268 right (worked just fine with multiple
270 - added test for this (stevan)
272 * Moose::Meta::Role::Application::RoleSummation
273 - fixed the error message when trying to compose
274 a role with a role it excludes (Sartak)
277 - Catch another case where recursion caused the value
278 of $CALLER to be stamped on (t0m)
279 - added test for this (t0m)
282 - Remove the make_immutable keyword, which has been
283 deprecated since April. It breaks metaclasses that
284 use Moose without no Moose (Sartak)
286 * Moose::Meta::Attribute
287 - Removing an attribute from a class now also removes delegation
288 (handles) methods installed for that attribute (t0m)
289 - added test for this (t0m)
291 * Moose::Meta::Method::Constructor
292 - An attribute with a default that looked like a number (but was
293 really a string) would accidentally be treated as a number
294 when the constructor was made immutable (perigrin)
295 - added test for this (perigrin)
298 - create method for constructing a role
300 - added test for this (Sartak)
301 - anonymous roles! (Sartak)
302 - added test for this (Sartak)
305 - more consistent error messages (Sartak)
307 * Moose::Cookbook::Roles::Recipe1
308 - attempt to explain why a role that just requires
309 methods is useful (Sartak)
311 0.61 Fri November 7, 2008
312 * Moose::Meta::Attribute
313 - When passing a role to handles, it will be loaded if necessary
317 - Method objects returned by get_method (and other methods)
318 Could end up being returned without an associated_metaclass
319 attribute. Removing get_method_map, which is provided by
320 Class::MOP::Class, fixed this. The Moose version did nothing
321 different from its parent except introduce a bug. (Dave Rolsky)
322 - added tests for this (jdv79)
325 - Added a $VERSION to all .pm files which didn't have one. Fixes
326 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
328 * Moose::Cookbook::Basics::Recipe4
329 * Moose::Cookbook::Basics::Recipe6
330 - These files had spaces on the first line of the SYNOPSIS, as
331 opposed to a totally empty line. According to RT #40432, this
332 confuses POD parsers. (Dave Rolsky)
334 0.60 Fri October 24, 2008
336 - Passing "-traits" when loading Moose caused the Moose.pm
337 exports to be broken. Reported by t0m. (Dave Rolsky)
338 - Tests for this bug. (t0m)
341 - Change resolve_metaclass alias to use the new
342 load_first_existing_class function. This makes it a lot
343 simpler, and also around 5 times faster. (t0m)
344 - Add caching to resolve_metaclass_alias, which gives an order
345 of magnitude speedup to things which repeatedly call the
346 Moose::Meta::Attribute->does method, notably MooseX::Storage
349 * Moose::Util::TypeConstraint
350 - Put back the changes for parameterized constraints that
351 shouldn't have been removed in 0.59. We still cannot parse
352 them, but MooseX modules can create them in some other
353 way. See the 0.58 changes for more details. (jnapiorkowski)
354 - Changed the way subtypes are created so that the job is
355 delegated to a type constraint parent. This clears up some
356 hardcoded checking and should allow correct subtypes of
357 Moose::Meta::Type::Constraint. Don't rely on this new API too
358 much (create_child_type) because it may go away in the
359 future. (jnapiorkowski)
361 * Moose::Meta::TypeConstraint::Union
362 - Type constraint names are sorted as strings, not numbers.
365 * Moose::Meta::TypeConstraint::Parameterizable
366 - New parameterize method. This can be used as a factory method
367 to make a new type constraint with a given parameterized
368 type. (jnapiorkowski)
369 - added tests (jnapiorkowski)
371 0.59 Tue October 14, 2008
373 - Add abridged documentation for builder/default/initializer/
374 predicate, and link to more details sections in
375 Class::MOP::Attribute. (t0m)
377 * Moose::Util::TypeConstraints
378 - removed prototypes from all but the &-based stuff (mst)
380 * Moose::Util::TypeConstraints
381 - Creating a anonymous subtype with both a constraint and a
382 message failed with a very unhelpful error, but should just
383 work. Reported by t0m. (Dave Rolsky)
386 - Some tests that used Test::Warn if it was available failed
387 with older versions of Test::Warn. Reported by Fayland. (Dave
389 - Test firing behavior of triggers in relation to builder/default/
391 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
392 kinds of supported type. (t0m)
395 - In create(), do not pass "roles" option to the superclass
396 - added related test that creates an anon metaclass with
399 * Moose::Meta::TypeConstraint::Class
400 * Moose::Meta::TypeConstraint::Role
401 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
402 other types (as per change in 0.55_02). (t0m)
404 * Moose::Meta::TypeConstraint::Registry
405 - Fix warning when dealing with unknown type names (t0m)
407 * Moose::Util::TypeConstraints
408 - Reverted changes from 0.58 related to handle parameterized
409 types. This caused random failures on BSD and Win32 systems,
410 apparently related to the regex engine. This means that Moose
411 can no longer parse structured type constraints like
412 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
413 supported in a slightly different way via MooseX::Types some
414 time in the future. (Dave Rolsky)
416 0.58 Sat September 20, 2008
417 !! This release has an incompatible change regarding !!
418 !! how roles add methods to a class !!
420 * Roles and role application
421 ! Roles now add methods by calling add_method, not
422 alias_method. They make sure to always provide a method
423 object, which will be cloned internally. This means that it is
424 now possible to track the source of a method provided by a
425 role, and even follow its history through intermediate roles.
427 This means that methods added by a role now show up when
428 looking at a class's method list/map. (Dave Rolsky)
431 - From this release on, we'll try to maintain a list of
432 conflicting modules, and warn you if you have one
433 installed. For example, this release conflicts with ...
434 - MooseX::Singleton <= 0.11
435 - MooseX::Params::Validate <= 0.05
438 In general, we try to not break backwards compatibility for
439 most Moose users, but MooseX modules and other code which
440 extends Moose's metaclasses is often affected by very small
441 changes in the Moose internals.
443 * Moose::Meta::Method::Delegation
444 * Moose::Meta::Attribute
445 - Delegation methods now have their own method class. (Dave
448 * Moose::Meta::TypeConstraint::Parameterizable
449 - Added a new method 'parameterize' which is basically a factory
450 for the containing constraint. This makes it easier to create
451 new types of parameterized constraints. (jnapiorkowski)
453 * Moose::Meta::TypeConstraint::Union
454 - Changed the way Union types canonicalize their names to follow
455 the normalized TC naming rules, which means we strip all
456 whitespace. (jnapiorkowski)
458 * Moose::Util::TypeConstraints
459 - Parameter and Union args are now sorted, this makes Int|Str
460 the same constraint as Str|Int. (jnapiorkowski)
461 - Changes to the way Union types are parsed to more correctly
462 stringify their names. (jnapiorkowski)
463 - When creating a parameterized type, we now use the new
464 parameterize method. (jnapiorkowski)
465 - Incoming type constraint strings are now normalized to remove
466 all whitespace differences. (jnapiorkowski)
467 - Changed the way we parse type constraint strings so that we now
468 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
469 constraints. This lays the foundation for more flexible type
470 constraint implementations.
472 * Tests and docs for all the above. (jnapiorkowski)
476 - Moose::Exporter will no longer remove a subroutine that the
477 exporting package re-exports. Moose re-exports the
478 Carp::confess function, among others. The reasoning is that we
479 cannot know whether you have also explicitly imported those
480 functions for your own use, so we err on the safe side and
481 always keep them. (Dave Rolsky)
482 - added tests for this (rafl)
485 - Changes to how we fix metaclass compatibility that are much
486 too complicated to go into. The summary is that Moose is much
487 less likely to complain about metaclass incompatibility
488 now. In particular, if two metaclasses differ because
489 Moose::Util::MetaRole was used on the two corresponding
490 classes, then the difference in roles is reconciled for the
491 subclass's metaclass. (Dave Rolsky)
492 - Squashed an warning in _process_attribute (thepler)
495 - throw exceptions (sooner) for invalid attribute names (thepler)
496 - added tests for this (thepler)
498 * Moose::Util::MetaRole
499 - If you explicitly set a constructor or destructor class for a
500 metaclass object, and then applied roles to the metaclass,
501 that explicitly set class would be lost and replaced with the
505 * Moose::Meta::Attribute
506 * Moose::Meta::Method
509 * Moose::Error::Default
510 * Moose::Error::Croak
511 * Moose::Error::Confess
512 - All instances of confess() changed to use overridable
513 C<throw_error> method. This method ultimately calls a class
514 constructor, and you can change the class being called. In
515 addition, errors now pass more information than just a string.
516 The default C<error_class> behaves like C<Carp::confess>, so
517 the behavior is not visibly different for end users.
519 0.57 Wed September 3, 2008
521 - A new bit of doc intended to introduce folks familiar with
522 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
525 - Shows examples of two classes, each done first with and then
526 without Moose. This makes a nice parallel to
527 Moose::Intro. (Dave Rolsky)
529 * Moose::Util::TypeConstraints
530 - Fixed a bug in find_or_parse_type_constraint so that it
531 accepts a Moose::Meta::TypeConstraint object as the parent
532 type, not just a name (jnapiorkowski)
533 - added tests (jnapiorkowski)
536 - If Sub::Name was not present, unimporting failed to actually
537 remove some sugar subs, causing test failures (Dave Rolsky)
539 0.56 Mon September 1, 2008
540 For those not following the series of dev releases, there are
541 several major changes in this release of Moose.
542 ! Moose::init_meta should now be called as a method. See the
545 - Major performance improvements by nothingmuch.
547 - New modules for extension writers, Moose::Exporter and
548 Moose::Util::MetaRole by Dave Rolsky.
550 - Lots of doc improvements and additions, especially in the
555 * Removed all references to the experimental-but-no-longer-needed
556 Moose::Meta::Role::Application::ToMetaclassInstance.
558 * Require Class::MOP 0.65.
560 0.55_04 Sat August 30, 2008
561 * Moose::Util::MetaRole
562 * Moose::Cookbook::Extending::Recipe2
563 - This simplifies the application of roles to any meta class, as
564 well as the base object class. Reimplemented metaclass traits
565 using this module. (Dave Rolsky)
567 * Moose::Cookbook::Extending::Recipe1
568 - This a new recipe, an overview of various ways to write Moose
569 extensions (Dave Rolsky)
571 * Moose::Cookbook::Extending::Recipe3
572 * Moose::Cookbook::Extending::Recipe4
573 - These used to be Extending::Recipe1 and Extending::Recipe2,
576 0.55_03 Fri August 29, 2008
577 * No changes from 0.55_02 except increasing the Class::MOP
578 dependency to 0.64_07.
580 0.55_02 Fri August 29, 2008
581 * Makefile.PL and Moose.pm
582 - explicitly require Perl 5.8.0+ (Dave Rolsky)
584 * Moose::Util::TypeConstraints
585 - Fix warnings from find_type_constraint if the type is not
588 * Moose::Meta::TypeConstraint
589 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
590 return false if the type you specify cannot be found in the
591 type registry, rather than throwing an unhelpful and
592 coincidental exception. (t0m).
593 - added docs & test for this (t0m)
595 * Moose::Meta::TypeConstraint::Registry
596 - add_type_constraint now throws an exception if a parameter is
598 - added docs & test for this (t0m)
600 * Moose::Cookbook::FAQ
601 - Added a faq entry on the difference between "role" and "trait"
605 - Fixed a bug that caused role composition to not see a required
606 method when that method was provided by another role being
607 composed at the same time. (Dave Rolsky)
608 - test and bug finding (tokuhirom)
610 0.55_01 Wed August 20, 2008
612 !! Calling Moose::init_meta as a function is now !!
613 !! deprecated. Please see the Moose.pm docs for details. !!
615 * Moose::Meta::Method::Constructor
616 - Fix inlined constructor so that values produced by default
617 or builder methods are coerced as required. (t0m)
618 - added test for this (t0m)
620 * Moose::Meta::Attribute
621 - A lazy attribute with a default or builder did not attempt to
622 coerce the default value. The immutable code _did_
624 - added test for this (t0m)
627 - This is a new helper module for writing "Moose-alike"
628 modules. This should make the lives of MooseX module authors
629 much easier. (Dave Rolsky)
632 * Moose::Cookbook::Meta::Recipe5
633 - Implemented metaclass traits (and wrote a recipe for it):
635 use Moose -traits => 'Foo'
637 This should make writing small Moose extensions a little
640 * Moose::Cookbook::Basics::Recipe1
641 - Removed any examples of direct hashref access, and applied an
642 editorial axe to reduce verbosity. (Dave Rolsky)
644 * Moose::Cookbook::Basics::Recipe1
645 - Also applied an editorial axe here. (Dave Rolsky)
648 * Moose::Cookbook::Extending::Recipe1
649 * Moose::Cookbook::Extending::Recipe2
650 - Rewrote extending and embedding moose documentation and
651 recipes to use Moose::Exporter (Dave Rolsky)
655 - These two modules now warn when you load them from the main
656 package "main" package, because we will not export sugar to
657 main. Previously it just did nothing. (Dave Rolsky)
660 - Now provide an init_meta method just like Moose.pm, and you
661 can call this to provide an alternate role metaclass. (Dave
662 Rolsky and nothingmuch)
663 - get_method_map now respects the package cache flag (nothingmuch)
666 - Two new methods - add_method and wrap_method_body
670 - Optimizations including allowing constructors to accept hash
671 refs, making many more classes immutable, and making
672 constructors immutable. (nothingmuch)
674 0.55 Sun August 3, 2008
675 * Moose::Meta::Attribute
676 - breaking down the way 'handles' methods are
677 created so that the process can be more easily
678 overridden by subclasses (stevan)
680 * Moose::Meta::TypeConstraint
681 - fixing what is passed into a ->message with
682 the type constraints (RT #37569)
683 - added tests for this (Charles Alderman)
685 * Moose::Util::TypeConstraints
686 - fix coerce to accept anon types like subtype can (mst)
689 - reorganized the recipes into sections - Basics, Roles, Meta,
690 Extending - and wrote abstracts for each section (Dave Rolsky)
692 * Moose::Cookbook::Basics::Recipe10
693 - A new recipe that demonstrates operator overloading
694 in combination with Moose. (bluefeet)
696 * Moose::Cookbook::Meta::Recipe1
697 - an introduction to what meta is and why you'd want to make
698 your own metaclass extensions (Dave Rolsky)
700 * Moose::Cookbook::Meta::Recipe4
701 - a very simple metaclass example (Dave Rolsky)
703 * Moose::Cookbook::Extending::Recipe1
704 - how to write a Moose-alike module to use your own object base
707 * Moose::Cookbook::Extending::Recipe2
708 - how to write modules with an API just like C<Moose.pm> (Dave
712 - Tons of fixes, both syntactical and grammatical (Dave
713 Rolsky, Paul Fenwick)
715 0.54 Thurs. July 3, 2008
716 ... this is not my day today ...
718 * Moose::Meta::Attribute
719 - fixed legal_options_for_inheritance such that
720 clone_and_inherit options still works for
721 Class::MOP::Attribute objects and therefore
722 does not break MooseX::AttributeHelpers
725 0.53 Thurs. July 3, 2008
726 * Whoops, I guess I should run 'make manifest' before
727 actually releasing the module. No actual changes
728 in this release, except the fact that it includes
729 the changes that I didn't include in the last
732 0.52 Thurs. July 3, 2008
734 - added "FEATURE REQUESTS" section to the Moose docs
735 to properly direct people (stevan) (RT #34333)
736 - making 'extends' croak if it is passed a Role since
737 this is not ever something you want to do
738 (fixed by stevan, found by obra)
739 - added tests for this (stevan)
742 - adding support for DOES (as in UNIVERSAL::DOES)
744 - added test for this
746 * Moose::Meta::Attribute
747 - added legal_options_for_inheritance (wreis)
748 - added tests for this (wreis)
750 * Moose::Cookbook::Snacks::*
751 - removed some of the unfinished snacks that should
752 not have been released yet. Added some more examples
753 to the 'Keywords' snack. (stevan)
755 * Moose::Cookbook::Style
756 - added general Moose "style guide" of sorts to the
757 cookbook (nothingmuch) (RT #34335)
760 - added more BUILDARGS tests (stevan)
762 0.51 Thurs. Jun 26, 2008
764 - add unimport so "no Moose::Role" actually does
767 * Moose::Meta::Role::Application::ToRole
768 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
769 order to provide its own implementation, that method still got
770 added to the list of required methods for consumers of
771 RoleB. Now an aliased method is only added to the list of
772 required methods if the role doing the aliasing does not
773 provide its own implementation. See Recipe 11 for an example
774 of all this. (Dave Rolsky)
775 - added tests for this
777 * Moose::Meta::Method::Constructor
778 - when a single argument that wasn't a hashref was provided to
779 an immutabilized constructor, the error message was very
780 unhelpful, as opposed to the non-immutable error. Reported by
782 - added test for this (Dave Rolsky)
784 * Moose::Meta::Attribute
785 - added support for meta_attr->does("ShortAlias") (sartak)
786 - added tests for this (sartak)
787 - moved the bulk of the `handles` handling to the new
788 install_delegation method (Stevan)
791 - Added BUILDARGS, a new step in new()
793 * Moose::Meta::Role::Application::RoleSummation
794 - fix typos no one ever sees (sartak)
796 * Moose::Util::TypeConstraints
797 * Moose::Meta::TypeConstraint
798 * Moose::Meta::TypeCoercion
799 - Attempt to work around the ??{ } vs. threads issue
801 - Some null_constraint optimizations
803 0.50 Thurs. Jun 11, 2008
804 - Fixed a version number issue by bumping all modules
807 0.49 Thurs. Jun 11, 2008
808 !! This version now approx. 20-25% !!
809 !! faster with new Class::MOP 0.59 !!
811 * Moose::Meta::Attribute
812 - fixed how the is => (ro|rw) works with
813 custom defined reader, writer and accessor
815 - added docs for this (TODO).
816 - added tests for this (Thanks to Penfold)
817 - added the custom attribute alias for regular
818 Moose attributes which is "Moose"
819 - fix builder and default both being used
824 Moose::Meta::Attribute
826 Moose::Meta::Role::Composite
827 Moose::Util::TypeConstraints
828 - switched usage of reftype to ref because
832 - changing add_package_symbol to use the new
836 - fixed how DEMOLISHALL is called so that it
837 can be overrided in subclasses (thanks to Sartak)
838 - added test for this (thanks to Sartak)
840 * Moose::Util::TypeConstraints
841 - move the ClassName type check code to
842 Class::MOP::is_class_loaded (thanks to Sartak)
844 * Moose::Cookbook::Recipe11
845 - add tests for this (thanks to tokuhirom)
847 0.48 Thurs. May 29, 2008
848 (early morning release engineering)--
850 - fixing the version in Moose::Meta::Method::Destructor
851 which was causing the indexer to choke
853 0.47 Thurs. May 29, 2008
854 (late night release engineering)--
856 - fixing the version is META.yml, no functional
857 changes in this release
859 0.46 Wed. May 28, 2008
860 !! This version now approx. 20-25% !!
861 !! faster with new Class::MOP 0.57 !!
864 - some optimizations of the &initialize method
865 since it is called so often by &meta
869 - now use the get_all_package_symbols from the
870 updated Class::MOP, test suite is now 10 seconds
873 * Moose::Meta::Method::Destructor
874 - is_needed can now also be called as a class
875 method for immutablization to check if the
876 destructor object even needs to be created
879 * Moose::Meta::Method::Destructor
880 Moose::Meta::Method::Constructor
881 - added more descriptive error message to help
882 keep people from wasting time tracking an error
883 that is easily fixed by upgrading.
885 0.45 Saturday, May 24, 2008
887 - Because of work in Class::MOP 0.57, all
888 XS based functionality is now optional
889 and a Pure Perl version is supplied
890 - the CLASS_MOP_NO_XS environment variable
891 can now be used to force non-XS versions
893 - several of the packages have been tweaked
894 to take care of this, mostly we added
895 support for the package_name and name
896 variables in all the Method metaclasses
897 - before/around/after method modifiers now
898 support regexp matching of names
899 (thanks to Takatoshi Kitano)
900 - tests added for this
901 - NOTE: this only works for classes, it
902 is currently not supported in roles,
903 but, ... patches welcome
904 - All usage of Carp::confess have been replaced
905 by Carp::croak in the "keyword" functions since
906 the stack trace is usually not helpful
909 - All usage of Carp::confess have been replaced
910 by Carp::croak in the "keyword" functions since
911 the stack trace is usually not helpful
912 - The 'has' keyword for roles now accepts the
913 same array ref form that Moose.pm does
914 (has [qw/foo bar/] => (is => 'rw', ...))
915 - added test for this
917 * Moose::Meta::Attribute
918 - trigger on a ro-attribute is no longer an
919 error, as it's useful to trigger off of the
923 - added same 'add_package_symbol' fix as in
927 - does_role now handles non-Moose classes
929 - added tests for this
930 - added the 'add_method_modifier' function
931 (thanks to Takatoshi Kitano)
933 * Moose::Util::TypeConstraints
934 - subtypes of parameterizable types now are
935 themselves parameterizable types
937 * Moose::Meta::Method::Constructor
938 - fixed bug where trigger was not being
939 called by the inlined immutable
941 - added test for this (thanks to Caelum)
943 * Moose::Meta::Role::Application::ToInstance
944 - now uses the metaclass of the instance
945 (if possible) to create the anon-class
946 (thanks Jonathan Rockway)
948 * Moose::Cookbook::Recipe22
949 - added the meta-attribute trait recipe
953 - fixed hash-ordering test bug that was
954 causing occasional cpantester failures
955 - renamed the t/000_recipe/*.t tests to be
956 more descriptive (thanks to Sartak)
958 0.44 Sat. May 10, 2008
960 - made make_immutable warning cluck to
961 show where the error is (thanks mst)
964 - BUILDALL and DEMOLISHALL now call
965 ->body when looping through the
966 methods, to avoid the overloaded
968 - fixed issue where DEMOLISHALL was
969 eating the $@ values, and so not
970 working correctly, it still kind of
971 eats them, but so does vanilla perl
972 - added tests for this
974 * Moose::Cookbook::Recipe7
975 - added new recipe for immutable
976 functionality (thanks Dave Rolsky)
978 * Moose::Cookbook::Recipe9
979 - added new recipe for builder and
980 lazy_build (thanks Dave Rolsky)
982 * Moose::Cookbook::Recipe11
983 - added new recipe for method aliasing
984 and exclusion with Roles (thanks Dave Rolsky)
987 - fixed Win32 test failure (thanks spicyjack)
989 ~ removed Build.PL and Module::Build compat
990 since Module::Install has done that.
992 0.43 Wed. April, 30, 2008
994 drink more coffee before
995 doing release engineering
997 - whoops, forgot to do the smolder tests,
998 and we broke some of the custom meta-attr
999 modules. This fixes that.
1001 0.42 Mon. April 28, 2008
1002 - some bad tests slipped by, nothing else
1003 changed in this release (cpantesters++)
1005 - upped the Class::MOP dependency to 0.55
1006 since we have tests which need the C3
1009 0.41 Mon. April 28, 2008
1010 ~~ numerous documentation updates ~~
1012 - Changed all usage of die to Carp::croak for better
1013 error reporting (initial patch by Tod Hagan)
1015 ** IMPORTANT NOTE **
1016 - the make_immutable keyword is now deprecated, don't
1017 use it in any new code and please fix your old code
1018 as well. There will be 2 releases, and then it will
1024 - refactored the way inner and super work to avoid
1025 any method/@ISA cache penalty (nothingmuch)
1027 * Moose::Meta::Class
1028 - fixing &new_object to make sure trigger gets the
1029 coerced value (spotted by Charles Alderman on the
1031 - added test for this
1033 * Moose::Meta::Method::Constructor
1034 - immutable classes which had non-lazy attributes were calling
1035 the default generating sub twice in the constructor. (bug
1036 found by Jesse Luehrs, fixed by Dave Rolsky)
1037 - added tests for this (Dave Rolsky)
1038 - fix typo in initialize_body method (nothingmuch)
1040 * Moose::Meta::Method::Destructor
1041 - fix typo in initialize_body method (nothingmuch)
1043 * Moose::Meta::Method::Overriden
1044 Moose::Meta::Method::Augmented
1045 - moved the logic for these into their own
1046 classes (nothingmuch)
1048 * Moose::Meta::Attribute
1049 - inherited attributes may now be extended without
1050 restriction on the type ('isa', 'does') (Sartak)
1051 - added tests for this (Sartak)
1052 - when an attribute property is malformed (such as lazy without
1053 a default), give the name of the attribute in the error
1055 - added the &applied_traits and &has_applied_traits methods
1056 to allow introspection of traits
1057 - added tests for this
1058 - moved 'trait' and 'metaclass' argument handling to here from
1060 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1061 '+foo' syntax) (nothingmuch)
1062 - added tests for this (t0m)
1065 - localize $@ inside DEMOLISHALL to avoid it
1066 eating $@ (found by Ernesto)
1067 - added test for this (thanks to Ernesto)
1069 * Moose::Util::TypeConstraints
1070 - &find_type_constraint now DWIMs when given an
1071 type constraint object or name (nothingmuch)
1072 - &find_or_create_type_constraint superseded with a number of more
1074 - find_or_create_{isa,does}_type_constraint
1075 - find_or_parse_type_constraint
1077 * Moose::Meta::TypeConstraint
1078 Moose::Meta::TypeConstraint::Class
1079 Moose::Meta::TypeConstraint::Role
1080 Moose::Meta::TypeConstraint::Enum
1081 Moose::Meta::TypeConstraint::Union
1082 Moose::Meta::TypeConstraint::Parameterized
1083 - added the &equals method for comparing two type
1084 constraints (nothingmuch)
1085 - added tests for this (nothingmuch)
1087 * Moose::Meta::TypeConstraint
1088 - add the &parents method, which is just an alias to &parent.
1089 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1091 * Moose::Meta::TypeConstraint::Class
1092 - added the class attribute for introspection purposes
1094 - added tests for this
1096 * Moose::Meta::TypeConstraint::Enum
1097 Moose::Meta::TypeConstraint::Role
1098 - broke these out into their own classes (nothingmuch)
1100 * Moose::Cookbook::Recipe*
1101 - fixed references to test file locations in the POD
1102 and updated up some text for new Moose features
1106 - Added &resolve_metaclass_alias, a helper function for finding an actual
1107 class for a short name (e.g. in the traits list)
1109 0.40 Fri. March 14, 2008
1110 - I hate Pod::Coverage
1112 0.39 Fri. March 14, 2008
1114 - documenting the use of '+name' with attributes
1115 that come from recently composed roles. It makes
1116 sense, people are using it, and so why not just
1117 officially support it.
1118 - fixing the 'extends' keyword so that it will not
1119 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1122 - added the perl -Moose=+Class::Name feature to allow
1123 monkeypatching of classes in one liners
1126 - fixing the 'apply_all_roles' keyword so that it will not
1127 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1129 * Moose::Meta::Class
1130 - added ->create method which now supports roles (thanks to jrockway)
1131 - added tests for this
1132 - added ->create_anon_class which now supports roles and caching of
1133 the results (thanks to jrockway)
1134 - added tests for this
1135 - made ->does_role a little more forgiving when it is
1136 checking a Class::MOP era metaclasses.
1138 * Moose::Meta::Role::Application::ToInstance
1139 - it is now possible to pass extra params to be used when
1140 a role is applied to an the instance (rebless_params)
1141 - added tests for this
1143 * Moose::Util::TypeConstraints
1144 - class_type now accepts an optional second argument for a
1145 custom message. POD anotated accordingly (groditi)
1146 - added tests for this
1147 - it is now possible to make anon-enums by passing 'enum' an
1148 ARRAY ref instead of the $name => @values. Everything else
1150 - added tests for this
1153 - making test for using '+name' on attributes consumed
1154 from a role, it works and makes sense too.
1156 * Moose::Meta::Attribute
1157 - fix handles so that it doesn't return nothing
1158 when the method cannot be found, not sure why
1159 it ever did this originally, this means we now
1160 have slightly better support for AUTOLOADed
1162 - added more delegation tests
1163 - adding ->does method to this so as to better
1164 support traits and their introspection.
1165 - added tests for this
1168 - localizing the Data::Dumper configurations so
1169 that it does not pollute others (RT #33509)
1170 - made ->does a little more forgiving when it is
1171 passed Class::MOP era metaclasses.
1173 0.38 Fri. Feb. 15, 2008
1174 * Moose::Meta::Attribute
1175 - fixed initializer to correctly do
1176 type checking and coercion in the
1178 - added tests for this
1181 - fixed some finicky tests (thanks to konobi)
1183 0.37 Thurs. Feb. 14, 2008
1185 - fixed some details in Moose::init_meta
1186 and its superclass handling (thanks thepler)
1187 - added tests for this (thanks thepler)
1188 - 'has' now dies if you don't pass in name
1190 - added the 'make_immutable' keyword as a shortcut
1193 * Moose::Meta::Class
1194 Moose::Meta::Method::Constructor
1195 Moose::Meta::Attribute
1196 - making (init_arg => undef) work here too
1197 (thanks to nothingmuch)
1199 * Moose::Meta::Attribute
1200 Moose::Meta::Method::Constructor
1201 Moose::Meta::Method::Accessor
1202 - make lazy attributes respect attr initializers (rjbs)
1203 - added tests for this
1205 * Moose::Util::TypeConstraints
1206 Moose::Util::TypeConstraints::OptimizedConstraints
1207 Moose::Meta::TypeConstraints
1208 Moose::Meta::Attribute
1209 Moose::Meta::Method::Constructor
1210 Moose::Meta::Method::Accessor
1211 - making type errors use the
1212 assigned message (thanks to Sartak)
1213 - added tests for this
1215 * Moose::Meta::Method::Destructor
1216 - making sure DESTROY gets inlined properly
1217 with successive DEMOLISH calls (thanks to manito)
1219 * Moose::Meta::Attribute
1220 Moose::Meta::Method::Accessor
1221 - fixed handling of undef with type constraints
1223 - added tests for this
1226 - added &get_all_init_args and &get_all_attribute_values
1227 (thanks to Sartak and nothingmuch)
1229 0.36 Sat. Jan. 26, 2008
1231 Moose::Meta::Attribute
1232 - role type tests now support when roles are
1233 applied to non-Moose classes (found by ash)
1234 - added tests for this (thanks to ash)
1235 - couple extra tests to boost code coverage
1237 * Moose::Meta::Method::Constructor
1238 - improved fix for handling Class::MOP attributes
1239 - added test for this
1241 * Moose::Meta::Class
1242 - handled the add_attribute($attribute_meta_object)
1244 - added test for this
1246 0.35 Tues. Jan. 22, 2008
1247 * Moose::Meta::Method::Constructor
1248 - fix to make sure even Class::MOP attributes
1249 are handled correctly (Thanks to Dave Rolsky)
1250 - added test for this (also Dave Rolsky)
1252 * Moose::Meta::Class
1253 - improved error message on _apply_all_roles,
1254 you should now use Moose::Util::apply_all_roles
1255 and you shouldnt have been using a _ prefixed
1256 method in the first place ;)
1258 0.34 Mon. Jan. 21, 2008
1259 ~~~ more misc. doc. fixes ~~~
1260 ~~ updated copyright dates ~~
1262 Moose is now a postmodern object system :)
1263 - (see the POD for details)
1265 * <<Role System Refactoring>>
1266 - this release contains a major reworking and
1267 cleanup of the role system
1268 - 100% backwards compat.
1269 - Role application now restructured into seperate
1270 classes based on type of applicants
1271 - Role summation (combining of more than one role)
1272 is much cleaner and anon-classes are no longer
1273 used in this process
1274 - new Composite role metaclass
1275 - runtime application of roles to instances
1276 is now more efficient and re-uses generated
1277 classes when applicable
1279 * <<New Role composition features>>
1280 - methods can now be excluded from a given role
1282 - methods can now be aliased to another name (and
1283 still retain the original as well)
1285 * Moose::Util::TypeConstraints::OptimizedConstraints
1286 - added this module (see above)
1288 * Moose::Meta::Class
1289 - fixed the &_process_attribute method to be called
1290 by &add_attribute, so that the API is now correct
1292 * Moose::Meta::Method::Accessor
1293 - fixed bug when passing a list of values to
1294 an accessor would get (incorrectly) ignored.
1295 Thanks to Sartak for finding this ;)
1296 - added tests for this (Sartak again)
1298 * Moose::Meta::Method::Accessor
1299 Moose::Meta::Method::Constructor
1300 Moose::Meta::Attribute
1301 Moose::Meta::TypeConstraint
1302 Moose::Meta::TypeCoercion
1303 - lots of cleanup of such things as:
1305 - type constraint handling
1306 - error handling/messages
1307 (thanks to nothingmuch)
1309 * Moose::Meta::TypeConstraint::Parameterizable
1310 - added this module to support the refactor
1311 in Moose::Meta::TypeConstraint::Parameterized
1313 * Moose::Meta::TypeConstraint::Parameterized
1314 - refactored how these types are handled so they
1315 are more generic and not confined to ArrayRef
1319 - shortened some file names for better VMS support (RT #32381)
1321 0.33 Fri. Dec. 14, 2007
1322 !! Moose now loads 2 x faster !!
1323 !! with new Class::MOP 0.49 !!
1325 ++ new oose.pm module to make command line
1326 Moose-ness easier (see POD docs for more)
1328 * Moose::Meta::Class
1330 - several tweaks to take advantage of the
1331 new method map caching in Class::MOP
1333 * Moose::Meta::TypeConstraint::Parameterized
1334 - allow subtypes of ArrayRef and HashRef to
1335 be used as a container (sartak)
1336 - added tests for this
1337 - basic support for coercion to ArrayRef and
1338 HashRef for containers (sartak)
1339 - added tests for this
1341 * Moose::Meta::TypeCoercion
1342 - coercions will now create subtypes as needed
1343 so you can now add coercions to parameterized
1344 types without having to explictly define them
1345 - added tests for this
1347 * Moose::Meta::Method::Accessor
1348 - allow subclasses to decide whether we need
1349 to copy the value into a new variable (sartak)
1351 0.32 Tues. Dec. 4, 2007
1352 * Moose::Util::TypeConstraints
1353 - fixing how subtype aliases of unions work
1354 they should inherit the parent's coercion
1355 - added tests for this
1356 - you can now define multiple coercions on
1357 a single type at different times instead of
1358 having to do it all in one place
1359 - added tests for this
1361 * Moose::Meta::TypeConstraint
1362 - there is now a default constraint of sub { 1 }
1363 instead of Moose::Util::TypeConstraints setting
1366 * Moose::Meta::TypeCoercion
1367 * Moose::Meta::TypeCoercion::Union
1368 - added the &has_coercion_for_type and
1369 &add_type_coercions methods to support the
1370 new features above (although you cannot add
1371 more type coercions for Union types)
1373 0.31 Mon. Nov. 26, 2007
1374 * Moose::Meta::Attribute
1375 - made the +attr syntax handle extending types with
1376 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1377 now works if the original foo is an ArrayRef.
1378 - added tests for this.
1379 - delegation now works even if the attribute does not
1380 have a reader method using the get_read_method_ref
1381 method from Class::MOP::Attribute.
1382 - added tests for this
1383 - added docs for this
1385 * Moose::Util::TypeConstraints
1386 - passing no "additional attribute info" to
1387 &find_or_create_type_constraint will no longer
1388 attempt to create an __ANON__ type for you,
1389 instead it will just return undef.
1390 - added docs for this
1392 0.30 Fri. Nov. 23, 2007
1393 * Moose::Meta::Method::Constructor
1394 -builder related bug in inlined constructor. (groditi)
1396 * Moose::Meta::Method::Accessor
1397 - genereate unnecessary calls to predicates and refactor
1398 code generation for runtime speed (groditi)
1400 * Moose::Util::TypeConstraints
1401 - fix ClassName constraint to introspect symbol table (mst)
1402 - added more tests for this (mst)
1403 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1404 with work correctly.
1405 - added tests for this
1408 - adding the link to Recipie 11 (written by Sartak)
1409 - adding test for SYNOPSIS code
1412 - New tests for builder bug. Upon instantiation, if an
1413 attribute had a builder, no value and was not lazy the
1414 builder default was not getting run, oops. (groditi)
1416 0.29 Tues. Nov. 13, 2007
1417 * Moose::Meta::Attribute
1418 - Fix error message on missing builder method (groditi)
1420 * Moose::Meta::Method::Accessor
1421 - Fix error message on missing builder method (groditi)
1424 - Add test to check for the correct error message when
1425 builder method is missing (groditi)
1427 0.28 Tues. Nov. 13, 2007
1428 - 0.27 packaged incorrectly (groditi)
1430 0.27 Tues. Nov. 13, 2007
1431 * Moose::Meta::Attribute
1432 - Added support for the new builder option (groditi)
1433 - Added support for lazy_build option (groditi)
1434 - Changed slot initialization for predicate changes (groditi)
1436 * Moose::Meta::Method::Accessor
1437 - Added support for lazy_build option (groditi)
1438 - Fix inline methods to work with corrected predicate
1441 * Moose::Meta::Method::Constructor
1442 - Added support for lazy_build option (groditi)
1445 - tests for builder and lazy_build (groditi)
1447 * fixing some misc. bits in the docs that
1448 got mentioned on CPAN Forum & perlmonks
1451 - fixed how required methods are handled
1452 when they encounter overriden or modified
1453 methods from a class (thanks to confound).
1454 - added tests for this
1456 * Moose::Util::TypeConstraint
1457 - fixed the type notation parser so that
1458 the | always creates a union and so is
1459 no longer a valid type char (thanks to
1460 konobi, mugwump and #moose for working
1462 - added more tests for this
1464 0.26 Thurs. Sept. 27, 2007
1467 * Parameterized Types
1468 We now support parameterized collection types, such as:
1469 ArrayRef[Int] # array or integers
1470 HashRef[Object] # a hash with object values
1471 They can also be nested:
1472 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1473 And work with the type unions as well:
1474 ArrayRef[Int | Str] # array of integers of strings
1476 * Better Framework Extendability
1477 Moose.pm is now "extendable" such that it is now much
1478 easier to extend the framework and add your own keywords
1479 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1480 section of the Moose.pm docs.
1483 In an effort to begin documenting some of the various
1484 details of Moose as well as some common idioms, we have
1485 created Moose::Cookbook::Snacks as a place to find
1486 small (easily digestable) nuggets of Moose code.
1489 ~ Several doc updates/cleanup thanks to castaway ~
1491 - converted build system to use Module::Install instead of
1492 Module::Build (thanks to jrockway)
1495 - added all the meta classes to the immutable list and
1496 set it to inline the accessors
1497 - fix import to allow Sub::Exporter like { into => }
1498 and { into_level => } (perigrin)
1499 - exposed and documented init_meta() to allow better
1500 embedding and extending of Moose (perigrin)
1503 - complete re-organization of the test suite
1504 - added some new tests as well
1505 - finally re-enabled the Moose::POOP test since
1506 the new version of DBM::Deep now works again
1509 * Moose::Meta::Class
1510 - fixed very odd and very nasty recursion bug with
1512 - added tests for this (eilara)
1514 * Moose::Meta::Attribute
1515 Moose::Meta::Method::Constructor
1516 Moose::Meta::Method::Accessor
1517 - fixed issue with overload::Overloaded getting called
1518 on non-blessed items. (RT #29269)
1519 - added tests for this
1521 * Moose::Meta::Method::Accessor
1522 - fixed issue with generated accessor code making
1523 assumptions about hash based classes (thanks to dexter)
1525 * Moose::Coookbook::Snacks
1526 - these are bits of documentation, not quite as big as
1527 Recipes but which have no clear place in the module docs.
1528 So they are Snacks! (horray for castaway++)
1530 * Moose::Cookbook::Recipe4
1531 - updated it to use the new ArrayRef[MyType] construct
1532 - updated the accompanying test as well
1534 +++ Major Refactor of the Type Constraint system +++
1535 +++ with new features added as well +++
1537 * Moose::Util::TypeConstraint
1538 - no longer uses package variable to keep track of
1539 the type constraints, now uses the an instance of
1540 Moose::Meta::TypeConstraint::Registry to do it
1541 - added more sophisticated type notation parsing
1543 - added tests for this
1545 * Moose::Meta::TypeConstraint
1546 - some minor adjustments to make subclassing easier
1547 - added the package_defined_in attribute so that we
1548 can track where the type constraints are created
1550 * Moose::Meta::TypeConstraint::Union
1551 - this is now been refactored to be a subclass of
1552 Moose::Meta::TypeConstraint
1554 * Moose::Meta::TypeCoercion::Union
1555 - this has been added to service the newly refactored
1556 Moose::Meta::TypeConstraint::Union and is itself
1557 a subclass of Moose::Meta::TypeCoercion
1559 * Moose::Meta::TypeConstraint::Parameterized
1560 - added this module (taken from MooseX::AttributeHelpers)
1561 to help construct nested collection types
1562 - added tests for this
1564 * Moose::Meta::TypeConstraint::Registry
1565 - added this class to keep track of type constraints
1567 0.25 Mon. Aug. 13, 2007
1569 - Documentation update to reference Moose::Util::TypeConstraints
1570 under 'isa' in 'has' for how to define a new type
1571 (thanks to shlomif).
1573 * Moose::Meta::Attribute
1574 - required attributes now will no longer accept undef
1575 from the constructor, even if there is a default and lazy
1576 - added tests for this
1577 - default subroutines must return a value which passes the
1579 - added tests for this
1581 * Moose::Meta::Attribute
1582 * Moose::Meta::Method::Constructor
1583 * Moose::Meta::Method::Accessor
1584 - type-constraint tests now handle overloaded objects correctly
1585 in the error message
1586 - added tests for this (thanks to EvanCarroll)
1588 * Moose::Meta::TypeConstraint::Union
1589 - added (has_)hand_optimized_constraint to this class so that
1590 it behaves as the regular Moose::Meta::TypeConstraint does.
1593 - large refactoring of this code
1594 - added several more tests
1595 - tests for subtle conflict resolition issues
1596 added, but not currently running
1599 * Moose::Cookbook::Recipe7
1600 - added new recipe for augment/inner functionality
1602 - added test for this
1605 - a formal definition of roles (still in progress)
1608 - utilities for easier working with Moose classes
1609 - added tests for these
1612 - This contains Moose specific test functions
1613 - added tests for these
1615 0.24 Tues. July 3, 2007
1616 ~ Some doc updates/cleanup ~
1618 * Moose::Meta::Attribute
1619 - added support for roles to be given as parameters
1620 to the 'handles' option.
1621 - added tests and docs for this
1622 - the has '+foo' attribute form now accepts changes to
1623 the lazy option, and the addition of a handles option
1624 (but not changing the handles option)
1625 - added tests and docs for this
1628 - required methods are now fetched using find_method_by_name
1629 so that required methods can come from superclasses
1630 - adjusted tests for this
1632 0.23 Mon. June 18, 2007
1633 * Moose::Meta::Method::Constructor
1634 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1635 * Moose::Meta::Class
1636 - Modify make_immutable to work with the new Class::MOP immutable
1637 mechanism + POD + very basic test (groditi)
1638 * Moose::Meta::Attribute
1639 - Fix handles to use goto() so that caller() comes out properly on
1640 the other side (perigrin)
1642 0.22 Thurs. May 31, 2007
1643 * Moose::Util::TypeConstraints
1644 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1645 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1646 prototypes for functions
1647 - added the ClassName type constraint, this checks for strings
1648 which will respond true to ->isa(UNIVERSAL).
1649 - added tests and docs for this
1650 - subtyping just in name now works correctly by making the
1651 default for where be { 1 }
1652 - added test for this
1654 * Moose::Meta::Method::Accessor
1655 - coerce and lazy now work together correctly, thanks to
1656 merlyn for finding this bug
1657 - tests added for this
1658 - fix reader presedence bug in Moose::Meta::Attribute + tests
1661 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1662 a HASH-ref and missed. This produces better error messages then
1663 having it die cause undef is not a HASH.
1664 - added tests for this
1666 0.21 Thursday, May 2nd, 2007
1668 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1669 - modified unimport to remove super and inner along with the rest
1670 - altered unimport tests to handle this
1673 - altered super export to populate SUPER_SLOT
1675 * Moose::Meta::Class
1676 - altered augment and override modifier application to use *_SLOT
1677 - modified tests for these to unimport one test class each to test
1680 - fixed issue where custom attribute metaclasses
1681 where not handled correctly in roles
1682 - added tests for this
1684 * Moose::Meta::Class
1685 - fixed issue where extending metaclasses with
1686 roles would blow up. Thanks to Aankhen`` for
1687 finding this insidious error, and it's solution.
1689 ~~ lots of spelling and grammer fixes in the docs,
1690 many many thanks to rlb3 and Aankhen for these :)
1692 0.20 Friday, April 6th, 2007
1693 >> I messed up the SKIP logic in one test
1694 so this release is just to fix that.
1697 - 'has' now also accepts an ARRAY ref
1698 to create multiple attrs (see docs)
1699 (thanks to konobi for this)
1700 - added tests and docs
1702 0.19 Thurs. April 5th, 2007
1703 ~~ More documentation updates ~~
1705 * Moose::Util::TypeConstraints
1706 - 'type' now supports messages as well
1707 thanks to phaylon for finding this
1708 - added tests for this
1709 - added &list_all_type_constraints and
1710 &list_all_builtin_type_constraints
1711 functions to facilitate introspection.
1713 * Moose::Meta::Attribute
1714 - fixed regexp 'handles' declarations
1715 to build the list of delegated methods
1716 correctly (and not override important
1717 things like &new) thanks to ashleyb
1719 - added tests and docs for this
1720 - added the 'documentation' attributes
1721 so that you can actually document your
1722 attributes and inspect them through the
1724 - added tests and docs for this
1726 * Moose::Meta::Class
1727 - when loading custom attribute metaclasses
1728 it will first look in for the class in the
1729 Moose::Meta::Attribute::Custom::$name, and
1730 then default to just loading $name.
1731 - added tests and docs for this
1733 * Moose::Meta::TypeConstraint
1734 - type constraints now stringify to their names.
1735 - added test for this
1738 - added tests to assure we work with Module::Refresh
1739 - added stricter test skip logic in the Moose POOP
1740 test, ask Rob Kinyon why.
1741 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1743 0.18 Sat. March 10, 2007
1744 ~~ Many, many documentation updates ~~
1747 - We now use Class::MOP::load_class to
1749 - added tests to show types and subtypes
1750 working with Declare::Constraints::Simple
1751 and Test::Deep as constraint engines.
1754 !! You must have Class::MOP 0.37_001 !!
1755 !! for this developer release to work !!
1757 This release was primarily adding the immutable
1758 feature to Moose. An immutable class is one which
1759 you promise not to alter. When you set the class
1760 as immutable it will perform various bits of
1761 memoization and inline certain part of the code
1762 (constructors, destructors and accessors). This
1763 minimizes (and in some cases totally eliminates)
1764 one of Moose's biggest performance hits. This
1765 feature is not on by default, and is 100% optional.
1766 It has several configurable bits as well, so you
1767 can pick and choose to your specific needs.
1769 The changes involved in this were fairly wide and
1770 highly specific, but 100% backwards compatible, so
1771 I am not going to enumerate them here. If you are
1772 truely interested in what was changed, please do
1775 0.17 Tues. Nov. 14, 2006
1776 * Moose::Meta::Method::Accessor
1777 - bugfix for read-only accessors which
1778 are have a type constraint and lazy.
1779 Thanks to chansen for finding it.
1781 0.16 Tues. Nov. 14, 2006
1783 There are some speed improvements in this release,
1784 but they are only the begining, so stay tuned.
1787 - BUILDALL and DEMOLISHALL no longer get
1788 called unless they actually need to be.
1789 This gave us a signifigant speed boost
1790 for the cases when there is no BUILD or
1791 DEMOLISH method present.
1793 * Moose::Util::TypeConstraints
1794 * Moose::Meta::TypeConstraint
1795 - added an 'optimize_as' option to the
1796 type constraint, which allows for a
1797 hand optimized version of the type
1798 constraint to be used when possible.
1799 - Any internally created type constraints
1800 now provide an optimized version as well.
1802 0.15 Sun. Nov. 5, 2006
1804 This version of Moose *must* have Class::MOP 0.36 in order
1805 to work correctly. A number of small internal tweaks have
1806 been made in order to be compatible with that release.
1808 * Moose::Util::TypeConstraints
1809 - added &unimport so that you can clean out
1810 your class namespace of these exported
1813 * Moose::Meta::Class
1814 - fixed minor issue which occasionally
1815 comes up during global destruction
1817 - moved Moose::Meta::Method::Overriden into
1821 - moved Moose::Meta::Role::Method into
1824 * Moose::Meta::Attribute
1825 - changed how we do type checks so that
1826 we reduce the overall cost, but still
1829 - moved accessor generation methods to
1830 Moose::Meta::Method::Accessor to
1831 conform to the API changes from
1834 * Moose::Meta::TypeConstraint
1835 - changed how constraints are compiled
1836 so that we do less recursion and more
1837 iteration. This makes the type check
1839 - moved Moose::Meta::TypeConstraint::Union
1842 * Moose::Meta::Method::Accessor
1843 - created this from methods formerly found in
1844 Moose::Meta::Attribute
1846 * Moose::Meta::Role::Method
1847 - moved this from Moose::Meta::Role
1849 * Moose::Meta::Method::Overriden
1850 - moved this from Moose::Meta::Class
1852 * Moose::Meta::TypeConstraint::Union
1853 - moved this from Moose::Meta::TypeConstraint
1855 0.14 Mon. Oct. 9, 2006
1857 * Moose::Meta::Attribute
1858 - fixed lazy attributes which were not getting
1859 checked with the type constraint (thanks ashley)
1860 - added tests for this
1861 - removed the over-enthusiastic DWIMery of the
1862 automatic ArrayRef and HashRef defaults, it
1863 broke predicates in an ugly way.
1864 - removed tests for this
1866 0.13 Sat. Sept. 30, 2006
1868 This version of Moose *must* have Class::MOP 0.35 in order
1869 to work correctly. A number of small internal tweaks have
1870 been made in order to be compatible with that release.
1873 - Removed the use of UNIVERSAL::require to be a better
1874 symbol table citizen and remove a dependency
1875 (thanks Adam Kennedy)
1877 **~~ removed experimental & undocumented feature ~~**
1878 - commented out the 'method' and 'self' keywords, see the
1879 comments for more info.
1882 - added a FAQ and WTF files to document frequently
1883 asked questions and common problems
1885 * Moose::Util::TypeConstraints
1886 - added GlobRef and FileHandle type constraint
1887 - added tests for this
1889 * Moose::Meta::Attribute
1890 - if your attribute 'isa' ArrayRef of HashRef, and you have
1891 not explicitly set a default, then make the default DWIM.
1892 This will also work for subtypes of ArrayRef and HashRef
1894 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1895 - new test added for this (thanks to ashley)
1898 - added basic support for runtime role composition
1899 but this is still *highly experimental*, so feedback
1900 is much appreciated :)
1901 - added tests for this
1903 * Moose::Meta::TypeConstraint
1904 - the type constraint now handles the coercion process
1905 through delegation, this is to support the coercion
1908 * Moose::Meta::TypeConstraint::Union
1909 - it is now possible for coercions to be performed
1911 - added tests for this (thanks to konobi)
1913 * Moose::Meta::TypeCoercion
1914 - properly capturing error when type constraint
1918 - Scalar::Util 1.18 is bad on Win32, so temporarily
1919 only require version 1.17 for Win32 and cygwin.
1920 (thanks Adam Kennedy)
1922 0.12 Sat. Sept. 1, 2006
1924 - Recipe5 (subtypes & coercion) has been written
1927 - fixed "bad meta" error message to be more descriptive
1928 - fixed &unimport to not remove the &inner and &super
1929 keywords because we need to localize them.
1930 - fixed number of spelling/grammer issues, thanks Theory :)
1932 **~~ experimental & undocumented feature ~~**
1933 - added the method and self keywords, they are basically
1934 just sugar, and they may not stay around.
1937 - added &dump method to easily Data::Dumper
1940 * Moose::Meta::TypeConstraint
1941 - added the &is_a_type_of method to check both the current
1942 and the subtype of a method (similar to &isa with classes)
1945 - this is now a subclass of Class::MOP::Module, and no longer
1946 creates the _role_meta ugliness of before.
1947 - fixed tests to reflect this change
1949 0.11 Wed. July 12, 2006
1951 - added an &unimport method to remove all the keywords
1952 that Moose will import, simply add 'no Moose' to the
1953 bottom of your class file.
1956 - fixed some test failures caused by a forgotten test
1959 0.10 Thurs. July 6, 2006
1961 - improved error message when loading modules so
1962 it is less confusing when you load a role.
1963 - added &calculate_all_roles method to
1964 Moose::Meta::Class and Moose::Meta::Role
1967 This module has been tested against Class::MOP 0.30
1968 but it does not yet utilize the optimizations
1969 it makes available. Stay tuned for that ;)
1971 0.09_03 Fri. June 23, 2006
1972 ++ DEVELOPER RELEASE ++
1974 - 'use strict' and 'use warnings' are no longer
1975 needed in Moose classes, Moose itself will
1976 turn them on for you.
1977 - added tests for this
1978 - moved code from exported subs to private methods
1979 in Moose::Meta::Class
1982 - as with Moose, strict and warnings are
1983 automatically turned on for you.
1984 - added tests for this
1987 - now handles an edge case for override errors
1988 - added tests for this
1989 - added some more edge case tests
1991 0.09_02 Tues. May 16, 2006
1992 ++ DEVELOPER RELEASE ++
1994 - added prototypes to the exported subs
1998 - added prototypes to the exported subs
2001 * Moose::Util::TypeConstraints
2002 - cleaned up prototypes for the subs
2005 0.09_01 Fri. May 12, 2006
2006 ++ DEVELOPER RELEASE ++
2007 - This release works in combination with
2008 Class::MOP 0.29_01, it is a developer
2009 release because it uses the a new
2010 instance sub-protocol and a fairly
2011 complete Role implementation. It has
2012 not yet been optimized, so it slower
2013 the the previous CPAN version. This
2014 release also lacks good updated docs,
2015 the official release will have updated docs.
2018 - refactored the keyword exports
2019 - 'with' now checks Role validaity and
2020 accepts more than one Role at a time
2021 - 'extends' makes metaclass adjustments as
2022 needed to ensure metaclass compatibility
2025 - refactored the keyword exports
2026 - 'with' now checks Role validaity and
2027 accepts more than one Role at a time
2029 * Moose::Util::TypeConstraints
2030 - added the 'enum' keyword for simple
2031 string enumerations which can be used as
2033 - see example of usage in t/202_example.t
2036 - more careful checking of params to new()
2039 - much work done on the role composition
2040 - many new tests for conflict detection
2041 and composition edge cases
2042 - not enough documentation, I suggest
2043 looking at the tests
2045 * Moose::Meta::Instance
2046 - added new Instance metaclass to support
2047 the new Class::MOP instance protocol
2049 * Moose::Meta::Class
2050 - some small changes to support the new
2052 - some small additions to support Roles
2054 * Moose::Meta::Attribute
2055 - some improvements to the accessor generation code
2057 - some small changes to support the new
2059 - (still somewhat) experimental delegation support
2060 with the 'handles' option
2061 - added several tests for this
2062 - no docs for this yet
2064 0.05 Thurs. April 27, 2006
2066 - keywords are now exported with Sub::Exporter
2067 thanks to chansen for this commit
2068 - has keyword now takes a 'metaclass' option
2069 to support custom attribute meta-classes
2070 on a per-attribute basis
2071 - added tests for this
2072 - the 'has' keyword not accepts inherited slot
2073 specifications (has '+foo'). This is still an
2074 experimental feature and probably not finished
2075 see t/038_attribute_inherited_slot_specs.t for
2076 more details, or ask about it on #moose
2077 - added tests for this
2080 - keywords are now exported with Sub::Exporter
2082 * Moose::Utils::TypeConstraints
2083 - reorganized the type constraint hierarchy, thanks
2084 to nothingmuch and chansen for his help and advice
2086 - added some tests for this
2087 - keywords are now exported with Sub::Exporter
2088 thanks to chansen for this commit
2090 * Moose::Meta::Class
2091 - due to changes in Class::MOP, we had to change
2092 construct_instance (for the better)
2094 * Moose::Meta::Attribute
2095 - due to changes in Class::MOP, we had to add the
2096 initialize_instance_slot method (it's a good thing)
2098 * Moose::Meta::TypeConstraint
2099 - added type constraint unions
2100 - added tests for this
2101 - added the is_subtype_of predicate method
2102 - added tests for this
2104 0.04 Sun. April 16th, 2006
2106 - Roles can now consume other roles
2107 - added tests for this
2108 - Roles can specify required methods now with
2109 the requires() keyword
2110 - added tests for this
2113 - ripped out much of it's guts ,.. much cleaner now
2114 - added required methods and correct handling of
2115 them in apply() for both classes and roles
2116 - added tests for this
2117 - no longer adds a does() method to consuming classes
2118 it relys on the one in Moose::Object
2119 - added roles attribute and some methods to support
2120 roles consuming roles
2122 * Moose::Meta::Attribute
2123 - added support for triggers on attributes
2124 - added tests for this
2125 - added support for does option on an attribute
2126 - added tests for this
2128 * Moose::Meta::Class
2129 - added support for attribute triggers in the
2131 - added tests for this
2134 - Moose no longer creates a subtype for your class
2135 if a subtype of the same name already exists, this
2136 should DWIM in 99.9999% of all cases
2138 * Moose::Util::TypeConstraints
2139 - fixed bug where incorrect subtype conflicts were
2141 - added test for this
2144 - this class can now be extended with 'use base' if
2145 you need it, it properly loads the metaclass class now
2146 - added test for this
2148 0.03_02 Wed. April 12, 2006
2150 - you must now explictly use Moose::Util::TypeConstraints
2151 it no longer gets exported for you automatically
2154 - new() now accepts hash-refs as well as key/value lists
2155 - added does() method to check for Roles
2156 - added tests for this
2158 * Moose::Meta::Class
2159 - added roles attribute along with the add_role() and
2161 - added tests for this
2164 - now adds a does() method to consuming classes
2165 which tests the class's hierarchy for roles
2166 - added tests for this
2168 0.03_01 Mon. April 10, 2006
2170 - added new Role recipe (no content yet, only code)
2173 - added 'with' keyword for Role support
2174 - added test and docs for this
2175 - fixed subtype quoting bug
2176 - added test for this
2180 - added test and docs
2182 * Moose::Util::TypeConstraints
2183 - added the message keyword to add custom
2184 error messages to type constraints
2187 - the meta role to support Moose::Role
2188 - added tests and docs
2190 * Moose::Meta::Class
2191 - moved a number of things from Moose.pm
2192 to here, they should have been here
2195 * Moose::Meta::Attribute
2196 - moved the attribute option macros here
2197 instead of putting them in Moose.pm
2199 * Moose::Meta::TypeConstraint
2200 - added the message attributes and the
2202 - added tests and docs for this
2204 0.03 Thurs. March 30, 2006
2206 - added the Moose::Cookbook with 5 recipes,
2207 describing all the stuff Moose can do.
2210 - fixed an issue with &extends super class loading
2211 it now captures errors and deals with inline
2212 packages correctly (bug found by mst, solution
2214 - added super/override & inner/augment features
2215 - added tests and docs for these
2218 - BUILDALL now takes a reference of the %params
2219 that are passed to &new, and passes that to
2222 * Moose::Util::TypeConstraints
2223 - Type constraints now survive runtime reloading
2224 - added test for this
2226 * Moose::Meta::Class
2227 - fixed the way attribute defaults are handled
2228 during instance construction (bug found by chansen)
2230 * Moose::Meta::Attribute
2231 - read-only attributes now actually enforce their
2232 read-only-ness (this corrected in Class::MOP as
2235 0.02 Tues. March 21, 2006
2237 - many more tests, fixing some bugs and
2239 - &extends now loads the base module with
2241 - added UNIVERSAL::require to the
2244 - each new Moose class will also create
2245 and register a subtype of Object which
2246 correspond to the new Moose class.
2247 - the 'isa' option in &has now only
2248 accepts strings, and will DWIM in
2251 * Moose::Util::TypeConstraints
2252 - added type coercion features
2253 - added tests for this
2254 - added support for this in attributes
2255 and instance construction
2257 - type construction no longer creates a
2258 function, it registers the type instead.
2259 - added several functions to get the
2263 - BUILDALL and DEMOLISHALL were broken
2264 because of a mis-named hash key, Whoops :)
2266 * Moose::Meta::Attribute
2267 - adding support for coercion in the
2268 autogenerated accessors
2270 * Moose::Meta::Class
2271 - adding support for coercion in the
2272 instance construction
2274 * Moose::Meta::TypeConstraint
2275 * Moose::Meta::TypeCoercion
2276 - type constraints and coercions are now
2277 full fledges meta-objects
2279 0.01 Wed. March 15, 2006
2280 - Moooooooooooooooooose!!!