instance-protocol
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
2
2bab2be6 30.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
93b4e576 120.26 Mon. April 24, 2006
e7f732e4 13 * Class::MOP::Class
14 - added find_attribute_by_name method
15 - added tests and docs for this
56a0b530 16 - some small optimizations
17
18 * Class::MOP::Attribute
19 - some small optimizations
e7f732e4 20
46666f33 210.25 Thurs. April 20, 2006
587aca23 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.
bd4e03f9 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
fed4cee7 36
37 * examples/
38 - adjusted all the examples to use the new attribute
39 initialize_instance_slot method
587aca23 40
1daaa2b2 410.24 Tues. April 11, 2006
8c936afc 42 * Class::MOP::Class
43 - cleaned up how the before/after/around method
44 modifiers get named with Sub::Name
45
b9dfbf78 460.23 Thurs. March 30, 2006
a977cf65 47 * Class::MOP::Class
48 - fixed the way attribute defaults are handled
49 during instance construction (bug found by chansen)
b9dfbf78 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
a977cf65 57
f9eba090 580.22 Mon. March 20, 2006
0eff2c16 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
1988e85e 640.21 Wed. March 15, 2006
2f6d5412 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
96ceced8 700.20 Thurs. March 2, 2006
d3cb0d4a 71 - removed the dependency for Clone since
72 we no longer to deep-cloning by default.
a4258ffd 73
74 * Class::MOP::Method
96ceced8 75 - added &package_name, &name and
76 &fully_qualified_name methods, some of
a4258ffd 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
d3cb0d4a 84
85 * Class::MOP::Class
86 - improved &get_package_variable
96ceced8 87 - &version and &superclasses now use it
a4258ffd 88 - methods are now blessed into Class::MOP::Method
89 whenever possible
a4258ffd 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
96ceced8 95 - added &find_next_method_by_name which finds the
96 equivalent of SUPER::method_name
d3cb0d4a 97
1c020571 980.12 Thurs. Feb 23, 2006
d89c0fad 99 - reduced the dependency on B, no need to always
100 have the latest
101
1c020571 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
0dea7280 1070.11 Mon Feb. 20, 2006
f3f5bd34 108 * examples/
109 - added example of changing method dispatch order to C3
a27ae83f 110
111 * Class::MOP::Class
19d4b5b8 112 - changed how clone_instance behaves, it now only does a
113 shallow clone (see docs for more details)
a27ae83f 114 - added docs and tests
f3f5bd34 115
3bf7644b 1160.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
22286063 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%
aa448b16 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.
22286063 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
0b8eb325 138 * examples/
ea263060 139 - fixing the AttributesWithHistory example, it was broken.
663f8198 140
550d56db 1410.06 Thurs Feb. 9, 2006
677eb158 142 * metaclass
550d56db 143 - adding new metaclass pragma to make setting up the
677eb158 144 metaclass a little more straightforward
7b31baf4 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.
677eb158 152
99e5b7e8 153 * Class::MOP::Class
154 - fixing minor meta-circularity issue with &meta, it
155 is now more useful for subclasses
7b31baf4 156 - added &get_attribute_map as an accessor for the
157 hash of attribute meta objects
c9e77dbb 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
5f3c057a 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
550d56db 166 - added Clone as a dependency
5f3c057a 167 - added &new_object and &clone_object convience methods to
168 return blessed new or cloned instances
2a7575a6 169 - they handle Class::MOP::Class singletons correctly too
5f3c057a 170 - added docs & tests for this
2a7575a6 171 - cleaned up the &constuct_class_instance so that it behaves
172 more like &construct_instance (and managed the singletons too)
550d56db 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
5f3c057a 176
99e5b7e8 177 * examples/
178 - adjusting code to use the &Class::MOP::Class::meta
179 fix detailed above
677eb158 180 - adjusting code to use the metaclass pragma
99e5b7e8 181
aa9c883e 1820.05 Sat Feb. 4, 2006
2e41896e 183 * Class::MOP::Class
184 - added the &attribute_metaclass and &method_metaclass
351bd7d4 185 attributes which contain a metaclass name to use for
2e41896e 186 attributes/methods respectively
351bd7d4 187
188 * Class::MOP
189 - bootstrap additional attributes for Class::MOP::Class
2e41896e 190
191 * examples/
192 - adjusted the example code and tests to use the new
193 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 194 - added new example:
195 - LazyClass
2e41896e 196
d7c2cbe3 1970.04 Fri Feb. 3, 2006
d6fbcd05 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
d7c2cbe3 207 - ClassEncapsultedAttributes
343203ee 208
9ec169fe 2090.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
f71f4295 216 * examples/
9ec169fe 217 - refactored the InsideOut example to take advantage
218 of the Class::MOP::Attribute refactoring
f71f4295 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)
9ec169fe 222
a57c7fa2 2230.02 Thurs Feb. 2, 2006
224 - moving examples from t/lib/* to examples/*
225 - adding POD documentation to the examples
226
a2e85e6c 2270.01 Thurs Feb. 2, 2006
7c90a1a8 228 - Initial release