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