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