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