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