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