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