instance-protocol
[gitmo/Class-MOP.git] / Changes
1 Revision history for Perl extension Class-MOP.
2
3 0.30
4     * Class::MOP::Instance
5       - added new instance construction protocol
6         - added tests for this
7       - changed all relevant modules and examples
8         - Class::MOP::Class
9         - Class::MOP::Attribute
10         - examples/*
11
12 0.26 Mon. April 24, 2006
13     * Class::MOP::Class
14       - added find_attribute_by_name method
15         - added tests and docs for this
16       - some small optimizations
17
18     * Class::MOP::Attribute
19       - some small optimizations
20
21 0.25 Thurs. April 20, 2006
22     * Class::MOP::Class
23       - added create_anon_class for creating anonymous classes
24         - added tests for this
25       - added get_all_metaclasses, get_all_metaclass_names
26         and get_all_metaclass_instances method to allow
27         access to all the cached metaclass objects.
28       - attribute slot initialization is now the responsibility
29         of the attribute itself, and construct_instance now 
30         delegates appropriately
31         
32     * Class::MOP::Attribute
33       - attribute slot initialization is now the responsibility
34         of the attribute itself, so we added a method for it
35         called initialize_instance_slot
36     
37     * examples/
38       - adjusted all the examples to use the new attribute 
39         initialize_instance_slot method 
40
41 0.24 Tues. April 11, 2006
42     * Class::MOP::Class
43       - cleaned up how the before/after/around method 
44         modifiers get named with Sub::Name
45
46 0.23 Thurs. March 30, 2006
47         * Class::MOP::Class
48           - fixed the way attribute defaults are handled 
49             during instance construction (bug found by chansen)
50             
51         * Class::MOP::Attribute
52           - read-only accessors ('reader') will now die if 
53             passed more than one argument (attempting to write
54             to them basically)
55               - added tests for this
56               - adjusted all /example files to comply 
57
58 0.22 Mon. March 20, 2006
59     * Class::MOP::Class
60       - localized $@ in the *_package_variable functions
61         because otherwise, it does ugly things in Moose.
62           - added test case for this
63
64 0.21 Wed. March 15, 2006
65     * Class::MOP::Class
66       - fixed issue where metaclasses are reaped from 
67         our cache in global destruction, and so are not
68         available in DESTORY calls
69
70 0.20 Thurs. March 2, 2006
71     - removed the dependency for Clone since 
72       we no longer to deep-cloning by default.
73     
74     * Class::MOP::Method
75       - added &package_name, &name and 
76         &fully_qualified_name methods, some of 
77         which were formerly private subs in 
78         Class::MOP::Class
79       
80     * Class::MOP::Method::Wrapped
81       - allows for a method to be wrapped with 
82         before, after and around modifiers 
83           - added tests and docs for this feature
84
85     * Class::MOP::Class
86       - improved &get_package_variable
87           - &version and &superclasses now use it
88       - methods are now blessed into Class::MOP::Method
89         whenever possible
90       - added methods to install CLOS-style method modifiers 
91          - &add_before_method_modifier
92          - &add_after_method_modifier         
93          - &add_around_method_modifier
94              - added tests and docs for these
95       - added &find_next_method_by_name which finds the 
96         equivalent of SUPER::method_name
97
98 0.12 Thurs. Feb 23, 2006
99     - reduced the dependency on B, no need to always 
100       have the latest
101
102     * examples/
103       - added docs to the C3 method dispatch order test
104       - fixed missing Algorithm::C3 dependency by making 
105         the test skip if it is not installed
106
107 0.11 Mon Feb. 20, 2006
108     * examples/
109       - added example of changing method dispatch order to C3
110       
111     * Class::MOP::Class
112       - changed how clone_instance behaves, it now only does a
113         shallow clone (see docs for more details)
114         - added docs and tests
115
116 0.10 Tues Feb. 14, 2006
117     ** This release was mostly about writing more tests and 
118        cleaning out old and dusty code, the MOP should now 
119        be considered "ready to use".
120
121     - adding more tests to get coverage up a little higher,
122       mostly testing errors and edge cases.
123       - test coverage is now at 99%
124       
125     * Class::MOP
126       - no longer optionally exports to UNIVERSAL::meta or
127         creates a custom metaclass generator, use the 
128         metaclass pragma instead.
129
130     * Class::MOP::Class  
131       - fixed a number of minor issues which came up in the 
132         error/edge-case tests
133         
134     * Class::MOP::Attribute 
135       - fixed a number of minor issues which came up in the 
136         error/edge-case tests        
137      
138     * examples/
139       - fixing the AttributesWithHistory example, it was broken.
140
141 0.06 Thurs Feb. 9, 2006
142     * metaclass
143       - adding new metaclass pragma to make setting up the 
144         metaclass a little more straightforward
145         
146     * Class::MOP
147       - clean up bootstrapping to include more complete 
148         attribute definitions for Class::MOP::Class and 
149         Class::MOP::Attribute (accessors, readers, writers, 
150         etc.) ... it is redundant, but is useful meta-info
151         to have around.
152
153     * Class::MOP::Class
154       - fixing minor meta-circularity issue with &meta, it 
155         is now more useful for subclasses
156       - added &get_attribute_map as an accessor for the 
157         hash of attribute meta objects
158       - &compute_all_applicable_attributes now just returns
159         the attribute meta-object, rather than the HASH ref
160         since all the same info can be gotten from the 
161         attribute meta-object itself
162           - updated docs & tests to reflect
163       - added &clone_instance method which does a deep clone
164         of the instance structure created by &construct_instance
165           - added docs & tests for this
166           - added Clone as a dependency
167       - added &new_object and &clone_object convience methods to
168         return blessed new or cloned instances
169           - they handle Class::MOP::Class singletons correctly too
170           - added docs & tests for this
171       - cleaned up the &constuct_class_instance so that it behaves
172         more like &construct_instance (and managed the singletons too)
173       - added the &check_metaclass_compatibility method to make sure
174         that metaclasses are upward and downward compatible.
175           - added tests and docs for this
176           
177     * examples/
178       - adjusting code to use the &Class::MOP::Class::meta
179         fix detailed above
180       - adjusting code to use the metaclass pragma
181       
182 0.05 Sat Feb. 4, 2006
183     * Class::MOP::Class
184       - added the &attribute_metaclass and &method_metaclass
185         attributes which contain a metaclass name to use for 
186         attributes/methods respectively
187     
188     * Class::MOP
189       - bootstrap additional attributes for Class::MOP::Class 
190         
191     * examples/
192       - adjusted the example code and tests to use the new
193         &attribute_metaclass feature of Class::MOP::Class
194       - added new example:
195         - LazyClass
196
197 0.04 Fri Feb. 3, 2006
198     * Class::MOP::Class
199       - some documentation suggestions from #perl6
200     
201     * Class::MOP::Attribute
202       - improved error messages    
203     
204     * examples/
205       - added new examples:
206         - AttributesWithHistory
207         - ClassEncapsultedAttributes
208
209 0.03 Fri Feb. 3, 2006
210     - converted to Module::Build instead of EU::MM
211     
212     * Class::MOP::Attribute
213       - refactored method generation code
214       - attributes are now associated with class directly
215     
216     * examples/
217       - refactored the InsideOut example to take advantage 
218         of the Class::MOP::Attribute refactoring
219       - changed example files to .pod files and hide thier
220         package names from PAUSE (I don't want to own these
221         namespaces really, they are just examples)
222
223 0.02 Thurs Feb. 2, 2006
224     - moving examples from t/lib/* to examples/*
225         - adding POD documentation to the examples
226
227 0.01 Thurs Feb. 2, 2006
228     - Initial release