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