Remove the make_immutable keyword, it's been deprecated and can break metaclasses
[gitmo/Moose.git] / Changes
1 Revision history for Perl extension Moose
2
3 0.62
4     * Moose::Meta::Role::Application::ToClass
5       Moose::Meta::Role::Application::ToRole
6       - fixed issues where excluding and aliasing the 
7         same methods for a single role did not work 
8         right (worked just fine with multiple roles)
9         - added test for this
10     * Moose::Exporter
11       - Catch another case where recursion caused the value
12         of $CALLER to be stamped on (t0m)
13         - added test for this (t0m)
14     * Moose
15       - Remove the make_immutable keyword, which has been
16         deprecated since April. It breaks metaclasses that
17         use Moose without no Moose (Sartak)
18
19 0.61 Fri November 7, 2008
20     * Moose::Meta::Attribute
21       - When passing a role to handles, it will be loaded if necessary
22         (perigrin)
23
24     * Moose::Meta::Class
25       - Method objects returned by get_method (and other methods)
26         Could end up being returned without an associated_metaclass
27         attribute. Removing get_method_map, which is provided by
28         Class::MOP::Class, fixed this. The Moose version did nothing
29         different from its parent except introduce a bug. (Dave Rolsky)
30         - added tests for this (jdv79)
31
32     * Various
33       - Added a $VERSION to all .pm files which didn't have one. Fixes
34         RT #40049, reported by Adam Kennedy. (Dave Rolsky)
35
36     * Moose::Cookbook::Basics::Recipe4
37     * Moose::Cookbook::Basics::Recipe6
38       - These files had spaces on the first line of the SYNOPSIS, as
39         opposed to a totally empty line. According to RT #40432, this
40         confuses POD parsers. (Dave Rolsky)
41
42 0.60 Fri October 24, 2008
43     * Moose::Exporter
44       - Passing "-traits" when loading Moose caused the Moose.pm
45         exports to be broken. Reported by t0m. (Dave Rolsky)
46         - Tests for this bug. (t0m)
47     
48     * Moose::Util
49       - Change resolve_metaclass alias to use the new
50         load_first_existing_class function. This makes it a lot
51         simpler, and also around 5 times faster. (t0m)
52       - Add caching to resolve_metaclass_alias, which gives an order
53         of magnitude speedup to things which repeatedly call the
54         Moose::Meta::Attribute->does method, notably MooseX::Storage
55         (t0m)
56
57     * Moose::Util::TypeConstraint
58       - Put back the changes for parameterized constraints that
59         shouldn't have been removed in 0.59. We still cannot parse
60         them, but MooseX modules can create them in some other
61         way. See the 0.58 changes for more details. (jnapiorkowski)
62       - Changed the way subtypes are created so that the job is
63         delegated to a type constraint parent.  This clears up some
64         hardcoded checking and should allow correct subtypes of
65         Moose::Meta::Type::Constraint. Don't rely on this new API too
66         much (create_child_type) because it may go away in the
67         future. (jnapiorkowski)
68
69     * Moose::Meta::TypeConstraint::Union
70       - Type constraint names are sorted as strings, not numbers.
71         (jnapiorkowski)
72       
73     * Moose::Meta::TypeConstraint::Parameterizable
74       - New parameterize method. This can be used as a factory method
75         to make a new type constraint with a given parameterized
76         type. (jnapiorkowski)
77         - added tests (jnapiorkowski)
78
79 0.59 Tue October 14, 2008
80     * Moose
81       - Add abridged documentation for builder/default/initializer/
82         predicate, and link to more details sections in 
83         Class::MOP::Attribute. (t0m)
84
85     * Moose::Util::TypeConstraints
86       - removed prototypes from all but the &-based stuff (mst)
87
88     * Moose::Util::TypeConstraints
89       - Creating a anonymous subtype with both a constraint and a
90         message failed with a very unhelpful error, but should just
91         work. Reported by t0m. (Dave Rolsky)
92
93     * Tests
94       - Some tests that used Test::Warn if it was available failed
95         with older versions of Test::Warn. Reported by Fayland. (Dave
96         Rolsky)
97       - Test firing behavior of triggers in relation to builder/default/
98         lazy_build. (t0m)
99       - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
100         kinds of supported type. (t0m)
101
102     * Moose::Meta::Class
103       - In create(), do not pass "roles" option to the superclass
104         - added related test that creates an anon metaclass with
105           a required attribute
106
107     * Moose::Meta::TypeConstraint::Class
108     * Moose::Meta::TypeConstraint::Role
109       - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
110         other types (as per change in 0.55_02). (t0m)
111
112     * Moose::Meta::TypeConstraint::Registry
113       - Fix warning when dealing with unknown type names (t0m)
114
115     * Moose::Util::TypeConstraints
116       - Reverted changes from 0.58 related to handle parameterized
117         types. This caused random failures on BSD and Win32 systems,
118         apparently related to the regex engine. This means that Moose
119         can no longer parse structured type constraints like
120         ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
121         supported in a slightly different way via MooseX::Types some
122         time in the future. (Dave Rolsky)
123
124 0.58 Sat September 20, 2008
125     !! This release has an incompatible change regarding !!
126     !! how roles add methods to a class !!
127
128     * Roles and role application
129       ! Roles now add methods by calling add_method, not
130         alias_method. They make sure to always provide a method
131         object, which will be cloned internally. This means that it is
132         now possible to track the source of a method provided by a
133         role, and even follow its history through intermediate roles.
134
135         This means that methods added by a role now show up when
136         looking at a class's method list/map. (Dave Rolsky)
137
138     * Makefile.PL
139       - From this release on, we'll try to maintain a list of
140         conflicting modules, and warn you if you have one
141         installed. For example, this release conflicts with ...
142         - MooseX::Singleton        <= 0.11
143         - MooseX::Params::Validate <= 0.05
144         - Fey::ORM                 <= 0.10
145
146         In general, we try to not break backwards compatibility for
147         most Moose users, but MooseX modules and other code which
148         extends Moose's metaclasses is often affected by very small
149         changes in the Moose internals.
150
151     * Moose::Meta::Method::Delegation
152     * Moose::Meta::Attribute
153       - Delegation methods now have their own method class. (Dave
154         Rolsky)
155
156     * Moose::Meta::TypeConstraint::Parameterizable
157       - Added a new method 'parameterize' which is basically a factory
158         for the containing constraint.  This makes it easier to create
159         new types of parameterized constraints. (jnapiorkowski)
160
161     * Moose::Meta::TypeConstraint::Union
162       - Changed the way Union types canonicalize their names to follow
163         the normalized TC naming rules, which means we strip all
164         whitespace. (jnapiorkowski)
165
166     * Moose::Util::TypeConstraints
167       - Parameter and Union args are now sorted, this makes Int|Str
168         the same constraint as Str|Int. (jnapiorkowski)
169       - Changes to the way Union types are parsed to more correctly
170         stringify their names. (jnapiorkowski)
171       - When creating a parameterized type, we now use the new
172         parameterize method. (jnapiorkowski)
173       - Incoming type constraint strings are now normalized to remove
174         all whitespace differences. (jnapiorkowski)
175       - Changed the way we parse type constraint strings so that we now
176         match TC[Int,Int,...] and TC[name=>Str] as parameterized type
177         constraints.  This lays the foundation for more flexible type
178         constraint implementations.
179
180     * Tests and docs for all the above. (jnapiorkowski)
181
182     * Moose::Exporter
183     * Moose
184       - Moose::Exporter will no longer remove a subroutine that the
185         exporting package re-exports. Moose re-exports the
186         Carp::confess function, among others. The reasoning is that we
187         cannot know whether you have also explicitly imported those
188         functions for your own use, so we err on the safe side and
189         always keep them. (Dave Rolsky)
190         - added tests for this (rafl)
191
192     * Moose::Meta::Class
193       - Changes to how we fix metaclass compatibility that are much
194         too complicated to go into. The summary is that Moose is much
195         less likely to complain about metaclass incompatibility
196         now. In particular, if two metaclasses differ because
197         Moose::Util::MetaRole was used on the two corresponding
198         classes, then the difference in roles is reconciled for the
199         subclass's metaclass. (Dave Rolsky)
200       - Squashed an warning in _process_attribute (thepler)
201
202     * Moose::Meta::Role
203       - throw exceptions (sooner) for invalid attribute names (thepler)
204         - added tests for this (thepler)
205
206     * Moose::Util::MetaRole
207       - If you explicitly set a constructor or destructor class for a
208         metaclass object, and then applied roles to the metaclass,
209         that explicitly set class would be lost and replaced with the
210         default.
211
212     * Moose::Meta::Class
213     * Moose::Meta::Attribute
214     * Moose::Meta::Method
215     * Moose
216     * Moose::Object
217     * Moose::Error::Default
218     * Moose::Error::Croak
219     * Moose::Error::Confess
220       - All instances of confess() changed to use overridable
221         C<throw_error> method. This method ultimately calls a class
222         constructor, and you can change the class being called. In
223         addition, errors now pass more information than just a string.
224         The default C<error_class> behaves like C<Carp::confess>, so
225         the behavior is not visibly different for end users.
226
227 0.57 Wed September 3, 2008
228     * Moose::Intro
229       - A new bit of doc intended to introduce folks familiar with
230         "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
231
232     * Moose::Unsweetened
233       - Shows examples of two classes, each done first with and then
234         without Moose. This makes a nice parallel to
235         Moose::Intro. (Dave Rolsky)
236
237     * Moose::Util::TypeConstraints
238       - Fixed a bug in find_or_parse_type_constraint so that it
239         accepts a Moose::Meta::TypeConstraint object as the parent
240         type, not just a name (jnapiorkowski)
241         - added tests (jnapiorkowski)
242
243     * Moose::Exporter
244       - If Sub::Name was not present, unimporting failed to actually
245         remove some sugar subs, causing test failures (Dave Rolsky)
246
247 0.56 Mon September 1, 2008
248     For those not following the series of dev releases, there are
249     several major changes in this release of Moose.
250       ! Moose::init_meta should now be called as a method. See the
251         docs for details.
252
253       - Major performance improvements by nothingmuch.
254
255       - New modules for extension writers, Moose::Exporter and
256         Moose::Util::MetaRole by Dave Rolsky.
257
258       - Lots of doc improvements and additions, especially in the
259         cookbook sections.
260
261       - Various bug fixes.
262
263     * Removed all references to the experimental-but-no-longer-needed
264       Moose::Meta::Role::Application::ToMetaclassInstance.
265
266     * Require Class::MOP 0.65.
267
268 0.55_04 Sat August 30, 2008
269     * Moose::Util::MetaRole
270     * Moose::Cookbook::Extending::Recipe2
271       - This simplifies the application of roles to any meta class, as
272         well as the base object class. Reimplemented metaclass traits
273         using this module. (Dave Rolsky)
274
275     * Moose::Cookbook::Extending::Recipe1
276       - This a new recipe, an overview of various ways to write Moose
277         extensions (Dave Rolsky)
278
279     * Moose::Cookbook::Extending::Recipe3
280     * Moose::Cookbook::Extending::Recipe4
281       - These used to be Extending::Recipe1 and Extending::Recipe2,
282         respectively.
283
284 0.55_03 Fri August 29, 2008
285     * No changes from 0.55_02 except increasing the Class::MOP
286       dependency to 0.64_07.
287
288 0.55_02 Fri August 29, 2008
289     * Makefile.PL and Moose.pm
290       - explicitly require Perl 5.8.0+ (Dave Rolsky)
291
292     * Moose::Util::TypeConstraints
293       - Fix warnings from find_type_constraint if the type is not 
294         found (t0m).
295       
296     * Moose::Meta::TypeConstraint
297       - Predicate methods (equals/is_a_type_of/is_subtype_of) now
298         return false if the type you specify cannot be found in the
299         type registry, rather than throwing an unhelpful and
300         coincidental exception. (t0m).
301         - added docs & test for this (t0m)
302     
303     * Moose::Meta::TypeConstraint::Registry
304       - add_type_constraint now throws an exception if a parameter is
305         not supplied (t0m).
306         - added docs & test for this (t0m)
307
308     * Moose::Cookbook::FAQ
309       - Added a faq entry on the difference between "role" and "trait"
310         (t0m)
311
312     * Moose::Meta::Role
313       - Fixed a bug that caused role composition to not see a required
314         method when that method was provided by another role being
315         composed at the same time. (Dave Rolsky)
316         - test and bug finding (tokuhirom)
317         
318 0.55_01 Wed August 20, 2008
319
320     !! Calling Moose::init_meta as a function is now         !!
321     !! deprecated. Please see the Moose.pm docs for details. !!
322
323     * Moose::Meta::Method::Constructor
324       - Fix inlined constructor so that values produced by default
325         or builder methods are coerced as required. (t0m)
326         - added test for this (t0m)
327
328     * Moose::Meta::Attribute
329       - A lazy attribute with a default or builder did not attempt to
330         coerce the default value. The immutable code _did_
331         coerce. (t0m)
332         - added test for this (t0m)
333
334     * Moose::Exporter
335       - This is a new helper module for writing "Moose-alike"
336         modules. This should make the lives of MooseX module authors
337         much easier. (Dave Rolsky)
338
339     * Moose
340     * Moose::Cookbook::Meta::Recipe5
341       - Implemented metaclass traits (and wrote a recipe for it):
342
343           use Moose -traits => 'Foo'
344
345         This should make writing small Moose extensions a little
346         easier (Dave Rolsky)
347
348     * Moose::Cookbook::Basics::Recipe1
349       - Removed any examples of direct hashref access, and applied an
350         editorial axe to reduce verbosity. (Dave Rolsky)
351
352     * Moose::Cookbook::Basics::Recipe1
353       - Also applied an editorial axe here. (Dave Rolsky)
354
355     * Moose
356     * Moose::Cookbook::Extending::Recipe1
357     * Moose::Cookbook::Extending::Recipe2
358       - Rewrote extending and embedding moose documentation and
359         recipes to use Moose::Exporter (Dave Rolsky)
360
361     * Moose
362     * Moose::Role
363       - These two modules now warn when you load them from the main
364         package "main" package, because we will not export sugar to
365         main. Previously it just did nothing. (Dave Rolsky)
366
367     * Moose::Role
368       - Now provide an init_meta method just like Moose.pm, and you
369         can call this to provide an alternate role metaclass. (Dave
370         Rolsky and nothingmuch)
371       - get_method_map now respects the package cache flag (nothingmuch)
372
373     * Moose::Meta::Role
374       - Two new methods - add_method and wrap_method_body
375         (nothingmuch)
376
377     * many modules
378       - Optimizations including allowing constructors to accept hash
379         refs, making many more classes immutable, and making
380         constructors immutable. (nothingmuch)
381
382 0.55 Sun August 3, 2008
383     * Moose::Meta::Attribute
384       - breaking down the way 'handles' methods are
385         created so that the process can be more easily
386         overridden by subclasses (stevan)
387
388     * Moose::Meta::TypeConstraint
389       - fixing what is passed into a ->message with
390         the type constraints (RT #37569)
391         - added tests for this (Charles Alderman)
392
393     * Moose::Util::TypeConstraints
394       - fix coerce to accept anon types like subtype can (mst)
395
396     * Moose::Cookbook
397       - reorganized the recipes into sections - Basics, Roles, Meta,
398         Extending - and wrote abstracts for each section (Dave Rolsky)
399
400     * Moose::Cookbook::Basics::Recipe10
401       - A new recipe that demonstrates operator overloading
402         in combination with Moose. (bluefeet)
403
404     * Moose::Cookbook::Meta::Recipe1
405       - an introduction to what meta is and why you'd want to make
406         your own metaclass extensions (Dave Rolsky)
407
408     * Moose::Cookbook::Meta::Recipe4
409       - a very simple metaclass example (Dave Rolsky)
410
411     * Moose::Cookbook::Extending::Recipe1
412       - how to write a Moose-alike module to use your own object base
413         class (Dave Rolsky)
414
415     * Moose::Cookbook::Extending::Recipe2
416       - how to write modules with an API just like C<Moose.pm> (Dave
417         Rolsky)
418
419     * all documentation
420       - Tons of fixes, both syntactical and grammatical (Dave
421         Rolsky, Paul Fenwick)
422
423 0.54 Thurs. July 3, 2008
424     ... this is not my day today ...
425     
426     * Moose::Meta::Attribute
427       - fixed legal_options_for_inheritance such that 
428         clone_and_inherit options still works for 
429         Class::MOP::Attribute objects and therefore 
430         does not break MooseX::AttributeHelpers
431         (stevan)
432
433 0.53 Thurs. July 3, 2008
434     * Whoops, I guess I should run 'make manifest' before 
435       actually releasing the module. No actual changes 
436       in this release, except the fact that it includes
437       the changes that I didn't include in the last 
438       release. (stevan--)
439
440 0.52 Thurs. July 3, 2008
441     * Moose
442       - added "FEATURE REQUESTS" section to the Moose docs
443         to properly direct people (stevan) (RT #34333)
444       - making 'extends' croak if it is passed a Role since 
445         this is not ever something you want to do 
446         (fixed by stevan, found by obra)
447         - added tests for this (stevan)
448
449     * Moose::Object
450       - adding support for DOES (as in UNIVERSAL::DOES) 
451         (nothingmuch)
452         - added test for this
453
454     * Moose::Meta::Attribute
455       - added legal_options_for_inheritance (wreis)
456         - added tests for this (wreis)
457
458     * Moose::Cookbook::Snacks::*
459       - removed some of the unfinished snacks that should 
460         not have been released yet. Added some more examples
461         to the 'Keywords' snack. (stevan)
462
463     * Moose::Cookbook::Style
464       - added general Moose "style guide" of sorts to the 
465         cookbook (nothingmuch) (RT #34335)
466
467     * t/
468       - added more BUILDARGS tests (stevan)
469
470 0.51 Thurs. Jun 26, 2008
471     * Moose::Role
472       - add unimport so "no Moose::Role" actually does
473         something (sartak)
474
475     * Moose::Meta::Role::Application::ToRole
476       - when RoleA did RoleB, and RoleA aliased a method from RoleB in
477         order to provide its own implementation, that method still got
478         added to the list of required methods for consumers of
479         RoleB. Now an aliased method is only added to the list of
480         required methods if the role doing the aliasing does not
481         provide its own implementation. See Recipe 11 for an example
482         of all this. (Dave Rolsky)
483         - added tests for this
484
485     * Moose::Meta::Method::Constructor
486       - when a single argument that wasn't a hashref was provided to
487         an immutabilized constructor, the error message was very
488         unhelpful, as opposed to the non-immutable error. Reported by
489         dew. (Dave Rolsky)
490         - added test for this (Dave Rolsky)
491
492     * Moose::Meta::Attribute
493       - added support for meta_attr->does("ShortAlias") (sartak)
494         - added tests for this (sartak)
495       - moved the bulk of the `handles` handling to the new
496         install_delegation method (Stevan)
497
498     * Moose::Object
499       - Added BUILDARGS, a new step in new()
500
501     * Moose::Meta::Role::Application::RoleSummation
502       - fix typos no one ever sees (sartak)
503
504     * Moose::Util::TypeConstraints
505     * Moose::Meta::TypeConstraint
506     * Moose::Meta::TypeCoercion
507       - Attempt to work around the ??{ } vs. threads issue
508         (not yet fixed)
509       - Some null_constraint optimizations
510
511 0.50 Thurs. Jun 11, 2008
512     - Fixed a version number issue by bumping all modules
513       to 0.50.
514
515 0.49 Thurs. Jun 11, 2008
516     !! This version now approx. 20-25% !!
517     !! faster with new Class::MOP 0.59 !!
518
519     * Moose::Meta::Attribute
520       - fixed how the is => (ro|rw) works with 
521         custom defined reader, writer and accessor
522         options. 
523         - added docs for this (TODO).
524         - added tests for this (Thanks to Penfold)
525       - added the custom attribute alias for regular
526         Moose attributes which is "Moose"
527       - fix builder and default both being used
528         (groditi)
529
530     * Moose
531       Moose::Meta::Class
532       Moose::Meta::Attribute
533       Moose::Meta::Role
534       Moose::Meta::Role::Composite
535       Moose::Util::TypeConstraints
536       - switched usage of reftype to ref because 
537         it is much faster
538         
539     * Moose::Meta::Role
540       - changing add_package_symbol to use the new
541         HASH ref form
542     
543     * Moose::Object
544       - fixed how DEMOLISHALL is called so that it 
545         can be overrided in subclasses (thanks to Sartak)
546         - added test for this (thanks to Sartak)
547
548     * Moose::Util::TypeConstraints
549       - move the ClassName type check code to
550         Class::MOP::is_class_loaded (thanks to Sartak)
551
552     * Moose::Cookbook::Recipe11
553       - add tests for this (thanks to tokuhirom)
554
555 0.48 Thurs. May 29, 2008
556     (early morning release engineering)--
557
558     - fixing the version in Moose::Meta::Method::Destructor
559       which was causing the indexer to choke
560
561 0.47 Thurs. May 29, 2008
562     (late night release engineering)--
563
564     - fixing the version is META.yml, no functional 
565       changes in this release
566
567 0.46 Wed. May 28, 2008
568     !! This version now approx. 20-25% !!
569     !! faster with new Class::MOP 0.57 !!
570
571     * Moose::Meta::Class
572       - some optimizations of the &initialize method
573         since it is called so often by &meta    
574         
575     * Moose::Meta::Class
576       Moose::Meta::Role
577       - now use the get_all_package_symbols from the 
578         updated Class::MOP, test suite is now 10 seconds 
579         faster
580     
581     * Moose::Meta::Method::Destructor
582       - is_needed can now also be called as a class 
583         method for immutablization to check if the 
584         destructor object even needs to be created 
585         at all
586     
587     * Moose::Meta::Method::Destructor
588       Moose::Meta::Method::Constructor
589       - added more descriptive error message to help 
590         keep people from wasting time tracking an error
591         that is easily fixed by upgrading.
592
593 0.45 Saturday, May 24, 2008
594     * Moose
595       - Because of work in Class::MOP 0.57, all 
596         XS based functionality is now optional
597         and a Pure Perl version is supplied
598         - the CLASS_MOP_NO_XS environment variable
599           can now be used to force non-XS versions 
600           to always be used   
601         - several of the packages have been tweaked
602           to take care of this, mostly we added
603           support for the package_name and name 
604           variables in all the Method metaclasses
605       - before/around/after method modifiers now 
606         support regexp matching of names
607         (thanks to Takatoshi Kitano)
608         - tests added for this
609         - NOTE: this only works for classes, it 
610           is currently not supported in roles, 
611           but, ... patches welcome
612       - All usage of Carp::confess have been replaced
613         by Carp::croak in the "keyword" functions since
614         the stack trace is usually not helpful
615       
616     * Moose::Role
617       - All usage of Carp::confess have been replaced
618         by Carp::croak in the "keyword" functions since
619         the stack trace is usually not helpful  
620       - The 'has' keyword for roles now accepts the 
621         same array ref form that Moose.pm does 
622         (has [qw/foo bar/] => (is => 'rw', ...))
623         - added test for this
624       
625     * Moose::Meta::Attribute
626       - trigger on a ro-attribute is no longer an
627         error, as it's useful to trigger off of the
628         constructor
629
630     * Moose::Meta::Class
631       - added same 'add_package_symbol' fix as in 
632         Class::MOP 0.57
633
634     * Moose::Util
635       - does_role now handles non-Moose classes 
636         more gracefully
637         - added tests for this
638       - added the 'add_method_modifier' function 
639         (thanks to Takatoshi Kitano)
640
641     * Moose::Util::TypeConstraints
642       - subtypes of parameterizable types now are 
643         themselves parameterizable types
644
645     * Moose::Meta::Method::Constructor
646       - fixed bug where trigger was not being 
647         called by the inlined immutable 
648         constructors 
649         - added test for this (thanks to Caelum)
650     
651     * Moose::Meta::Role::Application::ToInstance
652       - now uses the metaclass of the instance
653         (if possible) to create the anon-class
654         (thanks Jonathan Rockway)
655     
656     * Moose::Cookbook::Recipe22
657       - added the meta-attribute trait recipe
658         (thanks to Sartak)
659     
660     * t/
661       - fixed hash-ordering test bug that was 
662         causing occasional cpantester failures
663       - renamed the t/000_recipe/*.t tests to be 
664         more descriptive (thanks to Sartak) 
665
666 0.44 Sat. May 10, 2008
667     * Moose
668       - made make_immutable warning cluck to 
669         show where the error is (thanks mst)
670     
671     * Moose::Object
672       - BUILDALL and DEMOLISHALL now call 
673         ->body when looping through the 
674         methods, to avoid the overloaded
675         method call.
676       - fixed issue where DEMOLISHALL was
677         eating the $@ values, and so not 
678         working correctly, it still kind of
679         eats them, but so does vanilla perl 
680         - added tests for this
681       
682     * Moose::Cookbook::Recipe7
683       - added new recipe for immutable 
684         functionality (thanks Dave Rolsky)
685       
686     * Moose::Cookbook::Recipe9
687       - added new recipe for builder and 
688         lazy_build (thanks Dave Rolsky)
689       
690     * Moose::Cookbook::Recipe11
691       - added new recipe for method aliasing 
692         and exclusion with Roles (thanks Dave Rolsky)
693
694     * t/
695       - fixed Win32 test failure (thanks spicyjack)
696
697     ~ removed Build.PL and Module::Build compat 
698       since Module::Install has done that.
699
700 0.43 Wed. April, 30, 2008
701     * NOTE TO SELF:
702         drink more coffee before 
703         doing release engineering
704       
705     - whoops, forgot to do the smolder tests, 
706       and we broke some of the custom meta-attr
707       modules. This fixes that.
708
709 0.42 Mon. April 28, 2008
710     - some bad tests slipped by, nothing else 
711       changed in this release (cpantesters++)
712       
713     - upped the Class::MOP dependency to 0.55 
714       since we have tests which need the C3 
715       support
716
717 0.41 Mon. April 28, 2008
718     ~~ numerous documentation updates ~~
719     
720     - Changed all usage of die to Carp::croak for better
721       error reporting (initial patch by Tod Hagan)
722
723     ** IMPORTANT NOTE **
724     - the make_immutable keyword is now deprecated, don't
725       use it in any new code and please fix your old code
726       as well. There will be 2 releases, and then it will
727       be removed.
728
729     * Moose
730       Moose::Role
731       Moose::Meta::Class
732       - refactored the way inner and super work to avoid
733         any method/@ISA cache penalty (nothingmuch)
734
735     * Moose::Meta::Class
736       - fixing &new_object to make sure trigger gets the 
737         coerced value (spotted by Charles Alderman on the 
738         mailing list)
739         - added test for this
740
741     * Moose::Meta::Method::Constructor
742       - immutable classes which had non-lazy attributes were calling
743         the default generating sub twice in the constructor. (bug
744         found by Jesse Luehrs, fixed by Dave Rolsky)
745         - added tests for this (Dave Rolsky)
746       - fix typo in initialize_body method (nothingmuch)
747       
748     * Moose::Meta::Method::Destructor
749       - fix typo in initialize_body method (nothingmuch)
750
751     * Moose::Meta::Method::Overriden
752       Moose::Meta::Method::Augmented
753       - moved the logic for these into their own 
754         classes (nothingmuch)
755
756     * Moose::Meta::Attribute
757       - inherited attributes may now be extended without 
758         restriction on the type ('isa', 'does') (Sartak)
759         - added tests for this (Sartak)
760       - when an attribute property is malformed (such as lazy without 
761         a default), give the name of the attribute in the error 
762         message (Sartak)
763       - added the &applied_traits and &has_applied_traits methods 
764         to allow introspection of traits
765         - added tests for this
766       - moved 'trait' and 'metaclass' argument handling to here from
767         Moose::Meta::Class
768       - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
769         '+foo' syntax) (nothingmuch)
770         - added tests for this (t0m)
771      
772     * Moose::Object 
773       - localize $@ inside DEMOLISHALL to avoid it 
774         eating $@ (found by Ernesto)
775         - added test for this (thanks to Ernesto)
776
777     * Moose::Util::TypeConstraints
778       - &find_type_constraint now DWIMs when given an 
779         type constraint object or name (nothingmuch)
780       - &find_or_create_type_constraint superseded with a number of more
781         specific functions:
782         - find_or_create_{isa,does}_type_constraint
783         - find_or_parse_type_constraint
784
785     * Moose::Meta::TypeConstraint
786       Moose::Meta::TypeConstraint::Class
787       Moose::Meta::TypeConstraint::Role
788       Moose::Meta::TypeConstraint::Enum
789       Moose::Meta::TypeConstraint::Union
790       Moose::Meta::TypeConstraint::Parameterized
791         - added the &equals method for comparing two type 
792           constraints (nothingmuch)
793           - added tests for this (nothingmuch)
794
795     * Moose::Meta::TypeConstraint
796       - add the &parents method, which is just an alias to &parent. 
797         Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
798
799     * Moose::Meta::TypeConstraint::Class
800       - added the class attribute for introspection purposes
801         (nothingmuch)
802         - added tests for this
803         
804     * Moose::Meta::TypeConstraint::Enum
805       Moose::Meta::TypeConstraint::Role
806       - broke these out into their own classes (nothingmuch)
807
808     * Moose::Cookbook::Recipe*
809       - fixed references to test file locations in the POD
810         and updated up some text for new Moose features
811         (Sartak)
812
813     * Moose::Util
814       - Added &resolve_metaclass_alias, a helper function for finding an actual
815         class for a short name (e.g. in the traits list)
816
817 0.40 Fri. March 14, 2008
818     - I hate Pod::Coverage
819
820 0.39 Fri. March 14, 2008
821     * Moose
822       - documenting the use of '+name' with attributes 
823         that come from recently composed roles. It makes
824         sense, people are using it, and so why not just 
825         officially support it.
826       - fixing the 'extends' keyword so that it will not 
827         trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
828       
829     * oose
830       - added the perl -Moose=+Class::Name feature to allow 
831         monkeypatching of classes in one liners
832       
833     * Moose::Util
834       - fixing the 'apply_all_roles' keyword so that it will not 
835         trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)    
836     
837     * Moose::Meta::Class
838       - added ->create method which now supports roles (thanks to jrockway)
839         - added tests for this
840       - added ->create_anon_class which now supports roles and caching of 
841         the results (thanks to jrockway)
842         - added tests for this
843       - made ->does_role a little more forgiving when it is
844         checking a Class::MOP era metaclasses.
845     
846     * Moose::Meta::Role::Application::ToInstance
847       - it is now possible to pass extra params to be used when 
848         a role is applied to an the instance (rebless_params)
849         - added tests for this
850     
851     * Moose::Util::TypeConstraints
852       - class_type now accepts an optional second argument for a
853         custom message. POD anotated accordingly (groditi)
854         - added tests for this 
855       - it is now possible to make anon-enums by passing 'enum' an 
856         ARRAY ref instead of the $name => @values. Everything else 
857         works as before.
858         - added tests for this
859     
860     * t/
861       - making test for using '+name' on attributes consumed 
862         from a role, it works and makes sense too.    
863
864     * Moose::Meta::Attribute 
865       - fix handles so that it doesn't return nothing 
866         when the method cannot be found, not sure why 
867         it ever did this originally, this means we now
868         have slightly better support for AUTOLOADed 
869         objects
870         - added more delegation tests
871       - adding ->does method to this so as to better 
872         support traits and their introspection.
873         - added tests for this
874     
875     * Moose::Object
876       - localizing the Data::Dumper configurations so 
877         that it does not pollute others (RT #33509)
878       - made ->does a little more forgiving when it is
879         passed Class::MOP era metaclasses.
880
881 0.38 Fri. Feb. 15, 2008
882     * Moose::Meta::Attribute 
883       - fixed initializer to correctly do 
884         type checking and coercion in the 
885         callback 
886         - added tests for this
887
888     * t/
889       - fixed some finicky tests (thanks to konobi)
890
891 0.37 Thurs. Feb. 14, 2008
892     * Moose
893       - fixed some details in Moose::init_meta 
894         and its superclass handling (thanks thepler)
895         - added tests for this (thanks thepler)
896       - 'has' now dies if you don't pass in name 
897         value pairs
898       - added the 'make_immutable' keyword as a shortcut
899         to make_immutable
900
901     * Moose::Meta::Class
902       Moose::Meta::Method::Constructor
903       Moose::Meta::Attribute        
904       - making (init_arg => undef) work here too
905         (thanks to nothingmuch)
906         
907     * Moose::Meta::Attribute        
908       Moose::Meta::Method::Constructor
909       Moose::Meta::Method::Accessor                
910       - make lazy attributes respect attr initializers (rjbs)
911         - added tests for this
912     
913     * Moose::Util::TypeConstraints
914       Moose::Util::TypeConstraints::OptimizedConstraints
915       Moose::Meta::TypeConstraints
916       Moose::Meta::Attribute
917       Moose::Meta::Method::Constructor
918       Moose::Meta::Method::Accessor            
919       - making type errors use the 
920         assigned message (thanks to Sartak)
921         - added tests for this
922
923     * Moose::Meta::Method::Destructor
924       - making sure DESTROY gets inlined properly 
925         with successive DEMOLISH calls (thanks to manito)
926
927     * Moose::Meta::Attribute  
928       Moose::Meta::Method::Accessor 
929       - fixed handling of undef with type constraints 
930         (thanks to Ernesto)               
931         - added tests for this
932     
933     * Moose::Util
934       - added &get_all_init_args and &get_all_attribute_values 
935         (thanks to Sartak and nothingmuch)
936
937 0.36 Sat. Jan. 26, 2008
938     * Moose::Role
939       Moose::Meta::Attribute
940       - role type tests now support when roles are 
941         applied to non-Moose classes (found by ash)
942         - added tests for this (thanks to ash)
943       - couple extra tests to boost code coverage
944
945     * Moose::Meta::Method::Constructor    
946       - improved fix for handling Class::MOP attributes
947         - added test for this        
948       
949     * Moose::Meta::Class
950       - handled the add_attribute($attribute_meta_object)
951         case correctly
952         - added test for this
953
954 0.35 Tues. Jan. 22, 2008
955     * Moose::Meta::Method::Constructor
956       - fix to make sure even Class::MOP attributes 
957         are handled correctly (Thanks to Dave Rolsky)
958         - added test for this (also Dave Rolsky)
959     
960     * Moose::Meta::Class
961       - improved error message on _apply_all_roles, 
962         you should now use Moose::Util::apply_all_roles
963         and you shouldnt have been using a _ prefixed
964         method in the first place ;)
965
966 0.34 Mon. Jan. 21, 2008
967     ~~~ more misc. doc. fixes ~~~
968     ~~ updated copyright dates ~~
969
970     Moose is now a postmodern object system :)
971       - (see the POD for details)
972       
973     * <<Role System Refactoring>>    
974     - this release contains a major reworking and 
975       cleanup of the role system     
976       - 100% backwards compat.
977       - Role application now restructured into seperate
978         classes based on type of applicants
979       - Role summation (combining of more than one role)
980         is much cleaner and anon-classes are no longer 
981         used in this process
982       - new Composite role metaclass    
983       - runtime application of roles to instances
984         is now more efficient and re-uses generated
985         classes when applicable
986         
987     * <<New Role composition features>>
988       - methods can now be excluded from a given role 
989         during composition
990       - methods can now be aliased to another name (and 
991         still retain the original as well)        
992     
993     * Moose::Util::TypeConstraints::OptimizedConstraints
994       - added this module (see above)
995
996     * Moose::Meta::Class
997       - fixed the &_process_attribute method to be called
998         by &add_attribute, so that the API is now correct
999
1000     * Moose::Meta::Method::Accessor
1001       - fixed bug when passing a list of values to
1002         an accessor would get (incorrectly) ignored.
1003         Thanks to Sartak for finding this ;)
1004         - added tests for this (Sartak again)
1005
1006     * Moose::Meta::Method::Accessor
1007       Moose::Meta::Method::Constructor
1008       Moose::Meta::Attribute
1009       Moose::Meta::TypeConstraint      
1010       Moose::Meta::TypeCoercion      
1011       - lots of cleanup of such things as: 
1012         - generated methods
1013         - type constraint handling
1014         - error handling/messages 
1015         (thanks to nothingmuch)   
1016     
1017     * Moose::Meta::TypeConstraint::Parameterizable
1018       - added this module to support the refactor 
1019         in Moose::Meta::TypeConstraint::Parameterized
1020
1021     * Moose::Meta::TypeConstraint::Parameterized
1022       - refactored how these types are handled so they 
1023         are more generic and not confined to ArrayRef
1024         and HashRef only
1025
1026     * t/
1027       - shortened some file names for better VMS support (RT #32381)
1028
1029 0.33 Fri. Dec. 14, 2007
1030     !! Moose now loads 2 x faster !!
1031     !!  with new Class::MOP 0.49  !!
1032
1033     ++ new oose.pm module to make command line
1034        Moose-ness easier (see POD docs for more)
1035
1036     * Moose::Meta::Class
1037     * Moose::Meta::Role
1038       - several tweaks to take advantage of the
1039         new method map caching in Class::MOP
1040
1041     * Moose::Meta::TypeConstraint::Parameterized
1042       - allow subtypes of ArrayRef and HashRef to
1043         be used as a container (sartak)
1044         - added tests for this
1045       - basic support for coercion to ArrayRef and
1046         HashRef for containers (sartak)
1047         - added tests for this
1048
1049     * Moose::Meta::TypeCoercion
1050       - coercions will now create subtypes as needed
1051         so you can now add coercions to parameterized
1052         types without having to explictly define them
1053         - added tests for this
1054
1055     * Moose::Meta::Method::Accessor
1056       - allow subclasses to decide whether we need
1057         to copy the value into a new variable (sartak)
1058
1059 0.32 Tues. Dec. 4, 2007
1060     * Moose::Util::TypeConstraints
1061       - fixing how subtype aliases of unions work
1062         they should inherit the parent's coercion
1063         - added tests for this
1064       - you can now define multiple coercions on
1065         a single type at different times instead of
1066         having to do it all in one place
1067         - added tests for this
1068
1069     * Moose::Meta::TypeConstraint
1070       - there is now a default constraint of sub { 1 }
1071         instead of Moose::Util::TypeConstraints setting
1072         this for us
1073
1074     * Moose::Meta::TypeCoercion
1075     * Moose::Meta::TypeCoercion::Union
1076       - added the &has_coercion_for_type and
1077         &add_type_coercions methods to support the
1078         new features above (although you cannot add
1079         more type coercions for Union types)
1080
1081 0.31 Mon. Nov. 26, 2007
1082     * Moose::Meta::Attribute
1083       - made the +attr syntax handle extending types with
1084         parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1085         now works if the original foo is an ArrayRef.
1086         - added tests for this.
1087       - delegation now works even if the attribute does not
1088         have a reader method using the get_read_method_ref
1089         method from Class::MOP::Attribute.
1090         - added tests for this
1091         - added docs for this
1092
1093     * Moose::Util::TypeConstraints
1094       - passing no "additional attribute info" to
1095         &find_or_create_type_constraint will no longer
1096         attempt to create an __ANON__ type for you,
1097         instead it will just return undef.
1098         - added docs for this
1099
1100 0.30 Fri. Nov. 23, 2007
1101     * Moose::Meta::Method::Constructor
1102       -builder related bug in inlined constructor. (groditi)
1103
1104     * Moose::Meta::Method::Accessor
1105       - genereate unnecessary calls to predicates and refactor
1106         code generation for runtime speed (groditi)
1107
1108     * Moose::Util::TypeConstraints
1109       - fix ClassName constraint to introspect symbol table (mst)
1110         - added more tests for this (mst)
1111       - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1112         with work correctly.
1113         - added tests for this
1114
1115     * Moose::Cookbook
1116       - adding the link to Recipie 11 (written by Sartak)
1117         - adding test for SYNOPSIS code
1118
1119     * t/
1120       - New tests for builder bug. Upon instantiation, if an
1121         attribute had a builder, no value and was not lazy the
1122         builder default was not getting run, oops. (groditi)
1123
1124 0.29 Tues. Nov. 13, 2007
1125     * Moose::Meta::Attribute
1126       - Fix error message on missing builder method (groditi)
1127
1128     * Moose::Meta::Method::Accessor
1129       - Fix error message on missing builder method (groditi)
1130
1131     * t/
1132       - Add test to check for the correct error message when
1133         builder method is missing (groditi)
1134
1135 0.28 Tues. Nov. 13, 2007
1136     - 0.27 packaged incorrectly (groditi)
1137
1138 0.27 Tues. Nov. 13, 2007
1139     * Moose::Meta::Attribute
1140       - Added support for the new builder option (groditi)
1141       - Added support for lazy_build option (groditi)
1142       - Changed slot initialization for predicate changes (groditi)
1143
1144     * Moose::Meta::Method::Accessor
1145       - Added support for lazy_build option (groditi)
1146       - Fix inline methods to work with corrected predicate
1147         behavior (groditi)
1148
1149     * Moose::Meta::Method::Constructor
1150       - Added support for lazy_build option (groditi)
1151
1152     * t/
1153       - tests for builder and lazy_build (groditi)
1154
1155     * fixing some misc. bits in the docs that
1156       got mentioned on CPAN Forum & perlmonks
1157
1158     * Moose::Meta::Role
1159       - fixed how required methods are handled
1160         when they encounter overriden or modified
1161         methods from a class (thanks to confound).
1162         - added tests for this
1163
1164     * Moose::Util::TypeConstraint
1165       - fixed the type notation parser so that
1166         the | always creates a union and so is
1167         no longer a valid type char (thanks to
1168         konobi, mugwump and #moose for working
1169         this one out.)
1170         - added more tests for this
1171
1172 0.26 Thurs. Sept. 27, 2007
1173     == New Features ==
1174
1175     * Parameterized Types
1176       We now support parameterized collection types, such as:
1177           ArrayRef[Int]    # array or integers
1178           HashRef[Object]  # a hash with object values
1179       They can also be nested:
1180           ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1181       And work with the type unions as well:
1182           ArrayRef[Int | Str]  # array of integers of strings
1183
1184     * Better Framework Extendability
1185       Moose.pm is now "extendable" such that it is now much
1186       easier to extend the framework and add your own keywords
1187       and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1188       section of the Moose.pm docs.
1189
1190     * Moose Snacks!
1191       In an effort to begin documenting some of the various
1192       details of Moose as well as some common idioms, we have
1193       created Moose::Cookbook::Snacks as a place to find
1194       small (easily digestable) nuggets of Moose code.
1195
1196     ====
1197     ~ Several doc updates/cleanup thanks to castaway ~
1198
1199     - converted build system to use Module::Install instead of
1200       Module::Build (thanks to jrockway)
1201
1202     * Moose
1203       - added all the meta classes to the immutable list and
1204         set it to inline the accessors
1205       - fix import to allow Sub::Exporter like { into => }
1206             and { into_level => } (perigrin)
1207       - exposed and documented init_meta() to allow better
1208             embedding and extending of Moose (perigrin)
1209
1210         * t/
1211           - complete re-organization of the test suite
1212           - added some new tests as well
1213           - finally re-enabled the Moose::POOP test since
1214             the new version of DBM::Deep now works again
1215             (thanks rob)
1216
1217     * Moose::Meta::Class
1218       - fixed very odd and very nasty recursion bug with
1219         inner/augment (mst)
1220         - added tests for this (eilara)
1221
1222     * Moose::Meta::Attribute
1223       Moose::Meta::Method::Constructor
1224       Moose::Meta::Method::Accessor
1225       - fixed issue with overload::Overloaded getting called
1226         on non-blessed items. (RT #29269)
1227         - added tests for this
1228
1229     * Moose::Meta::Method::Accessor
1230       - fixed issue with generated accessor code making
1231         assumptions about hash based classes (thanks to dexter)
1232
1233     * Moose::Coookbook::Snacks
1234       - these are bits of documentation, not quite as big as
1235         Recipes but which have no clear place in the module docs.
1236         So they are Snacks! (horray for castaway++)
1237
1238     * Moose::Cookbook::Recipe4
1239       - updated it to use the new ArrayRef[MyType] construct
1240         - updated the accompanying test as well
1241
1242     +++ Major Refactor of the Type Constraint system +++
1243     +++       with new features added as well        +++
1244
1245     * Moose::Util::TypeConstraint
1246       - no longer uses package variable to keep track of
1247         the type constraints, now uses the an instance of
1248         Moose::Meta::TypeConstraint::Registry to do it
1249       - added more sophisticated type notation parsing
1250         (thanks to mugwump)
1251         - added tests for this
1252
1253     * Moose::Meta::TypeConstraint
1254       - some minor adjustments to make subclassing easier
1255       - added the package_defined_in attribute so that we
1256         can track where the type constraints are created
1257
1258     * Moose::Meta::TypeConstraint::Union
1259       - this is now been refactored to be a subclass of
1260         Moose::Meta::TypeConstraint
1261
1262     * Moose::Meta::TypeCoercion::Union
1263       - this has been added to service the newly refactored
1264         Moose::Meta::TypeConstraint::Union and is itself
1265         a subclass of Moose::Meta::TypeCoercion
1266
1267     * Moose::Meta::TypeConstraint::Parameterized
1268       - added this module (taken from MooseX::AttributeHelpers)
1269         to help construct nested collection types
1270         - added tests for this
1271
1272     * Moose::Meta::TypeConstraint::Registry
1273       - added this class to keep track of type constraints
1274
1275 0.25 Mon. Aug. 13, 2007
1276     * Moose
1277       - Documentation update to reference Moose::Util::TypeConstraints
1278         under 'isa' in 'has' for how to define a new type
1279         (thanks to shlomif).
1280
1281     * Moose::Meta::Attribute
1282       - required attributes now will no longer accept undef
1283         from the constructor, even if there is a default and lazy
1284         - added tests for this
1285       - default subroutines must return a value which passes the
1286         type constraint
1287         - added tests for this
1288
1289     * Moose::Meta::Attribute
1290     * Moose::Meta::Method::Constructor
1291     * Moose::Meta::Method::Accessor
1292       - type-constraint tests now handle overloaded objects correctly
1293         in the error message
1294         - added tests for this (thanks to EvanCarroll)
1295
1296     * Moose::Meta::TypeConstraint::Union
1297       - added (has_)hand_optimized_constraint to this class so that
1298         it behaves as the regular Moose::Meta::TypeConstraint does.
1299
1300     * Moose::Meta::Role
1301       - large refactoring of this code
1302       - added several more tests
1303         - tests for subtle conflict resolition issues
1304           added, but not currently running
1305           (thanks to kolibre)
1306
1307     * Moose::Cookbook::Recipe7
1308       - added new recipe for augment/inner functionality
1309         (still in progress)
1310         - added test for this
1311
1312     * Moose::Spec::Role
1313       - a formal definition of roles (still in progress)
1314
1315     * Moose::Util
1316       - utilities for easier working with Moose classes
1317         - added tests for these
1318
1319     * Test::Moose
1320       - This contains Moose specific test functions
1321         - added tests for these
1322
1323 0.24 Tues. July 3, 2007
1324     ~ Some doc updates/cleanup ~
1325
1326     * Moose::Meta::Attribute
1327       - added support for roles to be given as parameters
1328         to the 'handles' option.
1329         - added tests and docs for this
1330       - the has '+foo' attribute form now accepts changes to
1331         the lazy option, and the addition of a handles option
1332         (but not changing the handles option)
1333         - added tests and docs for this
1334
1335     * Moose::Meta::Role
1336       - required methods are now fetched using find_method_by_name
1337         so that required methods can come from superclasses
1338         - adjusted tests for this
1339
1340 0.23 Mon. June 18, 2007
1341     * Moose::Meta::Method::Constructor
1342       - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1343     * Moose::Meta::Class
1344       - Modify make_immutable to work with the new Class::MOP immutable
1345         mechanism + POD + very basic test (groditi)
1346     * Moose::Meta::Attribute
1347       - Fix handles to use goto() so that caller() comes out properly on
1348         the other side (perigrin)
1349
1350 0.22 Thurs. May 31, 2007
1351     * Moose::Util::TypeConstraints
1352       - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1353         loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1354         prototypes for functions
1355       - added the ClassName type constraint, this checks for strings
1356         which will respond true to ->isa(UNIVERSAL).
1357         - added tests and docs for this
1358       - subtyping just in name now works correctly by making the
1359         default for where be { 1 }
1360         - added test for this
1361
1362     * Moose::Meta::Method::Accessor
1363       - coerce and lazy now work together correctly, thanks to
1364         merlyn for finding this bug
1365         - tests added for this
1366       - fix reader presedence bug in Moose::Meta::Attribute + tests
1367
1368     * Moose::Object
1369       - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1370         a HASH-ref and missed. This produces better error messages then
1371         having it die cause undef is not a HASH.
1372         - added tests for this
1373
1374 0.21 Thursday, May 2nd, 2007
1375     * Moose
1376       - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1377       - modified unimport to remove super and inner along with the rest
1378         - altered unimport tests to handle this
1379
1380     * Moose::Role
1381       - altered super export to populate SUPER_SLOT
1382
1383     * Moose::Meta::Class
1384       - altered augment and override modifier application to use *_SLOT
1385         - modified tests for these to unimport one test class each to test
1386
1387     * Moose::Meta::Role
1388       - fixed issue where custom attribute metaclasses
1389         where not handled correctly in roles
1390         - added tests for this
1391
1392     * Moose::Meta::Class
1393       - fixed issue where extending metaclasses with
1394         roles would blow up. Thanks to Aankhen`` for
1395         finding this insidious error, and it's solution.
1396
1397     ~~ lots of spelling and grammer fixes in the docs,
1398        many many thanks to rlb3 and Aankhen for these :)
1399
1400 0.20 Friday, April 6th, 2007
1401     >> I messed up the SKIP logic in one test
1402        so this release is just to fix that.
1403
1404     * Moose
1405       - 'has' now also accepts an ARRAY ref
1406         to create multiple attrs (see docs)
1407         (thanks to konobi for this)
1408          - added tests and docs
1409
1410 0.19 Thurs. April 5th, 2007
1411     ~~ More documentation updates ~~
1412
1413     * Moose::Util::TypeConstraints
1414       - 'type' now supports messages as well
1415         thanks to phaylon for finding this
1416         - added tests for this
1417       - added &list_all_type_constraints and
1418         &list_all_builtin_type_constraints
1419         functions to facilitate introspection.
1420
1421     * Moose::Meta::Attribute
1422       - fixed regexp 'handles' declarations
1423         to build the list of delegated methods
1424         correctly (and not override important
1425         things like &new) thanks to ashleyb
1426         for finding this
1427         - added tests and docs for this
1428       - added the 'documentation' attributes
1429         so that you can actually document your
1430         attributes and inspect them through the
1431         meta-object.
1432         - added tests and docs for this
1433
1434     * Moose::Meta::Class
1435       - when loading custom attribute metaclasses
1436         it will first look in for the class in the
1437         Moose::Meta::Attribute::Custom::$name, and
1438         then default to just loading $name.
1439         - added tests and docs for this
1440
1441     * Moose::Meta::TypeConstraint
1442       - type constraints now stringify to their names.
1443         - added test for this
1444
1445     * misc.
1446       - added tests to assure we work with Module::Refresh
1447       - added stricter test skip logic in the Moose POOP
1448         test, ask Rob Kinyon why.
1449         - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1450
1451 0.18 Sat. March 10, 2007
1452     ~~ Many, many documentation updates ~~
1453
1454     * misc.
1455       - We now use Class::MOP::load_class to
1456         load all classes.
1457       - added tests to show types and subtypes
1458         working with Declare::Constraints::Simple
1459         and Test::Deep as constraint engines.
1460
1461 0.18_001
1462     !! You must have Class::MOP 0.37_001  !!
1463     !! for this developer release to work !!
1464
1465     This release was primarily adding the immutable
1466     feature to Moose. An immutable class is one which
1467     you promise not to alter. When you set the class
1468     as immutable it will perform various bits of
1469     memoization and inline certain part of the code
1470     (constructors, destructors and accessors). This
1471     minimizes (and in some cases totally eliminates)
1472     one of Moose's biggest performance hits. This
1473     feature is not on by default, and is 100% optional.
1474     It has several configurable bits as well, so you
1475     can pick and choose to your specific needs.
1476
1477     The changes involved in this were fairly wide and
1478     highly specific, but 100% backwards compatible, so
1479     I am not going to enumerate them here. If you are
1480     truely interested in what was changed, please do
1481     a diff :)
1482
1483 0.17 Tues. Nov. 14, 2006
1484     * Moose::Meta::Method::Accessor
1485       - bugfix for read-only accessors which
1486         are have a type constraint and lazy.
1487         Thanks to chansen for finding it.
1488
1489 0.16 Tues. Nov. 14, 2006
1490     ++ NOTE ++
1491     There are some speed improvements in this release,
1492     but they are only the begining, so stay tuned.
1493
1494     * Moose::Object
1495       - BUILDALL and DEMOLISHALL no longer get
1496         called unless they actually need to be.
1497         This gave us a signifigant speed boost
1498         for the cases when there is no BUILD or
1499         DEMOLISH method present.
1500
1501     * Moose::Util::TypeConstraints
1502     * Moose::Meta::TypeConstraint
1503       - added an 'optimize_as' option to the
1504         type constraint, which allows for a
1505         hand optimized version of the type
1506         constraint to be used when possible.
1507       - Any internally created type constraints
1508         now provide an optimized version as well.
1509
1510 0.15 Sun. Nov. 5, 2006
1511     ++ NOTE ++
1512     This version of Moose *must* have Class::MOP 0.36 in order
1513     to work correctly. A number of small internal tweaks have
1514     been made in order to be compatible with that release.
1515
1516     * Moose::Util::TypeConstraints
1517       - added &unimport so that you can clean out
1518         your class namespace of these exported
1519         keywords
1520
1521     * Moose::Meta::Class
1522       - fixed minor issue which occasionally
1523         comes up during global destruction
1524         (thanks omega)
1525       - moved Moose::Meta::Method::Overriden into
1526         its own file.
1527
1528     * Moose::Meta::Role
1529       - moved Moose::Meta::Role::Method into
1530         its own file.
1531
1532     * Moose::Meta::Attribute
1533       - changed how we do type checks so that
1534         we reduce the overall cost, but still
1535         retain correctness.
1536        *** API CHANGE ***
1537       - moved accessor generation methods to
1538         Moose::Meta::Method::Accessor to
1539         conform to the API changes from
1540         Class::MOP 0.36
1541
1542     * Moose::Meta::TypeConstraint
1543       - changed how constraints are compiled
1544         so that we do less recursion and more
1545         iteration. This makes the type check
1546         faster :)
1547       - moved Moose::Meta::TypeConstraint::Union
1548         into its own file
1549
1550     * Moose::Meta::Method::Accessor
1551       - created this from methods formerly found in
1552         Moose::Meta::Attribute
1553
1554     * Moose::Meta::Role::Method
1555       - moved this from Moose::Meta::Role
1556
1557     * Moose::Meta::Method::Overriden
1558       - moved this from Moose::Meta::Class
1559
1560     * Moose::Meta::TypeConstraint::Union
1561       - moved this from Moose::Meta::TypeConstraint
1562
1563 0.14 Mon. Oct. 9, 2006
1564
1565     * Moose::Meta::Attribute
1566       - fixed lazy attributes which were not getting
1567         checked with the type constraint (thanks ashley)
1568         - added tests for this
1569       - removed the over-enthusiastic DWIMery of the
1570         automatic ArrayRef and HashRef defaults, it
1571         broke predicates in an ugly way.
1572         - removed tests for this
1573
1574 0.13 Sat. Sept. 30, 2006
1575     ++ NOTE ++
1576     This version of Moose *must* have Class::MOP 0.35 in order
1577     to work correctly. A number of small internal tweaks have
1578     been made in order to be compatible with that release.
1579
1580     * Moose
1581       - Removed the use of UNIVERSAL::require to be a better
1582         symbol table citizen and remove a dependency
1583         (thanks Adam Kennedy)
1584
1585       **~~ removed experimental & undocumented feature ~~**
1586       - commented out the 'method' and 'self' keywords, see the
1587         comments for more info.
1588
1589     * Moose::Cookbook
1590       - added a FAQ and WTF files to document frequently
1591         asked questions and common problems
1592
1593     * Moose::Util::TypeConstraints
1594       - added GlobRef and FileHandle type constraint
1595         - added tests for this
1596
1597     * Moose::Meta::Attribute
1598       - if your attribute 'isa' ArrayRef of HashRef, and you have
1599         not explicitly set a default, then make the default DWIM.
1600         This will also work for subtypes of ArrayRef and HashRef
1601         as well.
1602       - you can now auto-deref subtypes of ArrayRef or HashRef too.
1603         - new test added for this (thanks to ashley)
1604
1605     * Moose::Meta::Role
1606       - added basic support for runtime role composition
1607         but this is still *highly experimental*, so feedback
1608         is much appreciated :)
1609         - added tests for this
1610
1611     * Moose::Meta::TypeConstraint
1612       - the type constraint now handles the coercion process
1613         through delegation, this is to support the coercion
1614         of unions
1615
1616     * Moose::Meta::TypeConstraint::Union
1617       - it is now possible for coercions to be performed
1618         on a type union
1619         - added tests for this (thanks to konobi)
1620
1621     * Moose::Meta::TypeCoercion
1622       - properly capturing error when type constraint
1623         is not found
1624
1625     * Build.PL
1626       - Scalar::Util 1.18 is bad on Win32, so temporarily
1627         only require version 1.17 for Win32 and cygwin.
1628         (thanks Adam Kennedy)
1629
1630 0.12 Sat. Sept. 1, 2006
1631     * Moose::Cookbook
1632       - Recipe5 (subtypes & coercion) has been written
1633
1634     * Moose
1635       - fixed "bad meta" error message to be more descriptive
1636       - fixed &unimport to not remove the &inner and &super
1637         keywords because we need to localize them.
1638       - fixed number of spelling/grammer issues, thanks Theory :)
1639
1640       **~~ experimental & undocumented feature ~~**
1641       - added the method and self keywords, they are basically
1642         just sugar, and they may not stay around.
1643
1644     * Moose::Object
1645       - added &dump method to easily Data::Dumper
1646         an object
1647
1648     * Moose::Meta::TypeConstraint
1649       - added the &is_a_type_of method to check both the current
1650         and the subtype of a method (similar to &isa with classes)
1651
1652     * Moose::Meta::Role
1653       - this is now a subclass of Class::MOP::Module, and no longer
1654         creates the _role_meta ugliness of before.
1655         - fixed tests to reflect this change
1656
1657 0.11 Wed. July 12, 2006
1658     * Moose
1659       - added an &unimport method to remove all the keywords
1660         that Moose will import, simply add 'no Moose' to the
1661         bottom of your class file.
1662
1663     * t/
1664       - fixed some test failures caused by a forgotten test
1665         dependency.
1666
1667 0.10 Thurs. July 6, 2006
1668     * Moose
1669       - improved error message when loading modules so
1670         it is less confusing when you load a role.
1671       - added &calculate_all_roles method to
1672         Moose::Meta::Class and Moose::Meta::Role
1673
1674     NOTE:
1675     This module has been tested against Class::MOP 0.30
1676     but it does not yet utilize the optimizations
1677     it makes available. Stay tuned for that ;)
1678
1679 0.09_03 Fri. June 23, 2006
1680     ++ DEVELOPER RELEASE ++
1681     * Moose
1682       - 'use strict' and 'use warnings' are no longer
1683          needed in Moose classes, Moose itself will
1684          turn them on for you.
1685          - added tests for this
1686       - moved code from exported subs to private methods
1687         in Moose::Meta::Class
1688
1689     * Moose::Role
1690       - as with Moose, strict and warnings are
1691         automatically turned on for you.
1692          - added tests for this
1693
1694     * Moose::Meta::Role
1695       - now handles an edge case for override errors
1696         - added tests for this
1697       - added some more edge case tests
1698
1699 0.09_02 Tues. May 16, 2006
1700     ++ DEVELOPER RELEASE ++
1701     * Moose
1702       - added prototypes to the exported subs
1703       - updated docs
1704
1705     * Moose::Role
1706       - added prototypes to the exported subs
1707       - updated docs
1708
1709     * Moose::Util::TypeConstraints
1710       - cleaned up prototypes for the subs
1711       - updated docs
1712
1713 0.09_01 Fri. May 12, 2006
1714     ++ DEVELOPER RELEASE ++
1715       - This release works in combination with
1716         Class::MOP 0.29_01, it is a developer
1717         release because it uses the a new
1718         instance sub-protocol and a fairly
1719         complete Role implementation. It has
1720         not yet been optimized, so it slower
1721         the the previous CPAN version. This
1722         release also lacks good updated docs,
1723         the official release will have updated docs.
1724
1725     * Moose
1726       - refactored the keyword exports
1727         - 'with' now checks Role validaity and
1728           accepts more than one Role at a time
1729         - 'extends' makes metaclass adjustments as
1730            needed to ensure metaclass compatibility
1731
1732     * Moose::Role
1733       - refactored the keyword exports
1734         - 'with' now checks Role validaity and
1735           accepts more than one Role at a time
1736
1737     * Moose::Util::TypeConstraints
1738       - added the 'enum' keyword for simple
1739         string enumerations which can be used as
1740         type constraints
1741         - see example of usage in t/202_example.t
1742
1743     * Moose::Object
1744       - more careful checking of params to new()
1745
1746     * Moose::Meta::Role
1747       - much work done on the role composition
1748         - many new tests for conflict detection
1749           and composition edge cases
1750         - not enough documentation, I suggest
1751           looking at the tests
1752
1753     * Moose::Meta::Instance
1754       - added new Instance metaclass to support
1755         the new Class::MOP instance protocol
1756
1757     * Moose::Meta::Class
1758       - some small changes to support the new
1759         instance protocol
1760       - some small additions to support Roles
1761
1762     * Moose::Meta::Attribute
1763       - some improvements to the accessor generation code
1764         by nothingmuch
1765       - some small changes to support the new
1766         instance protocol
1767       - (still somewhat) experimental delegation support
1768         with the 'handles' option
1769         - added several tests for this
1770         - no docs for this yet
1771
1772 0.05 Thurs. April 27, 2006
1773     * Moose
1774       - keywords are now exported with Sub::Exporter
1775         thanks to chansen for this commit
1776       - has keyword now takes a 'metaclass' option
1777         to support custom attribute meta-classes
1778         on a per-attribute basis
1779         - added tests for this
1780       - the 'has' keyword not accepts inherited slot
1781         specifications (has '+foo'). This is still an
1782         experimental feature and probably not finished
1783         see t/038_attribute_inherited_slot_specs.t for
1784         more details, or ask about it on #moose
1785         - added tests for this
1786
1787     * Moose::Role
1788       - keywords are now exported with Sub::Exporter
1789
1790     * Moose::Utils::TypeConstraints
1791       - reorganized the type constraint hierarchy, thanks
1792         to nothingmuch and chansen for his help and advice
1793         on this
1794         - added some tests for this
1795       - keywords are now exported with Sub::Exporter
1796         thanks to chansen for this commit
1797
1798     * Moose::Meta::Class
1799       - due to changes in Class::MOP, we had to change
1800         construct_instance (for the better)
1801
1802     * Moose::Meta::Attribute
1803       - due to changes in Class::MOP, we had to add the
1804         initialize_instance_slot method (it's a good thing)
1805
1806     * Moose::Meta::TypeConstraint
1807       - added type constraint unions
1808         - added tests for this
1809       - added the is_subtype_of predicate method
1810         - added tests for this
1811
1812 0.04 Sun. April 16th, 2006
1813     * Moose::Role
1814       - Roles can now consume other roles
1815         - added tests for this
1816       - Roles can specify required methods now with
1817         the requires() keyword
1818         - added tests for this
1819
1820     * Moose::Meta::Role
1821       - ripped out much of it's guts ,.. much cleaner now
1822       - added required methods and correct handling of
1823         them in apply() for both classes and roles
1824         - added tests for this
1825       - no longer adds a does() method to consuming classes
1826         it relys on the one in Moose::Object
1827       - added roles attribute and some methods to support
1828         roles consuming roles
1829
1830     * Moose::Meta::Attribute
1831       - added support for triggers on attributes
1832         - added tests for this
1833       - added support for does option on an attribute
1834         - added tests for this
1835
1836     * Moose::Meta::Class
1837       - added support for attribute triggers in the
1838         object construction
1839         - added tests for this
1840
1841     * Moose
1842       - Moose no longer creates a subtype for your class
1843         if a subtype of the same name already exists, this
1844         should DWIM in 99.9999% of all cases
1845
1846     * Moose::Util::TypeConstraints
1847       - fixed bug where incorrect subtype conflicts were
1848         being reported
1849         - added test for this
1850
1851     * Moose::Object
1852       - this class can now be extended with 'use base' if
1853         you need it, it properly loads the metaclass class now
1854         - added test for this
1855
1856 0.03_02 Wed. April 12, 2006
1857     * Moose
1858       - you must now explictly use Moose::Util::TypeConstraints
1859         it no longer gets exported for you automatically
1860
1861     * Moose::Object
1862       - new() now accepts hash-refs as well as key/value lists
1863       - added does() method to check for Roles
1864         - added tests for this
1865
1866     * Moose::Meta::Class
1867       - added roles attribute along with the add_role() and
1868         does_role() methods
1869         - added tests for this
1870
1871     * Moose::Meta::Role
1872       - now adds a does() method to consuming classes
1873         which tests the class's hierarchy for roles
1874         - added tests for this
1875
1876 0.03_01 Mon. April 10, 2006
1877     * Moose::Cookbook
1878       - added new Role recipe (no content yet, only code)
1879
1880     * Moose
1881       - added 'with' keyword for Role support
1882         - added test and docs for this
1883       - fixed subtype quoting bug
1884         - added test for this
1885
1886     * Moose::Role
1887       - Roles for Moose
1888         - added test and docs
1889
1890     * Moose::Util::TypeConstraints
1891       - added the message keyword to add custom
1892         error messages to type constraints
1893
1894     * Moose::Meta::Role
1895       - the meta role to support Moose::Role
1896         - added tests and docs
1897
1898     * Moose::Meta::Class
1899       - moved a number of things from Moose.pm
1900         to here, they should have been here
1901         in the first place
1902
1903     * Moose::Meta::Attribute
1904       - moved the attribute option macros here
1905         instead of putting them in Moose.pm
1906
1907     * Moose::Meta::TypeConstraint
1908       - added the message attributes and the
1909         validate method
1910         - added tests and docs for this
1911
1912 0.03 Thurs. March 30, 2006
1913     * Moose::Cookbook
1914       - added the Moose::Cookbook with 5 recipes,
1915         describing all the stuff Moose can do.
1916
1917     * Moose
1918       - fixed an issue with &extends super class loading
1919         it now captures errors and deals with inline
1920         packages correctly (bug found by mst, solution
1921         stolen from alias)
1922       - added super/override & inner/augment features
1923         - added tests and docs for these
1924
1925     * Moose::Object
1926       - BUILDALL now takes a reference of the %params
1927         that are passed to &new, and passes that to
1928         each BUILD as well.
1929
1930     * Moose::Util::TypeConstraints
1931       - Type constraints now survive runtime reloading
1932         - added test for this
1933
1934         * Moose::Meta::Class
1935           - fixed the way attribute defaults are handled
1936             during instance construction (bug found by chansen)
1937
1938     * Moose::Meta::Attribute
1939       - read-only attributes now actually enforce their
1940         read-only-ness (this corrected in Class::MOP as
1941         well)
1942
1943 0.02 Tues. March 21, 2006
1944     * Moose
1945       - many more tests, fixing some bugs and
1946         edge cases
1947       - &extends now loads the base module with
1948         UNIVERSAL::require
1949         - added UNIVERSAL::require to the
1950           dependencies list
1951       ** API CHANGES **
1952       - each new Moose class will also create
1953         and register a subtype of Object which
1954         correspond to the new Moose class.
1955       - the 'isa' option in &has now only
1956         accepts strings, and will DWIM in
1957         almost all cases
1958
1959     * Moose::Util::TypeConstraints
1960       - added type coercion features
1961         - added tests for this
1962         - added support for this in attributes
1963           and instance construction
1964       ** API CHANGES **
1965       - type construction no longer creates a
1966         function, it registers the type instead.
1967         - added several functions to get the
1968           registered types
1969
1970     * Moose::Object
1971       - BUILDALL and DEMOLISHALL were broken
1972         because of a mis-named hash key, Whoops :)
1973
1974     * Moose::Meta::Attribute
1975       - adding support for coercion in the
1976         autogenerated accessors
1977
1978     * Moose::Meta::Class
1979       - adding support for coercion in the
1980         instance construction
1981
1982     * Moose::Meta::TypeConstraint
1983     * Moose::Meta::TypeCoercion
1984           - type constraints and coercions are now
1985             full fledges meta-objects
1986
1987 0.01 Wed. March 15, 2006
1988     - Moooooooooooooooooose!!!