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