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