1 Revision history for Perl extension Moose
4 * Moose::Util::TypeConstraints
5 - Added the RoleName type (stevan)
6 - added tests for this (stevan)
8 * Moose::Cookbook::Basics::Recipe3
9 - Updated the before qw[left right] sub to be a little more
10 defensive about what it accepts (stevan)
11 - added more tests to t/000_recipies/basics/003_binary_tree.t
15 - We now always call DEMOLISHALL, even if a class does not
16 define DEMOLISH. This makes sure that method modifiers on
17 DEMOLISHALL work as expected. (doy)
18 - added tests for this (EvanCarroll)
20 * Moose::Util::MetaRole
21 - Accept roles for the wrapped_method_metaclass (rafl)
22 - added tests for this (rafl)
25 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
26 they require 0.11. (Dave Rolsky)
28 0.69 Thu, February 12, 2009
30 - Make some keyword errors use throw_error instead of croak
31 since Moose::Exporter wraps keywords now (Sartak)
34 - Revised every recipe for style and clarity. Also moved some
35 documentation out of cookbook recipes and into Moose::Manual
36 pages. This work was funded as part of the Moose docs grant
37 from TPF. (Dave Rolsky)
39 * Moose::Meta::Method::Delegation
40 - If the attribute doing the delegation was not populated, the
41 error message did not specify the attribute name
44 0.68 Wed, February 4, 2009
46 - Many spelling, typo, and formatting fixes by daxim.
48 * Moose::Manual::Attributes
49 - The NAME section in the POD used "Attribute" so search.cpan
50 didn't resolve links from other documents properly.
52 * Moose::Meta::Method::Overriden
53 - Now properly spelled as Overridden. Thanks to daxim for
56 0.67 Tue, February 3, 2009
58 - Lots of little typo fixes and a few clarifications. Several
59 pages didn't have proper titles, and so weren't actually
60 visible on search.cpan.org. Thanks to hanekomu for a variety
61 of fixes and formatting improvements.
63 0.66 Tue, February 3, 2009
65 - This is a brand new, extensive manual for Moose. This aims to
66 provide a complete introduction to all of Moose's
67 features. This work was funded as part of the Moose docs grant
68 from TPF. (Dave Rolsky)
70 * Moose::Meta::Attribute
71 - Added a delegation_metaclass method to replace a hard-coded
72 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
74 * Moose::Util::TypeConstraints
75 - If you created a subtype and passed a parent that Moose didn't
76 know about, it simply ignored the parent. Now it automatically
77 creates the parent as a class type. This may not be what you
78 want, but is less broken than before. (Dave Rolsky)
80 * Moose::Util::TypeConstraints
81 - This module tried throw errors by calling Moose->throw_error,
82 but it did not ensure that Moose was loaded first. This could
83 cause very unhelpful errors when it tried to throw an error
84 before Moose was loaded. (Dave Rolsky)
86 * Moose::Util::TypeConstraints
87 - You could declare a name with subtype such as "Foo!Bar" that
88 would be allowed, but if you used it in a parameterized type
89 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
90 vetting on names created via the sugar functions, so that they
91 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
93 0.65 Thu, January 22, 2008
94 * Moose and Moose::Meta::Method::Overridden
95 - If an overridden method called super(), and then the
96 superclass's method (not overridden) _also_ called super(),
97 Moose went into an endless recursion loop. Test provided by
98 Chris Prather. (Dave Rolsky)
100 * Moose::Meta::TypeConstraint
101 - All methods are now documented. (gphat)
103 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
104 - Fixed some bogus failures that occurred because we tried to
105 validate filesystem paths in a very ad-hoc and
106 not-quite-correct way. (Dave Rolsky)
108 * Moose::Util::TypeConstraints
109 - Added maybe_type to exports. See docs for details. (rjbs)
112 - Added Moose::Util::TypeConstraints to the SEE ALSO
116 - Methods created via an attribute can now fulfill a "requires"
117 declaration for a role. (nothingmuch)
119 * Moose::Meta::Method::*
120 - Stack traces from inlined code will now report its line and
121 file as being in your class, as opposed to in Moose
124 0.64 Wed, December 31, 2008
125 * Moose::Meta::Method::Accessor
126 - Always inline predicate and clearer methods (Sartak)
128 * Moose::Meta::Attribute
129 - Support for parameterized traits (Sartak)
130 - verify_against_type_constraint method to avoid duplication
131 and enhance extensibility (Sartak)
134 - Tests (but no support yet) for parameterized traits (Sartak)
137 - Require Class::MOP 0.75+, which has the side effect of making
138 sure we work on Win32. (Dave Rolsky)
140 0.63 Mon, December 8, 2008
142 - Some small grammar tweaks and bug fixes in non-Moose example
145 0.62_02 Fri, December 5, 2008
146 * Moose::Meta::Role::Application::ToClass
147 - When a class does not provide all of a role's required
148 methods, the error thrown now mentions all of the missing
149 methods, as opposed to just the first one found. Requested by
150 Curtis Poe (RT #41119). (Dave Rolsky)
152 * Moose::Meta::Method::Constructor
153 - Moose will no longer inline a constructor for your class
154 unless it inherits its constructor from Moose::Object, and
155 will warn when it doesn't inline. If you want to force
156 inlining anyway, pass "replace_constructor => 1" to
157 make_immutable. Addresses RT #40968, reported by Jon
158 Swartz. (Dave Rolsky)
159 - The quoting of default values could be broken if the default
160 contained a single quote ('). Now we use quotemeta to escape
161 anything potentially dangerous in the defaults. (Dave Rolsky)
163 0.62_01 Wed, December 3, 2008
165 - use the method->execute API for BUILDALL
166 and DEMOLISHALL (Sartak)
168 * Moose::Util::TypeConstraints
169 - We now make all the type constraint meta classes immutable
170 before creating the default types provided by Moose. This
171 should make loading Moose a little faster. (Dave Rolsky)
173 0.62 Wed November 26, 2008
174 * Moose::Meta::Role::Application::ToClass
175 Moose::Meta::Role::Application::ToRole
176 - fixed issues where excluding and aliasing the
177 same methods for a single role did not work
178 right (worked just fine with multiple
180 - added test for this (stevan)
182 * Moose::Meta::Role::Application::RoleSummation
183 - fixed the error message when trying to compose
184 a role with a role it excludes (Sartak)
187 - Catch another case where recursion caused the value
188 of $CALLER to be stamped on (t0m)
189 - added test for this (t0m)
192 - Remove the make_immutable keyword, which has been
193 deprecated since April. It breaks metaclasses that
194 use Moose without no Moose (Sartak)
196 * Moose::Meta::Attribute
197 - Removing an attribute from a class now also removes delegation
198 (handles) methods installed for that attribute (t0m)
199 - added test for this (t0m)
201 * Moose::Meta::Method::Constructor
202 - An attribute with a default that looked like a number (but was
203 really a string) would accidentally be treated as a number
204 when the constructor was made immutable (perigrin)
205 - added test for this (perigrin)
208 - create method for constructing a role
210 - added test for this (Sartak)
211 - anonymous roles! (Sartak)
212 - added test for this (Sartak)
215 - more consistent error messages (Sartak)
217 * Moose::Cookbook::Roles::Recipe1
218 - attempt to explain why a role that just requires
219 methods is useful (Sartak)
221 0.61 Fri November 7, 2008
222 * Moose::Meta::Attribute
223 - When passing a role to handles, it will be loaded if necessary
227 - Method objects returned by get_method (and other methods)
228 Could end up being returned without an associated_metaclass
229 attribute. Removing get_method_map, which is provided by
230 Class::MOP::Class, fixed this. The Moose version did nothing
231 different from its parent except introduce a bug. (Dave Rolsky)
232 - added tests for this (jdv79)
235 - Added a $VERSION to all .pm files which didn't have one. Fixes
236 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
238 * Moose::Cookbook::Basics::Recipe4
239 * Moose::Cookbook::Basics::Recipe6
240 - These files had spaces on the first line of the SYNOPSIS, as
241 opposed to a totally empty line. According to RT #40432, this
242 confuses POD parsers. (Dave Rolsky)
244 0.60 Fri October 24, 2008
246 - Passing "-traits" when loading Moose caused the Moose.pm
247 exports to be broken. Reported by t0m. (Dave Rolsky)
248 - Tests for this bug. (t0m)
251 - Change resolve_metaclass alias to use the new
252 load_first_existing_class function. This makes it a lot
253 simpler, and also around 5 times faster. (t0m)
254 - Add caching to resolve_metaclass_alias, which gives an order
255 of magnitude speedup to things which repeatedly call the
256 Moose::Meta::Attribute->does method, notably MooseX::Storage
259 * Moose::Util::TypeConstraint
260 - Put back the changes for parameterized constraints that
261 shouldn't have been removed in 0.59. We still cannot parse
262 them, but MooseX modules can create them in some other
263 way. See the 0.58 changes for more details. (jnapiorkowski)
264 - Changed the way subtypes are created so that the job is
265 delegated to a type constraint parent. This clears up some
266 hardcoded checking and should allow correct subtypes of
267 Moose::Meta::Type::Constraint. Don't rely on this new API too
268 much (create_child_type) because it may go away in the
269 future. (jnapiorkowski)
271 * Moose::Meta::TypeConstraint::Union
272 - Type constraint names are sorted as strings, not numbers.
275 * Moose::Meta::TypeConstraint::Parameterizable
276 - New parameterize method. This can be used as a factory method
277 to make a new type constraint with a given parameterized
278 type. (jnapiorkowski)
279 - added tests (jnapiorkowski)
281 0.59 Tue October 14, 2008
283 - Add abridged documentation for builder/default/initializer/
284 predicate, and link to more details sections in
285 Class::MOP::Attribute. (t0m)
287 * Moose::Util::TypeConstraints
288 - removed prototypes from all but the &-based stuff (mst)
290 * Moose::Util::TypeConstraints
291 - Creating a anonymous subtype with both a constraint and a
292 message failed with a very unhelpful error, but should just
293 work. Reported by t0m. (Dave Rolsky)
296 - Some tests that used Test::Warn if it was available failed
297 with older versions of Test::Warn. Reported by Fayland. (Dave
299 - Test firing behavior of triggers in relation to builder/default/
301 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
302 kinds of supported type. (t0m)
305 - In create(), do not pass "roles" option to the superclass
306 - added related test that creates an anon metaclass with
309 * Moose::Meta::TypeConstraint::Class
310 * Moose::Meta::TypeConstraint::Role
311 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
312 other types (as per change in 0.55_02). (t0m)
314 * Moose::Meta::TypeConstraint::Registry
315 - Fix warning when dealing with unknown type names (t0m)
317 * Moose::Util::TypeConstraints
318 - Reverted changes from 0.58 related to handle parameterized
319 types. This caused random failures on BSD and Win32 systems,
320 apparently related to the regex engine. This means that Moose
321 can no longer parse structured type constraints like
322 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
323 supported in a slightly different way via MooseX::Types some
324 time in the future. (Dave Rolsky)
326 0.58 Sat September 20, 2008
327 !! This release has an incompatible change regarding !!
328 !! how roles add methods to a class !!
330 * Roles and role application
331 ! Roles now add methods by calling add_method, not
332 alias_method. They make sure to always provide a method
333 object, which will be cloned internally. This means that it is
334 now possible to track the source of a method provided by a
335 role, and even follow its history through intermediate roles.
337 This means that methods added by a role now show up when
338 looking at a class's method list/map. (Dave Rolsky)
341 - From this release on, we'll try to maintain a list of
342 conflicting modules, and warn you if you have one
343 installed. For example, this release conflicts with ...
344 - MooseX::Singleton <= 0.11
345 - MooseX::Params::Validate <= 0.05
348 In general, we try to not break backwards compatibility for
349 most Moose users, but MooseX modules and other code which
350 extends Moose's metaclasses is often affected by very small
351 changes in the Moose internals.
353 * Moose::Meta::Method::Delegation
354 * Moose::Meta::Attribute
355 - Delegation methods now have their own method class. (Dave
358 * Moose::Meta::TypeConstraint::Parameterizable
359 - Added a new method 'parameterize' which is basically a factory
360 for the containing constraint. This makes it easier to create
361 new types of parameterized constraints. (jnapiorkowski)
363 * Moose::Meta::TypeConstraint::Union
364 - Changed the way Union types canonicalize their names to follow
365 the normalized TC naming rules, which means we strip all
366 whitespace. (jnapiorkowski)
368 * Moose::Util::TypeConstraints
369 - Parameter and Union args are now sorted, this makes Int|Str
370 the same constraint as Str|Int. (jnapiorkowski)
371 - Changes to the way Union types are parsed to more correctly
372 stringify their names. (jnapiorkowski)
373 - When creating a parameterized type, we now use the new
374 parameterize method. (jnapiorkowski)
375 - Incoming type constraint strings are now normalized to remove
376 all whitespace differences. (jnapiorkowski)
377 - Changed the way we parse type constraint strings so that we now
378 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
379 constraints. This lays the foundation for more flexible type
380 constraint implementations.
382 * Tests and docs for all the above. (jnapiorkowski)
386 - Moose::Exporter will no longer remove a subroutine that the
387 exporting package re-exports. Moose re-exports the
388 Carp::confess function, among others. The reasoning is that we
389 cannot know whether you have also explicitly imported those
390 functions for your own use, so we err on the safe side and
391 always keep them. (Dave Rolsky)
392 - added tests for this (rafl)
395 - Changes to how we fix metaclass compatibility that are much
396 too complicated to go into. The summary is that Moose is much
397 less likely to complain about metaclass incompatibility
398 now. In particular, if two metaclasses differ because
399 Moose::Util::MetaRole was used on the two corresponding
400 classes, then the difference in roles is reconciled for the
401 subclass's metaclass. (Dave Rolsky)
402 - Squashed an warning in _process_attribute (thepler)
405 - throw exceptions (sooner) for invalid attribute names (thepler)
406 - added tests for this (thepler)
408 * Moose::Util::MetaRole
409 - If you explicitly set a constructor or destructor class for a
410 metaclass object, and then applied roles to the metaclass,
411 that explicitly set class would be lost and replaced with the
415 * Moose::Meta::Attribute
416 * Moose::Meta::Method
419 * Moose::Error::Default
420 * Moose::Error::Croak
421 * Moose::Error::Confess
422 - All instances of confess() changed to use overridable
423 C<throw_error> method. This method ultimately calls a class
424 constructor, and you can change the class being called. In
425 addition, errors now pass more information than just a string.
426 The default C<error_class> behaves like C<Carp::confess>, so
427 the behavior is not visibly different for end users.
429 0.57 Wed September 3, 2008
431 - A new bit of doc intended to introduce folks familiar with
432 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
435 - Shows examples of two classes, each done first with and then
436 without Moose. This makes a nice parallel to
437 Moose::Intro. (Dave Rolsky)
439 * Moose::Util::TypeConstraints
440 - Fixed a bug in find_or_parse_type_constraint so that it
441 accepts a Moose::Meta::TypeConstraint object as the parent
442 type, not just a name (jnapiorkowski)
443 - added tests (jnapiorkowski)
446 - If Sub::Name was not present, unimporting failed to actually
447 remove some sugar subs, causing test failures (Dave Rolsky)
449 0.56 Mon September 1, 2008
450 For those not following the series of dev releases, there are
451 several major changes in this release of Moose.
452 ! Moose::init_meta should now be called as a method. See the
455 - Major performance improvements by nothingmuch.
457 - New modules for extension writers, Moose::Exporter and
458 Moose::Util::MetaRole by Dave Rolsky.
460 - Lots of doc improvements and additions, especially in the
465 * Removed all references to the experimental-but-no-longer-needed
466 Moose::Meta::Role::Application::ToMetaclassInstance.
468 * Require Class::MOP 0.65.
470 0.55_04 Sat August 30, 2008
471 * Moose::Util::MetaRole
472 * Moose::Cookbook::Extending::Recipe2
473 - This simplifies the application of roles to any meta class, as
474 well as the base object class. Reimplemented metaclass traits
475 using this module. (Dave Rolsky)
477 * Moose::Cookbook::Extending::Recipe1
478 - This a new recipe, an overview of various ways to write Moose
479 extensions (Dave Rolsky)
481 * Moose::Cookbook::Extending::Recipe3
482 * Moose::Cookbook::Extending::Recipe4
483 - These used to be Extending::Recipe1 and Extending::Recipe2,
486 0.55_03 Fri August 29, 2008
487 * No changes from 0.55_02 except increasing the Class::MOP
488 dependency to 0.64_07.
490 0.55_02 Fri August 29, 2008
491 * Makefile.PL and Moose.pm
492 - explicitly require Perl 5.8.0+ (Dave Rolsky)
494 * Moose::Util::TypeConstraints
495 - Fix warnings from find_type_constraint if the type is not
498 * Moose::Meta::TypeConstraint
499 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
500 return false if the type you specify cannot be found in the
501 type registry, rather than throwing an unhelpful and
502 coincidental exception. (t0m).
503 - added docs & test for this (t0m)
505 * Moose::Meta::TypeConstraint::Registry
506 - add_type_constraint now throws an exception if a parameter is
508 - added docs & test for this (t0m)
510 * Moose::Cookbook::FAQ
511 - Added a faq entry on the difference between "role" and "trait"
515 - Fixed a bug that caused role composition to not see a required
516 method when that method was provided by another role being
517 composed at the same time. (Dave Rolsky)
518 - test and bug finding (tokuhirom)
520 0.55_01 Wed August 20, 2008
522 !! Calling Moose::init_meta as a function is now !!
523 !! deprecated. Please see the Moose.pm docs for details. !!
525 * Moose::Meta::Method::Constructor
526 - Fix inlined constructor so that values produced by default
527 or builder methods are coerced as required. (t0m)
528 - added test for this (t0m)
530 * Moose::Meta::Attribute
531 - A lazy attribute with a default or builder did not attempt to
532 coerce the default value. The immutable code _did_
534 - added test for this (t0m)
537 - This is a new helper module for writing "Moose-alike"
538 modules. This should make the lives of MooseX module authors
539 much easier. (Dave Rolsky)
542 * Moose::Cookbook::Meta::Recipe5
543 - Implemented metaclass traits (and wrote a recipe for it):
545 use Moose -traits => 'Foo'
547 This should make writing small Moose extensions a little
550 * Moose::Cookbook::Basics::Recipe1
551 - Removed any examples of direct hashref access, and applied an
552 editorial axe to reduce verbosity. (Dave Rolsky)
554 * Moose::Cookbook::Basics::Recipe1
555 - Also applied an editorial axe here. (Dave Rolsky)
558 * Moose::Cookbook::Extending::Recipe1
559 * Moose::Cookbook::Extending::Recipe2
560 - Rewrote extending and embedding moose documentation and
561 recipes to use Moose::Exporter (Dave Rolsky)
565 - These two modules now warn when you load them from the main
566 package "main" package, because we will not export sugar to
567 main. Previously it just did nothing. (Dave Rolsky)
570 - Now provide an init_meta method just like Moose.pm, and you
571 can call this to provide an alternate role metaclass. (Dave
572 Rolsky and nothingmuch)
573 - get_method_map now respects the package cache flag (nothingmuch)
576 - Two new methods - add_method and wrap_method_body
580 - Optimizations including allowing constructors to accept hash
581 refs, making many more classes immutable, and making
582 constructors immutable. (nothingmuch)
584 0.55 Sun August 3, 2008
585 * Moose::Meta::Attribute
586 - breaking down the way 'handles' methods are
587 created so that the process can be more easily
588 overridden by subclasses (stevan)
590 * Moose::Meta::TypeConstraint
591 - fixing what is passed into a ->message with
592 the type constraints (RT #37569)
593 - added tests for this (Charles Alderman)
595 * Moose::Util::TypeConstraints
596 - fix coerce to accept anon types like subtype can (mst)
599 - reorganized the recipes into sections - Basics, Roles, Meta,
600 Extending - and wrote abstracts for each section (Dave Rolsky)
602 * Moose::Cookbook::Basics::Recipe10
603 - A new recipe that demonstrates operator overloading
604 in combination with Moose. (bluefeet)
606 * Moose::Cookbook::Meta::Recipe1
607 - an introduction to what meta is and why you'd want to make
608 your own metaclass extensions (Dave Rolsky)
610 * Moose::Cookbook::Meta::Recipe4
611 - a very simple metaclass example (Dave Rolsky)
613 * Moose::Cookbook::Extending::Recipe1
614 - how to write a Moose-alike module to use your own object base
617 * Moose::Cookbook::Extending::Recipe2
618 - how to write modules with an API just like C<Moose.pm> (Dave
622 - Tons of fixes, both syntactical and grammatical (Dave
623 Rolsky, Paul Fenwick)
625 0.54 Thurs. July 3, 2008
626 ... this is not my day today ...
628 * Moose::Meta::Attribute
629 - fixed legal_options_for_inheritance such that
630 clone_and_inherit options still works for
631 Class::MOP::Attribute objects and therefore
632 does not break MooseX::AttributeHelpers
635 0.53 Thurs. July 3, 2008
636 * Whoops, I guess I should run 'make manifest' before
637 actually releasing the module. No actual changes
638 in this release, except the fact that it includes
639 the changes that I didn't include in the last
642 0.52 Thurs. July 3, 2008
644 - added "FEATURE REQUESTS" section to the Moose docs
645 to properly direct people (stevan) (RT #34333)
646 - making 'extends' croak if it is passed a Role since
647 this is not ever something you want to do
648 (fixed by stevan, found by obra)
649 - added tests for this (stevan)
652 - adding support for DOES (as in UNIVERSAL::DOES)
654 - added test for this
656 * Moose::Meta::Attribute
657 - added legal_options_for_inheritance (wreis)
658 - added tests for this (wreis)
660 * Moose::Cookbook::Snacks::*
661 - removed some of the unfinished snacks that should
662 not have been released yet. Added some more examples
663 to the 'Keywords' snack. (stevan)
665 * Moose::Cookbook::Style
666 - added general Moose "style guide" of sorts to the
667 cookbook (nothingmuch) (RT #34335)
670 - added more BUILDARGS tests (stevan)
672 0.51 Thurs. Jun 26, 2008
674 - add unimport so "no Moose::Role" actually does
677 * Moose::Meta::Role::Application::ToRole
678 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
679 order to provide its own implementation, that method still got
680 added to the list of required methods for consumers of
681 RoleB. Now an aliased method is only added to the list of
682 required methods if the role doing the aliasing does not
683 provide its own implementation. See Recipe 11 for an example
684 of all this. (Dave Rolsky)
685 - added tests for this
687 * Moose::Meta::Method::Constructor
688 - when a single argument that wasn't a hashref was provided to
689 an immutabilized constructor, the error message was very
690 unhelpful, as opposed to the non-immutable error. Reported by
692 - added test for this (Dave Rolsky)
694 * Moose::Meta::Attribute
695 - added support for meta_attr->does("ShortAlias") (sartak)
696 - added tests for this (sartak)
697 - moved the bulk of the `handles` handling to the new
698 install_delegation method (Stevan)
701 - Added BUILDARGS, a new step in new()
703 * Moose::Meta::Role::Application::RoleSummation
704 - fix typos no one ever sees (sartak)
706 * Moose::Util::TypeConstraints
707 * Moose::Meta::TypeConstraint
708 * Moose::Meta::TypeCoercion
709 - Attempt to work around the ??{ } vs. threads issue
711 - Some null_constraint optimizations
713 0.50 Thurs. Jun 11, 2008
714 - Fixed a version number issue by bumping all modules
717 0.49 Thurs. Jun 11, 2008
718 !! This version now approx. 20-25% !!
719 !! faster with new Class::MOP 0.59 !!
721 * Moose::Meta::Attribute
722 - fixed how the is => (ro|rw) works with
723 custom defined reader, writer and accessor
725 - added docs for this (TODO).
726 - added tests for this (Thanks to Penfold)
727 - added the custom attribute alias for regular
728 Moose attributes which is "Moose"
729 - fix builder and default both being used
734 Moose::Meta::Attribute
736 Moose::Meta::Role::Composite
737 Moose::Util::TypeConstraints
738 - switched usage of reftype to ref because
742 - changing add_package_symbol to use the new
746 - fixed how DEMOLISHALL is called so that it
747 can be overrided in subclasses (thanks to Sartak)
748 - added test for this (thanks to Sartak)
750 * Moose::Util::TypeConstraints
751 - move the ClassName type check code to
752 Class::MOP::is_class_loaded (thanks to Sartak)
754 * Moose::Cookbook::Recipe11
755 - add tests for this (thanks to tokuhirom)
757 0.48 Thurs. May 29, 2008
758 (early morning release engineering)--
760 - fixing the version in Moose::Meta::Method::Destructor
761 which was causing the indexer to choke
763 0.47 Thurs. May 29, 2008
764 (late night release engineering)--
766 - fixing the version is META.yml, no functional
767 changes in this release
769 0.46 Wed. May 28, 2008
770 !! This version now approx. 20-25% !!
771 !! faster with new Class::MOP 0.57 !!
774 - some optimizations of the &initialize method
775 since it is called so often by &meta
779 - now use the get_all_package_symbols from the
780 updated Class::MOP, test suite is now 10 seconds
783 * Moose::Meta::Method::Destructor
784 - is_needed can now also be called as a class
785 method for immutablization to check if the
786 destructor object even needs to be created
789 * Moose::Meta::Method::Destructor
790 Moose::Meta::Method::Constructor
791 - added more descriptive error message to help
792 keep people from wasting time tracking an error
793 that is easily fixed by upgrading.
795 0.45 Saturday, May 24, 2008
797 - Because of work in Class::MOP 0.57, all
798 XS based functionality is now optional
799 and a Pure Perl version is supplied
800 - the CLASS_MOP_NO_XS environment variable
801 can now be used to force non-XS versions
803 - several of the packages have been tweaked
804 to take care of this, mostly we added
805 support for the package_name and name
806 variables in all the Method metaclasses
807 - before/around/after method modifiers now
808 support regexp matching of names
809 (thanks to Takatoshi Kitano)
810 - tests added for this
811 - NOTE: this only works for classes, it
812 is currently not supported in roles,
813 but, ... patches welcome
814 - All usage of Carp::confess have been replaced
815 by Carp::croak in the "keyword" functions since
816 the stack trace is usually not helpful
819 - All usage of Carp::confess have been replaced
820 by Carp::croak in the "keyword" functions since
821 the stack trace is usually not helpful
822 - The 'has' keyword for roles now accepts the
823 same array ref form that Moose.pm does
824 (has [qw/foo bar/] => (is => 'rw', ...))
825 - added test for this
827 * Moose::Meta::Attribute
828 - trigger on a ro-attribute is no longer an
829 error, as it's useful to trigger off of the
833 - added same 'add_package_symbol' fix as in
837 - does_role now handles non-Moose classes
839 - added tests for this
840 - added the 'add_method_modifier' function
841 (thanks to Takatoshi Kitano)
843 * Moose::Util::TypeConstraints
844 - subtypes of parameterizable types now are
845 themselves parameterizable types
847 * Moose::Meta::Method::Constructor
848 - fixed bug where trigger was not being
849 called by the inlined immutable
851 - added test for this (thanks to Caelum)
853 * Moose::Meta::Role::Application::ToInstance
854 - now uses the metaclass of the instance
855 (if possible) to create the anon-class
856 (thanks Jonathan Rockway)
858 * Moose::Cookbook::Recipe22
859 - added the meta-attribute trait recipe
863 - fixed hash-ordering test bug that was
864 causing occasional cpantester failures
865 - renamed the t/000_recipe/*.t tests to be
866 more descriptive (thanks to Sartak)
868 0.44 Sat. May 10, 2008
870 - made make_immutable warning cluck to
871 show where the error is (thanks mst)
874 - BUILDALL and DEMOLISHALL now call
875 ->body when looping through the
876 methods, to avoid the overloaded
878 - fixed issue where DEMOLISHALL was
879 eating the $@ values, and so not
880 working correctly, it still kind of
881 eats them, but so does vanilla perl
882 - added tests for this
884 * Moose::Cookbook::Recipe7
885 - added new recipe for immutable
886 functionality (thanks Dave Rolsky)
888 * Moose::Cookbook::Recipe9
889 - added new recipe for builder and
890 lazy_build (thanks Dave Rolsky)
892 * Moose::Cookbook::Recipe11
893 - added new recipe for method aliasing
894 and exclusion with Roles (thanks Dave Rolsky)
897 - fixed Win32 test failure (thanks spicyjack)
899 ~ removed Build.PL and Module::Build compat
900 since Module::Install has done that.
902 0.43 Wed. April, 30, 2008
904 drink more coffee before
905 doing release engineering
907 - whoops, forgot to do the smolder tests,
908 and we broke some of the custom meta-attr
909 modules. This fixes that.
911 0.42 Mon. April 28, 2008
912 - some bad tests slipped by, nothing else
913 changed in this release (cpantesters++)
915 - upped the Class::MOP dependency to 0.55
916 since we have tests which need the C3
919 0.41 Mon. April 28, 2008
920 ~~ numerous documentation updates ~~
922 - Changed all usage of die to Carp::croak for better
923 error reporting (initial patch by Tod Hagan)
926 - the make_immutable keyword is now deprecated, don't
927 use it in any new code and please fix your old code
928 as well. There will be 2 releases, and then it will
934 - refactored the way inner and super work to avoid
935 any method/@ISA cache penalty (nothingmuch)
938 - fixing &new_object to make sure trigger gets the
939 coerced value (spotted by Charles Alderman on the
941 - added test for this
943 * Moose::Meta::Method::Constructor
944 - immutable classes which had non-lazy attributes were calling
945 the default generating sub twice in the constructor. (bug
946 found by Jesse Luehrs, fixed by Dave Rolsky)
947 - added tests for this (Dave Rolsky)
948 - fix typo in initialize_body method (nothingmuch)
950 * Moose::Meta::Method::Destructor
951 - fix typo in initialize_body method (nothingmuch)
953 * Moose::Meta::Method::Overriden
954 Moose::Meta::Method::Augmented
955 - moved the logic for these into their own
956 classes (nothingmuch)
958 * Moose::Meta::Attribute
959 - inherited attributes may now be extended without
960 restriction on the type ('isa', 'does') (Sartak)
961 - added tests for this (Sartak)
962 - when an attribute property is malformed (such as lazy without
963 a default), give the name of the attribute in the error
965 - added the &applied_traits and &has_applied_traits methods
966 to allow introspection of traits
967 - added tests for this
968 - moved 'trait' and 'metaclass' argument handling to here from
970 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
971 '+foo' syntax) (nothingmuch)
972 - added tests for this (t0m)
975 - localize $@ inside DEMOLISHALL to avoid it
976 eating $@ (found by Ernesto)
977 - added test for this (thanks to Ernesto)
979 * Moose::Util::TypeConstraints
980 - &find_type_constraint now DWIMs when given an
981 type constraint object or name (nothingmuch)
982 - &find_or_create_type_constraint superseded with a number of more
984 - find_or_create_{isa,does}_type_constraint
985 - find_or_parse_type_constraint
987 * Moose::Meta::TypeConstraint
988 Moose::Meta::TypeConstraint::Class
989 Moose::Meta::TypeConstraint::Role
990 Moose::Meta::TypeConstraint::Enum
991 Moose::Meta::TypeConstraint::Union
992 Moose::Meta::TypeConstraint::Parameterized
993 - added the &equals method for comparing two type
994 constraints (nothingmuch)
995 - added tests for this (nothingmuch)
997 * Moose::Meta::TypeConstraint
998 - add the &parents method, which is just an alias to &parent.
999 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1001 * Moose::Meta::TypeConstraint::Class
1002 - added the class attribute for introspection purposes
1004 - added tests for this
1006 * Moose::Meta::TypeConstraint::Enum
1007 Moose::Meta::TypeConstraint::Role
1008 - broke these out into their own classes (nothingmuch)
1010 * Moose::Cookbook::Recipe*
1011 - fixed references to test file locations in the POD
1012 and updated up some text for new Moose features
1016 - Added &resolve_metaclass_alias, a helper function for finding an actual
1017 class for a short name (e.g. in the traits list)
1019 0.40 Fri. March 14, 2008
1020 - I hate Pod::Coverage
1022 0.39 Fri. March 14, 2008
1024 - documenting the use of '+name' with attributes
1025 that come from recently composed roles. It makes
1026 sense, people are using it, and so why not just
1027 officially support it.
1028 - fixing the 'extends' keyword so that it will not
1029 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1032 - added the perl -Moose=+Class::Name feature to allow
1033 monkeypatching of classes in one liners
1036 - fixing the 'apply_all_roles' keyword so that it will not
1037 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1039 * Moose::Meta::Class
1040 - added ->create method which now supports roles (thanks to jrockway)
1041 - added tests for this
1042 - added ->create_anon_class which now supports roles and caching of
1043 the results (thanks to jrockway)
1044 - added tests for this
1045 - made ->does_role a little more forgiving when it is
1046 checking a Class::MOP era metaclasses.
1048 * Moose::Meta::Role::Application::ToInstance
1049 - it is now possible to pass extra params to be used when
1050 a role is applied to an the instance (rebless_params)
1051 - added tests for this
1053 * Moose::Util::TypeConstraints
1054 - class_type now accepts an optional second argument for a
1055 custom message. POD anotated accordingly (groditi)
1056 - added tests for this
1057 - it is now possible to make anon-enums by passing 'enum' an
1058 ARRAY ref instead of the $name => @values. Everything else
1060 - added tests for this
1063 - making test for using '+name' on attributes consumed
1064 from a role, it works and makes sense too.
1066 * Moose::Meta::Attribute
1067 - fix handles so that it doesn't return nothing
1068 when the method cannot be found, not sure why
1069 it ever did this originally, this means we now
1070 have slightly better support for AUTOLOADed
1072 - added more delegation tests
1073 - adding ->does method to this so as to better
1074 support traits and their introspection.
1075 - added tests for this
1078 - localizing the Data::Dumper configurations so
1079 that it does not pollute others (RT #33509)
1080 - made ->does a little more forgiving when it is
1081 passed Class::MOP era metaclasses.
1083 0.38 Fri. Feb. 15, 2008
1084 * Moose::Meta::Attribute
1085 - fixed initializer to correctly do
1086 type checking and coercion in the
1088 - added tests for this
1091 - fixed some finicky tests (thanks to konobi)
1093 0.37 Thurs. Feb. 14, 2008
1095 - fixed some details in Moose::init_meta
1096 and its superclass handling (thanks thepler)
1097 - added tests for this (thanks thepler)
1098 - 'has' now dies if you don't pass in name
1100 - added the 'make_immutable' keyword as a shortcut
1103 * Moose::Meta::Class
1104 Moose::Meta::Method::Constructor
1105 Moose::Meta::Attribute
1106 - making (init_arg => undef) work here too
1107 (thanks to nothingmuch)
1109 * Moose::Meta::Attribute
1110 Moose::Meta::Method::Constructor
1111 Moose::Meta::Method::Accessor
1112 - make lazy attributes respect attr initializers (rjbs)
1113 - added tests for this
1115 * Moose::Util::TypeConstraints
1116 Moose::Util::TypeConstraints::OptimizedConstraints
1117 Moose::Meta::TypeConstraints
1118 Moose::Meta::Attribute
1119 Moose::Meta::Method::Constructor
1120 Moose::Meta::Method::Accessor
1121 - making type errors use the
1122 assigned message (thanks to Sartak)
1123 - added tests for this
1125 * Moose::Meta::Method::Destructor
1126 - making sure DESTROY gets inlined properly
1127 with successive DEMOLISH calls (thanks to manito)
1129 * Moose::Meta::Attribute
1130 Moose::Meta::Method::Accessor
1131 - fixed handling of undef with type constraints
1133 - added tests for this
1136 - added &get_all_init_args and &get_all_attribute_values
1137 (thanks to Sartak and nothingmuch)
1139 0.36 Sat. Jan. 26, 2008
1141 Moose::Meta::Attribute
1142 - role type tests now support when roles are
1143 applied to non-Moose classes (found by ash)
1144 - added tests for this (thanks to ash)
1145 - couple extra tests to boost code coverage
1147 * Moose::Meta::Method::Constructor
1148 - improved fix for handling Class::MOP attributes
1149 - added test for this
1151 * Moose::Meta::Class
1152 - handled the add_attribute($attribute_meta_object)
1154 - added test for this
1156 0.35 Tues. Jan. 22, 2008
1157 * Moose::Meta::Method::Constructor
1158 - fix to make sure even Class::MOP attributes
1159 are handled correctly (Thanks to Dave Rolsky)
1160 - added test for this (also Dave Rolsky)
1162 * Moose::Meta::Class
1163 - improved error message on _apply_all_roles,
1164 you should now use Moose::Util::apply_all_roles
1165 and you shouldnt have been using a _ prefixed
1166 method in the first place ;)
1168 0.34 Mon. Jan. 21, 2008
1169 ~~~ more misc. doc. fixes ~~~
1170 ~~ updated copyright dates ~~
1172 Moose is now a postmodern object system :)
1173 - (see the POD for details)
1175 * <<Role System Refactoring>>
1176 - this release contains a major reworking and
1177 cleanup of the role system
1178 - 100% backwards compat.
1179 - Role application now restructured into seperate
1180 classes based on type of applicants
1181 - Role summation (combining of more than one role)
1182 is much cleaner and anon-classes are no longer
1183 used in this process
1184 - new Composite role metaclass
1185 - runtime application of roles to instances
1186 is now more efficient and re-uses generated
1187 classes when applicable
1189 * <<New Role composition features>>
1190 - methods can now be excluded from a given role
1192 - methods can now be aliased to another name (and
1193 still retain the original as well)
1195 * Moose::Util::TypeConstraints::OptimizedConstraints
1196 - added this module (see above)
1198 * Moose::Meta::Class
1199 - fixed the &_process_attribute method to be called
1200 by &add_attribute, so that the API is now correct
1202 * Moose::Meta::Method::Accessor
1203 - fixed bug when passing a list of values to
1204 an accessor would get (incorrectly) ignored.
1205 Thanks to Sartak for finding this ;)
1206 - added tests for this (Sartak again)
1208 * Moose::Meta::Method::Accessor
1209 Moose::Meta::Method::Constructor
1210 Moose::Meta::Attribute
1211 Moose::Meta::TypeConstraint
1212 Moose::Meta::TypeCoercion
1213 - lots of cleanup of such things as:
1215 - type constraint handling
1216 - error handling/messages
1217 (thanks to nothingmuch)
1219 * Moose::Meta::TypeConstraint::Parameterizable
1220 - added this module to support the refactor
1221 in Moose::Meta::TypeConstraint::Parameterized
1223 * Moose::Meta::TypeConstraint::Parameterized
1224 - refactored how these types are handled so they
1225 are more generic and not confined to ArrayRef
1229 - shortened some file names for better VMS support (RT #32381)
1231 0.33 Fri. Dec. 14, 2007
1232 !! Moose now loads 2 x faster !!
1233 !! with new Class::MOP 0.49 !!
1235 ++ new oose.pm module to make command line
1236 Moose-ness easier (see POD docs for more)
1238 * Moose::Meta::Class
1240 - several tweaks to take advantage of the
1241 new method map caching in Class::MOP
1243 * Moose::Meta::TypeConstraint::Parameterized
1244 - allow subtypes of ArrayRef and HashRef to
1245 be used as a container (sartak)
1246 - added tests for this
1247 - basic support for coercion to ArrayRef and
1248 HashRef for containers (sartak)
1249 - added tests for this
1251 * Moose::Meta::TypeCoercion
1252 - coercions will now create subtypes as needed
1253 so you can now add coercions to parameterized
1254 types without having to explictly define them
1255 - added tests for this
1257 * Moose::Meta::Method::Accessor
1258 - allow subclasses to decide whether we need
1259 to copy the value into a new variable (sartak)
1261 0.32 Tues. Dec. 4, 2007
1262 * Moose::Util::TypeConstraints
1263 - fixing how subtype aliases of unions work
1264 they should inherit the parent's coercion
1265 - added tests for this
1266 - you can now define multiple coercions on
1267 a single type at different times instead of
1268 having to do it all in one place
1269 - added tests for this
1271 * Moose::Meta::TypeConstraint
1272 - there is now a default constraint of sub { 1 }
1273 instead of Moose::Util::TypeConstraints setting
1276 * Moose::Meta::TypeCoercion
1277 * Moose::Meta::TypeCoercion::Union
1278 - added the &has_coercion_for_type and
1279 &add_type_coercions methods to support the
1280 new features above (although you cannot add
1281 more type coercions for Union types)
1283 0.31 Mon. Nov. 26, 2007
1284 * Moose::Meta::Attribute
1285 - made the +attr syntax handle extending types with
1286 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1287 now works if the original foo is an ArrayRef.
1288 - added tests for this.
1289 - delegation now works even if the attribute does not
1290 have a reader method using the get_read_method_ref
1291 method from Class::MOP::Attribute.
1292 - added tests for this
1293 - added docs for this
1295 * Moose::Util::TypeConstraints
1296 - passing no "additional attribute info" to
1297 &find_or_create_type_constraint will no longer
1298 attempt to create an __ANON__ type for you,
1299 instead it will just return undef.
1300 - added docs for this
1302 0.30 Fri. Nov. 23, 2007
1303 * Moose::Meta::Method::Constructor
1304 -builder related bug in inlined constructor. (groditi)
1306 * Moose::Meta::Method::Accessor
1307 - genereate unnecessary calls to predicates and refactor
1308 code generation for runtime speed (groditi)
1310 * Moose::Util::TypeConstraints
1311 - fix ClassName constraint to introspect symbol table (mst)
1312 - added more tests for this (mst)
1313 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1314 with work correctly.
1315 - added tests for this
1318 - adding the link to Recipie 11 (written by Sartak)
1319 - adding test for SYNOPSIS code
1322 - New tests for builder bug. Upon instantiation, if an
1323 attribute had a builder, no value and was not lazy the
1324 builder default was not getting run, oops. (groditi)
1326 0.29 Tues. Nov. 13, 2007
1327 * Moose::Meta::Attribute
1328 - Fix error message on missing builder method (groditi)
1330 * Moose::Meta::Method::Accessor
1331 - Fix error message on missing builder method (groditi)
1334 - Add test to check for the correct error message when
1335 builder method is missing (groditi)
1337 0.28 Tues. Nov. 13, 2007
1338 - 0.27 packaged incorrectly (groditi)
1340 0.27 Tues. Nov. 13, 2007
1341 * Moose::Meta::Attribute
1342 - Added support for the new builder option (groditi)
1343 - Added support for lazy_build option (groditi)
1344 - Changed slot initialization for predicate changes (groditi)
1346 * Moose::Meta::Method::Accessor
1347 - Added support for lazy_build option (groditi)
1348 - Fix inline methods to work with corrected predicate
1351 * Moose::Meta::Method::Constructor
1352 - Added support for lazy_build option (groditi)
1355 - tests for builder and lazy_build (groditi)
1357 * fixing some misc. bits in the docs that
1358 got mentioned on CPAN Forum & perlmonks
1361 - fixed how required methods are handled
1362 when they encounter overriden or modified
1363 methods from a class (thanks to confound).
1364 - added tests for this
1366 * Moose::Util::TypeConstraint
1367 - fixed the type notation parser so that
1368 the | always creates a union and so is
1369 no longer a valid type char (thanks to
1370 konobi, mugwump and #moose for working
1372 - added more tests for this
1374 0.26 Thurs. Sept. 27, 2007
1377 * Parameterized Types
1378 We now support parameterized collection types, such as:
1379 ArrayRef[Int] # array or integers
1380 HashRef[Object] # a hash with object values
1381 They can also be nested:
1382 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1383 And work with the type unions as well:
1384 ArrayRef[Int | Str] # array of integers of strings
1386 * Better Framework Extendability
1387 Moose.pm is now "extendable" such that it is now much
1388 easier to extend the framework and add your own keywords
1389 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1390 section of the Moose.pm docs.
1393 In an effort to begin documenting some of the various
1394 details of Moose as well as some common idioms, we have
1395 created Moose::Cookbook::Snacks as a place to find
1396 small (easily digestable) nuggets of Moose code.
1399 ~ Several doc updates/cleanup thanks to castaway ~
1401 - converted build system to use Module::Install instead of
1402 Module::Build (thanks to jrockway)
1405 - added all the meta classes to the immutable list and
1406 set it to inline the accessors
1407 - fix import to allow Sub::Exporter like { into => }
1408 and { into_level => } (perigrin)
1409 - exposed and documented init_meta() to allow better
1410 embedding and extending of Moose (perigrin)
1413 - complete re-organization of the test suite
1414 - added some new tests as well
1415 - finally re-enabled the Moose::POOP test since
1416 the new version of DBM::Deep now works again
1419 * Moose::Meta::Class
1420 - fixed very odd and very nasty recursion bug with
1422 - added tests for this (eilara)
1424 * Moose::Meta::Attribute
1425 Moose::Meta::Method::Constructor
1426 Moose::Meta::Method::Accessor
1427 - fixed issue with overload::Overloaded getting called
1428 on non-blessed items. (RT #29269)
1429 - added tests for this
1431 * Moose::Meta::Method::Accessor
1432 - fixed issue with generated accessor code making
1433 assumptions about hash based classes (thanks to dexter)
1435 * Moose::Coookbook::Snacks
1436 - these are bits of documentation, not quite as big as
1437 Recipes but which have no clear place in the module docs.
1438 So they are Snacks! (horray for castaway++)
1440 * Moose::Cookbook::Recipe4
1441 - updated it to use the new ArrayRef[MyType] construct
1442 - updated the accompanying test as well
1444 +++ Major Refactor of the Type Constraint system +++
1445 +++ with new features added as well +++
1447 * Moose::Util::TypeConstraint
1448 - no longer uses package variable to keep track of
1449 the type constraints, now uses the an instance of
1450 Moose::Meta::TypeConstraint::Registry to do it
1451 - added more sophisticated type notation parsing
1453 - added tests for this
1455 * Moose::Meta::TypeConstraint
1456 - some minor adjustments to make subclassing easier
1457 - added the package_defined_in attribute so that we
1458 can track where the type constraints are created
1460 * Moose::Meta::TypeConstraint::Union
1461 - this is now been refactored to be a subclass of
1462 Moose::Meta::TypeConstraint
1464 * Moose::Meta::TypeCoercion::Union
1465 - this has been added to service the newly refactored
1466 Moose::Meta::TypeConstraint::Union and is itself
1467 a subclass of Moose::Meta::TypeCoercion
1469 * Moose::Meta::TypeConstraint::Parameterized
1470 - added this module (taken from MooseX::AttributeHelpers)
1471 to help construct nested collection types
1472 - added tests for this
1474 * Moose::Meta::TypeConstraint::Registry
1475 - added this class to keep track of type constraints
1477 0.25 Mon. Aug. 13, 2007
1479 - Documentation update to reference Moose::Util::TypeConstraints
1480 under 'isa' in 'has' for how to define a new type
1481 (thanks to shlomif).
1483 * Moose::Meta::Attribute
1484 - required attributes now will no longer accept undef
1485 from the constructor, even if there is a default and lazy
1486 - added tests for this
1487 - default subroutines must return a value which passes the
1489 - added tests for this
1491 * Moose::Meta::Attribute
1492 * Moose::Meta::Method::Constructor
1493 * Moose::Meta::Method::Accessor
1494 - type-constraint tests now handle overloaded objects correctly
1495 in the error message
1496 - added tests for this (thanks to EvanCarroll)
1498 * Moose::Meta::TypeConstraint::Union
1499 - added (has_)hand_optimized_constraint to this class so that
1500 it behaves as the regular Moose::Meta::TypeConstraint does.
1503 - large refactoring of this code
1504 - added several more tests
1505 - tests for subtle conflict resolition issues
1506 added, but not currently running
1509 * Moose::Cookbook::Recipe7
1510 - added new recipe for augment/inner functionality
1512 - added test for this
1515 - a formal definition of roles (still in progress)
1518 - utilities for easier working with Moose classes
1519 - added tests for these
1522 - This contains Moose specific test functions
1523 - added tests for these
1525 0.24 Tues. July 3, 2007
1526 ~ Some doc updates/cleanup ~
1528 * Moose::Meta::Attribute
1529 - added support for roles to be given as parameters
1530 to the 'handles' option.
1531 - added tests and docs for this
1532 - the has '+foo' attribute form now accepts changes to
1533 the lazy option, and the addition of a handles option
1534 (but not changing the handles option)
1535 - added tests and docs for this
1538 - required methods are now fetched using find_method_by_name
1539 so that required methods can come from superclasses
1540 - adjusted tests for this
1542 0.23 Mon. June 18, 2007
1543 * Moose::Meta::Method::Constructor
1544 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1545 * Moose::Meta::Class
1546 - Modify make_immutable to work with the new Class::MOP immutable
1547 mechanism + POD + very basic test (groditi)
1548 * Moose::Meta::Attribute
1549 - Fix handles to use goto() so that caller() comes out properly on
1550 the other side (perigrin)
1552 0.22 Thurs. May 31, 2007
1553 * Moose::Util::TypeConstraints
1554 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1555 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1556 prototypes for functions
1557 - added the ClassName type constraint, this checks for strings
1558 which will respond true to ->isa(UNIVERSAL).
1559 - added tests and docs for this
1560 - subtyping just in name now works correctly by making the
1561 default for where be { 1 }
1562 - added test for this
1564 * Moose::Meta::Method::Accessor
1565 - coerce and lazy now work together correctly, thanks to
1566 merlyn for finding this bug
1567 - tests added for this
1568 - fix reader presedence bug in Moose::Meta::Attribute + tests
1571 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1572 a HASH-ref and missed. This produces better error messages then
1573 having it die cause undef is not a HASH.
1574 - added tests for this
1576 0.21 Thursday, May 2nd, 2007
1578 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1579 - modified unimport to remove super and inner along with the rest
1580 - altered unimport tests to handle this
1583 - altered super export to populate SUPER_SLOT
1585 * Moose::Meta::Class
1586 - altered augment and override modifier application to use *_SLOT
1587 - modified tests for these to unimport one test class each to test
1590 - fixed issue where custom attribute metaclasses
1591 where not handled correctly in roles
1592 - added tests for this
1594 * Moose::Meta::Class
1595 - fixed issue where extending metaclasses with
1596 roles would blow up. Thanks to Aankhen`` for
1597 finding this insidious error, and it's solution.
1599 ~~ lots of spelling and grammer fixes in the docs,
1600 many many thanks to rlb3 and Aankhen for these :)
1602 0.20 Friday, April 6th, 2007
1603 >> I messed up the SKIP logic in one test
1604 so this release is just to fix that.
1607 - 'has' now also accepts an ARRAY ref
1608 to create multiple attrs (see docs)
1609 (thanks to konobi for this)
1610 - added tests and docs
1612 0.19 Thurs. April 5th, 2007
1613 ~~ More documentation updates ~~
1615 * Moose::Util::TypeConstraints
1616 - 'type' now supports messages as well
1617 thanks to phaylon for finding this
1618 - added tests for this
1619 - added &list_all_type_constraints and
1620 &list_all_builtin_type_constraints
1621 functions to facilitate introspection.
1623 * Moose::Meta::Attribute
1624 - fixed regexp 'handles' declarations
1625 to build the list of delegated methods
1626 correctly (and not override important
1627 things like &new) thanks to ashleyb
1629 - added tests and docs for this
1630 - added the 'documentation' attributes
1631 so that you can actually document your
1632 attributes and inspect them through the
1634 - added tests and docs for this
1636 * Moose::Meta::Class
1637 - when loading custom attribute metaclasses
1638 it will first look in for the class in the
1639 Moose::Meta::Attribute::Custom::$name, and
1640 then default to just loading $name.
1641 - added tests and docs for this
1643 * Moose::Meta::TypeConstraint
1644 - type constraints now stringify to their names.
1645 - added test for this
1648 - added tests to assure we work with Module::Refresh
1649 - added stricter test skip logic in the Moose POOP
1650 test, ask Rob Kinyon why.
1651 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1653 0.18 Sat. March 10, 2007
1654 ~~ Many, many documentation updates ~~
1657 - We now use Class::MOP::load_class to
1659 - added tests to show types and subtypes
1660 working with Declare::Constraints::Simple
1661 and Test::Deep as constraint engines.
1664 !! You must have Class::MOP 0.37_001 !!
1665 !! for this developer release to work !!
1667 This release was primarily adding the immutable
1668 feature to Moose. An immutable class is one which
1669 you promise not to alter. When you set the class
1670 as immutable it will perform various bits of
1671 memoization and inline certain part of the code
1672 (constructors, destructors and accessors). This
1673 minimizes (and in some cases totally eliminates)
1674 one of Moose's biggest performance hits. This
1675 feature is not on by default, and is 100% optional.
1676 It has several configurable bits as well, so you
1677 can pick and choose to your specific needs.
1679 The changes involved in this were fairly wide and
1680 highly specific, but 100% backwards compatible, so
1681 I am not going to enumerate them here. If you are
1682 truely interested in what was changed, please do
1685 0.17 Tues. Nov. 14, 2006
1686 * Moose::Meta::Method::Accessor
1687 - bugfix for read-only accessors which
1688 are have a type constraint and lazy.
1689 Thanks to chansen for finding it.
1691 0.16 Tues. Nov. 14, 2006
1693 There are some speed improvements in this release,
1694 but they are only the begining, so stay tuned.
1697 - BUILDALL and DEMOLISHALL no longer get
1698 called unless they actually need to be.
1699 This gave us a signifigant speed boost
1700 for the cases when there is no BUILD or
1701 DEMOLISH method present.
1703 * Moose::Util::TypeConstraints
1704 * Moose::Meta::TypeConstraint
1705 - added an 'optimize_as' option to the
1706 type constraint, which allows for a
1707 hand optimized version of the type
1708 constraint to be used when possible.
1709 - Any internally created type constraints
1710 now provide an optimized version as well.
1712 0.15 Sun. Nov. 5, 2006
1714 This version of Moose *must* have Class::MOP 0.36 in order
1715 to work correctly. A number of small internal tweaks have
1716 been made in order to be compatible with that release.
1718 * Moose::Util::TypeConstraints
1719 - added &unimport so that you can clean out
1720 your class namespace of these exported
1723 * Moose::Meta::Class
1724 - fixed minor issue which occasionally
1725 comes up during global destruction
1727 - moved Moose::Meta::Method::Overriden into
1731 - moved Moose::Meta::Role::Method into
1734 * Moose::Meta::Attribute
1735 - changed how we do type checks so that
1736 we reduce the overall cost, but still
1739 - moved accessor generation methods to
1740 Moose::Meta::Method::Accessor to
1741 conform to the API changes from
1744 * Moose::Meta::TypeConstraint
1745 - changed how constraints are compiled
1746 so that we do less recursion and more
1747 iteration. This makes the type check
1749 - moved Moose::Meta::TypeConstraint::Union
1752 * Moose::Meta::Method::Accessor
1753 - created this from methods formerly found in
1754 Moose::Meta::Attribute
1756 * Moose::Meta::Role::Method
1757 - moved this from Moose::Meta::Role
1759 * Moose::Meta::Method::Overriden
1760 - moved this from Moose::Meta::Class
1762 * Moose::Meta::TypeConstraint::Union
1763 - moved this from Moose::Meta::TypeConstraint
1765 0.14 Mon. Oct. 9, 2006
1767 * Moose::Meta::Attribute
1768 - fixed lazy attributes which were not getting
1769 checked with the type constraint (thanks ashley)
1770 - added tests for this
1771 - removed the over-enthusiastic DWIMery of the
1772 automatic ArrayRef and HashRef defaults, it
1773 broke predicates in an ugly way.
1774 - removed tests for this
1776 0.13 Sat. Sept. 30, 2006
1778 This version of Moose *must* have Class::MOP 0.35 in order
1779 to work correctly. A number of small internal tweaks have
1780 been made in order to be compatible with that release.
1783 - Removed the use of UNIVERSAL::require to be a better
1784 symbol table citizen and remove a dependency
1785 (thanks Adam Kennedy)
1787 **~~ removed experimental & undocumented feature ~~**
1788 - commented out the 'method' and 'self' keywords, see the
1789 comments for more info.
1792 - added a FAQ and WTF files to document frequently
1793 asked questions and common problems
1795 * Moose::Util::TypeConstraints
1796 - added GlobRef and FileHandle type constraint
1797 - added tests for this
1799 * Moose::Meta::Attribute
1800 - if your attribute 'isa' ArrayRef of HashRef, and you have
1801 not explicitly set a default, then make the default DWIM.
1802 This will also work for subtypes of ArrayRef and HashRef
1804 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1805 - new test added for this (thanks to ashley)
1808 - added basic support for runtime role composition
1809 but this is still *highly experimental*, so feedback
1810 is much appreciated :)
1811 - added tests for this
1813 * Moose::Meta::TypeConstraint
1814 - the type constraint now handles the coercion process
1815 through delegation, this is to support the coercion
1818 * Moose::Meta::TypeConstraint::Union
1819 - it is now possible for coercions to be performed
1821 - added tests for this (thanks to konobi)
1823 * Moose::Meta::TypeCoercion
1824 - properly capturing error when type constraint
1828 - Scalar::Util 1.18 is bad on Win32, so temporarily
1829 only require version 1.17 for Win32 and cygwin.
1830 (thanks Adam Kennedy)
1832 0.12 Sat. Sept. 1, 2006
1834 - Recipe5 (subtypes & coercion) has been written
1837 - fixed "bad meta" error message to be more descriptive
1838 - fixed &unimport to not remove the &inner and &super
1839 keywords because we need to localize them.
1840 - fixed number of spelling/grammer issues, thanks Theory :)
1842 **~~ experimental & undocumented feature ~~**
1843 - added the method and self keywords, they are basically
1844 just sugar, and they may not stay around.
1847 - added &dump method to easily Data::Dumper
1850 * Moose::Meta::TypeConstraint
1851 - added the &is_a_type_of method to check both the current
1852 and the subtype of a method (similar to &isa with classes)
1855 - this is now a subclass of Class::MOP::Module, and no longer
1856 creates the _role_meta ugliness of before.
1857 - fixed tests to reflect this change
1859 0.11 Wed. July 12, 2006
1861 - added an &unimport method to remove all the keywords
1862 that Moose will import, simply add 'no Moose' to the
1863 bottom of your class file.
1866 - fixed some test failures caused by a forgotten test
1869 0.10 Thurs. July 6, 2006
1871 - improved error message when loading modules so
1872 it is less confusing when you load a role.
1873 - added &calculate_all_roles method to
1874 Moose::Meta::Class and Moose::Meta::Role
1877 This module has been tested against Class::MOP 0.30
1878 but it does not yet utilize the optimizations
1879 it makes available. Stay tuned for that ;)
1881 0.09_03 Fri. June 23, 2006
1882 ++ DEVELOPER RELEASE ++
1884 - 'use strict' and 'use warnings' are no longer
1885 needed in Moose classes, Moose itself will
1886 turn them on for you.
1887 - added tests for this
1888 - moved code from exported subs to private methods
1889 in Moose::Meta::Class
1892 - as with Moose, strict and warnings are
1893 automatically turned on for you.
1894 - added tests for this
1897 - now handles an edge case for override errors
1898 - added tests for this
1899 - added some more edge case tests
1901 0.09_02 Tues. May 16, 2006
1902 ++ DEVELOPER RELEASE ++
1904 - added prototypes to the exported subs
1908 - added prototypes to the exported subs
1911 * Moose::Util::TypeConstraints
1912 - cleaned up prototypes for the subs
1915 0.09_01 Fri. May 12, 2006
1916 ++ DEVELOPER RELEASE ++
1917 - This release works in combination with
1918 Class::MOP 0.29_01, it is a developer
1919 release because it uses the a new
1920 instance sub-protocol and a fairly
1921 complete Role implementation. It has
1922 not yet been optimized, so it slower
1923 the the previous CPAN version. This
1924 release also lacks good updated docs,
1925 the official release will have updated docs.
1928 - refactored the keyword exports
1929 - 'with' now checks Role validaity and
1930 accepts more than one Role at a time
1931 - 'extends' makes metaclass adjustments as
1932 needed to ensure metaclass compatibility
1935 - refactored the keyword exports
1936 - 'with' now checks Role validaity and
1937 accepts more than one Role at a time
1939 * Moose::Util::TypeConstraints
1940 - added the 'enum' keyword for simple
1941 string enumerations which can be used as
1943 - see example of usage in t/202_example.t
1946 - more careful checking of params to new()
1949 - much work done on the role composition
1950 - many new tests for conflict detection
1951 and composition edge cases
1952 - not enough documentation, I suggest
1953 looking at the tests
1955 * Moose::Meta::Instance
1956 - added new Instance metaclass to support
1957 the new Class::MOP instance protocol
1959 * Moose::Meta::Class
1960 - some small changes to support the new
1962 - some small additions to support Roles
1964 * Moose::Meta::Attribute
1965 - some improvements to the accessor generation code
1967 - some small changes to support the new
1969 - (still somewhat) experimental delegation support
1970 with the 'handles' option
1971 - added several tests for this
1972 - no docs for this yet
1974 0.05 Thurs. April 27, 2006
1976 - keywords are now exported with Sub::Exporter
1977 thanks to chansen for this commit
1978 - has keyword now takes a 'metaclass' option
1979 to support custom attribute meta-classes
1980 on a per-attribute basis
1981 - added tests for this
1982 - the 'has' keyword not accepts inherited slot
1983 specifications (has '+foo'). This is still an
1984 experimental feature and probably not finished
1985 see t/038_attribute_inherited_slot_specs.t for
1986 more details, or ask about it on #moose
1987 - added tests for this
1990 - keywords are now exported with Sub::Exporter
1992 * Moose::Utils::TypeConstraints
1993 - reorganized the type constraint hierarchy, thanks
1994 to nothingmuch and chansen for his help and advice
1996 - added some tests for this
1997 - keywords are now exported with Sub::Exporter
1998 thanks to chansen for this commit
2000 * Moose::Meta::Class
2001 - due to changes in Class::MOP, we had to change
2002 construct_instance (for the better)
2004 * Moose::Meta::Attribute
2005 - due to changes in Class::MOP, we had to add the
2006 initialize_instance_slot method (it's a good thing)
2008 * Moose::Meta::TypeConstraint
2009 - added type constraint unions
2010 - added tests for this
2011 - added the is_subtype_of predicate method
2012 - added tests for this
2014 0.04 Sun. April 16th, 2006
2016 - Roles can now consume other roles
2017 - added tests for this
2018 - Roles can specify required methods now with
2019 the requires() keyword
2020 - added tests for this
2023 - ripped out much of it's guts ,.. much cleaner now
2024 - added required methods and correct handling of
2025 them in apply() for both classes and roles
2026 - added tests for this
2027 - no longer adds a does() method to consuming classes
2028 it relys on the one in Moose::Object
2029 - added roles attribute and some methods to support
2030 roles consuming roles
2032 * Moose::Meta::Attribute
2033 - added support for triggers on attributes
2034 - added tests for this
2035 - added support for does option on an attribute
2036 - added tests for this
2038 * Moose::Meta::Class
2039 - added support for attribute triggers in the
2041 - added tests for this
2044 - Moose no longer creates a subtype for your class
2045 if a subtype of the same name already exists, this
2046 should DWIM in 99.9999% of all cases
2048 * Moose::Util::TypeConstraints
2049 - fixed bug where incorrect subtype conflicts were
2051 - added test for this
2054 - this class can now be extended with 'use base' if
2055 you need it, it properly loads the metaclass class now
2056 - added test for this
2058 0.03_02 Wed. April 12, 2006
2060 - you must now explictly use Moose::Util::TypeConstraints
2061 it no longer gets exported for you automatically
2064 - new() now accepts hash-refs as well as key/value lists
2065 - added does() method to check for Roles
2066 - added tests for this
2068 * Moose::Meta::Class
2069 - added roles attribute along with the add_role() and
2071 - added tests for this
2074 - now adds a does() method to consuming classes
2075 which tests the class's hierarchy for roles
2076 - added tests for this
2078 0.03_01 Mon. April 10, 2006
2080 - added new Role recipe (no content yet, only code)
2083 - added 'with' keyword for Role support
2084 - added test and docs for this
2085 - fixed subtype quoting bug
2086 - added test for this
2090 - added test and docs
2092 * Moose::Util::TypeConstraints
2093 - added the message keyword to add custom
2094 error messages to type constraints
2097 - the meta role to support Moose::Role
2098 - added tests and docs
2100 * Moose::Meta::Class
2101 - moved a number of things from Moose.pm
2102 to here, they should have been here
2105 * Moose::Meta::Attribute
2106 - moved the attribute option macros here
2107 instead of putting them in Moose.pm
2109 * Moose::Meta::TypeConstraint
2110 - added the message attributes and the
2112 - added tests and docs for this
2114 0.03 Thurs. March 30, 2006
2116 - added the Moose::Cookbook with 5 recipes,
2117 describing all the stuff Moose can do.
2120 - fixed an issue with &extends super class loading
2121 it now captures errors and deals with inline
2122 packages correctly (bug found by mst, solution
2124 - added super/override & inner/augment features
2125 - added tests and docs for these
2128 - BUILDALL now takes a reference of the %params
2129 that are passed to &new, and passes that to
2132 * Moose::Util::TypeConstraints
2133 - Type constraints now survive runtime reloading
2134 - added test for this
2136 * Moose::Meta::Class
2137 - fixed the way attribute defaults are handled
2138 during instance construction (bug found by chansen)
2140 * Moose::Meta::Attribute
2141 - read-only attributes now actually enforce their
2142 read-only-ness (this corrected in Class::MOP as
2145 0.02 Tues. March 21, 2006
2147 - many more tests, fixing some bugs and
2149 - &extends now loads the base module with
2151 - added UNIVERSAL::require to the
2154 - each new Moose class will also create
2155 and register a subtype of Object which
2156 correspond to the new Moose class.
2157 - the 'isa' option in &has now only
2158 accepts strings, and will DWIM in
2161 * Moose::Util::TypeConstraints
2162 - added type coercion features
2163 - added tests for this
2164 - added support for this in attributes
2165 and instance construction
2167 - type construction no longer creates a
2168 function, it registers the type instead.
2169 - added several functions to get the
2173 - BUILDALL and DEMOLISHALL were broken
2174 because of a mis-named hash key, Whoops :)
2176 * Moose::Meta::Attribute
2177 - adding support for coercion in the
2178 autogenerated accessors
2180 * Moose::Meta::Class
2181 - adding support for coercion in the
2182 instance construction
2184 * Moose::Meta::TypeConstraint
2185 * Moose::Meta::TypeCoercion
2186 - type constraints and coercions are now
2187 full fledges meta-objects
2189 0.01 Wed. March 15, 2006
2190 - Moooooooooooooooooose!!!