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