die in Attribute::_process_options if the attr is required but there is no way to...
[gitmo/Moose.git] / Changes
CommitLineData
e522431d 1Revision history for Perl extension Moose
2
e472c9a5 30.36 Sat. Jan. 26, 2008
238b424d 4 * Moose::Role
5 Moose::Meta::Attribute
6 - role type tests now support when roles are
7 applied to non-Moose classes (found by ash)
8 - added tests for this (thanks to ash)
e472c9a5 9 - couple extra tests to boost code coverage
238b424d 10
11 * Moose::Meta::Method::Constructor
12 - improved fix for handling Class::MOP attributes
13 - added test for this
14
15 * Moose::Meta::Class
16 - handled the add_attribute($attribute_meta_object)
17 case correctly
18 - added test for this
19
3285fae9 200.35 Tues. Jan. 22, 2008
45fd4af3 21 * Moose::Meta::Method::Constructor
22 - fix to make sure even Class::MOP attributes
472b7401 23 are handled correctly (Thanks to Dave Rolsky)
c3b35392 24 - added test for this (also Dave Rolsky)
4498537c 25
26 * Moose::Meta::Class
27 - improved error message on _apply_all_roles,
28 you should now use Moose::Util::apply_all_roles
29 and you shouldnt have been using a _ prefixed
30 method in the first place ;)
45fd4af3 31
fe05ce9c 320.34 Mon. Jan. 21, 2008
778db3ac 33 ~~~ more misc. doc. fixes ~~~
34 ~~ updated copyright dates ~~
9b28d20b 35
36 Moose is now a postmodern object system :)
8bdc7f13 37 - (see the POD for details)
ccf49e80 38
39 * <<Role System Refactoring>>
40 - this release contains a major reworking and
41 cleanup of the role system
9b28d20b 42 - 100% backwards compat.
43 - Role application now restructured into seperate
44 classes based on type of applicants
45 - Role summation (combining of more than one role)
ccf49e80 46 is much cleaner and anon-classes are no longer
9b28d20b 47 used in this process
ccf49e80 48 - new Composite role metaclass
9b28d20b 49 - runtime application of roles to instances
50 is now more efficient and re-uses generated
51 classes when applicable
ccf49e80 52
9b28d20b 53 * <<New Role composition features>>
ccf49e80 54 - methods can now be excluded from a given role
9b28d20b 55 during composition
ccf49e80 56 - methods can now be aliased to another name (and
57 still retain the original as well)
4734114b 58
59 * Moose::Util::TypeConstraints::OptimizedConstraints
60 - added this module (see above)
61
d7d8a8c7 62 * Moose::Meta::Class
63 - fixed the &_process_attribute method to be called
4734114b 64 by &add_attribute, so that the API is now correct
65
e7c06c1e 66 * Moose::Meta::Method::Accessor
4734114b 67 - fixed bug when passing a list of values to
e7c06c1e 68 an accessor would get (incorrectly) ignored.
69 Thanks to Sartak for finding this ;)
70 - added tests for this (Sartak again)
32dd4a95 71
a4e516f6 72 * Moose::Meta::Method::Accessor
73 Moose::Meta::Method::Constructor
28412c0b 74 Moose::Meta::Attribute
ccf49e80 75 Moose::Meta::TypeConstraint
76 Moose::Meta::TypeCoercion
77 - lots of cleanup of such things as:
28412c0b 78 - generated methods
79 - type constraint handling
ccf49e80 80 - error handling/messages
81 (thanks to nothingmuch)
a4e516f6 82
4734114b 83 * Moose::Meta::TypeConstraint::Parameterizable
84 - added this module to support the refactor
85 in Moose::Meta::TypeConstraint::Parameterized
86
87 * Moose::Meta::TypeConstraint::Parameterized
88 - refactored how these types are handled so they
89 are more generic and not confined to ArrayRef
90 and HashRef only
a4e516f6 91
2de7e794 92 * t/
93 - shortened some file names for better VMS support (RT #32381)
94
25374f01 950.33 Fri. Dec. 14, 2007
32dd4a95 96 !! Moose now loads 2 x faster !!
97 !! with new Class::MOP 0.49 !!
25374f01 98
f7865ec8 99 ++ new oose.pm module to make command line
25374f01 100 Moose-ness easier (see POD docs for more)
4734114b 101
25374f01 102 * Moose::Meta::Class
103 * Moose::Meta::Role
4734114b 104 - several tweaks to take advantage of the
25374f01 105 new method map caching in Class::MOP
106
39aba5c9 107 * Moose::Meta::TypeConstraint::Parameterized
108 - allow subtypes of ArrayRef and HashRef to
acb8a5db 109 be used as a container (sartak)
4734114b 110 - added tests for this
acb8a5db 111 - basic support for coercion to ArrayRef and
112 HashRef for containers (sartak)
4734114b 113 - added tests for this
114
25374f01 115 * Moose::Meta::TypeCoercion
116 - coercions will now create subtypes as needed
117 so you can now add coercions to parameterized
118 types without having to explictly define them
119 - added tests for this
120
ac211120 121 * Moose::Meta::Method::Accessor
122 - allow subclasses to decide whether we need
123 to copy the value into a new variable (sartak)
39aba5c9 124
dc26a424 1250.32 Tues. Dec. 4, 2007
8de73ff1 126 * Moose::Util::TypeConstraints
127 - fixing how subtype aliases of unions work
128 they should inherit the parent's coercion
129 - added tests for this
4734114b 130 - you can now define multiple coercions on
41e007e4 131 a single type at different times instead of
132 having to do it all in one place
133 - added tests for this
4734114b 134
8de73ff1 135 * Moose::Meta::TypeConstraint
136 - there is now a default constraint of sub { 1 }
137 instead of Moose::Util::TypeConstraints setting
138 this for us
139
4734114b 140 * Moose::Meta::TypeCoercion
141 * Moose::Meta::TypeCoercion::Union
142 - added the &has_coercion_for_type and
143 &add_type_coercions methods to support the
41e007e4 144 new features above (although you cannot add
145 more type coercions for Union types)
146
ffcb48b4 1470.31 Mon. Nov. 26, 2007
f3c4e20e 148 * Moose::Meta::Attribute
4734114b 149 - made the +attr syntax handle extending types with
f3c4e20e 150 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
151 now works if the original foo is an ArrayRef.
152 - added tests for this.
153 - delegation now works even if the attribute does not
154 have a reader method using the get_read_method_ref
4734114b 155 method from Class::MOP::Attribute.
f3c4e20e 156 - added tests for this
157 - added docs for this
4734114b 158
f3c4e20e 159 * Moose::Util::TypeConstraints
4734114b 160 - passing no "additional attribute info" to
161 &find_or_create_type_constraint will no longer
162 attempt to create an __ANON__ type for you,
f3c4e20e 163 instead it will just return undef.
164 - added docs for this
165
1edfdf1c 1660.30 Fri. Nov. 23, 2007
ca168e89 167 * Moose::Meta::Method::Constructor
168 -builder related bug in inlined constructor. (groditi)
169
3822d5ee 170 * Moose::Meta::Method::Accessor
171 - genereate unnecessary calls to predicates and refactor
172 code generation for runtime speed (groditi)
173
5d776bdf 174 * Moose::Util::TypeConstraints
0e0709ea 175 - fix ClassName constraint to introspect symbol table (mst)
a0f8153d 176 - added more tests for this (mst)
177 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
178 with work correctly.
179 - added tests for this
5d776bdf 180
1edfdf1c 181 * Moose::Cookbook
182 - adding the link to Recipie 11 (written by Sartak)
183 - adding test for SYNOPSIS code
184
4734114b 185 * t/
ca168e89 186 - New tests for builder bug. Upon instantiation, if an
187 attribute had a builder, no value and was not lazy the
188 builder default was not getting run, oops. (groditi)
189
b97b9655 1900.29 Tues. Nov. 13, 2007
0b26305c 191 * Moose::Meta::Attribute
5d776bdf 192 - Fix error message on missing builder method (groditi)
0b26305c 193
194 * Moose::Meta::Method::Accessor
5d776bdf 195 - Fix error message on missing builder method (groditi)
0b26305c 196
4734114b 197 * t/
5d776bdf 198 - Add test to check for the correct error message when
199 builder method is missing (groditi)
0b26305c 200
98c4c382 2010.28 Tues. Nov. 13, 2007
4734114b 202 - 0.27 packaged incorrectly (groditi)
98c4c382 203
e134cd19 2040.27 Tues. Nov. 13, 2007
26fbace8 205 * Moose::Meta::Attribute
206 - Added support for the new builder option (groditi)
6af1a927 207 - Added support for lazy_build option (groditi)
1ed0b94f 208 - Changed slot initialization for predicate changes (groditi)
26fbace8 209
210 * Moose::Meta::Method::Accessor
6af1a927 211 - Added support for lazy_build option (groditi)
4734114b 212 - Fix inline methods to work with corrected predicate
28669f89 213 behavior (groditi)
26fbace8 214
7a5b07b3 215 * Moose::Meta::Method::Constructor
216 - Added support for lazy_build option (groditi)
217
26fbace8 218 * t/
28669f89 219 - tests for builder and lazy_build (groditi)
26fbace8 220
4734114b 221 * fixing some misc. bits in the docs that
28669f89 222 got mentioned on CPAN Forum & perlmonks
4734114b 223
e7f8d0c2 224 * Moose::Meta::Role
4734114b 225 - fixed how required methods are handled
e7f8d0c2 226 when they encounter overriden or modified
227 methods from a class (thanks to confound).
228 - added tests for this
5af6a16d 229
3796382a 230 * Moose::Util::TypeConstraint
4734114b 231 - fixed the type notation parser so that
232 the | always creates a union and so is
233 no longer a valid type char (thanks to
234 konobi, mugwump and #moose for working
3796382a 235 this one out.)
236 - added more tests for this
237
77a18c28 2380.26 Thurs. Sept. 27, 2007
239 == New Features ==
4734114b 240
77a18c28 241 * Parameterized Types
4734114b 242 We now support parameterized collection types, such as:
77a18c28 243 ArrayRef[Int] # array or integers
244 HashRef[Object] # a hash with object values
245 They can also be nested:
246 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
247 And work with the type unions as well:
248 ArrayRef[Int | Str] # array of integers of strings
4734114b 249
77a18c28 250 * Better Framework Extendability
4734114b 251 Moose.pm is now "extendable" such that it is now much
252 easier to extend the framework and add your own keywords
77a18c28 253 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
254 section of the Moose.pm docs.
4734114b 255
77a18c28 256 * Moose Snacks!
4734114b 257 In an effort to begin documenting some of the various
258 details of Moose as well as some common idioms, we have
259 created Moose::Cookbook::Snacks as a place to find
77a18c28 260 small (easily digestable) nuggets of Moose code.
4734114b 261
77a18c28 262 ====
fb697a87 263 ~ Several doc updates/cleanup thanks to castaway ~
4734114b 264
265 - converted build system to use Module::Install instead of
e46f5cc2 266 Module::Build (thanks to jrockway)
fb697a87 267
d67145ed 268 * Moose
4734114b 269 - added all the meta classes to the immutable list and
d67145ed 270 set it to inline the accessors
4734114b 271 - fix import to allow Sub::Exporter like { into => }
e59a5c29 272 and { into_level => } (perigrin)
4734114b 273 - exposed and documented init_meta() to allow better
e59a5c29 274 embedding and extending of Moose (perigrin)
4734114b 275
e59a5c29 276 * t/
277 - complete re-organization of the test suite
4734114b 278 - added some new tests as well
77a18c28 279 - finally re-enabled the Moose::POOP test since
280 the new version of DBM::Deep now works again
281 (thanks rob)
b468a3d3 282
283 * Moose::Meta::Class
4734114b 284 - fixed very odd and very nasty recursion bug with
b468a3d3 285 inner/augment (mst)
286 - added tests for this (eilara)
d67145ed 287
3726f905 288 * Moose::Meta::Attribute
289 Moose::Meta::Method::Constructor
290 Moose::Meta::Method::Accessor
4734114b 291 - fixed issue with overload::Overloaded getting called
f1917f58 292 on non-blessed items. (RT #29269)
3726f905 293 - added tests for this
4734114b 294
3ccdc84a 295 * Moose::Meta::Method::Accessor
4734114b 296 - fixed issue with generated accessor code making
3ccdc84a 297 assumptions about hash based classes (thanks to dexter)
4734114b 298
3726f905 299 * Moose::Coookbook::Snacks
4734114b 300 - these are bits of documentation, not quite as big as
301 Recipes but which have no clear place in the module docs.
3726f905 302 So they are Snacks! (horray for castaway++)
303
07cde929 304 * Moose::Cookbook::Recipe4
305 - updated it to use the new ArrayRef[MyType] construct
306 - updated the accompanying test as well
307
3726f905 308 +++ Major Refactor of the Type Constraint system +++
309 +++ with new features added as well +++
310
22aed3c0 311 * Moose::Util::TypeConstraint
4734114b 312 - no longer uses package variable to keep track of
22aed3c0 313 the type constraints, now uses the an instance of
314 Moose::Meta::TypeConstraint::Registry to do it
f1917f58 315 - added more sophisticated type notation parsing
316 (thanks to mugwump)
317 - added tests for this
22aed3c0 318
d67145ed 319 * Moose::Meta::TypeConstraint
320 - some minor adjustments to make subclassing easier
4734114b 321 - added the package_defined_in attribute so that we
22aed3c0 322 can track where the type constraints are created
4734114b 323
d67145ed 324 * Moose::Meta::TypeConstraint::Union
4734114b 325 - this is now been refactored to be a subclass of
3726f905 326 Moose::Meta::TypeConstraint
4734114b 327
3726f905 328 * Moose::Meta::TypeCoercion::Union
329 - this has been added to service the newly refactored
4734114b 330 Moose::Meta::TypeConstraint::Union and is itself
3726f905 331 a subclass of Moose::Meta::TypeCoercion
4734114b 332
0fbd4b0a 333 * Moose::Meta::TypeConstraint::Parameterized
d67145ed 334 - added this module (taken from MooseX::AttributeHelpers)
335 to help construct nested collection types
336 - added tests for this
4734114b 337
22aed3c0 338 * Moose::Meta::TypeConstraint::Registry
339 - added this class to keep track of type constraints
d67145ed 340
887169d7 3410.25 Mon. Aug. 13, 2007
8eca434b 342 * Moose
4734114b 343 - Documentation update to reference Moose::Util::TypeConstraints
344 under 'isa' in 'has' for how to define a new type
8eca434b 345 (thanks to shlomif).
346
ab859145 347 * Moose::Meta::Attribute
4734114b 348 - required attributes now will no longer accept undef
ab859145 349 from the constructor, even if there is a default and lazy
350 - added tests for this
4734114b 351 - default subroutines must return a value which passes the
7a5ebc40 352 type constraint
353 - added tests for this
4734114b 354
a909a4df 355 * Moose::Meta::Attribute
356 * Moose::Meta::Method::Constructor
4734114b 357 * Moose::Meta::Method::Accessor
a909a4df 358 - type-constraint tests now handle overloaded objects correctly
359 in the error message
4734114b 360 - added tests for this (thanks to EvanCarroll)
ab859145 361
8eca434b 362 * Moose::Meta::TypeConstraint::Union
4734114b 363 - added (has_)hand_optimized_constraint to this class so that
8eca434b 364 it behaves as the regular Moose::Meta::TypeConstraint does.
365
5868294f 366 * Moose::Meta::Role
887169d7 367 - large refactoring of this code
4734114b 368 - added several more tests
369 - tests for subtle conflict resolition issues
7125b244 370 added, but not currently running
371 (thanks to kolibre)
372
4734114b 373 * Moose::Cookbook::Recipe7
374 - added new recipe for augment/inner functionality
887169d7 375 (still in progress)
7125b244 376 - added test for this
5868294f 377
24a8fe99 378 * Moose::Spec::Role
7125b244 379 - a formal definition of roles (still in progress)
24a8fe99 380
9a641848 381 * Moose::Util
887169d7 382 - utilities for easier working with Moose classes
7125b244 383 - added tests for these
9a641848 384
385 * Test::Moose
887169d7 386 - This contains Moose specific test functions
7125b244 387 - added tests for these
9a641848 388
6b4c1bdd 3890.24 Tues. July 3, 2007
390 ~ Some doc updates/cleanup ~
c84f324f 391
392 * Moose::Meta::Attribute
4734114b 393 - added support for roles to be given as parameters
c84f324f 394 to the 'handles' option.
395 - added tests and docs for this
4734114b 396 - the has '+foo' attribute form now accepts changes to
83cc9094 397 the lazy option, and the addition of a handles option
398 (but not changing the handles option)
399 - added tests and docs for this
c84f324f 400
1db8ecc7 401 * Moose::Meta::Role
402 - required methods are now fetched using find_method_by_name
403 so that required methods can come from superclasses
404 - adjusted tests for this
405
81941e9b 4060.23 Mon. June 18, 2007
73b84d2e 407 * Moose::Meta::Method::Constructor
408 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
ac2dc464 409 * Moose::Meta::Class
410 - Modify make_immutable to work with the new Class::MOP immutable
411 mechanism + POD + very basic test (groditi)
cbe25729 412 * Moose::Meta::Attribute
4734114b 413 - Fix handles to use goto() so that caller() comes out properly on
cbe25729 414 the other side (perigrin)
ac2dc464 415
db53853c 4160.22 Thurs. May 31, 2007
3969267d 417 * Moose::Util::TypeConstraints
4734114b 418 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
db53853c 419 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
420 prototypes for functions
4734114b 421 - added the ClassName type constraint, this checks for strings
422 which will respond true to ->isa(UNIVERSAL).
9af1d28b 423 - added tests and docs for this
4734114b 424 - subtyping just in name now works correctly by making the
86629f93 425 default for where be { 1 }
4734114b 426 - added test for this
3969267d 427
d7611a4a 428 * Moose::Meta::Method::Accessor
4734114b 429 - coerce and lazy now work together correctly, thanks to
d7611a4a 430 merlyn for finding this bug
431 - tests added for this
df492bba 432 - fix reader presedence bug in Moose::Meta::Attribute + tests
d7611a4a 433
86629f93 434 * Moose::Object
435 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
4734114b 436 a HASH-ref and missed. This produces better error messages then
86629f93 437 having it die cause undef is not a HASH.
438 - added tests for this
439
74a0a945 4400.21 Thursday, May 2nd, 2007
52c7c330 441 * Moose
442 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
443 - modified unimport to remove super and inner along with the rest
444 - altered unimport tests to handle this
445
446 * Moose::Role
447 - altered super export to populate SUPER_SLOT
448
449 * Moose::Meta::Class
450 - altered augment and override modifier application to use *_SLOT
451 - modified tests for these to unimport one test class each to test
452
492d4d76 453 * Moose::Meta::Role
454 - fixed issue where custom attribute metaclasses
455 where not handled correctly in roles
456 - added tests for this
4734114b 457
5cb193ed 458 * Moose::Meta::Class
4734114b 459 - fixed issue where extending metaclasses with
5cb193ed 460 roles would blow up. Thanks to Aankhen`` for
461 finding this insidious error, and it's solution.
4734114b 462
463 ~~ lots of spelling and grammer fixes in the docs,
0305961b 464 many many thanks to rlb3 and Aankhen for these :)
492d4d76 465
e518dfb4 4660.20 Friday, April 6th, 2007
a60285b3 467 >> I messed up the SKIP logic in one test
468 so this release is just to fix that.
469
93c435b3 470 * Moose
471 - 'has' now also accepts an ARRAY ref
472 to create multiple attrs (see docs)
473 (thanks to konobi for this)
4734114b 474 - added tests and docs
93c435b3 475
cd7eeaf5 4760.19 Thurs. April 5th, 2007
477 ~~ More documentation updates ~~
478
c899258b 479 * Moose::Util::TypeConstraints
c1935ade 480 - 'type' now supports messages as well
ddbdc0cb 481 thanks to phaylon for finding this
c899258b 482 - added tests for this
4734114b 483 - added &list_all_type_constraints and
c1935ade 484 &list_all_builtin_type_constraints
943596a6 485 functions to facilitate introspection.
4734114b 486
d022f632 487 * Moose::Meta::Attribute
4734114b 488 - fixed regexp 'handles' declarations
d022f632 489 to build the list of delegated methods
4734114b 490 correctly (and not override important
491 things like &new) thanks to ashleyb
ddbdc0cb 492 for finding this
493 - added tests and docs for this
c1935ade 494 - added the 'documentation' attributes
4734114b 495 so that you can actually document your
496 attributes and inspect them through the
ddbdc0cb 497 meta-object.
d022f632 498 - added tests and docs for this
499
c1935ade 500 * Moose::Meta::Class
501 - when loading custom attribute metaclasses
4734114b 502 it will first look in for the class in the
503 Moose::Meta::Attribute::Custom::$name, and
c1935ade 504 then default to just loading $name.
505 - added tests and docs for this
506
900466d6 507 * Moose::Meta::TypeConstraint
508 - type constraints now stringify to their names.
509 - added test for this
510
d022f632 511 * misc.
4734114b 512 - added tests to assure we work with Module::Refresh
513 - added stricter test skip logic in the Moose POOP
ddbdc0cb 514 test, ask Rob Kinyon why.
515 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
c899258b 516
af5199c6 5170.18 Sat. March 10, 2007
518 ~~ Many, many documentation updates ~~
ddbdc0cb 519
520 * misc.
4734114b 521 - We now use Class::MOP::load_class to
522 load all classes.
523 - added tests to show types and subtypes
ddbdc0cb 524 working with Declare::Constraints::Simple
525 and Test::Deep as constraint engines.
b77fdbed 526
587ae0d2 5270.18_001
d01f1dab 528 !! You must have Class::MOP 0.37_001 !!
529 !! for this developer release to work !!
530
734d1752 531 This release was primarily adding the immutable
4734114b 532 feature to Moose. An immutable class is one which
533 you promise not to alter. When you set the class
534 as immutable it will perform various bits of
734d1752 535 memoization and inline certain part of the code
4734114b 536 (constructors, destructors and accessors). This
734d1752 537 minimizes (and in some cases totally eliminates)
4734114b 538 one of Moose's biggest performance hits. This
734d1752 539 feature is not on by default, and is 100% optional.
4734114b 540 It has several configurable bits as well, so you
734d1752 541 can pick and choose to your specific needs.
4734114b 542
543 The changes involved in this were fairly wide and
544 highly specific, but 100% backwards compatible, so
545 I am not going to enumerate them here. If you are
546 truely interested in what was changed, please do
734d1752 547 a diff :)
587ae0d2 548
5490.17 Tues. Nov. 14, 2006
550 * Moose::Meta::Method::Accessor
4734114b 551 - bugfix for read-only accessors which
587ae0d2 552 are have a type constraint and lazy.
553 Thanks to chansen for finding it.
554
5550.16 Tues. Nov. 14, 2006
556 ++ NOTE ++
4734114b 557 There are some speed improvements in this release,
587ae0d2 558 but they are only the begining, so stay tuned.
4734114b 559
587ae0d2 560 * Moose::Object
4734114b 561 - BUILDALL and DEMOLISHALL no longer get
587ae0d2 562 called unless they actually need to be.
563 This gave us a signifigant speed boost
4734114b 564 for the cases when there is no BUILD or
587ae0d2 565 DEMOLISH method present.
4734114b 566
587ae0d2 567 * Moose::Util::TypeConstraints
568 * Moose::Meta::TypeConstraint
4734114b 569 - added an 'optimize_as' option to the
587ae0d2 570 type constraint, which allows for a
4734114b 571 hand optimized version of the type
587ae0d2 572 constraint to be used when possible.
573 - Any internally created type constraints
574 now provide an optimized version as well.
575
ecb59493 5760.15 Sun. Nov. 5, 2006
946289d1 577 ++ NOTE ++
4734114b 578 This version of Moose *must* have Class::MOP 0.36 in order
579 to work correctly. A number of small internal tweaks have
946289d1 580 been made in order to be compatible with that release.
571dd39f 581
582 * Moose::Util::TypeConstraints
4734114b 583 - added &unimport so that you can clean out
584 your class namespace of these exported
571dd39f 585 keywords
4734114b 586
37ee30c9 587 * Moose::Meta::Class
4734114b 588 - fixed minor issue which occasionally
589 comes up during global destruction
37ee30c9 590 (thanks omega)
4734114b 591 - moved Moose::Meta::Method::Overriden into
946289d1 592 its own file.
4734114b 593
594 * Moose::Meta::Role
595 - moved Moose::Meta::Role::Method into
946289d1 596 its own file.
4734114b 597
43123819 598 * Moose::Meta::Attribute
4734114b 599 - changed how we do type checks so that
600 we reduce the overall cost, but still
7623f774 601 retain correctness.
946289d1 602 *** API CHANGE ***
4734114b 603 - moved accessor generation methods to
604 Moose::Meta::Method::Accessor to
605 conform to the API changes from
946289d1 606 Class::MOP 0.36
4734114b 607
43123819 608 * Moose::Meta::TypeConstraint
609 - changed how constraints are compiled
610 so that we do less recursion and more
4734114b 611 iteration. This makes the type check
43123819 612 faster :)
946289d1 613 - moved Moose::Meta::TypeConstraint::Union
614 into its own file
4734114b 615
946289d1 616 * Moose::Meta::Method::Accessor
4734114b 617 - created this from methods formerly found in
946289d1 618 Moose::Meta::Attribute
4734114b 619
946289d1 620 * Moose::Meta::Role::Method
621 - moved this from Moose::Meta::Role
4734114b 622
946289d1 623 * Moose::Meta::Method::Overriden
624 - moved this from Moose::Meta::Class
4734114b 625
946289d1 626 * Moose::Meta::TypeConstraint::Union
627 - moved this from Moose::Meta::TypeConstraint
37ee30c9 628
3ec7b7a3 6290.14 Mon. Oct. 9, 2006
4fd69d6c 630
631 * Moose::Meta::Attribute
4734114b 632 - fixed lazy attributes which were not getting
4fd69d6c 633 checked with the type constraint (thanks ashley)
634 - added tests for this
4734114b 635 - removed the over-enthusiastic DWIMery of the
636 automatic ArrayRef and HashRef defaults, it
3ec7b7a3 637 broke predicates in an ugly way.
638 - removed tests for this
4fd69d6c 639
c0c41f76 6400.13 Sat. Sept. 30, 2006
093b12c2 641 ++ NOTE ++
4734114b 642 This version of Moose *must* have Class::MOP 0.35 in order
643 to work correctly. A number of small internal tweaks have
093b12c2 644 been made in order to be compatible with that release.
645
3c2bc5e2 646 * Moose
647 - Removed the use of UNIVERSAL::require to be a better
4734114b 648 symbol table citizen and remove a dependency
093b12c2 649 (thanks Adam Kennedy)
3c2bc5e2 650
2a0f3bd3 651 **~~ removed experimental & undocumented feature ~~**
4734114b 652 - commented out the 'method' and 'self' keywords, see the
2a0f3bd3 653 comments for more info.
654
e95c7c42 655 * Moose::Cookbook
4734114b 656 - added a FAQ and WTF files to document frequently
e95c7c42 657 asked questions and common problems
4734114b 658
3f7376b0 659 * Moose::Util::TypeConstraints
0a5bd159 660 - added GlobRef and FileHandle type constraint
3f7376b0 661 - added tests for this
4734114b 662
3f7376b0 663 * Moose::Meta::Attribute
664 - if your attribute 'isa' ArrayRef of HashRef, and you have
665 not explicitly set a default, then make the default DWIM.
4734114b 666 This will also work for subtypes of ArrayRef and HashRef
94b8bbb8 667 as well.
668 - you can now auto-deref subtypes of ArrayRef or HashRef too.
669 - new test added for this (thanks to ashley)
4734114b 670
b805c70c 671 * Moose::Meta::Role
672 - added basic support for runtime role composition
4734114b 673 but this is still *highly experimental*, so feedback
0a5bd159 674 is much appreciated :)
b805c70c 675 - added tests for this
e95c7c42 676
0a5bd159 677 * Moose::Meta::TypeConstraint
678 - the type constraint now handles the coercion process
4734114b 679 through delegation, this is to support the coercion
0a5bd159 680 of unions
4734114b 681
0a5bd159 682 * Moose::Meta::TypeConstraint::Union
4734114b 683 - it is now possible for coercions to be performed
0a5bd159 684 on a type union
685 - added tests for this (thanks to konobi)
686
e95c7c42 687 * Moose::Meta::TypeCoercion
4734114b 688 - properly capturing error when type constraint
e95c7c42 689 is not found
690
3c2bc5e2 691 * Build.PL
692 - Scalar::Util 1.18 is bad on Win32, so temporarily
693 only require version 1.17 for Win32 and cygwin.
4734114b 694 (thanks Adam Kennedy)
3c2bc5e2 695
40e89659 6960.12 Sat. Sept. 1, 2006
2bdd01cd 697 * Moose::Cookbook
698 - Recipe5 (subtypes & coercion) has been written
4734114b 699
2bdd01cd 700 * Moose
4734114b 701 - fixed "bad meta" error message to be more descriptive
702 - fixed &unimport to not remove the &inner and &super
3279ab4a 703 keywords because we need to localize them.
68efb014 704 - fixed number of spelling/grammer issues, thanks Theory :)
4734114b 705
0558683c 706 **~~ experimental & undocumented feature ~~**
4734114b 707 - added the method and self keywords, they are basically
68efb014 708 just sugar, and they may not stay around.
4734114b 709
f742dfef 710 * Moose::Object
4734114b 711 - added &dump method to easily Data::Dumper
68efb014 712 an object
4734114b 713
b26e162e 714 * Moose::Meta::TypeConstraint
715 - added the &is_a_type_of method to check both the current
716 and the subtype of a method (similar to &isa with classes)
f008ac1f 717
68efb014 718 * Moose::Meta::Role
719 - this is now a subclass of Class::MOP::Module, and no longer
4734114b 720 creates the _role_meta ugliness of before.
68efb014 721 - fixed tests to reflect this change
4734114b 722
8c835eba 7230.11 Wed. July 12, 2006
31f8ec72 724 * Moose
725 - added an &unimport method to remove all the keywords
4734114b 726 that Moose will import, simply add 'no Moose' to the
727 bottom of your class file.
728
31f8ec72 729 * t/
4734114b 730 - fixed some test failures caused by a forgotten test
31f8ec72 731 dependency.
732
864cd714 7330.10 Thurs. July 6, 2006
01a8e221 734 * Moose
735 - improved error message when loading modules so
736 it is less confusing when you load a role.
4734114b 737 - added &calculate_all_roles method to
2b14ac61 738 Moose::Meta::Class and Moose::Meta::Role
4734114b 739
2b14ac61 740 NOTE:
741 This module has been tested against Class::MOP 0.30
4734114b 742 but it does not yet utilize the optimizations
2b14ac61 743 it makes available. Stay tuned for that ;)
4734114b 744
2b14ac61 7450.09_03 Fri. June 23, 2006
715ea0b7 746 ++ DEVELOPER RELEASE ++
4276ccb4 747 * Moose
748 - 'use strict' and 'use warnings' are no longer
4734114b 749 needed in Moose classes, Moose itself will
4276ccb4 750 turn them on for you.
751 - added tests for this
1341f10c 752 - moved code from exported subs to private methods
753 in Moose::Meta::Class
4734114b 754
4276ccb4 755 * Moose::Role
4734114b 756 - as with Moose, strict and warnings are
4276ccb4 757 automatically turned on for you.
4734114b 758 - added tests for this
759
e39d707f 760 * Moose::Meta::Role
761 - now handles an edge case for override errors
762 - added tests for this
b7f2d25b 763 - added some more edge case tests
1341f10c 764
43d599e5 7650.09_02 Tues. May 16, 2006
715ea0b7 766 ++ DEVELOPER RELEASE ++
2c0cbef7 767 * Moose
768 - added prototypes to the exported subs
43d599e5 769 - updated docs
4734114b 770
2c0cbef7 771 * Moose::Role
4734114b 772 - added prototypes to the exported subs
43d599e5 773 - updated docs
4734114b 774
2c0cbef7 775 * Moose::Util::TypeConstraints
4734114b 776 - cleaned up prototypes for the subs
777 - updated docs
2c0cbef7 778
72c4f6d1 7790.09_01 Fri. May 12, 2006
780 ++ DEVELOPER RELEASE ++
4734114b 781 - This release works in combination with
782 Class::MOP 0.29_01, it is a developer
783 release because it uses the a new
72c4f6d1 784 instance sub-protocol and a fairly
4734114b 785 complete Role implementation. It has
72c4f6d1 786 not yet been optimized, so it slower
4734114b 787 the the previous CPAN version. This
788 release also lacks good updated docs,
72c4f6d1 789 the official release will have updated docs.
790
4734114b 791 * Moose
98aae381 792 - refactored the keyword exports
4734114b 793 - 'with' now checks Role validaity and
db1ab48d 794 accepts more than one Role at a time
4734114b 795 - 'extends' makes metaclass adjustments as
98aae381 796 needed to ensure metaclass compatability
4734114b 797
72c4f6d1 798 * Moose::Role
799 - refactored the keyword exports
4734114b 800 - 'with' now checks Role validaity and
72c4f6d1 801 accepts more than one Role at a time
4734114b 802
98aae381 803 * Moose::Util::TypeConstraints
4734114b 804 - added the 'enum' keyword for simple
805 string enumerations which can be used as
98aae381 806 type constraints
db1ab48d 807 - see example of usage in t/202_example.t
4734114b 808
98aae381 809 * Moose::Object
810 - more careful checking of params to new()
4734114b 811
72c4f6d1 812 * Moose::Meta::Role
813 - much work done on the role composition
4734114b 814 - many new tests for conflict detection
72c4f6d1 815 and composition edge cases
4734114b 816 - not enough documentation, I suggest
817 looking at the tests
818
98aae381 819 * Moose::Meta::Instance
4734114b 820 - added new Instance metaclass to support
98aae381 821 the new Class::MOP instance protocol
4734114b 822
98aae381 823 * Moose::Meta::Class
4734114b 824 - some small changes to support the new
98aae381 825 instance protocol
72c4f6d1 826 - some small additions to support Roles
4734114b 827
98aae381 828 * Moose::Meta::Attribute
829 - some improvements to the accessor generation code
830 by nothingmuch
4734114b 831 - some small changes to support the new
98aae381 832 instance protocol
4734114b 833 - (still somewhat) experimental delegation support
98aae381 834 with the 'handles' option
835 - added several tests for this
db1ab48d 836 - no docs for this yet
98aae381 837
35c8b8f2 8380.05 Thurs. April 27, 2006
2d562421 839 * Moose
840 - keywords are now exported with Sub::Exporter
841 thanks to chansen for this commit
4734114b 842 - has keyword now takes a 'metaclass' option
843 to support custom attribute meta-classes
590868a3 844 on a per-attribute basis
4734114b 845 - added tests for this
daea75c9 846 - the 'has' keyword not accepts inherited slot
4734114b 847 specifications (has '+foo'). This is still an
daea75c9 848 experimental feature and probably not finished
4734114b 849 see t/038_attribute_inherited_slot_specs.t for
daea75c9 850 more details, or ask about it on #moose
fcb7afc2 851 - added tests for this
4734114b 852
2d562421 853 * Moose::Role
854 - keywords are now exported with Sub::Exporter
855
5204cd52 856 * Moose::Utils::TypeConstraints
cce8198b 857 - reorganized the type constraint hierarchy, thanks
4734114b 858 to nothingmuch and chansen for his help and advice
cce8198b 859 on this
860 - added some tests for this
7eaef7ad 861 - keywords are now exported with Sub::Exporter
35c8b8f2 862 thanks to chansen for this commit
5204cd52 863
d500266f 864 * Moose::Meta::Class
865 - due to changes in Class::MOP, we had to change
866 construct_instance (for the better)
4734114b 867
d500266f 868 * Moose::Meta::Attribute
4734114b 869 - due to changes in Class::MOP, we had to add the
d500266f 870 initialize_instance_slot method (it's a good thing)
4734114b 871
cce8198b 872 * Moose::Meta::TypeConstraint
4734114b 873 - added type constraint unions
c07af9d2 874 - added tests for this
cce8198b 875 - added the is_subtype_of predicate method
876 - added tests for this
d500266f 877
02a0fb52 8780.04 Sun. April 16th, 2006
1331430a 879 * Moose::Role
880 - Roles can now consume other roles
881 - added tests for this
4734114b 882 - Roles can specify required methods now with
1331430a 883 the requires() keyword
884 - added tests for this
885
bdabd620 886 * Moose::Meta::Role
887 - ripped out much of it's guts ,.. much cleaner now
4734114b 888 - added required methods and correct handling of
fa1be058 889 them in apply() for both classes and roles
890 - added tests for this
4734114b 891 - no longer adds a does() method to consuming classes
1331430a 892 it relys on the one in Moose::Object
4734114b 893 - added roles attribute and some methods to support
1331430a 894 roles consuming roles
8c9d74e7 895
896 * Moose::Meta::Attribute
897 - added support for triggers on attributes
898 - added tests for this
4734114b 899 - added support for does option on an attribute
02a0fb52 900 - added tests for this
4734114b 901
8c9d74e7 902 * Moose::Meta::Class
4734114b 903 - added support for attribute triggers in the
8c9d74e7 904 object construction
905 - added tests for this
4734114b 906
256903b6 907 * Moose
4734114b 908 - Moose no longer creates a subtype for your class
909 if a subtype of the same name already exists, this
256903b6 910 should DWIM in 99.9999% of all cases
4734114b 911
256903b6 912 * Moose::Util::TypeConstraints
4734114b 913 - fixed bug where incorrect subtype conflicts were
256903b6 914 being reported
8c9d74e7 915 - added test for this
4734114b 916
8c9d74e7 917 * Moose::Object
918 - this class can now be extended with 'use base' if
919 you need it, it properly loads the metaclass class now
920 - added test for this
bdabd620 921
0677220d 9220.03_02 Wed. April 12, 2006
05d9eaf6 923 * Moose
924 - you must now explictly use Moose::Util::TypeConstraints
925 it no longer gets exported for you automatically
4734114b 926
05d9eaf6 927 * Moose::Object
928 - new() now accepts hash-refs as well as key/value lists
0677220d 929 - added does() method to check for Roles
930 - added tests for this
05d9eaf6 931
0677220d 932 * Moose::Meta::Class
4734114b 933 - added roles attribute along with the add_role() and
0677220d 934 does_role() methods
4734114b 935 - added tests for this
0677220d 936
937 * Moose::Meta::Role
4734114b 938 - now adds a does() method to consuming classes
0677220d 939 which tests the class's hierarchy for roles
940 - added tests for this
941
9420.03_01 Mon. April 10, 2006
e9ec68d6 943 * Moose::Cookbook
76d37e5a 944 - added new Role recipe (no content yet, only code)
4734114b 945
e9ec68d6 946 * Moose
947 - added 'with' keyword for Role support
948 - added test and docs for this
949 - fixed subtype quoting bug
4734114b 950 - added test for this
e9ec68d6 951
952 * Moose::Role
953 - Roles for Moose
954 - added test and docs
76d37e5a 955
956 * Moose::Util::TypeConstraints
957 - added the message keyword to add custom
4734114b 958 error messages to type constraints
959
e9ec68d6 960 * Moose::Meta::Role
961 - the meta role to support Moose::Role
962 - added tests and docs
4734114b 963
e9ec68d6 964 * Moose::Meta::Class
4734114b 965 - moved a number of things from Moose.pm
966 to here, they should have been here
e9ec68d6 967 in the first place
968
969 * Moose::Meta::Attribute
970 - moved the attribute option macros here
971 instead of putting them in Moose.pm
e185c027 972
76d37e5a 973 * Moose::Meta::TypeConstraint
4734114b 974 - added the message attributes and the
76d37e5a 975 validate method
976 - added tests and docs for this
977
0ac928d2 9780.03 Thurs. March 30, 2006
e9bb8a31 979 * Moose::Cookbook
4734114b 980 - added the Moose::Cookbook with 5 recipes,
e9bb8a31 981 describing all the stuff Moose can do.
982
d7f17ebb 983 * Moose
984 - fixed an issue with &extends super class loading
4734114b 985 it now captures errors and deals with inline
986 packages correctly (bug found by mst, solution
d7f17ebb 987 stolen from alias)
159da176 988 - added super/override & inner/augment features
989 - added tests and docs for these
4734114b 990
d7f17ebb 991 * Moose::Object
4734114b 992 - BUILDALL now takes a reference of the %params
993 that are passed to &new, and passes that to
d7f17ebb 994 each BUILD as well.
4734114b 995
471c4f09 996 * Moose::Util::TypeConstraints
997 - Type constraints now survive runtime reloading
998 - added test for this
d7f17ebb 999
8339fae2 1000 * Moose::Meta::Class
4734114b 1001 - fixed the way attribute defaults are handled
8339fae2 1002 during instance construction (bug found by chansen)
1003
d7f17ebb 1004 * Moose::Meta::Attribute
1005 - read-only attributes now actually enforce their
4734114b 1006 read-only-ness (this corrected in Class::MOP as
9deed647 1007 well)
d7f17ebb 1008
076c81ed 10090.02 Tues. March 21, 2006
fc5609d2 1010 * Moose
4734114b 1011 - many more tests, fixing some bugs and
b841b2a3 1012 edge cases
b841b2a3 1013 - &extends now loads the base module with
4734114b 1014 UNIVERSAL::require
1015 - added UNIVERSAL::require to the
b841b2a3 1016 dependencies list
6ba6d68c 1017 ** API CHANGES **
4734114b 1018 - each new Moose class will also create
1019 and register a subtype of Object which
1020 correspond to the new Moose class.
1021 - the 'isa' option in &has now only
1022 accepts strings, and will DWIM in
b841b2a3 1023 almost all cases
4734114b 1024
b841b2a3 1025 * Moose::Util::TypeConstraints
1026 - added type coercion features
1027 - added tests for this
4734114b 1028 - added support for this in attributes
b841b2a3 1029 and instance construction
6ba6d68c 1030 ** API CHANGES **
4734114b 1031 - type construction no longer creates a
b841b2a3 1032 function, it registers the type instead.
4734114b 1033 - added several functions to get the
1034 registered types
6ba6d68c 1035
1036 * Moose::Object
4734114b 1037 - BUILDALL and DEMOLISHALL were broken
6ba6d68c 1038 because of a mis-named hash key, Whoops :)
4734114b 1039
b841b2a3 1040 * Moose::Meta::Attribute
1041 - adding support for coercion in the
1042 autogenerated accessors
4734114b 1043
b841b2a3 1044 * Moose::Meta::Class
1045 - adding support for coercion in the
4734114b 1046 instance construction
6ba6d68c 1047
1048 * Moose::Meta::TypeConstraint
1049 * Moose::Meta::TypeCoercion
4734114b 1050 - type constraints and coercions are now
6ba6d68c 1051 full fledges meta-objects
fc5609d2 1052
e522431d 10530.01 Wed. March 15, 2006
900466d6 1054 - Moooooooooooooooooose!!!