first go at some test cases and basic implementation
[gitmo/Moose.git] / Changes
CommitLineData
e522431d 1Revision history for Perl extension Moose
9b85b10e 2
fb4fcfee 30.57 Wed September 3, 2008
30d184de 4 * Moose::Intro
5 - A new bit of doc intended to introduce folks familiar with
6 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
7
8 * Moose::Unsweetened
9 - Shows examples of two classes, each done first with and then
10 without Moose. This makes a nice parallel to
11 Moose::Intro. (Dave Rolsky)
12
9b85b10e 13 * Moose::Util::TypeConstraints
14 - Fixed a bug in find_or_parse_type_constraint so that it
15 accepts a Moose::Meta::TypeConstraint object as the parent
16 type, not just a name (jnapiorkowski)
17 - added tests (jnapiorkowski)
18
9699f27d 19 * Moose::Exporter
20 - If Sub::Name was not present, unimporting failed to actually
21 remove some sugar subs, causing test failures (Dave Rolsky)
22
3d24a30e 230.56 Mon September 1, 2008
24 For those not following the series of dev releases, there are
25 several major changes in this release of Moose.
26 ! Moose::init_meta should now be called as a method. See the
27 docs for details.
28
29 - Major performance improvements by nothingmuch.
30
31 - New modules for extension writers, Moose::Exporter and
32 Moose::Util::MetaRole by Dave Rolsky.
33
34 - Lots of doc improvements and additions, especially in the
35 cookbook sections.
36
37 - Various bug fixes.
38
39 * Removed all references to the experimental-but-no-longer-needed
40 Moose::Meta::Role::Application::ToMetaclassInstance.
41
42 * Require Class::MOP 0.65.
43
6ae2afc2 440.55_04 Sat August 30, 2008
3f567f44 45 * Moose::Util::MetaRole
6ae2afc2 46 * Moose::Cookbook::Extending::Recipe2
3f567f44 47 - This simplifies the application of roles to any meta class, as
48 well as the base object class. Reimplemented metaclass traits
49 using this module. (Dave Rolsky)
50
6ae2afc2 51 * Moose::Cookbook::Extending::Recipe1
52 - This a new recipe, an overview of various ways to write Moose
53 extensions (Dave Rolsky)
54
55 * Moose::Cookbook::Extending::Recipe3
56 * Moose::Cookbook::Extending::Recipe4
57 - These used to be Extending::Recipe1 and Extending::Recipe2,
58 respectively.
59
975411b2 600.55_03 Fri August 29, 2008
61 * No changes from 0.55_02 except increasing the Class::MOP
62 dependency to 0.64_07.
63
23045c64 640.55_02 Fri August 29, 2008
c068e9a0 65 * Makefile.PL and Moose.pm
66 - explicitly require Perl 5.8.0+ (Dave Rolsky)
67
9758af8a 68 * Moose::Util::TypeConstraints
69 - Fix warnings from find_type_constraint if the type is not
70 found (t0m).
71
72 * Moose::Meta::TypeConstraint
23045c64 73 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
9758af8a 74 return false if the type you specify cannot be found in the
23045c64 75 type registry, rather than throwing an unhelpful and
76 coincidental exception. (t0m).
9758af8a 77 - added docs & test for this (t0m)
78
79 * Moose::Meta::TypeConstraint::Registry
80 - add_type_constraint now throws an exception if a parameter is
81 not supplied (t0m).
82 - added docs & test for this (t0m)
23045c64 83
84 * Moose::Cookbook::FAQ
85 - Added a faq entry on the difference between "role" and "trait"
86 (t0m)
87
88 * Moose::Meta::Role
89 - Fixed a bug that caused role composition to not see a required
90 method when that method was provided by another role being
91 composed at the same time. (Dave Rolsky)
92 - test and bug finding (tokuhirom)
9758af8a 93
0d87d86c 940.55_01 Wed August 20, 2008
b3a7e860 95
96 !! Calling Moose::init_meta as a function is now !!
97 !! deprecated. Please see the Moose.pm docs for details. !!
98
c7a43a7a 99 * Moose::Meta::Method::Constructor
100 - Fix inlined constructor so that values produced by default
b3a7e860 101 or builder methods are coerced as required. (t0m)
102 - added test for this (t0m)
c7a43a7a 103
f92cd300 104 * Moose::Meta::Attribute
b3a7e860 105 - A lazy attribute with a default or builder did not attempt to
106 coerce the default value. The immutable code _did_
107 coerce. (t0m)
108 - added test for this (t0m)
f92cd300 109
5e6c2b88 110 * Moose::Exporter
111 - This is a new helper module for writing "Moose-alike"
112 modules. This should make the lives of MooseX module authors
113 much easier. (Dave Rolsky)
114
ce265cc3 115 * Moose
d190db8b 116 * Moose::Cookbook::Meta::Recipe5
117 - Implemented metaclass traits (and wrote a recipe for it):
d5c18ef0 118
119 use Moose -traits => 'Foo'
120
121 This should make writing small Moose extensions a little
122 easier (Dave Rolsky)
123
b3a7e860 124 * Moose::Cookbook::Basics::Recipe1
125 - Removed any examples of direct hashref access, and applied an
126 editorial axe to reduce verbosity. (Dave Rolsky)
127
128 * Moose::Cookbook::Basics::Recipe1
129 - Also applied an editorial axe here. (Dave Rolsky)
130
d5c18ef0 131 * Moose
3e1e774e 132 * Moose::Cookbook::Extending::Recipe1
ce265cc3 133 * Moose::Cookbook::Extending::Recipe2
3e1e774e 134 - Rewrote extending and embedding moose documentation and
135 recipes to use Moose::Exporter (Dave Rolsky)
136
7ff56534 137 * Moose
3e1e774e 138 * Moose::Role
139 - These two modules now warn when you load them from the main
140 package "main" package, because we will not export sugar to
141 main. Previously it just did nothing. (Dave Rolsky)
7ff56534 142
b3a7e860 143 * Moose::Role
144 - Now provide an init_meta method just like Moose.pm, and you
145 can call this to provide an alternate role metaclass. (Dave
146 Rolsky and nothingmuch)
4f136178 147 - get_method_map now respects the package cache flag (nothingmuch)
b3a7e860 148
149 * Moose::Meta::Role
150 - Two new methods - add_method and wrap_method_body
151 (nothingmuch)
152
153 * many modules
154 - Optimizations including allowing constructors to accept hash
155 refs, making many more classes immutable, and making
156 constructors immutable. (nothingmuch)
157
7e8c0685 1580.55 Sun August 3, 2008
330dbb07 159 * Moose::Meta::Attribute
7e8c0685 160 - breaking down the way 'handles' methods are
161 created so that the process can be more easily
330dbb07 162 overridden by subclasses (stevan)
163
d5598ade 164 * Moose::Meta::TypeConstraint
7e8c0685 165 - fixing what is passed into a ->message with
d5598ade 166 the type constraints (RT #37569)
167 - added tests for this (Charles Alderman)
168
470b518a 169 * Moose::Util::TypeConstraints
7e8c0685 170 - fix coerce to accept anon types like subtype can (mst)
470b518a 171
021b8139 172 * Moose::Cookbook
f254fa03 173 - reorganized the recipes into sections - Basics, Roles, Meta,
174 Extending - and wrote abstracts for each section (Dave Rolsky)
175
176 * Moose::Cookbook::Basics::Recipe10
177 - A new recipe that demonstrates operator overloading
178 in combination with Moose. (bluefeet)
021b8139 179
7c36d1d5 180 * Moose::Cookbook::Meta::Recipe1
181 - an introduction to what meta is and why you'd want to make
182 your own metaclass extensions (Dave Rolsky)
183
f254fa03 184 * Moose::Cookbook::Meta::Recipe4
185 - a very simple metaclass example (Dave Rolsky)
186
d5e84b86 187 * Moose::Cookbook::Extending::Recipe1
188 - how to write a Moose-alike module to use your own object base
189 class (Dave Rolsky)
190
f254fa03 191 * Moose::Cookbook::Extending::Recipe2
192 - how to write modules with an API just like C<Moose.pm> (Dave
193 Rolsky)
c2a0627f 194
7e8c0685 195 * all documentation
196 - Tons of fixes, both syntactical and grammatical (Dave
197 Rolsky, Paul Fenwick)
198
713b0244 1990.54 Thurs. July 3, 2008
200 ... this is not my day today ...
201
202 * Moose::Meta::Attribute
203 - fixed legal_options_for_inheritance such that
204 clone_and_inherit options still works for
205 Class::MOP::Attribute objects and therefore
206 does not break MooseX::AttributeHelpers
207 (stevan)
93cc8330 208
6d20aa6d 2090.53 Thurs. July 3, 2008
210 * Whoops, I guess I should run 'make manifest' before
211 actually releasing the module. No actual changes
212 in this release, except the fact that it includes
213 the changes that I didn't include in the last
214 release. (stevan--)
03e7dbec 215
68b6146c 2160.52 Thurs. July 3, 2008
47b19570 217 * Moose
218 - added "FEATURE REQUESTS" section to the Moose docs
977a86ba 219 to properly direct people (stevan) (RT #34333)
220 - making 'extends' croak if it is passed a Role since
221 this is not ever something you want to do
222 (fixed by stevan, found by obra)
223 - added tests for this (stevan)
19fabdd3 224
68b6146c 225 * Moose::Object
226 - adding support for DOES (as in UNIVERSAL::DOES)
227 (nothingmuch)
228 - added test for this
229
230 * Moose::Meta::Attribute
231 - added legal_options_for_inheritance (wreis)
232 - added tests for this (wreis)
233
234 * Moose::Cookbook::Snacks::*
235 - removed some of the unfinished snacks that should
236 not have been released yet. Added some more examples
237 to the 'Keywords' snack. (stevan)
238
47b19570 239 * Moose::Cookbook::Style
240 - added general Moose "style guide" of sorts to the
241 cookbook (nothingmuch) (RT #34335)
19fabdd3 242
977a86ba 243 * t/
244 - added more BUILDARGS tests (stevan)
245
07b0f1a5 2460.51 Thurs. Jun 26, 2008
d31f9614 247 * Moose::Role
0db4f1d7 248 - add unimport so "no Moose::Role" actually does
249 something (sartak)
250
db9476b1 251 * Moose::Meta::Role::Application::ToRole
252 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
253 order to provide its own implementation, that method still got
254 added to the list of required methods for consumers of
255 RoleB. Now an aliased method is only added to the list of
256 required methods if the role doing the aliasing does not
257 provide its own implementation. See Recipe 11 for an example
6164d955 258 of all this. (Dave Rolsky)
db9476b1 259 - added tests for this
0db4f1d7 260
93e98578 261 * Moose::Meta::Method::Constructor
262 - when a single argument that wasn't a hashref was provided to
263 an immutabilized constructor, the error message was very
264 unhelpful, as opposed to the non-immutable error. Reported by
6164d955 265 dew. (Dave Rolsky)
266 - added test for this (Dave Rolsky)
d31f9614 267
0db4f1d7 268 * Moose::Meta::Attribute
269 - added support for meta_attr->does("ShortAlias") (sartak)
270 - added tests for this (sartak)
17ee2ee0 271 - moved the bulk of the `handles` handling to the new
d3e7fe85 272 install_delegation method (Stevan)
0db4f1d7 273
274 * Moose::Object
210caeb6 275 - Added BUILDARGS, a new step in new()
276
0206f6d6 277 * Moose::Meta::Role::Application::RoleSummation
278 - fix typos no one ever sees (sartak)
0db4f1d7 279
17ee2ee0 280 * Moose::Util::TypeConstraints
281 * Moose::Meta::TypeConstraint
282 * Moose::Meta::TypeCoercion
283 - Attempt to work around the ??{ } vs. threads issue
47b19570 284 (not yet fixed)
17ee2ee0 285 - Some null_constraint optimizations
286
eaa35e6e 2870.50 Thurs. Jun 11, 2008
288 - Fixed a version number issue by bumping all modules
289 to 0.50.
290
4cf89c74 2910.49 Thurs. Jun 11, 2008
eaa35e6e 292 !! This version now approx. 20-25% !!
293 !! faster with new Class::MOP 0.59 !!
294
21f1e231 295 * Moose::Meta::Attribute
296 - fixed how the is => (ro|rw) works with
297 custom defined reader, writer and accessor
298 options.
299 - added docs for this (TODO).
300 - added tests for this (Thanks to Penfold)
301 - added the custom attribute alias for regular
302 Moose attributes which is "Moose"
09b8cb41 303 - fix builder and default both being used
304 (groditi)
21f1e231 305
306 * Moose
307 Moose::Meta::Class
308 Moose::Meta::Attribute
309 Moose::Meta::Role
310 Moose::Meta::Role::Composite
311 Moose::Util::TypeConstraints
f93f7be9 312 - switched usage of reftype to ref because
313 it is much faster
314
8371f6e1 315 * Moose::Meta::Role
316 - changing add_package_symbol to use the new
317 HASH ref form
318
f93f7be9 319 * Moose::Object
320 - fixed how DEMOLISHALL is called so that it
321 can be overrided in subclasses (thanks to Sartak)
322 - added test for this (thanks to Sartak)
21f1e231 323
e151db23 324 * Moose::Util::TypeConstraints
325 - move the ClassName type check code to
326 Class::MOP::is_class_loaded (thanks to Sartak)
327
09b8cb41 328 * Moose::Cookbook::Recipe11
329 - add tests for this (thanks to tokuhirom)
330
695d1c68 3310.48 Thurs. May 29, 2008
332 (early morning release engineering)--
333
334 - fixing the version in Moose::Meta::Method::Destructor
335 which was causing the indexer to choke
336
2391ba89 3370.47 Thurs. May 29, 2008
338 (late night release engineering)--
339
340 - fixing the version is META.yml, no functional
341 changes in this release
342
bd364604 3430.46 Wed. May 28, 2008
344 !! This version now approx. 20-25% !!
345 !! faster with new Class::MOP 0.57 !!
346
347 * Moose::Meta::Class
348 - some optimizations of the &initialize method
349 since it is called so often by &meta
350
0addec44 351 * Moose::Meta::Class
352 Moose::Meta::Role
353 - now use the get_all_package_symbols from the
354 updated Class::MOP, test suite is now 10 seconds
355 faster
d3308256 356
357 * Moose::Meta::Method::Destructor
bd364604 358 - is_needed can now also be called as a class
359 method for immutablization to check if the
360 destructor object even needs to be created
361 at all
362
363 * Moose::Meta::Method::Destructor
d3308256 364 Moose::Meta::Method::Constructor
365 - added more descriptive error message to help
366 keep people from wasting time tracking an error
367 that is easily fixed by upgrading.
0addec44 368
c998012c 3690.45 Saturday, May 24, 2008
1b2aea39 370 * Moose
fb4fcfee 371 - Because of work in Class::MOP 0.57, all
1b2aea39 372 XS based functionality is now optional
373 and a Pure Perl version is supplied
374 - the CLASS_MOP_NO_XS environment variable
375 can now be used to force non-XS versions
376 to always be used
377 - several of the packages have been tweaked
378 to take care of this, mostly we added
379 support for the package_name and name
380 variables in all the Method metaclasses
408f2665 381 - before/around/after method modifiers now
382 support regexp matching of names
383 (thanks to Takatoshi Kitano)
384 - tests added for this
088f372b 385 - NOTE: this only works for classes, it
386 is currently not supported in roles,
387 but, ... patches welcome
b8926b8c 388 - All usage of Carp::confess have been replaced
389 by Carp::croak in the "keyword" functions since
390 the stack trace is usually not helpful
391
392 * Moose::Role
393 - All usage of Carp::confess have been replaced
394 by Carp::croak in the "keyword" functions since
395 the stack trace is usually not helpful
396 - The 'has' keyword for roles now accepts the
397 same array ref form that Moose.pm does
398 (has [qw/foo bar/] => (is => 'rw', ...))
399 - added test for this
400
0b7df53c 401 * Moose::Meta::Attribute
402 - trigger on a ro-attribute is no longer an
403 error, as it's useful to trigger off of the
404 constructor
405
8453c358 406 * Moose::Meta::Class
407 - added same 'add_package_symbol' fix as in
fb4fcfee 408 Class::MOP 0.57
8453c358 409
410 * Moose::Util
411 - does_role now handles non-Moose classes
412 more gracefully
413 - added tests for this
408f2665 414 - added the 'add_method_modifier' function
415 (thanks to Takatoshi Kitano)
8453c358 416
a84a89ba 417 * Moose::Util::TypeConstraints
418 - subtypes of parameterizable types now are
419 themselves parameterizable types
420
1b55c340 421 * Moose::Meta::Method::Constructor
422 - fixed bug where trigger was not being
423 called by the inlined immutable
424 constructors
425 - added test for this (thanks to Caelum)
426
427 * Moose::Meta::Role::Application::ToInstance
428 - now uses the metaclass of the instance
429 (if possible) to create the anon-class
430 (thanks Jonathan Rockway)
431
b8926b8c 432 * Moose::Cookbook::Recipe22
433 - added the meta-attribute trait recipe
434 (thanks to Sartak)
435
1b55c340 436 * t/
437 - fixed hash-ordering test bug that was
b8926b8c 438 causing occasional cpantester failures
439 - renamed the t/000_recipe/*.t tests to be
440 more descriptive (thanks to Sartak)
1b55c340 441
3a0c064a 4420.44 Sat. May 10, 2008
c0b37457 443 * Moose
3a0c064a 444 - made make_immutable warning cluck to
ca0e380d 445 show where the error is (thanks mst)
3a0c064a 446
447 * Moose::Object
448 - BUILDALL and DEMOLISHALL now call
449 ->body when looping through the
450 methods, to avoid the overloaded
451 method call.
ca0e380d 452 - fixed issue where DEMOLISHALL was
453 eating the $@ values, and so not
454 working correctly, it still kind of
455 eats them, but so does vanilla perl
456 - added tests for this
3a0c064a 457
ceb8945d 458 * Moose::Cookbook::Recipe7
3a0c064a 459 - added new recipe for immutable
460 functionality (thanks Dave Rolsky)
461
ceb8945d 462 * Moose::Cookbook::Recipe9
3a0c064a 463 - added new recipe for builder and
464 lazy_build (thanks Dave Rolsky)
465
37332f31 466 * Moose::Cookbook::Recipe11
3a0c064a 467 - added new recipe for method aliasing
468 and exclusion with Roles (thanks Dave Rolsky)
469
470 * t/
ca0e380d 471 - fixed Win32 test failure (thanks spicyjack)
ceb8945d 472
1a28289d 473 ~ removed Build.PL and Module::Build compat
474 since Module::Install has done that.
475
27cabcda 4760.43 Wed. April, 30, 2008
cbd141ca 477 * NOTE TO SELF:
478 drink more coffee before
479 doing release engineering
480
481 - whoops, forgot to do the smolder tests,
482 and we broke some of the custom meta-attr
483 modules. This fixes that.
484
c93e8e7d 4850.42 Mon. April 28, 2008
486 - some bad tests slipped by, nothing else
487 changed in this release (cpantesters++)
488
489 - upped the Class::MOP dependency to 0.55
490 since we have tests which need the C3
491 support
492
a5e883ae 4930.41 Mon. April 28, 2008
004222dc 494 ~~ numerous documentation updates ~~
547dda77 495
496 - Changed all usage of die to Carp::croak for better
497 error reporting (initial patch by Tod Hagan)
004222dc 498
c2922d69 499 ** IMPORTANT NOTE **
500 - the make_immutable keyword is now deprecated, don't
501 use it in any new code and please fix your old code
502 as well. There will be 2 releases, and then it will
503 be removed.
504
6c36eeaa 505 * Moose
506 Moose::Role
507 Moose::Meta::Class
508 - refactored the way inner and super work to avoid
509 any method/@ISA cache penalty (nothingmuch)
510
4078709c 511 * Moose::Meta::Class
512 - fixing &new_object to make sure trigger gets the
513 coerced value (spotted by Charles Alderman on the
514 mailing list)
515 - added test for this
516
51c107ef 517 * Moose::Meta::Method::Constructor
518 - immutable classes which had non-lazy attributes were calling
519 the default generating sub twice in the constructor. (bug
520 found by Jesse Luehrs, fixed by Dave Rolsky)
521 - added tests for this (Dave Rolsky)
ae8d63f2 522 - fix typo in initialize_body method (nothingmuch)
523
524 * Moose::Meta::Method::Destructor
525 - fix typo in initialize_body method (nothingmuch)
51c107ef 526
6c36eeaa 527 * Moose::Meta::Method::Overriden
528 Moose::Meta::Method::Augmented
529 - moved the logic for these into their own
530 classes (nothingmuch)
531
5e98d2b6 532 * Moose::Meta::Attribute
aed87761 533 - inherited attributes may now be extended without
2ea379cb 534 restriction on the type ('isa', 'does') (Sartak)
cf12a691 535 - added tests for this (Sartak)
547dda77 536 - when an attribute property is malformed (such as lazy without
537 a default), give the name of the attribute in the error
538 message (Sartak)
88f23977 539 - added the &applied_traits and &has_applied_traits methods
540 to allow introspection of traits
541 - added tests for this
37905a64 542 - moved 'trait' and 'metaclass' argument handling to here from
543 Moose::Meta::Class
544 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
545 '+foo' syntax) (nothingmuch)
546 - added tests for this (t0m)
7c60f730 547
548 * Moose::Object
549 - localize $@ inside DEMOLISHALL to avoid it
550 eating $@ (found by Ernesto)
551 - added test for this (thanks to Ernesto)
cf12a691 552
ae8d63f2 553 * Moose::Util::TypeConstraints
554 - &find_type_constraint now DWIMs when given an
6c36eeaa 555 type constraint object or name (nothingmuch)
37905a64 556 - &find_or_create_type_constraint superseded with a number of more
557 specific functions:
558 - find_or_create_{isa,does}_type_constraint
559 - find_or_parse_type_constraint
ae8d63f2 560
561 * Moose::Meta::TypeConstraint
4078709c 562 Moose::Meta::TypeConstraint::Class
37905a64 563 Moose::Meta::TypeConstraint::Role
4078709c 564 Moose::Meta::TypeConstraint::Enum
565 Moose::Meta::TypeConstraint::Union
566 Moose::Meta::TypeConstraint::Parameterized
567 - added the &equals method for comparing two type
568 constraints (nothingmuch)
569 - added tests for this (nothingmuch)
570
571 * Moose::Meta::TypeConstraint
ae8d63f2 572 - add the &parents method, which is just an alias to &parent.
37905a64 573 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
ae8d63f2 574
575 * Moose::Meta::TypeConstraint::Class
ae8d63f2 576 - added the class attribute for introspection purposes
577 (nothingmuch)
578 - added tests for this
4078709c 579
580 * Moose::Meta::TypeConstraint::Enum
6c36eeaa 581 Moose::Meta::TypeConstraint::Role
37905a64 582 - broke these out into their own classes (nothingmuch)
ae8d63f2 583
584 * Moose::Cookbook::Recipe*
585 - fixed references to test file locations in the POD
586 and updated up some text for new Moose features
37905a64 587 (Sartak)
588
589 * Moose::Util
590 - Added &resolve_metaclass_alias, a helper function for finding an actual
591 class for a short name (e.g. in the traits list)
ae8d63f2 592
52338af5 5930.40 Fri. March 14, 2008
6e2840b7 594 - I hate Pod::Coverage
595
e0328ed4 5960.39 Fri. March 14, 2008
8d62bf6d 597 * Moose
598 - documenting the use of '+name' with attributes
599 that come from recently composed roles. It makes
600 sense, people are using it, and so why not just
601 officially support it.
9c10b5ad 602 - fixing the 'extends' keyword so that it will not
603 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
94075501 604
1321f087 605 * oose
606 - added the perl -Moose=+Class::Name feature to allow
607 monkeypatching of classes in one liners
608
9c10b5ad 609 * Moose::Util
610 - fixing the 'apply_all_roles' keyword so that it will not
611 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
8d62bf6d 612
48045612 613 * Moose::Meta::Class
614 - added ->create method which now supports roles (thanks to jrockway)
615 - added tests for this
6d5cbd2b 616 - added ->create_anon_class which now supports roles and caching of
617 the results (thanks to jrockway)
618 - added tests for this
81c3738f 619 - made ->does_role a little more forgiving when it is
620 checking a Class::MOP era metaclasses.
48045612 621
94075501 622 * Moose::Meta::Role::Application::ToInstance
623 - it is now possible to pass extra params to be used when
624 a role is applied to an the instance (rebless_params)
625 - added tests for this
626
9f4334a1 627 * Moose::Util::TypeConstraints
4ab662d6 628 - class_type now accepts an optional second argument for a
629 custom message. POD anotated accordingly (groditi)
630 - added tests for this
9f4334a1 631 - it is now possible to make anon-enums by passing 'enum' an
632 ARRAY ref instead of the $name => @values. Everything else
633 works as before.
634 - added tests for this
635
8d62bf6d 636 * t/
637 - making test for using '+name' on attributes consumed
638 from a role, it works and makes sense too.
639
80d955e4 640 * Moose::Meta::Attribute
641 - fix handles so that it doesn't return nothing
642 when the method cannot be found, not sure why
f4f3e701 643 it ever did this originally, this means we now
644 have slightly better support for AUTOLOADed
645 objects
646 - added more delegation tests
587e457d 647 - adding ->does method to this so as to better
648 support traits and their introspection.
649 - added tests for this
1a386a6c 650
651 * Moose::Object
652 - localizing the Data::Dumper configurations so
653 that it does not pollute others (RT #33509)
9b1aa0c3 654 - made ->does a little more forgiving when it is
655 passed Class::MOP era metaclasses.
80d955e4 656
6570.38 Fri. Feb. 15, 2008
c3b81505 658 * Moose::Meta::Attribute
659 - fixed initializer to correctly do
660 type checking and coercion in the
661 callback
662 - added tests for this
663
1a740d8a 664 * t/
665 - fixed some finicky tests (thanks to konobi)
666
80d955e4 6670.37 Thurs. Feb. 14, 2008
688fcdda 668 * Moose
669 - fixed some details in Moose::init_meta
670 and its superclass handling (thanks thepler)
671 - added tests for this (thanks thepler)
a28fe77b 672 - 'has' now dies if you don't pass in name
673 value pairs
2a5e59d0 674 - added the 'make_immutable' keyword as a shortcut
9df136d0 675 to make_immutable
688fcdda 676
677 * Moose::Meta::Class
678 Moose::Meta::Method::Constructor
679 Moose::Meta::Attribute
649b9340 680 - making (init_arg => undef) work here too
681 (thanks to nothingmuch)
be771c43 682
683 * Moose::Meta::Attribute
684 Moose::Meta::Method::Constructor
685 Moose::Meta::Method::Accessor
5fec9b97 686 - make lazy attributes respect attr initializers (rjbs)
be771c43 687 - added tests for this
688fcdda 688
689 * Moose::Util::TypeConstraints
690 Moose::Util::TypeConstraints::OptimizedConstraints
c14746bc 691 Moose::Meta::TypeConstraints
688fcdda 692 Moose::Meta::Attribute
693 Moose::Meta::Method::Constructor
694 Moose::Meta::Method::Accessor
649b9340 695 - making type errors use the
696 assigned message (thanks to Sartak)
697 - added tests for this
698
699 * Moose::Meta::Method::Destructor
700 - making sure DESTROY gets inlined properly
701 with successive DEMOLISH calls (thanks to manito)
688fcdda 702
ab76842e 703 * Moose::Meta::Attribute
704 Moose::Meta::Method::Accessor
705 - fixed handling of undef with type constraints
706 (thanks to Ernesto)
707 - added tests for this
c14746bc 708
709 * Moose::Util
710 - added &get_all_init_args and &get_all_attribute_values
711 (thanks to Sartak and nothingmuch)
ab76842e 712
e472c9a5 7130.36 Sat. Jan. 26, 2008
238b424d 714 * Moose::Role
715 Moose::Meta::Attribute
716 - role type tests now support when roles are
717 applied to non-Moose classes (found by ash)
718 - added tests for this (thanks to ash)
e472c9a5 719 - couple extra tests to boost code coverage
238b424d 720
721 * Moose::Meta::Method::Constructor
722 - improved fix for handling Class::MOP attributes
723 - added test for this
724
725 * Moose::Meta::Class
726 - handled the add_attribute($attribute_meta_object)
727 case correctly
728 - added test for this
729
3285fae9 7300.35 Tues. Jan. 22, 2008
45fd4af3 731 * Moose::Meta::Method::Constructor
732 - fix to make sure even Class::MOP attributes
472b7401 733 are handled correctly (Thanks to Dave Rolsky)
c3b35392 734 - added test for this (also Dave Rolsky)
4498537c 735
736 * Moose::Meta::Class
737 - improved error message on _apply_all_roles,
738 you should now use Moose::Util::apply_all_roles
739 and you shouldnt have been using a _ prefixed
740 method in the first place ;)
45fd4af3 741
fe05ce9c 7420.34 Mon. Jan. 21, 2008
778db3ac 743 ~~~ more misc. doc. fixes ~~~
744 ~~ updated copyright dates ~~
9b28d20b 745
746 Moose is now a postmodern object system :)
8bdc7f13 747 - (see the POD for details)
ccf49e80 748
749 * <<Role System Refactoring>>
750 - this release contains a major reworking and
751 cleanup of the role system
9b28d20b 752 - 100% backwards compat.
753 - Role application now restructured into seperate
754 classes based on type of applicants
755 - Role summation (combining of more than one role)
ccf49e80 756 is much cleaner and anon-classes are no longer
9b28d20b 757 used in this process
ccf49e80 758 - new Composite role metaclass
9b28d20b 759 - runtime application of roles to instances
760 is now more efficient and re-uses generated
761 classes when applicable
ccf49e80 762
9b28d20b 763 * <<New Role composition features>>
ccf49e80 764 - methods can now be excluded from a given role
9b28d20b 765 during composition
ccf49e80 766 - methods can now be aliased to another name (and
767 still retain the original as well)
4734114b 768
769 * Moose::Util::TypeConstraints::OptimizedConstraints
770 - added this module (see above)
771
d7d8a8c7 772 * Moose::Meta::Class
773 - fixed the &_process_attribute method to be called
4734114b 774 by &add_attribute, so that the API is now correct
775
e7c06c1e 776 * Moose::Meta::Method::Accessor
4734114b 777 - fixed bug when passing a list of values to
e7c06c1e 778 an accessor would get (incorrectly) ignored.
779 Thanks to Sartak for finding this ;)
780 - added tests for this (Sartak again)
32dd4a95 781
a4e516f6 782 * Moose::Meta::Method::Accessor
783 Moose::Meta::Method::Constructor
28412c0b 784 Moose::Meta::Attribute
ccf49e80 785 Moose::Meta::TypeConstraint
786 Moose::Meta::TypeCoercion
787 - lots of cleanup of such things as:
28412c0b 788 - generated methods
789 - type constraint handling
ccf49e80 790 - error handling/messages
791 (thanks to nothingmuch)
a4e516f6 792
4734114b 793 * Moose::Meta::TypeConstraint::Parameterizable
794 - added this module to support the refactor
795 in Moose::Meta::TypeConstraint::Parameterized
796
797 * Moose::Meta::TypeConstraint::Parameterized
798 - refactored how these types are handled so they
799 are more generic and not confined to ArrayRef
800 and HashRef only
a4e516f6 801
2de7e794 802 * t/
803 - shortened some file names for better VMS support (RT #32381)
804
25374f01 8050.33 Fri. Dec. 14, 2007
32dd4a95 806 !! Moose now loads 2 x faster !!
807 !! with new Class::MOP 0.49 !!
25374f01 808
f7865ec8 809 ++ new oose.pm module to make command line
25374f01 810 Moose-ness easier (see POD docs for more)
4734114b 811
25374f01 812 * Moose::Meta::Class
813 * Moose::Meta::Role
4734114b 814 - several tweaks to take advantage of the
25374f01 815 new method map caching in Class::MOP
816
39aba5c9 817 * Moose::Meta::TypeConstraint::Parameterized
818 - allow subtypes of ArrayRef and HashRef to
acb8a5db 819 be used as a container (sartak)
4734114b 820 - added tests for this
acb8a5db 821 - basic support for coercion to ArrayRef and
822 HashRef for containers (sartak)
4734114b 823 - added tests for this
824
25374f01 825 * Moose::Meta::TypeCoercion
826 - coercions will now create subtypes as needed
827 so you can now add coercions to parameterized
828 types without having to explictly define them
829 - added tests for this
830
ac211120 831 * Moose::Meta::Method::Accessor
832 - allow subclasses to decide whether we need
833 to copy the value into a new variable (sartak)
39aba5c9 834
dc26a424 8350.32 Tues. Dec. 4, 2007
8de73ff1 836 * Moose::Util::TypeConstraints
837 - fixing how subtype aliases of unions work
838 they should inherit the parent's coercion
839 - added tests for this
4734114b 840 - you can now define multiple coercions on
41e007e4 841 a single type at different times instead of
842 having to do it all in one place
843 - added tests for this
4734114b 844
8de73ff1 845 * Moose::Meta::TypeConstraint
846 - there is now a default constraint of sub { 1 }
847 instead of Moose::Util::TypeConstraints setting
848 this for us
849
4734114b 850 * Moose::Meta::TypeCoercion
851 * Moose::Meta::TypeCoercion::Union
852 - added the &has_coercion_for_type and
853 &add_type_coercions methods to support the
41e007e4 854 new features above (although you cannot add
855 more type coercions for Union types)
856
ffcb48b4 8570.31 Mon. Nov. 26, 2007
f3c4e20e 858 * Moose::Meta::Attribute
4734114b 859 - made the +attr syntax handle extending types with
f3c4e20e 860 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
861 now works if the original foo is an ArrayRef.
862 - added tests for this.
863 - delegation now works even if the attribute does not
864 have a reader method using the get_read_method_ref
4734114b 865 method from Class::MOP::Attribute.
f3c4e20e 866 - added tests for this
867 - added docs for this
4734114b 868
f3c4e20e 869 * Moose::Util::TypeConstraints
4734114b 870 - passing no "additional attribute info" to
871 &find_or_create_type_constraint will no longer
872 attempt to create an __ANON__ type for you,
f3c4e20e 873 instead it will just return undef.
874 - added docs for this
875
1edfdf1c 8760.30 Fri. Nov. 23, 2007
ca168e89 877 * Moose::Meta::Method::Constructor
878 -builder related bug in inlined constructor. (groditi)
879
3822d5ee 880 * Moose::Meta::Method::Accessor
881 - genereate unnecessary calls to predicates and refactor
882 code generation for runtime speed (groditi)
883
5d776bdf 884 * Moose::Util::TypeConstraints
0e0709ea 885 - fix ClassName constraint to introspect symbol table (mst)
a0f8153d 886 - added more tests for this (mst)
887 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
888 with work correctly.
889 - added tests for this
5d776bdf 890
1edfdf1c 891 * Moose::Cookbook
892 - adding the link to Recipie 11 (written by Sartak)
893 - adding test for SYNOPSIS code
894
4734114b 895 * t/
ca168e89 896 - New tests for builder bug. Upon instantiation, if an
897 attribute had a builder, no value and was not lazy the
898 builder default was not getting run, oops. (groditi)
899
b97b9655 9000.29 Tues. Nov. 13, 2007
0b26305c 901 * Moose::Meta::Attribute
5d776bdf 902 - Fix error message on missing builder method (groditi)
0b26305c 903
904 * Moose::Meta::Method::Accessor
5d776bdf 905 - Fix error message on missing builder method (groditi)
0b26305c 906
4734114b 907 * t/
5d776bdf 908 - Add test to check for the correct error message when
909 builder method is missing (groditi)
0b26305c 910
98c4c382 9110.28 Tues. Nov. 13, 2007
4734114b 912 - 0.27 packaged incorrectly (groditi)
98c4c382 913
e134cd19 9140.27 Tues. Nov. 13, 2007
26fbace8 915 * Moose::Meta::Attribute
916 - Added support for the new builder option (groditi)
6af1a927 917 - Added support for lazy_build option (groditi)
1ed0b94f 918 - Changed slot initialization for predicate changes (groditi)
26fbace8 919
920 * Moose::Meta::Method::Accessor
6af1a927 921 - Added support for lazy_build option (groditi)
4734114b 922 - Fix inline methods to work with corrected predicate
28669f89 923 behavior (groditi)
26fbace8 924
7a5b07b3 925 * Moose::Meta::Method::Constructor
926 - Added support for lazy_build option (groditi)
927
26fbace8 928 * t/
28669f89 929 - tests for builder and lazy_build (groditi)
26fbace8 930
4734114b 931 * fixing some misc. bits in the docs that
28669f89 932 got mentioned on CPAN Forum & perlmonks
4734114b 933
e7f8d0c2 934 * Moose::Meta::Role
4734114b 935 - fixed how required methods are handled
e7f8d0c2 936 when they encounter overriden or modified
937 methods from a class (thanks to confound).
938 - added tests for this
5af6a16d 939
3796382a 940 * Moose::Util::TypeConstraint
4734114b 941 - fixed the type notation parser so that
942 the | always creates a union and so is
943 no longer a valid type char (thanks to
944 konobi, mugwump and #moose for working
3796382a 945 this one out.)
946 - added more tests for this
947
77a18c28 9480.26 Thurs. Sept. 27, 2007
949 == New Features ==
4734114b 950
77a18c28 951 * Parameterized Types
4734114b 952 We now support parameterized collection types, such as:
77a18c28 953 ArrayRef[Int] # array or integers
954 HashRef[Object] # a hash with object values
955 They can also be nested:
956 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
957 And work with the type unions as well:
958 ArrayRef[Int | Str] # array of integers of strings
4734114b 959
77a18c28 960 * Better Framework Extendability
4734114b 961 Moose.pm is now "extendable" such that it is now much
962 easier to extend the framework and add your own keywords
77a18c28 963 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
964 section of the Moose.pm docs.
4734114b 965
77a18c28 966 * Moose Snacks!
4734114b 967 In an effort to begin documenting some of the various
968 details of Moose as well as some common idioms, we have
969 created Moose::Cookbook::Snacks as a place to find
77a18c28 970 small (easily digestable) nuggets of Moose code.
4734114b 971
77a18c28 972 ====
fb697a87 973 ~ Several doc updates/cleanup thanks to castaway ~
4734114b 974
975 - converted build system to use Module::Install instead of
e46f5cc2 976 Module::Build (thanks to jrockway)
fb697a87 977
d67145ed 978 * Moose
4734114b 979 - added all the meta classes to the immutable list and
d67145ed 980 set it to inline the accessors
4734114b 981 - fix import to allow Sub::Exporter like { into => }
e59a5c29 982 and { into_level => } (perigrin)
4734114b 983 - exposed and documented init_meta() to allow better
e59a5c29 984 embedding and extending of Moose (perigrin)
4734114b 985
e59a5c29 986 * t/
987 - complete re-organization of the test suite
4734114b 988 - added some new tests as well
77a18c28 989 - finally re-enabled the Moose::POOP test since
990 the new version of DBM::Deep now works again
991 (thanks rob)
b468a3d3 992
993 * Moose::Meta::Class
4734114b 994 - fixed very odd and very nasty recursion bug with
b468a3d3 995 inner/augment (mst)
996 - added tests for this (eilara)
d67145ed 997
3726f905 998 * Moose::Meta::Attribute
999 Moose::Meta::Method::Constructor
1000 Moose::Meta::Method::Accessor
4734114b 1001 - fixed issue with overload::Overloaded getting called
f1917f58 1002 on non-blessed items. (RT #29269)
3726f905 1003 - added tests for this
4734114b 1004
3ccdc84a 1005 * Moose::Meta::Method::Accessor
4734114b 1006 - fixed issue with generated accessor code making
3ccdc84a 1007 assumptions about hash based classes (thanks to dexter)
4734114b 1008
3726f905 1009 * Moose::Coookbook::Snacks
4734114b 1010 - these are bits of documentation, not quite as big as
1011 Recipes but which have no clear place in the module docs.
3726f905 1012 So they are Snacks! (horray for castaway++)
1013
07cde929 1014 * Moose::Cookbook::Recipe4
1015 - updated it to use the new ArrayRef[MyType] construct
1016 - updated the accompanying test as well
1017
3726f905 1018 +++ Major Refactor of the Type Constraint system +++
1019 +++ with new features added as well +++
1020
22aed3c0 1021 * Moose::Util::TypeConstraint
4734114b 1022 - no longer uses package variable to keep track of
22aed3c0 1023 the type constraints, now uses the an instance of
1024 Moose::Meta::TypeConstraint::Registry to do it
f1917f58 1025 - added more sophisticated type notation parsing
1026 (thanks to mugwump)
1027 - added tests for this
22aed3c0 1028
d67145ed 1029 * Moose::Meta::TypeConstraint
1030 - some minor adjustments to make subclassing easier
4734114b 1031 - added the package_defined_in attribute so that we
22aed3c0 1032 can track where the type constraints are created
4734114b 1033
d67145ed 1034 * Moose::Meta::TypeConstraint::Union
4734114b 1035 - this is now been refactored to be a subclass of
3726f905 1036 Moose::Meta::TypeConstraint
4734114b 1037
3726f905 1038 * Moose::Meta::TypeCoercion::Union
1039 - this has been added to service the newly refactored
4734114b 1040 Moose::Meta::TypeConstraint::Union and is itself
3726f905 1041 a subclass of Moose::Meta::TypeCoercion
4734114b 1042
0fbd4b0a 1043 * Moose::Meta::TypeConstraint::Parameterized
d67145ed 1044 - added this module (taken from MooseX::AttributeHelpers)
1045 to help construct nested collection types
1046 - added tests for this
4734114b 1047
22aed3c0 1048 * Moose::Meta::TypeConstraint::Registry
1049 - added this class to keep track of type constraints
d67145ed 1050
887169d7 10510.25 Mon. Aug. 13, 2007
8eca434b 1052 * Moose
4734114b 1053 - Documentation update to reference Moose::Util::TypeConstraints
1054 under 'isa' in 'has' for how to define a new type
8eca434b 1055 (thanks to shlomif).
1056
ab859145 1057 * Moose::Meta::Attribute
4734114b 1058 - required attributes now will no longer accept undef
ab859145 1059 from the constructor, even if there is a default and lazy
1060 - added tests for this
4734114b 1061 - default subroutines must return a value which passes the
7a5ebc40 1062 type constraint
1063 - added tests for this
4734114b 1064
a909a4df 1065 * Moose::Meta::Attribute
1066 * Moose::Meta::Method::Constructor
4734114b 1067 * Moose::Meta::Method::Accessor
a909a4df 1068 - type-constraint tests now handle overloaded objects correctly
1069 in the error message
4734114b 1070 - added tests for this (thanks to EvanCarroll)
ab859145 1071
8eca434b 1072 * Moose::Meta::TypeConstraint::Union
4734114b 1073 - added (has_)hand_optimized_constraint to this class so that
8eca434b 1074 it behaves as the regular Moose::Meta::TypeConstraint does.
1075
5868294f 1076 * Moose::Meta::Role
887169d7 1077 - large refactoring of this code
4734114b 1078 - added several more tests
1079 - tests for subtle conflict resolition issues
7125b244 1080 added, but not currently running
1081 (thanks to kolibre)
1082
4734114b 1083 * Moose::Cookbook::Recipe7
1084 - added new recipe for augment/inner functionality
887169d7 1085 (still in progress)
7125b244 1086 - added test for this
5868294f 1087
24a8fe99 1088 * Moose::Spec::Role
7125b244 1089 - a formal definition of roles (still in progress)
24a8fe99 1090
9a641848 1091 * Moose::Util
887169d7 1092 - utilities for easier working with Moose classes
7125b244 1093 - added tests for these
9a641848 1094
1095 * Test::Moose
887169d7 1096 - This contains Moose specific test functions
7125b244 1097 - added tests for these
9a641848 1098
6b4c1bdd 10990.24 Tues. July 3, 2007
1100 ~ Some doc updates/cleanup ~
c84f324f 1101
1102 * Moose::Meta::Attribute
4734114b 1103 - added support for roles to be given as parameters
c84f324f 1104 to the 'handles' option.
1105 - added tests and docs for this
4734114b 1106 - the has '+foo' attribute form now accepts changes to
83cc9094 1107 the lazy option, and the addition of a handles option
1108 (but not changing the handles option)
1109 - added tests and docs for this
c84f324f 1110
1db8ecc7 1111 * Moose::Meta::Role
1112 - required methods are now fetched using find_method_by_name
1113 so that required methods can come from superclasses
1114 - adjusted tests for this
1115
81941e9b 11160.23 Mon. June 18, 2007
73b84d2e 1117 * Moose::Meta::Method::Constructor
1118 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
ac2dc464 1119 * Moose::Meta::Class
1120 - Modify make_immutable to work with the new Class::MOP immutable
1121 mechanism + POD + very basic test (groditi)
cbe25729 1122 * Moose::Meta::Attribute
4734114b 1123 - Fix handles to use goto() so that caller() comes out properly on
cbe25729 1124 the other side (perigrin)
ac2dc464 1125
db53853c 11260.22 Thurs. May 31, 2007
3969267d 1127 * Moose::Util::TypeConstraints
4734114b 1128 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
db53853c 1129 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1130 prototypes for functions
4734114b 1131 - added the ClassName type constraint, this checks for strings
1132 which will respond true to ->isa(UNIVERSAL).
9af1d28b 1133 - added tests and docs for this
4734114b 1134 - subtyping just in name now works correctly by making the
86629f93 1135 default for where be { 1 }
4734114b 1136 - added test for this
3969267d 1137
d7611a4a 1138 * Moose::Meta::Method::Accessor
4734114b 1139 - coerce and lazy now work together correctly, thanks to
d7611a4a 1140 merlyn for finding this bug
1141 - tests added for this
df492bba 1142 - fix reader presedence bug in Moose::Meta::Attribute + tests
d7611a4a 1143
86629f93 1144 * Moose::Object
1145 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
4734114b 1146 a HASH-ref and missed. This produces better error messages then
86629f93 1147 having it die cause undef is not a HASH.
1148 - added tests for this
1149
74a0a945 11500.21 Thursday, May 2nd, 2007
52c7c330 1151 * Moose
1152 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1153 - modified unimport to remove super and inner along with the rest
1154 - altered unimport tests to handle this
1155
1156 * Moose::Role
1157 - altered super export to populate SUPER_SLOT
1158
1159 * Moose::Meta::Class
1160 - altered augment and override modifier application to use *_SLOT
1161 - modified tests for these to unimport one test class each to test
1162
492d4d76 1163 * Moose::Meta::Role
1164 - fixed issue where custom attribute metaclasses
1165 where not handled correctly in roles
1166 - added tests for this
4734114b 1167
5cb193ed 1168 * Moose::Meta::Class
4734114b 1169 - fixed issue where extending metaclasses with
5cb193ed 1170 roles would blow up. Thanks to Aankhen`` for
1171 finding this insidious error, and it's solution.
4734114b 1172
1173 ~~ lots of spelling and grammer fixes in the docs,
0305961b 1174 many many thanks to rlb3 and Aankhen for these :)
492d4d76 1175
e518dfb4 11760.20 Friday, April 6th, 2007
a60285b3 1177 >> I messed up the SKIP logic in one test
1178 so this release is just to fix that.
1179
93c435b3 1180 * Moose
1181 - 'has' now also accepts an ARRAY ref
1182 to create multiple attrs (see docs)
1183 (thanks to konobi for this)
4734114b 1184 - added tests and docs
93c435b3 1185
cd7eeaf5 11860.19 Thurs. April 5th, 2007
1187 ~~ More documentation updates ~~
1188
c899258b 1189 * Moose::Util::TypeConstraints
c1935ade 1190 - 'type' now supports messages as well
ddbdc0cb 1191 thanks to phaylon for finding this
c899258b 1192 - added tests for this
4734114b 1193 - added &list_all_type_constraints and
c1935ade 1194 &list_all_builtin_type_constraints
943596a6 1195 functions to facilitate introspection.
4734114b 1196
d022f632 1197 * Moose::Meta::Attribute
4734114b 1198 - fixed regexp 'handles' declarations
d022f632 1199 to build the list of delegated methods
4734114b 1200 correctly (and not override important
1201 things like &new) thanks to ashleyb
ddbdc0cb 1202 for finding this
1203 - added tests and docs for this
c1935ade 1204 - added the 'documentation' attributes
4734114b 1205 so that you can actually document your
1206 attributes and inspect them through the
ddbdc0cb 1207 meta-object.
d022f632 1208 - added tests and docs for this
1209
c1935ade 1210 * Moose::Meta::Class
1211 - when loading custom attribute metaclasses
4734114b 1212 it will first look in for the class in the
1213 Moose::Meta::Attribute::Custom::$name, and
c1935ade 1214 then default to just loading $name.
1215 - added tests and docs for this
1216
900466d6 1217 * Moose::Meta::TypeConstraint
1218 - type constraints now stringify to their names.
1219 - added test for this
1220
d022f632 1221 * misc.
4734114b 1222 - added tests to assure we work with Module::Refresh
1223 - added stricter test skip logic in the Moose POOP
ddbdc0cb 1224 test, ask Rob Kinyon why.
1225 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
c899258b 1226
af5199c6 12270.18 Sat. March 10, 2007
1228 ~~ Many, many documentation updates ~~
ddbdc0cb 1229
1230 * misc.
4734114b 1231 - We now use Class::MOP::load_class to
1232 load all classes.
1233 - added tests to show types and subtypes
ddbdc0cb 1234 working with Declare::Constraints::Simple
1235 and Test::Deep as constraint engines.
b77fdbed 1236
587ae0d2 12370.18_001
d01f1dab 1238 !! You must have Class::MOP 0.37_001 !!
1239 !! for this developer release to work !!
1240
734d1752 1241 This release was primarily adding the immutable
4734114b 1242 feature to Moose. An immutable class is one which
1243 you promise not to alter. When you set the class
1244 as immutable it will perform various bits of
734d1752 1245 memoization and inline certain part of the code
4734114b 1246 (constructors, destructors and accessors). This
734d1752 1247 minimizes (and in some cases totally eliminates)
4734114b 1248 one of Moose's biggest performance hits. This
734d1752 1249 feature is not on by default, and is 100% optional.
4734114b 1250 It has several configurable bits as well, so you
734d1752 1251 can pick and choose to your specific needs.
4734114b 1252
1253 The changes involved in this were fairly wide and
1254 highly specific, but 100% backwards compatible, so
1255 I am not going to enumerate them here. If you are
1256 truely interested in what was changed, please do
734d1752 1257 a diff :)
587ae0d2 1258
12590.17 Tues. Nov. 14, 2006
1260 * Moose::Meta::Method::Accessor
4734114b 1261 - bugfix for read-only accessors which
587ae0d2 1262 are have a type constraint and lazy.
1263 Thanks to chansen for finding it.
1264
12650.16 Tues. Nov. 14, 2006
1266 ++ NOTE ++
4734114b 1267 There are some speed improvements in this release,
587ae0d2 1268 but they are only the begining, so stay tuned.
4734114b 1269
587ae0d2 1270 * Moose::Object
4734114b 1271 - BUILDALL and DEMOLISHALL no longer get
587ae0d2 1272 called unless they actually need to be.
1273 This gave us a signifigant speed boost
4734114b 1274 for the cases when there is no BUILD or
587ae0d2 1275 DEMOLISH method present.
4734114b 1276
587ae0d2 1277 * Moose::Util::TypeConstraints
1278 * Moose::Meta::TypeConstraint
4734114b 1279 - added an 'optimize_as' option to the
587ae0d2 1280 type constraint, which allows for a
4734114b 1281 hand optimized version of the type
587ae0d2 1282 constraint to be used when possible.
1283 - Any internally created type constraints
1284 now provide an optimized version as well.
1285
ecb59493 12860.15 Sun. Nov. 5, 2006
946289d1 1287 ++ NOTE ++
4734114b 1288 This version of Moose *must* have Class::MOP 0.36 in order
1289 to work correctly. A number of small internal tweaks have
946289d1 1290 been made in order to be compatible with that release.
571dd39f 1291
1292 * Moose::Util::TypeConstraints
4734114b 1293 - added &unimport so that you can clean out
1294 your class namespace of these exported
571dd39f 1295 keywords
4734114b 1296
37ee30c9 1297 * Moose::Meta::Class
4734114b 1298 - fixed minor issue which occasionally
1299 comes up during global destruction
37ee30c9 1300 (thanks omega)
4734114b 1301 - moved Moose::Meta::Method::Overriden into
946289d1 1302 its own file.
4734114b 1303
1304 * Moose::Meta::Role
1305 - moved Moose::Meta::Role::Method into
946289d1 1306 its own file.
4734114b 1307
43123819 1308 * Moose::Meta::Attribute
4734114b 1309 - changed how we do type checks so that
1310 we reduce the overall cost, but still
7623f774 1311 retain correctness.
946289d1 1312 *** API CHANGE ***
4734114b 1313 - moved accessor generation methods to
1314 Moose::Meta::Method::Accessor to
1315 conform to the API changes from
946289d1 1316 Class::MOP 0.36
4734114b 1317
43123819 1318 * Moose::Meta::TypeConstraint
1319 - changed how constraints are compiled
1320 so that we do less recursion and more
4734114b 1321 iteration. This makes the type check
43123819 1322 faster :)
946289d1 1323 - moved Moose::Meta::TypeConstraint::Union
1324 into its own file
4734114b 1325
946289d1 1326 * Moose::Meta::Method::Accessor
4734114b 1327 - created this from methods formerly found in
946289d1 1328 Moose::Meta::Attribute
4734114b 1329
946289d1 1330 * Moose::Meta::Role::Method
1331 - moved this from Moose::Meta::Role
4734114b 1332
946289d1 1333 * Moose::Meta::Method::Overriden
1334 - moved this from Moose::Meta::Class
4734114b 1335
946289d1 1336 * Moose::Meta::TypeConstraint::Union
1337 - moved this from Moose::Meta::TypeConstraint
37ee30c9 1338
3ec7b7a3 13390.14 Mon. Oct. 9, 2006
4fd69d6c 1340
1341 * Moose::Meta::Attribute
4734114b 1342 - fixed lazy attributes which were not getting
4fd69d6c 1343 checked with the type constraint (thanks ashley)
1344 - added tests for this
4734114b 1345 - removed the over-enthusiastic DWIMery of the
1346 automatic ArrayRef and HashRef defaults, it
3ec7b7a3 1347 broke predicates in an ugly way.
1348 - removed tests for this
4fd69d6c 1349
c0c41f76 13500.13 Sat. Sept. 30, 2006
093b12c2 1351 ++ NOTE ++
4734114b 1352 This version of Moose *must* have Class::MOP 0.35 in order
1353 to work correctly. A number of small internal tweaks have
093b12c2 1354 been made in order to be compatible with that release.
1355
3c2bc5e2 1356 * Moose
1357 - Removed the use of UNIVERSAL::require to be a better
4734114b 1358 symbol table citizen and remove a dependency
093b12c2 1359 (thanks Adam Kennedy)
3c2bc5e2 1360
2a0f3bd3 1361 **~~ removed experimental & undocumented feature ~~**
4734114b 1362 - commented out the 'method' and 'self' keywords, see the
2a0f3bd3 1363 comments for more info.
1364
e95c7c42 1365 * Moose::Cookbook
4734114b 1366 - added a FAQ and WTF files to document frequently
e95c7c42 1367 asked questions and common problems
4734114b 1368
3f7376b0 1369 * Moose::Util::TypeConstraints
0a5bd159 1370 - added GlobRef and FileHandle type constraint
3f7376b0 1371 - added tests for this
4734114b 1372
3f7376b0 1373 * Moose::Meta::Attribute
1374 - if your attribute 'isa' ArrayRef of HashRef, and you have
1375 not explicitly set a default, then make the default DWIM.
4734114b 1376 This will also work for subtypes of ArrayRef and HashRef
94b8bbb8 1377 as well.
1378 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1379 - new test added for this (thanks to ashley)
4734114b 1380
b805c70c 1381 * Moose::Meta::Role
1382 - added basic support for runtime role composition
4734114b 1383 but this is still *highly experimental*, so feedback
0a5bd159 1384 is much appreciated :)
b805c70c 1385 - added tests for this
e95c7c42 1386
0a5bd159 1387 * Moose::Meta::TypeConstraint
1388 - the type constraint now handles the coercion process
4734114b 1389 through delegation, this is to support the coercion
0a5bd159 1390 of unions
4734114b 1391
0a5bd159 1392 * Moose::Meta::TypeConstraint::Union
4734114b 1393 - it is now possible for coercions to be performed
0a5bd159 1394 on a type union
1395 - added tests for this (thanks to konobi)
1396
e95c7c42 1397 * Moose::Meta::TypeCoercion
4734114b 1398 - properly capturing error when type constraint
e95c7c42 1399 is not found
1400
3c2bc5e2 1401 * Build.PL
1402 - Scalar::Util 1.18 is bad on Win32, so temporarily
1403 only require version 1.17 for Win32 and cygwin.
4734114b 1404 (thanks Adam Kennedy)
3c2bc5e2 1405
40e89659 14060.12 Sat. Sept. 1, 2006
2bdd01cd 1407 * Moose::Cookbook
1408 - Recipe5 (subtypes & coercion) has been written
4734114b 1409
2bdd01cd 1410 * Moose
4734114b 1411 - fixed "bad meta" error message to be more descriptive
1412 - fixed &unimport to not remove the &inner and &super
3279ab4a 1413 keywords because we need to localize them.
68efb014 1414 - fixed number of spelling/grammer issues, thanks Theory :)
4734114b 1415
0558683c 1416 **~~ experimental & undocumented feature ~~**
4734114b 1417 - added the method and self keywords, they are basically
68efb014 1418 just sugar, and they may not stay around.
4734114b 1419
f742dfef 1420 * Moose::Object
4734114b 1421 - added &dump method to easily Data::Dumper
68efb014 1422 an object
4734114b 1423
b26e162e 1424 * Moose::Meta::TypeConstraint
1425 - added the &is_a_type_of method to check both the current
1426 and the subtype of a method (similar to &isa with classes)
f008ac1f 1427
68efb014 1428 * Moose::Meta::Role
1429 - this is now a subclass of Class::MOP::Module, and no longer
4734114b 1430 creates the _role_meta ugliness of before.
68efb014 1431 - fixed tests to reflect this change
4734114b 1432
8c835eba 14330.11 Wed. July 12, 2006
31f8ec72 1434 * Moose
1435 - added an &unimport method to remove all the keywords
4734114b 1436 that Moose will import, simply add 'no Moose' to the
1437 bottom of your class file.
1438
31f8ec72 1439 * t/
4734114b 1440 - fixed some test failures caused by a forgotten test
31f8ec72 1441 dependency.
1442
864cd714 14430.10 Thurs. July 6, 2006
01a8e221 1444 * Moose
1445 - improved error message when loading modules so
1446 it is less confusing when you load a role.
4734114b 1447 - added &calculate_all_roles method to
2b14ac61 1448 Moose::Meta::Class and Moose::Meta::Role
4734114b 1449
2b14ac61 1450 NOTE:
1451 This module has been tested against Class::MOP 0.30
4734114b 1452 but it does not yet utilize the optimizations
2b14ac61 1453 it makes available. Stay tuned for that ;)
4734114b 1454
2b14ac61 14550.09_03 Fri. June 23, 2006
715ea0b7 1456 ++ DEVELOPER RELEASE ++
4276ccb4 1457 * Moose
1458 - 'use strict' and 'use warnings' are no longer
4734114b 1459 needed in Moose classes, Moose itself will
4276ccb4 1460 turn them on for you.
1461 - added tests for this
1341f10c 1462 - moved code from exported subs to private methods
1463 in Moose::Meta::Class
4734114b 1464
4276ccb4 1465 * Moose::Role
4734114b 1466 - as with Moose, strict and warnings are
4276ccb4 1467 automatically turned on for you.
4734114b 1468 - added tests for this
1469
e39d707f 1470 * Moose::Meta::Role
1471 - now handles an edge case for override errors
1472 - added tests for this
b7f2d25b 1473 - added some more edge case tests
1341f10c 1474
43d599e5 14750.09_02 Tues. May 16, 2006
715ea0b7 1476 ++ DEVELOPER RELEASE ++
2c0cbef7 1477 * Moose
1478 - added prototypes to the exported subs
43d599e5 1479 - updated docs
4734114b 1480
2c0cbef7 1481 * Moose::Role
4734114b 1482 - added prototypes to the exported subs
43d599e5 1483 - updated docs
4734114b 1484
2c0cbef7 1485 * Moose::Util::TypeConstraints
4734114b 1486 - cleaned up prototypes for the subs
1487 - updated docs
2c0cbef7 1488
72c4f6d1 14890.09_01 Fri. May 12, 2006
1490 ++ DEVELOPER RELEASE ++
4734114b 1491 - This release works in combination with
1492 Class::MOP 0.29_01, it is a developer
1493 release because it uses the a new
72c4f6d1 1494 instance sub-protocol and a fairly
4734114b 1495 complete Role implementation. It has
72c4f6d1 1496 not yet been optimized, so it slower
4734114b 1497 the the previous CPAN version. This
1498 release also lacks good updated docs,
72c4f6d1 1499 the official release will have updated docs.
1500
4734114b 1501 * Moose
98aae381 1502 - refactored the keyword exports
4734114b 1503 - 'with' now checks Role validaity and
db1ab48d 1504 accepts more than one Role at a time
4734114b 1505 - 'extends' makes metaclass adjustments as
98aae381 1506 needed to ensure metaclass compatability
4734114b 1507
72c4f6d1 1508 * Moose::Role
1509 - refactored the keyword exports
4734114b 1510 - 'with' now checks Role validaity and
72c4f6d1 1511 accepts more than one Role at a time
4734114b 1512
98aae381 1513 * Moose::Util::TypeConstraints
4734114b 1514 - added the 'enum' keyword for simple
1515 string enumerations which can be used as
98aae381 1516 type constraints
db1ab48d 1517 - see example of usage in t/202_example.t
4734114b 1518
98aae381 1519 * Moose::Object
1520 - more careful checking of params to new()
4734114b 1521
72c4f6d1 1522 * Moose::Meta::Role
1523 - much work done on the role composition
4734114b 1524 - many new tests for conflict detection
72c4f6d1 1525 and composition edge cases
4734114b 1526 - not enough documentation, I suggest
1527 looking at the tests
1528
98aae381 1529 * Moose::Meta::Instance
4734114b 1530 - added new Instance metaclass to support
98aae381 1531 the new Class::MOP instance protocol
4734114b 1532
98aae381 1533 * Moose::Meta::Class
4734114b 1534 - some small changes to support the new
98aae381 1535 instance protocol
72c4f6d1 1536 - some small additions to support Roles
4734114b 1537
98aae381 1538 * Moose::Meta::Attribute
1539 - some improvements to the accessor generation code
1540 by nothingmuch
4734114b 1541 - some small changes to support the new
98aae381 1542 instance protocol
4734114b 1543 - (still somewhat) experimental delegation support
98aae381 1544 with the 'handles' option
1545 - added several tests for this
db1ab48d 1546 - no docs for this yet
98aae381 1547
35c8b8f2 15480.05 Thurs. April 27, 2006
2d562421 1549 * Moose
1550 - keywords are now exported with Sub::Exporter
1551 thanks to chansen for this commit
4734114b 1552 - has keyword now takes a 'metaclass' option
1553 to support custom attribute meta-classes
590868a3 1554 on a per-attribute basis
4734114b 1555 - added tests for this
daea75c9 1556 - the 'has' keyword not accepts inherited slot
4734114b 1557 specifications (has '+foo'). This is still an
daea75c9 1558 experimental feature and probably not finished
4734114b 1559 see t/038_attribute_inherited_slot_specs.t for
daea75c9 1560 more details, or ask about it on #moose
fcb7afc2 1561 - added tests for this
4734114b 1562
2d562421 1563 * Moose::Role
1564 - keywords are now exported with Sub::Exporter
1565
5204cd52 1566 * Moose::Utils::TypeConstraints
cce8198b 1567 - reorganized the type constraint hierarchy, thanks
4734114b 1568 to nothingmuch and chansen for his help and advice
cce8198b 1569 on this
1570 - added some tests for this
7eaef7ad 1571 - keywords are now exported with Sub::Exporter
35c8b8f2 1572 thanks to chansen for this commit
5204cd52 1573
d500266f 1574 * Moose::Meta::Class
1575 - due to changes in Class::MOP, we had to change
1576 construct_instance (for the better)
4734114b 1577
d500266f 1578 * Moose::Meta::Attribute
4734114b 1579 - due to changes in Class::MOP, we had to add the
d500266f 1580 initialize_instance_slot method (it's a good thing)
4734114b 1581
cce8198b 1582 * Moose::Meta::TypeConstraint
4734114b 1583 - added type constraint unions
c07af9d2 1584 - added tests for this
cce8198b 1585 - added the is_subtype_of predicate method
1586 - added tests for this
d500266f 1587
02a0fb52 15880.04 Sun. April 16th, 2006
1331430a 1589 * Moose::Role
1590 - Roles can now consume other roles
1591 - added tests for this
4734114b 1592 - Roles can specify required methods now with
1331430a 1593 the requires() keyword
1594 - added tests for this
1595
bdabd620 1596 * Moose::Meta::Role
1597 - ripped out much of it's guts ,.. much cleaner now
4734114b 1598 - added required methods and correct handling of
fa1be058 1599 them in apply() for both classes and roles
1600 - added tests for this
4734114b 1601 - no longer adds a does() method to consuming classes
1331430a 1602 it relys on the one in Moose::Object
4734114b 1603 - added roles attribute and some methods to support
1331430a 1604 roles consuming roles
8c9d74e7 1605
1606 * Moose::Meta::Attribute
1607 - added support for triggers on attributes
1608 - added tests for this
4734114b 1609 - added support for does option on an attribute
02a0fb52 1610 - added tests for this
4734114b 1611
8c9d74e7 1612 * Moose::Meta::Class
4734114b 1613 - added support for attribute triggers in the
8c9d74e7 1614 object construction
1615 - added tests for this
4734114b 1616
256903b6 1617 * Moose
4734114b 1618 - Moose no longer creates a subtype for your class
1619 if a subtype of the same name already exists, this
256903b6 1620 should DWIM in 99.9999% of all cases
4734114b 1621
256903b6 1622 * Moose::Util::TypeConstraints
4734114b 1623 - fixed bug where incorrect subtype conflicts were
256903b6 1624 being reported
8c9d74e7 1625 - added test for this
4734114b 1626
8c9d74e7 1627 * Moose::Object
1628 - this class can now be extended with 'use base' if
1629 you need it, it properly loads the metaclass class now
1630 - added test for this
bdabd620 1631
0677220d 16320.03_02 Wed. April 12, 2006
05d9eaf6 1633 * Moose
1634 - you must now explictly use Moose::Util::TypeConstraints
1635 it no longer gets exported for you automatically
4734114b 1636
05d9eaf6 1637 * Moose::Object
1638 - new() now accepts hash-refs as well as key/value lists
0677220d 1639 - added does() method to check for Roles
1640 - added tests for this
05d9eaf6 1641
0677220d 1642 * Moose::Meta::Class
4734114b 1643 - added roles attribute along with the add_role() and
0677220d 1644 does_role() methods
4734114b 1645 - added tests for this
0677220d 1646
1647 * Moose::Meta::Role
4734114b 1648 - now adds a does() method to consuming classes
0677220d 1649 which tests the class's hierarchy for roles
1650 - added tests for this
1651
16520.03_01 Mon. April 10, 2006
e9ec68d6 1653 * Moose::Cookbook
76d37e5a 1654 - added new Role recipe (no content yet, only code)
4734114b 1655
e9ec68d6 1656 * Moose
1657 - added 'with' keyword for Role support
1658 - added test and docs for this
1659 - fixed subtype quoting bug
4734114b 1660 - added test for this
e9ec68d6 1661
1662 * Moose::Role
1663 - Roles for Moose
1664 - added test and docs
76d37e5a 1665
1666 * Moose::Util::TypeConstraints
1667 - added the message keyword to add custom
4734114b 1668 error messages to type constraints
1669
e9ec68d6 1670 * Moose::Meta::Role
1671 - the meta role to support Moose::Role
1672 - added tests and docs
4734114b 1673
e9ec68d6 1674 * Moose::Meta::Class
4734114b 1675 - moved a number of things from Moose.pm
1676 to here, they should have been here
e9ec68d6 1677 in the first place
1678
1679 * Moose::Meta::Attribute
1680 - moved the attribute option macros here
1681 instead of putting them in Moose.pm
e185c027 1682
76d37e5a 1683 * Moose::Meta::TypeConstraint
4734114b 1684 - added the message attributes and the
76d37e5a 1685 validate method
1686 - added tests and docs for this
1687
0ac928d2 16880.03 Thurs. March 30, 2006
e9bb8a31 1689 * Moose::Cookbook
4734114b 1690 - added the Moose::Cookbook with 5 recipes,
e9bb8a31 1691 describing all the stuff Moose can do.
1692
d7f17ebb 1693 * Moose
1694 - fixed an issue with &extends super class loading
4734114b 1695 it now captures errors and deals with inline
1696 packages correctly (bug found by mst, solution
d7f17ebb 1697 stolen from alias)
159da176 1698 - added super/override & inner/augment features
1699 - added tests and docs for these
4734114b 1700
d7f17ebb 1701 * Moose::Object
4734114b 1702 - BUILDALL now takes a reference of the %params
1703 that are passed to &new, and passes that to
d7f17ebb 1704 each BUILD as well.
4734114b 1705
471c4f09 1706 * Moose::Util::TypeConstraints
1707 - Type constraints now survive runtime reloading
1708 - added test for this
d7f17ebb 1709
8339fae2 1710 * Moose::Meta::Class
4734114b 1711 - fixed the way attribute defaults are handled
8339fae2 1712 during instance construction (bug found by chansen)
1713
d7f17ebb 1714 * Moose::Meta::Attribute
1715 - read-only attributes now actually enforce their
4734114b 1716 read-only-ness (this corrected in Class::MOP as
9deed647 1717 well)
d7f17ebb 1718
076c81ed 17190.02 Tues. March 21, 2006
fc5609d2 1720 * Moose
4734114b 1721 - many more tests, fixing some bugs and
b841b2a3 1722 edge cases
b841b2a3 1723 - &extends now loads the base module with
4734114b 1724 UNIVERSAL::require
1725 - added UNIVERSAL::require to the
b841b2a3 1726 dependencies list
6ba6d68c 1727 ** API CHANGES **
4734114b 1728 - each new Moose class will also create
1729 and register a subtype of Object which
1730 correspond to the new Moose class.
1731 - the 'isa' option in &has now only
1732 accepts strings, and will DWIM in
b841b2a3 1733 almost all cases
4734114b 1734
b841b2a3 1735 * Moose::Util::TypeConstraints
1736 - added type coercion features
1737 - added tests for this
4734114b 1738 - added support for this in attributes
b841b2a3 1739 and instance construction
6ba6d68c 1740 ** API CHANGES **
4734114b 1741 - type construction no longer creates a
b841b2a3 1742 function, it registers the type instead.
4734114b 1743 - added several functions to get the
1744 registered types
6ba6d68c 1745
1746 * Moose::Object
4734114b 1747 - BUILDALL and DEMOLISHALL were broken
6ba6d68c 1748 because of a mis-named hash key, Whoops :)
4734114b 1749
b841b2a3 1750 * Moose::Meta::Attribute
1751 - adding support for coercion in the
1752 autogenerated accessors
4734114b 1753
b841b2a3 1754 * Moose::Meta::Class
1755 - adding support for coercion in the
4734114b 1756 instance construction
6ba6d68c 1757
1758 * Moose::Meta::TypeConstraint
1759 * Moose::Meta::TypeCoercion
4734114b 1760 - type constraints and coercions are now
6ba6d68c 1761 full fledges meta-objects
fc5609d2 1762
e522431d 17630.01 Wed. March 15, 2006
900466d6 1764 - Moooooooooooooooooose!!!