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