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