1 Revision history for Perl extension Class-MOP.
6 - now stores the instance of the instance
7 metaclass to avoid needless recomputation
8 and deletes it when the cache is blown
11 - {add, has, get, remove}_package_symbol all
12 now accept a HASH ref argument as well as the
13 string. All internal usages now use the HASH
17 - MOP.xs does sanity checks on the coderef
19 - is_class_loaded check now uses code that
20 was improved in Moose's ClassName type
26 Class::MOP::Method::Wrapped
28 - switched usage of reftype to ref because
31 0.58 Thurs. May 29, 2008
32 (late night release engineering)--
34 - fixing the version is META.yml, no functional
35 changes in this release
37 0.57 Wed. May 28, 2008
38 !! Seveal speedups resulting in 20-25% speedups !!
39 || (thanks to konobi, groditi, mst & CataMoose) !!
42 - made get_method_map use list_all_package_symbols
43 instead of manually grabbing each symbol
44 - streamlining &initialize somewhat, since it gets
48 - made {get, has}_package_symbol not call
50 - inlining a few calls to &name with
51 direct HASH access key access
52 - added get_all_package_symbols to fetch
53 a HASH of items based on a type filter
54 similar to list_all_package_symbols
55 - added tests for this
58 Class::MOP::Method::Constructor
59 Class::MOP::Method::Generated
60 Class::MOP::Method::Accessor
61 - added more descriptive error message to help
62 keep people from wasting time tracking an error
63 that is easily fixed by upgrading.
65 0.56 Saturday, May 24, 2008
67 - we now get the &check_package_cache_flag
68 function from MRO::Compat
69 - All XS based functionality now has a
71 - the CLASS_MOP_NO_XS environment variable
72 can now be used to force non-XS versions
75 * Class::MOP::Attribute
76 - add has_read_method and has_write_method
77 - get_{read,write}_method_ref now wraps the
78 anon-sub ref in the method metaclass when
80 - added tests for this
82 * Class::MOP::Immutable
83 - added the ability to "wrap" methods when
84 making the class immutable
87 - now handling the edge case of ->meta->identifier
88 dying by wrapping add_package_symbol to specifically
90 - added tests for this
92 * Class::MOP::Attribute
95 - any time a method meta object is constructed
96 we make sure to pass the correct package and
97 method name information
100 Class::MOP::Method::Wrapped
101 Class::MOP::Method::Generated
102 Class::MOP::Method::Accessor
103 Class::MOP::Method::Consructor
104 - the &wrap constructor method now requires that a
105 'package_name' and 'name' attribute are passed. This
106 is to help support the no-XS version, and will
107 throw an error if these are not supplied.
108 - all these classes are now bootstrapped properly
109 and now store the package_name and name attributes
112 ~ Build.PL has been removed since the
113 Module::Install support has been removed
115 0.55 Mon. April 28, 2008
116 - All classes now have proper C3 MRO support
117 - added MRO::Compat as a dependency to allow
118 for the C3 MRO support to Just Work in all
122 - rebless_instance now returns the instance
123 it has just blessed, this is mostly to
125 - set the attr correctly in rebless_instance
126 when it has no init_arg
127 - tweaked &linear_isa and &class_precedence_list
128 to support c3 classes.
130 0.54 Fri. March, 14, 2008
133 - making sure that load_class never gets
134 passed a value from @_ or $_ to squash
135 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
138 - make_{immutable,mutable} now return 1
140 - improved error handling in ->create method
141 - rebless_instance now takes extra params which
142 will be used to populate values
143 - added tests for this
146 - localizing the Data::Dumper configurations so
147 that it does not pollute others (RT #33509)
153 Class::MOP::Attribute
154 - these classes no longer define their own ->meta,
155 but instead just inherit from Class::MOP::Object
157 * Class::MOP::Instance
158 Class::MOP::Immutable
159 - these classes now inherit from Class::MOP::Object
162 - fixed the filename length on several
163 test files so we install on VMS better
165 - fixed incorrect use of catdir when it
166 should be catfile (RT #32385)
168 0.53 Thurs. Feb. 14, 1008
169 ~~ several doc. fixes and updates ~~
172 Class::MOP::Method::Constructor
173 Class::MOP::Attribute
174 - making init_arg accept an undefined value
175 to indicate that no constructor args can
176 be passed (thanks to nothingmuch)
177 - added tests for this
178 - added attribute initializer attribute (rjbs)
181 - making this use the new init_arg => undef
182 feature instead of the silly hack from
183 before (thanks to nothingmuch)
185 0.52 Tues. Jan. 22, 2008
187 - fixed bug in rebless_instance
190 * Class::MOP::Method::Constructor
191 - removed assumptions about the existence of
194 0.51 Mon. Jan. 14, 2008
195 ~~~ some misc. doc. fixes ~~~
196 ~~ updated copyright dates ~~
199 - now sets the IS_RUNNING_ON_5_10
200 constant so that we can take advantage
201 of some of the nice bits of 5.10
204 - uses the IS_RUNNING_ON_5_10 flag to
205 optimize the &linearized_isa method
206 and avoid the hack/check for circular
207 inheritence in &class_precedence_list
208 - added rebless_instance method (Sartak)
209 - added tests for this
211 * Class::MOP::Immutable
212 - the immutable class now keeps track of
213 the transformer which immutablized it
215 * Class::MOP::Instance
216 - added rebless_instance_structure method (Sartak)
217 - added tests for this
219 0.50 Fri. Dec. 21, 2007
221 - fixed bug in immutable to make sure that
222 transformation arguments are saved
224 - added tests for this
226 * Class::MOP::Immutable
227 - fixed a bug (see above)
229 * Class::MOP::Attribute
232 0.49 Fri. Dec. 14, 2007
233 !! Class::MOP now loads 2 x faster !!
234 !! with XS speedups (thanks konobi) !!
237 - removed the dependency on B
238 - added two XS functions (thanks konobi)
239 - get_code_info($code) which replaces all
240 the B fiddling we were doing with
241 faster/leaner XS level fiddling
242 - check_package_cache_flag($pkg_name) which
243 returns the PL_sub_generation variable to
244 be used to help manage method caching.
247 In 5.10 or greater this will actually
248 use the mro::get_pkg_gen instead to give
249 even more accurate caching information.
250 blblack++ for that stuff :)
253 - added the &subclasses method (thanks rlb)
254 - added the update_package_cache_flag and
255 reset_package_cache_flag which help keep
256 track of when we need to re-fetch the
258 - Several small improvements to take advantage
259 of the new method map caching features
261 0.48 Mon. Nov. 26, 2007
262 * Class::MOP::Attribute
263 - fixed get_read/write_method to handle the
264 HASH ref case, which makes the
265 get_read/write_method_ref handle it too.
266 - added more tests for this
268 0.47 Sat. Nov. 24, 2007
269 * Class::MOP::Attribute
270 - fixed misspelling in get_write_method_ref
271 - added more tests for this
273 0.46 Fri. Nov. 23, 2007
275 - added the linearized_isa method instead of constantly
276 pruning duplicate classes (this will be even more
277 useful in the 5.10-compat version coming soon)
279 * Class::MOP::Attribute
280 - added the get_read_method_ref and get_write_method_ref
281 methods which allow you to retrieve a CODE ref which
282 can always be used to read or write an attribute.
284 0.45 Thurs. Nov. 13, 2007
285 * Class::MOP::Attribute
286 - Fix error message on confess (groditi)
288 0.44 Thurs. Nov. 13, 2007
289 - Apparently I didn't make dist correctly (groditi)
291 0.43 Thurs. Nov. 13, 2007
293 - Add support for the 'builder' attribute (groditi)
296 - optimise metaclass-already-exists check in
297 construct_class_instance (groditi)
298 - duplicate check into initialize to save a
299 call through (groditi)
301 * Class::MOP::Attribute
302 - Add support for the 'builder' attribute (groditi)
303 - Make predicates check for the existence of a value, not whether
304 it is defined (groditi)
306 * Class::MOP::Instance
307 - Make predicates check for the existence of a value, not whether
308 it is defined (groditi)
310 * Class::MOP::Method::Accessor
311 - made this a subclass of Class::MOP::Method::Generated
312 - removed the relevant attributes
314 * Class::MOP::Method::Constructor
315 - fixed the cached values we had to be more sane
316 - made this a subclass of Class::MOP::Method::Generated
317 - fixed generated constructor so it properly handles
319 - added tests for this
320 - added the option to allow for both inlined and
321 non-inlined constructors.
322 - Update inlined methods for builder and predicate changes (groditi)
324 * Class::MOP::Method::Generated
325 - added this class as an abstract base for the
326 Class::MOP::Method::{Constructor,Accessor} classes
327 - added tests for this
330 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
331 - Tests for new predicate behavior (and corrections to old tests) (groditi)
334 - Update ArrayRef based class example to work with predicate changes
336 0.42 Mon. July 16, 2007
337 !!! Horray for mst, he fixed it !!!
339 * Class::MOP::Package
340 - alter symbol table handling to deal with 5.8.x and 5.9.x
343 - Get rid of the crappy workaround from 0.40/41
345 0.41 Sun. July 15, 2007
347 Arghh!!! My TODO test didn't work, so I handle
348 it manually now so that people can use this
349 with 5.9.5/bleadperl without issue.
351 0.40 Tues, July 3, 2007
353 ~ marked a test in 003_methods.t as TODO
354 for perl 5.9.5 (this test is irrelvant to
355 the module functioning on 5.9.5 for the most
358 0.39 Mon. June 18, 2007
359 * Class::MOP::Immutable
360 - added make_metaclass_mutable + docs (groditi)
361 - removed unused variable
362 - added create_immutable_transformer
363 necessary for sane overloading of immutable behavior
364 - tests for this (groditi)
367 - Immutability can now be undone,
368 added make_mutable + tests + docs (groditi)
369 - Massive changes to the way Immutable is done
370 for details see comments next to make_immutable
371 This fixes a bug where custom metaclasses broke
372 when made immutable. We are now keeping one immutable
373 metaclass instance per metaclass instead of just one
374 to prevent isa hierarchy corruption. Memory use will go
375 up, but I suspect it will be neglible.
376 - New tests added for this behavior. (groditi)
378 0.38 Thurs. May 31, 2007
379 ~~ More documentation updates ~~
381 * Class::MOP::Package
382 - we now deal with stub methods properly
383 - added tests for this
384 - fixed some tests failing on 5.9.5 (thanks blblack)
386 * Class::MOP::Attribute
387 - added get_read_method and get_write_method
388 thanks to groditi for this code, tests
390 - added tests and POD for this
393 - fixed RT issue #27329, clone object now
394 handles undef values correctly.
395 - added tests for this
396 - Corrected anon-class handling so that they
397 will not get reaped when instances still
398 exist which need to reference them. This is
399 the correct behavior, hopefully this is an
400 obscure enough feature that there are not too
401 many work arounds out in the wild.
402 - added tests for this by groditi
403 - updated docs to explain this
406 - load custom metaclasses automatically (thanks groditi)
407 - added tests for this behavior
409 0.37 Sat. March 10, 2007
410 ~~ Many, many documentation updates ~~
413 - added &load_class and &is_class_loaded
414 - added tests and docs for these
416 * Class::MOP::Attribute
417 - default now checks the instance with defined to
418 avoid setting off bool-overloads (found by Carl Franks)
422 - bad name in a test, causing meaningless failuress.
428 - All attribute names are now consistent and follow Perl 6
429 style (prefixed with the sigil, and ! as the twigil for
430 private attrs). This should not affect any code, unless
431 you broke encapsulation, in which case, it is your problem
434 !! Class::MOP::Class::Immutable has been removed
436 * Class::MOP::Method::Constructor
437 - this has been moved out of Class::MOP::Class::Immutable
438 and is a proper subclass of Class::MOP::Method now.
441 - this module now uses Class::MOP::Immutable for the
442 immutable transformation instead of
443 Class::MOP::Class::Immutable.
445 + Class::MOP::Immutable
446 - this module now controls the transformation from a mutable
447 to an immutable version of the class. Docs for this will
448 be coming eventually.
451 0.36 Sun. Nov. 5, 2006
453 - added a few 'no warnings' lines to keep annoying
454 (and meaningless) warnings from chirping during
458 - some more bootstrapping is now done on the new
461 * Class::MOP::Class::Immutable
463 - constructor generation is now handled by
464 the Class::MOP::Method::Constructor class
466 * Class::MOP::Method::Constructor
467 - created this to handle constructor generation
468 in Class::MOP::Class::Immutable
470 * Class::MOP::Attribute
472 - attributes now delegate to the
473 Class::MOP::Method::Accessor to generate
476 * Class::MOP::Method::Accessor
477 - all accessor generation functions from
478 Class::MOP::Attribute have been moved here
480 0.35 Sat. Sept. 30, 2006
482 * scripts/class_browser.pl
483 - initial prototype of a class browser, more
484 on this to come. Comments and patches are
488 - All Class::MOP::* accessors are no longer
489 re-generated in the bootstrap, instead
490 they are aliased from the originals
491 - fixed tests to reflect
492 - added Class::MOP::Method (and its subclasses)
494 - adjusted tests for this
495 - added the Class::MOP::Instance attributes
500 - methods are no longer blessed CODE refs
501 but are actual objects which can be CODE-ified
502 - adjusted tests to compensate
503 - adjusted docs for this
506 - changed how methods are dealt with to
507 encapsulate most of the work into the
508 &get_method_map method
509 - made several adjustments for the change
510 in Class::MOP::Method
511 - &add_attribute now checks if you are adding
512 a duplicate name, and properly removes the
513 old one before installing the new one
514 - added tests for this
515 - adjusted docs for this
517 * Class::MOP::Class::Immutable
518 - added caching of &get_method_map
519 - fixed issue with &get_package_symbol
520 - cleaned up the methods that die (patch by David Wheeler)
522 * Class::MOP::Package
523 - added filtering capabilities to
524 &list_all_package_symbols
526 0.34 Sat. Aug. 26, 2006
528 - added the %:methods attribute, which like
529 the $:version and such just actually goes
530 to the symbol table to get it's stuff.
531 However, it makes the MOP more complete.
533 - The &create method now requires that all
534 but the package name now is passed in as
535 named parameters. See docs for more info.
536 - updated docs and tests for this
539 - added &dump method to easily Data::Dumper
543 - cleaned up the initialization of attributes
544 which do not store things in the instance
545 - added the %:methods attribute definition to
548 ~ lots of misc. test cleanup
550 0.33 Sat. Aug. 19, 2006
552 - moved the metaclass cache out of here
553 and it is now in Class::MOP itself.
556 - moved all the metaclass cache stuff here
557 - fixed all tests for this
559 * Class::MOP::Attribute
560 - reference values (other than CODE refs)
561 are no longer allowed for defaults
562 - added tests for this
564 * Class::MOP::Package
565 - fixed an issue with perl 5.8.1 and how it deals
566 with symbol tables. The namespace hash is now
567 always reloaded from the symbol table.
569 ~ lots of misc. documentation cleanup
571 0.32 Sat. Aug. 12, 2006
572 + added Class::MOP::Object so that the
573 metamodel is more complete (and closer
574 to what Perl 6 will probably be).
576 * Class::MOP::Package
577 - refactored entire class, this is now
578 the primary gateway between the metaclass
579 and the Perl 5 symbol table
580 - added many tests for this
581 - this class is now a subclass of
583 - added some tests to reflect this
586 - refactored all symbol table access to
587 use Class::MOP::Package methods instead
590 - adding the $:version attribute in the bootstrap
591 so that Module has a version as an attribute
592 - see comment in Class::MOP for details
593 - added the $:authority attribute to this module
594 as well as an &identifier method, to bring us
595 ever closer to Perl 6 goodness
596 - I have added $AUTHORITY to all the modules
597 - added tests for this
599 * Class::MOP::Instance
600 - added &deinitialize_slot for removing slots
602 - added tests for this
604 * Class::MOP::Attribute
605 - added support for &deinitialize_slot for removing
606 slots from an instance
607 - added tests for this
609 0.31 Sat. July 15, 2006
612 - added &find_method_by_name to locate a method
613 anywhere within the class hierarchy
615 * Class::MOP::Attribute
616 - added &set_value and &get_value for getting
617 the value of the attribute for a particular
620 0.30 Wed. July 5, 2006
621 ---------------------------------------
622 This is the first version of Class::MOP
623 to introduce the immutable features which
624 will be used for optimizating the MOP.
625 This support should still be considered
626 experimental, but moving towards stability.
627 ---------------------------------------
629 * Created Class::MOP::Class::Immutable
631 * Created the Class::MOP::Package and
632 Class::MOP::Module classes to more
633 closely conform to Perl 6's meta-model
636 - now inherits from Class::MOP::Module
637 - several methods moved to ::Module and
638 ::Package and now inherited
639 - added tests for this
641 * Class::MOP::Instance
642 - added an is_inlinable method to allow other
643 classes to check before they attempt to optimize.
644 - added an inline_create_instance to inline
645 instance creation (of course)
648 - the Class::MOP::Class::*_package_variable
649 methods are all now methods of Class::MOP::Package
650 and called *_package_symbol instead. This is
651 because they are now more general purpose symbol
652 table manipulation methods.
654 0.29_02 Thurs. June 22, 2006
655 ++ DEVELOPER RELEASE ++
657 - small change in &create so that it behaves
658 properly when inherited
659 - small fix to &clone_instance
661 0.29_01 Fri. May 12, 2006
662 ++ DEVELOPER RELEASE ++
663 - This release works in combination with
664 Moose 0.09_01, it is a developer release
665 because it introduces a new instance
666 sub-protocol and has not yet been
670 - anon-classes are now properly garbage collected
671 - added tests for this
672 - improved method modifier wrapping
674 * Class::MOP::Instance
675 - added new instance protocol
676 - added tests for this
677 - changed all relevant modules and examples
679 - Class::MOP::Attribute
683 - you no longer need to specify the metaclass
684 itself, if it is not there, Class::MOP::Class
686 - updated tests for this
689 - added ArrayBasedStorage example to show
690 instance storage using ARRAY refs instead of
692 - added tests for this
693 - InsideOutClass is totally revised using the
694 new instance protocol
695 - added more tests for this
697 0.26 Mon. April 24, 2006
699 - added find_attribute_by_name method
700 - added tests and docs for this
701 - some small optimizations
703 * Class::MOP::Attribute
704 - some small optimizations
706 0.25 Thurs. April 20, 2006
708 - added create_anon_class for creating anonymous classes
709 - added tests for this
710 - added get_all_metaclasses, get_all_metaclass_names
711 and get_all_metaclass_instances method to allow
712 access to all the cached metaclass objects.
713 - attribute slot initialization is now the responsibility
714 of the attribute itself, and construct_instance now
715 delegates appropriately
717 * Class::MOP::Attribute
718 - attribute slot initialization is now the responsibility
719 of the attribute itself, so we added a method for it
720 called initialize_instance_slot
723 - adjusted all the examples to use the new attribute
724 initialize_instance_slot method
726 0.24 Tues. April 11, 2006
728 - cleaned up how the before/after/around method
729 modifiers get named with Sub::Name
731 0.23 Thurs. March 30, 2006
733 - fixed the way attribute defaults are handled
734 during instance construction (bug found by chansen)
736 * Class::MOP::Attribute
737 - read-only accessors ('reader') will now die if
738 passed more than one argument (attempting to write
740 - added tests for this
741 - adjusted all /example files to comply
743 0.22 Mon. March 20, 2006
745 - localized $@ in the *_package_variable functions
746 because otherwise, it does ugly things in Moose.
747 - added test case for this
749 0.21 Wed. March 15, 2006
751 - fixed issue where metaclasses are reaped from
752 our cache in global destruction, and so are not
753 available in DESTORY calls
755 0.20 Thurs. March 2, 2006
756 - removed the dependency for Clone since
757 we no longer to deep-cloning by default.
760 - added &package_name, &name and
761 &fully_qualified_name methods, some of
762 which were formerly private subs in
765 * Class::MOP::Method::Wrapped
766 - allows for a method to be wrapped with
767 before, after and around modifiers
768 - added tests and docs for this feature
771 - improved &get_package_symbol
772 - &version and &superclasses now use it
773 - methods are now blessed into Class::MOP::Method
775 - added methods to install CLOS-style method modifiers
776 - &add_before_method_modifier
777 - &add_after_method_modifier
778 - &add_around_method_modifier
779 - added tests and docs for these
780 - added &find_next_method_by_name which finds the
781 equivalent of SUPER::method_name
783 0.12 Thurs. Feb 23, 2006
784 - reduced the dependency on B, no need to always
788 - added docs to the C3 method dispatch order test
789 - fixed missing Algorithm::C3 dependency by making
790 the test skip if it is not installed
792 0.11 Mon Feb. 20, 2006
794 - added example of changing method dispatch order to C3
797 - changed how clone_instance behaves, it now only does a
798 shallow clone (see docs for more details)
799 - added docs and tests
801 0.10 Tues Feb. 14, 2006
802 ** This release was mostly about writing more tests and
803 cleaning out old and dusty code, the MOP should now
804 be considered "ready to use".
806 - adding more tests to get coverage up a little higher,
807 mostly testing errors and edge cases.
808 - test coverage is now at 99%
811 - no longer optionally exports to UNIVERSAL::meta or
812 creates a custom metaclass generator, use the
813 metaclass pragma instead.
816 - fixed a number of minor issues which came up in the
817 error/edge-case tests
819 * Class::MOP::Attribute
820 - fixed a number of minor issues which came up in the
821 error/edge-case tests
824 - fixing the AttributesWithHistory example, it was broken.
826 0.06 Thurs Feb. 9, 2006
828 - adding new metaclass pragma to make setting up the
829 metaclass a little more straightforward
832 - clean up bootstrapping to include more complete
833 attribute definitions for Class::MOP::Class and
834 Class::MOP::Attribute (accessors, readers, writers,
835 etc.) ... it is redundant, but is useful meta-info
839 - fixing minor meta-circularity issue with &meta, it
840 is now more useful for subclasses
841 - added &get_attribute_map as an accessor for the
842 hash of attribute meta objects
843 - &compute_all_applicable_attributes now just returns
844 the attribute meta-object, rather than the HASH ref
845 since all the same info can be gotten from the
846 attribute meta-object itself
847 - updated docs & tests to reflect
848 - added &clone_instance method which does a deep clone
849 of the instance structure created by &construct_instance
850 - added docs & tests for this
851 - added Clone as a dependency
852 - added &new_object and &clone_object convience methods to
853 return blessed new or cloned instances
854 - they handle Class::MOP::Class singletons correctly too
855 - added docs & tests for this
856 - cleaned up the &constuct_class_instance so that it behaves
857 more like &construct_instance (and managed the singletons too)
858 - added the &check_metaclass_compatibility method to make sure
859 that metaclasses are upward and downward compatible.
860 - added tests and docs for this
863 - adjusting code to use the &Class::MOP::Class::meta
865 - adjusting code to use the metaclass pragma
867 0.05 Sat Feb. 4, 2006
869 - added the &attribute_metaclass and &method_metaclass
870 attributes which contain a metaclass name to use for
871 attributes/methods respectively
874 - bootstrap additional attributes for Class::MOP::Class
877 - adjusted the example code and tests to use the new
878 &attribute_metaclass feature of Class::MOP::Class
882 0.04 Fri Feb. 3, 2006
884 - some documentation suggestions from #perl6
886 * Class::MOP::Attribute
887 - improved error messages
890 - added new examples:
891 - AttributesWithHistory
892 - ClassEncapsultedAttributes
894 0.03 Fri Feb. 3, 2006
895 - converted to Module::Build instead of EU::MM
897 * Class::MOP::Attribute
898 - refactored method generation code
899 - attributes are now associated with class directly
902 - refactored the InsideOut example to take advantage
903 of the Class::MOP::Attribute refactoring
904 - changed example files to .pod files and hide thier
905 package names from PAUSE (I don't want to own these
906 namespaces really, they are just examples)
908 0.02 Thurs Feb. 2, 2006
909 - moving examples from t/lib/* to examples/*
910 - adding POD documentation to the examples
912 0.01 Thurs Feb. 2, 2006