1 Revision history for Perl extension Class-MOP.
6 - now stores the instance of the instance
7 metaclass to avoid needless recomputation
10 - MOP.xs does sanity checks on the coderef
16 Class::MOP::Method::Wrapped
18 - switched usage of reftype to ref because
21 0.58 Thurs. May 29, 2008
22 (late night release engineering)--
24 - fixing the version is META.yml, no functional
25 changes in this release
27 0.57 Wed. May 28, 2008
28 !! Seveal speedups resulting in 20-25% speedups !!
29 || (thanks to konobi, groditi, mst & CataMoose) !!
32 - made get_method_map use list_all_package_symbols
33 instead of manually grabbing each symbol
34 - streamlining &initialize somewhat, since it gets
38 - made {get, has}_package_symbol not call
40 - inlining a few calls to &name with
41 direct HASH access key access
42 - added get_all_package_symbols to fetch
43 a HASH of items based on a type filter
44 similar to list_all_package_symbols
45 - added tests for this
48 Class::MOP::Method::Constructor
49 Class::MOP::Method::Generated
50 Class::MOP::Method::Accessor
51 - added more descriptive error message to help
52 keep people from wasting time tracking an error
53 that is easily fixed by upgrading.
55 0.56 Saturday, May 24, 2008
57 - we now get the &check_package_cache_flag
58 function from MRO::Compat
59 - All XS based functionality now has a
61 - the CLASS_MOP_NO_XS environment variable
62 can now be used to force non-XS versions
65 * Class::MOP::Attribute
66 - add has_read_method and has_write_method
67 - get_{read,write}_method_ref now wraps the
68 anon-sub ref in the method metaclass when
70 - added tests for this
72 * Class::MOP::Immutable
73 - added the ability to "wrap" methods when
74 making the class immutable
77 - now handling the edge case of ->meta->identifier
78 dying by wrapping add_package_symbol to specifically
80 - added tests for this
82 * Class::MOP::Attribute
85 - any time a method meta object is constructed
86 we make sure to pass the correct package and
87 method name information
90 Class::MOP::Method::Wrapped
91 Class::MOP::Method::Generated
92 Class::MOP::Method::Accessor
93 Class::MOP::Method::Consructor
94 - the &wrap constructor method now requires that a
95 'package_name' and 'name' attribute are passed. This
96 is to help support the no-XS version, and will
97 throw an error if these are not supplied.
98 - all these classes are now bootstrapped properly
99 and now store the package_name and name attributes
102 ~ Build.PL has been removed since the
103 Module::Install support has been removed
105 0.55 Mon. April 28, 2008
106 - All classes now have proper C3 MRO support
107 - added MRO::Compat as a dependency to allow
108 for the C3 MRO support to Just Work in all
112 - rebless_instance now returns the instance
113 it has just blessed, this is mostly to
115 - set the attr correctly in rebless_instance
116 when it has no init_arg
117 - tweaked &linear_isa and &class_precedence_list
118 to support c3 classes.
120 0.54 Fri. March, 14, 2008
123 - making sure that load_class never gets
124 passed a value from @_ or $_ to squash
125 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
128 - make_{immutable,mutable} now return 1
130 - improved error handling in ->create method
131 - rebless_instance now takes extra params which
132 will be used to populate values
133 - added tests for this
136 - localizing the Data::Dumper configurations so
137 that it does not pollute others (RT #33509)
143 Class::MOP::Attribute
144 - these classes no longer define their own ->meta,
145 but instead just inherit from Class::MOP::Object
147 * Class::MOP::Instance
148 Class::MOP::Immutable
149 - these classes now inherit from Class::MOP::Object
152 - fixed the filename length on several
153 test files so we install on VMS better
155 - fixed incorrect use of catdir when it
156 should be catfile (RT #32385)
158 0.53 Thurs. Feb. 14, 1008
159 ~~ several doc. fixes and updates ~~
162 Class::MOP::Method::Constructor
163 Class::MOP::Attribute
164 - making init_arg accept an undefined value
165 to indicate that no constructor args can
166 be passed (thanks to nothingmuch)
167 - added tests for this
168 - added attribute initializer attribute (rjbs)
171 - making this use the new init_arg => undef
172 feature instead of the silly hack from
173 before (thanks to nothingmuch)
175 0.52 Tues. Jan. 22, 2008
177 - fixed bug in rebless_instance
180 * Class::MOP::Method::Constructor
181 - removed assumptions about the existence of
184 0.51 Mon. Jan. 14, 2008
185 ~~~ some misc. doc. fixes ~~~
186 ~~ updated copyright dates ~~
189 - now sets the IS_RUNNING_ON_5_10
190 constant so that we can take advantage
191 of some of the nice bits of 5.10
194 - uses the IS_RUNNING_ON_5_10 flag to
195 optimize the &linearized_isa method
196 and avoid the hack/check for circular
197 inheritence in &class_precedence_list
198 - added rebless_instance method (Sartak)
199 - added tests for this
201 * Class::MOP::Immutable
202 - the immutable class now keeps track of
203 the transformer which immutablized it
205 * Class::MOP::Instance
206 - added rebless_instance_structure method (Sartak)
207 - added tests for this
209 0.50 Fri. Dec. 21, 2007
211 - fixed bug in immutable to make sure that
212 transformation arguments are saved
214 - added tests for this
216 * Class::MOP::Immutable
217 - fixed a bug (see above)
219 * Class::MOP::Attribute
222 0.49 Fri. Dec. 14, 2007
223 !! Class::MOP now loads 2 x faster !!
224 !! with XS speedups (thanks konobi) !!
227 - removed the dependency on B
228 - added two XS functions (thanks konobi)
229 - get_code_info($code) which replaces all
230 the B fiddling we were doing with
231 faster/leaner XS level fiddling
232 - check_package_cache_flag($pkg_name) which
233 returns the PL_sub_generation variable to
234 be used to help manage method caching.
237 In 5.10 or greater this will actually
238 use the mro::get_pkg_gen instead to give
239 even more accurate caching information.
240 blblack++ for that stuff :)
243 - added the &subclasses method (thanks rlb)
244 - added the update_package_cache_flag and
245 reset_package_cache_flag which help keep
246 track of when we need to re-fetch the
248 - Several small improvements to take advantage
249 of the new method map caching features
251 0.48 Mon. Nov. 26, 2007
252 * Class::MOP::Attribute
253 - fixed get_read/write_method to handle the
254 HASH ref case, which makes the
255 get_read/write_method_ref handle it too.
256 - added more tests for this
258 0.47 Sat. Nov. 24, 2007
259 * Class::MOP::Attribute
260 - fixed misspelling in get_write_method_ref
261 - added more tests for this
263 0.46 Fri. Nov. 23, 2007
265 - added the linearized_isa method instead of constantly
266 pruning duplicate classes (this will be even more
267 useful in the 5.10-compat version coming soon)
269 * Class::MOP::Attribute
270 - added the get_read_method_ref and get_write_method_ref
271 methods which allow you to retrieve a CODE ref which
272 can always be used to read or write an attribute.
274 0.45 Thurs. Nov. 13, 2007
275 * Class::MOP::Attribute
276 - Fix error message on confess (groditi)
278 0.44 Thurs. Nov. 13, 2007
279 - Apparently I didn't make dist correctly (groditi)
281 0.43 Thurs. Nov. 13, 2007
283 - Add support for the 'builder' attribute (groditi)
286 - optimise metaclass-already-exists check in
287 construct_class_instance (groditi)
288 - duplicate check into initialize to save a
289 call through (groditi)
291 * Class::MOP::Attribute
292 - Add support for the 'builder' attribute (groditi)
293 - Make predicates check for the existence of a value, not whether
294 it is defined (groditi)
296 * Class::MOP::Instance
297 - Make predicates check for the existence of a value, not whether
298 it is defined (groditi)
300 * Class::MOP::Method::Accessor
301 - made this a subclass of Class::MOP::Method::Generated
302 - removed the relevant attributes
304 * Class::MOP::Method::Constructor
305 - fixed the cached values we had to be more sane
306 - made this a subclass of Class::MOP::Method::Generated
307 - fixed generated constructor so it properly handles
309 - added tests for this
310 - added the option to allow for both inlined and
311 non-inlined constructors.
312 - Update inlined methods for builder and predicate changes (groditi)
314 * Class::MOP::Method::Generated
315 - added this class as an abstract base for the
316 Class::MOP::Method::{Constructor,Accessor} classes
317 - added tests for this
320 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
321 - Tests for new predicate behavior (and corrections to old tests) (groditi)
324 - Update ArrayRef based class example to work with predicate changes
326 0.42 Mon. July 16, 2007
327 !!! Horray for mst, he fixed it !!!
329 * Class::MOP::Package
330 - alter symbol table handling to deal with 5.8.x and 5.9.x
333 - Get rid of the crappy workaround from 0.40/41
335 0.41 Sun. July 15, 2007
337 Arghh!!! My TODO test didn't work, so I handle
338 it manually now so that people can use this
339 with 5.9.5/bleadperl without issue.
341 0.40 Tues, July 3, 2007
343 ~ marked a test in 003_methods.t as TODO
344 for perl 5.9.5 (this test is irrelvant to
345 the module functioning on 5.9.5 for the most
348 0.39 Mon. June 18, 2007
349 * Class::MOP::Immutable
350 - added make_metaclass_mutable + docs (groditi)
351 - removed unused variable
352 - added create_immutable_transformer
353 necessary for sane overloading of immutable behavior
354 - tests for this (groditi)
357 - Immutability can now be undone,
358 added make_mutable + tests + docs (groditi)
359 - Massive changes to the way Immutable is done
360 for details see comments next to make_immutable
361 This fixes a bug where custom metaclasses broke
362 when made immutable. We are now keeping one immutable
363 metaclass instance per metaclass instead of just one
364 to prevent isa hierarchy corruption. Memory use will go
365 up, but I suspect it will be neglible.
366 - New tests added for this behavior. (groditi)
368 0.38 Thurs. May 31, 2007
369 ~~ More documentation updates ~~
371 * Class::MOP::Package
372 - we now deal with stub methods properly
373 - added tests for this
374 - fixed some tests failing on 5.9.5 (thanks blblack)
376 * Class::MOP::Attribute
377 - added get_read_method and get_write_method
378 thanks to groditi for this code, tests
380 - added tests and POD for this
383 - fixed RT issue #27329, clone object now
384 handles undef values correctly.
385 - added tests for this
386 - Corrected anon-class handling so that they
387 will not get reaped when instances still
388 exist which need to reference them. This is
389 the correct behavior, hopefully this is an
390 obscure enough feature that there are not too
391 many work arounds out in the wild.
392 - added tests for this by groditi
393 - updated docs to explain this
396 - load custom metaclasses automatically (thanks groditi)
397 - added tests for this behavior
399 0.37 Sat. March 10, 2007
400 ~~ Many, many documentation updates ~~
403 - added &load_class and &is_class_loaded
404 - added tests and docs for these
406 * Class::MOP::Attribute
407 - default now checks the instance with defined to
408 avoid setting off bool-overloads (found by Carl Franks)
412 - bad name in a test, causing meaningless failuress.
418 - All attribute names are now consistent and follow Perl 6
419 style (prefixed with the sigil, and ! as the twigil for
420 private attrs). This should not affect any code, unless
421 you broke encapsulation, in which case, it is your problem
424 !! Class::MOP::Class::Immutable has been removed
426 * Class::MOP::Method::Constructor
427 - this has been moved out of Class::MOP::Class::Immutable
428 and is a proper subclass of Class::MOP::Method now.
431 - this module now uses Class::MOP::Immutable for the
432 immutable transformation instead of
433 Class::MOP::Class::Immutable.
435 + Class::MOP::Immutable
436 - this module now controls the transformation from a mutable
437 to an immutable version of the class. Docs for this will
438 be coming eventually.
441 0.36 Sun. Nov. 5, 2006
443 - added a few 'no warnings' lines to keep annoying
444 (and meaningless) warnings from chirping during
448 - some more bootstrapping is now done on the new
451 * Class::MOP::Class::Immutable
453 - constructor generation is now handled by
454 the Class::MOP::Method::Constructor class
456 * Class::MOP::Method::Constructor
457 - created this to handle constructor generation
458 in Class::MOP::Class::Immutable
460 * Class::MOP::Attribute
462 - attributes now delegate to the
463 Class::MOP::Method::Accessor to generate
466 * Class::MOP::Method::Accessor
467 - all accessor generation functions from
468 Class::MOP::Attribute have been moved here
470 0.35 Sat. Sept. 30, 2006
472 * scripts/class_browser.pl
473 - initial prototype of a class browser, more
474 on this to come. Comments and patches are
478 - All Class::MOP::* accessors are no longer
479 re-generated in the bootstrap, instead
480 they are aliased from the originals
481 - fixed tests to reflect
482 - added Class::MOP::Method (and its subclasses)
484 - adjusted tests for this
485 - added the Class::MOP::Instance attributes
490 - methods are no longer blessed CODE refs
491 but are actual objects which can be CODE-ified
492 - adjusted tests to compensate
493 - adjusted docs for this
496 - changed how methods are dealt with to
497 encapsulate most of the work into the
498 &get_method_map method
499 - made several adjustments for the change
500 in Class::MOP::Method
501 - &add_attribute now checks if you are adding
502 a duplicate name, and properly removes the
503 old one before installing the new one
504 - added tests for this
505 - adjusted docs for this
507 * Class::MOP::Class::Immutable
508 - added caching of &get_method_map
509 - fixed issue with &get_package_symbol
510 - cleaned up the methods that die (patch by David Wheeler)
512 * Class::MOP::Package
513 - added filtering capabilities to
514 &list_all_package_symbols
516 0.34 Sat. Aug. 26, 2006
518 - added the %:methods attribute, which like
519 the $:version and such just actually goes
520 to the symbol table to get it's stuff.
521 However, it makes the MOP more complete.
523 - The &create method now requires that all
524 but the package name now is passed in as
525 named parameters. See docs for more info.
526 - updated docs and tests for this
529 - added &dump method to easily Data::Dumper
533 - cleaned up the initialization of attributes
534 which do not store things in the instance
535 - added the %:methods attribute definition to
538 ~ lots of misc. test cleanup
540 0.33 Sat. Aug. 19, 2006
542 - moved the metaclass cache out of here
543 and it is now in Class::MOP itself.
546 - moved all the metaclass cache stuff here
547 - fixed all tests for this
549 * Class::MOP::Attribute
550 - reference values (other than CODE refs)
551 are no longer allowed for defaults
552 - added tests for this
554 * Class::MOP::Package
555 - fixed an issue with perl 5.8.1 and how it deals
556 with symbol tables. The namespace hash is now
557 always reloaded from the symbol table.
559 ~ lots of misc. documentation cleanup
561 0.32 Sat. Aug. 12, 2006
562 + added Class::MOP::Object so that the
563 metamodel is more complete (and closer
564 to what Perl 6 will probably be).
566 * Class::MOP::Package
567 - refactored entire class, this is now
568 the primary gateway between the metaclass
569 and the Perl 5 symbol table
570 - added many tests for this
571 - this class is now a subclass of
573 - added some tests to reflect this
576 - refactored all symbol table access to
577 use Class::MOP::Package methods instead
580 - adding the $:version attribute in the bootstrap
581 so that Module has a version as an attribute
582 - see comment in Class::MOP for details
583 - added the $:authority attribute to this module
584 as well as an &identifier method, to bring us
585 ever closer to Perl 6 goodness
586 - I have added $AUTHORITY to all the modules
587 - added tests for this
589 * Class::MOP::Instance
590 - added &deinitialize_slot for removing slots
592 - added tests for this
594 * Class::MOP::Attribute
595 - added support for &deinitialize_slot for removing
596 slots from an instance
597 - added tests for this
599 0.31 Sat. July 15, 2006
602 - added &find_method_by_name to locate a method
603 anywhere within the class hierarchy
605 * Class::MOP::Attribute
606 - added &set_value and &get_value for getting
607 the value of the attribute for a particular
610 0.30 Wed. July 5, 2006
611 ---------------------------------------
612 This is the first version of Class::MOP
613 to introduce the immutable features which
614 will be used for optimizating the MOP.
615 This support should still be considered
616 experimental, but moving towards stability.
617 ---------------------------------------
619 * Created Class::MOP::Class::Immutable
621 * Created the Class::MOP::Package and
622 Class::MOP::Module classes to more
623 closely conform to Perl 6's meta-model
626 - now inherits from Class::MOP::Module
627 - several methods moved to ::Module and
628 ::Package and now inherited
629 - added tests for this
631 * Class::MOP::Instance
632 - added an is_inlinable method to allow other
633 classes to check before they attempt to optimize.
634 - added an inline_create_instance to inline
635 instance creation (of course)
638 - the Class::MOP::Class::*_package_variable
639 methods are all now methods of Class::MOP::Package
640 and called *_package_symbol instead. This is
641 because they are now more general purpose symbol
642 table manipulation methods.
644 0.29_02 Thurs. June 22, 2006
645 ++ DEVELOPER RELEASE ++
647 - small change in &create so that it behaves
648 properly when inherited
649 - small fix to &clone_instance
651 0.29_01 Fri. May 12, 2006
652 ++ DEVELOPER RELEASE ++
653 - This release works in combination with
654 Moose 0.09_01, it is a developer release
655 because it introduces a new instance
656 sub-protocol and has not yet been
660 - anon-classes are now properly garbage collected
661 - added tests for this
662 - improved method modifier wrapping
664 * Class::MOP::Instance
665 - added new instance protocol
666 - added tests for this
667 - changed all relevant modules and examples
669 - Class::MOP::Attribute
673 - you no longer need to specify the metaclass
674 itself, if it is not there, Class::MOP::Class
676 - updated tests for this
679 - added ArrayBasedStorage example to show
680 instance storage using ARRAY refs instead of
682 - added tests for this
683 - InsideOutClass is totally revised using the
684 new instance protocol
685 - added more tests for this
687 0.26 Mon. April 24, 2006
689 - added find_attribute_by_name method
690 - added tests and docs for this
691 - some small optimizations
693 * Class::MOP::Attribute
694 - some small optimizations
696 0.25 Thurs. April 20, 2006
698 - added create_anon_class for creating anonymous classes
699 - added tests for this
700 - added get_all_metaclasses, get_all_metaclass_names
701 and get_all_metaclass_instances method to allow
702 access to all the cached metaclass objects.
703 - attribute slot initialization is now the responsibility
704 of the attribute itself, and construct_instance now
705 delegates appropriately
707 * Class::MOP::Attribute
708 - attribute slot initialization is now the responsibility
709 of the attribute itself, so we added a method for it
710 called initialize_instance_slot
713 - adjusted all the examples to use the new attribute
714 initialize_instance_slot method
716 0.24 Tues. April 11, 2006
718 - cleaned up how the before/after/around method
719 modifiers get named with Sub::Name
721 0.23 Thurs. March 30, 2006
723 - fixed the way attribute defaults are handled
724 during instance construction (bug found by chansen)
726 * Class::MOP::Attribute
727 - read-only accessors ('reader') will now die if
728 passed more than one argument (attempting to write
730 - added tests for this
731 - adjusted all /example files to comply
733 0.22 Mon. March 20, 2006
735 - localized $@ in the *_package_variable functions
736 because otherwise, it does ugly things in Moose.
737 - added test case for this
739 0.21 Wed. March 15, 2006
741 - fixed issue where metaclasses are reaped from
742 our cache in global destruction, and so are not
743 available in DESTORY calls
745 0.20 Thurs. March 2, 2006
746 - removed the dependency for Clone since
747 we no longer to deep-cloning by default.
750 - added &package_name, &name and
751 &fully_qualified_name methods, some of
752 which were formerly private subs in
755 * Class::MOP::Method::Wrapped
756 - allows for a method to be wrapped with
757 before, after and around modifiers
758 - added tests and docs for this feature
761 - improved &get_package_symbol
762 - &version and &superclasses now use it
763 - methods are now blessed into Class::MOP::Method
765 - added methods to install CLOS-style method modifiers
766 - &add_before_method_modifier
767 - &add_after_method_modifier
768 - &add_around_method_modifier
769 - added tests and docs for these
770 - added &find_next_method_by_name which finds the
771 equivalent of SUPER::method_name
773 0.12 Thurs. Feb 23, 2006
774 - reduced the dependency on B, no need to always
778 - added docs to the C3 method dispatch order test
779 - fixed missing Algorithm::C3 dependency by making
780 the test skip if it is not installed
782 0.11 Mon Feb. 20, 2006
784 - added example of changing method dispatch order to C3
787 - changed how clone_instance behaves, it now only does a
788 shallow clone (see docs for more details)
789 - added docs and tests
791 0.10 Tues Feb. 14, 2006
792 ** This release was mostly about writing more tests and
793 cleaning out old and dusty code, the MOP should now
794 be considered "ready to use".
796 - adding more tests to get coverage up a little higher,
797 mostly testing errors and edge cases.
798 - test coverage is now at 99%
801 - no longer optionally exports to UNIVERSAL::meta or
802 creates a custom metaclass generator, use the
803 metaclass pragma instead.
806 - fixed a number of minor issues which came up in the
807 error/edge-case tests
809 * Class::MOP::Attribute
810 - fixed a number of minor issues which came up in the
811 error/edge-case tests
814 - fixing the AttributesWithHistory example, it was broken.
816 0.06 Thurs Feb. 9, 2006
818 - adding new metaclass pragma to make setting up the
819 metaclass a little more straightforward
822 - clean up bootstrapping to include more complete
823 attribute definitions for Class::MOP::Class and
824 Class::MOP::Attribute (accessors, readers, writers,
825 etc.) ... it is redundant, but is useful meta-info
829 - fixing minor meta-circularity issue with &meta, it
830 is now more useful for subclasses
831 - added &get_attribute_map as an accessor for the
832 hash of attribute meta objects
833 - &compute_all_applicable_attributes now just returns
834 the attribute meta-object, rather than the HASH ref
835 since all the same info can be gotten from the
836 attribute meta-object itself
837 - updated docs & tests to reflect
838 - added &clone_instance method which does a deep clone
839 of the instance structure created by &construct_instance
840 - added docs & tests for this
841 - added Clone as a dependency
842 - added &new_object and &clone_object convience methods to
843 return blessed new or cloned instances
844 - they handle Class::MOP::Class singletons correctly too
845 - added docs & tests for this
846 - cleaned up the &constuct_class_instance so that it behaves
847 more like &construct_instance (and managed the singletons too)
848 - added the &check_metaclass_compatibility method to make sure
849 that metaclasses are upward and downward compatible.
850 - added tests and docs for this
853 - adjusting code to use the &Class::MOP::Class::meta
855 - adjusting code to use the metaclass pragma
857 0.05 Sat Feb. 4, 2006
859 - added the &attribute_metaclass and &method_metaclass
860 attributes which contain a metaclass name to use for
861 attributes/methods respectively
864 - bootstrap additional attributes for Class::MOP::Class
867 - adjusted the example code and tests to use the new
868 &attribute_metaclass feature of Class::MOP::Class
872 0.04 Fri Feb. 3, 2006
874 - some documentation suggestions from #perl6
876 * Class::MOP::Attribute
877 - improved error messages
880 - added new examples:
881 - AttributesWithHistory
882 - ClassEncapsultedAttributes
884 0.03 Fri Feb. 3, 2006
885 - converted to Module::Build instead of EU::MM
887 * Class::MOP::Attribute
888 - refactored method generation code
889 - attributes are now associated with class directly
892 - refactored the InsideOut example to take advantage
893 of the Class::MOP::Attribute refactoring
894 - changed example files to .pod files and hide thier
895 package names from PAUSE (I don't want to own these
896 namespaces really, they are just examples)
898 0.02 Thurs Feb. 2, 2006
899 - moving examples from t/lib/* to examples/*
900 - adding POD documentation to the examples
902 0.01 Thurs Feb. 2, 2006