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