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