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