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