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