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