rename to _check_associated_methods
[gitmo/Moose.git] / Changes
1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
3
4 0.85
5     * Moose::Meta::Attribute
6       - The warning for 'no associated methods' is now split out into the
7         _check_associated_methods method, so that extensions can safely call
8         'after install_accessors => ...'. (hdp)
9
10 0.84 Fri, Jun 26, 2009
11     * Moose::Role
12       - has now sets definition_context for attributes defined in
13         roles. (doy)
14
15     * Moose::Meta::Attribute
16       - When adding an attribute to a metaclass, if the attribute has
17         no associated methods, it will give a deprecation
18         warning. (hdp)
19       - Methods generated by delegation were not being added to
20         associated_methods. (hdp)
21       - Attribute accessors (reader, writer, accessor, predicate,
22         clearer) now warn if they overwrite an existing method. (doy)
23       - Attribute constructors now warn very noisily about unknown (or
24         mispelled) arguments
25
26     * Moose::Util::TypeConstraints
27       - Deprecated the totally useless Role type name, which just
28         checked if $object->can('does'). Note that this is _not_ the
29         same as a type created by calling role_type('RoleName').
30
31     * Moose::Util::TypeConstraints
32     * Moose::Meta::TypeConstraint::DuckType
33       - Reify duck type from a regular subtype into an actual class
34         (Sartak)
35         - Document this because Sartak did all my work for me
36           (perigrin)
37
38     * Moose::Meta::Attribute
39       - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
40         it is just a list of methods (Sartak)
41
42     * Moose::Meta::Role
43       - The get_*_method_modifiers methods would die if the role had
44         no modifiers of the given type (Robert Buels).
45
46 0.83 Tue, Jun 23, 2009
47     * Moose::Meta::Class
48       - Fix _construct_instance not setting the special __MOP__ object
49         key in instances of anon classes. (doy)
50
51 0.82 Sun, Jun 21, 2009
52     * Moose::Manual::Types
53       - Mention MooseX::Types early to avoid users falling down the
54         string parsing rathole (mst)
55
56     * Moose::Manual::MooseX
57       - Add warnings about class-level extensions and mention considering
58         using plain objects instead
59
60 0.81 Sun, Jun 7, 2009
61     * Bumped our Class::MOP prereq to the latest version (0.85), since
62       that's what we need.
63
64 0.80 Sat, Jun 6, 2009
65     * Moose::Manual::FAQ 
66       - Add FAQ about the coercion change from 0.76 because it came up
67         three times today (perigrin)
68         - Win doy $10 dollars because Sartak didn't think anybody
69           would document this fast enough (perigrin)
70
71     * Moose::Meta::Method::Destructor
72       - Inline a DESTROY method even if there are no DEMOLISH methods
73         to prevent unnecessary introspection in
74         Moose::Object::DEMOLISHALL
75
76     * Moose::*
77       - A role's required methods are now represented by
78         Moose::Meta::Role::Method::Required objects. Conflicts are now
79         represented by Moose::Meta::Role::Method::Conflicting
80         objects. The benefit for end-users in that unresolved
81         conflicts generate different, more instructive, errors,
82         resolving Ovid's #44895. (Sartak)
83
84     * Moose::Role
85       - Improve the error message of "extends" as suggested by Adam
86         Kennedy and confound (Sartak)
87       - Link to Moose::Manual::Roles from Moose::Role as we now have
88         excellent documentation (Adam Kennedy)
89
90     * Tests
91       - Update test suite for subname change in Class::MOP
92         (nothingmuch)
93       - Add TODO test for infinite recursion in Moose::Meta::Class
94         (groditi)
95
96 0.79 Wed, May 13, 2009
97     * Tests
98       - More fixes for Win32 problems. Reported by Robert Krimen.
99
100     * Moose::Object
101       - The DEMOLISHALL method could still blow up in some cases
102         during global destruction. This method has been made more
103         resilient in the face of global destruction's random garbage
104         collection order.
105
106     * Moose::Exporter
107       - If you "also" a module that isn't loaded, the error message
108         now acknowledges that (Sartak)
109
110     * Moose
111       - When your ->meta method does not return a Moose::Meta::Class,
112         the error message gave the wrong output (Sartak)
113
114 0.78 Tue, May 12, 2009
115     * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
116       - Merged these documents into what is now Moose::Manual::FAQ
117
118     * Moose::Unsweetened
119       - Moved to Moose::Manual::Unsweetened
120
121     * Moose::Cookbook::Basics::Recipes 9-12
122       - Renamed to be 8-11, since recipe 8 did not exist
123
124     * Moose::Exporter
125       - Make Moose::Exporter import strict and warnings into packages
126         that use it (doy)
127
128     * Moose::Object
129       - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
130         methods during global destruction (doy)
131
132     * Moose::Meta::Class
133     * Moose::Meta::Role::Application::ToClass
134       - Track the Role::Application objects created during class-role
135         consumption (Sartak)
136
137     * Moose::Meta::Class
138       - Fix metaclass incompatibility errors when extending a vanilla perl
139         class which isa Moose class with a metaclass role applied (t0m)
140
141     * Moose::Meta::Role
142       - Add a role-combination hook, _role_for_combination, for the
143         benefit of MooseX::Role::Parameterized (Sartak)
144
145     * Tests
146       - Some tests were failing on Win32 because they explicit checked
147         warning output for newlines. Reported by Nickolay Platonov.
148
149 0.77 Sat, May 2, 2009
150     * Moose::Meta::Role
151       - Add explicit use of Devel::GlobalDestruction and Sub::Name
152         (perigrin)
153
154     * Moose::Object
155       - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
156         or not we are currently in global destruction (doy)
157       - Add explicit use of Devel::GlobalDestruction and Sub::Name
158         (perigrin)
159
160     * Moose::Cookbook::FAQ
161       - Reworked much of the existing content to be more useful to
162         modern Moose hackers (Sartak)
163
164     * Makefile.PL
165       - Depend on Class::MOP 0.83 instead of 0.82_01.
166
167 0.76 Mon, April 27, 2009
168     * Moose::Meta::TypeConstraint
169       - Do not run coercions in coerce() if the value already passes the type
170         constraint (hdp)
171
172     * Moose::Meta::TypeConstraint::Class
173       - In validation error messages, specifically say that the value is not
174         an instance of the class. This should alleviate some frustrating
175         forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
176
177     * Moose::Meta::Role::Application::ToClass
178       - Revert the class-overrides-role warning in favor of a solution outside
179         of the Moose core (Sartak)
180
181     * Tests
182       - Make Test::Output optional again, since it's only used in a few files
183         (Sartak)
184
185 0.75_01 Thu, April 23, 2009
186     * Moose::Meta::Role::Application::ToClass
187       - Moose now warns about each class overriding methods from roles it
188         consumes (Sartak)
189
190     * Tests
191       - Warnings tests have standardized on Test::Output which is now an
192         unconditionally dependency (Sartak)
193
194     * Moose::Meta::Class
195       - Changes to immutabilization to work with Class::MOP 0.82_01+.
196
197 0.75 Mon, April 20, 2009
198     * Moose
199     * Moose::Meta::Class
200       - Move validation of not inheriting from roles from Moose::extends to
201         Moose::Meta::Class::superclasses (doy)
202
203     * Moose::Util
204       - add ensure_all_roles() function to encapsulate the common "apply this
205         role unless the object already does it" pattern (hdp)
206
207     * Moose::Exporter
208       - Users can now select a different metaclass with the "-metaclass"
209         option to import, for classes and roles (Sartak)
210
211     * Moose::Meta::Role
212       - Make method_metaclass an attr so that it can accept a metarole
213         application.  (jdv)
214
215 0.74 Tue, April 7, 2009
216     * Moose::Meta::Role
217     * Moose::Meta::Method::Destructor
218       - Include stack traces in the deprecation warnings.
219         (Florian Ragwitz)
220
221     * Moose::Meta::Class
222       - Removed the long-deprecated _apply_all_roles method.
223
224     * Moose::Meta::TypeConstraint
225       - Removed the long-deprecated union method.
226
227
228 0.73_02 Mon, April 6, 2009
229     * More deprecations and renamings
230       - Moose::Meta::Method::Constructor
231         - initialize_body => _initialize_body (this is always called
232           when an object is constructed)
233
234     * Moose::Object
235       - The DEMOLISHALL method could throw an exception during global
236         destruction, meaning that your class's DEMOLISH methods would
237         not be properly called. Reported by t0m.
238
239     * Moose::Meta::Method::Destructor
240       - Destructor inlining was totally broken by the change to the
241         is_needed method in 0.72_01. Now there is a test for this
242         feature, and it works again.
243
244     * Moose::Util
245       - Bold the word 'not' in the POD for find_meta (t0m)
246
247 0.73_01 Sun, April 5, 2009
248     * Moose::*
249       - Call user_class->meta in fewer places, with the eventual goal
250         of allowing the user to rename or exclude ->meta
251         altogether. Instead uses Class::MOP::class_of. (Sartak)
252
253     * Moose::Meta::Method::Accessor
254       - If an attribute had a lazy default, and that value did not
255         pass the attribute's type constraint, it did not get the
256         message from the type constraint, instead using a generic
257         message. Test provided by perigrin.
258
259     * Moose::Util::TypeConstraints
260       - Add duck_type keyword. It's sugar over making sure an object
261         can() a list of methods. This is easier than jrockway's
262         suggestion to fork all of CPAN. (perigrin)
263         - add tests and documentation (perigrin)
264
265     * Moose
266       - Document the fact that init_meta() returns the target class's
267         metaclass object. (hdp)
268
269     * Moose::Cookbook::Extending::Recipe1
270     * Moose::Cookbook::Extending::Recipe2
271     * Moose::Cookbook::Extending::Recipe3
272     * Moose::Cookbook::Extending::Recipe4
273       - Make init_meta() examples explicitly return the metaclass and
274         point out this fact. (hdp)
275
276     * Moose::Cookbook::Basics::Recipe12
277       - A new recipe, creating a custom meta-method class.
278
279     * Moose::Cookbook::Meta::Recipe6
280       - A new recipe, creating a custom meta-method class.
281
282     * Moose::Meta::Class
283     * Moose::Meta::Method::Constructor
284       - Attribute triggers no longer receive the meta-attribute object
285         as an argument in any circumstance. Previously, triggers
286         called during instance construction were passed the
287         meta-attribute, but triggers called by normal accessors were
288         not. Fixes RT#44429, reported by Mark Swayne. (hdp)
289
290     * Moose::Manual::Attributes
291       - Remove references to triggers receving the meta-attribute object as an
292         argument. (hdp)
293
294     * Moose::Cookbook::FAQ
295       - Remove recommendation for deprecated Moose::Policy and
296         Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
297         instead. (hdp)
298
299     * Many methods have been renamed with a leading underscore, and a
300       few have been deprecated entirely. The methods with a leading
301       underscore are consider "internals only". People writing
302       subclasses or extensions to Moose should feel free to override
303       them, but they are not for "public" use.
304
305       - Moose::Meta::Class
306         - check_metaclass_compatibility => _check_metaclass_compatibility
307
308       - Moose::Meta::Method::Accessor
309         - initialize_body => _initialize_body (this is always called
310           when an object is constructed)
311         - /(generate_.*_method(?:_inline)?)/ => '_' . $1
312
313       - Moose::Meta::Method::Constructor
314         - initialize_body => _initialize_body (this is always called
315           when an object is constructed)
316         - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
317         - attributes => _attributes (now inherited from parent)
318         - meta_instance => _meta_instance (now inherited from parent)
319
320       - Moose::Meta::Role
321         - alias_method is deprecated. Use add_method
322
323 0.73 Fri, March 29, 2009
324     * No changes from 0.72_01.
325
326 0.72_01 Thu, March 26, 2009
327     * Everything
328       - Almost every module has complete API documentation. A few
329         methods (and even whole classes) have been intentionally
330         excluded pending some rethinking of their APIs.
331
332     * Moose::Util::TypeConstraints
333       - Calling subtype with a name as the only argument is now an
334         exception. If you want an anonymous subtype do:
335
336          my $subtype = subtype as 'Foo';
337
338     * Moose::Cookbook::Meta::Recipe7
339       - A new recipe, creating a custom meta-instance class.
340
341     * Moose::Cookbook::Basics::Recipe5
342       - Fix various typos and mistakes. Includes a patch from Radu
343         Greab.
344
345     * Moose::Cookbook::Basics::Recipe9
346       - Link to this recipe from Moose.pm's builder blurb
347
348     * Moose::Exporter
349       - When wrapping a function with a prototype, Moose::Exporter now
350         makes sure the wrapped function still has the same
351         prototype. (Daisuke Maki)
352
353     * Moose::Meta::Attribute
354       - Allow a subclass to set lazy_build for an inherited
355         attribute. (hdp)
356
357     * Makefile.PL
358       - Explicitly depend on Data::OptList. We already had this dependency
359         via Sub::Exporter, but since we're using it directly we're
360         better off with it listed. (Sartak)
361
362     * Moose::Meta::Method::Constructor
363       - Make it easier to subclass the inlining behaviour. (Ash
364         Berlin)
365
366     * Moose::Manual::Delta
367       - Details significant changes in the history of Moose, along
368         with recommended workarounds.
369
370     * Moose::Manual::Contributing
371       - Contributor's guide to Moose.
372
373     * Moose::Meta::Method::Constructor
374       - The long-deprecated intialize_body method has been removed
375         (yes, spelled like that).
376
377     * Moose::Meta::Method::Destructor
378       - This is_needed method is now always a class method.
379
380     * Moose::Meta::Class
381       - Changes to the internals of how make_immutable works to match
382         changes in latest Class::MOP.
383
384 0.72 Mon, February 23, 2009
385     * Moose::Object
386     * Moose::Meta::Method::Constructor
387       - A mutable class accepted Foo->new(undef) without complaint,
388         while an immutable class would blow up with an unhelpful
389         error. Now, in both cases we throw a helpful error
390         instead. Reported by doy.
391
392 0.71_01 Sun, February 22, 2009
393     * Moose::Cookbook
394       - Hopefully fixed some POD errors in a few recipes that caused
395         them to display weird on search.cpan.org.
396
397     * Moose::Util::TypeConstraints
398       - Calling type or subtype without the sugar helpers (as, where,
399         message) is now deprecated.
400       - The subtype function tried hard to guess what you meant, but
401         often got it wrong. For example:
402
403          my $subtype = subtype as 'ArrayRef[Object]';
404
405         This caused an error in the past, but now works as you'd
406         expect.
407
408     * Everywhere
409       - Make sure Moose.pm is loaded before calling
410         Moose->throw_error. This wasn't normally an issue, but could
411         bite you in weird cases.
412
413 0.71 Thu, February 19, 2009
414     * Moose::Cookbook::Basics::Recipe11
415       - A new recipe which demonstrates the use of BUILDARGS and
416         BUILD. (Dave Rolsky)
417
418     * Moose::Cookbook::Roles::Recipe3
419       - A new recipe, applying a role to an object instance. (Dave
420         Rolsky)
421
422     * Moose::Exporter
423       - Allow overriding specific keywords from "also" packages. (doy)
424
425     * Tests
426       - Replace hardcoded cookbook tests with Test::Inline to ensure
427         the tests match the actual code in the recipes. (Dave Rolsky)
428
429     * Moose::Cookbook
430       - Working on the above turned up a number of little bugs in the
431         recipe code. (Dave Rolsky)
432
433     * Moose::Util::TypeConstraints::Optimized
434       - Just use Class::MOP for the optimized ClassName check. (Dave
435         Rolsky)
436
437 0.70 Sat, February 14, 2009
438     * Moose::Util::TypeConstraints
439       - Added the RoleName type (stevan)
440         - added tests for this (stevan)
441
442     * Moose::Cookbook::Basics::Recipe3
443       - Updated the before qw[left right] sub to be a little more
444         defensive about what it accepts (stevan)
445         - added more tests to t/000_recipies/basics/003_binary_tree.t
446           (stevan)
447
448     * Moose::Object
449       - We now always call DEMOLISHALL, even if a class does not
450         define DEMOLISH. This makes sure that method modifiers on
451         DEMOLISHALL work as expected. (doy)
452         - added tests for this (EvanCarroll)
453
454     * Moose::Util::MetaRole
455       - Accept roles for the wrapped_method_metaclass (rafl)
456         - added tests for this (rafl)
457
458     * Moose::Meta::Attribute
459       - We no longer pass the meta-attribute object as a final
460         argument to triggers. This actually changed for inlined code a
461         while back, but the non-inlined version and the docs were
462         still out of date.
463
464     * Tests
465       - Some tests tried to use Test::Warn 0.10, which had bugs. Now
466         they require 0.11. (Dave Rolsky)
467
468     * Documentation
469       - Lots of small changes to the manual, cookbook, and
470         elsewhere. These were based on feedback from various
471         users, too many to list here. (Dave Rolsky)
472
473 0.69 Thu, February 12, 2009
474     * Moose
475       - Make some keyword errors use throw_error instead of croak
476         since Moose::Exporter wraps keywords now (Sartak)
477
478     * Moose::Cookbook::*
479       - Revised every recipe for style and clarity. Also moved some
480         documentation out of cookbook recipes and into Moose::Manual
481         pages. This work was funded as part of the Moose docs grant
482         from TPF. (Dave Rolsky)
483
484     * Moose::Meta::Method::Delegation
485       - If the attribute doing the delegation was not populated, the
486         error message did not specify the attribute name
487         properly. (doy)
488
489 0.68 Wed, February 4, 2009
490     * POD
491       - Many spelling, typo, and formatting fixes by daxim.
492
493     * Moose::Manual::Attributes
494       - The NAME section in the POD used "Attribute" so search.cpan
495         didn't resolve links from other documents properly.
496
497     * Moose::Meta::Method::Overriden
498       - Now properly spelled as Overridden. Thanks to daxim for
499         noticing this.
500
501 0.67 Tue, February 3, 2009
502     * Moose::Manual::*
503       - Lots of little typo fixes and a few clarifications. Several
504         pages didn't have proper titles, and so weren't actually
505         visible on search.cpan.org. Thanks to hanekomu for a variety
506         of fixes and formatting improvements.
507
508 0.66 Tue, February 3, 2009
509     * Moose::Manual
510       - This is a brand new, extensive manual for Moose. This aims to
511         provide a complete introduction to all of Moose's
512         features. This work was funded as part of the Moose docs grant
513         from TPF. (Dave Rolsky)
514
515     * Moose::Meta::Attribute
516       - Added a delegation_metaclass method to replace a hard-coded
517         use of Moose::Meta::Method::Delegation. (Dave Rolsky)
518
519     * Moose::Util::TypeConstraints
520       - If you created a subtype and passed a parent that Moose didn't
521         know about, it simply ignored the parent. Now it automatically
522         creates the parent as a class type. This may not be what you
523         want, but is less broken than before. (Dave Rolsky)
524
525     * Moose::Util::TypeConstraints
526       - This module tried throw errors by calling Moose->throw_error,
527         but it did not ensure that Moose was loaded first. This could
528         cause very unhelpful errors when it tried to throw an error
529         before Moose was loaded. (Dave Rolsky)
530
531     * Moose::Util::TypeConstraints
532       - You could declare a name with subtype such as "Foo!Bar" that
533         would be allowed, but if you used it in a parameterized type
534         such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
535         vetting on names created via the sugar functions, so that they
536         can only contain alphanumerics, ":", and ".". (Dave Rolsky)
537
538 0.65 Thu, January 22, 2008
539     * Moose and Moose::Meta::Method::Overridden
540       - If an overridden method called super(), and then the
541         superclass's method (not overridden) _also_ called super(),
542         Moose went into an endless recursion loop. Test provided by
543         Chris Prather. (Dave Rolsky)
544
545     * Moose::Meta::TypeConstraint
546       - All methods are now documented. (gphat)
547
548     * t/100_bugs/011_DEMOLISH_eats_exceptions.t
549       - Fixed some bogus failures that occurred because we tried to
550         validate filesystem paths in a very ad-hoc and
551         not-quite-correct way. (Dave Rolsky)
552
553     * Moose::Util::TypeConstraints
554       - Added maybe_type to exports. See docs for details. (rjbs)
555
556     * Moose
557       - Added Moose::Util::TypeConstraints to the SEE ALSO
558         section. (pjf)
559
560     * Moose::Role
561       - Methods created via an attribute can now fulfill a "requires"
562         declaration for a role. (nothingmuch)
563
564     * Moose::Meta::Method::*
565       - Stack traces from inlined code will now report its line and
566         file as being in your class, as opposed to in Moose
567         guts. (nothingmuch).
568
569 0.64 Wed, December 31, 2008
570     * Moose::Meta::Method::Accessor
571       - Always inline predicate and clearer methods (Sartak)
572
573     * Moose::Meta::Attribute
574       - Support for parameterized traits (Sartak)
575       - verify_against_type_constraint method to avoid duplication
576         and enhance extensibility (Sartak)
577
578     * Moose::Meta::Class
579       - Tests (but no support yet) for parameterized traits (Sartak)
580
581     * Moose
582       - Require Class::MOP 0.75+, which has the side effect of making
583         sure we work on Win32. (Dave Rolsky)
584
585 0.63 Mon, December 8, 2008
586     * Moose::Unsweetened
587       - Some small grammar tweaks and bug fixes in non-Moose example
588         code. (Dave Rolsky)
589
590 0.62_02 Fri, December 5, 2008
591     * Moose::Meta::Role::Application::ToClass
592       - When a class does not provide all of a role's required
593         methods, the error thrown now mentions all of the missing
594         methods, as opposed to just the first one found. Requested by
595         Curtis Poe (RT #41119). (Dave Rolsky)
596
597     * Moose::Meta::Method::Constructor
598       - Moose will no longer inline a constructor for your class
599         unless it inherits its constructor from Moose::Object, and
600         will warn when it doesn't inline. If you want to force
601         inlining anyway, pass "replace_constructor => 1" to
602         make_immutable. Addresses RT #40968, reported by Jon
603         Swartz. (Dave Rolsky)
604       - The quoting of default values could be broken if the default
605         contained a single quote ('). Now we use quotemeta to escape
606         anything potentially dangerous in the defaults. (Dave Rolsky)
607
608 0.62_01 Wed, December 3, 2008
609     * Moose::Object
610       - use the method->execute API for BUILDALL
611         and DEMOLISHALL (Sartak)
612
613     * Moose::Util::TypeConstraints
614       - We now make all the type constraint meta classes immutable
615         before creating the default types provided by Moose. This
616         should make loading Moose a little faster. (Dave Rolsky)
617
618 0.62 Wed November 26, 2008
619     * Moose::Meta::Role::Application::ToClass
620       Moose::Meta::Role::Application::ToRole
621       - fixed issues where excluding and aliasing the
622         same methods for a single role did not work
623         right (worked just fine with multiple
624         roles) (stevan)
625         - added test for this (stevan)
626
627     * Moose::Meta::Role::Application::RoleSummation
628       - fixed the error message when trying to compose
629         a role with a role it excludes (Sartak)
630
631     * Moose::Exporter
632       - Catch another case where recursion caused the value
633         of $CALLER to be stamped on (t0m)
634         - added test for this (t0m)
635
636     * Moose
637       - Remove the make_immutable keyword, which has been
638         deprecated since April. It breaks metaclasses that
639         use Moose without no Moose (Sartak)
640
641     * Moose::Meta::Attribute
642       - Removing an attribute from a class now also removes delegation
643         (handles) methods installed for that attribute (t0m)
644         - added test for this (t0m)
645
646     * Moose::Meta::Method::Constructor
647       - An attribute with a default that looked like a number (but was
648         really a string) would accidentally be treated as a number
649         when the constructor was made immutable (perigrin)
650         - added test for this (perigrin)
651
652     * Moose::Meta::Role
653       - create method for constructing a role
654         dynamically (Sartak)
655         - added test for this (Sartak)
656       - anonymous roles! (Sartak)
657         - added test for this (Sartak)
658
659     * Moose::Role
660       - more consistent error messages (Sartak)
661
662     * Moose::Cookbook::Roles::Recipe1
663       - attempt to explain why a role that just requires
664         methods is useful (Sartak)
665
666 0.61 Fri November 7, 2008
667     * Moose::Meta::Attribute
668       - When passing a role to handles, it will be loaded if necessary
669         (perigrin)
670
671     * Moose::Meta::Class
672       - Method objects returned by get_method (and other methods)
673         Could end up being returned without an associated_metaclass
674         attribute. Removing get_method_map, which is provided by
675         Class::MOP::Class, fixed this. The Moose version did nothing
676         different from its parent except introduce a bug. (Dave Rolsky)
677         - added tests for this (jdv79)
678
679     * Various
680       - Added a $VERSION to all .pm files which didn't have one. Fixes
681         RT #40049, reported by Adam Kennedy. (Dave Rolsky)
682
683     * Moose::Cookbook::Basics::Recipe4
684     * Moose::Cookbook::Basics::Recipe6
685       - These files had spaces on the first line of the SYNOPSIS, as
686         opposed to a totally empty line. According to RT #40432, this
687         confuses POD parsers. (Dave Rolsky)
688
689 0.60 Fri October 24, 2008
690     * Moose::Exporter
691       - Passing "-traits" when loading Moose caused the Moose.pm
692         exports to be broken. Reported by t0m. (Dave Rolsky)
693         - Tests for this bug. (t0m)
694
695     * Moose::Util
696       - Change resolve_metaclass alias to use the new
697         load_first_existing_class function. This makes it a lot
698         simpler, and also around 5 times faster. (t0m)
699       - Add caching to resolve_metaclass_alias, which gives an order
700         of magnitude speedup to things which repeatedly call the
701         Moose::Meta::Attribute->does method, notably MooseX::Storage
702         (t0m)
703
704     * Moose::Util::TypeConstraint
705       - Put back the changes for parameterized constraints that
706         shouldn't have been removed in 0.59. We still cannot parse
707         them, but MooseX modules can create them in some other
708         way. See the 0.58 changes for more details. (jnapiorkowski)
709       - Changed the way subtypes are created so that the job is
710         delegated to a type constraint parent. This clears up some
711         hardcoded checking and should allow correct subtypes of
712         Moose::Meta::Type::Constraint. Don't rely on this new API too
713         much (create_child_type) because it may go away in the
714         future. (jnapiorkowski)
715
716     * Moose::Meta::TypeConstraint::Union
717       - Type constraint names are sorted as strings, not numbers.
718         (jnapiorkowski)
719
720     * Moose::Meta::TypeConstraint::Parameterizable
721       - New parameterize method. This can be used as a factory method
722         to make a new type constraint with a given parameterized
723         type. (jnapiorkowski)
724         - added tests (jnapiorkowski)
725
726 0.59 Tue October 14, 2008
727     * Moose
728       - Add abridged documentation for builder/default/initializer/
729         predicate, and link to more details sections in
730         Class::MOP::Attribute. (t0m)
731
732     * Moose::Util::TypeConstraints
733       - removed prototypes from all but the &-based stuff (mst)
734
735     * Moose::Util::TypeConstraints
736       - Creating a anonymous subtype with both a constraint and a
737         message failed with a very unhelpful error, but should just
738         work. Reported by t0m. (Dave Rolsky)
739
740     * Tests
741       - Some tests that used Test::Warn if it was available failed
742         with older versions of Test::Warn. Reported by Fayland. (Dave
743         Rolsky)
744       - Test firing behavior of triggers in relation to builder/default/
745         lazy_build. (t0m)
746       - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
747         kinds of supported type. (t0m)
748
749     * Moose::Meta::Class
750       - In create(), do not pass "roles" option to the superclass
751         - added related test that creates an anon metaclass with
752           a required attribute
753
754     * Moose::Meta::TypeConstraint::Class
755     * Moose::Meta::TypeConstraint::Role
756       - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
757         other types (as per change in 0.55_02). (t0m)
758
759     * Moose::Meta::TypeConstraint::Registry
760       - Fix warning when dealing with unknown type names (t0m)
761
762     * Moose::Util::TypeConstraints
763       - Reverted changes from 0.58 related to handle parameterized
764         types. This caused random failures on BSD and Win32 systems,
765         apparently related to the regex engine. This means that Moose
766         can no longer parse structured type constraints like
767         ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
768         supported in a slightly different way via MooseX::Types some
769         time in the future. (Dave Rolsky)
770
771 0.58 Sat September 20, 2008
772     !! This release has an incompatible change regarding !!
773     !! how roles add methods to a class !!
774
775     * Roles and role application
776       ! Roles now add methods by calling add_method, not
777         alias_method. They make sure to always provide a method
778         object, which will be cloned internally. This means that it is
779         now possible to track the source of a method provided by a
780         role, and even follow its history through intermediate roles.
781
782         This means that methods added by a role now show up when
783         looking at a class's method list/map. (Dave Rolsky)
784
785     * Makefile.PL
786       - From this release on, we'll try to maintain a list of
787         conflicting modules, and warn you if you have one
788         installed. For example, this release conflicts with ...
789         - MooseX::Singleton        <= 0.11
790         - MooseX::Params::Validate <= 0.05
791         - Fey::ORM                 <= 0.10
792
793         In general, we try to not break backwards compatibility for
794         most Moose users, but MooseX modules and other code which
795         extends Moose's metaclasses is often affected by very small
796         changes in the Moose internals.
797
798     * Moose::Meta::Method::Delegation
799     * Moose::Meta::Attribute
800       - Delegation methods now have their own method class. (Dave
801         Rolsky)
802
803     * Moose::Meta::TypeConstraint::Parameterizable
804       - Added a new method 'parameterize' which is basically a factory
805         for the containing constraint. This makes it easier to create
806         new types of parameterized constraints. (jnapiorkowski)
807
808     * Moose::Meta::TypeConstraint::Union
809       - Changed the way Union types canonicalize their names to follow
810         the normalized TC naming rules, which means we strip all
811         whitespace. (jnapiorkowski)
812
813     * Moose::Util::TypeConstraints
814       - Parameter and Union args are now sorted, this makes Int|Str
815         the same constraint as Str|Int. (jnapiorkowski)
816       - Changes to the way Union types are parsed to more correctly
817         stringify their names. (jnapiorkowski)
818       - When creating a parameterized type, we now use the new
819         parameterize method. (jnapiorkowski)
820       - Incoming type constraint strings are now normalized to remove
821         all whitespace differences. (jnapiorkowski)
822       - Changed the way we parse type constraint strings so that we now
823         match TC[Int,Int,...] and TC[name=>Str] as parameterized type
824         constraints. This lays the foundation for more flexible type
825         constraint implementations.
826
827     * Tests and docs for all the above. (jnapiorkowski)
828
829     * Moose::Exporter
830     * Moose
831       - Moose::Exporter will no longer remove a subroutine that the
832         exporting package re-exports. Moose re-exports the
833         Carp::confess function, among others. The reasoning is that we
834         cannot know whether you have also explicitly imported those
835         functions for your own use, so we err on the safe side and
836         always keep them. (Dave Rolsky)
837         - added tests for this (rafl)
838
839     * Moose::Meta::Class
840       - Changes to how we fix metaclass compatibility that are much
841         too complicated to go into. The summary is that Moose is much
842         less likely to complain about metaclass incompatibility
843         now. In particular, if two metaclasses differ because
844         Moose::Util::MetaRole was used on the two corresponding
845         classes, then the difference in roles is reconciled for the
846         subclass's metaclass. (Dave Rolsky)
847       - Squashed an warning in _process_attribute (thepler)
848
849     * Moose::Meta::Role
850       - throw exceptions (sooner) for invalid attribute names (thepler)
851         - added tests for this (thepler)
852
853     * Moose::Util::MetaRole
854       - If you explicitly set a constructor or destructor class for a
855         metaclass object, and then applied roles to the metaclass,
856         that explicitly set class would be lost and replaced with the
857         default.
858
859     * Moose::Meta::Class
860     * Moose::Meta::Attribute
861     * Moose::Meta::Method
862     * Moose
863     * Moose::Object
864     * Moose::Error::Default
865     * Moose::Error::Croak
866     * Moose::Error::Confess
867       - All instances of confess() changed to use overridable
868         C<throw_error> method. This method ultimately calls a class
869         constructor, and you can change the class being called. In
870         addition, errors now pass more information than just a string.
871         The default C<error_class> behaves like C<Carp::confess>, so
872         the behavior is not visibly different for end users.
873
874 0.57 Wed September 3, 2008
875     * Moose::Intro
876       - A new bit of doc intended to introduce folks familiar with
877         "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
878
879     * Moose::Unsweetened
880       - Shows examples of two classes, each done first with and then
881         without Moose. This makes a nice parallel to
882         Moose::Intro. (Dave Rolsky)
883
884     * Moose::Util::TypeConstraints
885       - Fixed a bug in find_or_parse_type_constraint so that it
886         accepts a Moose::Meta::TypeConstraint object as the parent
887         type, not just a name (jnapiorkowski)
888         - added tests (jnapiorkowski)
889
890     * Moose::Exporter
891       - If Sub::Name was not present, unimporting failed to actually
892         remove some sugar subs, causing test failures (Dave Rolsky)
893
894 0.56 Mon September 1, 2008
895     For those not following the series of dev releases, there are
896     several major changes in this release of Moose.
897       ! Moose::init_meta should now be called as a method. See the
898         docs for details.
899
900       - Major performance improvements by nothingmuch.
901
902       - New modules for extension writers, Moose::Exporter and
903         Moose::Util::MetaRole by Dave Rolsky.
904
905       - Lots of doc improvements and additions, especially in the
906         cookbook sections.
907
908       - Various bug fixes.
909
910     * Removed all references to the experimental-but-no-longer-needed
911       Moose::Meta::Role::Application::ToMetaclassInstance.
912
913     * Require Class::MOP 0.65.
914
915 0.55_04 Sat August 30, 2008
916     * Moose::Util::MetaRole
917     * Moose::Cookbook::Extending::Recipe2
918       - This simplifies the application of roles to any meta class, as
919         well as the base object class. Reimplemented metaclass traits
920         using this module. (Dave Rolsky)
921
922     * Moose::Cookbook::Extending::Recipe1
923       - This a new recipe, an overview of various ways to write Moose
924         extensions (Dave Rolsky)
925
926     * Moose::Cookbook::Extending::Recipe3
927     * Moose::Cookbook::Extending::Recipe4
928       - These used to be Extending::Recipe1 and Extending::Recipe2,
929         respectively.
930
931 0.55_03 Fri August 29, 2008
932     * No changes from 0.55_02 except increasing the Class::MOP
933       dependency to 0.64_07.
934
935 0.55_02 Fri August 29, 2008
936     * Makefile.PL and Moose.pm
937       - explicitly require Perl 5.8.0+ (Dave Rolsky)
938
939     * Moose::Util::TypeConstraints
940       - Fix warnings from find_type_constraint if the type is not
941         found (t0m).
942
943     * Moose::Meta::TypeConstraint
944       - Predicate methods (equals/is_a_type_of/is_subtype_of) now
945         return false if the type you specify cannot be found in the
946         type registry, rather than throwing an unhelpful and
947         coincidental exception. (t0m).
948         - added docs & test for this (t0m)
949
950     * Moose::Meta::TypeConstraint::Registry
951       - add_type_constraint now throws an exception if a parameter is
952         not supplied (t0m).
953         - added docs & test for this (t0m)
954
955     * Moose::Cookbook::FAQ
956       - Added a faq entry on the difference between "role" and "trait"
957         (t0m)
958
959     * Moose::Meta::Role
960       - Fixed a bug that caused role composition to not see a required
961         method when that method was provided by another role being
962         composed at the same time. (Dave Rolsky)
963         - test and bug finding (tokuhirom)
964
965 0.55_01 Wed August 20, 2008
966
967     !! Calling Moose::init_meta as a function is now         !!
968     !! deprecated. Please see the Moose.pm docs for details. !!
969
970     * Moose::Meta::Method::Constructor
971       - Fix inlined constructor so that values produced by default
972         or builder methods are coerced as required. (t0m)
973         - added test for this (t0m)
974
975     * Moose::Meta::Attribute
976       - A lazy attribute with a default or builder did not attempt to
977         coerce the default value. The immutable code _did_
978         coerce. (t0m)
979         - added test for this (t0m)
980
981     * Moose::Exporter
982       - This is a new helper module for writing "Moose-alike"
983         modules. This should make the lives of MooseX module authors
984         much easier. (Dave Rolsky)
985
986     * Moose
987     * Moose::Cookbook::Meta::Recipe5
988       - Implemented metaclass traits (and wrote a recipe for it):
989
990           use Moose -traits => 'Foo'
991
992         This should make writing small Moose extensions a little
993         easier (Dave Rolsky)
994
995     * Moose::Cookbook::Basics::Recipe1
996       - Removed any examples of direct hashref access, and applied an
997         editorial axe to reduce verbosity. (Dave Rolsky)
998
999     * Moose::Cookbook::Basics::Recipe1
1000       - Also applied an editorial axe here. (Dave Rolsky)
1001
1002     * Moose
1003     * Moose::Cookbook::Extending::Recipe1
1004     * Moose::Cookbook::Extending::Recipe2
1005       - Rewrote extending and embedding moose documentation and
1006         recipes to use Moose::Exporter (Dave Rolsky)
1007
1008     * Moose
1009     * Moose::Role
1010       - These two modules now warn when you load them from the main
1011         package "main" package, because we will not export sugar to
1012         main. Previously it just did nothing. (Dave Rolsky)
1013
1014     * Moose::Role
1015       - Now provide an init_meta method just like Moose.pm, and you
1016         can call this to provide an alternate role metaclass. (Dave
1017         Rolsky and nothingmuch)
1018       - get_method_map now respects the package cache flag (nothingmuch)
1019
1020     * Moose::Meta::Role
1021       - Two new methods - add_method and wrap_method_body
1022         (nothingmuch)
1023
1024     * many modules
1025       - Optimizations including allowing constructors to accept hash
1026         refs, making many more classes immutable, and making
1027         constructors immutable. (nothingmuch)
1028
1029 0.55 Sun August 3, 2008
1030     * Moose::Meta::Attribute
1031       - breaking down the way 'handles' methods are
1032         created so that the process can be more easily
1033         overridden by subclasses (stevan)
1034
1035     * Moose::Meta::TypeConstraint
1036       - fixing what is passed into a ->message with
1037         the type constraints (RT #37569)
1038         - added tests for this (Charles Alderman)
1039
1040     * Moose::Util::TypeConstraints
1041       - fix coerce to accept anon types like subtype can (mst)
1042
1043     * Moose::Cookbook
1044       - reorganized the recipes into sections - Basics, Roles, Meta,
1045         Extending - and wrote abstracts for each section (Dave Rolsky)
1046
1047     * Moose::Cookbook::Basics::Recipe10
1048       - A new recipe that demonstrates operator overloading
1049         in combination with Moose. (bluefeet)
1050
1051     * Moose::Cookbook::Meta::Recipe1
1052       - an introduction to what meta is and why you'd want to make
1053         your own metaclass extensions (Dave Rolsky)
1054
1055     * Moose::Cookbook::Meta::Recipe4
1056       - a very simple metaclass example (Dave Rolsky)
1057
1058     * Moose::Cookbook::Extending::Recipe1
1059       - how to write a Moose-alike module to use your own object base
1060         class (Dave Rolsky)
1061
1062     * Moose::Cookbook::Extending::Recipe2
1063       - how to write modules with an API just like C<Moose.pm> (Dave
1064         Rolsky)
1065
1066     * all documentation
1067       - Tons of fixes, both syntactical and grammatical (Dave
1068         Rolsky, Paul Fenwick)
1069
1070 0.54 Thurs. July 3, 2008
1071     ... this is not my day today ...
1072
1073     * Moose::Meta::Attribute
1074       - fixed legal_options_for_inheritance such that
1075         clone_and_inherit options still works for
1076         Class::MOP::Attribute objects and therefore
1077         does not break MooseX::AttributeHelpers
1078         (stevan)
1079
1080 0.53 Thurs. July 3, 2008
1081     * Whoops, I guess I should run 'make manifest' before
1082       actually releasing the module. No actual changes
1083       in this release, except the fact that it includes
1084       the changes that I didn't include in the last
1085       release. (stevan--)
1086
1087 0.52 Thurs. July 3, 2008
1088     * Moose
1089       - added "FEATURE REQUESTS" section to the Moose docs
1090         to properly direct people (stevan) (RT #34333)
1091       - making 'extends' croak if it is passed a Role since
1092         this is not ever something you want to do
1093         (fixed by stevan, found by obra)
1094         - added tests for this (stevan)
1095
1096     * Moose::Object
1097       - adding support for DOES (as in UNIVERSAL::DOES)
1098         (nothingmuch)
1099         - added test for this
1100
1101     * Moose::Meta::Attribute
1102       - added legal_options_for_inheritance (wreis)
1103         - added tests for this (wreis)
1104
1105     * Moose::Cookbook::Snacks::*
1106       - removed some of the unfinished snacks that should
1107         not have been released yet. Added some more examples
1108         to the 'Keywords' snack. (stevan)
1109
1110     * Moose::Cookbook::Style
1111       - added general Moose "style guide" of sorts to the
1112         cookbook (nothingmuch) (RT #34335)
1113
1114     * t/
1115       - added more BUILDARGS tests (stevan)
1116
1117 0.51 Thurs. Jun 26, 2008
1118     * Moose::Role
1119       - add unimport so "no Moose::Role" actually does
1120         something (sartak)
1121
1122     * Moose::Meta::Role::Application::ToRole
1123       - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1124         order to provide its own implementation, that method still got
1125         added to the list of required methods for consumers of
1126         RoleB. Now an aliased method is only added to the list of
1127         required methods if the role doing the aliasing does not
1128         provide its own implementation. See Recipe 11 for an example
1129         of all this. (Dave Rolsky)
1130         - added tests for this
1131
1132     * Moose::Meta::Method::Constructor
1133       - when a single argument that wasn't a hashref was provided to
1134         an immutabilized constructor, the error message was very
1135         unhelpful, as opposed to the non-immutable error. Reported by
1136         dew. (Dave Rolsky)
1137         - added test for this (Dave Rolsky)
1138
1139     * Moose::Meta::Attribute
1140       - added support for meta_attr->does("ShortAlias") (sartak)
1141         - added tests for this (sartak)
1142       - moved the bulk of the `handles` handling to the new
1143         install_delegation method (Stevan)
1144
1145     * Moose::Object
1146       - Added BUILDARGS, a new step in new()
1147
1148     * Moose::Meta::Role::Application::RoleSummation
1149       - fix typos no one ever sees (sartak)
1150
1151     * Moose::Util::TypeConstraints
1152     * Moose::Meta::TypeConstraint
1153     * Moose::Meta::TypeCoercion
1154       - Attempt to work around the ??{ } vs. threads issue
1155         (not yet fixed)
1156       - Some null_constraint optimizations
1157
1158 0.50 Thurs. Jun 11, 2008
1159     - Fixed a version number issue by bumping all modules
1160       to 0.50.
1161
1162 0.49 Thurs. Jun 11, 2008
1163     !! This version now approx. 20-25% !!
1164     !! faster with new Class::MOP 0.59 !!
1165
1166     * Moose::Meta::Attribute
1167       - fixed how the is => (ro|rw) works with
1168         custom defined reader, writer and accessor
1169         options.
1170         - added docs for this (TODO).
1171         - added tests for this (Thanks to Penfold)
1172       - added the custom attribute alias for regular
1173         Moose attributes which is "Moose"
1174       - fix builder and default both being used
1175         (groditi)
1176
1177     * Moose
1178       Moose::Meta::Class
1179       Moose::Meta::Attribute
1180       Moose::Meta::Role
1181       Moose::Meta::Role::Composite
1182       Moose::Util::TypeConstraints
1183       - switched usage of reftype to ref because
1184         it is much faster
1185
1186     * Moose::Meta::Role
1187       - changing add_package_symbol to use the new
1188         HASH ref form
1189
1190     * Moose::Object
1191       - fixed how DEMOLISHALL is called so that it
1192         can be overrided in subclasses (thanks to Sartak)
1193         - added test for this (thanks to Sartak)
1194
1195     * Moose::Util::TypeConstraints
1196       - move the ClassName type check code to
1197         Class::MOP::is_class_loaded (thanks to Sartak)
1198
1199     * Moose::Cookbook::Recipe11
1200       - add tests for this (thanks to tokuhirom)
1201
1202 0.48 Thurs. May 29, 2008
1203     (early morning release engineering)--
1204
1205     - fixing the version in Moose::Meta::Method::Destructor
1206       which was causing the indexer to choke
1207
1208 0.47 Thurs. May 29, 2008
1209     (late night release engineering)--
1210
1211     - fixing the version is META.yml, no functional
1212       changes in this release
1213
1214 0.46 Wed. May 28, 2008
1215     !! This version now approx. 20-25% !!
1216     !! faster with new Class::MOP 0.57 !!
1217
1218     * Moose::Meta::Class
1219       - some optimizations of the &initialize method
1220         since it is called so often by &meta
1221
1222     * Moose::Meta::Class
1223       Moose::Meta::Role
1224       - now use the get_all_package_symbols from the
1225         updated Class::MOP, test suite is now 10 seconds
1226         faster
1227
1228     * Moose::Meta::Method::Destructor
1229       - is_needed can now also be called as a class
1230         method for immutablization to check if the
1231         destructor object even needs to be created
1232         at all
1233
1234     * Moose::Meta::Method::Destructor
1235       Moose::Meta::Method::Constructor
1236       - added more descriptive error message to help
1237         keep people from wasting time tracking an error
1238         that is easily fixed by upgrading.
1239
1240 0.45 Saturday, May 24, 2008
1241     * Moose
1242       - Because of work in Class::MOP 0.57, all
1243         XS based functionality is now optional
1244         and a Pure Perl version is supplied
1245         - the CLASS_MOP_NO_XS environment variable
1246           can now be used to force non-XS versions
1247           to always be used
1248         - several of the packages have been tweaked
1249           to take care of this, mostly we added
1250           support for the package_name and name
1251           variables in all the Method metaclasses
1252       - before/around/after method modifiers now
1253         support regexp matching of names
1254         (thanks to Takatoshi Kitano)
1255         - tests added for this
1256         - NOTE: this only works for classes, it
1257           is currently not supported in roles,
1258           but, ... patches welcome
1259       - All usage of Carp::confess have been replaced
1260         by Carp::croak in the "keyword" functions since
1261         the stack trace is usually not helpful
1262
1263     * Moose::Role
1264       - All usage of Carp::confess have been replaced
1265         by Carp::croak in the "keyword" functions since
1266         the stack trace is usually not helpful
1267       - The 'has' keyword for roles now accepts the
1268         same array ref form that Moose.pm does
1269         (has [qw/foo bar/] => (is => 'rw', ...))
1270         - added test for this
1271
1272     * Moose::Meta::Attribute
1273       - trigger on a ro-attribute is no longer an
1274         error, as it's useful to trigger off of the
1275         constructor
1276
1277     * Moose::Meta::Class
1278       - added same 'add_package_symbol' fix as in
1279         Class::MOP 0.57
1280
1281     * Moose::Util
1282       - does_role now handles non-Moose classes
1283         more gracefully
1284         - added tests for this
1285       - added the 'add_method_modifier' function
1286         (thanks to Takatoshi Kitano)
1287
1288     * Moose::Util::TypeConstraints
1289       - subtypes of parameterizable types now are
1290         themselves parameterizable types
1291
1292     * Moose::Meta::Method::Constructor
1293       - fixed bug where trigger was not being
1294         called by the inlined immutable
1295         constructors
1296         - added test for this (thanks to Caelum)
1297
1298     * Moose::Meta::Role::Application::ToInstance
1299       - now uses the metaclass of the instance
1300         (if possible) to create the anon-class
1301         (thanks Jonathan Rockway)
1302
1303     * Moose::Cookbook::Recipe22
1304       - added the meta-attribute trait recipe
1305         (thanks to Sartak)
1306
1307     * t/
1308       - fixed hash-ordering test bug that was
1309         causing occasional cpantester failures
1310       - renamed the t/000_recipe/*.t tests to be
1311         more descriptive (thanks to Sartak)
1312
1313 0.44 Sat. May 10, 2008
1314     * Moose
1315       - made make_immutable warning cluck to
1316         show where the error is (thanks mst)
1317
1318     * Moose::Object
1319       - BUILDALL and DEMOLISHALL now call
1320         ->body when looping through the
1321         methods, to avoid the overloaded
1322         method call.
1323       - fixed issue where DEMOLISHALL was
1324         eating the $@ values, and so not
1325         working correctly, it still kind of
1326         eats them, but so does vanilla perl
1327         - added tests for this
1328
1329     * Moose::Cookbook::Recipe7
1330       - added new recipe for immutable
1331         functionality (thanks Dave Rolsky)
1332
1333     * Moose::Cookbook::Recipe9
1334       - added new recipe for builder and
1335         lazy_build (thanks Dave Rolsky)
1336
1337     * Moose::Cookbook::Recipe11
1338       - added new recipe for method aliasing
1339         and exclusion with Roles (thanks Dave Rolsky)
1340
1341     * t/
1342       - fixed Win32 test failure (thanks spicyjack)
1343
1344     ~ removed Build.PL and Module::Build compat
1345       since Module::Install has done that.
1346
1347 0.43 Wed. April, 30, 2008
1348     * NOTE TO SELF:
1349         drink more coffee before
1350         doing release engineering
1351
1352     - whoops, forgot to do the smolder tests,
1353       and we broke some of the custom meta-attr
1354       modules. This fixes that.
1355
1356 0.42 Mon. April 28, 2008
1357     - some bad tests slipped by, nothing else
1358       changed in this release (cpantesters++)
1359
1360     - upped the Class::MOP dependency to 0.55
1361       since we have tests which need the C3
1362       support
1363
1364 0.41 Mon. April 28, 2008
1365     ~~ numerous documentation updates ~~
1366
1367     - Changed all usage of die to Carp::croak for better
1368       error reporting (initial patch by Tod Hagan)
1369
1370     ** IMPORTANT NOTE **
1371     - the make_immutable keyword is now deprecated, don't
1372       use it in any new code and please fix your old code
1373       as well. There will be 2 releases, and then it will
1374       be removed.
1375
1376     * Moose
1377       Moose::Role
1378       Moose::Meta::Class
1379       - refactored the way inner and super work to avoid
1380         any method/@ISA cache penalty (nothingmuch)
1381
1382     * Moose::Meta::Class
1383       - fixing &new_object to make sure trigger gets the
1384         coerced value (spotted by Charles Alderman on the
1385         mailing list)
1386         - added test for this
1387
1388     * Moose::Meta::Method::Constructor
1389       - immutable classes which had non-lazy attributes were calling
1390         the default generating sub twice in the constructor. (bug
1391         found by Jesse Luehrs, fixed by Dave Rolsky)
1392         - added tests for this (Dave Rolsky)
1393       - fix typo in initialize_body method (nothingmuch)
1394
1395     * Moose::Meta::Method::Destructor
1396       - fix typo in initialize_body method (nothingmuch)
1397
1398     * Moose::Meta::Method::Overriden
1399       Moose::Meta::Method::Augmented
1400       - moved the logic for these into their own
1401         classes (nothingmuch)
1402
1403     * Moose::Meta::Attribute
1404       - inherited attributes may now be extended without
1405         restriction on the type ('isa', 'does') (Sartak)
1406         - added tests for this (Sartak)
1407       - when an attribute property is malformed (such as lazy without
1408         a default), give the name of the attribute in the error
1409         message (Sartak)
1410       - added the &applied_traits and &has_applied_traits methods
1411         to allow introspection of traits
1412         - added tests for this
1413       - moved 'trait' and 'metaclass' argument handling to here from
1414         Moose::Meta::Class
1415       - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1416         '+foo' syntax) (nothingmuch)
1417         - added tests for this (t0m)
1418
1419     * Moose::Object
1420       - localize $@ inside DEMOLISHALL to avoid it
1421         eating $@ (found by Ernesto)
1422         - added test for this (thanks to Ernesto)
1423
1424     * Moose::Util::TypeConstraints
1425       - &find_type_constraint now DWIMs when given an
1426         type constraint object or name (nothingmuch)
1427       - &find_or_create_type_constraint superseded with a number of more
1428         specific functions:
1429         - find_or_create_{isa,does}_type_constraint
1430         - find_or_parse_type_constraint
1431
1432     * Moose::Meta::TypeConstraint
1433       Moose::Meta::TypeConstraint::Class
1434       Moose::Meta::TypeConstraint::Role
1435       Moose::Meta::TypeConstraint::Enum
1436       Moose::Meta::TypeConstraint::Union
1437       Moose::Meta::TypeConstraint::Parameterized
1438         - added the &equals method for comparing two type
1439           constraints (nothingmuch)
1440           - added tests for this (nothingmuch)
1441
1442     * Moose::Meta::TypeConstraint
1443       - add the &parents method, which is just an alias to &parent.
1444         Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1445
1446     * Moose::Meta::TypeConstraint::Class
1447       - added the class attribute for introspection purposes
1448         (nothingmuch)
1449         - added tests for this
1450
1451     * Moose::Meta::TypeConstraint::Enum
1452       Moose::Meta::TypeConstraint::Role
1453       - broke these out into their own classes (nothingmuch)
1454
1455     * Moose::Cookbook::Recipe*
1456       - fixed references to test file locations in the POD
1457         and updated up some text for new Moose features
1458         (Sartak)
1459
1460     * Moose::Util
1461       - Added &resolve_metaclass_alias, a helper function for finding an actual
1462         class for a short name (e.g. in the traits list)
1463
1464 0.40 Fri. March 14, 2008
1465     - I hate Pod::Coverage
1466
1467 0.39 Fri. March 14, 2008
1468     * Moose
1469       - documenting the use of '+name' with attributes
1470         that come from recently composed roles. It makes
1471         sense, people are using it, and so why not just
1472         officially support it.
1473       - fixing the 'extends' keyword so that it will not
1474         trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1475
1476     * oose
1477       - added the perl -Moose=+Class::Name feature to allow
1478         monkeypatching of classes in one liners
1479
1480     * Moose::Util
1481       - fixing the 'apply_all_roles' keyword so that it will not
1482         trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1483
1484     * Moose::Meta::Class
1485       - added ->create method which now supports roles (thanks to jrockway)
1486         - added tests for this
1487       - added ->create_anon_class which now supports roles and caching of
1488         the results (thanks to jrockway)
1489         - added tests for this
1490       - made ->does_role a little more forgiving when it is
1491         checking a Class::MOP era metaclasses.
1492
1493     * Moose::Meta::Role::Application::ToInstance
1494       - it is now possible to pass extra params to be used when
1495         a role is applied to an the instance (rebless_params)
1496         - added tests for this
1497
1498     * Moose::Util::TypeConstraints
1499       - class_type now accepts an optional second argument for a
1500         custom message. POD anotated accordingly (groditi)
1501         - added tests for this
1502       - it is now possible to make anon-enums by passing 'enum' an
1503         ARRAY ref instead of the $name => @values. Everything else
1504         works as before.
1505         - added tests for this
1506
1507     * t/
1508       - making test for using '+name' on attributes consumed
1509         from a role, it works and makes sense too.
1510
1511     * Moose::Meta::Attribute
1512       - fix handles so that it doesn't return nothing
1513         when the method cannot be found, not sure why
1514         it ever did this originally, this means we now
1515         have slightly better support for AUTOLOADed
1516         objects
1517         - added more delegation tests
1518       - adding ->does method to this so as to better
1519         support traits and their introspection.
1520         - added tests for this
1521
1522     * Moose::Object
1523       - localizing the Data::Dumper configurations so
1524         that it does not pollute others (RT #33509)
1525       - made ->does a little more forgiving when it is
1526         passed Class::MOP era metaclasses.
1527
1528 0.38 Fri. Feb. 15, 2008
1529     * Moose::Meta::Attribute
1530       - fixed initializer to correctly do
1531         type checking and coercion in the
1532         callback
1533         - added tests for this
1534
1535     * t/
1536       - fixed some finicky tests (thanks to konobi)
1537
1538 0.37 Thurs. Feb. 14, 2008
1539     * Moose
1540       - fixed some details in Moose::init_meta
1541         and its superclass handling (thanks thepler)
1542         - added tests for this (thanks thepler)
1543       - 'has' now dies if you don't pass in name
1544         value pairs
1545       - added the 'make_immutable' keyword as a shortcut
1546         to make_immutable
1547
1548     * Moose::Meta::Class
1549       Moose::Meta::Method::Constructor
1550       Moose::Meta::Attribute
1551       - making (init_arg => undef) work here too
1552         (thanks to nothingmuch)
1553
1554     * Moose::Meta::Attribute
1555       Moose::Meta::Method::Constructor
1556       Moose::Meta::Method::Accessor
1557       - make lazy attributes respect attr initializers (rjbs)
1558         - added tests for this
1559
1560     * Moose::Util::TypeConstraints
1561       Moose::Util::TypeConstraints::OptimizedConstraints
1562       Moose::Meta::TypeConstraints
1563       Moose::Meta::Attribute
1564       Moose::Meta::Method::Constructor
1565       Moose::Meta::Method::Accessor
1566       - making type errors use the
1567         assigned message (thanks to Sartak)
1568         - added tests for this
1569
1570     * Moose::Meta::Method::Destructor
1571       - making sure DESTROY gets inlined properly
1572         with successive DEMOLISH calls (thanks to manito)
1573
1574     * Moose::Meta::Attribute
1575       Moose::Meta::Method::Accessor
1576       - fixed handling of undef with type constraints
1577         (thanks to Ernesto)
1578         - added tests for this
1579
1580     * Moose::Util
1581       - added &get_all_init_args and &get_all_attribute_values
1582         (thanks to Sartak and nothingmuch)
1583
1584 0.36 Sat. Jan. 26, 2008
1585     * Moose::Role
1586       Moose::Meta::Attribute
1587       - role type tests now support when roles are
1588         applied to non-Moose classes (found by ash)
1589         - added tests for this (thanks to ash)
1590       - couple extra tests to boost code coverage
1591
1592     * Moose::Meta::Method::Constructor
1593       - improved fix for handling Class::MOP attributes
1594         - added test for this
1595
1596     * Moose::Meta::Class
1597       - handled the add_attribute($attribute_meta_object)
1598         case correctly
1599         - added test for this
1600
1601 0.35 Tues. Jan. 22, 2008
1602     * Moose::Meta::Method::Constructor
1603       - fix to make sure even Class::MOP attributes
1604         are handled correctly (Thanks to Dave Rolsky)
1605         - added test for this (also Dave Rolsky)
1606
1607     * Moose::Meta::Class
1608       - improved error message on _apply_all_roles,
1609         you should now use Moose::Util::apply_all_roles
1610         and you shouldnt have been using a _ prefixed
1611         method in the first place ;)
1612
1613 0.34 Mon. Jan. 21, 2008
1614     ~~~ more misc. doc. fixes ~~~
1615     ~~ updated copyright dates ~~
1616
1617     Moose is now a postmodern object system :)
1618       - (see the POD for details)
1619
1620     * <<Role System Refactoring>>
1621     - this release contains a major reworking and
1622       cleanup of the role system
1623       - 100% backwards compat.
1624       - Role application now restructured into seperate
1625         classes based on type of applicants
1626       - Role summation (combining of more than one role)
1627         is much cleaner and anon-classes are no longer
1628         used in this process
1629       - new Composite role metaclass
1630       - runtime application of roles to instances
1631         is now more efficient and re-uses generated
1632         classes when applicable
1633
1634     * <<New Role composition features>>
1635       - methods can now be excluded from a given role
1636         during composition
1637       - methods can now be aliased to another name (and
1638         still retain the original as well)
1639
1640     * Moose::Util::TypeConstraints::OptimizedConstraints
1641       - added this module (see above)
1642
1643     * Moose::Meta::Class
1644       - fixed the &_process_attribute method to be called
1645         by &add_attribute, so that the API is now correct
1646
1647     * Moose::Meta::Method::Accessor
1648       - fixed bug when passing a list of values to
1649         an accessor would get (incorrectly) ignored.
1650         Thanks to Sartak for finding this ;)
1651         - added tests for this (Sartak again)
1652
1653     * Moose::Meta::Method::Accessor
1654       Moose::Meta::Method::Constructor
1655       Moose::Meta::Attribute
1656       Moose::Meta::TypeConstraint
1657       Moose::Meta::TypeCoercion
1658       - lots of cleanup of such things as:
1659         - generated methods
1660         - type constraint handling
1661         - error handling/messages
1662         (thanks to nothingmuch)
1663
1664     * Moose::Meta::TypeConstraint::Parameterizable
1665       - added this module to support the refactor
1666         in Moose::Meta::TypeConstraint::Parameterized
1667
1668     * Moose::Meta::TypeConstraint::Parameterized
1669       - refactored how these types are handled so they
1670         are more generic and not confined to ArrayRef
1671         and HashRef only
1672
1673     * t/
1674       - shortened some file names for better VMS support (RT #32381)
1675
1676 0.33 Fri. Dec. 14, 2007
1677     !! Moose now loads 2 x faster !!
1678     !!  with new Class::MOP 0.49  !!
1679
1680     ++ new oose.pm module to make command line
1681        Moose-ness easier (see POD docs for more)
1682
1683     * Moose::Meta::Class
1684     * Moose::Meta::Role
1685       - several tweaks to take advantage of the
1686         new method map caching in Class::MOP
1687
1688     * Moose::Meta::TypeConstraint::Parameterized
1689       - allow subtypes of ArrayRef and HashRef to
1690         be used as a container (sartak)
1691         - added tests for this
1692       - basic support for coercion to ArrayRef and
1693         HashRef for containers (sartak)
1694         - added tests for this
1695
1696     * Moose::Meta::TypeCoercion
1697       - coercions will now create subtypes as needed
1698         so you can now add coercions to parameterized
1699         types without having to explictly define them
1700         - added tests for this
1701
1702     * Moose::Meta::Method::Accessor
1703       - allow subclasses to decide whether we need
1704         to copy the value into a new variable (sartak)
1705
1706 0.32 Tues. Dec. 4, 2007
1707     * Moose::Util::TypeConstraints
1708       - fixing how subtype aliases of unions work
1709         they should inherit the parent's coercion
1710         - added tests for this
1711       - you can now define multiple coercions on
1712         a single type at different times instead of
1713         having to do it all in one place
1714         - added tests for this
1715
1716     * Moose::Meta::TypeConstraint
1717       - there is now a default constraint of sub { 1 }
1718         instead of Moose::Util::TypeConstraints setting
1719         this for us
1720
1721     * Moose::Meta::TypeCoercion
1722     * Moose::Meta::TypeCoercion::Union
1723       - added the &has_coercion_for_type and
1724         &add_type_coercions methods to support the
1725         new features above (although you cannot add
1726         more type coercions for Union types)
1727
1728 0.31 Mon. Nov. 26, 2007
1729     * Moose::Meta::Attribute
1730       - made the +attr syntax handle extending types with
1731         parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1732         now works if the original foo is an ArrayRef.
1733         - added tests for this.
1734       - delegation now works even if the attribute does not
1735         have a reader method using the get_read_method_ref
1736         method from Class::MOP::Attribute.
1737         - added tests for this
1738         - added docs for this
1739
1740     * Moose::Util::TypeConstraints
1741       - passing no "additional attribute info" to
1742         &find_or_create_type_constraint will no longer
1743         attempt to create an __ANON__ type for you,
1744         instead it will just return undef.
1745         - added docs for this
1746
1747 0.30 Fri. Nov. 23, 2007
1748     * Moose::Meta::Method::Constructor
1749       -builder related bug in inlined constructor. (groditi)
1750
1751     * Moose::Meta::Method::Accessor
1752       - genereate unnecessary calls to predicates and refactor
1753         code generation for runtime speed (groditi)
1754
1755     * Moose::Util::TypeConstraints
1756       - fix ClassName constraint to introspect symbol table (mst)
1757         - added more tests for this (mst)
1758       - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1759         with work correctly.
1760         - added tests for this
1761
1762     * Moose::Cookbook
1763       - adding the link to Recipie 11 (written by Sartak)
1764         - adding test for SYNOPSIS code
1765
1766     * t/
1767       - New tests for builder bug. Upon instantiation, if an
1768         attribute had a builder, no value and was not lazy the
1769         builder default was not getting run, oops. (groditi)
1770
1771 0.29 Tues. Nov. 13, 2007
1772     * Moose::Meta::Attribute
1773       - Fix error message on missing builder method (groditi)
1774
1775     * Moose::Meta::Method::Accessor
1776       - Fix error message on missing builder method (groditi)
1777
1778     * t/
1779       - Add test to check for the correct error message when
1780         builder method is missing (groditi)
1781
1782 0.28 Tues. Nov. 13, 2007
1783     - 0.27 packaged incorrectly (groditi)
1784
1785 0.27 Tues. Nov. 13, 2007
1786     * Moose::Meta::Attribute
1787       - Added support for the new builder option (groditi)
1788       - Added support for lazy_build option (groditi)
1789       - Changed slot initialization for predicate changes (groditi)
1790
1791     * Moose::Meta::Method::Accessor
1792       - Added support for lazy_build option (groditi)
1793       - Fix inline methods to work with corrected predicate
1794         behavior (groditi)
1795
1796     * Moose::Meta::Method::Constructor
1797       - Added support for lazy_build option (groditi)
1798
1799     * t/
1800       - tests for builder and lazy_build (groditi)
1801
1802     * fixing some misc. bits in the docs that
1803       got mentioned on CPAN Forum & perlmonks
1804
1805     * Moose::Meta::Role
1806       - fixed how required methods are handled
1807         when they encounter overriden or modified
1808         methods from a class (thanks to confound).
1809         - added tests for this
1810
1811     * Moose::Util::TypeConstraint
1812       - fixed the type notation parser so that
1813         the | always creates a union and so is
1814         no longer a valid type char (thanks to
1815         konobi, mugwump and #moose for working
1816         this one out.)
1817         - added more tests for this
1818
1819 0.26 Thurs. Sept. 27, 2007
1820     == New Features ==
1821
1822     * Parameterized Types
1823       We now support parameterized collection types, such as:
1824           ArrayRef[Int]    # array or integers
1825           HashRef[Object]  # a hash with object values
1826       They can also be nested:
1827           ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1828       And work with the type unions as well:
1829           ArrayRef[Int | Str]  # array of integers of strings
1830
1831     * Better Framework Extendability
1832       Moose.pm is now "extendable" such that it is now much
1833       easier to extend the framework and add your own keywords
1834       and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1835       section of the Moose.pm docs.
1836
1837     * Moose Snacks!
1838       In an effort to begin documenting some of the various
1839       details of Moose as well as some common idioms, we have
1840       created Moose::Cookbook::Snacks as a place to find
1841       small (easily digestable) nuggets of Moose code.
1842
1843     ====
1844     ~ Several doc updates/cleanup thanks to castaway ~
1845
1846     - converted build system to use Module::Install instead of
1847       Module::Build (thanks to jrockway)
1848
1849     * Moose
1850       - added all the meta classes to the immutable list and
1851         set it to inline the accessors
1852       - fix import to allow Sub::Exporter like { into => }
1853             and { into_level => } (perigrin)
1854       - exposed and documented init_meta() to allow better
1855             embedding and extending of Moose (perigrin)
1856
1857         * t/
1858           - complete re-organization of the test suite
1859           - added some new tests as well
1860           - finally re-enabled the Moose::POOP test since
1861             the new version of DBM::Deep now works again
1862             (thanks rob)
1863
1864     * Moose::Meta::Class
1865       - fixed very odd and very nasty recursion bug with
1866         inner/augment (mst)
1867         - added tests for this (eilara)
1868
1869     * Moose::Meta::Attribute
1870       Moose::Meta::Method::Constructor
1871       Moose::Meta::Method::Accessor
1872       - fixed issue with overload::Overloaded getting called
1873         on non-blessed items. (RT #29269)
1874         - added tests for this
1875
1876     * Moose::Meta::Method::Accessor
1877       - fixed issue with generated accessor code making
1878         assumptions about hash based classes (thanks to dexter)
1879
1880     * Moose::Coookbook::Snacks
1881       - these are bits of documentation, not quite as big as
1882         Recipes but which have no clear place in the module docs.
1883         So they are Snacks! (horray for castaway++)
1884
1885     * Moose::Cookbook::Recipe4
1886       - updated it to use the new ArrayRef[MyType] construct
1887         - updated the accompanying test as well
1888
1889     +++ Major Refactor of the Type Constraint system +++
1890     +++       with new features added as well        +++
1891
1892     * Moose::Util::TypeConstraint
1893       - no longer uses package variable to keep track of
1894         the type constraints, now uses the an instance of
1895         Moose::Meta::TypeConstraint::Registry to do it
1896       - added more sophisticated type notation parsing
1897         (thanks to mugwump)
1898         - added tests for this
1899
1900     * Moose::Meta::TypeConstraint
1901       - some minor adjustments to make subclassing easier
1902       - added the package_defined_in attribute so that we
1903         can track where the type constraints are created
1904
1905     * Moose::Meta::TypeConstraint::Union
1906       - this is now been refactored to be a subclass of
1907         Moose::Meta::TypeConstraint
1908
1909     * Moose::Meta::TypeCoercion::Union
1910       - this has been added to service the newly refactored
1911         Moose::Meta::TypeConstraint::Union and is itself
1912         a subclass of Moose::Meta::TypeCoercion
1913
1914     * Moose::Meta::TypeConstraint::Parameterized
1915       - added this module (taken from MooseX::AttributeHelpers)
1916         to help construct nested collection types
1917         - added tests for this
1918
1919     * Moose::Meta::TypeConstraint::Registry
1920       - added this class to keep track of type constraints
1921
1922 0.25 Mon. Aug. 13, 2007
1923     * Moose
1924       - Documentation update to reference Moose::Util::TypeConstraints
1925         under 'isa' in 'has' for how to define a new type
1926         (thanks to shlomif).
1927
1928     * Moose::Meta::Attribute
1929       - required attributes now will no longer accept undef
1930         from the constructor, even if there is a default and lazy
1931         - added tests for this
1932       - default subroutines must return a value which passes the
1933         type constraint
1934         - added tests for this
1935
1936     * Moose::Meta::Attribute
1937     * Moose::Meta::Method::Constructor
1938     * Moose::Meta::Method::Accessor
1939       - type-constraint tests now handle overloaded objects correctly
1940         in the error message
1941         - added tests for this (thanks to EvanCarroll)
1942
1943     * Moose::Meta::TypeConstraint::Union
1944       - added (has_)hand_optimized_constraint to this class so that
1945         it behaves as the regular Moose::Meta::TypeConstraint does.
1946
1947     * Moose::Meta::Role
1948       - large refactoring of this code
1949       - added several more tests
1950         - tests for subtle conflict resolition issues
1951           added, but not currently running
1952           (thanks to kolibre)
1953
1954     * Moose::Cookbook::Recipe7
1955       - added new recipe for augment/inner functionality
1956         (still in progress)
1957         - added test for this
1958
1959     * Moose::Spec::Role
1960       - a formal definition of roles (still in progress)
1961
1962     * Moose::Util
1963       - utilities for easier working with Moose classes
1964         - added tests for these
1965
1966     * Test::Moose
1967       - This contains Moose specific test functions
1968         - added tests for these
1969
1970 0.24 Tues. July 3, 2007
1971     ~ Some doc updates/cleanup ~
1972
1973     * Moose::Meta::Attribute
1974       - added support for roles to be given as parameters
1975         to the 'handles' option.
1976         - added tests and docs for this
1977       - the has '+foo' attribute form now accepts changes to
1978         the lazy option, and the addition of a handles option
1979         (but not changing the handles option)
1980         - added tests and docs for this
1981
1982     * Moose::Meta::Role
1983       - required methods are now fetched using find_method_by_name
1984         so that required methods can come from superclasses
1985         - adjusted tests for this
1986
1987 0.23 Mon. June 18, 2007
1988     * Moose::Meta::Method::Constructor
1989       - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1990     * Moose::Meta::Class
1991       - Modify make_immutable to work with the new Class::MOP immutable
1992         mechanism + POD + very basic test (groditi)
1993     * Moose::Meta::Attribute
1994       - Fix handles to use goto() so that caller() comes out properly on
1995         the other side (perigrin)
1996
1997 0.22 Thurs. May 31, 2007
1998     * Moose::Util::TypeConstraints
1999       - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2000         loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2001         prototypes for functions
2002       - added the ClassName type constraint, this checks for strings
2003         which will respond true to ->isa(UNIVERSAL).
2004         - added tests and docs for this
2005       - subtyping just in name now works correctly by making the
2006         default for where be { 1 }
2007         - added test for this
2008
2009     * Moose::Meta::Method::Accessor
2010       - coerce and lazy now work together correctly, thanks to
2011         merlyn for finding this bug
2012         - tests added for this
2013       - fix reader presedence bug in Moose::Meta::Attribute + tests
2014
2015     * Moose::Object
2016       - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2017         a HASH-ref and missed. This produces better error messages then
2018         having it die cause undef is not a HASH.
2019         - added tests for this
2020
2021 0.21 Thursday, May 2nd, 2007
2022     * Moose
2023       - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2024       - modified unimport to remove super and inner along with the rest
2025         - altered unimport tests to handle this
2026
2027     * Moose::Role
2028       - altered super export to populate SUPER_SLOT
2029
2030     * Moose::Meta::Class
2031       - altered augment and override modifier application to use *_SLOT
2032         - modified tests for these to unimport one test class each to test
2033
2034     * Moose::Meta::Role
2035       - fixed issue where custom attribute metaclasses
2036         where not handled correctly in roles
2037         - added tests for this
2038
2039     * Moose::Meta::Class
2040       - fixed issue where extending metaclasses with
2041         roles would blow up. Thanks to Aankhen`` for
2042         finding this insidious error, and it's solution.
2043
2044     ~~ lots of spelling and grammer fixes in the docs,
2045        many many thanks to rlb3 and Aankhen for these :)
2046
2047 0.20 Friday, April 6th, 2007
2048     >> I messed up the SKIP logic in one test
2049        so this release is just to fix that.
2050
2051     * Moose
2052       - 'has' now also accepts an ARRAY ref
2053         to create multiple attrs (see docs)
2054         (thanks to konobi for this)
2055          - added tests and docs
2056
2057 0.19 Thurs. April 5th, 2007
2058     ~~ More documentation updates ~~
2059
2060     * Moose::Util::TypeConstraints
2061       - 'type' now supports messages as well
2062         thanks to phaylon for finding this
2063         - added tests for this
2064       - added &list_all_type_constraints and
2065         &list_all_builtin_type_constraints
2066         functions to facilitate introspection.
2067
2068     * Moose::Meta::Attribute
2069       - fixed regexp 'handles' declarations
2070         to build the list of delegated methods
2071         correctly (and not override important
2072         things like &new) thanks to ashleyb
2073         for finding this
2074         - added tests and docs for this
2075       - added the 'documentation' attributes
2076         so that you can actually document your
2077         attributes and inspect them through the
2078         meta-object.
2079         - added tests and docs for this
2080
2081     * Moose::Meta::Class
2082       - when loading custom attribute metaclasses
2083         it will first look in for the class in the
2084         Moose::Meta::Attribute::Custom::$name, and
2085         then default to just loading $name.
2086         - added tests and docs for this
2087
2088     * Moose::Meta::TypeConstraint
2089       - type constraints now stringify to their names.
2090         - added test for this
2091
2092     * misc.
2093       - added tests to assure we work with Module::Refresh
2094       - added stricter test skip logic in the Moose POOP
2095         test, ask Rob Kinyon why.
2096         - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2097
2098 0.18 Sat. March 10, 2007
2099     ~~ Many, many documentation updates ~~
2100
2101     * misc.
2102       - We now use Class::MOP::load_class to
2103         load all classes.
2104       - added tests to show types and subtypes
2105         working with Declare::Constraints::Simple
2106         and Test::Deep as constraint engines.
2107
2108 0.18_001
2109     !! You must have Class::MOP 0.37_001  !!
2110     !! for this developer release to work !!
2111
2112     This release was primarily adding the immutable
2113     feature to Moose. An immutable class is one which
2114     you promise not to alter. When you set the class
2115     as immutable it will perform various bits of
2116     memoization and inline certain part of the code
2117     (constructors, destructors and accessors). This
2118     minimizes (and in some cases totally eliminates)
2119     one of Moose's biggest performance hits. This
2120     feature is not on by default, and is 100% optional.
2121     It has several configurable bits as well, so you
2122     can pick and choose to your specific needs.
2123
2124     The changes involved in this were fairly wide and
2125     highly specific, but 100% backwards compatible, so
2126     I am not going to enumerate them here. If you are
2127     truely interested in what was changed, please do
2128     a diff :)
2129
2130 0.17 Tues. Nov. 14, 2006
2131     * Moose::Meta::Method::Accessor
2132       - bugfix for read-only accessors which
2133         are have a type constraint and lazy.
2134         Thanks to chansen for finding it.
2135
2136 0.16 Tues. Nov. 14, 2006
2137     ++ NOTE ++
2138     There are some speed improvements in this release,
2139     but they are only the begining, so stay tuned.
2140
2141     * Moose::Object
2142       - BUILDALL and DEMOLISHALL no longer get
2143         called unless they actually need to be.
2144         This gave us a signifigant speed boost
2145         for the cases when there is no BUILD or
2146         DEMOLISH method present.
2147
2148     * Moose::Util::TypeConstraints
2149     * Moose::Meta::TypeConstraint
2150       - added an 'optimize_as' option to the
2151         type constraint, which allows for a
2152         hand optimized version of the type
2153         constraint to be used when possible.
2154       - Any internally created type constraints
2155         now provide an optimized version as well.
2156
2157 0.15 Sun. Nov. 5, 2006
2158     ++ NOTE ++
2159     This version of Moose *must* have Class::MOP 0.36 in order
2160     to work correctly. A number of small internal tweaks have
2161     been made in order to be compatible with that release.
2162
2163     * Moose::Util::TypeConstraints
2164       - added &unimport so that you can clean out
2165         your class namespace of these exported
2166         keywords
2167
2168     * Moose::Meta::Class
2169       - fixed minor issue which occasionally
2170         comes up during global destruction
2171         (thanks omega)
2172       - moved Moose::Meta::Method::Overriden into
2173         its own file.
2174
2175     * Moose::Meta::Role
2176       - moved Moose::Meta::Role::Method into
2177         its own file.
2178
2179     * Moose::Meta::Attribute
2180       - changed how we do type checks so that
2181         we reduce the overall cost, but still
2182         retain correctness.
2183        *** API CHANGE ***
2184       - moved accessor generation methods to
2185         Moose::Meta::Method::Accessor to
2186         conform to the API changes from
2187         Class::MOP 0.36
2188
2189     * Moose::Meta::TypeConstraint
2190       - changed how constraints are compiled
2191         so that we do less recursion and more
2192         iteration. This makes the type check
2193         faster :)
2194       - moved Moose::Meta::TypeConstraint::Union
2195         into its own file
2196
2197     * Moose::Meta::Method::Accessor
2198       - created this from methods formerly found in
2199         Moose::Meta::Attribute
2200
2201     * Moose::Meta::Role::Method
2202       - moved this from Moose::Meta::Role
2203
2204     * Moose::Meta::Method::Overriden
2205       - moved this from Moose::Meta::Class
2206
2207     * Moose::Meta::TypeConstraint::Union
2208       - moved this from Moose::Meta::TypeConstraint
2209
2210 0.14 Mon. Oct. 9, 2006
2211
2212     * Moose::Meta::Attribute
2213       - fixed lazy attributes which were not getting
2214         checked with the type constraint (thanks ashley)
2215         - added tests for this
2216       - removed the over-enthusiastic DWIMery of the
2217         automatic ArrayRef and HashRef defaults, it
2218         broke predicates in an ugly way.
2219         - removed tests for this
2220
2221 0.13 Sat. Sept. 30, 2006
2222     ++ NOTE ++
2223     This version of Moose *must* have Class::MOP 0.35 in order
2224     to work correctly. A number of small internal tweaks have
2225     been made in order to be compatible with that release.
2226
2227     * Moose
2228       - Removed the use of UNIVERSAL::require to be a better
2229         symbol table citizen and remove a dependency
2230         (thanks Adam Kennedy)
2231
2232       **~~ removed experimental & undocumented feature ~~**
2233       - commented out the 'method' and 'self' keywords, see the
2234         comments for more info.
2235
2236     * Moose::Cookbook
2237       - added a FAQ and WTF files to document frequently
2238         asked questions and common problems
2239
2240     * Moose::Util::TypeConstraints
2241       - added GlobRef and FileHandle type constraint
2242         - added tests for this
2243
2244     * Moose::Meta::Attribute
2245       - if your attribute 'isa' ArrayRef of HashRef, and you have
2246         not explicitly set a default, then make the default DWIM.
2247         This will also work for subtypes of ArrayRef and HashRef
2248         as well.
2249       - you can now auto-deref subtypes of ArrayRef or HashRef too.
2250         - new test added for this (thanks to ashley)
2251
2252     * Moose::Meta::Role
2253       - added basic support for runtime role composition
2254         but this is still *highly experimental*, so feedback
2255         is much appreciated :)
2256         - added tests for this
2257
2258     * Moose::Meta::TypeConstraint
2259       - the type constraint now handles the coercion process
2260         through delegation, this is to support the coercion
2261         of unions
2262
2263     * Moose::Meta::TypeConstraint::Union
2264       - it is now possible for coercions to be performed
2265         on a type union
2266         - added tests for this (thanks to konobi)
2267
2268     * Moose::Meta::TypeCoercion
2269       - properly capturing error when type constraint
2270         is not found
2271
2272     * Build.PL
2273       - Scalar::Util 1.18 is bad on Win32, so temporarily
2274         only require version 1.17 for Win32 and cygwin.
2275         (thanks Adam Kennedy)
2276
2277 0.12 Sat. Sept. 1, 2006
2278     * Moose::Cookbook
2279       - Recipe5 (subtypes & coercion) has been written
2280
2281     * Moose
2282       - fixed "bad meta" error message to be more descriptive
2283       - fixed &unimport to not remove the &inner and &super
2284         keywords because we need to localize them.
2285       - fixed number of spelling/grammer issues, thanks Theory :)
2286
2287       **~~ experimental & undocumented feature ~~**
2288       - added the method and self keywords, they are basically
2289         just sugar, and they may not stay around.
2290
2291     * Moose::Object
2292       - added &dump method to easily Data::Dumper
2293         an object
2294
2295     * Moose::Meta::TypeConstraint
2296       - added the &is_a_type_of method to check both the current
2297         and the subtype of a method (similar to &isa with classes)
2298
2299     * Moose::Meta::Role
2300       - this is now a subclass of Class::MOP::Module, and no longer
2301         creates the _role_meta ugliness of before.
2302         - fixed tests to reflect this change
2303
2304 0.11 Wed. July 12, 2006
2305     * Moose
2306       - added an &unimport method to remove all the keywords
2307         that Moose will import, simply add 'no Moose' to the
2308         bottom of your class file.
2309
2310     * t/
2311       - fixed some test failures caused by a forgotten test
2312         dependency.
2313
2314 0.10 Thurs. July 6, 2006
2315     * Moose
2316       - improved error message when loading modules so
2317         it is less confusing when you load a role.
2318       - added &calculate_all_roles method to
2319         Moose::Meta::Class and Moose::Meta::Role
2320
2321     NOTE:
2322     This module has been tested against Class::MOP 0.30
2323     but it does not yet utilize the optimizations
2324     it makes available. Stay tuned for that ;)
2325
2326 0.09_03 Fri. June 23, 2006
2327     ++ DEVELOPER RELEASE ++
2328     * Moose
2329       - 'use strict' and 'use warnings' are no longer
2330          needed in Moose classes, Moose itself will
2331          turn them on for you.
2332          - added tests for this
2333       - moved code from exported subs to private methods
2334         in Moose::Meta::Class
2335
2336     * Moose::Role
2337       - as with Moose, strict and warnings are
2338         automatically turned on for you.
2339          - added tests for this
2340
2341     * Moose::Meta::Role
2342       - now handles an edge case for override errors
2343         - added tests for this
2344       - added some more edge case tests
2345
2346 0.09_02 Tues. May 16, 2006
2347     ++ DEVELOPER RELEASE ++
2348     * Moose
2349       - added prototypes to the exported subs
2350       - updated docs
2351
2352     * Moose::Role
2353       - added prototypes to the exported subs
2354       - updated docs
2355
2356     * Moose::Util::TypeConstraints
2357       - cleaned up prototypes for the subs
2358       - updated docs
2359
2360 0.09_01 Fri. May 12, 2006
2361     ++ DEVELOPER RELEASE ++
2362       - This release works in combination with
2363         Class::MOP 0.29_01, it is a developer
2364         release because it uses the a new
2365         instance sub-protocol and a fairly
2366         complete Role implementation. It has
2367         not yet been optimized, so it slower
2368         the the previous CPAN version. This
2369         release also lacks good updated docs,
2370         the official release will have updated docs.
2371
2372     * Moose
2373       - refactored the keyword exports
2374         - 'with' now checks Role validaity and
2375           accepts more than one Role at a time
2376         - 'extends' makes metaclass adjustments as
2377            needed to ensure metaclass compatibility
2378
2379     * Moose::Role
2380       - refactored the keyword exports
2381         - 'with' now checks Role validaity and
2382           accepts more than one Role at a time
2383
2384     * Moose::Util::TypeConstraints
2385       - added the 'enum' keyword for simple
2386         string enumerations which can be used as
2387         type constraints
2388         - see example of usage in t/202_example.t
2389
2390     * Moose::Object
2391       - more careful checking of params to new()
2392
2393     * Moose::Meta::Role
2394       - much work done on the role composition
2395         - many new tests for conflict detection
2396           and composition edge cases
2397         - not enough documentation, I suggest
2398           looking at the tests
2399
2400     * Moose::Meta::Instance
2401       - added new Instance metaclass to support
2402         the new Class::MOP instance protocol
2403
2404     * Moose::Meta::Class
2405       - some small changes to support the new
2406         instance protocol
2407       - some small additions to support Roles
2408
2409     * Moose::Meta::Attribute
2410       - some improvements to the accessor generation code
2411         by nothingmuch
2412       - some small changes to support the new
2413         instance protocol
2414       - (still somewhat) experimental delegation support
2415         with the 'handles' option
2416         - added several tests for this
2417         - no docs for this yet
2418
2419 0.05 Thurs. April 27, 2006
2420     * Moose
2421       - keywords are now exported with Sub::Exporter
2422         thanks to chansen for this commit
2423       - has keyword now takes a 'metaclass' option
2424         to support custom attribute meta-classes
2425         on a per-attribute basis
2426         - added tests for this
2427       - the 'has' keyword not accepts inherited slot
2428         specifications (has '+foo'). This is still an
2429         experimental feature and probably not finished
2430         see t/038_attribute_inherited_slot_specs.t for
2431         more details, or ask about it on #moose
2432         - added tests for this
2433
2434     * Moose::Role
2435       - keywords are now exported with Sub::Exporter
2436
2437     * Moose::Utils::TypeConstraints
2438       - reorganized the type constraint hierarchy, thanks
2439         to nothingmuch and chansen for his help and advice
2440         on this
2441         - added some tests for this
2442       - keywords are now exported with Sub::Exporter
2443         thanks to chansen for this commit
2444
2445     * Moose::Meta::Class
2446       - due to changes in Class::MOP, we had to change
2447         construct_instance (for the better)
2448
2449     * Moose::Meta::Attribute
2450       - due to changes in Class::MOP, we had to add the
2451         initialize_instance_slot method (it's a good thing)
2452
2453     * Moose::Meta::TypeConstraint
2454       - added type constraint unions
2455         - added tests for this
2456       - added the is_subtype_of predicate method
2457         - added tests for this
2458
2459 0.04 Sun. April 16th, 2006
2460     * Moose::Role
2461       - Roles can now consume other roles
2462         - added tests for this
2463       - Roles can specify required methods now with
2464         the requires() keyword
2465         - added tests for this
2466
2467     * Moose::Meta::Role
2468       - ripped out much of it's guts ,.. much cleaner now
2469       - added required methods and correct handling of
2470         them in apply() for both classes and roles
2471         - added tests for this
2472       - no longer adds a does() method to consuming classes
2473         it relys on the one in Moose::Object
2474       - added roles attribute and some methods to support
2475         roles consuming roles
2476
2477     * Moose::Meta::Attribute
2478       - added support for triggers on attributes
2479         - added tests for this
2480       - added support for does option on an attribute
2481         - added tests for this
2482
2483     * Moose::Meta::Class
2484       - added support for attribute triggers in the
2485         object construction
2486         - added tests for this
2487
2488     * Moose
2489       - Moose no longer creates a subtype for your class
2490         if a subtype of the same name already exists, this
2491         should DWIM in 99.9999% of all cases
2492
2493     * Moose::Util::TypeConstraints
2494       - fixed bug where incorrect subtype conflicts were
2495         being reported
2496         - added test for this
2497
2498     * Moose::Object
2499       - this class can now be extended with 'use base' if
2500         you need it, it properly loads the metaclass class now
2501         - added test for this
2502
2503 0.03_02 Wed. April 12, 2006
2504     * Moose
2505       - you must now explictly use Moose::Util::TypeConstraints
2506         it no longer gets exported for you automatically
2507
2508     * Moose::Object
2509       - new() now accepts hash-refs as well as key/value lists
2510       - added does() method to check for Roles
2511         - added tests for this
2512
2513     * Moose::Meta::Class
2514       - added roles attribute along with the add_role() and
2515         does_role() methods
2516         - added tests for this
2517
2518     * Moose::Meta::Role
2519       - now adds a does() method to consuming classes
2520         which tests the class's hierarchy for roles
2521         - added tests for this
2522
2523 0.03_01 Mon. April 10, 2006
2524     * Moose::Cookbook
2525       - added new Role recipe (no content yet, only code)
2526
2527     * Moose
2528       - added 'with' keyword for Role support
2529         - added test and docs for this
2530       - fixed subtype quoting bug
2531         - added test for this
2532
2533     * Moose::Role
2534       - Roles for Moose
2535         - added test and docs
2536
2537     * Moose::Util::TypeConstraints
2538       - added the message keyword to add custom
2539         error messages to type constraints
2540
2541     * Moose::Meta::Role
2542       - the meta role to support Moose::Role
2543         - added tests and docs
2544
2545     * Moose::Meta::Class
2546       - moved a number of things from Moose.pm
2547         to here, they should have been here
2548         in the first place
2549
2550     * Moose::Meta::Attribute
2551       - moved the attribute option macros here
2552         instead of putting them in Moose.pm
2553
2554     * Moose::Meta::TypeConstraint
2555       - added the message attributes and the
2556         validate method
2557         - added tests and docs for this
2558
2559 0.03 Thurs. March 30, 2006
2560     * Moose::Cookbook
2561       - added the Moose::Cookbook with 5 recipes,
2562         describing all the stuff Moose can do.
2563
2564     * Moose
2565       - fixed an issue with &extends super class loading
2566         it now captures errors and deals with inline
2567         packages correctly (bug found by mst, solution
2568         stolen from alias)
2569       - added super/override & inner/augment features
2570         - added tests and docs for these
2571
2572     * Moose::Object
2573       - BUILDALL now takes a reference of the %params
2574         that are passed to &new, and passes that to
2575         each BUILD as well.
2576
2577     * Moose::Util::TypeConstraints
2578       - Type constraints now survive runtime reloading
2579         - added test for this
2580
2581         * Moose::Meta::Class
2582           - fixed the way attribute defaults are handled
2583             during instance construction (bug found by chansen)
2584
2585     * Moose::Meta::Attribute
2586       - read-only attributes now actually enforce their
2587         read-only-ness (this corrected in Class::MOP as
2588         well)
2589
2590 0.02 Tues. March 21, 2006
2591     * Moose
2592       - many more tests, fixing some bugs and
2593         edge cases
2594       - &extends now loads the base module with
2595         UNIVERSAL::require
2596         - added UNIVERSAL::require to the
2597           dependencies list
2598       ** API CHANGES **
2599       - each new Moose class will also create
2600         and register a subtype of Object which
2601         correspond to the new Moose class.
2602       - the 'isa' option in &has now only
2603         accepts strings, and will DWIM in
2604         almost all cases
2605
2606     * Moose::Util::TypeConstraints
2607       - added type coercion features
2608         - added tests for this
2609         - added support for this in attributes
2610           and instance construction
2611       ** API CHANGES **
2612       - type construction no longer creates a
2613         function, it registers the type instead.
2614         - added several functions to get the
2615           registered types
2616
2617     * Moose::Object
2618       - BUILDALL and DEMOLISHALL were broken
2619         because of a mis-named hash key, Whoops :)
2620
2621     * Moose::Meta::Attribute
2622       - adding support for coercion in the
2623         autogenerated accessors
2624
2625     * Moose::Meta::Class
2626       - adding support for coercion in the
2627         instance construction
2628
2629     * Moose::Meta::TypeConstraint
2630     * Moose::Meta::TypeCoercion
2631           - type constraints and coercions are now
2632             full fledges meta-objects
2633
2634 0.01 Wed. March 15, 2006
2635     - Moooooooooooooooooose!!!