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