1 Revision history for Perl extension Class-MOP.
6 - non-generated accessors are no longer
7 copied, but instead are aliased from
9 - added Class::MOP::Method (and its subclasses)
11 - adjusted tests for this
15 - methods are no longer blessed CODE refs
16 but are actual objects which can be CODE-ified
17 - adjusted tests to compensate
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
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
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)
36 - added filtering capabilities to
37 &list_all_package_symbols
39 0.34 Sat. Aug. 26, 2006
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.
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
52 - added &dump method to easily Data::Dumper
56 - cleaned up the initialization of attributes
57 which do not store things in the instance
58 - added the %:methods attribute definition to
61 ~ lots of misc. test cleanup
63 0.33 Sat. Aug. 19, 2006
65 - moved the metaclass cache out of here
66 and it is now in Class::MOP itself.
69 - moved all the metaclass cache stuff here
70 - fixed all tests for this
72 * Class::MOP::Attribute
73 - reference values (other than CODE refs)
74 are no longer allowed for defaults
75 - added tests for this
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.
82 ~ lots of misc. documentation cleanup
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).
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
96 - added some tests to reflect this
99 - refactored all symbol table access to
100 use Class::MOP::Package methods instead
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
112 * Class::MOP::Instance
113 - added &deinitialize_slot for removing slots
115 - added tests for this
117 * Class::MOP::Attribute
118 - added support for &deinitialize_slot for removing
119 slots from an instance
120 - added tests for this
122 0.31 Sat. July 15, 2006
125 - added &find_method_by_name to locate a method
126 anywhere within the class hierarchy
128 * Class::MOP::Attribute
129 - added &set_value and &get_value for getting
130 the value of the attribute for a particular
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 ---------------------------------------
142 * Created Class::MOP::Class::Immutable
144 * Created the Class::MOP::Package and
145 Class::MOP::Module classes to more
146 closely conform to Perl 6's meta-model
149 - now inherits from Class::MOP::Module
150 - several methods moved to ::Module and
151 ::Package and now inherited
152 - added tests for this
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)
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.
167 0.29_02 Thurs. June 22, 2006
168 ++ DEVELOPER RELEASE ++
170 - small change in &create so that it behaves
171 properly when inherited
172 - small fix to &clone_instance
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
183 - anon-classes are now properly garbage collected
184 - added tests for this
185 - improved method modifier wrapping
187 * Class::MOP::Instance
188 - added new instance protocol
189 - added tests for this
190 - changed all relevant modules and examples
192 - Class::MOP::Attribute
196 - you no longer need to specify the metaclass
197 itself, if it is not there, Class::MOP::Class
199 - updated tests for this
202 - added ArrayBasedStorage example to show
203 instance storage using ARRAY refs instead of
205 - added tests for this
206 - InsideOutClass is totally revised using the
207 new instance protocol
208 - added more tests for this
210 0.26 Mon. April 24, 2006
212 - added find_attribute_by_name method
213 - added tests and docs for this
214 - some small optimizations
216 * Class::MOP::Attribute
217 - some small optimizations
219 0.25 Thurs. April 20, 2006
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
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
236 - adjusted all the examples to use the new attribute
237 initialize_instance_slot method
239 0.24 Tues. April 11, 2006
241 - cleaned up how the before/after/around method
242 modifiers get named with Sub::Name
244 0.23 Thurs. March 30, 2006
246 - fixed the way attribute defaults are handled
247 during instance construction (bug found by chansen)
249 * Class::MOP::Attribute
250 - read-only accessors ('reader') will now die if
251 passed more than one argument (attempting to write
253 - added tests for this
254 - adjusted all /example files to comply
256 0.22 Mon. March 20, 2006
258 - localized $@ in the *_package_variable functions
259 because otherwise, it does ugly things in Moose.
260 - added test case for this
262 0.21 Wed. March 15, 2006
264 - fixed issue where metaclasses are reaped from
265 our cache in global destruction, and so are not
266 available in DESTORY calls
268 0.20 Thurs. March 2, 2006
269 - removed the dependency for Clone since
270 we no longer to deep-cloning by default.
273 - added &package_name, &name and
274 &fully_qualified_name methods, some of
275 which were formerly private subs in
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
284 - improved &get_package_symbol
285 - &version and &superclasses now use it
286 - methods are now blessed into Class::MOP::Method
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
296 0.12 Thurs. Feb 23, 2006
297 - reduced the dependency on B, no need to always
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
305 0.11 Mon Feb. 20, 2006
307 - added example of changing method dispatch order to C3
310 - changed how clone_instance behaves, it now only does a
311 shallow clone (see docs for more details)
312 - added docs and tests
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".
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%
324 - no longer optionally exports to UNIVERSAL::meta or
325 creates a custom metaclass generator, use the
326 metaclass pragma instead.
329 - fixed a number of minor issues which came up in the
330 error/edge-case tests
332 * Class::MOP::Attribute
333 - fixed a number of minor issues which came up in the
334 error/edge-case tests
337 - fixing the AttributesWithHistory example, it was broken.
339 0.06 Thurs Feb. 9, 2006
341 - adding new metaclass pragma to make setting up the
342 metaclass a little more straightforward
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
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
376 - adjusting code to use the &Class::MOP::Class::meta
378 - adjusting code to use the metaclass pragma
380 0.05 Sat Feb. 4, 2006
382 - added the &attribute_metaclass and &method_metaclass
383 attributes which contain a metaclass name to use for
384 attributes/methods respectively
387 - bootstrap additional attributes for Class::MOP::Class
390 - adjusted the example code and tests to use the new
391 &attribute_metaclass feature of Class::MOP::Class
395 0.04 Fri Feb. 3, 2006
397 - some documentation suggestions from #perl6
399 * Class::MOP::Attribute
400 - improved error messages
403 - added new examples:
404 - AttributesWithHistory
405 - ClassEncapsultedAttributes
407 0.03 Fri Feb. 3, 2006
408 - converted to Module::Build instead of EU::MM
410 * Class::MOP::Attribute
411 - refactored method generation code
412 - attributes are now associated with class directly
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)
421 0.02 Thurs Feb. 2, 2006
422 - moving examples from t/lib/* to examples/*
423 - adding POD documentation to the examples
425 0.01 Thurs Feb. 2, 2006