add_attribute fix, and version fixes, changes, etc
[gitmo/Class-MOP.git] / Changes
1 Revision history for Perl extension Class-MOP.
2
3 0.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
39 0.34 Sat. Aug. 26, 2006
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.
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
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
60         
61     ~ lots of misc. test cleanup
62
63 0.33 Sat. Aug. 19, 2006
64     * Class::MOP::Class
65       - moved the metaclass cache out of here 
66         and it is now in Class::MOP itself.
67         
68     * Class::MOP
69       - moved all the metaclass cache stuff here
70         - fixed all tests for this
71
72     * Class::MOP::Attribute
73       - reference values (other than CODE refs) 
74         are no longer allowed for defaults
75         - added tests for this
76     
77     * Class::MOP::Package
78       - fixed an issue with perl 5.8.1 and how it deals 
79         with symbol tables. The namespace hash is now 
80         always reloaded from the symbol table. 
81
82     ~ lots of misc. documentation cleanup
83
84 0.32 Sat. Aug. 12, 2006
85     + added Class::MOP::Object so that the 
86       metamodel is more complete (and closer
87       to what Perl 6 will probably be).
88
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
94       - this class is now a subclass of 
95         Class::MOP::Object
96         - added some tests to reflect this
97         
98     * Class::MOP::Class
99       - refactored all symbol table access to 
100         use Class::MOP::Package methods instead
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 
109         - I have added $AUTHORITY to all the modules 
110         - added tests for this
111       
112     * Class::MOP::Instance
113       - added &deinitialize_slot for removing slots 
114         from an instance
115         - added tests for this      
116       
117     * Class::MOP::Attribute 
118       - added support for &deinitialize_slot for removing
119         slots from an instance
120         - added tests for this
121
122 0.31 Sat. July 15, 2006
123
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
133 0.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     ---------------------------------------
141     
142     * Created Class::MOP::Class::Immutable  
143     
144     * Created the Class::MOP::Package and 
145       Class::MOP::Module classes to more 
146       closely conform to Perl 6's meta-model
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
153       
154     * Class::MOP::Instance
155       - added an is_inlinable method to allow other 
156         classes to check before they attempt to optimize.
157       - added an inline_create_instance to inline 
158         instance creation (of course) 
159         
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.        
166
167 0.29_02 Thurs. June 22, 2006
168     ++ DEVELOPER RELEASE ++
169     * Class::MOP::Class
170       - small change in &create so that it behaves 
171         properly when inherited
172       - small fix to &clone_instance
173
174 0.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
182     * Class::MOP::Class
183       - anon-classes are now properly garbage collected
184         - added tests for this 
185       - improved method modifier wrapping 
186
187     * Class::MOP::Instance
188       - added new instance protocol
189         - added tests for this
190       - changed all relevant modules and examples
191         - Class::MOP::Class
192         - Class::MOP::Attribute
193         - examples/*
194
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
210 0.26 Mon. April 24, 2006
211     * Class::MOP::Class
212       - added find_attribute_by_name method
213         - added tests and docs for this
214       - some small optimizations
215
216     * Class::MOP::Attribute
217       - some small optimizations
218
219 0.25 Thurs. April 20, 2006
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.
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
234     
235     * examples/
236       - adjusted all the examples to use the new attribute 
237         initialize_instance_slot method 
238
239 0.24 Tues. April 11, 2006
240     * Class::MOP::Class
241       - cleaned up how the before/after/around method 
242         modifiers get named with Sub::Name
243
244 0.23 Thurs. March 30, 2006
245         * Class::MOP::Class
246           - fixed the way attribute defaults are handled 
247             during instance construction (bug found by chansen)
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 
255
256 0.22 Mon. March 20, 2006
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
262 0.21 Wed. March 15, 2006
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
268 0.20 Thurs. March 2, 2006
269     - removed the dependency for Clone since 
270       we no longer to deep-cloning by default.
271     
272     * Class::MOP::Method
273       - added &package_name, &name and 
274         &fully_qualified_name methods, some of 
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
282
283     * Class::MOP::Class
284       - improved &get_package_symbol
285           - &version and &superclasses now use it
286       - methods are now blessed into Class::MOP::Method
287         whenever possible
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
293       - added &find_next_method_by_name which finds the 
294         equivalent of SUPER::method_name
295
296 0.12 Thurs. Feb 23, 2006
297     - reduced the dependency on B, no need to always 
298       have the latest
299
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
305 0.11 Mon Feb. 20, 2006
306     * examples/
307       - added example of changing method dispatch order to C3
308       
309     * Class::MOP::Class
310       - changed how clone_instance behaves, it now only does a
311         shallow clone (see docs for more details)
312         - added docs and tests
313
314 0.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
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%
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.
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      
336     * examples/
337       - fixing the AttributesWithHistory example, it was broken.
338
339 0.06 Thurs Feb. 9, 2006
340     * metaclass
341       - adding new metaclass pragma to make setting up the 
342         metaclass a little more straightforward
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.
350
351     * Class::MOP::Class
352       - fixing minor meta-circularity issue with &meta, it 
353         is now more useful for subclasses
354       - added &get_attribute_map as an accessor for the 
355         hash of attribute meta objects
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
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
364           - added Clone as a dependency
365       - added &new_object and &clone_object convience methods to
366         return blessed new or cloned instances
367           - they handle Class::MOP::Class singletons correctly too
368           - added docs & tests for this
369       - cleaned up the &constuct_class_instance so that it behaves
370         more like &construct_instance (and managed the singletons too)
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
374           
375     * examples/
376       - adjusting code to use the &Class::MOP::Class::meta
377         fix detailed above
378       - adjusting code to use the metaclass pragma
379       
380 0.05 Sat Feb. 4, 2006
381     * Class::MOP::Class
382       - added the &attribute_metaclass and &method_metaclass
383         attributes which contain a metaclass name to use for 
384         attributes/methods respectively
385     
386     * Class::MOP
387       - bootstrap additional attributes for Class::MOP::Class 
388         
389     * examples/
390       - adjusted the example code and tests to use the new
391         &attribute_metaclass feature of Class::MOP::Class
392       - added new example:
393         - LazyClass
394
395 0.04 Fri Feb. 3, 2006
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
405         - ClassEncapsultedAttributes
406
407 0.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     
414     * examples/
415       - refactored the InsideOut example to take advantage 
416         of the Class::MOP::Attribute refactoring
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)
420
421 0.02 Thurs Feb. 2, 2006
422     - moving examples from t/lib/* to examples/*
423         - adding POD documentation to the examples
424
425 0.01 Thurs Feb. 2, 2006
426     - Initial release