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