Test execution of stub meta methods after the stub functions got defined.
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
b817e248 2
25a5f083 30.72
4 * Class::MOP::Method
5 - Add an "execute" method to invoke the body so
6 we can avoid using the coderef overload (Sartak)
41885bab 7 * Class::MOP::Immutable
9ec62360 8 - When we memoize methods, get their results lazily
9 to remove some compile-time cost (Sartak)
41885bab 10 - Small speedup from eliminating several method
11 calls (Sartak)
05e183d1 12 * Class::MOP::Class
13 - Some small internal tweaks to try to reduce the number of
14 times we call get_method_map when bootstrapping the MOP. This
15 might make loading Class::MOP (and Moose) a little
16 faster. (Dave Rolsky)
52e5f955 17 * Class::MOP::Class
18 - Implemented an optional XS version of get_method_map. Mostly
19 taken from a patch by Goro Fuji (rt.cpan.org #41080), with
20 help form Florian Ragwitz. (Dave Rolsky)
25a5f083 21
96185d43 220.71 Wed November 26, 2008
d652fbd5 23 * Class::MOP::Class
24 * Class::MOP::Module
25 - Actual package creation has moved upward from
26 Class to Module so that Moose roles can share
27 the code (Sartak)
28
88b8ac17 290.70_01 Mon, November 19, 2008
30 * Class::MOP
31 - Fixes for failures with blead (Florian Ragwitz)
32 - Silenced compiler warnings (Florian Ragwitz)
33
340.70 Fri, November 14, 2008
7329b9e2 35 * Class::MOP
36 - Fixed an odd corner case where the XS version of
9b1760fc 37 get_all_package_symbols could cause a segfault. This only
7329b9e2 38 happened with inlined constants in Perl 5.10.0 (Florian
39 Ragwitz)
7329b9e2 40
52c685d3 410.69 Fri, November 7, 2008
b88aa2e8 42 * Class::MOP::Method::Wrapped
43 - Added introspection methods for method modifiers (Dave Rolsky)
44
45
4a9e02e8 460.68 Fri October 24, 2008
dfbc4d4c 47 * Class::MOP
48 - Make load_class require by file name instead of module name.
49 This stops confusing error messages when loading '__PACKAGE__'.
50 (Florian Ragwitz)
5a24cf8a 51 - Add load_one_class_of function to enable you to load one of a
52 list of classes, rather than having to call load_class multiple
53 times in an eval. (t0m)
dfbc4d4c 54
5f5ee28a 550.67 Tue October 14, 2008
2e7eb96b 56 * Class::MOP::Class
57 - Call a method on the class after setting the superclass list
58 so that we can get Perl to detect cycles before MRO::Compat
59 spirals into an infinite loop (sartak)
60 - Reported by Schwern, [rt.cpan.org #39001]
34d04967 61 - In create(), pass unused options on to initialize()
62 - added test for this
2e7eb96b 63
34d04967 640.66 Sat September 20, 2008
fe05cbbe 65 !! This release has an incompatible change regarding !!
66 introspection of a class's method with Class::MOP::Class !!
67
9e9e6b8f 68 * Tests and XS
69 - We (us maintainers) now run all tests with XS and then without
70 XS, which should help us catch skew between the XS/pure Perl
e073e667 71 code. (Dave Rolsky)
9e9e6b8f 72
91b73829 73 * Class::MOP::Class
fe05cbbe 74 ! The alias_method method has been deprecated. It now simply
1190621f 75 calls add_method instead. There is no distinction between
76 aliased methods and "real" methods.
fe05cbbe 77
78 This means that methods added via alias_method now show up as
7143219b 79 part of the class's method list/map. This is a backwards
fe05cbbe 80 incompatible change, but seems unlikely to break any
81 code. Famous last words. (Dave Rolsky)
91b73829 82
155f0cba 83 * Class::MOP::Class
84 - Fixed the spelling of "compatibility", but we still have a
85 "check_metaclass_compatability" method for backwards
86 compatibility.
9e9e6b8f 87
94278c1b 880.65 Mon September 1, 2008
89 For those not following the series of dev releases, the changes
8b9106cf 90 from 0.64 from 0.65 can mostly be summed up as a lot performance
94278c1b 91 improvements by nothingmuch, including new optional XS versions of
92 some methods. Also, Class::MOP now works _without_ any XS modules,
93 for sad systems without a compiler.
94
988fb42e 95 * Class::MOP::Method
96 - Added name and package_name XS accessors, and make sure all
97 the XS and Perl versions work the same way. (Dave Rolsky)
98
99 * MOP.xs
100 - The XS versions of various methods just returned undef when
101 called class methods, rather than dying like the pure Perl
102 versions. (Dave Rolsky)
103
13ac653a 1040.64_07 Fri August 29, 2008
400982e3 105 * Class::MOP
13ac653a 106 - Silenced warnings that managed to break Moose tests when XS
107 was loaded. (Dave Rolsky)
108 - Some XS versions of methods were ignored because of typos in
109 MOP.xs. (Dave Rolsky)
400982e3 110
13ac653a 1110.64_06 Mon August 25, 2008
9457b596 112 * Class::MOP (MOP.xs)
113 - Another MS VC++ fix, cannot declare a variable in the middle
114 of a scope (Taro Nishino).
115
1160.64_05 Sun August 24, 2008
2a755fe8 117 * Class::MOP
118 - None of the dev releases actually loaded the XS properly, but
119 we silently fell back to the pure Perl version of the
120 code. (Dave Rolsky)
121
122 * Class::MOP (MOP.xs)
123 - Replaced some code that used functions not available on Visual
124 C++ with some Perl XS API bits (Dave Rolsky).
125
f65af096 1260.64_04 Sat August 23, 2008
9ebc265d 127 * Class::MOP::Class
f65af096 128 - Workaround a bug in 5.8.1's goto sub (nothingmuch)
129
130 * pod.t and pod_coveraget.t
131 - These are no longer shipped with the tarball because of bogus
132 failures from CPAN testers. (Dave Rolsky)
9ebc265d 133
df7077cd 1340.64_03 Thu August 21, 2008
135 * Class::MOP::Package
136 - Some (legit) code was misparsed by earlier 5.8.x
137 releases. (nothingmuch)
138
139 * Class::MOP
140 - Fix a constant in void context warning (nothingmuch)
141
09ed1ec5 1420.64_02 Thu August 21, 2008
64c591d3 143 * Makefile.PL and Class::MOP
4dde2f23 144 - Explicitly require Perl 5.8.0+ (Dave Rolsky)
145
146 * Makefile.PL
147 - Add missing prereqs that got lost in the switch away from
148 Module::Install.
64c591d3 149
09ed1ec5 150 * Class::MOP::Instance
151 - New method - get_all_attributes (nothingmuch)
152
1530.64_01 Wed August 20, 2008
f125b31e 154 * Makefile.PL
155 - We now check to see if you have a compiler. If you don't, the
156 module installs without some XS bits, but will work the same
157 as with XS. This should make it easier to install on platforms
158 without a compiler (like Windows). (Dave Rolsky)
2e5c1a3f 159
40b3c18f 160 * many modules
7f799c13 161 - Perl 6 style attribute naming replaced with sane style ('methods', not
162 '%!methods'). These changes should not impact any existing API uses.
163 (nothingmuch).
164
165 * many modules
40b3c18f 166 - Quite a number of optimizations based on profiling, including
167 allowing constructors to take hash references instead of
168 hashes, duplicating some frequently used code in XS, and
169 making constructors immutable. These changes should not impact
170 any existing API uses. (nothingmuch)
171
7f799c13 172 * Many modules
173 - Constructors now respect the meta attributes of their subclasses,
174 facilitating MOP extensibility. More related changes will happen in the
175 next several releases. (nothingmuch)
176
40b3c18f 177 * Class::MOP::Class
7f799c13 178 - New method - get_all_methods, replaces the deprecated
179 compute_all_applicable_methods. get_all_attributes provided for
180 consistency (nothingmuch)
181 - New method - wrap_method was refactored out of get_method_map
182 (nothingmuch)
183 - New API for meta instance invalidation - invalidate_meta_instance,
184 invalidate_meta_instances, add_dependent_meta_instance,
185 remove_dependent_meta_instance, called automatically when attribute
186 definitions change and allows notification of dependent subclasses.
187 (nothingmuch)
40b3c18f 188
7202116b 1890.64 Sun August 3, 2008
84bc89b3 190 * Class::MOP::Immutable
7202116b 191 - fixing subtle edge case in immutable when you
84bc89b3 192 call ->meta (stevan)
7202116b 193 - clean up option processing (nothingmuch)
194
195 * Class::MOP::Instance
196 - inlined initialize slot didn't match
197 non-inlined (nothingmuch)
84bc89b3 198
f079b1eb 1990.63 Mon July 7, 2008
07940968 200 * Class::MOP
201 - load_class will initialize a metaclass even if
202 the class is already loaded (sartak)
203 - load_class now returns the metaclass instance
204 instead of just 1 (sartak)
6e1c8b63 205
f079b1eb 206 * elsewhere
207 - better error messages (sartak and Dave Rolsky)
208
ebce5539 2090.62 Wed June 18, 2008
1377b506 210 - in is_class_loaded, recognize scalar references (as opposed to globs) in
211 the symbol table as methods (these are optimized constant subs)
212
70ad0655 2130.61 Fri. June 13, 2008
214 - Okay, lets give this another try and see if PAUSE
215 recognizes it correct this time.
a023763e 216
2170.60 Thurs. Jun 12, 2008
809a26fc 218 - Fixed a version number issue by bumping all modules
219 to 0.60.
8c5cc782 220
2210.59 Thurs. Jun 12, 2008
d1dba7a1 222 !! Several fixes resulting in yet another 25-30% speedup !!
9b522fc4 223
224 * Class::MOP::Class
225 - now stores the instance of the instance
226 metaclass to avoid needless recomputation
8b49a472 227 and deletes it when the cache is blown
119f3a92 228 - introduce methods to query Class::MOP::Class for
229 the options used to make it immutable as well as
230 the proper immutable transformer. (groditi)
8b49a472 231
232 * Class::MOP::Package
233 - {add, has, get, remove}_package_symbol all
234 now accept a HASH ref argument as well as the
235 string. All internal usages now use the HASH
236 ref version.
f6dc69d2 237
238 * Class::MOP
239 - MOP.xs does sanity checks on the coderef
240 to avoid a segfault
26fcef27 241 - is_class_loaded check now uses code that
242 was improved in Moose's ClassName type
ab5e2f48 243 check (Sartak)
244 - nonsensical (undef, empty, reference) class
245 names now throw a more direct error in
246 load_class (Sartak)
3f7759c1 247 - tests for this and other aspects of
248 load_class (Sartak)
9b522fc4 249
250 * Class::MOP
251 Class::MOP::Class
252 Class::MOP::Method
253 Class::MOP::Method::Wrapped
254 Class::MOP::Attribute
255 - switched usage of reftype to ref because
256 it is much faster
257
352c364f 2580.58 Thurs. May 29, 2008
62781d9f 259 (late night release engineering)--
260
261 - fixing the version is META.yml, no functional
262 changes in this release
263
de0f9e1c 2640.57 Wed. May 28, 2008
d1dba7a1 265 !! Several speedups resulting in 20-25% speedups !!
de0f9e1c 266 || (thanks to konobi, groditi, mst & CataMoose) !!
267
ae234dc6 268 * Class::MOP::Class
269 - made get_method_map use list_all_package_symbols
270 instead of manually grabbing each symbol
de0f9e1c 271 - streamlining &initialize somewhat, since it gets
272 called so much
ae234dc6 273
274 * Class::MOP::Package
275 - made {get, has}_package_symbol not call
276 &namespace so much
de0f9e1c 277 - inlining a few calls to &name with
278 direct HASH access key access
ae234dc6 279 - added get_all_package_symbols to fetch
280 a HASH of items based on a type filter
281 similar to list_all_package_symbols
282 - added tests for this
283
32202ce2 284 * Class::MOP::Method
285 Class::MOP::Method::Constructor
286 Class::MOP::Method::Generated
287 Class::MOP::Method::Accessor
288 - added more descriptive error message to help
289 keep people from wasting time tracking an error
47e20ba2 290 that is easily fixed by upgrading.
32202ce2 291
d1dba7a1 292 * Class::MOP::Immutable
293 - Don't inline a destructor unless the user actually
294 needs one
295 - added tests for this
296
b4009dc1 2970.56 Saturday, May 24, 2008
11b56828 298 * Class::MOP
299 - we now get the &check_package_cache_flag
300 function from MRO::Compat
d7d3f3cb 301 - All XS based functionality now has a
302 Pure Perl alternative
6c34db07 303 - the CLASS_MOP_NO_XS environment variable
d7d3f3cb 304 can now be used to force non-XS versions
6c34db07 305 to always be used
11b56828 306
9e517e01 307 * Class::MOP::Attribute
308 - add has_read_method and has_write_method
d7d3f3cb 309 - get_{read,write}_method_ref now wraps the
def5c0b5 310 anon-sub ref in the method metaclass when
311 possible
312 - added tests for this
d7d3f3cb 313
5f3efd66 314 * Class::MOP::Immutable
d7d3f3cb 315 - added the ability to "wrap" methods when
5f3efd66 316 making the class immutable
d7d3f3cb 317
5f3efd66 318 * Class::MOP::Class
daf8d8bc 319 - now handling the edge case of ->meta->identifier
d7d3f3cb 320 dying by wrapping add_package_symbol to specifically
5f3efd66 321 allow for it to work.
322 - added tests for this
d7d3f3cb 323
324 * Class::MOP::Attribute
6c34db07 325 Class::MOP::Class
d7d3f3cb 326 Class::MOP::Immutable
6c34db07 327 - any time a method meta object is constructed
d7d3f3cb 328 we make sure to pass the correct package and
6c34db07 329 method name information
d7d3f3cb 330
6c34db07 331 * Class::MOP::Method
332 Class::MOP::Method::Wrapped
333 Class::MOP::Method::Generated
334 Class::MOP::Method::Accessor
d7d3f3cb 335 Class::MOP::Method::Consructor
336 - the &wrap constructor method now requires that a
337 'package_name' and 'name' attribute are passed. This
338 is to help support the no-XS version, and will
339 throw an error if these are not supplied.
6c34db07 340 - all these classes are now bootstrapped properly
341 and now store the package_name and name attributes
d7d3f3cb 342 correctly as well
343
344 ~ Build.PL has been removed since the
345 Module::Install support has been removed
9e517e01 346
8adaad20 3470.55 Mon. April 28, 2008
348 - All classes now have proper C3 MRO support
349 - added MRO::Compat as a dependency to allow
350 for the C3 MRO support to Just Work in all
351 perl versions
d7d3f3cb 352
830b326c 353 * Class::MOP::Class
d7d3f3cb 354 - rebless_instance now returns the instance
355 it has just blessed, this is mostly to
830b326c 356 facilitate chaining
d7d3f3cb 357 - set the attr correctly in rebless_instance
6e2a700f 358 when it has no init_arg
77a143ba 359 - tweaked &linear_isa and &class_precedence_list
360 to support c3 classes.
830b326c 361
e0db39d2 3620.54 Fri. March, 14, 2008
8861fab2 363 * Class::MOP
214e4bd7 364 metaclass.pm
8861fab2 365 - making sure that load_class never gets
d7d3f3cb 366 passed a value from @_ or $_ to squash
8861fab2 367 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
368
09c6e1d2 369 * Class::MOP::Class
370 - make_{immutable,mutable} now return 1
371 (cause Sartak asked)
d7b2249e 372 - improved error handling in ->create method
d7d3f3cb 373 - rebless_instance now takes extra params which
374 will be used to populate values
214e4bd7 375 - added tests for this
d7d3f3cb 376
acce7fd6 377 * Class::MOP::Object
d7d3f3cb 378 - localizing the Data::Dumper configurations so
379 that it does not pollute others (RT #33509)
380
d7b2249e 381 * Class::MOP::Class
382 Class::MOP::Package
383 Class::MOP::Module
384 Class::MOP::Method
385 Class::MOP::Attribute
d7d3f3cb 386 - these classes no longer define their own ->meta,
387 but instead just inherit from Class::MOP::Object
388
d7b2249e 389 * Class::MOP::Instance
d7d3f3cb 390 Class::MOP::Immutable
d7b2249e 391 - these classes now inherit from Class::MOP::Object
d7d3f3cb 392
10dd437b 393 * t/
d7d3f3cb 394 - fixed the filename length on several
10dd437b 395 test files so we install on VMS better
396 (RT #32295)
d7d3f3cb 397 - fixed incorrect use of catdir when it
10dd437b 398 should be catfile (RT #32385)
399
2491730f 4000.53 Thurs. Feb. 14, 1008
7a536297 401 ~~ several doc. fixes and updates ~~
d7d3f3cb 402
0c6f4c4a 403 * Class::MOP::Class
404 Class::MOP::Method::Constructor
405 Class::MOP::Attribute
406 - making init_arg accept an undefined value
d7d3f3cb 407 to indicate that no constructor args can
0c6f4c4a 408 be passed (thanks to nothingmuch)
409 - added tests for this
339264d8 410 - added attribute initializer attribute (rjbs)
d7d3f3cb 411
0c6f4c4a 412 * Class::MOP.
413 - making this use the new init_arg => undef
d7d3f3cb 414 feature instead of the silly hack from
0c6f4c4a 415 before (thanks to nothingmuch)
ad074154 416
3e8e8f07 4170.52 Tues. Jan. 22, 2008
2a2b8458 418 * Class::MOP::Class
d7d3f3cb 419 - fixed bug in rebless_instance
2a2b8458 420 (discovered by ash)
421
422 * Class::MOP::Method::Constructor
d7d3f3cb 423 - removed assumptions about the existence of
2a2b8458 424 a &meta method
425
656ce3ba 4260.51 Mon. Jan. 14, 2008
69e3ab0a 427 ~~~ some misc. doc. fixes ~~~
428 ~~ updated copyright dates ~~
d7d3f3cb 429
c1d5345a 430 * Class::MOP
d7d3f3cb 431 - now sets the IS_RUNNING_ON_5_10
c1d5345a 432 constant so that we can take advantage
433 of some of the nice bits of 5.10
d7d3f3cb 434
c1d5345a 435 * Class::MOP::Class
d7d3f3cb 436 - uses the IS_RUNNING_ON_5_10 flag to
437 optimize the &linearized_isa method
c1d5345a 438 and avoid the hack/check for circular
d7d3f3cb 439 inheritence in &class_precedence_list
3d9e4646 440 - added rebless_instance method (Sartak)
441 - added tests for this
d7d3f3cb 442
443 * Class::MOP::Immutable
444 - the immutable class now keeps track of
c1d5345a 445 the transformer which immutablized it
69e3ab0a 446
3d9e4646 447 * Class::MOP::Instance
448 - added rebless_instance_structure method (Sartak)
449 - added tests for this
450
a780a6ff 4510.50 Fri. Dec. 21, 2007
6ff0d647 452 * Class::MOP::Class
d7d3f3cb 453 - fixed bug in immutable to make sure that
454 transformation arguments are saved
6ff0d647 455 correctly (mst)
b6bcc3a5 456 - added tests for this
d7d3f3cb 457
6ff0d647 458 * Class::MOP::Immutable
459 - fixed a bug (see above)
d7d3f3cb 460
6ff0d647 461 * Class::MOP::Attribute
462 - some doc updates
463
30b8af04 4640.49 Fri. Dec. 14, 2007
b6bcc3a5 465 !! Class::MOP now loads 2 x faster !!
30b8af04 466 !! with XS speedups (thanks konobi) !!
d7d3f3cb 467
30b8af04 468 * Class::MOP
469 - removed the dependency on B
470 - added two XS functions (thanks konobi)
471 - get_code_info($code) which replaces all
472 the B fiddling we were doing with
473 faster/leaner XS level fiddling
d7d3f3cb 474 - check_package_cache_flag($pkg_name) which
475 returns the PL_sub_generation variable to
30b8af04 476 be used to help manage method caching.
d7d3f3cb 477
478 NOTE:
479 In 5.10 or greater this will actually
480 use the mro::get_pkg_gen instead to give
481 even more accurate caching information.
30b8af04 482 blblack++ for that stuff :)
d7d3f3cb 483
6c9f390e 484 * Class::MOP::Class
485 - added the &subclasses method (thanks rlb)
d7d3f3cb 486 - added the update_package_cache_flag and
487 reset_package_cache_flag which help keep
488 track of when we need to re-fetch the
489 method map.
30b8af04 490 - Several small improvements to take advantage
491 of the new method map caching features
4c4a6c41 492
1b8b3e09 4930.48 Mon. Nov. 26, 2007
d14f6cbe 494 * Class::MOP::Attribute
d7d3f3cb 495 - fixed get_read/write_method to handle the
496 HASH ref case, which makes the
d14f6cbe 497 get_read/write_method_ref handle it too.
498 - added more tests for this
499
742fb371 5000.47 Sat. Nov. 24, 2007
501 * Class::MOP::Attribute
502 - fixed misspelling in get_write_method_ref
78d9bb38 503 - added more tests for this
742fb371 504
fe7c0b15 5050.46 Fri. Nov. 23, 2007
b7bdffc3 506 * Class::MOP::Class
d7d3f3cb 507 - added the linearized_isa method instead of constantly
508 pruning duplicate classes (this will be even more
b7bdffc3 509 useful in the 5.10-compat version coming soon)
d7d3f3cb 510
5da16d1b 511 * Class::MOP::Attribute
512 - added the get_read_method_ref and get_write_method_ref
d7d3f3cb 513 methods which allow you to retrieve a CODE ref which
5da16d1b 514 can always be used to read or write an attribute.
b7bdffc3 515
1a5cc82e 5160.45 Thurs. Nov. 13, 2007
232c4e13 517 * Class::MOP::Attribute
518 - Fix error message on confess (groditi)
519
544143b2 5200.44 Thurs. Nov. 13, 2007
521 - Apparently I didn't make dist correctly (groditi)
522
c0aeeb91 5230.43 Thurs. Nov. 13, 2007
b08fd50c 524 * Class::MOP
1d68af04 525 - Add support for the 'builder' attribute (groditi)
526
b08fd50c 527 * Class::MOP::Class
d7d3f3cb 528 - optimise metaclass-already-exists check in
b08fd50c 529 construct_class_instance (groditi)
d7d3f3cb 530 - duplicate check into initialize to save a
b08fd50c 531 call through (groditi)
532
1d68af04 533 * Class::MOP::Attribute
534 - Add support for the 'builder' attribute (groditi)
d7d3f3cb 535 - Make predicates check for the existence of a value, not whether
b08fd50c 536 it is defined (groditi)
8768ecf3 537
538 * Class::MOP::Instance
d7d3f3cb 539 - Make predicates check for the existence of a value, not whether
b08fd50c 540 it is defined (groditi)
8768ecf3 541
d7d3f3cb 542 * Class::MOP::Method::Accessor
565f0cbb 543 - made this a subclass of Class::MOP::Method::Generated
544 - removed the relevant attributes
545
546 * Class::MOP::Method::Constructor
547 - fixed the cached values we had to be more sane
548 - made this a subclass of Class::MOP::Method::Generated
d7d3f3cb 549 - fixed generated constructor so it properly handles
565f0cbb 550 subclasses now.
551 - added tests for this
d7d3f3cb 552 - added the option to allow for both inlined and
565f0cbb 553 non-inlined constructors.
b08fd50c 554 - Update inlined methods for builder and predicate changes (groditi)
565f0cbb 555
556 * Class::MOP::Method::Generated
d7d3f3cb 557 - added this class as an abstract base for the
565f0cbb 558 Class::MOP::Method::{Constructor,Accessor} classes
559 - added tests for this
560
b08fd50c 561 *t/
562 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
563 - Tests for new predicate behavior (and corrections to old tests) (groditi)
564
565 *examples/
566 - Update ArrayRef based class example to work with predicate changes
567
367183c4 5680.42 Mon. July 16, 2007
9195ddff 569 !!! Horray for mst, he fixed it !!!
570
92af7fdf 571 * Class::MOP::Package
572 - alter symbol table handling to deal with 5.8.x and 5.9.x
d7d3f3cb 573
92af7fdf 574 * t/
9195ddff 575 - Get rid of the crappy workaround from 0.40/41
92af7fdf 576
829f7554 5770.41 Sun. July 15, 2007
578 * t/
579 Arghh!!! My TODO test didn't work, so I handle
d7d3f3cb 580 it manually now so that people can use this
829f7554 581 with 5.9.5/bleadperl without issue.
582
1d7205b8 5830.40 Tues, July 3, 2007
9f88b8ff 584 * t/
d7d3f3cb 585 ~ marked a test in 003_methods.t as TODO
586 for perl 5.9.5 (this test is irrelvant to
587 the module functioning on 5.9.5 for the most
1d7205b8 588 part anyway)
9f88b8ff 589
28acb786 5900.39 Mon. June 18, 2007
b817e248 591 * Class::MOP::Immutable
0ac992ee 592 - added make_metaclass_mutable + docs (groditi)
593 - removed unused variable
d9586da2 594 - added create_immutable_transformer
595 necessary for sane overloading of immutable behavior
d7d3f3cb 596 - tests for this (groditi)
0ac992ee 597
598 * Class::MOP::Class
599 - Immutability can now be undone,
600 added make_mutable + tests + docs (groditi)
04dd7510 601 - Massive changes to the way Immutable is done
602 for details see comments next to make_immutable
603 This fixes a bug where custom metaclasses broke
d7d3f3cb 604 when made immutable. We are now keeping one immutable
605 metaclass instance per metaclass instead of just one
04dd7510 606 to prevent isa hierarchy corruption. Memory use will go
607 up, but I suspect it will be neglible.
608 - New tests added for this behavior. (groditi)
7c90a1a8 609
c0fcd6ab 6100.38 Thurs. May 31, 2007
823a5d31 611 ~~ More documentation updates ~~
d7d3f3cb 612
823a5d31 613 * Class::MOP::Package
614 - we now deal with stub methods properly
615 - added tests for this
c0fcd6ab 616 - fixed some tests failing on 5.9.5 (thanks blblack)
d7d3f3cb 617
b25109b1 618 * Class::MOP::Attribute
619 - added get_read_method and get_write_method
d7d3f3cb 620 thanks to groditi for this code, tests
c81de280 621 and docs.
b25109b1 622 - added tests and POD for this
d7d3f3cb 623
795a0c8b 624 * Class::MOP::Class
d7d3f3cb 625 - fixed RT issue #27329, clone object now
795a0c8b 626 handles undef values correctly.
627 - added tests for this
d7d3f3cb 628 - Corrected anon-class handling so that they
629 will not get reaped when instances still
630 exist which need to reference them. This is
631 the correct behavior, hopefully this is an
632 obscure enough feature that there are not too
d4ba1677 633 many work arounds out in the wild.
d7d3f3cb 634 - added tests for this by groditi
95514cb4 635 - updated docs to explain this
636
637 * metaclass
c0fcd6ab 638 - load custom metaclasses automatically (thanks groditi)
f2266181 639 - added tests for this behavior
a06797b0 640
3dc99d93 6410.37 Sat. March 10, 2007
448b6e55 642 ~~ Many, many documentation updates ~~
d7d3f3cb 643
448b6e55 644 * Class::MOP
d7d3f3cb 645 - added &load_class and &is_class_loaded
448b6e55 646 - added tests and docs for these
2367814a 647
9363ea89 648 * Class::MOP::Attribute
d7d3f3cb 649 - default now checks the instance with defined to
9363ea89 650 avoid setting off bool-overloads (found by Carl Franks)
651
c23184fc 6520.37_002
d7d3f3cb 653 * /t
654 - bad name in a test, causing meaningless failuress.
c23184fc 655 No other changes.
656
6570.37_001
d7d3f3cb 658
c23184fc 659 ~~ GLOBAL CHANGES ~~
d7d3f3cb 660 - All attribute names are now consistent and follow Perl 6
661 style (prefixed with the sigil, and ! as the twigil for
662 private attrs). This should not affect any code, unless
663 you broke encapsulation, in which case, it is your problem
c23184fc 664 anyway.
d7d3f3cb 665
c23184fc 666 !! Class::MOP::Class::Immutable has been removed
d7d3f3cb 667
c23184fc 668 * Class::MOP::Method::Constructor
d7d3f3cb 669 - this has been moved out of Class::MOP::Class::Immutable
c23184fc 670 and is a proper subclass of Class::MOP::Method now.
d7d3f3cb 671
c23184fc 672 * Class::MOP::Class
d7d3f3cb 673 - this module now uses Class::MOP::Immutable for the
674 immutable transformation instead of
c23184fc 675 Class::MOP::Class::Immutable.
d7d3f3cb 676
677 + Class::MOP::Immutable
678 - this module now controls the transformation from a mutable
679 to an immutable version of the class. Docs for this will
c23184fc 680 be coming eventually.
d7d3f3cb 681
c23184fc 682
cdc1ecba 6830.36 Sun. Nov. 5, 2006
a651e249 684 * Class::MOP::Class
d7d3f3cb 685 - added a few 'no warnings' lines to keep annoying
686 (and meaningless) warnings from chirping during
a651e249 687 global destruction.
d7d3f3cb 688
0870928c 689 * Class::MOP
d7d3f3cb 690 - some more bootstrapping is now done on the new
0870928c 691 classes
d7d3f3cb 692
0870928c 693 * Class::MOP::Class::Immutable
d7d3f3cb 694 *** API CHANGE ***
695 - constructor generation is now handled by
0870928c 696 the Class::MOP::Method::Constructor class
d7d3f3cb 697
0870928c 698 * Class::MOP::Method::Constructor
d7d3f3cb 699 - created this to handle constructor generation
0870928c 700 in Class::MOP::Class::Immutable
d7d3f3cb 701
0870928c 702 * Class::MOP::Attribute
d7d3f3cb 703 *** API CHANGE ***
704 - attributes now delegate to the
705 Class::MOP::Method::Accessor to generate
0870928c 706 accessors
d7d3f3cb 707
0870928c 708 * Class::MOP::Method::Accessor
d7d3f3cb 709 - all accessor generation functions from
0870928c 710 Class::MOP::Attribute have been moved here
a651e249 711
80f00c79 7120.35 Sat. Sept. 30, 2006
8745cf22 713
714 * scripts/class_browser.pl
d7d3f3cb 715 - initial prototype of a class browser, more
716 on this to come. Comments and patches are
8745cf22 717 very much welcome.
b1897d4d 718
719 * Class::MOP
d7d3f3cb 720 - All Class::MOP::* accessors are no longer
721 re-generated in the bootstrap, instead
6d2118a4 722 they are aliased from the originals
6d2118a4 723 - fixed tests to reflect
d7d3f3cb 724 - added Class::MOP::Method (and its subclasses)
b1897d4d 725 to the bootstrap
726 - adjusted tests for this
86482605 727 - added the Class::MOP::Instance attributes
728 to the bootstrap
d7d3f3cb 729
b1897d4d 730 * Class::MOP::Method
731 *** API CHANGE ***
732 - methods are no longer blessed CODE refs
733 but are actual objects which can be CODE-ified
734 - adjusted tests to compensate
d7d3f3cb 735 - adjusted docs for this
b1897d4d 736
737 * Class::MOP::Class
d7d3f3cb 738 - changed how methods are dealt with to
739 encapsulate most of the work into the
b1897d4d 740 &get_method_map method
741 - made several adjustments for the change
742 in Class::MOP::Method
d7d3f3cb 743 - &add_attribute now checks if you are adding
744 a duplicate name, and properly removes the
b1897d4d 745 old one before installing the new one
746 - added tests for this
86482605 747 - adjusted docs for this
d7d3f3cb 748
b1897d4d 749 * Class::MOP::Class::Immutable
750 - added caching of &get_method_map
751 - fixed issue with &get_package_symbol
752 - cleaned up the methods that die (patch by David Wheeler)
d7d3f3cb 753
b1897d4d 754 * Class::MOP::Package
d7d3f3cb 755 - added filtering capabilities to
b1897d4d 756 &list_all_package_symbols
757
a549ce50 7580.34 Sat. Aug. 26, 2006
c4260b45 759 * Class::MOP::Class
760 - added the %:methods attribute, which like
d7d3f3cb 761 the $:version and such just actually goes
762 to the symbol table to get it's stuff.
c4260b45 763 However, it makes the MOP more complete.
88dd563c 764 ** API CHANGE **
d7d3f3cb 765 - The &create method now requires that all
766 but the package name now is passed in as
88dd563c 767 named parameters. See docs for more info.
768 - updated docs and tests for this
d7d3f3cb 769
c4260b45 770 * Class::MOP::Object
d7d3f3cb 771 - added &dump method to easily Data::Dumper
c4260b45 772 an object
d7d3f3cb 773
c4260b45 774 * Class::MOP
d7d3f3cb 775 - cleaned up the initialization of attributes
776 which do not store things in the instance
c4260b45 777 - added the %:methods attribute definition to
778 the bootstrap
d7d3f3cb 779
88dd563c 780 ~ lots of misc. test cleanup
c4260b45 781
56e8dd5d 7820.33 Sat. Aug. 19, 2006
be7677c7 783 * Class::MOP::Class
d7d3f3cb 784 - moved the metaclass cache out of here
be7677c7 785 and it is now in Class::MOP itself.
d7d3f3cb 786
56e8dd5d 787 * Class::MOP
788 - moved all the metaclass cache stuff here
789 - fixed all tests for this
be7677c7 790
148b4697 791 * Class::MOP::Attribute
d7d3f3cb 792 - reference values (other than CODE refs)
148b4697 793 are no longer allowed for defaults
794 - added tests for this
d7d3f3cb 795
56dcfc1a 796 * Class::MOP::Package
d7d3f3cb 797 - fixed an issue with perl 5.8.1 and how it deals
798 with symbol tables. The namespace hash is now
799 always reloaded from the symbol table.
e3a2c885 800
801 ~ lots of misc. documentation cleanup
1396f86b 802
716c5765 8030.32 Sat. Aug. 12, 2006
d7d3f3cb 804 + added Class::MOP::Object so that the
6e57504d 805 metamodel is more complete (and closer
806 to what Perl 6 will probably be).
807
9ca19585 808 * Class::MOP::Package
d7d3f3cb 809 - refactored entire class, this is now
9ca19585 810 the primary gateway between the metaclass
811 and the Perl 5 symbol table
812 - added many tests for this
d7d3f3cb 813 - this class is now a subclass of
6e57504d 814 Class::MOP::Object
716c5765 815 - added some tests to reflect this
d7d3f3cb 816
9ca19585 817 * Class::MOP::Class
d7d3f3cb 818 - refactored all symbol table access to
9ca19585 819 use Class::MOP::Package methods instead
d7d3f3cb 820
f0480c45 821 * Class::MOP::Module
822 - adding the $:version attribute in the bootstrap
823 so that Module has a version as an attribute
824 - see comment in Class::MOP for details
d7d3f3cb 825 - added the $:authority attribute to this module
826 as well as an &identifier method, to bring us
827 ever closer to Perl 6 goodness
828 - I have added $AUTHORITY to all the modules
716c5765 829 - added tests for this
d7d3f3cb 830
f0480c45 831 * Class::MOP::Instance
d7d3f3cb 832 - added &deinitialize_slot for removing slots
f0480c45 833 from an instance
d7d3f3cb 834 - added tests for this
835
836 * Class::MOP::Attribute
9ca19585 837 - added support for &deinitialize_slot for removing
838 slots from an instance
839 - added tests for this
840
1a09d9cc 8410.31 Sat. July 15, 2006
842
b679e644 843 * Class::MOP::Class
844 - added &find_method_by_name to locate a method
d7d3f3cb 845 anywhere within the class hierarchy
846
b679e644 847 * Class::MOP::Attribute
d7d3f3cb 848 - added &set_value and &get_value for getting
849 the value of the attribute for a particular
b679e644 850 instance.
851
373a16ae 8520.30 Wed. July 5, 2006
853 ---------------------------------------
d7d3f3cb 854 This is the first version of Class::MOP
373a16ae 855 to introduce the immutable features which
d7d3f3cb 856 will be used for optimizating the MOP.
373a16ae 857 This support should still be considered
858 experimental, but moving towards stability.
859 ---------------------------------------
d7d3f3cb 860
861 * Created Class::MOP::Class::Immutable
862
863 * Created the Class::MOP::Package and
864 Class::MOP::Module classes to more
373a16ae 865 closely conform to Perl 6's meta-model
e0a82090 866
867 * Class::MOP::Class
868 - now inherits from Class::MOP::Module
d7d3f3cb 869 - several methods moved to ::Module and
e0a82090 870 ::Package and now inherited
871 - added tests for this
d7d3f3cb 872
c0cbf4d9 873 * Class::MOP::Instance
d7d3f3cb 874 - added an is_inlinable method to allow other
c0cbf4d9 875 classes to check before they attempt to optimize.
d7d3f3cb 876 - added an inline_create_instance to inline
877 instance creation (of course)
878
2ba153a9 879 ** API CHANGE **
d7d3f3cb 880 - the Class::MOP::Class::*_package_variable
2ba153a9 881 methods are all now methods of Class::MOP::Package
d7d3f3cb 882 and called *_package_symbol instead. This is
883 because they are now more general purpose symbol
884 table manipulation methods.
e0a82090 885
cdfaa4cc 8860.29_02 Thurs. June 22, 2006
887 ++ DEVELOPER RELEASE ++
df7b4119 888 * Class::MOP::Class
d7d3f3cb 889 - small change in &create so that it behaves
df7b4119 890 properly when inherited
cdfaa4cc 891 - small fix to &clone_instance
df7b4119 892
667cecf3 8930.29_01 Fri. May 12, 2006
894 ++ DEVELOPER RELEASE ++
d7d3f3cb 895 - This release works in combination with
667cecf3 896 Moose 0.09_01, it is a developer release
d7d3f3cb 897 because it introduces a new instance
898 sub-protocol and has not yet been
899 optimized.
667cecf3 900
40483095 901 * Class::MOP::Class
902 - anon-classes are now properly garbage collected
d7d3f3cb 903 - added tests for this
904 - improved method modifier wrapping
40483095 905
2bab2be6 906 * Class::MOP::Instance
1becdfcc 907 - added new instance protocol
2bab2be6 908 - added tests for this
909 - changed all relevant modules and examples
910 - Class::MOP::Class
911 - Class::MOP::Attribute
912 - examples/*
913
1becdfcc 914 * metaclass
915 - you no longer need to specify the metaclass
916 itself, if it is not there, Class::MOP::Class
917 is just assumed
918 - updated tests for this
919
920 * examples/
d7d3f3cb 921 - added ArrayBasedStorage example to show
1becdfcc 922 instance storage using ARRAY refs instead of
d7d3f3cb 923 HASH refs.
1becdfcc 924 - added tests for this
d7d3f3cb 925 - InsideOutClass is totally revised using the
1becdfcc 926 new instance protocol
927 - added more tests for this
928
93b4e576 9290.26 Mon. April 24, 2006
e7f732e4 930 * Class::MOP::Class
931 - added find_attribute_by_name method
932 - added tests and docs for this
56a0b530 933 - some small optimizations
934
935 * Class::MOP::Attribute
936 - some small optimizations
e7f732e4 937
46666f33 9380.25 Thurs. April 20, 2006
587aca23 939 * Class::MOP::Class
940 - added create_anon_class for creating anonymous classes
941 - added tests for this
942 - added get_all_metaclasses, get_all_metaclass_names
943 and get_all_metaclass_instances method to allow
944 access to all the cached metaclass objects.
bd4e03f9 945 - attribute slot initialization is now the responsibility
d7d3f3cb 946 of the attribute itself, and construct_instance now
bd4e03f9 947 delegates appropriately
d7d3f3cb 948
bd4e03f9 949 * Class::MOP::Attribute
950 - attribute slot initialization is now the responsibility
951 of the attribute itself, so we added a method for it
952 called initialize_instance_slot
d7d3f3cb 953
fed4cee7 954 * examples/
d7d3f3cb 955 - adjusted all the examples to use the new attribute
956 initialize_instance_slot method
587aca23 957
1daaa2b2 9580.24 Tues. April 11, 2006
8c936afc 959 * Class::MOP::Class
d7d3f3cb 960 - cleaned up how the before/after/around method
8c936afc 961 modifiers get named with Sub::Name
962
b9dfbf78 9630.23 Thurs. March 30, 2006
a977cf65 964 * Class::MOP::Class
d7d3f3cb 965 - fixed the way attribute defaults are handled
a977cf65 966 during instance construction (bug found by chansen)
d7d3f3cb 967
b9dfbf78 968 * Class::MOP::Attribute
d7d3f3cb 969 - read-only accessors ('reader') will now die if
b9dfbf78 970 passed more than one argument (attempting to write
971 to them basically)
972 - added tests for this
d7d3f3cb 973 - adjusted all /example files to comply
a977cf65 974
f9eba090 9750.22 Mon. March 20, 2006
0eff2c16 976 * Class::MOP::Class
977 - localized $@ in the *_package_variable functions
978 because otherwise, it does ugly things in Moose.
979 - added test case for this
980
1988e85e 9810.21 Wed. March 15, 2006
2f6d5412 982 * Class::MOP::Class
d7d3f3cb 983 - fixed issue where metaclasses are reaped from
2f6d5412 984 our cache in global destruction, and so are not
985 available in DESTORY calls
986
96ceced8 9870.20 Thurs. March 2, 2006
d7d3f3cb 988 - removed the dependency for Clone since
d3cb0d4a 989 we no longer to deep-cloning by default.
d7d3f3cb 990
a4258ffd 991 * Class::MOP::Method
d7d3f3cb 992 - added &package_name, &name and
993 &fully_qualified_name methods, some of
994 which were formerly private subs in
a4258ffd 995 Class::MOP::Class
d7d3f3cb 996
a4258ffd 997 * Class::MOP::Method::Wrapped
d7d3f3cb 998 - allows for a method to be wrapped with
999 before, after and around modifiers
a4258ffd 1000 - added tests and docs for this feature
d3cb0d4a 1001
1002 * Class::MOP::Class
58d75218 1003 - improved &get_package_symbol
96ceced8 1004 - &version and &superclasses now use it
a4258ffd 1005 - methods are now blessed into Class::MOP::Method
1006 whenever possible
d7d3f3cb 1007 - added methods to install CLOS-style method modifiers
a4258ffd 1008 - &add_before_method_modifier
d7d3f3cb 1009 - &add_after_method_modifier
a4258ffd 1010 - &add_around_method_modifier
1011 - added tests and docs for these
d7d3f3cb 1012 - added &find_next_method_by_name which finds the
96ceced8 1013 equivalent of SUPER::method_name
d3cb0d4a 1014
1c020571 10150.12 Thurs. Feb 23, 2006
d7d3f3cb 1016 - reduced the dependency on B, no need to always
d89c0fad 1017 have the latest
1018
1c020571 1019 * examples/
1020 - added docs to the C3 method dispatch order test
d7d3f3cb 1021 - fixed missing Algorithm::C3 dependency by making
1c020571 1022 the test skip if it is not installed
1023
0dea7280 10240.11 Mon Feb. 20, 2006
f3f5bd34 1025 * examples/
1026 - added example of changing method dispatch order to C3
d7d3f3cb 1027
a27ae83f 1028 * Class::MOP::Class
19d4b5b8 1029 - changed how clone_instance behaves, it now only does a
1030 shallow clone (see docs for more details)
a27ae83f 1031 - added docs and tests
f3f5bd34 1032
3bf7644b 10330.10 Tues Feb. 14, 2006
d7d3f3cb 1034 ** This release was mostly about writing more tests and
1035 cleaning out old and dusty code, the MOP should now
3bf7644b 1036 be considered "ready to use".
1037
22286063 1038 - adding more tests to get coverage up a little higher,
1039 mostly testing errors and edge cases.
1040 - test coverage is now at 99%
d7d3f3cb 1041
aa448b16 1042 * Class::MOP
1043 - no longer optionally exports to UNIVERSAL::meta or
d7d3f3cb 1044 creates a custom metaclass generator, use the
aa448b16 1045 metaclass pragma instead.
22286063 1046
d7d3f3cb 1047 * Class::MOP::Class
1048 - fixed a number of minor issues which came up in the
1049 error/edge-case tests
1050
1051 * Class::MOP::Attribute
1052 - fixed a number of minor issues which came up in the
22286063 1053 error/edge-case tests
d7d3f3cb 1054
0b8eb325 1055 * examples/
ea263060 1056 - fixing the AttributesWithHistory example, it was broken.
663f8198 1057
550d56db 10580.06 Thurs Feb. 9, 2006
677eb158 1059 * metaclass
d7d3f3cb 1060 - adding new metaclass pragma to make setting up the
677eb158 1061 metaclass a little more straightforward
d7d3f3cb 1062
7b31baf4 1063 * Class::MOP
d7d3f3cb 1064 - clean up bootstrapping to include more complete
1065 attribute definitions for Class::MOP::Class and
1066 Class::MOP::Attribute (accessors, readers, writers,
7b31baf4 1067 etc.) ... it is redundant, but is useful meta-info
1068 to have around.
677eb158 1069
99e5b7e8 1070 * Class::MOP::Class
d7d3f3cb 1071 - fixing minor meta-circularity issue with &meta, it
99e5b7e8 1072 is now more useful for subclasses
d7d3f3cb 1073 - added &get_attribute_map as an accessor for the
7b31baf4 1074 hash of attribute meta objects
c9e77dbb 1075 - &compute_all_applicable_attributes now just returns
1076 the attribute meta-object, rather than the HASH ref
d7d3f3cb 1077 since all the same info can be gotten from the
c9e77dbb 1078 attribute meta-object itself
1079 - updated docs & tests to reflect
5f3c057a 1080 - added &clone_instance method which does a deep clone
1081 of the instance structure created by &construct_instance
1082 - added docs & tests for this
550d56db 1083 - added Clone as a dependency
5f3c057a 1084 - added &new_object and &clone_object convience methods to
1085 return blessed new or cloned instances
2a7575a6 1086 - they handle Class::MOP::Class singletons correctly too
5f3c057a 1087 - added docs & tests for this
2a7575a6 1088 - cleaned up the &constuct_class_instance so that it behaves
1089 more like &construct_instance (and managed the singletons too)
550d56db 1090 - added the &check_metaclass_compatibility method to make sure
1091 that metaclasses are upward and downward compatible.
1092 - added tests and docs for this
d7d3f3cb 1093
99e5b7e8 1094 * examples/
1095 - adjusting code to use the &Class::MOP::Class::meta
1096 fix detailed above
677eb158 1097 - adjusting code to use the metaclass pragma
d7d3f3cb 1098
aa9c883e 10990.05 Sat Feb. 4, 2006
2e41896e 1100 * Class::MOP::Class
1101 - added the &attribute_metaclass and &method_metaclass
d7d3f3cb 1102 attributes which contain a metaclass name to use for
2e41896e 1103 attributes/methods respectively
d7d3f3cb 1104
351bd7d4 1105 * Class::MOP
d7d3f3cb 1106 - bootstrap additional attributes for Class::MOP::Class
1107
2e41896e 1108 * examples/
1109 - adjusted the example code and tests to use the new
1110 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 1111 - added new example:
1112 - LazyClass
2e41896e 1113
d7c2cbe3 11140.04 Fri Feb. 3, 2006
d6fbcd05 1115 * Class::MOP::Class
1116 - some documentation suggestions from #perl6
d7d3f3cb 1117
d6fbcd05 1118 * Class::MOP::Attribute
d7d3f3cb 1119 - improved error messages
1120
d6fbcd05 1121 * examples/
1122 - added new examples:
1123 - AttributesWithHistory
d7c2cbe3 1124 - ClassEncapsultedAttributes
343203ee 1125
9ec169fe 11260.03 Fri Feb. 3, 2006
1127 - converted to Module::Build instead of EU::MM
d7d3f3cb 1128
9ec169fe 1129 * Class::MOP::Attribute
1130 - refactored method generation code
1131 - attributes are now associated with class directly
d7d3f3cb 1132
f71f4295 1133 * examples/
d7d3f3cb 1134 - refactored the InsideOut example to take advantage
9ec169fe 1135 of the Class::MOP::Attribute refactoring
f71f4295 1136 - changed example files to .pod files and hide thier
1137 package names from PAUSE (I don't want to own these
1138 namespaces really, they are just examples)
9ec169fe 1139
a57c7fa2 11400.02 Thurs Feb. 2, 2006
1141 - moving examples from t/lib/* to examples/*
1142 - adding POD documentation to the examples
1143
a2e85e6c 11440.01 Thurs Feb. 2, 2006
92af7fdf 1145 - Initial release