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