1 Revision history for Perl extension Class-MOP.
5 - we now get the &check_package_cache_flag
6 function from MRO::Compat
7 - All XS based functionality is now optional
8 and a Pure Perl version is supplied
9 - the CLASS_MOP_NO_XS environment variable
10 can now be used to force non-XS versions
13 * Class::MOP::Attribute
14 - add has_read_method and has_write_method
15 - get_{read,write}_method_ref now wraps the
16 anon-sub ref in the method metaclass when
18 - added tests for this
20 * Class::MOP::Immutable
21 - added the ability to "wrap" methods when
22 making the class immutable
25 - now handling the edge case of ->meta->identifier
26 dying by wrapping add_package_symbol to specifically
28 - added tests for this
30 * Class::MOP::Attribute
33 - any time a method meta object is constructed
34 we make sure to pass the correct package and
35 method name information
38 Class::MOP::Method::Wrapped
39 Class::MOP::Method::Generated
40 Class::MOP::Method::Accessor
41 Class::MOP::Method::Consructor
42 - all these classes are now bootstrapped properly
43 and now store the package_name and name attributes
46 0.55 Mon. April 28, 2008
47 - All classes now have proper C3 MRO support
48 - added MRO::Compat as a dependency to allow
49 for the C3 MRO support to Just Work in all
53 - rebless_instance now returns the instance
54 it has just blessed, this is mostly to
56 - set the attr correctly in rebless_instance
57 when it has no init_arg
58 - tweaked &linear_isa and &class_precedence_list
59 to support c3 classes.
61 0.54 Fri. March, 14, 2008
64 - making sure that load_class never gets
65 passed a value from @_ or $_ to squash
66 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
69 - make_{immutable,mutable} now return 1
71 - improved error handling in ->create method
72 - rebless_instance now takes extra params which
73 will be used to populate values
74 - added tests for this
77 - localizing the Data::Dumper configurations so
78 that it does not pollute others (RT #33509)
85 - these classes no longer define their own ->meta,
86 but instead just inherit from Class::MOP::Object
88 * Class::MOP::Instance
90 - these classes now inherit from Class::MOP::Object
93 - fixed the filename length on several
94 test files so we install on VMS better
96 - fixed incorrect use of catdir when it
97 should be catfile (RT #32385)
99 0.53 Thurs. Feb. 14, 1008
100 ~~ several doc. fixes and updates ~~
103 Class::MOP::Method::Constructor
104 Class::MOP::Attribute
105 - making init_arg accept an undefined value
106 to indicate that no constructor args can
107 be passed (thanks to nothingmuch)
108 - added tests for this
109 - added attribute initializer attribute (rjbs)
112 - making this use the new init_arg => undef
113 feature instead of the silly hack from
114 before (thanks to nothingmuch)
116 0.52 Tues. Jan. 22, 2008
118 - fixed bug in rebless_instance
121 * Class::MOP::Method::Constructor
122 - removed assumptions about the existence of
125 0.51 Mon. Jan. 14, 2008
126 ~~~ some misc. doc. fixes ~~~
127 ~~ updated copyright dates ~~
130 - now sets the IS_RUNNING_ON_5_10
131 constant so that we can take advantage
132 of some of the nice bits of 5.10
135 - uses the IS_RUNNING_ON_5_10 flag to
136 optimize the &linearized_isa method
137 and avoid the hack/check for circular
138 inheritence in &class_precedence_list
139 - added rebless_instance method (Sartak)
140 - added tests for this
142 * Class::MOP::Immutable
143 - the immutable class now keeps track of
144 the transformer which immutablized it
146 * Class::MOP::Instance
147 - added rebless_instance_structure method (Sartak)
148 - added tests for this
150 0.50 Fri. Dec. 21, 2007
152 - fixed bug in immutable to make sure that
153 transformation arguments are saved
155 - added tests for this
157 * Class::MOP::Immutable
158 - fixed a bug (see above)
160 * Class::MOP::Attribute
163 0.49 Fri. Dec. 14, 2007
164 !! Class::MOP now loads 2 x faster !!
165 !! with XS speedups (thanks konobi) !!
168 - removed the dependency on B
169 - added two XS functions (thanks konobi)
170 - get_code_info($code) which replaces all
171 the B fiddling we were doing with
172 faster/leaner XS level fiddling
173 - check_package_cache_flag($pkg_name) which
174 returns the PL_sub_generation variable to
175 be used to help manage method caching.
178 In 5.10 or greater this will actually
179 use the mro::get_pkg_gen instead to give
180 even more accurate caching information.
181 blblack++ for that stuff :)
184 - added the &subclasses method (thanks rlb)
185 - added the update_package_cache_flag and
186 reset_package_cache_flag which help keep
187 track of when we need to re-fetch the
189 - Several small improvements to take advantage
190 of the new method map caching features
192 0.48 Mon. Nov. 26, 2007
193 * Class::MOP::Attribute
194 - fixed get_read/write_method to handle the
195 HASH ref case, which makes the
196 get_read/write_method_ref handle it too.
197 - added more tests for this
199 0.47 Sat. Nov. 24, 2007
200 * Class::MOP::Attribute
201 - fixed misspelling in get_write_method_ref
202 - added more tests for this
204 0.46 Fri. Nov. 23, 2007
206 - added the linearized_isa method instead of constantly
207 pruning duplicate classes (this will be even more
208 useful in the 5.10-compat version coming soon)
210 * Class::MOP::Attribute
211 - added the get_read_method_ref and get_write_method_ref
212 methods which allow you to retrieve a CODE ref which
213 can always be used to read or write an attribute.
215 0.45 Thurs. Nov. 13, 2007
216 * Class::MOP::Attribute
217 - Fix error message on confess (groditi)
219 0.44 Thurs. Nov. 13, 2007
220 - Apparently I didn't make dist correctly (groditi)
222 0.43 Thurs. Nov. 13, 2007
224 - Add support for the 'builder' attribute (groditi)
227 - optimise metaclass-already-exists check in
228 construct_class_instance (groditi)
229 - duplicate check into initialize to save a
230 call through (groditi)
232 * Class::MOP::Attribute
233 - Add support for the 'builder' attribute (groditi)
234 - Make predicates check for the existence of a value, not whether
235 it is defined (groditi)
237 * Class::MOP::Instance
238 - Make predicates check for the existence of a value, not whether
239 it is defined (groditi)
241 * Class::MOP::Method::Accessor
242 - made this a subclass of Class::MOP::Method::Generated
243 - removed the relevant attributes
245 * Class::MOP::Method::Constructor
246 - fixed the cached values we had to be more sane
247 - made this a subclass of Class::MOP::Method::Generated
248 - fixed generated constructor so it properly handles
250 - added tests for this
251 - added the option to allow for both inlined and
252 non-inlined constructors.
253 - Update inlined methods for builder and predicate changes (groditi)
255 * Class::MOP::Method::Generated
256 - added this class as an abstract base for the
257 Class::MOP::Method::{Constructor,Accessor} classes
258 - added tests for this
261 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
262 - Tests for new predicate behavior (and corrections to old tests) (groditi)
265 - Update ArrayRef based class example to work with predicate changes
267 0.42 Mon. July 16, 2007
268 !!! Horray for mst, he fixed it !!!
270 * Class::MOP::Package
271 - alter symbol table handling to deal with 5.8.x and 5.9.x
274 - Get rid of the crappy workaround from 0.40/41
276 0.41 Sun. July 15, 2007
278 Arghh!!! My TODO test didn't work, so I handle
279 it manually now so that people can use this
280 with 5.9.5/bleadperl without issue.
282 0.40 Tues, July 3, 2007
284 ~ marked a test in 003_methods.t as TODO
285 for perl 5.9.5 (this test is irrelvant to
286 the module functioning on 5.9.5 for the most
289 0.39 Mon. June 18, 2007
290 * Class::MOP::Immutable
291 - added make_metaclass_mutable + docs (groditi)
292 - removed unused variable
293 - added create_immutable_transformer
294 necessary for sane overloading of immutable behavior
295 - tests for this (groditi)
298 - Immutability can now be undone,
299 added make_mutable + tests + docs (groditi)
300 - Massive changes to the way Immutable is done
301 for details see comments next to make_immutable
302 This fixes a bug where custom metaclasses broke
303 when made immutable. We are now keeping one immutable
304 metaclass instance per metaclass instead of just one
305 to prevent isa hierarchy corruption. Memory use will go
306 up, but I suspect it will be neglible.
307 - New tests added for this behavior. (groditi)
309 0.38 Thurs. May 31, 2007
310 ~~ More documentation updates ~~
312 * Class::MOP::Package
313 - we now deal with stub methods properly
314 - added tests for this
315 - fixed some tests failing on 5.9.5 (thanks blblack)
317 * Class::MOP::Attribute
318 - added get_read_method and get_write_method
319 thanks to groditi for this code, tests
321 - added tests and POD for this
324 - fixed RT issue #27329, clone object now
325 handles undef values correctly.
326 - added tests for this
327 - Corrected anon-class handling so that they
328 will not get reaped when instances still
329 exist which need to reference them. This is
330 the correct behavior, hopefully this is an
331 obscure enough feature that there are not too
332 many work arounds out in the wild.
333 - added tests for this by groditi
334 - updated docs to explain this
337 - load custom metaclasses automatically (thanks groditi)
338 - added tests for this behavior
340 0.37 Sat. March 10, 2007
341 ~~ Many, many documentation updates ~~
344 - added &load_class and &is_class_loaded
345 - added tests and docs for these
347 * Class::MOP::Attribute
348 - default now checks the instance with defined to
349 avoid setting off bool-overloads (found by Carl Franks)
353 - bad name in a test, causing meaningless failuress.
359 - All attribute names are now consistent and follow Perl 6
360 style (prefixed with the sigil, and ! as the twigil for
361 private attrs). This should not affect any code, unless
362 you broke encapsulation, in which case, it is your problem
365 !! Class::MOP::Class::Immutable has been removed
367 * Class::MOP::Method::Constructor
368 - this has been moved out of Class::MOP::Class::Immutable
369 and is a proper subclass of Class::MOP::Method now.
372 - this module now uses Class::MOP::Immutable for the
373 immutable transformation instead of
374 Class::MOP::Class::Immutable.
376 + Class::MOP::Immutable
377 - this module now controls the transformation from a mutable
378 to an immutable version of the class. Docs for this will
379 be coming eventually.
382 0.36 Sun. Nov. 5, 2006
384 - added a few 'no warnings' lines to keep annoying
385 (and meaningless) warnings from chirping during
389 - some more bootstrapping is now done on the new
392 * Class::MOP::Class::Immutable
394 - constructor generation is now handled by
395 the Class::MOP::Method::Constructor class
397 * Class::MOP::Method::Constructor
398 - created this to handle constructor generation
399 in Class::MOP::Class::Immutable
401 * Class::MOP::Attribute
403 - attributes now delegate to the
404 Class::MOP::Method::Accessor to generate
407 * Class::MOP::Method::Accessor
408 - all accessor generation functions from
409 Class::MOP::Attribute have been moved here
411 0.35 Sat. Sept. 30, 2006
413 * scripts/class_browser.pl
414 - initial prototype of a class browser, more
415 on this to come. Comments and patches are
419 - All Class::MOP::* accessors are no longer
420 re-generated in the bootstrap, instead
421 they are aliased from the originals
422 - fixed tests to reflect
423 - added Class::MOP::Method (and its subclasses)
425 - adjusted tests for this
426 - added the Class::MOP::Instance attributes
431 - methods are no longer blessed CODE refs
432 but are actual objects which can be CODE-ified
433 - adjusted tests to compensate
434 - adjusted docs for this
437 - changed how methods are dealt with to
438 encapsulate most of the work into the
439 &get_method_map method
440 - made several adjustments for the change
441 in Class::MOP::Method
442 - &add_attribute now checks if you are adding
443 a duplicate name, and properly removes the
444 old one before installing the new one
445 - added tests for this
446 - adjusted docs for this
448 * Class::MOP::Class::Immutable
449 - added caching of &get_method_map
450 - fixed issue with &get_package_symbol
451 - cleaned up the methods that die (patch by David Wheeler)
453 * Class::MOP::Package
454 - added filtering capabilities to
455 &list_all_package_symbols
457 0.34 Sat. Aug. 26, 2006
459 - added the %:methods attribute, which like
460 the $:version and such just actually goes
461 to the symbol table to get it's stuff.
462 However, it makes the MOP more complete.
464 - The &create method now requires that all
465 but the package name now is passed in as
466 named parameters. See docs for more info.
467 - updated docs and tests for this
470 - added &dump method to easily Data::Dumper
474 - cleaned up the initialization of attributes
475 which do not store things in the instance
476 - added the %:methods attribute definition to
479 ~ lots of misc. test cleanup
481 0.33 Sat. Aug. 19, 2006
483 - moved the metaclass cache out of here
484 and it is now in Class::MOP itself.
487 - moved all the metaclass cache stuff here
488 - fixed all tests for this
490 * Class::MOP::Attribute
491 - reference values (other than CODE refs)
492 are no longer allowed for defaults
493 - added tests for this
495 * Class::MOP::Package
496 - fixed an issue with perl 5.8.1 and how it deals
497 with symbol tables. The namespace hash is now
498 always reloaded from the symbol table.
500 ~ lots of misc. documentation cleanup
502 0.32 Sat. Aug. 12, 2006
503 + added Class::MOP::Object so that the
504 metamodel is more complete (and closer
505 to what Perl 6 will probably be).
507 * Class::MOP::Package
508 - refactored entire class, this is now
509 the primary gateway between the metaclass
510 and the Perl 5 symbol table
511 - added many tests for this
512 - this class is now a subclass of
514 - added some tests to reflect this
517 - refactored all symbol table access to
518 use Class::MOP::Package methods instead
521 - adding the $:version attribute in the bootstrap
522 so that Module has a version as an attribute
523 - see comment in Class::MOP for details
524 - added the $:authority attribute to this module
525 as well as an &identifier method, to bring us
526 ever closer to Perl 6 goodness
527 - I have added $AUTHORITY to all the modules
528 - added tests for this
530 * Class::MOP::Instance
531 - added &deinitialize_slot for removing slots
533 - added tests for this
535 * Class::MOP::Attribute
536 - added support for &deinitialize_slot for removing
537 slots from an instance
538 - added tests for this
540 0.31 Sat. July 15, 2006
543 - added &find_method_by_name to locate a method
544 anywhere within the class hierarchy
546 * Class::MOP::Attribute
547 - added &set_value and &get_value for getting
548 the value of the attribute for a particular
551 0.30 Wed. July 5, 2006
552 ---------------------------------------
553 This is the first version of Class::MOP
554 to introduce the immutable features which
555 will be used for optimizating the MOP.
556 This support should still be considered
557 experimental, but moving towards stability.
558 ---------------------------------------
560 * Created Class::MOP::Class::Immutable
562 * Created the Class::MOP::Package and
563 Class::MOP::Module classes to more
564 closely conform to Perl 6's meta-model
567 - now inherits from Class::MOP::Module
568 - several methods moved to ::Module and
569 ::Package and now inherited
570 - added tests for this
572 * Class::MOP::Instance
573 - added an is_inlinable method to allow other
574 classes to check before they attempt to optimize.
575 - added an inline_create_instance to inline
576 instance creation (of course)
579 - the Class::MOP::Class::*_package_variable
580 methods are all now methods of Class::MOP::Package
581 and called *_package_symbol instead. This is
582 because they are now more general purpose symbol
583 table manipulation methods.
585 0.29_02 Thurs. June 22, 2006
586 ++ DEVELOPER RELEASE ++
588 - small change in &create so that it behaves
589 properly when inherited
590 - small fix to &clone_instance
592 0.29_01 Fri. May 12, 2006
593 ++ DEVELOPER RELEASE ++
594 - This release works in combination with
595 Moose 0.09_01, it is a developer release
596 because it introduces a new instance
597 sub-protocol and has not yet been
601 - anon-classes are now properly garbage collected
602 - added tests for this
603 - improved method modifier wrapping
605 * Class::MOP::Instance
606 - added new instance protocol
607 - added tests for this
608 - changed all relevant modules and examples
610 - Class::MOP::Attribute
614 - you no longer need to specify the metaclass
615 itself, if it is not there, Class::MOP::Class
617 - updated tests for this
620 - added ArrayBasedStorage example to show
621 instance storage using ARRAY refs instead of
623 - added tests for this
624 - InsideOutClass is totally revised using the
625 new instance protocol
626 - added more tests for this
628 0.26 Mon. April 24, 2006
630 - added find_attribute_by_name method
631 - added tests and docs for this
632 - some small optimizations
634 * Class::MOP::Attribute
635 - some small optimizations
637 0.25 Thurs. April 20, 2006
639 - added create_anon_class for creating anonymous classes
640 - added tests for this
641 - added get_all_metaclasses, get_all_metaclass_names
642 and get_all_metaclass_instances method to allow
643 access to all the cached metaclass objects.
644 - attribute slot initialization is now the responsibility
645 of the attribute itself, and construct_instance now
646 delegates appropriately
648 * Class::MOP::Attribute
649 - attribute slot initialization is now the responsibility
650 of the attribute itself, so we added a method for it
651 called initialize_instance_slot
654 - adjusted all the examples to use the new attribute
655 initialize_instance_slot method
657 0.24 Tues. April 11, 2006
659 - cleaned up how the before/after/around method
660 modifiers get named with Sub::Name
662 0.23 Thurs. March 30, 2006
664 - fixed the way attribute defaults are handled
665 during instance construction (bug found by chansen)
667 * Class::MOP::Attribute
668 - read-only accessors ('reader') will now die if
669 passed more than one argument (attempting to write
671 - added tests for this
672 - adjusted all /example files to comply
674 0.22 Mon. March 20, 2006
676 - localized $@ in the *_package_variable functions
677 because otherwise, it does ugly things in Moose.
678 - added test case for this
680 0.21 Wed. March 15, 2006
682 - fixed issue where metaclasses are reaped from
683 our cache in global destruction, and so are not
684 available in DESTORY calls
686 0.20 Thurs. March 2, 2006
687 - removed the dependency for Clone since
688 we no longer to deep-cloning by default.
691 - added &package_name, &name and
692 &fully_qualified_name methods, some of
693 which were formerly private subs in
696 * Class::MOP::Method::Wrapped
697 - allows for a method to be wrapped with
698 before, after and around modifiers
699 - added tests and docs for this feature
702 - improved &get_package_symbol
703 - &version and &superclasses now use it
704 - methods are now blessed into Class::MOP::Method
706 - added methods to install CLOS-style method modifiers
707 - &add_before_method_modifier
708 - &add_after_method_modifier
709 - &add_around_method_modifier
710 - added tests and docs for these
711 - added &find_next_method_by_name which finds the
712 equivalent of SUPER::method_name
714 0.12 Thurs. Feb 23, 2006
715 - reduced the dependency on B, no need to always
719 - added docs to the C3 method dispatch order test
720 - fixed missing Algorithm::C3 dependency by making
721 the test skip if it is not installed
723 0.11 Mon Feb. 20, 2006
725 - added example of changing method dispatch order to C3
728 - changed how clone_instance behaves, it now only does a
729 shallow clone (see docs for more details)
730 - added docs and tests
732 0.10 Tues Feb. 14, 2006
733 ** This release was mostly about writing more tests and
734 cleaning out old and dusty code, the MOP should now
735 be considered "ready to use".
737 - adding more tests to get coverage up a little higher,
738 mostly testing errors and edge cases.
739 - test coverage is now at 99%
742 - no longer optionally exports to UNIVERSAL::meta or
743 creates a custom metaclass generator, use the
744 metaclass pragma instead.
747 - fixed a number of minor issues which came up in the
748 error/edge-case tests
750 * Class::MOP::Attribute
751 - fixed a number of minor issues which came up in the
752 error/edge-case tests
755 - fixing the AttributesWithHistory example, it was broken.
757 0.06 Thurs Feb. 9, 2006
759 - adding new metaclass pragma to make setting up the
760 metaclass a little more straightforward
763 - clean up bootstrapping to include more complete
764 attribute definitions for Class::MOP::Class and
765 Class::MOP::Attribute (accessors, readers, writers,
766 etc.) ... it is redundant, but is useful meta-info
770 - fixing minor meta-circularity issue with &meta, it
771 is now more useful for subclasses
772 - added &get_attribute_map as an accessor for the
773 hash of attribute meta objects
774 - &compute_all_applicable_attributes now just returns
775 the attribute meta-object, rather than the HASH ref
776 since all the same info can be gotten from the
777 attribute meta-object itself
778 - updated docs & tests to reflect
779 - added &clone_instance method which does a deep clone
780 of the instance structure created by &construct_instance
781 - added docs & tests for this
782 - added Clone as a dependency
783 - added &new_object and &clone_object convience methods to
784 return blessed new or cloned instances
785 - they handle Class::MOP::Class singletons correctly too
786 - added docs & tests for this
787 - cleaned up the &constuct_class_instance so that it behaves
788 more like &construct_instance (and managed the singletons too)
789 - added the &check_metaclass_compatibility method to make sure
790 that metaclasses are upward and downward compatible.
791 - added tests and docs for this
794 - adjusting code to use the &Class::MOP::Class::meta
796 - adjusting code to use the metaclass pragma
798 0.05 Sat Feb. 4, 2006
800 - added the &attribute_metaclass and &method_metaclass
801 attributes which contain a metaclass name to use for
802 attributes/methods respectively
805 - bootstrap additional attributes for Class::MOP::Class
808 - adjusted the example code and tests to use the new
809 &attribute_metaclass feature of Class::MOP::Class
813 0.04 Fri Feb. 3, 2006
815 - some documentation suggestions from #perl6
817 * Class::MOP::Attribute
818 - improved error messages
821 - added new examples:
822 - AttributesWithHistory
823 - ClassEncapsultedAttributes
825 0.03 Fri Feb. 3, 2006
826 - converted to Module::Build instead of EU::MM
828 * Class::MOP::Attribute
829 - refactored method generation code
830 - attributes are now associated with class directly
833 - refactored the InsideOut example to take advantage
834 of the Class::MOP::Attribute refactoring
835 - changed example files to .pod files and hide thier
836 package names from PAUSE (I don't want to own these
837 namespaces really, they are just examples)
839 0.02 Thurs Feb. 2, 2006
840 - moving examples from t/lib/* to examples/*
841 - adding POD documentation to the examples
843 0.01 Thurs Feb. 2, 2006