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