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