1 Revision history for Perl extension Class-MOP.
4 - Fixed a version number issue by bumping all modules
7 0.59 Thurs. Jun 12, 2008
8 !! Several fixes resulting in yet another 25-30% speedup !!
11 - now stores the instance of the instance
12 metaclass to avoid needless recomputation
13 and deletes it when the cache is blown
14 - introduce methods to query Class::MOP::Class for
15 the options used to make it immutable as well as
16 the proper immutable transformer. (groditi)
19 - {add, has, get, remove}_package_symbol all
20 now accept a HASH ref argument as well as the
21 string. All internal usages now use the HASH
25 - MOP.xs does sanity checks on the coderef
27 - is_class_loaded check now uses code that
28 was improved in Moose's ClassName type
30 - nonsensical (undef, empty, reference) class
31 names now throw a more direct error in
33 - tests for this and other aspects of
39 Class::MOP::Method::Wrapped
41 - switched usage of reftype to ref because
44 0.58 Thurs. May 29, 2008
45 (late night release engineering)--
47 - fixing the version is META.yml, no functional
48 changes in this release
50 0.57 Wed. May 28, 2008
51 !! Several speedups resulting in 20-25% speedups !!
52 || (thanks to konobi, groditi, mst & CataMoose) !!
55 - made get_method_map use list_all_package_symbols
56 instead of manually grabbing each symbol
57 - streamlining &initialize somewhat, since it gets
61 - made {get, has}_package_symbol not call
63 - inlining a few calls to &name with
64 direct HASH access key access
65 - added get_all_package_symbols to fetch
66 a HASH of items based on a type filter
67 similar to list_all_package_symbols
68 - added tests for this
71 Class::MOP::Method::Constructor
72 Class::MOP::Method::Generated
73 Class::MOP::Method::Accessor
74 - added more descriptive error message to help
75 keep people from wasting time tracking an error
76 that is easily fixed by upgrading.
78 * Class::MOP::Immutable
79 - Don't inline a destructor unless the user actually
81 - added tests for this
83 0.56 Saturday, May 24, 2008
85 - we now get the &check_package_cache_flag
86 function from MRO::Compat
87 - All XS based functionality now has a
89 - the CLASS_MOP_NO_XS environment variable
90 can now be used to force non-XS versions
93 * Class::MOP::Attribute
94 - add has_read_method and has_write_method
95 - get_{read,write}_method_ref now wraps the
96 anon-sub ref in the method metaclass when
98 - added tests for this
100 * Class::MOP::Immutable
101 - added the ability to "wrap" methods when
102 making the class immutable
105 - now handling the edge case of ->meta->identifier
106 dying by wrapping add_package_symbol to specifically
107 allow for it to work.
108 - added tests for this
110 * Class::MOP::Attribute
112 Class::MOP::Immutable
113 - any time a method meta object is constructed
114 we make sure to pass the correct package and
115 method name information
118 Class::MOP::Method::Wrapped
119 Class::MOP::Method::Generated
120 Class::MOP::Method::Accessor
121 Class::MOP::Method::Consructor
122 - the &wrap constructor method now requires that a
123 'package_name' and 'name' attribute are passed. This
124 is to help support the no-XS version, and will
125 throw an error if these are not supplied.
126 - all these classes are now bootstrapped properly
127 and now store the package_name and name attributes
130 ~ Build.PL has been removed since the
131 Module::Install support has been removed
133 0.55 Mon. April 28, 2008
134 - All classes now have proper C3 MRO support
135 - added MRO::Compat as a dependency to allow
136 for the C3 MRO support to Just Work in all
140 - rebless_instance now returns the instance
141 it has just blessed, this is mostly to
143 - set the attr correctly in rebless_instance
144 when it has no init_arg
145 - tweaked &linear_isa and &class_precedence_list
146 to support c3 classes.
148 0.54 Fri. March, 14, 2008
151 - making sure that load_class never gets
152 passed a value from @_ or $_ to squash
153 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
156 - make_{immutable,mutable} now return 1
158 - improved error handling in ->create method
159 - rebless_instance now takes extra params which
160 will be used to populate values
161 - added tests for this
164 - localizing the Data::Dumper configurations so
165 that it does not pollute others (RT #33509)
171 Class::MOP::Attribute
172 - these classes no longer define their own ->meta,
173 but instead just inherit from Class::MOP::Object
175 * Class::MOP::Instance
176 Class::MOP::Immutable
177 - these classes now inherit from Class::MOP::Object
180 - fixed the filename length on several
181 test files so we install on VMS better
183 - fixed incorrect use of catdir when it
184 should be catfile (RT #32385)
186 0.53 Thurs. Feb. 14, 1008
187 ~~ several doc. fixes and updates ~~
190 Class::MOP::Method::Constructor
191 Class::MOP::Attribute
192 - making init_arg accept an undefined value
193 to indicate that no constructor args can
194 be passed (thanks to nothingmuch)
195 - added tests for this
196 - added attribute initializer attribute (rjbs)
199 - making this use the new init_arg => undef
200 feature instead of the silly hack from
201 before (thanks to nothingmuch)
203 0.52 Tues. Jan. 22, 2008
205 - fixed bug in rebless_instance
208 * Class::MOP::Method::Constructor
209 - removed assumptions about the existence of
212 0.51 Mon. Jan. 14, 2008
213 ~~~ some misc. doc. fixes ~~~
214 ~~ updated copyright dates ~~
217 - now sets the IS_RUNNING_ON_5_10
218 constant so that we can take advantage
219 of some of the nice bits of 5.10
222 - uses the IS_RUNNING_ON_5_10 flag to
223 optimize the &linearized_isa method
224 and avoid the hack/check for circular
225 inheritence in &class_precedence_list
226 - added rebless_instance method (Sartak)
227 - added tests for this
229 * Class::MOP::Immutable
230 - the immutable class now keeps track of
231 the transformer which immutablized it
233 * Class::MOP::Instance
234 - added rebless_instance_structure method (Sartak)
235 - added tests for this
237 0.50 Fri. Dec. 21, 2007
239 - fixed bug in immutable to make sure that
240 transformation arguments are saved
242 - added tests for this
244 * Class::MOP::Immutable
245 - fixed a bug (see above)
247 * Class::MOP::Attribute
250 0.49 Fri. Dec. 14, 2007
251 !! Class::MOP now loads 2 x faster !!
252 !! with XS speedups (thanks konobi) !!
255 - removed the dependency on B
256 - added two XS functions (thanks konobi)
257 - get_code_info($code) which replaces all
258 the B fiddling we were doing with
259 faster/leaner XS level fiddling
260 - check_package_cache_flag($pkg_name) which
261 returns the PL_sub_generation variable to
262 be used to help manage method caching.
265 In 5.10 or greater this will actually
266 use the mro::get_pkg_gen instead to give
267 even more accurate caching information.
268 blblack++ for that stuff :)
271 - added the &subclasses method (thanks rlb)
272 - added the update_package_cache_flag and
273 reset_package_cache_flag which help keep
274 track of when we need to re-fetch the
276 - Several small improvements to take advantage
277 of the new method map caching features
279 0.48 Mon. Nov. 26, 2007
280 * Class::MOP::Attribute
281 - fixed get_read/write_method to handle the
282 HASH ref case, which makes the
283 get_read/write_method_ref handle it too.
284 - added more tests for this
286 0.47 Sat. Nov. 24, 2007
287 * Class::MOP::Attribute
288 - fixed misspelling in get_write_method_ref
289 - added more tests for this
291 0.46 Fri. Nov. 23, 2007
293 - added the linearized_isa method instead of constantly
294 pruning duplicate classes (this will be even more
295 useful in the 5.10-compat version coming soon)
297 * Class::MOP::Attribute
298 - added the get_read_method_ref and get_write_method_ref
299 methods which allow you to retrieve a CODE ref which
300 can always be used to read or write an attribute.
302 0.45 Thurs. Nov. 13, 2007
303 * Class::MOP::Attribute
304 - Fix error message on confess (groditi)
306 0.44 Thurs. Nov. 13, 2007
307 - Apparently I didn't make dist correctly (groditi)
309 0.43 Thurs. Nov. 13, 2007
311 - Add support for the 'builder' attribute (groditi)
314 - optimise metaclass-already-exists check in
315 construct_class_instance (groditi)
316 - duplicate check into initialize to save a
317 call through (groditi)
319 * Class::MOP::Attribute
320 - Add support for the 'builder' attribute (groditi)
321 - Make predicates check for the existence of a value, not whether
322 it is defined (groditi)
324 * Class::MOP::Instance
325 - Make predicates check for the existence of a value, not whether
326 it is defined (groditi)
328 * Class::MOP::Method::Accessor
329 - made this a subclass of Class::MOP::Method::Generated
330 - removed the relevant attributes
332 * Class::MOP::Method::Constructor
333 - fixed the cached values we had to be more sane
334 - made this a subclass of Class::MOP::Method::Generated
335 - fixed generated constructor so it properly handles
337 - added tests for this
338 - added the option to allow for both inlined and
339 non-inlined constructors.
340 - Update inlined methods for builder and predicate changes (groditi)
342 * Class::MOP::Method::Generated
343 - added this class as an abstract base for the
344 Class::MOP::Method::{Constructor,Accessor} classes
345 - added tests for this
348 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
349 - Tests for new predicate behavior (and corrections to old tests) (groditi)
352 - Update ArrayRef based class example to work with predicate changes
354 0.42 Mon. July 16, 2007
355 !!! Horray for mst, he fixed it !!!
357 * Class::MOP::Package
358 - alter symbol table handling to deal with 5.8.x and 5.9.x
361 - Get rid of the crappy workaround from 0.40/41
363 0.41 Sun. July 15, 2007
365 Arghh!!! My TODO test didn't work, so I handle
366 it manually now so that people can use this
367 with 5.9.5/bleadperl without issue.
369 0.40 Tues, July 3, 2007
371 ~ marked a test in 003_methods.t as TODO
372 for perl 5.9.5 (this test is irrelvant to
373 the module functioning on 5.9.5 for the most
376 0.39 Mon. June 18, 2007
377 * Class::MOP::Immutable
378 - added make_metaclass_mutable + docs (groditi)
379 - removed unused variable
380 - added create_immutable_transformer
381 necessary for sane overloading of immutable behavior
382 - tests for this (groditi)
385 - Immutability can now be undone,
386 added make_mutable + tests + docs (groditi)
387 - Massive changes to the way Immutable is done
388 for details see comments next to make_immutable
389 This fixes a bug where custom metaclasses broke
390 when made immutable. We are now keeping one immutable
391 metaclass instance per metaclass instead of just one
392 to prevent isa hierarchy corruption. Memory use will go
393 up, but I suspect it will be neglible.
394 - New tests added for this behavior. (groditi)
396 0.38 Thurs. May 31, 2007
397 ~~ More documentation updates ~~
399 * Class::MOP::Package
400 - we now deal with stub methods properly
401 - added tests for this
402 - fixed some tests failing on 5.9.5 (thanks blblack)
404 * Class::MOP::Attribute
405 - added get_read_method and get_write_method
406 thanks to groditi for this code, tests
408 - added tests and POD for this
411 - fixed RT issue #27329, clone object now
412 handles undef values correctly.
413 - added tests for this
414 - Corrected anon-class handling so that they
415 will not get reaped when instances still
416 exist which need to reference them. This is
417 the correct behavior, hopefully this is an
418 obscure enough feature that there are not too
419 many work arounds out in the wild.
420 - added tests for this by groditi
421 - updated docs to explain this
424 - load custom metaclasses automatically (thanks groditi)
425 - added tests for this behavior
427 0.37 Sat. March 10, 2007
428 ~~ Many, many documentation updates ~~
431 - added &load_class and &is_class_loaded
432 - added tests and docs for these
434 * Class::MOP::Attribute
435 - default now checks the instance with defined to
436 avoid setting off bool-overloads (found by Carl Franks)
440 - bad name in a test, causing meaningless failuress.
446 - All attribute names are now consistent and follow Perl 6
447 style (prefixed with the sigil, and ! as the twigil for
448 private attrs). This should not affect any code, unless
449 you broke encapsulation, in which case, it is your problem
452 !! Class::MOP::Class::Immutable has been removed
454 * Class::MOP::Method::Constructor
455 - this has been moved out of Class::MOP::Class::Immutable
456 and is a proper subclass of Class::MOP::Method now.
459 - this module now uses Class::MOP::Immutable for the
460 immutable transformation instead of
461 Class::MOP::Class::Immutable.
463 + Class::MOP::Immutable
464 - this module now controls the transformation from a mutable
465 to an immutable version of the class. Docs for this will
466 be coming eventually.
469 0.36 Sun. Nov. 5, 2006
471 - added a few 'no warnings' lines to keep annoying
472 (and meaningless) warnings from chirping during
476 - some more bootstrapping is now done on the new
479 * Class::MOP::Class::Immutable
481 - constructor generation is now handled by
482 the Class::MOP::Method::Constructor class
484 * Class::MOP::Method::Constructor
485 - created this to handle constructor generation
486 in Class::MOP::Class::Immutable
488 * Class::MOP::Attribute
490 - attributes now delegate to the
491 Class::MOP::Method::Accessor to generate
494 * Class::MOP::Method::Accessor
495 - all accessor generation functions from
496 Class::MOP::Attribute have been moved here
498 0.35 Sat. Sept. 30, 2006
500 * scripts/class_browser.pl
501 - initial prototype of a class browser, more
502 on this to come. Comments and patches are
506 - All Class::MOP::* accessors are no longer
507 re-generated in the bootstrap, instead
508 they are aliased from the originals
509 - fixed tests to reflect
510 - added Class::MOP::Method (and its subclasses)
512 - adjusted tests for this
513 - added the Class::MOP::Instance attributes
518 - methods are no longer blessed CODE refs
519 but are actual objects which can be CODE-ified
520 - adjusted tests to compensate
521 - adjusted docs for this
524 - changed how methods are dealt with to
525 encapsulate most of the work into the
526 &get_method_map method
527 - made several adjustments for the change
528 in Class::MOP::Method
529 - &add_attribute now checks if you are adding
530 a duplicate name, and properly removes the
531 old one before installing the new one
532 - added tests for this
533 - adjusted docs for this
535 * Class::MOP::Class::Immutable
536 - added caching of &get_method_map
537 - fixed issue with &get_package_symbol
538 - cleaned up the methods that die (patch by David Wheeler)
540 * Class::MOP::Package
541 - added filtering capabilities to
542 &list_all_package_symbols
544 0.34 Sat. Aug. 26, 2006
546 - added the %:methods attribute, which like
547 the $:version and such just actually goes
548 to the symbol table to get it's stuff.
549 However, it makes the MOP more complete.
551 - The &create method now requires that all
552 but the package name now is passed in as
553 named parameters. See docs for more info.
554 - updated docs and tests for this
557 - added &dump method to easily Data::Dumper
561 - cleaned up the initialization of attributes
562 which do not store things in the instance
563 - added the %:methods attribute definition to
566 ~ lots of misc. test cleanup
568 0.33 Sat. Aug. 19, 2006
570 - moved the metaclass cache out of here
571 and it is now in Class::MOP itself.
574 - moved all the metaclass cache stuff here
575 - fixed all tests for this
577 * Class::MOP::Attribute
578 - reference values (other than CODE refs)
579 are no longer allowed for defaults
580 - added tests for this
582 * Class::MOP::Package
583 - fixed an issue with perl 5.8.1 and how it deals
584 with symbol tables. The namespace hash is now
585 always reloaded from the symbol table.
587 ~ lots of misc. documentation cleanup
589 0.32 Sat. Aug. 12, 2006
590 + added Class::MOP::Object so that the
591 metamodel is more complete (and closer
592 to what Perl 6 will probably be).
594 * Class::MOP::Package
595 - refactored entire class, this is now
596 the primary gateway between the metaclass
597 and the Perl 5 symbol table
598 - added many tests for this
599 - this class is now a subclass of
601 - added some tests to reflect this
604 - refactored all symbol table access to
605 use Class::MOP::Package methods instead
608 - adding the $:version attribute in the bootstrap
609 so that Module has a version as an attribute
610 - see comment in Class::MOP for details
611 - added the $:authority attribute to this module
612 as well as an &identifier method, to bring us
613 ever closer to Perl 6 goodness
614 - I have added $AUTHORITY to all the modules
615 - added tests for this
617 * Class::MOP::Instance
618 - added &deinitialize_slot for removing slots
620 - added tests for this
622 * Class::MOP::Attribute
623 - added support for &deinitialize_slot for removing
624 slots from an instance
625 - added tests for this
627 0.31 Sat. July 15, 2006
630 - added &find_method_by_name to locate a method
631 anywhere within the class hierarchy
633 * Class::MOP::Attribute
634 - added &set_value and &get_value for getting
635 the value of the attribute for a particular
638 0.30 Wed. July 5, 2006
639 ---------------------------------------
640 This is the first version of Class::MOP
641 to introduce the immutable features which
642 will be used for optimizating the MOP.
643 This support should still be considered
644 experimental, but moving towards stability.
645 ---------------------------------------
647 * Created Class::MOP::Class::Immutable
649 * Created the Class::MOP::Package and
650 Class::MOP::Module classes to more
651 closely conform to Perl 6's meta-model
654 - now inherits from Class::MOP::Module
655 - several methods moved to ::Module and
656 ::Package and now inherited
657 - added tests for this
659 * Class::MOP::Instance
660 - added an is_inlinable method to allow other
661 classes to check before they attempt to optimize.
662 - added an inline_create_instance to inline
663 instance creation (of course)
666 - the Class::MOP::Class::*_package_variable
667 methods are all now methods of Class::MOP::Package
668 and called *_package_symbol instead. This is
669 because they are now more general purpose symbol
670 table manipulation methods.
672 0.29_02 Thurs. June 22, 2006
673 ++ DEVELOPER RELEASE ++
675 - small change in &create so that it behaves
676 properly when inherited
677 - small fix to &clone_instance
679 0.29_01 Fri. May 12, 2006
680 ++ DEVELOPER RELEASE ++
681 - This release works in combination with
682 Moose 0.09_01, it is a developer release
683 because it introduces a new instance
684 sub-protocol and has not yet been
688 - anon-classes are now properly garbage collected
689 - added tests for this
690 - improved method modifier wrapping
692 * Class::MOP::Instance
693 - added new instance protocol
694 - added tests for this
695 - changed all relevant modules and examples
697 - Class::MOP::Attribute
701 - you no longer need to specify the metaclass
702 itself, if it is not there, Class::MOP::Class
704 - updated tests for this
707 - added ArrayBasedStorage example to show
708 instance storage using ARRAY refs instead of
710 - added tests for this
711 - InsideOutClass is totally revised using the
712 new instance protocol
713 - added more tests for this
715 0.26 Mon. April 24, 2006
717 - added find_attribute_by_name method
718 - added tests and docs for this
719 - some small optimizations
721 * Class::MOP::Attribute
722 - some small optimizations
724 0.25 Thurs. April 20, 2006
726 - added create_anon_class for creating anonymous classes
727 - added tests for this
728 - added get_all_metaclasses, get_all_metaclass_names
729 and get_all_metaclass_instances method to allow
730 access to all the cached metaclass objects.
731 - attribute slot initialization is now the responsibility
732 of the attribute itself, and construct_instance now
733 delegates appropriately
735 * Class::MOP::Attribute
736 - attribute slot initialization is now the responsibility
737 of the attribute itself, so we added a method for it
738 called initialize_instance_slot
741 - adjusted all the examples to use the new attribute
742 initialize_instance_slot method
744 0.24 Tues. April 11, 2006
746 - cleaned up how the before/after/around method
747 modifiers get named with Sub::Name
749 0.23 Thurs. March 30, 2006
751 - fixed the way attribute defaults are handled
752 during instance construction (bug found by chansen)
754 * Class::MOP::Attribute
755 - read-only accessors ('reader') will now die if
756 passed more than one argument (attempting to write
758 - added tests for this
759 - adjusted all /example files to comply
761 0.22 Mon. March 20, 2006
763 - localized $@ in the *_package_variable functions
764 because otherwise, it does ugly things in Moose.
765 - added test case for this
767 0.21 Wed. March 15, 2006
769 - fixed issue where metaclasses are reaped from
770 our cache in global destruction, and so are not
771 available in DESTORY calls
773 0.20 Thurs. March 2, 2006
774 - removed the dependency for Clone since
775 we no longer to deep-cloning by default.
778 - added &package_name, &name and
779 &fully_qualified_name methods, some of
780 which were formerly private subs in
783 * Class::MOP::Method::Wrapped
784 - allows for a method to be wrapped with
785 before, after and around modifiers
786 - added tests and docs for this feature
789 - improved &get_package_symbol
790 - &version and &superclasses now use it
791 - methods are now blessed into Class::MOP::Method
793 - added methods to install CLOS-style method modifiers
794 - &add_before_method_modifier
795 - &add_after_method_modifier
796 - &add_around_method_modifier
797 - added tests and docs for these
798 - added &find_next_method_by_name which finds the
799 equivalent of SUPER::method_name
801 0.12 Thurs. Feb 23, 2006
802 - reduced the dependency on B, no need to always
806 - added docs to the C3 method dispatch order test
807 - fixed missing Algorithm::C3 dependency by making
808 the test skip if it is not installed
810 0.11 Mon Feb. 20, 2006
812 - added example of changing method dispatch order to C3
815 - changed how clone_instance behaves, it now only does a
816 shallow clone (see docs for more details)
817 - added docs and tests
819 0.10 Tues Feb. 14, 2006
820 ** This release was mostly about writing more tests and
821 cleaning out old and dusty code, the MOP should now
822 be considered "ready to use".
824 - adding more tests to get coverage up a little higher,
825 mostly testing errors and edge cases.
826 - test coverage is now at 99%
829 - no longer optionally exports to UNIVERSAL::meta or
830 creates a custom metaclass generator, use the
831 metaclass pragma instead.
834 - fixed a number of minor issues which came up in the
835 error/edge-case tests
837 * Class::MOP::Attribute
838 - fixed a number of minor issues which came up in the
839 error/edge-case tests
842 - fixing the AttributesWithHistory example, it was broken.
844 0.06 Thurs Feb. 9, 2006
846 - adding new metaclass pragma to make setting up the
847 metaclass a little more straightforward
850 - clean up bootstrapping to include more complete
851 attribute definitions for Class::MOP::Class and
852 Class::MOP::Attribute (accessors, readers, writers,
853 etc.) ... it is redundant, but is useful meta-info
857 - fixing minor meta-circularity issue with &meta, it
858 is now more useful for subclasses
859 - added &get_attribute_map as an accessor for the
860 hash of attribute meta objects
861 - &compute_all_applicable_attributes now just returns
862 the attribute meta-object, rather than the HASH ref
863 since all the same info can be gotten from the
864 attribute meta-object itself
865 - updated docs & tests to reflect
866 - added &clone_instance method which does a deep clone
867 of the instance structure created by &construct_instance
868 - added docs & tests for this
869 - added Clone as a dependency
870 - added &new_object and &clone_object convience methods to
871 return blessed new or cloned instances
872 - they handle Class::MOP::Class singletons correctly too
873 - added docs & tests for this
874 - cleaned up the &constuct_class_instance so that it behaves
875 more like &construct_instance (and managed the singletons too)
876 - added the &check_metaclass_compatibility method to make sure
877 that metaclasses are upward and downward compatible.
878 - added tests and docs for this
881 - adjusting code to use the &Class::MOP::Class::meta
883 - adjusting code to use the metaclass pragma
885 0.05 Sat Feb. 4, 2006
887 - added the &attribute_metaclass and &method_metaclass
888 attributes which contain a metaclass name to use for
889 attributes/methods respectively
892 - bootstrap additional attributes for Class::MOP::Class
895 - adjusted the example code and tests to use the new
896 &attribute_metaclass feature of Class::MOP::Class
900 0.04 Fri Feb. 3, 2006
902 - some documentation suggestions from #perl6
904 * Class::MOP::Attribute
905 - improved error messages
908 - added new examples:
909 - AttributesWithHistory
910 - ClassEncapsultedAttributes
912 0.03 Fri Feb. 3, 2006
913 - converted to Module::Build instead of EU::MM
915 * Class::MOP::Attribute
916 - refactored method generation code
917 - attributes are now associated with class directly
920 - refactored the InsideOut example to take advantage
921 of the Class::MOP::Attribute refactoring
922 - changed example files to .pod files and hide thier
923 package names from PAUSE (I don't want to own these
924 namespaces really, they are just examples)
926 0.02 Thurs Feb. 2, 2006
927 - moving examples from t/lib/* to examples/*
928 - adding POD documentation to the examples
930 0.01 Thurs Feb. 2, 2006