Add a dep for Test::LongString
[gitmo/Moose.git] / Changes
CommitLineData
e522431d 1Revision history for Perl extension Moose
2
4276ccb4 30.09_03
4 * Moose
5 - 'use strict' and 'use warnings' are no longer
6 needed in Moose classes, Moose itself will
7 turn them on for you.
8 - added tests for this
1341f10c 9 - moved code from exported subs to private methods
10 in Moose::Meta::Class
4276ccb4 11
12 * Moose::Role
13 - as with Moose, strict and warnings are
14 automatically turned on for you.
15 - added tests for this
16
1341f10c 17 * Moose::Meta::Class
18 - now handles some moose-specific options in
19 &create
e39d707f 20
21 * Moose::Meta::Role
22 - now handles an edge case for override errors
23 - added tests for this
b7f2d25b 24 - added some more edge case tests
1341f10c 25
43d599e5 260.09_02 Tues. May 16, 2006
2c0cbef7 27 * Moose
28 - added prototypes to the exported subs
43d599e5 29 - updated docs
2c0cbef7 30
31 * Moose::Role
32 - added prototypes to the exported subs
43d599e5 33 - updated docs
2c0cbef7 34
35 * Moose::Util::TypeConstraints
36 - cleaned up prototypes for the subs
43d599e5 37 - updated docs
2c0cbef7 38
72c4f6d1 390.09_01 Fri. May 12, 2006
40 ++ DEVELOPER RELEASE ++
41 - This release works in combination with
42 Class::MOP 0.29_01, it is a developer
43 release because it uses the a new
44 instance sub-protocol and a fairly
45 complete Role implementation. It has
46 not yet been optimized, so it slower
47 the the previous CPAN version. This
48 release also lacks good updated docs,
49 the official release will have updated docs.
50
98aae381 51 * Moose
52 - refactored the keyword exports
db1ab48d 53 - 'with' now checks Role validaity and
54 accepts more than one Role at a time
98aae381 55 - 'extends' makes metaclass adjustments as
56 needed to ensure metaclass compatability
57
72c4f6d1 58 * Moose::Role
59 - refactored the keyword exports
60 - 'with' now checks Role validaity and
61 accepts more than one Role at a time
62
98aae381 63 * Moose::Util::TypeConstraints
64 - added the 'enum' keyword for simple
65 string enumerations which can be used as
66 type constraints
db1ab48d 67 - see example of usage in t/202_example.t
98aae381 68
69 * Moose::Object
70 - more careful checking of params to new()
71
72c4f6d1 72 * Moose::Meta::Role
73 - much work done on the role composition
74 - many new tests for conflict detection
75 and composition edge cases
76 - not enough documentation, I suggest
77 looking at the tests
78
98aae381 79 * Moose::Meta::Instance
80 - added new Instance metaclass to support
81 the new Class::MOP instance protocol
82
83 * Moose::Meta::Class
84 - some small changes to support the new
85 instance protocol
72c4f6d1 86 - some small additions to support Roles
98aae381 87
88 * Moose::Meta::Attribute
89 - some improvements to the accessor generation code
90 by nothingmuch
91 - some small changes to support the new
92 instance protocol
93 - (still somewhat) experimental delegation support
94 with the 'handles' option
95 - added several tests for this
db1ab48d 96 - no docs for this yet
98aae381 97
35c8b8f2 980.05 Thurs. April 27, 2006
2d562421 99 * Moose
100 - keywords are now exported with Sub::Exporter
101 thanks to chansen for this commit
590868a3 102 - has keyword now takes a 'metaclass' option
103 to support custom attribute meta-classes
104 on a per-attribute basis
daea75c9 105 - added tests for this
106 - the 'has' keyword not accepts inherited slot
107 specifications (has '+foo'). This is still an
108 experimental feature and probably not finished
109 see t/038_attribute_inherited_slot_specs.t for
110 more details, or ask about it on #moose
fcb7afc2 111 - added tests for this
2d562421 112
113 * Moose::Role
114 - keywords are now exported with Sub::Exporter
115
5204cd52 116 * Moose::Utils::TypeConstraints
cce8198b 117 - reorganized the type constraint hierarchy, thanks
118 to nothingmuch and chansen for his help and advice
119 on this
120 - added some tests for this
7eaef7ad 121 - keywords are now exported with Sub::Exporter
35c8b8f2 122 thanks to chansen for this commit
5204cd52 123
d500266f 124 * Moose::Meta::Class
125 - due to changes in Class::MOP, we had to change
126 construct_instance (for the better)
127
128 * Moose::Meta::Attribute
129 - due to changes in Class::MOP, we had to add the
130 initialize_instance_slot method (it's a good thing)
c07af9d2 131
cce8198b 132 * Moose::Meta::TypeConstraint
c07af9d2 133 - added type constraint unions
134 - added tests for this
cce8198b 135 - added the is_subtype_of predicate method
136 - added tests for this
d500266f 137
02a0fb52 1380.04 Sun. April 16th, 2006
1331430a 139 * Moose::Role
140 - Roles can now consume other roles
141 - added tests for this
142 - Roles can specify required methods now with
143 the requires() keyword
144 - added tests for this
145
bdabd620 146 * Moose::Meta::Role
147 - ripped out much of it's guts ,.. much cleaner now
1331430a 148 - added required methods and correct handling of
fa1be058 149 them in apply() for both classes and roles
150 - added tests for this
1331430a 151 - no longer adds a does() method to consuming classes
152 it relys on the one in Moose::Object
153 - added roles attribute and some methods to support
154 roles consuming roles
8c9d74e7 155
156 * Moose::Meta::Attribute
157 - added support for triggers on attributes
158 - added tests for this
02a0fb52 159 - added support for does option on an attribute
160 - added tests for this
8c9d74e7 161
162 * Moose::Meta::Class
163 - added support for attribute triggers in the
164 object construction
165 - added tests for this
256903b6 166
167 * Moose
168 - Moose no longer creates a subtype for your class
169 if a subtype of the same name already exists, this
170 should DWIM in 99.9999% of all cases
171
172 * Moose::Util::TypeConstraints
173 - fixed bug where incorrect subtype conflicts were
174 being reported
8c9d74e7 175 - added test for this
176
177 * Moose::Object
178 - this class can now be extended with 'use base' if
179 you need it, it properly loads the metaclass class now
180 - added test for this
bdabd620 181
0677220d 1820.03_02 Wed. April 12, 2006
05d9eaf6 183 * Moose
184 - you must now explictly use Moose::Util::TypeConstraints
185 it no longer gets exported for you automatically
186
187 * Moose::Object
188 - new() now accepts hash-refs as well as key/value lists
0677220d 189 - added does() method to check for Roles
190 - added tests for this
05d9eaf6 191
0677220d 192 * Moose::Meta::Class
193 - added roles attribute along with the add_role() and
194 does_role() methods
195 - added tests for this
196
197 * Moose::Meta::Role
198 - now adds a does() method to consuming classes
199 which tests the class's hierarchy for roles
200 - added tests for this
201
2020.03_01 Mon. April 10, 2006
e9ec68d6 203 * Moose::Cookbook
76d37e5a 204 - added new Role recipe (no content yet, only code)
e9ec68d6 205
206 * Moose
207 - added 'with' keyword for Role support
208 - added test and docs for this
209 - fixed subtype quoting bug
210 - added test for this
211
212 * Moose::Role
213 - Roles for Moose
214 - added test and docs
76d37e5a 215
216 * Moose::Util::TypeConstraints
217 - added the message keyword to add custom
218 error messages to type constraints
e9ec68d6 219
220 * Moose::Meta::Role
221 - the meta role to support Moose::Role
222 - added tests and docs
223
224 * Moose::Meta::Class
225 - moved a number of things from Moose.pm
226 to here, they should have been here
227 in the first place
228
229 * Moose::Meta::Attribute
230 - moved the attribute option macros here
231 instead of putting them in Moose.pm
e185c027 232
76d37e5a 233 * Moose::Meta::TypeConstraint
234 - added the message attributes and the
235 validate method
236 - added tests and docs for this
237
0ac928d2 2380.03 Thurs. March 30, 2006
e9bb8a31 239 * Moose::Cookbook
240 - added the Moose::Cookbook with 5 recipes,
241 describing all the stuff Moose can do.
242
d7f17ebb 243 * Moose
244 - fixed an issue with &extends super class loading
245 it now captures errors and deals with inline
246 packages correctly (bug found by mst, solution
247 stolen from alias)
159da176 248 - added super/override & inner/augment features
249 - added tests and docs for these
d7f17ebb 250
251 * Moose::Object
252 - BUILDALL now takes a reference of the %params
253 that are passed to &new, and passes that to
254 each BUILD as well.
471c4f09 255
256 * Moose::Util::TypeConstraints
257 - Type constraints now survive runtime reloading
258 - added test for this
d7f17ebb 259
8339fae2 260 * Moose::Meta::Class
261 - fixed the way attribute defaults are handled
262 during instance construction (bug found by chansen)
263
d7f17ebb 264 * Moose::Meta::Attribute
265 - read-only attributes now actually enforce their
9deed647 266 read-only-ness (this corrected in Class::MOP as
267 well)
d7f17ebb 268
076c81ed 2690.02 Tues. March 21, 2006
fc5609d2 270 * Moose
b841b2a3 271 - many more tests, fixing some bugs and
272 edge cases
b841b2a3 273 - &extends now loads the base module with
274 UNIVERSAL::require
275 - added UNIVERSAL::require to the
276 dependencies list
6ba6d68c 277 ** API CHANGES **
b841b2a3 278 - each new Moose class will also create
279 and register a subtype of Object which
280 correspond to the new Moose class.
b841b2a3 281 - the 'isa' option in &has now only
282 accepts strings, and will DWIM in
283 almost all cases
284
285 * Moose::Util::TypeConstraints
286 - added type coercion features
287 - added tests for this
288 - added support for this in attributes
289 and instance construction
6ba6d68c 290 ** API CHANGES **
b841b2a3 291 - type construction no longer creates a
292 function, it registers the type instead.
293 - added several functions to get the
294 registered types
6ba6d68c 295
296 * Moose::Object
297 - BUILDALL and DEMOLISHALL were broken
298 because of a mis-named hash key, Whoops :)
b841b2a3 299
300 * Moose::Meta::Attribute
301 - adding support for coercion in the
302 autogenerated accessors
303
304 * Moose::Meta::Class
305 - adding support for coercion in the
6ba6d68c 306 instance construction
307
308 * Moose::Meta::TypeConstraint
309 * Moose::Meta::TypeCoercion
310 - type constraints and coercions are now
311 full fledges meta-objects
fc5609d2 312
e522431d 3130.01 Wed. March 15, 2006
314 - Moooooooooooooooooose!!!