X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Changes;h=73a6d2a1e9518450108c88dc91591b146faeecbb;hb=45d9203629e8ebb04b282e900faa9efcf3869724;hp=8439e5c8ca35b4e00412513cc020c29946157a7f;hpb=addac5ee03b5858798bcb1aa55d4d069e4d37179;p=gitmo%2FMoose.git diff --git a/Changes b/Changes index 8439e5c..73a6d2a 100644 --- a/Changes +++ b/Changes @@ -1,28 +1,55 @@ Also see Moose::Manual::Delta for more details of, and workarounds for, noteworthy changes. -[NEXT] +NEXT + + [API CHANGES] + + * Roles now have their own default attribute metaclass to use during + application to a class, rather than just using the class's + attribute_metaclass. This is also overridable via ::MetaRole, with the + applied_attribute key in the role_metaroles hashref (doy). + + [ENHANCEMENTS] + + * We now load the roles needed for native delegations only as needed. This + speeds up the compilation time for Moose itself. (doy) + + +1.19 Tue, Nov 2, 2010 + + [BUG FIXES] + + * There was still one place in the code trying to load Test::Exception + instead of Test::Fatal. (Karen Etheridge) + + +1.18 Sun, Oct 31, 2010 [ENHANCEMENTS] * Type constraint objects now have an assert_coerce method which will either return a valid value or throw an error. (rjbs) - * We now warn when an accessor for one attribute ovewrites an accessor for + * We now warn when an accessor for one attribute overwrites an accessor for another attribute. RT #57510. (Dave Rolsky) [BUG FIXES] * The native Array and Hash delegation methods now coerce individual new - members, if the _member type_ has a coercion. In other words, if the array + members if the _member type_ has a coercion. In other words, if the array reference is defined as an ArrayRef[DateTime], and you've defined a coercion from Int to DateTime, then pushing an integer via a delegation method will coerce the integer to a DateTime object. Reported by Karen Etheridge. RT #62351. (Dave Rolsky) - * Using a regexp to define delegation for a class which was not yet loaded - caused an error when the class was loaded later. Reported by Max - Kanat-Alexander. RT #60596. (Dave Rolsky) + * An attribute using native delegations did not always properly coerce and + type check a lazily set default value. (doy and Dave Rolsky) + + * Using a regexp to define delegations for a class which was not yet loaded + did not actually work, but did not explicitly fail. However, it caused an + error when the class was loaded later. Reported by Max Kanat-Alexander. RT + #60596. (Dave Rolsky) * Attempting to delegate to a class or role which is not yet loaded will now throw an explicit error. (Dave Rolsky)