1 Revision history for Perl extension Class-MOP.
6 - making sure that load_class never gets
7 passed a value from @_ or $_ to squash
8 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
11 - make_{immutable,mutable} now return 1
15 - localizing the Data::Dumper configurations so
16 that it does not pollute others (RT #33509)
19 - fixed the filename length on several
20 test files so we install on VMS better
22 - fixed incorrect use of catdir when it
23 should be catfile (RT #32385)
25 0.53 Thurs. Feb. 14, 1008
26 ~~ several doc. fixes and updates ~~
29 Class::MOP::Method::Constructor
31 - making init_arg accept an undefined value
32 to indicate that no constructor args can
33 be passed (thanks to nothingmuch)
34 - added tests for this
35 - added attribute initializer attribute (rjbs)
38 - making this use the new init_arg => undef
39 feature instead of the silly hack from
40 before (thanks to nothingmuch)
42 0.52 Tues. Jan. 22, 2008
44 - fixed bug in rebless_instance
47 * Class::MOP::Method::Constructor
48 - removed assumptions about the existence of
51 0.51 Mon. Jan. 14, 2008
52 ~~~ some misc. doc. fixes ~~~
53 ~~ updated copyright dates ~~
56 - now sets the IS_RUNNING_ON_5_10
57 constant so that we can take advantage
58 of some of the nice bits of 5.10
61 - uses the IS_RUNNING_ON_5_10 flag to
62 optimize the &linearized_isa method
63 and avoid the hack/check for circular
64 inheritence in &class_precedence_list
65 - added rebless_instance method (Sartak)
66 - added tests for this
68 * Class::MOP::Immutable
69 - the immutable class now keeps track of
70 the transformer which immutablized it
72 * Class::MOP::Instance
73 - added rebless_instance_structure method (Sartak)
74 - added tests for this
76 0.50 Fri. Dec. 21, 2007
78 - fixed bug in immutable to make sure that
79 transformation arguments are saved
81 - added tests for this
83 * Class::MOP::Immutable
84 - fixed a bug (see above)
86 * Class::MOP::Attribute
89 0.49 Fri. Dec. 14, 2007
90 !! Class::MOP now loads 2 x faster !!
91 !! with XS speedups (thanks konobi) !!
94 - removed the dependency on B
95 - added two XS functions (thanks konobi)
96 - get_code_info($code) which replaces all
97 the B fiddling we were doing with
98 faster/leaner XS level fiddling
99 - check_package_cache_flag($pkg_name) which
100 returns the PL_sub_generation variable to
101 be used to help manage method caching.
104 In 5.10 or greater this will actually
105 use the mro::get_pkg_gen instead to give
106 even more accurate caching information.
107 blblack++ for that stuff :)
110 - added the &subclasses method (thanks rlb)
111 - added the update_package_cache_flag and
112 reset_package_cache_flag which help keep
113 track of when we need to re-fetch the
115 - Several small improvements to take advantage
116 of the new method map caching features
118 0.48 Mon. Nov. 26, 2007
119 * Class::MOP::Attribute
120 - fixed get_read/write_method to handle the
121 HASH ref case, which makes the
122 get_read/write_method_ref handle it too.
123 - added more tests for this
125 0.47 Sat. Nov. 24, 2007
126 * Class::MOP::Attribute
127 - fixed misspelling in get_write_method_ref
128 - added more tests for this
130 0.46 Fri. Nov. 23, 2007
132 - added the linearized_isa method instead of constantly
133 pruning duplicate classes (this will be even more
134 useful in the 5.10-compat version coming soon)
136 * Class::MOP::Attribute
137 - added the get_read_method_ref and get_write_method_ref
138 methods which allow you to retrieve a CODE ref which
139 can always be used to read or write an attribute.
141 0.45 Thurs. Nov. 13, 2007
142 * Class::MOP::Attribute
143 - Fix error message on confess (groditi)
145 0.44 Thurs. Nov. 13, 2007
146 - Apparently I didn't make dist correctly (groditi)
148 0.43 Thurs. Nov. 13, 2007
150 - Add support for the 'builder' attribute (groditi)
153 - optimise metaclass-already-exists check in
154 construct_class_instance (groditi)
155 - duplicate check into initialize to save a
156 call through (groditi)
158 * Class::MOP::Attribute
159 - Add support for the 'builder' attribute (groditi)
160 - Make predicates check for the existence of a value, not whether
161 it is defined (groditi)
163 * Class::MOP::Instance
164 - Make predicates check for the existence of a value, not whether
165 it is defined (groditi)
167 * Class::MOP::Method::Accessor
168 - made this a subclass of Class::MOP::Method::Generated
169 - removed the relevant attributes
171 * Class::MOP::Method::Constructor
172 - fixed the cached values we had to be more sane
173 - made this a subclass of Class::MOP::Method::Generated
174 - fixed generated constructor so it properly handles
176 - added tests for this
177 - added the option to allow for both inlined and
178 non-inlined constructors.
179 - Update inlined methods for builder and predicate changes (groditi)
181 * Class::MOP::Method::Generated
182 - added this class as an abstract base for the
183 Class::MOP::Method::{Constructor,Accessor} classes
184 - added tests for this
187 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
188 - Tests for new predicate behavior (and corrections to old tests) (groditi)
191 - Update ArrayRef based class example to work with predicate changes
193 0.42 Mon. July 16, 2007
194 !!! Horray for mst, he fixed it !!!
196 * Class::MOP::Package
197 - alter symbol table handling to deal with 5.8.x and 5.9.x
200 - Get rid of the crappy workaround from 0.40/41
202 0.41 Sun. July 15, 2007
204 Arghh!!! My TODO test didn't work, so I handle
205 it manually now so that people can use this
206 with 5.9.5/bleadperl without issue.
208 0.40 Tues, July 3, 2007
210 ~ marked a test in 003_methods.t as TODO
211 for perl 5.9.5 (this test is irrelvant to
212 the module functioning on 5.9.5 for the most
215 0.39 Mon. June 18, 2007
216 * Class::MOP::Immutable
217 - added make_metaclass_mutable + docs (groditi)
218 - removed unused variable
219 - added create_immutable_transformer
220 necessary for sane overloading of immutable behavior
221 - tests for this (groditi)
224 - Immutability can now be undone,
225 added make_mutable + tests + docs (groditi)
226 - Massive changes to the way Immutable is done
227 for details see comments next to make_immutable
228 This fixes a bug where custom metaclasses broke
229 when made immutable. We are now keeping one immutable
230 metaclass instance per metaclass instead of just one
231 to prevent isa hierarchy corruption. Memory use will go
232 up, but I suspect it will be neglible.
233 - New tests added for this behavior. (groditi)
235 0.38 Thurs. May 31, 2007
236 ~~ More documentation updates ~~
238 * Class::MOP::Package
239 - we now deal with stub methods properly
240 - added tests for this
241 - fixed some tests failing on 5.9.5 (thanks blblack)
243 * Class::MOP::Attribute
244 - added get_read_method and get_write_method
245 thanks to groditi for this code, tests
247 - added tests and POD for this
250 - fixed RT issue #27329, clone object now
251 handles undef values correctly.
252 - added tests for this
253 - Corrected anon-class handling so that they
254 will not get reaped when instances still
255 exist which need to reference them. This is
256 the correct behavior, hopefully this is an
257 obscure enough feature that there are not too
258 many work arounds out in the wild.
259 - added tests for this by groditi
260 - updated docs to explain this
263 - load custom metaclasses automatically (thanks groditi)
264 - added tests for this behavior
266 0.37 Sat. March 10, 2007
267 ~~ Many, many documentation updates ~~
270 - added &load_class and &is_class_loaded
271 - added tests and docs for these
273 * Class::MOP::Attribute
274 - default now checks the instance with defined to
275 avoid setting off bool-overloads (found by Carl Franks)
279 - bad name in a test, causing meaningless failuress.
285 - All attribute names are now consistent and follow Perl 6
286 style (prefixed with the sigil, and ! as the twigil for
287 private attrs). This should not affect any code, unless
288 you broke encapsulation, in which case, it is your problem
291 !! Class::MOP::Class::Immutable has been removed
293 * Class::MOP::Method::Constructor
294 - this has been moved out of Class::MOP::Class::Immutable
295 and is a proper subclass of Class::MOP::Method now.
298 - this module now uses Class::MOP::Immutable for the
299 immutable transformation instead of
300 Class::MOP::Class::Immutable.
302 + Class::MOP::Immutable
303 - this module now controls the transformation from a mutable
304 to an immutable version of the class. Docs for this will
305 be coming eventually.
308 0.36 Sun. Nov. 5, 2006
310 - added a few 'no warnings' lines to keep annoying
311 (and meaningless) warnings from chirping during
315 - some more bootstrapping is now done on the new
318 * Class::MOP::Class::Immutable
320 - constructor generation is now handled by
321 the Class::MOP::Method::Constructor class
323 * Class::MOP::Method::Constructor
324 - created this to handle constructor generation
325 in Class::MOP::Class::Immutable
327 * Class::MOP::Attribute
329 - attributes now delegate to the
330 Class::MOP::Method::Accessor to generate
333 * Class::MOP::Method::Accessor
334 - all accessor generation functions from
335 Class::MOP::Attribute have been moved here
337 0.35 Sat. Sept. 30, 2006
339 * scripts/class_browser.pl
340 - initial prototype of a class browser, more
341 on this to come. Comments and patches are
345 - All Class::MOP::* accessors are no longer
346 re-generated in the bootstrap, instead
347 they are aliased from the originals
348 - fixed tests to reflect
349 - added Class::MOP::Method (and its subclasses)
351 - adjusted tests for this
352 - added the Class::MOP::Instance attributes
357 - methods are no longer blessed CODE refs
358 but are actual objects which can be CODE-ified
359 - adjusted tests to compensate
360 - adjusted docs for this
363 - changed how methods are dealt with to
364 encapsulate most of the work into the
365 &get_method_map method
366 - made several adjustments for the change
367 in Class::MOP::Method
368 - &add_attribute now checks if you are adding
369 a duplicate name, and properly removes the
370 old one before installing the new one
371 - added tests for this
372 - adjusted docs for this
374 * Class::MOP::Class::Immutable
375 - added caching of &get_method_map
376 - fixed issue with &get_package_symbol
377 - cleaned up the methods that die (patch by David Wheeler)
379 * Class::MOP::Package
380 - added filtering capabilities to
381 &list_all_package_symbols
383 0.34 Sat. Aug. 26, 2006
385 - added the %:methods attribute, which like
386 the $:version and such just actually goes
387 to the symbol table to get it's stuff.
388 However, it makes the MOP more complete.
390 - The &create method now requires that all
391 but the package name now is passed in as
392 named parameters. See docs for more info.
393 - updated docs and tests for this
396 - added &dump method to easily Data::Dumper
400 - cleaned up the initialization of attributes
401 which do not store things in the instance
402 - added the %:methods attribute definition to
405 ~ lots of misc. test cleanup
407 0.33 Sat. Aug. 19, 2006
409 - moved the metaclass cache out of here
410 and it is now in Class::MOP itself.
413 - moved all the metaclass cache stuff here
414 - fixed all tests for this
416 * Class::MOP::Attribute
417 - reference values (other than CODE refs)
418 are no longer allowed for defaults
419 - added tests for this
421 * Class::MOP::Package
422 - fixed an issue with perl 5.8.1 and how it deals
423 with symbol tables. The namespace hash is now
424 always reloaded from the symbol table.
426 ~ lots of misc. documentation cleanup
428 0.32 Sat. Aug. 12, 2006
429 + added Class::MOP::Object so that the
430 metamodel is more complete (and closer
431 to what Perl 6 will probably be).
433 * Class::MOP::Package
434 - refactored entire class, this is now
435 the primary gateway between the metaclass
436 and the Perl 5 symbol table
437 - added many tests for this
438 - this class is now a subclass of
440 - added some tests to reflect this
443 - refactored all symbol table access to
444 use Class::MOP::Package methods instead
447 - adding the $:version attribute in the bootstrap
448 so that Module has a version as an attribute
449 - see comment in Class::MOP for details
450 - added the $:authority attribute to this module
451 as well as an &identifier method, to bring us
452 ever closer to Perl 6 goodness
453 - I have added $AUTHORITY to all the modules
454 - added tests for this
456 * Class::MOP::Instance
457 - added &deinitialize_slot for removing slots
459 - added tests for this
461 * Class::MOP::Attribute
462 - added support for &deinitialize_slot for removing
463 slots from an instance
464 - added tests for this
466 0.31 Sat. July 15, 2006
469 - added &find_method_by_name to locate a method
470 anywhere within the class hierarchy
472 * Class::MOP::Attribute
473 - added &set_value and &get_value for getting
474 the value of the attribute for a particular
477 0.30 Wed. July 5, 2006
478 ---------------------------------------
479 This is the first version of Class::MOP
480 to introduce the immutable features which
481 will be used for optimizating the MOP.
482 This support should still be considered
483 experimental, but moving towards stability.
484 ---------------------------------------
486 * Created Class::MOP::Class::Immutable
488 * Created the Class::MOP::Package and
489 Class::MOP::Module classes to more
490 closely conform to Perl 6's meta-model
493 - now inherits from Class::MOP::Module
494 - several methods moved to ::Module and
495 ::Package and now inherited
496 - added tests for this
498 * Class::MOP::Instance
499 - added an is_inlinable method to allow other
500 classes to check before they attempt to optimize.
501 - added an inline_create_instance to inline
502 instance creation (of course)
505 - the Class::MOP::Class::*_package_variable
506 methods are all now methods of Class::MOP::Package
507 and called *_package_symbol instead. This is
508 because they are now more general purpose symbol
509 table manipulation methods.
511 0.29_02 Thurs. June 22, 2006
512 ++ DEVELOPER RELEASE ++
514 - small change in &create so that it behaves
515 properly when inherited
516 - small fix to &clone_instance
518 0.29_01 Fri. May 12, 2006
519 ++ DEVELOPER RELEASE ++
520 - This release works in combination with
521 Moose 0.09_01, it is a developer release
522 because it introduces a new instance
523 sub-protocol and has not yet been
527 - anon-classes are now properly garbage collected
528 - added tests for this
529 - improved method modifier wrapping
531 * Class::MOP::Instance
532 - added new instance protocol
533 - added tests for this
534 - changed all relevant modules and examples
536 - Class::MOP::Attribute
540 - you no longer need to specify the metaclass
541 itself, if it is not there, Class::MOP::Class
543 - updated tests for this
546 - added ArrayBasedStorage example to show
547 instance storage using ARRAY refs instead of
549 - added tests for this
550 - InsideOutClass is totally revised using the
551 new instance protocol
552 - added more tests for this
554 0.26 Mon. April 24, 2006
556 - added find_attribute_by_name method
557 - added tests and docs for this
558 - some small optimizations
560 * Class::MOP::Attribute
561 - some small optimizations
563 0.25 Thurs. April 20, 2006
565 - added create_anon_class for creating anonymous classes
566 - added tests for this
567 - added get_all_metaclasses, get_all_metaclass_names
568 and get_all_metaclass_instances method to allow
569 access to all the cached metaclass objects.
570 - attribute slot initialization is now the responsibility
571 of the attribute itself, and construct_instance now
572 delegates appropriately
574 * Class::MOP::Attribute
575 - attribute slot initialization is now the responsibility
576 of the attribute itself, so we added a method for it
577 called initialize_instance_slot
580 - adjusted all the examples to use the new attribute
581 initialize_instance_slot method
583 0.24 Tues. April 11, 2006
585 - cleaned up how the before/after/around method
586 modifiers get named with Sub::Name
588 0.23 Thurs. March 30, 2006
590 - fixed the way attribute defaults are handled
591 during instance construction (bug found by chansen)
593 * Class::MOP::Attribute
594 - read-only accessors ('reader') will now die if
595 passed more than one argument (attempting to write
597 - added tests for this
598 - adjusted all /example files to comply
600 0.22 Mon. March 20, 2006
602 - localized $@ in the *_package_variable functions
603 because otherwise, it does ugly things in Moose.
604 - added test case for this
606 0.21 Wed. March 15, 2006
608 - fixed issue where metaclasses are reaped from
609 our cache in global destruction, and so are not
610 available in DESTORY calls
612 0.20 Thurs. March 2, 2006
613 - removed the dependency for Clone since
614 we no longer to deep-cloning by default.
617 - added &package_name, &name and
618 &fully_qualified_name methods, some of
619 which were formerly private subs in
622 * Class::MOP::Method::Wrapped
623 - allows for a method to be wrapped with
624 before, after and around modifiers
625 - added tests and docs for this feature
628 - improved &get_package_symbol
629 - &version and &superclasses now use it
630 - methods are now blessed into Class::MOP::Method
632 - added methods to install CLOS-style method modifiers
633 - &add_before_method_modifier
634 - &add_after_method_modifier
635 - &add_around_method_modifier
636 - added tests and docs for these
637 - added &find_next_method_by_name which finds the
638 equivalent of SUPER::method_name
640 0.12 Thurs. Feb 23, 2006
641 - reduced the dependency on B, no need to always
645 - added docs to the C3 method dispatch order test
646 - fixed missing Algorithm::C3 dependency by making
647 the test skip if it is not installed
649 0.11 Mon Feb. 20, 2006
651 - added example of changing method dispatch order to C3
654 - changed how clone_instance behaves, it now only does a
655 shallow clone (see docs for more details)
656 - added docs and tests
658 0.10 Tues Feb. 14, 2006
659 ** This release was mostly about writing more tests and
660 cleaning out old and dusty code, the MOP should now
661 be considered "ready to use".
663 - adding more tests to get coverage up a little higher,
664 mostly testing errors and edge cases.
665 - test coverage is now at 99%
668 - no longer optionally exports to UNIVERSAL::meta or
669 creates a custom metaclass generator, use the
670 metaclass pragma instead.
673 - fixed a number of minor issues which came up in the
674 error/edge-case tests
676 * Class::MOP::Attribute
677 - fixed a number of minor issues which came up in the
678 error/edge-case tests
681 - fixing the AttributesWithHistory example, it was broken.
683 0.06 Thurs Feb. 9, 2006
685 - adding new metaclass pragma to make setting up the
686 metaclass a little more straightforward
689 - clean up bootstrapping to include more complete
690 attribute definitions for Class::MOP::Class and
691 Class::MOP::Attribute (accessors, readers, writers,
692 etc.) ... it is redundant, but is useful meta-info
696 - fixing minor meta-circularity issue with &meta, it
697 is now more useful for subclasses
698 - added &get_attribute_map as an accessor for the
699 hash of attribute meta objects
700 - &compute_all_applicable_attributes now just returns
701 the attribute meta-object, rather than the HASH ref
702 since all the same info can be gotten from the
703 attribute meta-object itself
704 - updated docs & tests to reflect
705 - added &clone_instance method which does a deep clone
706 of the instance structure created by &construct_instance
707 - added docs & tests for this
708 - added Clone as a dependency
709 - added &new_object and &clone_object convience methods to
710 return blessed new or cloned instances
711 - they handle Class::MOP::Class singletons correctly too
712 - added docs & tests for this
713 - cleaned up the &constuct_class_instance so that it behaves
714 more like &construct_instance (and managed the singletons too)
715 - added the &check_metaclass_compatibility method to make sure
716 that metaclasses are upward and downward compatible.
717 - added tests and docs for this
720 - adjusting code to use the &Class::MOP::Class::meta
722 - adjusting code to use the metaclass pragma
724 0.05 Sat Feb. 4, 2006
726 - added the &attribute_metaclass and &method_metaclass
727 attributes which contain a metaclass name to use for
728 attributes/methods respectively
731 - bootstrap additional attributes for Class::MOP::Class
734 - adjusted the example code and tests to use the new
735 &attribute_metaclass feature of Class::MOP::Class
739 0.04 Fri Feb. 3, 2006
741 - some documentation suggestions from #perl6
743 * Class::MOP::Attribute
744 - improved error messages
747 - added new examples:
748 - AttributesWithHistory
749 - ClassEncapsultedAttributes
751 0.03 Fri Feb. 3, 2006
752 - converted to Module::Build instead of EU::MM
754 * Class::MOP::Attribute
755 - refactored method generation code
756 - attributes are now associated with class directly
759 - refactored the InsideOut example to take advantage
760 of the Class::MOP::Attribute refactoring
761 - changed example files to .pod files and hide thier
762 package names from PAUSE (I don't want to own these
763 namespaces really, they are just examples)
765 0.02 Thurs Feb. 2, 2006
766 - moving examples from t/lib/* to examples/*
767 - adding POD documentation to the examples
769 0.01 Thurs Feb. 2, 2006