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