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