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