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