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