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