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