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