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