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