test for eager defaults in role applied to object
[gitmo/Moo.git] / Changes
CommitLineData
31bcb363 1 - fix constructor generated when creating a class with
2 create_class_with_roles when the superclass constructor hasn't been
3 generated yet
b947ce01 4 - fix extending the constructor generator using Moo classes/roles
2f106a30 5 - updated META files to list prerequisites in proper phases
d9a1c592 6 - $Method::Generate::Accessor::CurrentAttribute hashref contains
7 information about attribute currently being processed (available
8 to exception objects thrown by "isa" and "coerce")
c316ebe5 9 - properly die when composing a module that isn't a Role
e3ab82d3 10 - fix passing attribute parameters for traits when inflating to Moose
0d1f0f0a 11 - fix inflating method modifiers applied to multiple methods
7770328e 12 - fix documentation for Sub::Quote::capture_unroll
13 - add documentation noting Sub::Quote's use of strictures
3ae86463 14 - fix FOREIGNBUILDARGS not being called if no attributes created
c316ebe5 15
9e320832 161.002000 - 2013-05-04
675ab818 17 - add 'moosify' attribute key to provide code for inflating to Moose
b6ab6837 18 - fix warnings about unknown attribute parameters on metaclass inflation
2d594586 19 - don't pass 'handles' down when doing 'has +' to avoid unDWIMmy explosions
513a3b5d 20 - throw a useful exception when typemap doesn't return a value
a2711acc 21 - avoid localising @_ when not required for Sub::Quote
5d20f26c 22 - successfully inflate a metaclass for attributeless classes (RT#86415)
d2b4b893 23 - fix false default values used with non-lazy accessors
dffdcbb9 24 - stop built values that fail isa checks still getting stored in the object
25 - stop lazy+weak_ref accessors re-building their value on every call
26 - make lazy+weak_ref accessors return undef if built value isn't already
27 stored elsewhere (Moose compatibility)
28 - stop isa checks being called on every access for lazy attributes
c3e9ea21 29 - bump Devel::GlobalDestruction dependency to fix warning on cleanup
30 when run under -c (RT#78617)
9a3fc505 31 - document Moose type constraint creation for roles and classes
32 (actually fixed in 1.001000)
33
4d943861 341.001000 - 2013-03-16
b24bf365 35 - add support for FOREIGNBUILDARGS when inheriting from non-Moo classes
d2b4b893 36 - non-ref default values are allowed without using a sub
08b9511a 37 - has will refuse to overwrite locally defined subs with generated
38 accessors.
072d158f 39 - added more meta resources and added more support relevant links into
40 the POD documentation
85dbf303 41 - clarify in docs that default and built values won't call triggers
42 (RT#82310)
876b1e94 43 - expand is => 'lazy' doc to make it clear that you can make rw lazy
44 attributes if you really want to
baa7d706 45 - handles => "RoleName" tries to load the module
43a43bff 46 - fix delegation to false/undef attributes (RT#83361)
baa7d706 47
977e618c 481.000008 - 2013-02-06
fa93bfb2 49 - Re-export on 'use Moo' after 'no Moo'
50 - Export meta() into roles (but mark as non-method to avoid composing it)
b1a9585f 51 - Don't generate an accessor for rw attributes if reader+writer both set
4752c97b 52 - Support builder => sub {} ala MooseX::AttributeShortcuts
12a1f8f1 53 - Fix 'no Moo;' to preserve non-sub package variables
96b09f21 54 - Switch to testing for Mouse::Util->can('find_meta') to avoid
55 exploding on ancient Mouse installs
1c22aa17 56 - Fix loading order bug that results in _install_coderef being treated
57 as indirect object notation
58
aac23632 591.000007 - 2012-12-15
a328549b 60 - Correctly handle methods dragged along by role composition
1791ba32 61 - Die if Moo and Moo::Role are imported into the same package
62
1217fd85 631.000006 - 2012-11-16
141b507a 64 - Don't use $_ as loop variable when calling arbitrary code (RT#81072)
1159c8c2 65 - Bump Role::Tiny prereq to fix method modifier breakage on 5.10.0
141b507a 66
de0a5897 671.000005 - 2012-10-23
5f0ba39b 68 - fix POD typo (RT#80060)
234f614d 69 - include init_arg name in constructor errors (RT#79596)
cc1d7a92 70 - bump Class::Method::Modifiers dependency to avoid warnings on 5.8
5f0ba39b 71
2241bc03 721.000004 - 2012-10-03
1d17c7c1 73 - allow 'has \@attributes' like Moose does
74
76c1458f 751.000003 - 2012-08-09
f3dc0ac6 76 - make setter for weak_ref attributes return the value
77
13c71696 781.000002 - 2012-08-04
7d0a35fa 79 - remove Devel::GlobalDestruction fallback inlining because we can now
80 depend on 0.08 which uses Sub::Exporter::Progressive
eea41fb2 81 - honour BUILDARGS when calling $meta->new_object on behalf of Moose
5a1cfeaa 82 - throw an error on invalid builder (RT#78479)
3b4a915a 83 - fix stupid typo in new Sub::Quote section
84
87d4cd4b 851.000001 - 2012-07-21
52e8f144 86 - documentation tweaks and cleanup
c9a5dcbd 87 - ignore required when default or builder is present
c687d016 88 - document Moo versus Any::Moose in brief with article link
c9f73a63 89 - remove quote_sub from SYNOPSIS and has docs, expand Sub::Quote section
159d9c5b 90 - localize @_ when inlining quote_sub'ed isa checks (fixes lazy+isa+default)
9f8d2cdb 91 - ensure constructor gets regenerated if forced early by metaclass inflation
92
2bc97744 931.000000 - 2012-07-18
71bd6a81 94 - clean up doc language and expand on Moo and Moose
2d592c35 95 - error prefixes for isa and coerce exceptions
a297a9ab 96 - unmark Moo and Moose as experimental since it's relatively solid now
a668eb67 97 - convert isa and coerce info from external role attributes
c85a5738 98 - clear method cache after metaclass generation to fix autoclean bug
99
428bc092 1000.091014 - 2012-07-16
ac34668b 101 - load overload.pm explicitly for overload::StrVal
102
d40030ca 1030.091013 - 2012-07-15
17c4135a 104 - useful and detailed errors for coerce in attrib generation
105
cffde738 1060.091012 - 2012-07-15
3202e039 107 - useful and detailed errors for default checker in attrib generation
88aaa04a 108 - throw an error when trying to extend a role
3202e039 109
0b0cbc97 1100.091011 - 2012-06-27
9836a6ee 111 - re-add #web-simple as development IRC
ee22f92c 112 - don't assume Scalar::Util is imported into the current package
9836a6ee 113
5614d71e 1140.091010 - 2012-06-26
ef21bc32 115 - isa checks on builders
9c820461 116 - additional quote_sub docs
0689a5ab 117 - remove multi-populate code to fix exists/defined new() bug
627063f7 118 - document move to #moose and include repository metadata
108f8ddc 119 - no Moo and no Moo::Role
34a69e36 120 - squelch used only once warnings for $Moo::HandleMoose::MOUSE
6e77b8df 121 - MooClass->meta
346177ba 122 - subconstructor handling for Moose classes
123
e9ec1bcf 1240.091009 - 2012-06-20
eda5c714 125 - squelch redefine warnings in the coderef installation code
126
e94920cb 1270.091008 - 2012-06-19
1e0dc318 128 - bump Role::Tiny dependency to get working modifiers under composition
9f10cfe0 129 - handle "has '+foo'" for attrs from superclass or consumed role
13e41b70 130 - document override -> around translation
f57f1133 131 - use D::GD if installed rather than re-adding it as a requirement
132
aeb50d03 1330.091007 - 2012-05-17
d620629a 134 - remove stray reference to Devel::GlobalDestruction
135
bc9a3b53 1360.091006 - 2012-05-16
8f7cf9cf 137 - drop a couple of dependencies by minor releases we don't strictly need
138
2a48735a 1390.091005 - 2012-05-14
19e0e749 140 - temporary switch to an inlined in_global_destruction to avoid needing
141 to fatpack Sub::Exporter for features we don't use
78a56d87 142 - re-order is documentation to give readonly styles more prominence
6998abed 143 - a weakened value should still be returned on set (fixes lazy + weak_ref)
3d49ee27 144 - add an explicit return to all exported subs so people don't accidentally
145 rely on the return value
146
83f4acfd 1470.091004 - 2012-05-07
c100c04c 148 - also inhale from Mouse
c4074652 149 - clarify how isa and coerce interact
9dc13bea 150 - support isa and coerce together for Moose
e9290d4a 151 - guard _accessor_maker_for calls in Moo::Role in case Moo isn't loaded
152 - reset handlemoose state on mutation in case somebody reified the
153 metaclass too early
154
cd8a0641 1550.091003 - 2012-05-06
71db76ce 156 - improve attribute option documentation
f9755246 157 - update the incompatibilities section since we're less incompatible now
167455a0 158 - fix coderef naming to avoid confusing autoclean
159
f785a065 1600.091002 - 2012-05-05
a3411285 161 - exclude union roles and same-role-as-self from metaclass inflation
4a79464d 162 - inhale Moose roles before checking for composition conflicts
a047096b 163 - enable Moo::sification if only Moo::Role is loaded and not Moo
57d402ef 164 - preserve attribute ordering
02e9ef74 165 - factor out accessor generation code a bit more to enable extension
166
53d6fe2c 1670.091001 - 2012-05-02
e0daf7da 168 - bump Role::Tiny dependency to require de-strictures-ed version
078250e3 169 - fix test failure where Class::XSAccessor is not available
170
9e2a88d9 1710.091000 - 2012-04-27
239d4711 172 - document MX::AttributeShortcuts 009+ support
1fce5bc9 173 - documentation for the metaclass inflation code
09233107 174 - better error message for broken BUILDARGS
6b90ff03 175 - provide 'no Moo::sification' to forcibly disable metaclass inflation
176 - switch to Devel::GlobalDestruction to correctly disarm the
177 Moo::sification trigger under threads
3b0d7efd 178 - make extends after has work
575ba24c 179 - name subs if Sub::Name is available for better stracktraces
46269e18 180 - undefer all subs before creating a concrete Moose metaclass
2a577e53 181 - fix bug in _load_module where global vars could cause mis-detection
182 of the module already being loaded
183
ad529ae8 1840.009_017 - 2012-04-16
7ecb13a6 185 - mangle constructor meta-method on inflation so make_immutable works
76ab3977 186 - fix possible infinite loop caused by subconstructor code
187
69feb0b8 1880.009_016 - 2012-04-12
dbae620d 189 - don't accidentally load Moo::HandleMoose during global destruction
4964e20f 190 - better docs for trigger (and initializer's absence)
191
cb338915 1920.009_015 - 2012-04-11
2bb6aaa3 193 - Complete support for MooseX::AttributeShortcuts 0.009
a84066c7 194 - Allow Moo classes to compose Moose roles
5f453648 195 - Introduce Moo::HandleMoose, which should allow Moo classes and roles
55afe266 196 to be treated as Moose classes/roles. Supported so far:
197 - Some level of attributes and methods for both classes and roles
198 - Required methods in roles
146fb407 199 - Method modifiers in roles (they're already applied in classes)
37de175a 200 - Type constraints
5f453648 201
b92b93d7 2020.009014 - 2012-03-29
70b4b430 203 - Split Role::Tiny out into its own dist
160c2c2c 204 - Fix a bug where coercions weren't called on lazy default/builder returns
cf62c989 205 - Switch Moo::Utils to using Module::Runtime, and add the 5.8 %INC
206 leakage fix into Role::Tiny's _load_module to provide partial parity
5902c1fc 207 - Update incompatibilities with Moose documentation
55d91f64 208 - Remove Sub::Quote's outstanding queue since it doesn't actually slow
209 things down to do it this way and makes debugging easier.
faa9ce11 210 - Revert 'local $@' around require calls to avoid triggering Unknown Error
8b14bafd 211 - Explicitly require Role::Tiny in Role::Tiny::With (RT#70446)
0fe2ad8c 212 - Fix spurious 'once' warnings under perl -w
8b14bafd 213
d1ea012f 2140.009013 - 2011-12-23
3ecbabc3 215 - fix up Class::XSAccessor version check to be more robust
216 - improved documentation
673eb498 217 - fix failures on perls < 5.8.3
5f578bd3 218 - fix test failures on cygwin
3ecbabc3 219
c391bf14 2200.009012 - 2011-11-15
301616bb 221 - make Method::Generate::Constructor handle $obj->new
2f57f81a 222 - fix bug where constants containing a reference weren't handled correctly
7b8177f8 223 (ref(\[]) is 'REF' not 'SCALAR', ref(\v1) is 'VSTRING')
2f57f81a 224
31a69e28 2250.009011 - 2011-10-03
31eec6e8 226 - add support for DEMOLISH
a17be455 227 - add support for BUILDARGS
228
b4307559 2290.009010 - 2011-07-20
2ab4ee71 230 - missing new files for Role::Tiny::With
231
5f36ef7c 2320.009009 - 2011-07-20
8bbe7634 233 - remove the big scary warning because we seem to be mostly working now
33d35735 234 - perl based getter dies if @_ > 1 (XSAccessor already did)
11f7a042 235 - add Role::Tiny::With for use in classes
e0e12d16 236 - automatically generate constructors in subclasses when required so that
237 subclasses with a BUILD method but no attributes get it honoured
4ad03c7f 238 - add coerce handling
239
d23e6d72 2400.009008 - 2011-06-03
5e03b55c 241 - transfer fix to _load_module to Role::Tiny and make a note it's an inline
2215d4b9 242 - Bring back 5.8.1 compat
243
21290141 2440.009007 - 2011-02-25
a958e36d 245 - I botched the copyright. re-disting.
246
1a58521b 2470.009006 - 2011-02-25
d02da2bc 248 - handle non-lazy default and builder when init_arg is undef
40f3e3aa 249 - add copyright and license info for downstream packagers
8a0ad775 250 - weak ref checking for Sub::Quote to avoid bugs on refaddr reuse
c69190f1 251 - Switch composed role names to be a valid package name
252
86fd58e7 2530.9.5 Tue Jan 11 2011
ba37527b 254 - Fix clobberage of runtime-installed wrappers by Sub::Defer
53875e2c 255 - Fix nonMoo constructor firing through multiple layers of Moo
c4570291 256 - Fix bug where nonMoo is mistakenly detected given a Moo superclass
257 with no attributes (and hence no own constructor)
258
d6276203 2590.9.4 Mon Dec 13 2010
de5c0e53 260 - Automatic detection on non-Moo superclasses
261
9e46e99a 2620.9.3 Sun Dec 5 2010
5ed7d68a 263 - Fix _load_module to deal with pre-existing subpackages
264
2cb47d6e 2650.9.2 Wed Nov 17 2010
5d5bb71d 266 - Add explanation of Moo's existence
786e5ba0 267 - Change @ISA setting mechanism to deal with a big in 5.10.0's get_linear_isa
268 - Change 5.10 checks to >= to not try and load MRO::Compat on 5.10.0
39d272e7 269 - Make 'perl -Moo' DTRT
270
2cb47d6e 2710.9.1 Tue Nov 16 2010
ec6bda11 272 - Initial release