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