Make sure all the XS methods die when called as a class method, and test for this
[gitmo/Class-MOP.git] / Changes
1 Revision history for Perl extension Class-MOP.
2
3 0.65
4     * Class::MOP::Method
5       - Added name and package_name XS accessors, and make sure all
6         the XS and Perl versions work the same way. (Dave Rolsky)
7
8     * MOP.xs
9       - The XS versions of various methods just returned undef when
10         called class methods, rather than dying like the pure Perl
11         versions. (Dave Rolsky)
12
13 0.64_07 Fri August 29, 2008
14     * Class::MOP
15       - Silenced warnings that managed to break Moose tests when XS
16         was loaded. (Dave Rolsky)
17       - Some XS versions of methods were ignored because of typos in
18         MOP.xs. (Dave Rolsky)
19
20 0.64_06 Mon August 25, 2008
21     * Class::MOP (MOP.xs)
22       - Another MS VC++ fix, cannot declare a variable in the middle
23         of a scope (Taro Nishino).
24
25 0.64_05 Sun August 24, 2008
26     * Class::MOP
27       - None of the dev releases actually loaded the XS properly, but
28         we silently fell back to the pure Perl version of the
29         code. (Dave Rolsky)
30
31     * Class::MOP (MOP.xs)
32       - Replaced some code that used functions not available on Visual
33         C++ with some Perl XS API bits (Dave Rolsky).
34
35 0.64_04 Sat August 23, 2008
36     * Class::MOP::Class
37       - Workaround a bug in 5.8.1's goto sub (nothingmuch)
38
39     * pod.t and pod_coveraget.t
40       - These are no longer shipped with the tarball because of bogus
41         failures from CPAN testers. (Dave Rolsky)
42
43 0.64_03 Thu August 21, 2008
44     * Class::MOP::Package
45       - Some (legit) code was misparsed by earlier 5.8.x
46         releases. (nothingmuch)
47
48     * Class::MOP
49       - Fix a constant in void context warning (nothingmuch)
50
51 0.64_02 Thu August 21, 2008
52     * Makefile.PL and Class::MOP
53       - Explicitly require Perl 5.8.0+ (Dave Rolsky)
54
55     * Makefile.PL
56       - Add missing prereqs that got lost in the switch away from
57         Module::Install.
58
59     * Class::MOP::Instance
60       - New method - get_all_attributes (nothingmuch)
61
62 0.64_01 Wed August 20, 2008
63     * Makefile.PL
64       - We now check to see if you have a compiler. If you don't, the
65         module installs without some XS bits, but will work the same
66         as with XS. This should make it easier to install on platforms
67         without a compiler (like Windows). (Dave Rolsky)
68
69     * many modules
70       - Perl 6 style attribute naming replaced with sane style ('methods', not
71         '%!methods'). These changes should not impact any existing API uses.
72         (nothingmuch).
73
74     * many modules
75       - Quite a number of optimizations based on profiling, including
76         allowing constructors to take hash references instead of
77         hashes, duplicating some frequently used code in XS, and
78         making constructors immutable. These changes should not impact
79         any existing API uses. (nothingmuch)
80
81     * Many modules
82       - Constructors now respect the meta attributes of their subclasses,
83         facilitating MOP extensibility. More related changes will happen in the
84         next several releases. (nothingmuch)
85
86     * Class::MOP::Class
87       - New method - get_all_methods, replaces the deprecated
88         compute_all_applicable_methods. get_all_attributes provided for
89         consistency (nothingmuch)
90       - New method - wrap_method was refactored out of get_method_map
91         (nothingmuch)
92       - New API for meta instance invalidation - invalidate_meta_instance,
93         invalidate_meta_instances, add_dependent_meta_instance,
94         remove_dependent_meta_instance, called automatically when attribute
95         definitions change and allows notification of dependent subclasses.
96         (nothingmuch)
97
98 0.64 Sun August 3, 2008
99     * Class::MOP::Immutable
100       - fixing subtle edge case in immutable when you
101         call ->meta (stevan)
102       - clean up option processing (nothingmuch)
103
104     * Class::MOP::Instance
105       - inlined initialize slot didn't match
106         non-inlined (nothingmuch)
107
108 0.63 Mon July 7, 2008
109     * Class::MOP
110       - load_class will initialize a metaclass even if
111         the class is already loaded (sartak)
112       - load_class now returns the metaclass instance
113         instead of just 1 (sartak)
114
115     * elsewhere
116       - better error messages (sartak and Dave Rolsky)
117
118 0.62 Wed June 18, 2008
119     - in is_class_loaded, recognize scalar references (as opposed to globs) in
120       the symbol table as methods (these are optimized constant subs)
121
122 0.61 Fri. June 13, 2008
123     - Okay, lets give this another try and see if PAUSE 
124       recognizes it correct this time.
125
126 0.60 Thurs. Jun 12, 2008
127     - Fixed a version number issue by bumping all modules
128       to 0.60.
129
130 0.59 Thurs. Jun 12, 2008
131     !! Several fixes resulting in yet another 25-30% speedup !!
132
133     * Class::MOP::Class
134       - now stores the instance of the instance 
135         metaclass to avoid needless recomputation
136         and deletes it when the cache is blown
137       - introduce methods to query Class::MOP::Class for 
138         the options used to make it immutable as well as
139         the proper immutable transformer. (groditi)        
140
141     * Class::MOP::Package
142       - {add, has, get, remove}_package_symbol all 
143         now accept a HASH ref argument as well as the
144         string. All internal usages now use the HASH
145         ref version.
146
147     * Class::MOP
148       - MOP.xs does sanity checks on the coderef 
149         to avoid a segfault
150       - is_class_loaded check now uses code that
151         was improved in Moose's ClassName type
152         check (Sartak)
153       - nonsensical (undef, empty, reference) class
154         names now throw a more direct error in
155         load_class (Sartak)
156         - tests for this and other aspects of
157           load_class (Sartak)
158     
159     * Class::MOP
160       Class::MOP::Class      
161       Class::MOP::Method
162       Class::MOP::Method::Wrapped
163       Class::MOP::Attribute
164       - switched usage of reftype to ref because 
165         it is much faster
166
167 0.58 Thurs. May 29, 2008
168     (late night release engineering)--
169     
170     - fixing the version is META.yml, no functional 
171       changes in this release
172
173 0.57 Wed. May 28, 2008
174     !! Several speedups resulting in 20-25% speedups !!
175     || (thanks to konobi, groditi, mst & CataMoose) !!
176
177     * Class::MOP::Class
178       - made get_method_map use list_all_package_symbols
179         instead of manually grabbing each symbol
180       - streamlining &initialize somewhat, since it gets
181         called so much
182         
183     * Class::MOP::Package
184       - made {get, has}_package_symbol not call 
185         &namespace so much 
186       - inlining a few calls to &name with 
187         direct HASH access key access
188       - added get_all_package_symbols to fetch 
189         a HASH of items based on a type filter
190         similar to list_all_package_symbols
191         - added tests for this
192
193     * Class::MOP::Method
194       Class::MOP::Method::Constructor
195       Class::MOP::Method::Generated
196       Class::MOP::Method::Accessor
197       - added more descriptive error message to help 
198         keep people from wasting time tracking an error
199         that is easily fixed by upgrading.
200
201     * Class::MOP::Immutable
202       - Don't inline a destructor unless the user actually
203         needs one
204         - added tests for this
205
206 0.56 Saturday, May 24, 2008
207     * Class::MOP
208       - we now get the &check_package_cache_flag
209         function from MRO::Compat
210       - All XS based functionality now has a 
211         Pure Perl alternative
212         - the CLASS_MOP_NO_XS environment variable
213           can now be used to force non-XS versions
214           to always be used
215
216     * Class::MOP::Attribute
217       - add has_read_method and has_write_method
218       - get_{read,write}_method_ref now wraps the
219         anon-sub ref in the method metaclass when
220         possible
221         - added tests for this
222
223     * Class::MOP::Immutable
224       - added the ability to "wrap" methods when
225         making the class immutable
226
227     * Class::MOP::Class
228       - now handling the edge case of ->meta->identifier
229         dying by wrapping add_package_symbol to specifically
230         allow for it to work.
231         - added tests for this
232
233     * Class::MOP::Attribute
234       Class::MOP::Class
235       Class::MOP::Immutable
236       - any time a method meta object is constructed
237         we make sure to pass the correct package and
238         method name information
239
240     * Class::MOP::Method
241       Class::MOP::Method::Wrapped
242       Class::MOP::Method::Generated
243       Class::MOP::Method::Accessor
244       Class::MOP::Method::Consructor
245       - the &wrap constructor method now requires that a 
246         'package_name' and 'name' attribute are passed. This 
247         is to help support the no-XS version, and will 
248         throw an error if these are not supplied.      
249       - all these classes are now bootstrapped properly
250         and now store the package_name and name attributes
251         correctly as well        
252
253     ~ Build.PL has been removed since the 
254       Module::Install support has been removed
255
256 0.55 Mon. April 28, 2008
257     - All classes now have proper C3 MRO support
258       - added MRO::Compat as a dependency to allow
259         for the C3 MRO support to Just Work in all
260         perl versions
261
262     * Class::MOP::Class
263       - rebless_instance now returns the instance
264         it has just blessed, this is mostly to
265         facilitate chaining
266       - set the attr correctly in rebless_instance
267         when it has no init_arg
268       - tweaked &linear_isa and &class_precedence_list
269         to support c3 classes.
270
271 0.54 Fri. March, 14, 2008
272     * Class::MOP
273       metaclass.pm
274       - making sure that load_class never gets
275         passed a value from @_ or $_ to squash
276         Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
277
278     * Class::MOP::Class
279       - make_{immutable,mutable} now return 1
280         (cause Sartak asked)
281       - improved error handling in ->create method
282       - rebless_instance now takes extra params which
283         will be used to populate values
284         - added tests for this
285
286     * Class::MOP::Object
287       - localizing the Data::Dumper configurations so
288         that it does not pollute others (RT #33509)
289
290     * Class::MOP::Class
291       Class::MOP::Package
292       Class::MOP::Module
293       Class::MOP::Method
294       Class::MOP::Attribute
295       - these classes no longer define their own ->meta,
296         but instead just inherit from Class::MOP::Object
297
298     * Class::MOP::Instance
299       Class::MOP::Immutable
300       - these classes now inherit from Class::MOP::Object
301
302     * t/
303       - fixed the filename length on several
304         test files so we install on VMS better
305         (RT #32295)
306       - fixed incorrect use of catdir when it
307         should be catfile (RT #32385)
308
309 0.53 Thurs. Feb. 14, 1008
310     ~~ several doc. fixes and updates ~~
311
312     * Class::MOP::Class
313       Class::MOP::Method::Constructor
314       Class::MOP::Attribute
315         - making init_arg accept an undefined value
316           to indicate that no constructor args can
317           be passed (thanks to nothingmuch)
318           - added tests for this
319         - added attribute initializer attribute (rjbs)
320
321     * Class::MOP.
322         - making this use the new init_arg => undef
323           feature instead of the silly hack from
324           before (thanks to nothingmuch)
325
326 0.52 Tues. Jan. 22, 2008
327     * Class::MOP::Class
328       - fixed bug in rebless_instance
329         (discovered by ash)
330
331     * Class::MOP::Method::Constructor
332       - removed assumptions about the existence of
333         a &meta method
334
335 0.51 Mon. Jan. 14, 2008
336     ~~~ some misc. doc. fixes ~~~
337     ~~ updated copyright dates ~~
338
339     * Class::MOP
340       - now sets the IS_RUNNING_ON_5_10
341         constant so that we can take advantage
342         of some of the nice bits of 5.10
343
344     * Class::MOP::Class
345       - uses the IS_RUNNING_ON_5_10 flag to
346         optimize the &linearized_isa method
347         and avoid the hack/check for circular
348         inheritence in &class_precedence_list
349       - added rebless_instance method (Sartak)
350         - added tests for this
351
352     * Class::MOP::Immutable
353       - the immutable class now keeps track of
354         the transformer which immutablized it
355
356     * Class::MOP::Instance
357       - added rebless_instance_structure method (Sartak)
358         - added tests for this
359
360 0.50 Fri. Dec. 21, 2007
361     * Class::MOP::Class
362       - fixed bug in immutable to make sure that
363         transformation arguments are saved
364         correctly (mst)
365         - added tests for this
366
367     * Class::MOP::Immutable
368       - fixed a bug (see above)
369
370     * Class::MOP::Attribute
371       - some doc updates
372
373 0.49 Fri. Dec. 14, 2007
374     !! Class::MOP now loads 2 x faster  !!
375     !! with XS speedups (thanks konobi) !!
376
377     * Class::MOP
378       - removed the dependency on B
379       - added two XS functions (thanks konobi)
380         - get_code_info($code) which replaces all
381           the B fiddling we were doing with
382           faster/leaner XS level fiddling
383         - check_package_cache_flag($pkg_name) which
384           returns the PL_sub_generation variable to
385           be used to help manage method caching.
386
387           NOTE:
388           In 5.10 or greater this will actually
389           use the mro::get_pkg_gen instead to give
390           even more accurate caching information.
391           blblack++ for that stuff :)
392
393     * Class::MOP::Class
394       - added the &subclasses method (thanks rlb)
395       - added the update_package_cache_flag and
396         reset_package_cache_flag which help keep
397         track of when we need to re-fetch the
398         method map.
399       - Several small improvements to take advantage
400         of the new method map caching features
401
402 0.48 Mon. Nov. 26, 2007
403     * Class::MOP::Attribute
404       - fixed get_read/write_method to handle the
405         HASH ref case, which makes the
406         get_read/write_method_ref handle it too.
407         - added more tests for this
408
409 0.47 Sat. Nov. 24, 2007
410     * Class::MOP::Attribute
411       - fixed misspelling in get_write_method_ref
412         - added more tests for this
413
414 0.46 Fri. Nov. 23, 2007
415     * Class::MOP::Class
416       - added the linearized_isa method instead of constantly
417         pruning duplicate classes (this will be even more
418         useful in the 5.10-compat version coming soon)
419
420     * Class::MOP::Attribute
421       - added the get_read_method_ref and get_write_method_ref
422         methods which allow you to retrieve a CODE ref which
423         can always be used to read or write an attribute.
424
425 0.45 Thurs. Nov. 13, 2007
426     * Class::MOP::Attribute
427       - Fix error message on confess (groditi)
428
429 0.44 Thurs. Nov. 13, 2007
430     - Apparently I didn't make dist correctly (groditi)
431
432 0.43 Thurs. Nov. 13, 2007
433     * Class::MOP
434       - Add support for the 'builder' attribute (groditi)
435
436     * Class::MOP::Class
437       - optimise metaclass-already-exists check in
438         construct_class_instance (groditi)
439       - duplicate check into initialize to save a
440         call through (groditi)
441
442     * Class::MOP::Attribute
443       - Add support for the 'builder' attribute (groditi)
444       - Make predicates check for the existence of a value, not whether
445         it is defined (groditi)
446
447     * Class::MOP::Instance
448       - Make predicates check for the existence of a value, not whether
449         it is defined (groditi)
450
451     * Class::MOP::Method::Accessor
452       - made this a subclass of Class::MOP::Method::Generated
453         - removed the relevant attributes
454
455     * Class::MOP::Method::Constructor
456       - fixed the cached values we had to be more sane
457       - made this a subclass of Class::MOP::Method::Generated
458       - fixed generated constructor so it properly handles
459         subclasses now.
460         - added tests for this
461       - added the option to allow for both inlined and
462         non-inlined constructors.
463       - Update inlined methods for builder and predicate changes (groditi)
464
465     * Class::MOP::Method::Generated
466       - added this class as an abstract base for the
467         Class::MOP::Method::{Constructor,Accessor} classes
468         - added tests for this
469
470     *t/
471       - Alter tests (005, 014 020, 021) for new builder addition (groditi)
472       - Tests for new predicate behavior (and corrections to old tests) (groditi)
473
474     *examples/
475       - Update ArrayRef based class example to work with predicate changes
476
477 0.42 Mon. July 16, 2007
478     !!! Horray for mst, he fixed it !!!
479
480     * Class::MOP::Package
481       - alter symbol table handling to deal with 5.8.x and 5.9.x
482
483     * t/
484       - Get rid of the crappy workaround from 0.40/41
485
486 0.41 Sun. July 15, 2007
487     * t/
488         Arghh!!! My TODO test didn't work, so I handle
489         it manually now so that people can use this
490         with 5.9.5/bleadperl without issue.
491
492 0.40 Tues, July 3, 2007
493     * t/
494       ~ marked a test in 003_methods.t as TODO
495         for perl 5.9.5 (this test is irrelvant to
496         the module functioning on 5.9.5 for the most
497         part anyway)
498
499 0.39 Mon. June 18, 2007
500     * Class::MOP::Immutable
501       - added make_metaclass_mutable + docs (groditi)
502       - removed unused variable
503       - added create_immutable_transformer
504         necessary for sane overloading of immutable behavior
505          - tests for this (groditi)
506
507     * Class::MOP::Class
508       - Immutability can now be undone,
509         added make_mutable + tests + docs (groditi)
510       - Massive changes to the way Immutable is done
511         for details see comments next to make_immutable
512         This fixes a bug where custom metaclasses broke
513         when made immutable. We are now keeping one immutable
514         metaclass instance per metaclass instead of just one
515         to prevent isa hierarchy corruption. Memory use will go
516         up, but I suspect it will be neglible.
517          - New tests added for this behavior.  (groditi)
518
519 0.38 Thurs. May 31, 2007
520     ~~ More documentation updates ~~
521
522     * Class::MOP::Package
523       - we now deal with stub methods properly
524         - added tests for this
525       - fixed some tests failing on 5.9.5 (thanks blblack)
526
527     * Class::MOP::Attribute
528       - added get_read_method and get_write_method
529         thanks to groditi for this code, tests
530         and docs.
531         - added tests and POD for this
532
533     * Class::MOP::Class
534       - fixed RT issue #27329, clone object now
535         handles undef values correctly.
536         - added tests for this
537       - Corrected anon-class handling so that they
538         will not get reaped when instances still
539         exist which need to reference them. This is
540         the correct behavior, hopefully this is an
541         obscure enough feature that there are not too
542         many work arounds out in the wild.
543         - added tests for this by groditi
544         - updated docs to explain this
545
546     * metaclass
547       - load custom metaclasses automatically (thanks groditi)
548         - added tests for this behavior
549
550 0.37 Sat. March 10, 2007
551     ~~ Many, many documentation updates ~~
552
553     * Class::MOP
554       - added &load_class and &is_class_loaded
555         - added tests and docs for these
556
557     * Class::MOP::Attribute
558       - default now checks the instance with defined to
559         avoid setting off bool-overloads (found by Carl Franks)
560
561 0.37_002
562     * /t
563       - bad name in a test, causing meaningless failuress.
564         No other changes.
565
566 0.37_001
567
568     ~~ GLOBAL CHANGES ~~
569     - All attribute names are now consistent and follow Perl 6
570       style (prefixed with the sigil, and ! as the twigil for
571       private attrs). This should not affect any code, unless
572       you broke encapsulation, in which case, it is your problem
573       anyway.
574
575     !! Class::MOP::Class::Immutable has been removed
576
577     * Class::MOP::Method::Constructor
578       - this has been moved out of Class::MOP::Class::Immutable
579         and is a proper subclass of Class::MOP::Method now.
580
581     * Class::MOP::Class
582       - this module now uses Class::MOP::Immutable for the
583         immutable transformation instead of
584         Class::MOP::Class::Immutable.
585
586     + Class::MOP::Immutable
587       - this module now controls the transformation from a mutable
588         to an immutable version of the class. Docs for this will
589         be coming eventually.
590
591
592 0.36 Sun. Nov. 5, 2006
593     * Class::MOP::Class
594       - added a few 'no warnings' lines to keep annoying
595         (and meaningless) warnings from chirping during
596         global destruction.
597
598     * Class::MOP
599       - some more bootstrapping is now done on the new
600         classes
601
602     * Class::MOP::Class::Immutable
603       *** API CHANGE ***
604       - constructor generation is now handled by
605         the Class::MOP::Method::Constructor class
606
607     * Class::MOP::Method::Constructor
608       - created this to handle constructor generation
609         in Class::MOP::Class::Immutable
610
611     * Class::MOP::Attribute
612       *** API CHANGE ***
613       - attributes now delegate to the
614         Class::MOP::Method::Accessor to generate
615         accessors
616
617     * Class::MOP::Method::Accessor
618       - all accessor generation functions from
619         Class::MOP::Attribute have been moved here
620
621 0.35 Sat. Sept. 30, 2006
622
623     * scripts/class_browser.pl
624       - initial prototype of a class browser, more
625         on this to come. Comments and patches are
626         very much welcome.
627
628     * Class::MOP
629       - All Class::MOP::* accessors are no longer
630         re-generated in the bootstrap, instead
631         they are aliased from the originals
632         - fixed tests to reflect
633       - added Class::MOP::Method (and its subclasses)
634         to the bootstrap
635         - adjusted tests for this
636       - added the Class::MOP::Instance attributes
637         to the bootstrap
638
639     * Class::MOP::Method
640       *** API CHANGE ***
641       - methods are no longer blessed CODE refs
642         but are actual objects which can be CODE-ified
643         - adjusted tests to compensate
644         - adjusted docs for this
645
646     * Class::MOP::Class
647       - changed how methods are dealt with to
648         encapsulate most of the work into the
649         &get_method_map method
650       - made several adjustments for the change
651         in Class::MOP::Method
652       - &add_attribute now checks if you are adding
653         a duplicate name, and properly removes the
654         old one before installing the new one
655         - added tests for this
656         - adjusted docs for this
657
658     * Class::MOP::Class::Immutable
659       - added caching of &get_method_map
660       - fixed issue with &get_package_symbol
661       - cleaned up the methods that die (patch by David Wheeler)
662
663     * Class::MOP::Package
664       - added filtering capabilities to
665         &list_all_package_symbols
666
667 0.34 Sat. Aug. 26, 2006
668     * Class::MOP::Class
669       - added the %:methods attribute, which like
670         the $:version and such just actually goes
671         to the symbol table to get it's stuff.
672         However, it makes the MOP more complete.
673      ** API CHANGE **
674       - The &create method now requires that all
675         but the package name now is passed in as
676         named parameters. See docs for more info.
677         - updated docs and tests for this
678
679     * Class::MOP::Object
680       - added &dump method to easily Data::Dumper
681         an object
682
683     * Class::MOP
684       - cleaned up the initialization of attributes
685         which do not store things in the instance
686       - added the %:methods attribute definition to
687         the bootstrap
688
689     ~ lots of misc. test cleanup
690
691 0.33 Sat. Aug. 19, 2006
692     * Class::MOP::Class
693       - moved the metaclass cache out of here
694         and it is now in Class::MOP itself.
695
696     * Class::MOP
697       - moved all the metaclass cache stuff here
698         - fixed all tests for this
699
700     * Class::MOP::Attribute
701       - reference values (other than CODE refs)
702         are no longer allowed for defaults
703         - added tests for this
704
705     * Class::MOP::Package
706       - fixed an issue with perl 5.8.1 and how it deals
707         with symbol tables. The namespace hash is now
708         always reloaded from the symbol table.
709
710     ~ lots of misc. documentation cleanup
711
712 0.32 Sat. Aug. 12, 2006
713     + added Class::MOP::Object so that the
714       metamodel is more complete (and closer
715       to what Perl 6 will probably be).
716
717     * Class::MOP::Package
718       - refactored entire class, this is now
719         the primary gateway between the metaclass
720         and the Perl 5 symbol table
721         - added many tests for this
722       - this class is now a subclass of
723         Class::MOP::Object
724         - added some tests to reflect this
725
726     * Class::MOP::Class
727       - refactored all symbol table access to
728         use Class::MOP::Package methods instead
729
730     * Class::MOP::Module
731       - adding the $:version attribute in the bootstrap
732         so that Module has a version as an attribute
733         - see comment in Class::MOP for details
734       - added the $:authority attribute to this module
735         as well as an &identifier method, to bring us
736         ever closer to Perl 6 goodness
737         - I have added $AUTHORITY to all the modules
738         - added tests for this
739
740     * Class::MOP::Instance
741       - added &deinitialize_slot for removing slots
742         from an instance
743         - added tests for this
744
745     * Class::MOP::Attribute
746       - added support for &deinitialize_slot for removing
747         slots from an instance
748         - added tests for this
749
750 0.31 Sat. July 15, 2006
751
752     * Class::MOP::Class
753       - added &find_method_by_name to locate a method
754         anywhere within the class hierarchy
755
756     * Class::MOP::Attribute
757       - added &set_value and &get_value for getting
758         the value of the attribute for a particular
759         instance.
760
761 0.30 Wed. July 5, 2006
762     ---------------------------------------
763     This is the first version of Class::MOP
764     to introduce the immutable features which
765     will be used for optimizating the MOP.
766     This support should still be considered
767     experimental, but moving towards stability.
768     ---------------------------------------
769
770     * Created Class::MOP::Class::Immutable
771
772     * Created the Class::MOP::Package and
773       Class::MOP::Module classes to more
774       closely conform to Perl 6's meta-model
775
776     * Class::MOP::Class
777       - now inherits from Class::MOP::Module
778       - several methods moved to ::Module and
779         ::Package and now inherited
780         - added tests for this
781
782     * Class::MOP::Instance
783       - added an is_inlinable method to allow other
784         classes to check before they attempt to optimize.
785       - added an inline_create_instance to inline
786         instance creation (of course)
787
788     ** API CHANGE **
789       - the Class::MOP::Class::*_package_variable
790         methods are all now methods of Class::MOP::Package
791         and called *_package_symbol instead. This is
792         because they are now more general purpose symbol
793         table manipulation methods.
794
795 0.29_02 Thurs. June 22, 2006
796     ++ DEVELOPER RELEASE ++
797     * Class::MOP::Class
798       - small change in &create so that it behaves
799         properly when inherited
800       - small fix to &clone_instance
801
802 0.29_01 Fri. May 12, 2006
803     ++ DEVELOPER RELEASE ++
804       - This release works in combination with
805         Moose 0.09_01, it is a developer release
806         because it introduces a new instance
807         sub-protocol and has not yet been
808         optimized.
809
810     * Class::MOP::Class
811       - anon-classes are now properly garbage collected
812         - added tests for this
813       - improved method modifier wrapping
814
815     * Class::MOP::Instance
816       - added new instance protocol
817         - added tests for this
818       - changed all relevant modules and examples
819         - Class::MOP::Class
820         - Class::MOP::Attribute
821         - examples/*
822
823     * metaclass
824       - you no longer need to specify the metaclass
825         itself, if it is not there, Class::MOP::Class
826         is just assumed
827         - updated tests for this
828
829     * examples/
830       - added ArrayBasedStorage example to show
831         instance storage using ARRAY refs instead of
832         HASH refs.
833         - added tests for this
834       - InsideOutClass is totally revised using the
835         new instance protocol
836         - added more tests for this
837
838 0.26 Mon. April 24, 2006
839     * Class::MOP::Class
840       - added find_attribute_by_name method
841         - added tests and docs for this
842       - some small optimizations
843
844     * Class::MOP::Attribute
845       - some small optimizations
846
847 0.25 Thurs. April 20, 2006
848     * Class::MOP::Class
849       - added create_anon_class for creating anonymous classes
850         - added tests for this
851       - added get_all_metaclasses, get_all_metaclass_names
852         and get_all_metaclass_instances method to allow
853         access to all the cached metaclass objects.
854       - attribute slot initialization is now the responsibility
855         of the attribute itself, and construct_instance now
856         delegates appropriately
857
858     * Class::MOP::Attribute
859       - attribute slot initialization is now the responsibility
860         of the attribute itself, so we added a method for it
861         called initialize_instance_slot
862
863     * examples/
864       - adjusted all the examples to use the new attribute
865         initialize_instance_slot method
866
867 0.24 Tues. April 11, 2006
868     * Class::MOP::Class
869       - cleaned up how the before/after/around method
870         modifiers get named with Sub::Name
871
872 0.23 Thurs. March 30, 2006
873         * Class::MOP::Class
874           - fixed the way attribute defaults are handled
875             during instance construction (bug found by chansen)
876
877         * Class::MOP::Attribute
878           - read-only accessors ('reader') will now die if
879             passed more than one argument (attempting to write
880             to them basically)
881               - added tests for this
882               - adjusted all /example files to comply
883
884 0.22 Mon. March 20, 2006
885     * Class::MOP::Class
886       - localized $@ in the *_package_variable functions
887         because otherwise, it does ugly things in Moose.
888           - added test case for this
889
890 0.21 Wed. March 15, 2006
891     * Class::MOP::Class
892       - fixed issue where metaclasses are reaped from
893         our cache in global destruction, and so are not
894         available in DESTORY calls
895
896 0.20 Thurs. March 2, 2006
897     - removed the dependency for Clone since
898       we no longer to deep-cloning by default.
899
900     * Class::MOP::Method
901       - added &package_name, &name and
902         &fully_qualified_name methods, some of
903         which were formerly private subs in
904         Class::MOP::Class
905
906     * Class::MOP::Method::Wrapped
907       - allows for a method to be wrapped with
908         before, after and around modifiers
909           - added tests and docs for this feature
910
911     * Class::MOP::Class
912       - improved &get_package_symbol
913           - &version and &superclasses now use it
914       - methods are now blessed into Class::MOP::Method
915         whenever possible
916       - added methods to install CLOS-style method modifiers
917          - &add_before_method_modifier
918          - &add_after_method_modifier
919          - &add_around_method_modifier
920              - added tests and docs for these
921       - added &find_next_method_by_name which finds the
922         equivalent of SUPER::method_name
923
924 0.12 Thurs. Feb 23, 2006
925     - reduced the dependency on B, no need to always
926       have the latest
927
928     * examples/
929       - added docs to the C3 method dispatch order test
930       - fixed missing Algorithm::C3 dependency by making
931         the test skip if it is not installed
932
933 0.11 Mon Feb. 20, 2006
934     * examples/
935       - added example of changing method dispatch order to C3
936
937     * Class::MOP::Class
938       - changed how clone_instance behaves, it now only does a
939         shallow clone (see docs for more details)
940         - added docs and tests
941
942 0.10 Tues Feb. 14, 2006
943     ** This release was mostly about writing more tests and
944        cleaning out old and dusty code, the MOP should now
945        be considered "ready to use".
946
947     - adding more tests to get coverage up a little higher,
948       mostly testing errors and edge cases.
949       - test coverage is now at 99%
950
951     * Class::MOP
952       - no longer optionally exports to UNIVERSAL::meta or
953         creates a custom metaclass generator, use the
954         metaclass pragma instead.
955
956     * Class::MOP::Class
957       - fixed a number of minor issues which came up in the
958         error/edge-case tests
959
960     * Class::MOP::Attribute
961       - fixed a number of minor issues which came up in the
962         error/edge-case tests
963
964     * examples/
965       - fixing the AttributesWithHistory example, it was broken.
966
967 0.06 Thurs Feb. 9, 2006
968     * metaclass
969       - adding new metaclass pragma to make setting up the
970         metaclass a little more straightforward
971
972     * Class::MOP
973       - clean up bootstrapping to include more complete
974         attribute definitions for Class::MOP::Class and
975         Class::MOP::Attribute (accessors, readers, writers,
976         etc.) ... it is redundant, but is useful meta-info
977         to have around.
978
979     * Class::MOP::Class
980       - fixing minor meta-circularity issue with &meta, it
981         is now more useful for subclasses
982       - added &get_attribute_map as an accessor for the
983         hash of attribute meta objects
984       - &compute_all_applicable_attributes now just returns
985         the attribute meta-object, rather than the HASH ref
986         since all the same info can be gotten from the
987         attribute meta-object itself
988           - updated docs & tests to reflect
989       - added &clone_instance method which does a deep clone
990         of the instance structure created by &construct_instance
991           - added docs & tests for this
992           - added Clone as a dependency
993       - added &new_object and &clone_object convience methods to
994         return blessed new or cloned instances
995           - they handle Class::MOP::Class singletons correctly too
996           - added docs & tests for this
997       - cleaned up the &constuct_class_instance so that it behaves
998         more like &construct_instance (and managed the singletons too)
999       - added the &check_metaclass_compatibility method to make sure
1000         that metaclasses are upward and downward compatible.
1001           - added tests and docs for this
1002
1003     * examples/
1004       - adjusting code to use the &Class::MOP::Class::meta
1005         fix detailed above
1006       - adjusting code to use the metaclass pragma
1007
1008 0.05 Sat Feb. 4, 2006
1009     * Class::MOP::Class
1010       - added the &attribute_metaclass and &method_metaclass
1011         attributes which contain a metaclass name to use for
1012         attributes/methods respectively
1013
1014     * Class::MOP
1015       - bootstrap additional attributes for Class::MOP::Class
1016
1017     * examples/
1018       - adjusted the example code and tests to use the new
1019         &attribute_metaclass feature of Class::MOP::Class
1020       - added new example:
1021         - LazyClass
1022
1023 0.04 Fri Feb. 3, 2006
1024     * Class::MOP::Class
1025       - some documentation suggestions from #perl6
1026
1027     * Class::MOP::Attribute
1028       - improved error messages
1029
1030     * examples/
1031       - added new examples:
1032         - AttributesWithHistory
1033         - ClassEncapsultedAttributes
1034
1035 0.03 Fri Feb. 3, 2006
1036     - converted to Module::Build instead of EU::MM
1037
1038     * Class::MOP::Attribute
1039       - refactored method generation code
1040       - attributes are now associated with class directly
1041
1042     * examples/
1043       - refactored the InsideOut example to take advantage
1044         of the Class::MOP::Attribute refactoring
1045       - changed example files to .pod files and hide thier
1046         package names from PAUSE (I don't want to own these
1047         namespaces really, they are just examples)
1048
1049 0.02 Thurs Feb. 2, 2006
1050     - moving examples from t/lib/* to examples/*
1051         - adding POD documentation to the examples
1052
1053 0.01 Thurs Feb. 2, 2006
1054     - Initial release