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