1 Revision history for Perl extension Moose
3 0.68 Wed, February 4, 2009
5 - Many spelling, typo, and formatting fixes by daxim.
7 * Moose::Manual::Attributes
8 - The NAME section in the POD used "Attribute" so search.cpan
9 didn't resolve links from other documents properly.
11 * Moose::Meta::Method::Overriden
12 - Now properly spelled as Overridden. Thanks to daxim for
15 0.67 Tue, February 3, 2009
17 - Lots of little typo fixes and a few clarifications. Several
18 pages didn't have proper titles, and so weren't actually
19 visible on search.cpan.org. Thanks to hanekomu for a variety
20 of fixes and formatting improvements.
22 0.66 Tue, February 3, 2009
24 - This is a brand new, extensive manual for Moose. This aims to
25 provide a complete introduction to all of Moose's
26 features. This work was funded as part of the Moose docs grant
27 from TPF. (Dave Rolsky)
29 * Moose::Meta::Attribute
30 - Added a delegation_metaclass method to replace a hard-coded
31 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
33 * Moose::Util::TypeConstraints
34 - If you created a subtype and passed a parent that Moose didn't
35 know about, it simply ignored the parent. Now it automatically
36 creates the parent as a class type. This may not be what you
37 want, but is less broken than before. (Dave Rolsky)
39 * Moose::Util::TypeConstraints
40 - This module tried throw errors by calling Moose->throw_error,
41 but it did not ensure that Moose was loaded first. This could
42 cause very unhelpful errors when it tried to throw an error
43 before Moose was loaded. (Dave Rolsky)
45 * Moose::Util::TypeConstraints
46 - You could declare a name with subtype such as "Foo!Bar" that
47 would be allowed, but if you used it in a parameterized type
48 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
49 vetting on names created via the sugar functions, so that they
50 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
52 0.65 Thu, January 22, 2008
53 * Moose and Moose::Meta::Method::Overridden
54 - If an overridden method called super(), and then the
55 superclass's method (not overridden) _also_ called super(),
56 Moose went into an endless recursion loop. Test provided by
57 Chris Prather. (Dave Rolsky)
59 * Moose::Meta::TypeConstraint
60 - All methods are now documented. (gphat)
62 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
63 - Fixed some bogus failures that occurred because we tried to
64 validate filesystem paths in a very ad-hoc and
65 not-quite-correct way. (Dave Rolsky)
67 * Moose::Util::TypeConstraints
68 - Added maybe_type to exports. See docs for details. (rjbs)
71 - Added Moose::Util::TypeConstraints to the SEE ALSO
75 - Methods created via an attribute can now fulfill a "requires"
76 declaration for a role. (nothingmuch)
78 * Moose::Meta::Method::*
79 - Stack traces from inlined code will now report its line and
80 file as being in your class, as opposed to in Moose
83 0.64 Wed, December 31, 2008
84 * Moose::Meta::Method::Accessor
85 - Always inline predicate and clearer methods (Sartak)
87 * Moose::Meta::Attribute
88 - Support for parameterized traits (Sartak)
89 - verify_against_type_constraint method to avoid duplication
90 and enhance extensibility (Sartak)
93 - Tests (but no support yet) for parameterized traits (Sartak)
96 - Require Class::MOP 0.75+, which has the side effect of making
97 sure we work on Win32. (Dave Rolsky)
99 0.63 Mon, December 8, 2008
101 - Some small grammar tweaks and bug fixes in non-Moose example
104 0.62_02 Fri, December 5, 2008
105 * Moose::Meta::Role::Application::ToClass
106 - When a class does not provide all of a role's required
107 methods, the error thrown now mentions all of the missing
108 methods, as opposed to just the first one found. Requested by
109 Curtis Poe (RT #41119). (Dave Rolsky)
111 * Moose::Meta::Method::Constructor
112 - Moose will no longer inline a constructor for your class
113 unless it inherits its constructor from Moose::Object, and
114 will warn when it doesn't inline. If you want to force
115 inlining anyway, pass "replace_constructor => 1" to
116 make_immutable. Addresses RT #40968, reported by Jon
117 Swartz. (Dave Rolsky)
118 - The quoting of default values could be broken if the default
119 contained a single quote ('). Now we use quotemeta to escape
120 anything potentially dangerous in the defaults. (Dave Rolsky)
122 0.62_01 Wed, December 3, 2008
124 - use the method->execute API for BUILDALL
125 and DEMOLISHALL (Sartak)
127 * Moose::Util::TypeConstraints
128 - We now make all the type constraint meta classes immutable
129 before creating the default types provided by Moose. This
130 should make loading Moose a little faster. (Dave Rolsky)
132 0.62 Wed November 26, 2008
133 * Moose::Meta::Role::Application::ToClass
134 Moose::Meta::Role::Application::ToRole
135 - fixed issues where excluding and aliasing the
136 same methods for a single role did not work
137 right (worked just fine with multiple
139 - added test for this (stevan)
141 * Moose::Meta::Role::Application::RoleSummation
142 - fixed the error message when trying to compose
143 a role with a role it excludes (Sartak)
146 - Catch another case where recursion caused the value
147 of $CALLER to be stamped on (t0m)
148 - added test for this (t0m)
151 - Remove the make_immutable keyword, which has been
152 deprecated since April. It breaks metaclasses that
153 use Moose without no Moose (Sartak)
155 * Moose::Meta::Attribute
156 - Removing an attribute from a class now also removes delegation
157 (handles) methods installed for that attribute (t0m)
158 - added test for this (t0m)
160 * Moose::Meta::Method::Constructor
161 - An attribute with a default that looked like a number (but was
162 really a string) would accidentally be treated as a number
163 when the constructor was made immutable (perigrin)
164 - added test for this (perigrin)
167 - create method for constructing a role
169 - added test for this (Sartak)
170 - anonymous roles! (Sartak)
171 - added test for this (Sartak)
174 - more consistent error messages (Sartak)
176 * Moose::Cookbook::Roles::Recipe1
177 - attempt to explain why a role that just requires
178 methods is useful (Sartak)
180 0.61 Fri November 7, 2008
181 * Moose::Meta::Attribute
182 - When passing a role to handles, it will be loaded if necessary
186 - Method objects returned by get_method (and other methods)
187 Could end up being returned without an associated_metaclass
188 attribute. Removing get_method_map, which is provided by
189 Class::MOP::Class, fixed this. The Moose version did nothing
190 different from its parent except introduce a bug. (Dave Rolsky)
191 - added tests for this (jdv79)
194 - Added a $VERSION to all .pm files which didn't have one. Fixes
195 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
197 * Moose::Cookbook::Basics::Recipe4
198 * Moose::Cookbook::Basics::Recipe6
199 - These files had spaces on the first line of the SYNOPSIS, as
200 opposed to a totally empty line. According to RT #40432, this
201 confuses POD parsers. (Dave Rolsky)
203 0.60 Fri October 24, 2008
205 - Passing "-traits" when loading Moose caused the Moose.pm
206 exports to be broken. Reported by t0m. (Dave Rolsky)
207 - Tests for this bug. (t0m)
210 - Change resolve_metaclass alias to use the new
211 load_first_existing_class function. This makes it a lot
212 simpler, and also around 5 times faster. (t0m)
213 - Add caching to resolve_metaclass_alias, which gives an order
214 of magnitude speedup to things which repeatedly call the
215 Moose::Meta::Attribute->does method, notably MooseX::Storage
218 * Moose::Util::TypeConstraint
219 - Put back the changes for parameterized constraints that
220 shouldn't have been removed in 0.59. We still cannot parse
221 them, but MooseX modules can create them in some other
222 way. See the 0.58 changes for more details. (jnapiorkowski)
223 - Changed the way subtypes are created so that the job is
224 delegated to a type constraint parent. This clears up some
225 hardcoded checking and should allow correct subtypes of
226 Moose::Meta::Type::Constraint. Don't rely on this new API too
227 much (create_child_type) because it may go away in the
228 future. (jnapiorkowski)
230 * Moose::Meta::TypeConstraint::Union
231 - Type constraint names are sorted as strings, not numbers.
234 * Moose::Meta::TypeConstraint::Parameterizable
235 - New parameterize method. This can be used as a factory method
236 to make a new type constraint with a given parameterized
237 type. (jnapiorkowski)
238 - added tests (jnapiorkowski)
240 0.59 Tue October 14, 2008
242 - Add abridged documentation for builder/default/initializer/
243 predicate, and link to more details sections in
244 Class::MOP::Attribute. (t0m)
246 * Moose::Util::TypeConstraints
247 - removed prototypes from all but the &-based stuff (mst)
249 * Moose::Util::TypeConstraints
250 - Creating a anonymous subtype with both a constraint and a
251 message failed with a very unhelpful error, but should just
252 work. Reported by t0m. (Dave Rolsky)
255 - Some tests that used Test::Warn if it was available failed
256 with older versions of Test::Warn. Reported by Fayland. (Dave
258 - Test firing behavior of triggers in relation to builder/default/
260 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
261 kinds of supported type. (t0m)
264 - In create(), do not pass "roles" option to the superclass
265 - added related test that creates an anon metaclass with
268 * Moose::Meta::TypeConstraint::Class
269 * Moose::Meta::TypeConstraint::Role
270 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
271 other types (as per change in 0.55_02). (t0m)
273 * Moose::Meta::TypeConstraint::Registry
274 - Fix warning when dealing with unknown type names (t0m)
276 * Moose::Util::TypeConstraints
277 - Reverted changes from 0.58 related to handle parameterized
278 types. This caused random failures on BSD and Win32 systems,
279 apparently related to the regex engine. This means that Moose
280 can no longer parse structured type constraints like
281 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
282 supported in a slightly different way via MooseX::Types some
283 time in the future. (Dave Rolsky)
285 0.58 Sat September 20, 2008
286 !! This release has an incompatible change regarding !!
287 !! how roles add methods to a class !!
289 * Roles and role application
290 ! Roles now add methods by calling add_method, not
291 alias_method. They make sure to always provide a method
292 object, which will be cloned internally. This means that it is
293 now possible to track the source of a method provided by a
294 role, and even follow its history through intermediate roles.
296 This means that methods added by a role now show up when
297 looking at a class's method list/map. (Dave Rolsky)
300 - From this release on, we'll try to maintain a list of
301 conflicting modules, and warn you if you have one
302 installed. For example, this release conflicts with ...
303 - MooseX::Singleton <= 0.11
304 - MooseX::Params::Validate <= 0.05
307 In general, we try to not break backwards compatibility for
308 most Moose users, but MooseX modules and other code which
309 extends Moose's metaclasses is often affected by very small
310 changes in the Moose internals.
312 * Moose::Meta::Method::Delegation
313 * Moose::Meta::Attribute
314 - Delegation methods now have their own method class. (Dave
317 * Moose::Meta::TypeConstraint::Parameterizable
318 - Added a new method 'parameterize' which is basically a factory
319 for the containing constraint. This makes it easier to create
320 new types of parameterized constraints. (jnapiorkowski)
322 * Moose::Meta::TypeConstraint::Union
323 - Changed the way Union types canonicalize their names to follow
324 the normalized TC naming rules, which means we strip all
325 whitespace. (jnapiorkowski)
327 * Moose::Util::TypeConstraints
328 - Parameter and Union args are now sorted, this makes Int|Str
329 the same constraint as Str|Int. (jnapiorkowski)
330 - Changes to the way Union types are parsed to more correctly
331 stringify their names. (jnapiorkowski)
332 - When creating a parameterized type, we now use the new
333 parameterize method. (jnapiorkowski)
334 - Incoming type constraint strings are now normalized to remove
335 all whitespace differences. (jnapiorkowski)
336 - Changed the way we parse type constraint strings so that we now
337 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
338 constraints. This lays the foundation for more flexible type
339 constraint implementations.
341 * Tests and docs for all the above. (jnapiorkowski)
345 - Moose::Exporter will no longer remove a subroutine that the
346 exporting package re-exports. Moose re-exports the
347 Carp::confess function, among others. The reasoning is that we
348 cannot know whether you have also explicitly imported those
349 functions for your own use, so we err on the safe side and
350 always keep them. (Dave Rolsky)
351 - added tests for this (rafl)
354 - Changes to how we fix metaclass compatibility that are much
355 too complicated to go into. The summary is that Moose is much
356 less likely to complain about metaclass incompatibility
357 now. In particular, if two metaclasses differ because
358 Moose::Util::MetaRole was used on the two corresponding
359 classes, then the difference in roles is reconciled for the
360 subclass's metaclass. (Dave Rolsky)
361 - Squashed an warning in _process_attribute (thepler)
364 - throw exceptions (sooner) for invalid attribute names (thepler)
365 - added tests for this (thepler)
367 * Moose::Util::MetaRole
368 - If you explicitly set a constructor or destructor class for a
369 metaclass object, and then applied roles to the metaclass,
370 that explicitly set class would be lost and replaced with the
374 * Moose::Meta::Attribute
375 * Moose::Meta::Method
378 * Moose::Error::Default
379 * Moose::Error::Croak
380 * Moose::Error::Confess
381 - All instances of confess() changed to use overridable
382 C<throw_error> method. This method ultimately calls a class
383 constructor, and you can change the class being called. In
384 addition, errors now pass more information than just a string.
385 The default C<error_class> behaves like C<Carp::confess>, so
386 the behavior is not visibly different for end users.
388 0.57 Wed September 3, 2008
390 - A new bit of doc intended to introduce folks familiar with
391 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
394 - Shows examples of two classes, each done first with and then
395 without Moose. This makes a nice parallel to
396 Moose::Intro. (Dave Rolsky)
398 * Moose::Util::TypeConstraints
399 - Fixed a bug in find_or_parse_type_constraint so that it
400 accepts a Moose::Meta::TypeConstraint object as the parent
401 type, not just a name (jnapiorkowski)
402 - added tests (jnapiorkowski)
405 - If Sub::Name was not present, unimporting failed to actually
406 remove some sugar subs, causing test failures (Dave Rolsky)
408 0.56 Mon September 1, 2008
409 For those not following the series of dev releases, there are
410 several major changes in this release of Moose.
411 ! Moose::init_meta should now be called as a method. See the
414 - Major performance improvements by nothingmuch.
416 - New modules for extension writers, Moose::Exporter and
417 Moose::Util::MetaRole by Dave Rolsky.
419 - Lots of doc improvements and additions, especially in the
424 * Removed all references to the experimental-but-no-longer-needed
425 Moose::Meta::Role::Application::ToMetaclassInstance.
427 * Require Class::MOP 0.65.
429 0.55_04 Sat August 30, 2008
430 * Moose::Util::MetaRole
431 * Moose::Cookbook::Extending::Recipe2
432 - This simplifies the application of roles to any meta class, as
433 well as the base object class. Reimplemented metaclass traits
434 using this module. (Dave Rolsky)
436 * Moose::Cookbook::Extending::Recipe1
437 - This a new recipe, an overview of various ways to write Moose
438 extensions (Dave Rolsky)
440 * Moose::Cookbook::Extending::Recipe3
441 * Moose::Cookbook::Extending::Recipe4
442 - These used to be Extending::Recipe1 and Extending::Recipe2,
445 0.55_03 Fri August 29, 2008
446 * No changes from 0.55_02 except increasing the Class::MOP
447 dependency to 0.64_07.
449 0.55_02 Fri August 29, 2008
450 * Makefile.PL and Moose.pm
451 - explicitly require Perl 5.8.0+ (Dave Rolsky)
453 * Moose::Util::TypeConstraints
454 - Fix warnings from find_type_constraint if the type is not
457 * Moose::Meta::TypeConstraint
458 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
459 return false if the type you specify cannot be found in the
460 type registry, rather than throwing an unhelpful and
461 coincidental exception. (t0m).
462 - added docs & test for this (t0m)
464 * Moose::Meta::TypeConstraint::Registry
465 - add_type_constraint now throws an exception if a parameter is
467 - added docs & test for this (t0m)
469 * Moose::Cookbook::FAQ
470 - Added a faq entry on the difference between "role" and "trait"
474 - Fixed a bug that caused role composition to not see a required
475 method when that method was provided by another role being
476 composed at the same time. (Dave Rolsky)
477 - test and bug finding (tokuhirom)
479 0.55_01 Wed August 20, 2008
481 !! Calling Moose::init_meta as a function is now !!
482 !! deprecated. Please see the Moose.pm docs for details. !!
484 * Moose::Meta::Method::Constructor
485 - Fix inlined constructor so that values produced by default
486 or builder methods are coerced as required. (t0m)
487 - added test for this (t0m)
489 * Moose::Meta::Attribute
490 - A lazy attribute with a default or builder did not attempt to
491 coerce the default value. The immutable code _did_
493 - added test for this (t0m)
496 - This is a new helper module for writing "Moose-alike"
497 modules. This should make the lives of MooseX module authors
498 much easier. (Dave Rolsky)
501 * Moose::Cookbook::Meta::Recipe5
502 - Implemented metaclass traits (and wrote a recipe for it):
504 use Moose -traits => 'Foo'
506 This should make writing small Moose extensions a little
509 * Moose::Cookbook::Basics::Recipe1
510 - Removed any examples of direct hashref access, and applied an
511 editorial axe to reduce verbosity. (Dave Rolsky)
513 * Moose::Cookbook::Basics::Recipe1
514 - Also applied an editorial axe here. (Dave Rolsky)
517 * Moose::Cookbook::Extending::Recipe1
518 * Moose::Cookbook::Extending::Recipe2
519 - Rewrote extending and embedding moose documentation and
520 recipes to use Moose::Exporter (Dave Rolsky)
524 - These two modules now warn when you load them from the main
525 package "main" package, because we will not export sugar to
526 main. Previously it just did nothing. (Dave Rolsky)
529 - Now provide an init_meta method just like Moose.pm, and you
530 can call this to provide an alternate role metaclass. (Dave
531 Rolsky and nothingmuch)
532 - get_method_map now respects the package cache flag (nothingmuch)
535 - Two new methods - add_method and wrap_method_body
539 - Optimizations including allowing constructors to accept hash
540 refs, making many more classes immutable, and making
541 constructors immutable. (nothingmuch)
543 0.55 Sun August 3, 2008
544 * Moose::Meta::Attribute
545 - breaking down the way 'handles' methods are
546 created so that the process can be more easily
547 overridden by subclasses (stevan)
549 * Moose::Meta::TypeConstraint
550 - fixing what is passed into a ->message with
551 the type constraints (RT #37569)
552 - added tests for this (Charles Alderman)
554 * Moose::Util::TypeConstraints
555 - fix coerce to accept anon types like subtype can (mst)
558 - reorganized the recipes into sections - Basics, Roles, Meta,
559 Extending - and wrote abstracts for each section (Dave Rolsky)
561 * Moose::Cookbook::Basics::Recipe10
562 - A new recipe that demonstrates operator overloading
563 in combination with Moose. (bluefeet)
565 * Moose::Cookbook::Meta::Recipe1
566 - an introduction to what meta is and why you'd want to make
567 your own metaclass extensions (Dave Rolsky)
569 * Moose::Cookbook::Meta::Recipe4
570 - a very simple metaclass example (Dave Rolsky)
572 * Moose::Cookbook::Extending::Recipe1
573 - how to write a Moose-alike module to use your own object base
576 * Moose::Cookbook::Extending::Recipe2
577 - how to write modules with an API just like C<Moose.pm> (Dave
581 - Tons of fixes, both syntactical and grammatical (Dave
582 Rolsky, Paul Fenwick)
584 0.54 Thurs. July 3, 2008
585 ... this is not my day today ...
587 * Moose::Meta::Attribute
588 - fixed legal_options_for_inheritance such that
589 clone_and_inherit options still works for
590 Class::MOP::Attribute objects and therefore
591 does not break MooseX::AttributeHelpers
594 0.53 Thurs. July 3, 2008
595 * Whoops, I guess I should run 'make manifest' before
596 actually releasing the module. No actual changes
597 in this release, except the fact that it includes
598 the changes that I didn't include in the last
601 0.52 Thurs. July 3, 2008
603 - added "FEATURE REQUESTS" section to the Moose docs
604 to properly direct people (stevan) (RT #34333)
605 - making 'extends' croak if it is passed a Role since
606 this is not ever something you want to do
607 (fixed by stevan, found by obra)
608 - added tests for this (stevan)
611 - adding support for DOES (as in UNIVERSAL::DOES)
613 - added test for this
615 * Moose::Meta::Attribute
616 - added legal_options_for_inheritance (wreis)
617 - added tests for this (wreis)
619 * Moose::Cookbook::Snacks::*
620 - removed some of the unfinished snacks that should
621 not have been released yet. Added some more examples
622 to the 'Keywords' snack. (stevan)
624 * Moose::Cookbook::Style
625 - added general Moose "style guide" of sorts to the
626 cookbook (nothingmuch) (RT #34335)
629 - added more BUILDARGS tests (stevan)
631 0.51 Thurs. Jun 26, 2008
633 - add unimport so "no Moose::Role" actually does
636 * Moose::Meta::Role::Application::ToRole
637 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
638 order to provide its own implementation, that method still got
639 added to the list of required methods for consumers of
640 RoleB. Now an aliased method is only added to the list of
641 required methods if the role doing the aliasing does not
642 provide its own implementation. See Recipe 11 for an example
643 of all this. (Dave Rolsky)
644 - added tests for this
646 * Moose::Meta::Method::Constructor
647 - when a single argument that wasn't a hashref was provided to
648 an immutabilized constructor, the error message was very
649 unhelpful, as opposed to the non-immutable error. Reported by
651 - added test for this (Dave Rolsky)
653 * Moose::Meta::Attribute
654 - added support for meta_attr->does("ShortAlias") (sartak)
655 - added tests for this (sartak)
656 - moved the bulk of the `handles` handling to the new
657 install_delegation method (Stevan)
660 - Added BUILDARGS, a new step in new()
662 * Moose::Meta::Role::Application::RoleSummation
663 - fix typos no one ever sees (sartak)
665 * Moose::Util::TypeConstraints
666 * Moose::Meta::TypeConstraint
667 * Moose::Meta::TypeCoercion
668 - Attempt to work around the ??{ } vs. threads issue
670 - Some null_constraint optimizations
672 0.50 Thurs. Jun 11, 2008
673 - Fixed a version number issue by bumping all modules
676 0.49 Thurs. Jun 11, 2008
677 !! This version now approx. 20-25% !!
678 !! faster with new Class::MOP 0.59 !!
680 * Moose::Meta::Attribute
681 - fixed how the is => (ro|rw) works with
682 custom defined reader, writer and accessor
684 - added docs for this (TODO).
685 - added tests for this (Thanks to Penfold)
686 - added the custom attribute alias for regular
687 Moose attributes which is "Moose"
688 - fix builder and default both being used
693 Moose::Meta::Attribute
695 Moose::Meta::Role::Composite
696 Moose::Util::TypeConstraints
697 - switched usage of reftype to ref because
701 - changing add_package_symbol to use the new
705 - fixed how DEMOLISHALL is called so that it
706 can be overrided in subclasses (thanks to Sartak)
707 - added test for this (thanks to Sartak)
709 * Moose::Util::TypeConstraints
710 - move the ClassName type check code to
711 Class::MOP::is_class_loaded (thanks to Sartak)
713 * Moose::Cookbook::Recipe11
714 - add tests for this (thanks to tokuhirom)
716 0.48 Thurs. May 29, 2008
717 (early morning release engineering)--
719 - fixing the version in Moose::Meta::Method::Destructor
720 which was causing the indexer to choke
722 0.47 Thurs. May 29, 2008
723 (late night release engineering)--
725 - fixing the version is META.yml, no functional
726 changes in this release
728 0.46 Wed. May 28, 2008
729 !! This version now approx. 20-25% !!
730 !! faster with new Class::MOP 0.57 !!
733 - some optimizations of the &initialize method
734 since it is called so often by &meta
738 - now use the get_all_package_symbols from the
739 updated Class::MOP, test suite is now 10 seconds
742 * Moose::Meta::Method::Destructor
743 - is_needed can now also be called as a class
744 method for immutablization to check if the
745 destructor object even needs to be created
748 * Moose::Meta::Method::Destructor
749 Moose::Meta::Method::Constructor
750 - added more descriptive error message to help
751 keep people from wasting time tracking an error
752 that is easily fixed by upgrading.
754 0.45 Saturday, May 24, 2008
756 - Because of work in Class::MOP 0.57, all
757 XS based functionality is now optional
758 and a Pure Perl version is supplied
759 - the CLASS_MOP_NO_XS environment variable
760 can now be used to force non-XS versions
762 - several of the packages have been tweaked
763 to take care of this, mostly we added
764 support for the package_name and name
765 variables in all the Method metaclasses
766 - before/around/after method modifiers now
767 support regexp matching of names
768 (thanks to Takatoshi Kitano)
769 - tests added for this
770 - NOTE: this only works for classes, it
771 is currently not supported in roles,
772 but, ... patches welcome
773 - All usage of Carp::confess have been replaced
774 by Carp::croak in the "keyword" functions since
775 the stack trace is usually not helpful
778 - All usage of Carp::confess have been replaced
779 by Carp::croak in the "keyword" functions since
780 the stack trace is usually not helpful
781 - The 'has' keyword for roles now accepts the
782 same array ref form that Moose.pm does
783 (has [qw/foo bar/] => (is => 'rw', ...))
784 - added test for this
786 * Moose::Meta::Attribute
787 - trigger on a ro-attribute is no longer an
788 error, as it's useful to trigger off of the
792 - added same 'add_package_symbol' fix as in
796 - does_role now handles non-Moose classes
798 - added tests for this
799 - added the 'add_method_modifier' function
800 (thanks to Takatoshi Kitano)
802 * Moose::Util::TypeConstraints
803 - subtypes of parameterizable types now are
804 themselves parameterizable types
806 * Moose::Meta::Method::Constructor
807 - fixed bug where trigger was not being
808 called by the inlined immutable
810 - added test for this (thanks to Caelum)
812 * Moose::Meta::Role::Application::ToInstance
813 - now uses the metaclass of the instance
814 (if possible) to create the anon-class
815 (thanks Jonathan Rockway)
817 * Moose::Cookbook::Recipe22
818 - added the meta-attribute trait recipe
822 - fixed hash-ordering test bug that was
823 causing occasional cpantester failures
824 - renamed the t/000_recipe/*.t tests to be
825 more descriptive (thanks to Sartak)
827 0.44 Sat. May 10, 2008
829 - made make_immutable warning cluck to
830 show where the error is (thanks mst)
833 - BUILDALL and DEMOLISHALL now call
834 ->body when looping through the
835 methods, to avoid the overloaded
837 - fixed issue where DEMOLISHALL was
838 eating the $@ values, and so not
839 working correctly, it still kind of
840 eats them, but so does vanilla perl
841 - added tests for this
843 * Moose::Cookbook::Recipe7
844 - added new recipe for immutable
845 functionality (thanks Dave Rolsky)
847 * Moose::Cookbook::Recipe9
848 - added new recipe for builder and
849 lazy_build (thanks Dave Rolsky)
851 * Moose::Cookbook::Recipe11
852 - added new recipe for method aliasing
853 and exclusion with Roles (thanks Dave Rolsky)
856 - fixed Win32 test failure (thanks spicyjack)
858 ~ removed Build.PL and Module::Build compat
859 since Module::Install has done that.
861 0.43 Wed. April, 30, 2008
863 drink more coffee before
864 doing release engineering
866 - whoops, forgot to do the smolder tests,
867 and we broke some of the custom meta-attr
868 modules. This fixes that.
870 0.42 Mon. April 28, 2008
871 - some bad tests slipped by, nothing else
872 changed in this release (cpantesters++)
874 - upped the Class::MOP dependency to 0.55
875 since we have tests which need the C3
878 0.41 Mon. April 28, 2008
879 ~~ numerous documentation updates ~~
881 - Changed all usage of die to Carp::croak for better
882 error reporting (initial patch by Tod Hagan)
885 - the make_immutable keyword is now deprecated, don't
886 use it in any new code and please fix your old code
887 as well. There will be 2 releases, and then it will
893 - refactored the way inner and super work to avoid
894 any method/@ISA cache penalty (nothingmuch)
897 - fixing &new_object to make sure trigger gets the
898 coerced value (spotted by Charles Alderman on the
900 - added test for this
902 * Moose::Meta::Method::Constructor
903 - immutable classes which had non-lazy attributes were calling
904 the default generating sub twice in the constructor. (bug
905 found by Jesse Luehrs, fixed by Dave Rolsky)
906 - added tests for this (Dave Rolsky)
907 - fix typo in initialize_body method (nothingmuch)
909 * Moose::Meta::Method::Destructor
910 - fix typo in initialize_body method (nothingmuch)
912 * Moose::Meta::Method::Overriden
913 Moose::Meta::Method::Augmented
914 - moved the logic for these into their own
915 classes (nothingmuch)
917 * Moose::Meta::Attribute
918 - inherited attributes may now be extended without
919 restriction on the type ('isa', 'does') (Sartak)
920 - added tests for this (Sartak)
921 - when an attribute property is malformed (such as lazy without
922 a default), give the name of the attribute in the error
924 - added the &applied_traits and &has_applied_traits methods
925 to allow introspection of traits
926 - added tests for this
927 - moved 'trait' and 'metaclass' argument handling to here from
929 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
930 '+foo' syntax) (nothingmuch)
931 - added tests for this (t0m)
934 - localize $@ inside DEMOLISHALL to avoid it
935 eating $@ (found by Ernesto)
936 - added test for this (thanks to Ernesto)
938 * Moose::Util::TypeConstraints
939 - &find_type_constraint now DWIMs when given an
940 type constraint object or name (nothingmuch)
941 - &find_or_create_type_constraint superseded with a number of more
943 - find_or_create_{isa,does}_type_constraint
944 - find_or_parse_type_constraint
946 * Moose::Meta::TypeConstraint
947 Moose::Meta::TypeConstraint::Class
948 Moose::Meta::TypeConstraint::Role
949 Moose::Meta::TypeConstraint::Enum
950 Moose::Meta::TypeConstraint::Union
951 Moose::Meta::TypeConstraint::Parameterized
952 - added the &equals method for comparing two type
953 constraints (nothingmuch)
954 - added tests for this (nothingmuch)
956 * Moose::Meta::TypeConstraint
957 - add the &parents method, which is just an alias to &parent.
958 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
960 * Moose::Meta::TypeConstraint::Class
961 - added the class attribute for introspection purposes
963 - added tests for this
965 * Moose::Meta::TypeConstraint::Enum
966 Moose::Meta::TypeConstraint::Role
967 - broke these out into their own classes (nothingmuch)
969 * Moose::Cookbook::Recipe*
970 - fixed references to test file locations in the POD
971 and updated up some text for new Moose features
975 - Added &resolve_metaclass_alias, a helper function for finding an actual
976 class for a short name (e.g. in the traits list)
978 0.40 Fri. March 14, 2008
979 - I hate Pod::Coverage
981 0.39 Fri. March 14, 2008
983 - documenting the use of '+name' with attributes
984 that come from recently composed roles. It makes
985 sense, people are using it, and so why not just
986 officially support it.
987 - fixing the 'extends' keyword so that it will not
988 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
991 - added the perl -Moose=+Class::Name feature to allow
992 monkeypatching of classes in one liners
995 - fixing the 'apply_all_roles' keyword so that it will not
996 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
999 - added ->create method which now supports roles (thanks to jrockway)
1000 - added tests for this
1001 - added ->create_anon_class which now supports roles and caching of
1002 the results (thanks to jrockway)
1003 - added tests for this
1004 - made ->does_role a little more forgiving when it is
1005 checking a Class::MOP era metaclasses.
1007 * Moose::Meta::Role::Application::ToInstance
1008 - it is now possible to pass extra params to be used when
1009 a role is applied to an the instance (rebless_params)
1010 - added tests for this
1012 * Moose::Util::TypeConstraints
1013 - class_type now accepts an optional second argument for a
1014 custom message. POD anotated accordingly (groditi)
1015 - added tests for this
1016 - it is now possible to make anon-enums by passing 'enum' an
1017 ARRAY ref instead of the $name => @values. Everything else
1019 - added tests for this
1022 - making test for using '+name' on attributes consumed
1023 from a role, it works and makes sense too.
1025 * Moose::Meta::Attribute
1026 - fix handles so that it doesn't return nothing
1027 when the method cannot be found, not sure why
1028 it ever did this originally, this means we now
1029 have slightly better support for AUTOLOADed
1031 - added more delegation tests
1032 - adding ->does method to this so as to better
1033 support traits and their introspection.
1034 - added tests for this
1037 - localizing the Data::Dumper configurations so
1038 that it does not pollute others (RT #33509)
1039 - made ->does a little more forgiving when it is
1040 passed Class::MOP era metaclasses.
1042 0.38 Fri. Feb. 15, 2008
1043 * Moose::Meta::Attribute
1044 - fixed initializer to correctly do
1045 type checking and coercion in the
1047 - added tests for this
1050 - fixed some finicky tests (thanks to konobi)
1052 0.37 Thurs. Feb. 14, 2008
1054 - fixed some details in Moose::init_meta
1055 and its superclass handling (thanks thepler)
1056 - added tests for this (thanks thepler)
1057 - 'has' now dies if you don't pass in name
1059 - added the 'make_immutable' keyword as a shortcut
1062 * Moose::Meta::Class
1063 Moose::Meta::Method::Constructor
1064 Moose::Meta::Attribute
1065 - making (init_arg => undef) work here too
1066 (thanks to nothingmuch)
1068 * Moose::Meta::Attribute
1069 Moose::Meta::Method::Constructor
1070 Moose::Meta::Method::Accessor
1071 - make lazy attributes respect attr initializers (rjbs)
1072 - added tests for this
1074 * Moose::Util::TypeConstraints
1075 Moose::Util::TypeConstraints::OptimizedConstraints
1076 Moose::Meta::TypeConstraints
1077 Moose::Meta::Attribute
1078 Moose::Meta::Method::Constructor
1079 Moose::Meta::Method::Accessor
1080 - making type errors use the
1081 assigned message (thanks to Sartak)
1082 - added tests for this
1084 * Moose::Meta::Method::Destructor
1085 - making sure DESTROY gets inlined properly
1086 with successive DEMOLISH calls (thanks to manito)
1088 * Moose::Meta::Attribute
1089 Moose::Meta::Method::Accessor
1090 - fixed handling of undef with type constraints
1092 - added tests for this
1095 - added &get_all_init_args and &get_all_attribute_values
1096 (thanks to Sartak and nothingmuch)
1098 0.36 Sat. Jan. 26, 2008
1100 Moose::Meta::Attribute
1101 - role type tests now support when roles are
1102 applied to non-Moose classes (found by ash)
1103 - added tests for this (thanks to ash)
1104 - couple extra tests to boost code coverage
1106 * Moose::Meta::Method::Constructor
1107 - improved fix for handling Class::MOP attributes
1108 - added test for this
1110 * Moose::Meta::Class
1111 - handled the add_attribute($attribute_meta_object)
1113 - added test for this
1115 0.35 Tues. Jan. 22, 2008
1116 * Moose::Meta::Method::Constructor
1117 - fix to make sure even Class::MOP attributes
1118 are handled correctly (Thanks to Dave Rolsky)
1119 - added test for this (also Dave Rolsky)
1121 * Moose::Meta::Class
1122 - improved error message on _apply_all_roles,
1123 you should now use Moose::Util::apply_all_roles
1124 and you shouldnt have been using a _ prefixed
1125 method in the first place ;)
1127 0.34 Mon. Jan. 21, 2008
1128 ~~~ more misc. doc. fixes ~~~
1129 ~~ updated copyright dates ~~
1131 Moose is now a postmodern object system :)
1132 - (see the POD for details)
1134 * <<Role System Refactoring>>
1135 - this release contains a major reworking and
1136 cleanup of the role system
1137 - 100% backwards compat.
1138 - Role application now restructured into seperate
1139 classes based on type of applicants
1140 - Role summation (combining of more than one role)
1141 is much cleaner and anon-classes are no longer
1142 used in this process
1143 - new Composite role metaclass
1144 - runtime application of roles to instances
1145 is now more efficient and re-uses generated
1146 classes when applicable
1148 * <<New Role composition features>>
1149 - methods can now be excluded from a given role
1151 - methods can now be aliased to another name (and
1152 still retain the original as well)
1154 * Moose::Util::TypeConstraints::OptimizedConstraints
1155 - added this module (see above)
1157 * Moose::Meta::Class
1158 - fixed the &_process_attribute method to be called
1159 by &add_attribute, so that the API is now correct
1161 * Moose::Meta::Method::Accessor
1162 - fixed bug when passing a list of values to
1163 an accessor would get (incorrectly) ignored.
1164 Thanks to Sartak for finding this ;)
1165 - added tests for this (Sartak again)
1167 * Moose::Meta::Method::Accessor
1168 Moose::Meta::Method::Constructor
1169 Moose::Meta::Attribute
1170 Moose::Meta::TypeConstraint
1171 Moose::Meta::TypeCoercion
1172 - lots of cleanup of such things as:
1174 - type constraint handling
1175 - error handling/messages
1176 (thanks to nothingmuch)
1178 * Moose::Meta::TypeConstraint::Parameterizable
1179 - added this module to support the refactor
1180 in Moose::Meta::TypeConstraint::Parameterized
1182 * Moose::Meta::TypeConstraint::Parameterized
1183 - refactored how these types are handled so they
1184 are more generic and not confined to ArrayRef
1188 - shortened some file names for better VMS support (RT #32381)
1190 0.33 Fri. Dec. 14, 2007
1191 !! Moose now loads 2 x faster !!
1192 !! with new Class::MOP 0.49 !!
1194 ++ new oose.pm module to make command line
1195 Moose-ness easier (see POD docs for more)
1197 * Moose::Meta::Class
1199 - several tweaks to take advantage of the
1200 new method map caching in Class::MOP
1202 * Moose::Meta::TypeConstraint::Parameterized
1203 - allow subtypes of ArrayRef and HashRef to
1204 be used as a container (sartak)
1205 - added tests for this
1206 - basic support for coercion to ArrayRef and
1207 HashRef for containers (sartak)
1208 - added tests for this
1210 * Moose::Meta::TypeCoercion
1211 - coercions will now create subtypes as needed
1212 so you can now add coercions to parameterized
1213 types without having to explictly define them
1214 - added tests for this
1216 * Moose::Meta::Method::Accessor
1217 - allow subclasses to decide whether we need
1218 to copy the value into a new variable (sartak)
1220 0.32 Tues. Dec. 4, 2007
1221 * Moose::Util::TypeConstraints
1222 - fixing how subtype aliases of unions work
1223 they should inherit the parent's coercion
1224 - added tests for this
1225 - you can now define multiple coercions on
1226 a single type at different times instead of
1227 having to do it all in one place
1228 - added tests for this
1230 * Moose::Meta::TypeConstraint
1231 - there is now a default constraint of sub { 1 }
1232 instead of Moose::Util::TypeConstraints setting
1235 * Moose::Meta::TypeCoercion
1236 * Moose::Meta::TypeCoercion::Union
1237 - added the &has_coercion_for_type and
1238 &add_type_coercions methods to support the
1239 new features above (although you cannot add
1240 more type coercions for Union types)
1242 0.31 Mon. Nov. 26, 2007
1243 * Moose::Meta::Attribute
1244 - made the +attr syntax handle extending types with
1245 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1246 now works if the original foo is an ArrayRef.
1247 - added tests for this.
1248 - delegation now works even if the attribute does not
1249 have a reader method using the get_read_method_ref
1250 method from Class::MOP::Attribute.
1251 - added tests for this
1252 - added docs for this
1254 * Moose::Util::TypeConstraints
1255 - passing no "additional attribute info" to
1256 &find_or_create_type_constraint will no longer
1257 attempt to create an __ANON__ type for you,
1258 instead it will just return undef.
1259 - added docs for this
1261 0.30 Fri. Nov. 23, 2007
1262 * Moose::Meta::Method::Constructor
1263 -builder related bug in inlined constructor. (groditi)
1265 * Moose::Meta::Method::Accessor
1266 - genereate unnecessary calls to predicates and refactor
1267 code generation for runtime speed (groditi)
1269 * Moose::Util::TypeConstraints
1270 - fix ClassName constraint to introspect symbol table (mst)
1271 - added more tests for this (mst)
1272 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1273 with work correctly.
1274 - added tests for this
1277 - adding the link to Recipie 11 (written by Sartak)
1278 - adding test for SYNOPSIS code
1281 - New tests for builder bug. Upon instantiation, if an
1282 attribute had a builder, no value and was not lazy the
1283 builder default was not getting run, oops. (groditi)
1285 0.29 Tues. Nov. 13, 2007
1286 * Moose::Meta::Attribute
1287 - Fix error message on missing builder method (groditi)
1289 * Moose::Meta::Method::Accessor
1290 - Fix error message on missing builder method (groditi)
1293 - Add test to check for the correct error message when
1294 builder method is missing (groditi)
1296 0.28 Tues. Nov. 13, 2007
1297 - 0.27 packaged incorrectly (groditi)
1299 0.27 Tues. Nov. 13, 2007
1300 * Moose::Meta::Attribute
1301 - Added support for the new builder option (groditi)
1302 - Added support for lazy_build option (groditi)
1303 - Changed slot initialization for predicate changes (groditi)
1305 * Moose::Meta::Method::Accessor
1306 - Added support for lazy_build option (groditi)
1307 - Fix inline methods to work with corrected predicate
1310 * Moose::Meta::Method::Constructor
1311 - Added support for lazy_build option (groditi)
1314 - tests for builder and lazy_build (groditi)
1316 * fixing some misc. bits in the docs that
1317 got mentioned on CPAN Forum & perlmonks
1320 - fixed how required methods are handled
1321 when they encounter overriden or modified
1322 methods from a class (thanks to confound).
1323 - added tests for this
1325 * Moose::Util::TypeConstraint
1326 - fixed the type notation parser so that
1327 the | always creates a union and so is
1328 no longer a valid type char (thanks to
1329 konobi, mugwump and #moose for working
1331 - added more tests for this
1333 0.26 Thurs. Sept. 27, 2007
1336 * Parameterized Types
1337 We now support parameterized collection types, such as:
1338 ArrayRef[Int] # array or integers
1339 HashRef[Object] # a hash with object values
1340 They can also be nested:
1341 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1342 And work with the type unions as well:
1343 ArrayRef[Int | Str] # array of integers of strings
1345 * Better Framework Extendability
1346 Moose.pm is now "extendable" such that it is now much
1347 easier to extend the framework and add your own keywords
1348 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1349 section of the Moose.pm docs.
1352 In an effort to begin documenting some of the various
1353 details of Moose as well as some common idioms, we have
1354 created Moose::Cookbook::Snacks as a place to find
1355 small (easily digestable) nuggets of Moose code.
1358 ~ Several doc updates/cleanup thanks to castaway ~
1360 - converted build system to use Module::Install instead of
1361 Module::Build (thanks to jrockway)
1364 - added all the meta classes to the immutable list and
1365 set it to inline the accessors
1366 - fix import to allow Sub::Exporter like { into => }
1367 and { into_level => } (perigrin)
1368 - exposed and documented init_meta() to allow better
1369 embedding and extending of Moose (perigrin)
1372 - complete re-organization of the test suite
1373 - added some new tests as well
1374 - finally re-enabled the Moose::POOP test since
1375 the new version of DBM::Deep now works again
1378 * Moose::Meta::Class
1379 - fixed very odd and very nasty recursion bug with
1381 - added tests for this (eilara)
1383 * Moose::Meta::Attribute
1384 Moose::Meta::Method::Constructor
1385 Moose::Meta::Method::Accessor
1386 - fixed issue with overload::Overloaded getting called
1387 on non-blessed items. (RT #29269)
1388 - added tests for this
1390 * Moose::Meta::Method::Accessor
1391 - fixed issue with generated accessor code making
1392 assumptions about hash based classes (thanks to dexter)
1394 * Moose::Coookbook::Snacks
1395 - these are bits of documentation, not quite as big as
1396 Recipes but which have no clear place in the module docs.
1397 So they are Snacks! (horray for castaway++)
1399 * Moose::Cookbook::Recipe4
1400 - updated it to use the new ArrayRef[MyType] construct
1401 - updated the accompanying test as well
1403 +++ Major Refactor of the Type Constraint system +++
1404 +++ with new features added as well +++
1406 * Moose::Util::TypeConstraint
1407 - no longer uses package variable to keep track of
1408 the type constraints, now uses the an instance of
1409 Moose::Meta::TypeConstraint::Registry to do it
1410 - added more sophisticated type notation parsing
1412 - added tests for this
1414 * Moose::Meta::TypeConstraint
1415 - some minor adjustments to make subclassing easier
1416 - added the package_defined_in attribute so that we
1417 can track where the type constraints are created
1419 * Moose::Meta::TypeConstraint::Union
1420 - this is now been refactored to be a subclass of
1421 Moose::Meta::TypeConstraint
1423 * Moose::Meta::TypeCoercion::Union
1424 - this has been added to service the newly refactored
1425 Moose::Meta::TypeConstraint::Union and is itself
1426 a subclass of Moose::Meta::TypeCoercion
1428 * Moose::Meta::TypeConstraint::Parameterized
1429 - added this module (taken from MooseX::AttributeHelpers)
1430 to help construct nested collection types
1431 - added tests for this
1433 * Moose::Meta::TypeConstraint::Registry
1434 - added this class to keep track of type constraints
1436 0.25 Mon. Aug. 13, 2007
1438 - Documentation update to reference Moose::Util::TypeConstraints
1439 under 'isa' in 'has' for how to define a new type
1440 (thanks to shlomif).
1442 * Moose::Meta::Attribute
1443 - required attributes now will no longer accept undef
1444 from the constructor, even if there is a default and lazy
1445 - added tests for this
1446 - default subroutines must return a value which passes the
1448 - added tests for this
1450 * Moose::Meta::Attribute
1451 * Moose::Meta::Method::Constructor
1452 * Moose::Meta::Method::Accessor
1453 - type-constraint tests now handle overloaded objects correctly
1454 in the error message
1455 - added tests for this (thanks to EvanCarroll)
1457 * Moose::Meta::TypeConstraint::Union
1458 - added (has_)hand_optimized_constraint to this class so that
1459 it behaves as the regular Moose::Meta::TypeConstraint does.
1462 - large refactoring of this code
1463 - added several more tests
1464 - tests for subtle conflict resolition issues
1465 added, but not currently running
1468 * Moose::Cookbook::Recipe7
1469 - added new recipe for augment/inner functionality
1471 - added test for this
1474 - a formal definition of roles (still in progress)
1477 - utilities for easier working with Moose classes
1478 - added tests for these
1481 - This contains Moose specific test functions
1482 - added tests for these
1484 0.24 Tues. July 3, 2007
1485 ~ Some doc updates/cleanup ~
1487 * Moose::Meta::Attribute
1488 - added support for roles to be given as parameters
1489 to the 'handles' option.
1490 - added tests and docs for this
1491 - the has '+foo' attribute form now accepts changes to
1492 the lazy option, and the addition of a handles option
1493 (but not changing the handles option)
1494 - added tests and docs for this
1497 - required methods are now fetched using find_method_by_name
1498 so that required methods can come from superclasses
1499 - adjusted tests for this
1501 0.23 Mon. June 18, 2007
1502 * Moose::Meta::Method::Constructor
1503 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1504 * Moose::Meta::Class
1505 - Modify make_immutable to work with the new Class::MOP immutable
1506 mechanism + POD + very basic test (groditi)
1507 * Moose::Meta::Attribute
1508 - Fix handles to use goto() so that caller() comes out properly on
1509 the other side (perigrin)
1511 0.22 Thurs. May 31, 2007
1512 * Moose::Util::TypeConstraints
1513 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1514 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1515 prototypes for functions
1516 - added the ClassName type constraint, this checks for strings
1517 which will respond true to ->isa(UNIVERSAL).
1518 - added tests and docs for this
1519 - subtyping just in name now works correctly by making the
1520 default for where be { 1 }
1521 - added test for this
1523 * Moose::Meta::Method::Accessor
1524 - coerce and lazy now work together correctly, thanks to
1525 merlyn for finding this bug
1526 - tests added for this
1527 - fix reader presedence bug in Moose::Meta::Attribute + tests
1530 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1531 a HASH-ref and missed. This produces better error messages then
1532 having it die cause undef is not a HASH.
1533 - added tests for this
1535 0.21 Thursday, May 2nd, 2007
1537 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1538 - modified unimport to remove super and inner along with the rest
1539 - altered unimport tests to handle this
1542 - altered super export to populate SUPER_SLOT
1544 * Moose::Meta::Class
1545 - altered augment and override modifier application to use *_SLOT
1546 - modified tests for these to unimport one test class each to test
1549 - fixed issue where custom attribute metaclasses
1550 where not handled correctly in roles
1551 - added tests for this
1553 * Moose::Meta::Class
1554 - fixed issue where extending metaclasses with
1555 roles would blow up. Thanks to Aankhen`` for
1556 finding this insidious error, and it's solution.
1558 ~~ lots of spelling and grammer fixes in the docs,
1559 many many thanks to rlb3 and Aankhen for these :)
1561 0.20 Friday, April 6th, 2007
1562 >> I messed up the SKIP logic in one test
1563 so this release is just to fix that.
1566 - 'has' now also accepts an ARRAY ref
1567 to create multiple attrs (see docs)
1568 (thanks to konobi for this)
1569 - added tests and docs
1571 0.19 Thurs. April 5th, 2007
1572 ~~ More documentation updates ~~
1574 * Moose::Util::TypeConstraints
1575 - 'type' now supports messages as well
1576 thanks to phaylon for finding this
1577 - added tests for this
1578 - added &list_all_type_constraints and
1579 &list_all_builtin_type_constraints
1580 functions to facilitate introspection.
1582 * Moose::Meta::Attribute
1583 - fixed regexp 'handles' declarations
1584 to build the list of delegated methods
1585 correctly (and not override important
1586 things like &new) thanks to ashleyb
1588 - added tests and docs for this
1589 - added the 'documentation' attributes
1590 so that you can actually document your
1591 attributes and inspect them through the
1593 - added tests and docs for this
1595 * Moose::Meta::Class
1596 - when loading custom attribute metaclasses
1597 it will first look in for the class in the
1598 Moose::Meta::Attribute::Custom::$name, and
1599 then default to just loading $name.
1600 - added tests and docs for this
1602 * Moose::Meta::TypeConstraint
1603 - type constraints now stringify to their names.
1604 - added test for this
1607 - added tests to assure we work with Module::Refresh
1608 - added stricter test skip logic in the Moose POOP
1609 test, ask Rob Kinyon why.
1610 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1612 0.18 Sat. March 10, 2007
1613 ~~ Many, many documentation updates ~~
1616 - We now use Class::MOP::load_class to
1618 - added tests to show types and subtypes
1619 working with Declare::Constraints::Simple
1620 and Test::Deep as constraint engines.
1623 !! You must have Class::MOP 0.37_001 !!
1624 !! for this developer release to work !!
1626 This release was primarily adding the immutable
1627 feature to Moose. An immutable class is one which
1628 you promise not to alter. When you set the class
1629 as immutable it will perform various bits of
1630 memoization and inline certain part of the code
1631 (constructors, destructors and accessors). This
1632 minimizes (and in some cases totally eliminates)
1633 one of Moose's biggest performance hits. This
1634 feature is not on by default, and is 100% optional.
1635 It has several configurable bits as well, so you
1636 can pick and choose to your specific needs.
1638 The changes involved in this were fairly wide and
1639 highly specific, but 100% backwards compatible, so
1640 I am not going to enumerate them here. If you are
1641 truely interested in what was changed, please do
1644 0.17 Tues. Nov. 14, 2006
1645 * Moose::Meta::Method::Accessor
1646 - bugfix for read-only accessors which
1647 are have a type constraint and lazy.
1648 Thanks to chansen for finding it.
1650 0.16 Tues. Nov. 14, 2006
1652 There are some speed improvements in this release,
1653 but they are only the begining, so stay tuned.
1656 - BUILDALL and DEMOLISHALL no longer get
1657 called unless they actually need to be.
1658 This gave us a signifigant speed boost
1659 for the cases when there is no BUILD or
1660 DEMOLISH method present.
1662 * Moose::Util::TypeConstraints
1663 * Moose::Meta::TypeConstraint
1664 - added an 'optimize_as' option to the
1665 type constraint, which allows for a
1666 hand optimized version of the type
1667 constraint to be used when possible.
1668 - Any internally created type constraints
1669 now provide an optimized version as well.
1671 0.15 Sun. Nov. 5, 2006
1673 This version of Moose *must* have Class::MOP 0.36 in order
1674 to work correctly. A number of small internal tweaks have
1675 been made in order to be compatible with that release.
1677 * Moose::Util::TypeConstraints
1678 - added &unimport so that you can clean out
1679 your class namespace of these exported
1682 * Moose::Meta::Class
1683 - fixed minor issue which occasionally
1684 comes up during global destruction
1686 - moved Moose::Meta::Method::Overriden into
1690 - moved Moose::Meta::Role::Method into
1693 * Moose::Meta::Attribute
1694 - changed how we do type checks so that
1695 we reduce the overall cost, but still
1698 - moved accessor generation methods to
1699 Moose::Meta::Method::Accessor to
1700 conform to the API changes from
1703 * Moose::Meta::TypeConstraint
1704 - changed how constraints are compiled
1705 so that we do less recursion and more
1706 iteration. This makes the type check
1708 - moved Moose::Meta::TypeConstraint::Union
1711 * Moose::Meta::Method::Accessor
1712 - created this from methods formerly found in
1713 Moose::Meta::Attribute
1715 * Moose::Meta::Role::Method
1716 - moved this from Moose::Meta::Role
1718 * Moose::Meta::Method::Overriden
1719 - moved this from Moose::Meta::Class
1721 * Moose::Meta::TypeConstraint::Union
1722 - moved this from Moose::Meta::TypeConstraint
1724 0.14 Mon. Oct. 9, 2006
1726 * Moose::Meta::Attribute
1727 - fixed lazy attributes which were not getting
1728 checked with the type constraint (thanks ashley)
1729 - added tests for this
1730 - removed the over-enthusiastic DWIMery of the
1731 automatic ArrayRef and HashRef defaults, it
1732 broke predicates in an ugly way.
1733 - removed tests for this
1735 0.13 Sat. Sept. 30, 2006
1737 This version of Moose *must* have Class::MOP 0.35 in order
1738 to work correctly. A number of small internal tweaks have
1739 been made in order to be compatible with that release.
1742 - Removed the use of UNIVERSAL::require to be a better
1743 symbol table citizen and remove a dependency
1744 (thanks Adam Kennedy)
1746 **~~ removed experimental & undocumented feature ~~**
1747 - commented out the 'method' and 'self' keywords, see the
1748 comments for more info.
1751 - added a FAQ and WTF files to document frequently
1752 asked questions and common problems
1754 * Moose::Util::TypeConstraints
1755 - added GlobRef and FileHandle type constraint
1756 - added tests for this
1758 * Moose::Meta::Attribute
1759 - if your attribute 'isa' ArrayRef of HashRef, and you have
1760 not explicitly set a default, then make the default DWIM.
1761 This will also work for subtypes of ArrayRef and HashRef
1763 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1764 - new test added for this (thanks to ashley)
1767 - added basic support for runtime role composition
1768 but this is still *highly experimental*, so feedback
1769 is much appreciated :)
1770 - added tests for this
1772 * Moose::Meta::TypeConstraint
1773 - the type constraint now handles the coercion process
1774 through delegation, this is to support the coercion
1777 * Moose::Meta::TypeConstraint::Union
1778 - it is now possible for coercions to be performed
1780 - added tests for this (thanks to konobi)
1782 * Moose::Meta::TypeCoercion
1783 - properly capturing error when type constraint
1787 - Scalar::Util 1.18 is bad on Win32, so temporarily
1788 only require version 1.17 for Win32 and cygwin.
1789 (thanks Adam Kennedy)
1791 0.12 Sat. Sept. 1, 2006
1793 - Recipe5 (subtypes & coercion) has been written
1796 - fixed "bad meta" error message to be more descriptive
1797 - fixed &unimport to not remove the &inner and &super
1798 keywords because we need to localize them.
1799 - fixed number of spelling/grammer issues, thanks Theory :)
1801 **~~ experimental & undocumented feature ~~**
1802 - added the method and self keywords, they are basically
1803 just sugar, and they may not stay around.
1806 - added &dump method to easily Data::Dumper
1809 * Moose::Meta::TypeConstraint
1810 - added the &is_a_type_of method to check both the current
1811 and the subtype of a method (similar to &isa with classes)
1814 - this is now a subclass of Class::MOP::Module, and no longer
1815 creates the _role_meta ugliness of before.
1816 - fixed tests to reflect this change
1818 0.11 Wed. July 12, 2006
1820 - added an &unimport method to remove all the keywords
1821 that Moose will import, simply add 'no Moose' to the
1822 bottom of your class file.
1825 - fixed some test failures caused by a forgotten test
1828 0.10 Thurs. July 6, 2006
1830 - improved error message when loading modules so
1831 it is less confusing when you load a role.
1832 - added &calculate_all_roles method to
1833 Moose::Meta::Class and Moose::Meta::Role
1836 This module has been tested against Class::MOP 0.30
1837 but it does not yet utilize the optimizations
1838 it makes available. Stay tuned for that ;)
1840 0.09_03 Fri. June 23, 2006
1841 ++ DEVELOPER RELEASE ++
1843 - 'use strict' and 'use warnings' are no longer
1844 needed in Moose classes, Moose itself will
1845 turn them on for you.
1846 - added tests for this
1847 - moved code from exported subs to private methods
1848 in Moose::Meta::Class
1851 - as with Moose, strict and warnings are
1852 automatically turned on for you.
1853 - added tests for this
1856 - now handles an edge case for override errors
1857 - added tests for this
1858 - added some more edge case tests
1860 0.09_02 Tues. May 16, 2006
1861 ++ DEVELOPER RELEASE ++
1863 - added prototypes to the exported subs
1867 - added prototypes to the exported subs
1870 * Moose::Util::TypeConstraints
1871 - cleaned up prototypes for the subs
1874 0.09_01 Fri. May 12, 2006
1875 ++ DEVELOPER RELEASE ++
1876 - This release works in combination with
1877 Class::MOP 0.29_01, it is a developer
1878 release because it uses the a new
1879 instance sub-protocol and a fairly
1880 complete Role implementation. It has
1881 not yet been optimized, so it slower
1882 the the previous CPAN version. This
1883 release also lacks good updated docs,
1884 the official release will have updated docs.
1887 - refactored the keyword exports
1888 - 'with' now checks Role validaity and
1889 accepts more than one Role at a time
1890 - 'extends' makes metaclass adjustments as
1891 needed to ensure metaclass compatibility
1894 - refactored the keyword exports
1895 - 'with' now checks Role validaity and
1896 accepts more than one Role at a time
1898 * Moose::Util::TypeConstraints
1899 - added the 'enum' keyword for simple
1900 string enumerations which can be used as
1902 - see example of usage in t/202_example.t
1905 - more careful checking of params to new()
1908 - much work done on the role composition
1909 - many new tests for conflict detection
1910 and composition edge cases
1911 - not enough documentation, I suggest
1912 looking at the tests
1914 * Moose::Meta::Instance
1915 - added new Instance metaclass to support
1916 the new Class::MOP instance protocol
1918 * Moose::Meta::Class
1919 - some small changes to support the new
1921 - some small additions to support Roles
1923 * Moose::Meta::Attribute
1924 - some improvements to the accessor generation code
1926 - some small changes to support the new
1928 - (still somewhat) experimental delegation support
1929 with the 'handles' option
1930 - added several tests for this
1931 - no docs for this yet
1933 0.05 Thurs. April 27, 2006
1935 - keywords are now exported with Sub::Exporter
1936 thanks to chansen for this commit
1937 - has keyword now takes a 'metaclass' option
1938 to support custom attribute meta-classes
1939 on a per-attribute basis
1940 - added tests for this
1941 - the 'has' keyword not accepts inherited slot
1942 specifications (has '+foo'). This is still an
1943 experimental feature and probably not finished
1944 see t/038_attribute_inherited_slot_specs.t for
1945 more details, or ask about it on #moose
1946 - added tests for this
1949 - keywords are now exported with Sub::Exporter
1951 * Moose::Utils::TypeConstraints
1952 - reorganized the type constraint hierarchy, thanks
1953 to nothingmuch and chansen for his help and advice
1955 - added some tests for this
1956 - keywords are now exported with Sub::Exporter
1957 thanks to chansen for this commit
1959 * Moose::Meta::Class
1960 - due to changes in Class::MOP, we had to change
1961 construct_instance (for the better)
1963 * Moose::Meta::Attribute
1964 - due to changes in Class::MOP, we had to add the
1965 initialize_instance_slot method (it's a good thing)
1967 * Moose::Meta::TypeConstraint
1968 - added type constraint unions
1969 - added tests for this
1970 - added the is_subtype_of predicate method
1971 - added tests for this
1973 0.04 Sun. April 16th, 2006
1975 - Roles can now consume other roles
1976 - added tests for this
1977 - Roles can specify required methods now with
1978 the requires() keyword
1979 - added tests for this
1982 - ripped out much of it's guts ,.. much cleaner now
1983 - added required methods and correct handling of
1984 them in apply() for both classes and roles
1985 - added tests for this
1986 - no longer adds a does() method to consuming classes
1987 it relys on the one in Moose::Object
1988 - added roles attribute and some methods to support
1989 roles consuming roles
1991 * Moose::Meta::Attribute
1992 - added support for triggers on attributes
1993 - added tests for this
1994 - added support for does option on an attribute
1995 - added tests for this
1997 * Moose::Meta::Class
1998 - added support for attribute triggers in the
2000 - added tests for this
2003 - Moose no longer creates a subtype for your class
2004 if a subtype of the same name already exists, this
2005 should DWIM in 99.9999% of all cases
2007 * Moose::Util::TypeConstraints
2008 - fixed bug where incorrect subtype conflicts were
2010 - added test for this
2013 - this class can now be extended with 'use base' if
2014 you need it, it properly loads the metaclass class now
2015 - added test for this
2017 0.03_02 Wed. April 12, 2006
2019 - you must now explictly use Moose::Util::TypeConstraints
2020 it no longer gets exported for you automatically
2023 - new() now accepts hash-refs as well as key/value lists
2024 - added does() method to check for Roles
2025 - added tests for this
2027 * Moose::Meta::Class
2028 - added roles attribute along with the add_role() and
2030 - added tests for this
2033 - now adds a does() method to consuming classes
2034 which tests the class's hierarchy for roles
2035 - added tests for this
2037 0.03_01 Mon. April 10, 2006
2039 - added new Role recipe (no content yet, only code)
2042 - added 'with' keyword for Role support
2043 - added test and docs for this
2044 - fixed subtype quoting bug
2045 - added test for this
2049 - added test and docs
2051 * Moose::Util::TypeConstraints
2052 - added the message keyword to add custom
2053 error messages to type constraints
2056 - the meta role to support Moose::Role
2057 - added tests and docs
2059 * Moose::Meta::Class
2060 - moved a number of things from Moose.pm
2061 to here, they should have been here
2064 * Moose::Meta::Attribute
2065 - moved the attribute option macros here
2066 instead of putting them in Moose.pm
2068 * Moose::Meta::TypeConstraint
2069 - added the message attributes and the
2071 - added tests and docs for this
2073 0.03 Thurs. March 30, 2006
2075 - added the Moose::Cookbook with 5 recipes,
2076 describing all the stuff Moose can do.
2079 - fixed an issue with &extends super class loading
2080 it now captures errors and deals with inline
2081 packages correctly (bug found by mst, solution
2083 - added super/override & inner/augment features
2084 - added tests and docs for these
2087 - BUILDALL now takes a reference of the %params
2088 that are passed to &new, and passes that to
2091 * Moose::Util::TypeConstraints
2092 - Type constraints now survive runtime reloading
2093 - added test for this
2095 * Moose::Meta::Class
2096 - fixed the way attribute defaults are handled
2097 during instance construction (bug found by chansen)
2099 * Moose::Meta::Attribute
2100 - read-only attributes now actually enforce their
2101 read-only-ness (this corrected in Class::MOP as
2104 0.02 Tues. March 21, 2006
2106 - many more tests, fixing some bugs and
2108 - &extends now loads the base module with
2110 - added UNIVERSAL::require to the
2113 - each new Moose class will also create
2114 and register a subtype of Object which
2115 correspond to the new Moose class.
2116 - the 'isa' option in &has now only
2117 accepts strings, and will DWIM in
2120 * Moose::Util::TypeConstraints
2121 - added type coercion features
2122 - added tests for this
2123 - added support for this in attributes
2124 and instance construction
2126 - type construction no longer creates a
2127 function, it registers the type instead.
2128 - added several functions to get the
2132 - BUILDALL and DEMOLISHALL were broken
2133 because of a mis-named hash key, Whoops :)
2135 * Moose::Meta::Attribute
2136 - adding support for coercion in the
2137 autogenerated accessors
2139 * Moose::Meta::Class
2140 - adding support for coercion in the
2141 instance construction
2143 * Moose::Meta::TypeConstraint
2144 * Moose::Meta::TypeCoercion
2145 - type constraints and coercions are now
2146 full fledges meta-objects
2148 0.01 Wed. March 15, 2006
2149 - Moooooooooooooooooose!!!