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