s/die/croak/
[gitmo/Moose.git] / Changes
1 Revision history for Perl extension Moose
2
3 0.41
4     ~~ numerous documentation updates ~~
5     
6     - Changed all usage of die to Carp::croak for better
7       error reporting (initial patch by Tod Hagan)
8
9     ** IMPORTANT NOTE **
10     - the make_immutable keyword is now deprecated, don't
11       use it in any new code and please fix your old code
12       as well. There will be 2 releases, and then it will
13       be removed.
14
15     * Moose::Meta::Method::Constructor
16       - immutable classes which had non-lazy attributes were calling
17         the default generating sub twice in the constructor. (bug
18         found by Jesse Luehrs, fixed by Dave Rolsky)
19         - added tests for this (Dave Rolsky)
20
21     * Moose::Meta::Attribute
22       - inherited attributes may now be extended without 
23         restriction on the type ('isa') (Sartak)
24         - added tests for this (Sartak)
25       - when an attribute property is malformed (such as lazy without 
26         a default), give the name of the attribute in the error 
27         message (Sartak)
28       
29
30 0.40 Fri. March 14, 2008
31     - I hate Pod::Coverage
32
33 0.39 Fri. March 14, 2008
34     * Moose
35       - documenting the use of '+name' with attributes 
36         that come from recently composed roles. It makes
37         sense, people are using it, and so why not just 
38         officially support it.
39       - fixing the 'extends' keyword so that it will not 
40         trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
41       
42     * oose
43       - added the perl -Moose=+Class::Name feature to allow 
44         monkeypatching of classes in one liners
45       
46     * Moose::Util
47       - fixing the 'apply_all_roles' keyword so that it will not 
48         trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)    
49     
50     * Moose::Meta::Class
51       - added ->create method which now supports roles (thanks to jrockway)
52         - added tests for this
53       - added ->create_anon_class which now supports roles and caching of 
54         the results (thanks to jrockway)
55         - added tests for this
56       - made ->does_role a little more forgiving when it is
57         checking a Class::MOP era metaclasses.
58     
59     * Moose::Meta::Role::Application::ToInstance
60       - it is now possible to pass extra params to be used when 
61         a role is applied to an the instance (rebless_params)
62         - added tests for this
63     
64     * Moose::Util::TypeConstraints
65       - class_type now accepts an optional second argument for a
66         custom message. POD anotated accordingly (groditi)
67         - added tests for this 
68       - it is now possible to make anon-enums by passing 'enum' an 
69         ARRAY ref instead of the $name => @values. Everything else 
70         works as before.
71         - added tests for this
72     
73     * t/
74       - making test for using '+name' on attributes consumed 
75         from a role, it works and makes sense too.    
76
77     * Moose::Meta::Attribute 
78       - fix handles so that it doesn't return nothing 
79         when the method cannot be found, not sure why 
80         it ever did this originally, this means we now
81         have slightly better support for AUTOLOADed 
82         objects
83         - added more delegation tests
84       - adding ->does method to this so as to better 
85         support traits and their introspection.
86         - added tests for this
87     
88     * Moose::Object
89       - localizing the Data::Dumper configurations so 
90         that it does not pollute others (RT #33509)
91       - made ->does a little more forgiving when it is
92         passed Class::MOP era metaclasses.
93
94 0.38 Fri. Feb. 15, 2008
95     * Moose::Meta::Attribute 
96       - fixed initializer to correctly do 
97         type checking and coercion in the 
98         callback 
99         - added tests for this
100
101     * t/
102       - fixed some finicky tests (thanks to konobi)
103
104 0.37 Thurs. Feb. 14, 2008
105     * Moose
106       - fixed some details in Moose::init_meta 
107         and its superclass handling (thanks thepler)
108         - added tests for this (thanks thepler)
109       - 'has' now dies if you don't pass in name 
110         value pairs
111       - added the 'make_immutable' keyword as a shortcut
112         to make_immutable
113
114     * Moose::Meta::Class
115       Moose::Meta::Method::Constructor
116       Moose::Meta::Attribute        
117       - making (init_arg => undef) work here too
118         (thanks to nothingmuch)
119         
120     * Moose::Meta::Attribute        
121       Moose::Meta::Method::Constructor
122       Moose::Meta::Method::Accessor                
123       - make lazy attributes respect attr initializers (rjbs)
124         - added tests for this
125     
126     * Moose::Util::TypeConstraints
127       Moose::Util::TypeConstraints::OptimizedConstraints
128       Moose::Meta::TypeConstraints
129       Moose::Meta::Attribute
130       Moose::Meta::Method::Constructor
131       Moose::Meta::Method::Accessor            
132       - making type errors use the 
133         assigned message (thanks to Sartak)
134         - added tests for this
135
136     * Moose::Meta::Method::Destructor
137       - making sure DESTROY gets inlined properly 
138         with successive DEMOLISH calls (thanks to manito)
139
140     * Moose::Meta::Attribute  
141       Moose::Meta::Method::Accessor 
142       - fixed handling of undef with type constraints 
143         (thanks to Ernesto)               
144         - added tests for this
145     
146     * Moose::Util
147       - added &get_all_init_args and &get_all_attribute_values 
148         (thanks to Sartak and nothingmuch)
149
150 0.36 Sat. Jan. 26, 2008
151     * Moose::Role
152       Moose::Meta::Attribute
153       - role type tests now support when roles are 
154         applied to non-Moose classes (found by ash)
155         - added tests for this (thanks to ash)
156       - couple extra tests to boost code coverage
157
158     * Moose::Meta::Method::Constructor    
159       - improved fix for handling Class::MOP attributes
160         - added test for this        
161       
162     * Moose::Meta::Class
163       - handled the add_attribute($attribute_meta_object)
164         case correctly
165         - added test for this
166
167 0.35 Tues. Jan. 22, 2008
168     * Moose::Meta::Method::Constructor
169       - fix to make sure even Class::MOP attributes 
170         are handled correctly (Thanks to Dave Rolsky)
171         - added test for this (also Dave Rolsky)
172     
173     * Moose::Meta::Class
174       - improved error message on _apply_all_roles, 
175         you should now use Moose::Util::apply_all_roles
176         and you shouldnt have been using a _ prefixed
177         method in the first place ;)
178
179 0.34 Mon. Jan. 21, 2008
180     ~~~ more misc. doc. fixes ~~~
181     ~~ updated copyright dates ~~
182
183     Moose is now a postmodern object system :)
184       - (see the POD for details)
185       
186     * <<Role System Refactoring>>    
187     - this release contains a major reworking and 
188       cleanup of the role system     
189       - 100% backwards compat.
190       - Role application now restructured into seperate
191         classes based on type of applicants
192       - Role summation (combining of more than one role)
193         is much cleaner and anon-classes are no longer 
194         used in this process
195       - new Composite role metaclass    
196       - runtime application of roles to instances
197         is now more efficient and re-uses generated
198         classes when applicable
199         
200     * <<New Role composition features>>
201       - methods can now be excluded from a given role 
202         during composition
203       - methods can now be aliased to another name (and 
204         still retain the original as well)        
205     
206     * Moose::Util::TypeConstraints::OptimizedConstraints
207       - added this module (see above)
208
209     * Moose::Meta::Class
210       - fixed the &_process_attribute method to be called
211         by &add_attribute, so that the API is now correct
212
213     * Moose::Meta::Method::Accessor
214       - fixed bug when passing a list of values to
215         an accessor would get (incorrectly) ignored.
216         Thanks to Sartak for finding this ;)
217         - added tests for this (Sartak again)
218
219     * Moose::Meta::Method::Accessor
220       Moose::Meta::Method::Constructor
221       Moose::Meta::Attribute
222       Moose::Meta::TypeConstraint      
223       Moose::Meta::TypeCoercion      
224       - lots of cleanup of such things as: 
225         - generated methods
226         - type constraint handling
227         - error handling/messages 
228         (thanks to nothingmuch)   
229     
230     * Moose::Meta::TypeConstraint::Parameterizable
231       - added this module to support the refactor 
232         in Moose::Meta::TypeConstraint::Parameterized
233
234     * Moose::Meta::TypeConstraint::Parameterized
235       - refactored how these types are handled so they 
236         are more generic and not confined to ArrayRef
237         and HashRef only
238
239     * t/
240       - shortened some file names for better VMS support (RT #32381)
241
242 0.33 Fri. Dec. 14, 2007
243     !! Moose now loads 2 x faster !!
244     !!  with new Class::MOP 0.49  !!
245
246     ++ new oose.pm module to make command line
247        Moose-ness easier (see POD docs for more)
248
249     * Moose::Meta::Class
250     * Moose::Meta::Role
251       - several tweaks to take advantage of the
252         new method map caching in Class::MOP
253
254     * Moose::Meta::TypeConstraint::Parameterized
255       - allow subtypes of ArrayRef and HashRef to
256         be used as a container (sartak)
257         - added tests for this
258       - basic support for coercion to ArrayRef and
259         HashRef for containers (sartak)
260         - added tests for this
261
262     * Moose::Meta::TypeCoercion
263       - coercions will now create subtypes as needed
264         so you can now add coercions to parameterized
265         types without having to explictly define them
266         - added tests for this
267
268     * Moose::Meta::Method::Accessor
269       - allow subclasses to decide whether we need
270         to copy the value into a new variable (sartak)
271
272 0.32 Tues. Dec. 4, 2007
273     * Moose::Util::TypeConstraints
274       - fixing how subtype aliases of unions work
275         they should inherit the parent's coercion
276         - added tests for this
277       - you can now define multiple coercions on
278         a single type at different times instead of
279         having to do it all in one place
280         - added tests for this
281
282     * Moose::Meta::TypeConstraint
283       - there is now a default constraint of sub { 1 }
284         instead of Moose::Util::TypeConstraints setting
285         this for us
286
287     * Moose::Meta::TypeCoercion
288     * Moose::Meta::TypeCoercion::Union
289       - added the &has_coercion_for_type and
290         &add_type_coercions methods to support the
291         new features above (although you cannot add
292         more type coercions for Union types)
293
294 0.31 Mon. Nov. 26, 2007
295     * Moose::Meta::Attribute
296       - made the +attr syntax handle extending types with
297         parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
298         now works if the original foo is an ArrayRef.
299         - added tests for this.
300       - delegation now works even if the attribute does not
301         have a reader method using the get_read_method_ref
302         method from Class::MOP::Attribute.
303         - added tests for this
304         - added docs for this
305
306     * Moose::Util::TypeConstraints
307       - passing no "additional attribute info" to
308         &find_or_create_type_constraint will no longer
309         attempt to create an __ANON__ type for you,
310         instead it will just return undef.
311         - added docs for this
312
313 0.30 Fri. Nov. 23, 2007
314     * Moose::Meta::Method::Constructor
315       -builder related bug in inlined constructor. (groditi)
316
317     * Moose::Meta::Method::Accessor
318       - genereate unnecessary calls to predicates and refactor
319         code generation for runtime speed (groditi)
320
321     * Moose::Util::TypeConstraints
322       - fix ClassName constraint to introspect symbol table (mst)
323         - added more tests for this (mst)
324       - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
325         with work correctly.
326         - added tests for this
327
328     * Moose::Cookbook
329       - adding the link to Recipie 11 (written by Sartak)
330         - adding test for SYNOPSIS code
331
332     * t/
333       - New tests for builder bug. Upon instantiation, if an
334         attribute had a builder, no value and was not lazy the
335         builder default was not getting run, oops. (groditi)
336
337 0.29 Tues. Nov. 13, 2007
338     * Moose::Meta::Attribute
339       - Fix error message on missing builder method (groditi)
340
341     * Moose::Meta::Method::Accessor
342       - Fix error message on missing builder method (groditi)
343
344     * t/
345       - Add test to check for the correct error message when
346         builder method is missing (groditi)
347
348 0.28 Tues. Nov. 13, 2007
349     - 0.27 packaged incorrectly (groditi)
350
351 0.27 Tues. Nov. 13, 2007
352     * Moose::Meta::Attribute
353       - Added support for the new builder option (groditi)
354       - Added support for lazy_build option (groditi)
355       - Changed slot initialization for predicate changes (groditi)
356
357     * Moose::Meta::Method::Accessor
358       - Added support for lazy_build option (groditi)
359       - Fix inline methods to work with corrected predicate
360         behavior (groditi)
361
362     * Moose::Meta::Method::Constructor
363       - Added support for lazy_build option (groditi)
364
365     * t/
366       - tests for builder and lazy_build (groditi)
367
368     * fixing some misc. bits in the docs that
369       got mentioned on CPAN Forum & perlmonks
370
371     * Moose::Meta::Role
372       - fixed how required methods are handled
373         when they encounter overriden or modified
374         methods from a class (thanks to confound).
375         - added tests for this
376
377     * Moose::Util::TypeConstraint
378       - fixed the type notation parser so that
379         the | always creates a union and so is
380         no longer a valid type char (thanks to
381         konobi, mugwump and #moose for working
382         this one out.)
383         - added more tests for this
384
385 0.26 Thurs. Sept. 27, 2007
386     == New Features ==
387
388     * Parameterized Types
389       We now support parameterized collection types, such as:
390           ArrayRef[Int]    # array or integers
391           HashRef[Object]  # a hash with object values
392       They can also be nested:
393           ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
394       And work with the type unions as well:
395           ArrayRef[Int | Str]  # array of integers of strings
396
397     * Better Framework Extendability
398       Moose.pm is now "extendable" such that it is now much
399       easier to extend the framework and add your own keywords
400       and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
401       section of the Moose.pm docs.
402
403     * Moose Snacks!
404       In an effort to begin documenting some of the various
405       details of Moose as well as some common idioms, we have
406       created Moose::Cookbook::Snacks as a place to find
407       small (easily digestable) nuggets of Moose code.
408
409     ====
410     ~ Several doc updates/cleanup thanks to castaway ~
411
412     - converted build system to use Module::Install instead of
413       Module::Build (thanks to jrockway)
414
415     * Moose
416       - added all the meta classes to the immutable list and
417         set it to inline the accessors
418       - fix import to allow Sub::Exporter like { into => }
419             and { into_level => } (perigrin)
420       - exposed and documented init_meta() to allow better
421             embedding and extending of Moose (perigrin)
422
423         * t/
424           - complete re-organization of the test suite
425           - added some new tests as well
426           - finally re-enabled the Moose::POOP test since
427             the new version of DBM::Deep now works again
428             (thanks rob)
429
430     * Moose::Meta::Class
431       - fixed very odd and very nasty recursion bug with
432         inner/augment (mst)
433         - added tests for this (eilara)
434
435     * Moose::Meta::Attribute
436       Moose::Meta::Method::Constructor
437       Moose::Meta::Method::Accessor
438       - fixed issue with overload::Overloaded getting called
439         on non-blessed items. (RT #29269)
440         - added tests for this
441
442     * Moose::Meta::Method::Accessor
443       - fixed issue with generated accessor code making
444         assumptions about hash based classes (thanks to dexter)
445
446     * Moose::Coookbook::Snacks
447       - these are bits of documentation, not quite as big as
448         Recipes but which have no clear place in the module docs.
449         So they are Snacks! (horray for castaway++)
450
451     * Moose::Cookbook::Recipe4
452       - updated it to use the new ArrayRef[MyType] construct
453         - updated the accompanying test as well
454
455     +++ Major Refactor of the Type Constraint system +++
456     +++       with new features added as well        +++
457
458     * Moose::Util::TypeConstraint
459       - no longer uses package variable to keep track of
460         the type constraints, now uses the an instance of
461         Moose::Meta::TypeConstraint::Registry to do it
462       - added more sophisticated type notation parsing
463         (thanks to mugwump)
464         - added tests for this
465
466     * Moose::Meta::TypeConstraint
467       - some minor adjustments to make subclassing easier
468       - added the package_defined_in attribute so that we
469         can track where the type constraints are created
470
471     * Moose::Meta::TypeConstraint::Union
472       - this is now been refactored to be a subclass of
473         Moose::Meta::TypeConstraint
474
475     * Moose::Meta::TypeCoercion::Union
476       - this has been added to service the newly refactored
477         Moose::Meta::TypeConstraint::Union and is itself
478         a subclass of Moose::Meta::TypeCoercion
479
480     * Moose::Meta::TypeConstraint::Parameterized
481       - added this module (taken from MooseX::AttributeHelpers)
482         to help construct nested collection types
483         - added tests for this
484
485     * Moose::Meta::TypeConstraint::Registry
486       - added this class to keep track of type constraints
487
488 0.25 Mon. Aug. 13, 2007
489     * Moose
490       - Documentation update to reference Moose::Util::TypeConstraints
491         under 'isa' in 'has' for how to define a new type
492         (thanks to shlomif).
493
494     * Moose::Meta::Attribute
495       - required attributes now will no longer accept undef
496         from the constructor, even if there is a default and lazy
497         - added tests for this
498       - default subroutines must return a value which passes the
499         type constraint
500         - added tests for this
501
502     * Moose::Meta::Attribute
503     * Moose::Meta::Method::Constructor
504     * Moose::Meta::Method::Accessor
505       - type-constraint tests now handle overloaded objects correctly
506         in the error message
507         - added tests for this (thanks to EvanCarroll)
508
509     * Moose::Meta::TypeConstraint::Union
510       - added (has_)hand_optimized_constraint to this class so that
511         it behaves as the regular Moose::Meta::TypeConstraint does.
512
513     * Moose::Meta::Role
514       - large refactoring of this code
515       - added several more tests
516         - tests for subtle conflict resolition issues
517           added, but not currently running
518           (thanks to kolibre)
519
520     * Moose::Cookbook::Recipe7
521       - added new recipe for augment/inner functionality
522         (still in progress)
523         - added test for this
524
525     * Moose::Spec::Role
526       - a formal definition of roles (still in progress)
527
528     * Moose::Util
529       - utilities for easier working with Moose classes
530         - added tests for these
531
532     * Test::Moose
533       - This contains Moose specific test functions
534         - added tests for these
535
536 0.24 Tues. July 3, 2007
537     ~ Some doc updates/cleanup ~
538
539     * Moose::Meta::Attribute
540       - added support for roles to be given as parameters
541         to the 'handles' option.
542         - added tests and docs for this
543       - the has '+foo' attribute form now accepts changes to
544         the lazy option, and the addition of a handles option
545         (but not changing the handles option)
546         - added tests and docs for this
547
548     * Moose::Meta::Role
549       - required methods are now fetched using find_method_by_name
550         so that required methods can come from superclasses
551         - adjusted tests for this
552
553 0.23 Mon. June 18, 2007
554     * Moose::Meta::Method::Constructor
555       - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
556     * Moose::Meta::Class
557       - Modify make_immutable to work with the new Class::MOP immutable
558         mechanism + POD + very basic test (groditi)
559     * Moose::Meta::Attribute
560       - Fix handles to use goto() so that caller() comes out properly on
561         the other side (perigrin)
562
563 0.22 Thurs. May 31, 2007
564     * Moose::Util::TypeConstraints
565       - fix for prototype undeclared issue when Moose::Util::TypeConstraints
566         loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
567         prototypes for functions
568       - added the ClassName type constraint, this checks for strings
569         which will respond true to ->isa(UNIVERSAL).
570         - added tests and docs for this
571       - subtyping just in name now works correctly by making the
572         default for where be { 1 }
573         - added test for this
574
575     * Moose::Meta::Method::Accessor
576       - coerce and lazy now work together correctly, thanks to
577         merlyn for finding this bug
578         - tests added for this
579       - fix reader presedence bug in Moose::Meta::Attribute + tests
580
581     * Moose::Object
582       - Foo->new(undef) now gets ignored, it is assumed you meant to pass
583         a HASH-ref and missed. This produces better error messages then
584         having it die cause undef is not a HASH.
585         - added tests for this
586
587 0.21 Thursday, May 2nd, 2007
588     * Moose
589       - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
590       - modified unimport to remove super and inner along with the rest
591         - altered unimport tests to handle this
592
593     * Moose::Role
594       - altered super export to populate SUPER_SLOT
595
596     * Moose::Meta::Class
597       - altered augment and override modifier application to use *_SLOT
598         - modified tests for these to unimport one test class each to test
599
600     * Moose::Meta::Role
601       - fixed issue where custom attribute metaclasses
602         where not handled correctly in roles
603         - added tests for this
604
605     * Moose::Meta::Class
606       - fixed issue where extending metaclasses with
607         roles would blow up. Thanks to Aankhen`` for
608         finding this insidious error, and it's solution.
609
610     ~~ lots of spelling and grammer fixes in the docs,
611        many many thanks to rlb3 and Aankhen for these :)
612
613 0.20 Friday, April 6th, 2007
614     >> I messed up the SKIP logic in one test
615        so this release is just to fix that.
616
617     * Moose
618       - 'has' now also accepts an ARRAY ref
619         to create multiple attrs (see docs)
620         (thanks to konobi for this)
621          - added tests and docs
622
623 0.19 Thurs. April 5th, 2007
624     ~~ More documentation updates ~~
625
626     * Moose::Util::TypeConstraints
627       - 'type' now supports messages as well
628         thanks to phaylon for finding this
629         - added tests for this
630       - added &list_all_type_constraints and
631         &list_all_builtin_type_constraints
632         functions to facilitate introspection.
633
634     * Moose::Meta::Attribute
635       - fixed regexp 'handles' declarations
636         to build the list of delegated methods
637         correctly (and not override important
638         things like &new) thanks to ashleyb
639         for finding this
640         - added tests and docs for this
641       - added the 'documentation' attributes
642         so that you can actually document your
643         attributes and inspect them through the
644         meta-object.
645         - added tests and docs for this
646
647     * Moose::Meta::Class
648       - when loading custom attribute metaclasses
649         it will first look in for the class in the
650         Moose::Meta::Attribute::Custom::$name, and
651         then default to just loading $name.
652         - added tests and docs for this
653
654     * Moose::Meta::TypeConstraint
655       - type constraints now stringify to their names.
656         - added test for this
657
658     * misc.
659       - added tests to assure we work with Module::Refresh
660       - added stricter test skip logic in the Moose POOP
661         test, ask Rob Kinyon why.
662         - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
663
664 0.18 Sat. March 10, 2007
665     ~~ Many, many documentation updates ~~
666
667     * misc.
668       - We now use Class::MOP::load_class to
669         load all classes.
670       - added tests to show types and subtypes
671         working with Declare::Constraints::Simple
672         and Test::Deep as constraint engines.
673
674 0.18_001
675     !! You must have Class::MOP 0.37_001  !!
676     !! for this developer release to work !!
677
678     This release was primarily adding the immutable
679     feature to Moose. An immutable class is one which
680     you promise not to alter. When you set the class
681     as immutable it will perform various bits of
682     memoization and inline certain part of the code
683     (constructors, destructors and accessors). This
684     minimizes (and in some cases totally eliminates)
685     one of Moose's biggest performance hits. This
686     feature is not on by default, and is 100% optional.
687     It has several configurable bits as well, so you
688     can pick and choose to your specific needs.
689
690     The changes involved in this were fairly wide and
691     highly specific, but 100% backwards compatible, so
692     I am not going to enumerate them here. If you are
693     truely interested in what was changed, please do
694     a diff :)
695
696 0.17 Tues. Nov. 14, 2006
697     * Moose::Meta::Method::Accessor
698       - bugfix for read-only accessors which
699         are have a type constraint and lazy.
700         Thanks to chansen for finding it.
701
702 0.16 Tues. Nov. 14, 2006
703     ++ NOTE ++
704     There are some speed improvements in this release,
705     but they are only the begining, so stay tuned.
706
707     * Moose::Object
708       - BUILDALL and DEMOLISHALL no longer get
709         called unless they actually need to be.
710         This gave us a signifigant speed boost
711         for the cases when there is no BUILD or
712         DEMOLISH method present.
713
714     * Moose::Util::TypeConstraints
715     * Moose::Meta::TypeConstraint
716       - added an 'optimize_as' option to the
717         type constraint, which allows for a
718         hand optimized version of the type
719         constraint to be used when possible.
720       - Any internally created type constraints
721         now provide an optimized version as well.
722
723 0.15 Sun. Nov. 5, 2006
724     ++ NOTE ++
725     This version of Moose *must* have Class::MOP 0.36 in order
726     to work correctly. A number of small internal tweaks have
727     been made in order to be compatible with that release.
728
729     * Moose::Util::TypeConstraints
730       - added &unimport so that you can clean out
731         your class namespace of these exported
732         keywords
733
734     * Moose::Meta::Class
735       - fixed minor issue which occasionally
736         comes up during global destruction
737         (thanks omega)
738       - moved Moose::Meta::Method::Overriden into
739         its own file.
740
741     * Moose::Meta::Role
742       - moved Moose::Meta::Role::Method into
743         its own file.
744
745     * Moose::Meta::Attribute
746       - changed how we do type checks so that
747         we reduce the overall cost, but still
748         retain correctness.
749        *** API CHANGE ***
750       - moved accessor generation methods to
751         Moose::Meta::Method::Accessor to
752         conform to the API changes from
753         Class::MOP 0.36
754
755     * Moose::Meta::TypeConstraint
756       - changed how constraints are compiled
757         so that we do less recursion and more
758         iteration. This makes the type check
759         faster :)
760       - moved Moose::Meta::TypeConstraint::Union
761         into its own file
762
763     * Moose::Meta::Method::Accessor
764       - created this from methods formerly found in
765         Moose::Meta::Attribute
766
767     * Moose::Meta::Role::Method
768       - moved this from Moose::Meta::Role
769
770     * Moose::Meta::Method::Overriden
771       - moved this from Moose::Meta::Class
772
773     * Moose::Meta::TypeConstraint::Union
774       - moved this from Moose::Meta::TypeConstraint
775
776 0.14 Mon. Oct. 9, 2006
777
778     * Moose::Meta::Attribute
779       - fixed lazy attributes which were not getting
780         checked with the type constraint (thanks ashley)
781         - added tests for this
782       - removed the over-enthusiastic DWIMery of the
783         automatic ArrayRef and HashRef defaults, it
784         broke predicates in an ugly way.
785         - removed tests for this
786
787 0.13 Sat. Sept. 30, 2006
788     ++ NOTE ++
789     This version of Moose *must* have Class::MOP 0.35 in order
790     to work correctly. A number of small internal tweaks have
791     been made in order to be compatible with that release.
792
793     * Moose
794       - Removed the use of UNIVERSAL::require to be a better
795         symbol table citizen and remove a dependency
796         (thanks Adam Kennedy)
797
798       **~~ removed experimental & undocumented feature ~~**
799       - commented out the 'method' and 'self' keywords, see the
800         comments for more info.
801
802     * Moose::Cookbook
803       - added a FAQ and WTF files to document frequently
804         asked questions and common problems
805
806     * Moose::Util::TypeConstraints
807       - added GlobRef and FileHandle type constraint
808         - added tests for this
809
810     * Moose::Meta::Attribute
811       - if your attribute 'isa' ArrayRef of HashRef, and you have
812         not explicitly set a default, then make the default DWIM.
813         This will also work for subtypes of ArrayRef and HashRef
814         as well.
815       - you can now auto-deref subtypes of ArrayRef or HashRef too.
816         - new test added for this (thanks to ashley)
817
818     * Moose::Meta::Role
819       - added basic support for runtime role composition
820         but this is still *highly experimental*, so feedback
821         is much appreciated :)
822         - added tests for this
823
824     * Moose::Meta::TypeConstraint
825       - the type constraint now handles the coercion process
826         through delegation, this is to support the coercion
827         of unions
828
829     * Moose::Meta::TypeConstraint::Union
830       - it is now possible for coercions to be performed
831         on a type union
832         - added tests for this (thanks to konobi)
833
834     * Moose::Meta::TypeCoercion
835       - properly capturing error when type constraint
836         is not found
837
838     * Build.PL
839       - Scalar::Util 1.18 is bad on Win32, so temporarily
840         only require version 1.17 for Win32 and cygwin.
841         (thanks Adam Kennedy)
842
843 0.12 Sat. Sept. 1, 2006
844     * Moose::Cookbook
845       - Recipe5 (subtypes & coercion) has been written
846
847     * Moose
848       - fixed "bad meta" error message to be more descriptive
849       - fixed &unimport to not remove the &inner and &super
850         keywords because we need to localize them.
851       - fixed number of spelling/grammer issues, thanks Theory :)
852
853       **~~ experimental & undocumented feature ~~**
854       - added the method and self keywords, they are basically
855         just sugar, and they may not stay around.
856
857     * Moose::Object
858       - added &dump method to easily Data::Dumper
859         an object
860
861     * Moose::Meta::TypeConstraint
862       - added the &is_a_type_of method to check both the current
863         and the subtype of a method (similar to &isa with classes)
864
865     * Moose::Meta::Role
866       - this is now a subclass of Class::MOP::Module, and no longer
867         creates the _role_meta ugliness of before.
868         - fixed tests to reflect this change
869
870 0.11 Wed. July 12, 2006
871     * Moose
872       - added an &unimport method to remove all the keywords
873         that Moose will import, simply add 'no Moose' to the
874         bottom of your class file.
875
876     * t/
877       - fixed some test failures caused by a forgotten test
878         dependency.
879
880 0.10 Thurs. July 6, 2006
881     * Moose
882       - improved error message when loading modules so
883         it is less confusing when you load a role.
884       - added &calculate_all_roles method to
885         Moose::Meta::Class and Moose::Meta::Role
886
887     NOTE:
888     This module has been tested against Class::MOP 0.30
889     but it does not yet utilize the optimizations
890     it makes available. Stay tuned for that ;)
891
892 0.09_03 Fri. June 23, 2006
893     ++ DEVELOPER RELEASE ++
894     * Moose
895       - 'use strict' and 'use warnings' are no longer
896          needed in Moose classes, Moose itself will
897          turn them on for you.
898          - added tests for this
899       - moved code from exported subs to private methods
900         in Moose::Meta::Class
901
902     * Moose::Role
903       - as with Moose, strict and warnings are
904         automatically turned on for you.
905          - added tests for this
906
907     * Moose::Meta::Role
908       - now handles an edge case for override errors
909         - added tests for this
910       - added some more edge case tests
911
912 0.09_02 Tues. May 16, 2006
913     ++ DEVELOPER RELEASE ++
914     * Moose
915       - added prototypes to the exported subs
916       - updated docs
917
918     * Moose::Role
919       - added prototypes to the exported subs
920       - updated docs
921
922     * Moose::Util::TypeConstraints
923       - cleaned up prototypes for the subs
924       - updated docs
925
926 0.09_01 Fri. May 12, 2006
927     ++ DEVELOPER RELEASE ++
928       - This release works in combination with
929         Class::MOP 0.29_01, it is a developer
930         release because it uses the a new
931         instance sub-protocol and a fairly
932         complete Role implementation. It has
933         not yet been optimized, so it slower
934         the the previous CPAN version. This
935         release also lacks good updated docs,
936         the official release will have updated docs.
937
938     * Moose
939       - refactored the keyword exports
940         - 'with' now checks Role validaity and
941           accepts more than one Role at a time
942         - 'extends' makes metaclass adjustments as
943            needed to ensure metaclass compatability
944
945     * Moose::Role
946       - refactored the keyword exports
947         - 'with' now checks Role validaity and
948           accepts more than one Role at a time
949
950     * Moose::Util::TypeConstraints
951       - added the 'enum' keyword for simple
952         string enumerations which can be used as
953         type constraints
954         - see example of usage in t/202_example.t
955
956     * Moose::Object
957       - more careful checking of params to new()
958
959     * Moose::Meta::Role
960       - much work done on the role composition
961         - many new tests for conflict detection
962           and composition edge cases
963         - not enough documentation, I suggest
964           looking at the tests
965
966     * Moose::Meta::Instance
967       - added new Instance metaclass to support
968         the new Class::MOP instance protocol
969
970     * Moose::Meta::Class
971       - some small changes to support the new
972         instance protocol
973       - some small additions to support Roles
974
975     * Moose::Meta::Attribute
976       - some improvements to the accessor generation code
977         by nothingmuch
978       - some small changes to support the new
979         instance protocol
980       - (still somewhat) experimental delegation support
981         with the 'handles' option
982         - added several tests for this
983         - no docs for this yet
984
985 0.05 Thurs. April 27, 2006
986     * Moose
987       - keywords are now exported with Sub::Exporter
988         thanks to chansen for this commit
989       - has keyword now takes a 'metaclass' option
990         to support custom attribute meta-classes
991         on a per-attribute basis
992         - added tests for this
993       - the 'has' keyword not accepts inherited slot
994         specifications (has '+foo'). This is still an
995         experimental feature and probably not finished
996         see t/038_attribute_inherited_slot_specs.t for
997         more details, or ask about it on #moose
998         - added tests for this
999
1000     * Moose::Role
1001       - keywords are now exported with Sub::Exporter
1002
1003     * Moose::Utils::TypeConstraints
1004       - reorganized the type constraint hierarchy, thanks
1005         to nothingmuch and chansen for his help and advice
1006         on this
1007         - added some tests for this
1008       - keywords are now exported with Sub::Exporter
1009         thanks to chansen for this commit
1010
1011     * Moose::Meta::Class
1012       - due to changes in Class::MOP, we had to change
1013         construct_instance (for the better)
1014
1015     * Moose::Meta::Attribute
1016       - due to changes in Class::MOP, we had to add the
1017         initialize_instance_slot method (it's a good thing)
1018
1019     * Moose::Meta::TypeConstraint
1020       - added type constraint unions
1021         - added tests for this
1022       - added the is_subtype_of predicate method
1023         - added tests for this
1024
1025 0.04 Sun. April 16th, 2006
1026     * Moose::Role
1027       - Roles can now consume other roles
1028         - added tests for this
1029       - Roles can specify required methods now with
1030         the requires() keyword
1031         - added tests for this
1032
1033     * Moose::Meta::Role
1034       - ripped out much of it's guts ,.. much cleaner now
1035       - added required methods and correct handling of
1036         them in apply() for both classes and roles
1037         - added tests for this
1038       - no longer adds a does() method to consuming classes
1039         it relys on the one in Moose::Object
1040       - added roles attribute and some methods to support
1041         roles consuming roles
1042
1043     * Moose::Meta::Attribute
1044       - added support for triggers on attributes
1045         - added tests for this
1046       - added support for does option on an attribute
1047         - added tests for this
1048
1049     * Moose::Meta::Class
1050       - added support for attribute triggers in the
1051         object construction
1052         - added tests for this
1053
1054     * Moose
1055       - Moose no longer creates a subtype for your class
1056         if a subtype of the same name already exists, this
1057         should DWIM in 99.9999% of all cases
1058
1059     * Moose::Util::TypeConstraints
1060       - fixed bug where incorrect subtype conflicts were
1061         being reported
1062         - added test for this
1063
1064     * Moose::Object
1065       - this class can now be extended with 'use base' if
1066         you need it, it properly loads the metaclass class now
1067         - added test for this
1068
1069 0.03_02 Wed. April 12, 2006
1070     * Moose
1071       - you must now explictly use Moose::Util::TypeConstraints
1072         it no longer gets exported for you automatically
1073
1074     * Moose::Object
1075       - new() now accepts hash-refs as well as key/value lists
1076       - added does() method to check for Roles
1077         - added tests for this
1078
1079     * Moose::Meta::Class
1080       - added roles attribute along with the add_role() and
1081         does_role() methods
1082         - added tests for this
1083
1084     * Moose::Meta::Role
1085       - now adds a does() method to consuming classes
1086         which tests the class's hierarchy for roles
1087         - added tests for this
1088
1089 0.03_01 Mon. April 10, 2006
1090     * Moose::Cookbook
1091       - added new Role recipe (no content yet, only code)
1092
1093     * Moose
1094       - added 'with' keyword for Role support
1095         - added test and docs for this
1096       - fixed subtype quoting bug
1097         - added test for this
1098
1099     * Moose::Role
1100       - Roles for Moose
1101         - added test and docs
1102
1103     * Moose::Util::TypeConstraints
1104       - added the message keyword to add custom
1105         error messages to type constraints
1106
1107     * Moose::Meta::Role
1108       - the meta role to support Moose::Role
1109         - added tests and docs
1110
1111     * Moose::Meta::Class
1112       - moved a number of things from Moose.pm
1113         to here, they should have been here
1114         in the first place
1115
1116     * Moose::Meta::Attribute
1117       - moved the attribute option macros here
1118         instead of putting them in Moose.pm
1119
1120     * Moose::Meta::TypeConstraint
1121       - added the message attributes and the
1122         validate method
1123         - added tests and docs for this
1124
1125 0.03 Thurs. March 30, 2006
1126     * Moose::Cookbook
1127       - added the Moose::Cookbook with 5 recipes,
1128         describing all the stuff Moose can do.
1129
1130     * Moose
1131       - fixed an issue with &extends super class loading
1132         it now captures errors and deals with inline
1133         packages correctly (bug found by mst, solution
1134         stolen from alias)
1135       - added super/override & inner/augment features
1136         - added tests and docs for these
1137
1138     * Moose::Object
1139       - BUILDALL now takes a reference of the %params
1140         that are passed to &new, and passes that to
1141         each BUILD as well.
1142
1143     * Moose::Util::TypeConstraints
1144       - Type constraints now survive runtime reloading
1145         - added test for this
1146
1147         * Moose::Meta::Class
1148           - fixed the way attribute defaults are handled
1149             during instance construction (bug found by chansen)
1150
1151     * Moose::Meta::Attribute
1152       - read-only attributes now actually enforce their
1153         read-only-ness (this corrected in Class::MOP as
1154         well)
1155
1156 0.02 Tues. March 21, 2006
1157     * Moose
1158       - many more tests, fixing some bugs and
1159         edge cases
1160       - &extends now loads the base module with
1161         UNIVERSAL::require
1162         - added UNIVERSAL::require to the
1163           dependencies list
1164       ** API CHANGES **
1165       - each new Moose class will also create
1166         and register a subtype of Object which
1167         correspond to the new Moose class.
1168       - the 'isa' option in &has now only
1169         accepts strings, and will DWIM in
1170         almost all cases
1171
1172     * Moose::Util::TypeConstraints
1173       - added type coercion features
1174         - added tests for this
1175         - added support for this in attributes
1176           and instance construction
1177       ** API CHANGES **
1178       - type construction no longer creates a
1179         function, it registers the type instead.
1180         - added several functions to get the
1181           registered types
1182
1183     * Moose::Object
1184       - BUILDALL and DEMOLISHALL were broken
1185         because of a mis-named hash key, Whoops :)
1186
1187     * Moose::Meta::Attribute
1188       - adding support for coercion in the
1189         autogenerated accessors
1190
1191     * Moose::Meta::Class
1192       - adding support for coercion in the
1193         instance construction
1194
1195     * Moose::Meta::TypeConstraint
1196     * Moose::Meta::TypeCoercion
1197           - type constraints and coercions are now
1198             full fledges meta-objects
1199
1200 0.01 Wed. March 15, 2006
1201     - Moooooooooooooooooose!!!