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