add_attribute fix, and version fixes, changes, etc
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
2
b1897d4d 30.35
4
5 * Class::MOP
6 - non-generated accessors are no longer
7 copied, but instead are aliased from
8 the originals
9 - added Class::MOP::Method (and its subclasses)
10 to the bootstrap
11 - adjusted tests for this
12
13 * Class::MOP::Method
14 *** API CHANGE ***
15 - methods are no longer blessed CODE refs
16 but are actual objects which can be CODE-ified
17 - adjusted tests to compensate
18
19 * Class::MOP::Class
20 - changed how methods are dealt with to
21 encapsulate most of the work into the
22 &get_method_map method
23 - made several adjustments for the change
24 in Class::MOP::Method
25 - &add_attribute now checks if you are adding
26 a duplicate name, and properly removes the
27 old one before installing the new one
28 - added tests for this
29
30 * Class::MOP::Class::Immutable
31 - added caching of &get_method_map
32 - fixed issue with &get_package_symbol
33 - cleaned up the methods that die (patch by David Wheeler)
34
35 * Class::MOP::Package
36 - added filtering capabilities to
37 &list_all_package_symbols
38
a549ce50 390.34 Sat. Aug. 26, 2006
c4260b45 40 * Class::MOP::Class
41 - added the %:methods attribute, which like
42 the $:version and such just actually goes
43 to the symbol table to get it's stuff.
44 However, it makes the MOP more complete.
88dd563c 45 ** API CHANGE **
46 - The &create method now requires that all
47 but the package name now is passed in as
48 named parameters. See docs for more info.
49 - updated docs and tests for this
c4260b45 50
51 * Class::MOP::Object
52 - added &dump method to easily Data::Dumper
53 an object
54
55 * Class::MOP
56 - cleaned up the initialization of attributes
57 which do not store things in the instance
58 - added the %:methods attribute definition to
59 the bootstrap
88dd563c 60
61 ~ lots of misc. test cleanup
c4260b45 62
56e8dd5d 630.33 Sat. Aug. 19, 2006
be7677c7 64 * Class::MOP::Class
65 - moved the metaclass cache out of here
66 and it is now in Class::MOP itself.
56e8dd5d 67
68 * Class::MOP
69 - moved all the metaclass cache stuff here
70 - fixed all tests for this
be7677c7 71
148b4697 72 * Class::MOP::Attribute
73 - reference values (other than CODE refs)
74 are no longer allowed for defaults
75 - added tests for this
56dcfc1a 76
77 * Class::MOP::Package
78 - fixed an issue with perl 5.8.1 and how it deals
e3a2c885 79 with symbol tables. The namespace hash is now
80 always reloaded from the symbol table.
81
82 ~ lots of misc. documentation cleanup
1396f86b 83
716c5765 840.32 Sat. Aug. 12, 2006
6e57504d 85 + added Class::MOP::Object so that the
86 metamodel is more complete (and closer
87 to what Perl 6 will probably be).
88
9ca19585 89 * Class::MOP::Package
90 - refactored entire class, this is now
91 the primary gateway between the metaclass
92 and the Perl 5 symbol table
93 - added many tests for this
6e57504d 94 - this class is now a subclass of
95 Class::MOP::Object
716c5765 96 - added some tests to reflect this
9ca19585 97
98 * Class::MOP::Class
99 - refactored all symbol table access to
100 use Class::MOP::Package methods instead
f0480c45 101
102 * Class::MOP::Module
103 - adding the $:version attribute in the bootstrap
104 so that Module has a version as an attribute
105 - see comment in Class::MOP for details
106 - added the $:authority attribute to this module
107 as well as an &identifier method, to bring us
108 ever closer to Perl 6 goodness
716c5765 109 - I have added $AUTHORITY to all the modules
110 - added tests for this
9ca19585 111
f0480c45 112 * Class::MOP::Instance
113 - added &deinitialize_slot for removing slots
114 from an instance
115 - added tests for this
9ca19585 116
117 * Class::MOP::Attribute
118 - added support for &deinitialize_slot for removing
119 slots from an instance
120 - added tests for this
121
1a09d9cc 1220.31 Sat. July 15, 2006
123
b679e644 124 * Class::MOP::Class
125 - added &find_method_by_name to locate a method
126 anywhere within the class hierarchy
127
128 * Class::MOP::Attribute
129 - added &set_value and &get_value for getting
130 the value of the attribute for a particular
131 instance.
132
373a16ae 1330.30 Wed. July 5, 2006
134 ---------------------------------------
135 This is the first version of Class::MOP
136 to introduce the immutable features which
137 will be used for optimizating the MOP.
138 This support should still be considered
139 experimental, but moving towards stability.
140 ---------------------------------------
e0a82090 141
373a16ae 142 * Created Class::MOP::Class::Immutable
be960ba1 143
373a16ae 144 * Created the Class::MOP::Package and
145 Class::MOP::Module classes to more
146 closely conform to Perl 6's meta-model
e0a82090 147
148 * Class::MOP::Class
149 - now inherits from Class::MOP::Module
150 - several methods moved to ::Module and
151 ::Package and now inherited
152 - added tests for this
c0cbf4d9 153
154 * Class::MOP::Instance
155 - added an is_inlinable method to allow other
156 classes to check before they attempt to optimize.
be960ba1 157 - added an inline_create_instance to inline
158 instance creation (of course)
159
2ba153a9 160 ** API CHANGE **
161 - the Class::MOP::Class::*_package_variable
162 methods are all now methods of Class::MOP::Package
163 and called *_package_symbol instead. This is
164 because they are now more general purpose symbol
165 table manipulation methods.
e0a82090 166
cdfaa4cc 1670.29_02 Thurs. June 22, 2006
168 ++ DEVELOPER RELEASE ++
df7b4119 169 * Class::MOP::Class
170 - small change in &create so that it behaves
171 properly when inherited
cdfaa4cc 172 - small fix to &clone_instance
df7b4119 173
667cecf3 1740.29_01 Fri. May 12, 2006
175 ++ DEVELOPER RELEASE ++
176 - This release works in combination with
177 Moose 0.09_01, it is a developer release
178 because it introduces a new instance
179 sub-protocol and has not yet been
180 optimized.
181
40483095 182 * Class::MOP::Class
183 - anon-classes are now properly garbage collected
184 - added tests for this
195f5bf8 185 - improved method modifier wrapping
40483095 186
2bab2be6 187 * Class::MOP::Instance
1becdfcc 188 - added new instance protocol
2bab2be6 189 - added tests for this
190 - changed all relevant modules and examples
191 - Class::MOP::Class
192 - Class::MOP::Attribute
193 - examples/*
194
1becdfcc 195 * metaclass
196 - you no longer need to specify the metaclass
197 itself, if it is not there, Class::MOP::Class
198 is just assumed
199 - updated tests for this
200
201 * examples/
202 - added ArrayBasedStorage example to show
203 instance storage using ARRAY refs instead of
204 HASH refs.
205 - added tests for this
206 - InsideOutClass is totally revised using the
207 new instance protocol
208 - added more tests for this
209
93b4e576 2100.26 Mon. April 24, 2006
e7f732e4 211 * Class::MOP::Class
212 - added find_attribute_by_name method
213 - added tests and docs for this
56a0b530 214 - some small optimizations
215
216 * Class::MOP::Attribute
217 - some small optimizations
e7f732e4 218
46666f33 2190.25 Thurs. April 20, 2006
587aca23 220 * Class::MOP::Class
221 - added create_anon_class for creating anonymous classes
222 - added tests for this
223 - added get_all_metaclasses, get_all_metaclass_names
224 and get_all_metaclass_instances method to allow
225 access to all the cached metaclass objects.
bd4e03f9 226 - attribute slot initialization is now the responsibility
227 of the attribute itself, and construct_instance now
228 delegates appropriately
229
230 * Class::MOP::Attribute
231 - attribute slot initialization is now the responsibility
232 of the attribute itself, so we added a method for it
233 called initialize_instance_slot
fed4cee7 234
235 * examples/
236 - adjusted all the examples to use the new attribute
237 initialize_instance_slot method
587aca23 238
1daaa2b2 2390.24 Tues. April 11, 2006
8c936afc 240 * Class::MOP::Class
241 - cleaned up how the before/after/around method
242 modifiers get named with Sub::Name
243
b9dfbf78 2440.23 Thurs. March 30, 2006
a977cf65 245 * Class::MOP::Class
246 - fixed the way attribute defaults are handled
247 during instance construction (bug found by chansen)
b9dfbf78 248
249 * Class::MOP::Attribute
250 - read-only accessors ('reader') will now die if
251 passed more than one argument (attempting to write
252 to them basically)
253 - added tests for this
254 - adjusted all /example files to comply
a977cf65 255
f9eba090 2560.22 Mon. March 20, 2006
0eff2c16 257 * Class::MOP::Class
258 - localized $@ in the *_package_variable functions
259 because otherwise, it does ugly things in Moose.
260 - added test case for this
261
1988e85e 2620.21 Wed. March 15, 2006
2f6d5412 263 * Class::MOP::Class
264 - fixed issue where metaclasses are reaped from
265 our cache in global destruction, and so are not
266 available in DESTORY calls
267
96ceced8 2680.20 Thurs. March 2, 2006
d3cb0d4a 269 - removed the dependency for Clone since
270 we no longer to deep-cloning by default.
a4258ffd 271
272 * Class::MOP::Method
96ceced8 273 - added &package_name, &name and
274 &fully_qualified_name methods, some of
a4258ffd 275 which were formerly private subs in
276 Class::MOP::Class
277
278 * Class::MOP::Method::Wrapped
279 - allows for a method to be wrapped with
280 before, after and around modifiers
281 - added tests and docs for this feature
d3cb0d4a 282
283 * Class::MOP::Class
58d75218 284 - improved &get_package_symbol
96ceced8 285 - &version and &superclasses now use it
a4258ffd 286 - methods are now blessed into Class::MOP::Method
287 whenever possible
a4258ffd 288 - added methods to install CLOS-style method modifiers
289 - &add_before_method_modifier
290 - &add_after_method_modifier
291 - &add_around_method_modifier
292 - added tests and docs for these
96ceced8 293 - added &find_next_method_by_name which finds the
294 equivalent of SUPER::method_name
d3cb0d4a 295
1c020571 2960.12 Thurs. Feb 23, 2006
d89c0fad 297 - reduced the dependency on B, no need to always
298 have the latest
299
1c020571 300 * examples/
301 - added docs to the C3 method dispatch order test
302 - fixed missing Algorithm::C3 dependency by making
303 the test skip if it is not installed
304
0dea7280 3050.11 Mon Feb. 20, 2006
f3f5bd34 306 * examples/
307 - added example of changing method dispatch order to C3
a27ae83f 308
309 * Class::MOP::Class
19d4b5b8 310 - changed how clone_instance behaves, it now only does a
311 shallow clone (see docs for more details)
a27ae83f 312 - added docs and tests
f3f5bd34 313
3bf7644b 3140.10 Tues Feb. 14, 2006
315 ** This release was mostly about writing more tests and
316 cleaning out old and dusty code, the MOP should now
317 be considered "ready to use".
318
22286063 319 - adding more tests to get coverage up a little higher,
320 mostly testing errors and edge cases.
321 - test coverage is now at 99%
aa448b16 322
323 * Class::MOP
324 - no longer optionally exports to UNIVERSAL::meta or
325 creates a custom metaclass generator, use the
326 metaclass pragma instead.
22286063 327
328 * Class::MOP::Class
329 - fixed a number of minor issues which came up in the
330 error/edge-case tests
331
332 * Class::MOP::Attribute
333 - fixed a number of minor issues which came up in the
334 error/edge-case tests
335
0b8eb325 336 * examples/
ea263060 337 - fixing the AttributesWithHistory example, it was broken.
663f8198 338
550d56db 3390.06 Thurs Feb. 9, 2006
677eb158 340 * metaclass
550d56db 341 - adding new metaclass pragma to make setting up the
677eb158 342 metaclass a little more straightforward
7b31baf4 343
344 * Class::MOP
345 - clean up bootstrapping to include more complete
346 attribute definitions for Class::MOP::Class and
347 Class::MOP::Attribute (accessors, readers, writers,
348 etc.) ... it is redundant, but is useful meta-info
349 to have around.
677eb158 350
99e5b7e8 351 * Class::MOP::Class
352 - fixing minor meta-circularity issue with &meta, it
353 is now more useful for subclasses
7b31baf4 354 - added &get_attribute_map as an accessor for the
355 hash of attribute meta objects
c9e77dbb 356 - &compute_all_applicable_attributes now just returns
357 the attribute meta-object, rather than the HASH ref
358 since all the same info can be gotten from the
359 attribute meta-object itself
360 - updated docs & tests to reflect
5f3c057a 361 - added &clone_instance method which does a deep clone
362 of the instance structure created by &construct_instance
363 - added docs & tests for this
550d56db 364 - added Clone as a dependency
5f3c057a 365 - added &new_object and &clone_object convience methods to
366 return blessed new or cloned instances
2a7575a6 367 - they handle Class::MOP::Class singletons correctly too
5f3c057a 368 - added docs & tests for this
2a7575a6 369 - cleaned up the &constuct_class_instance so that it behaves
370 more like &construct_instance (and managed the singletons too)
550d56db 371 - added the &check_metaclass_compatibility method to make sure
372 that metaclasses are upward and downward compatible.
373 - added tests and docs for this
5f3c057a 374
99e5b7e8 375 * examples/
376 - adjusting code to use the &Class::MOP::Class::meta
377 fix detailed above
677eb158 378 - adjusting code to use the metaclass pragma
99e5b7e8 379
aa9c883e 3800.05 Sat Feb. 4, 2006
2e41896e 381 * Class::MOP::Class
382 - added the &attribute_metaclass and &method_metaclass
351bd7d4 383 attributes which contain a metaclass name to use for
2e41896e 384 attributes/methods respectively
351bd7d4 385
386 * Class::MOP
387 - bootstrap additional attributes for Class::MOP::Class
2e41896e 388
389 * examples/
390 - adjusted the example code and tests to use the new
391 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 392 - added new example:
393 - LazyClass
2e41896e 394
d7c2cbe3 3950.04 Fri Feb. 3, 2006
d6fbcd05 396 * Class::MOP::Class
397 - some documentation suggestions from #perl6
398
399 * Class::MOP::Attribute
400 - improved error messages
401
402 * examples/
403 - added new examples:
404 - AttributesWithHistory
d7c2cbe3 405 - ClassEncapsultedAttributes
343203ee 406
9ec169fe 4070.03 Fri Feb. 3, 2006
408 - converted to Module::Build instead of EU::MM
409
410 * Class::MOP::Attribute
411 - refactored method generation code
412 - attributes are now associated with class directly
413
f71f4295 414 * examples/
9ec169fe 415 - refactored the InsideOut example to take advantage
416 of the Class::MOP::Attribute refactoring
f71f4295 417 - changed example files to .pod files and hide thier
418 package names from PAUSE (I don't want to own these
419 namespaces really, they are just examples)
9ec169fe 420
a57c7fa2 4210.02 Thurs Feb. 2, 2006
422 - moving examples from t/lib/* to examples/*
423 - adding POD documentation to the examples
424
a2e85e6c 4250.01 Thurs Feb. 2, 2006
7c90a1a8 426 - Initial release