1 | Revision history for Perl extension JSON::XS |
1 | Revision history for Perl extension JSON::XS |
2 | |
2 | |
3 | TODO: object filtering (decode_filtered?) |
3 | - implement our own atof function - perl's can be orders of |
4 | 1.4 |
4 | magnitudes slower than even the system one. on the positive |
|
|
5 | side, ours seems to be more exact in general than perl's. |
|
|
6 | (testcase provided by Tim Meadowcroft). |
|
|
7 | - update jpsykes csrf article url. |
|
|
8 | - updated benchmark section - JSON::PP became much faster! |
|
|
9 | |
|
|
10 | 2.27 Thu Jan 7 07:35:08 CET 2010 |
|
|
11 | - support relaxed option inside the incremental parser |
|
|
12 | (testcase provided by IKEGAMI via Makamaka). |
|
|
13 | |
|
|
14 | 2.26 Sat Oct 10 03:26:19 CEST 2009 |
|
|
15 | - big integers could become truncated (based on patch |
|
|
16 | by Strobl Anton). |
|
|
17 | - output format change: indent now adds a final newline, which is |
|
|
18 | more expected and more true to the documentation. |
|
|
19 | |
|
|
20 | 2.25 Sat Aug 8 12:04:41 CEST 2009 |
|
|
21 | - the perl debugger completely breaks lvalue subs - try to work |
|
|
22 | around the issue. |
|
|
23 | - ignore RMAGICAL hashes w.r.t. CANONICAL. |
|
|
24 | - try to work around a possible char signedness issue on aix. |
|
|
25 | - require common sense. |
|
|
26 | |
|
|
27 | 2.24 Sat May 30 08:25:45 CEST 2009 |
|
|
28 | - the incremental parser did not update its parse offset |
|
|
29 | pointer correctly when parsing utf8-strings (nicely |
|
|
30 | debugged by Martin Evans). |
|
|
31 | - appending a non-utf8-string to the incremental parser |
|
|
32 | in utf8 mode failed to upgrade the string. |
|
|
33 | - wording of parse error messages has been improved. |
|
|
34 | |
|
|
35 | 2.232 Sun Feb 22 11:12:25 CET 2009 |
|
|
36 | - use an exponential algorithm to extend strings, to |
|
|
37 | help platforms with bad or abysmal==windows memory |
|
|
38 | allocater performance, at the expense of some memory |
|
|
39 | wastage (use shrink to recover this extra memory). |
|
|
40 | (nicely analysed by Dmitry Karasik). |
|
|
41 | |
|
|
42 | 2.2311 Thu Feb 19 02:12:54 CET 2009 |
|
|
43 | - add a section "JSON and ECMAscript" to explain some |
|
|
44 | incompatibilities between the two (problem was noted by |
|
|
45 | various people). |
|
|
46 | - add t/20_faihu.t. |
|
|
47 | |
|
|
48 | 2.231 Thu Nov 20 04:59:08 CET 2008 |
|
|
49 | - work around 5.10.0 magic bugs where manipulating magic values |
|
|
50 | (such as $1) would permanently damage them as perl would |
|
|
51 | ignore the magicalness, by making a full copy of the string, |
|
|
52 | reported by Dmitry Karasik. |
|
|
53 | - work around spurious warnings under older perl 5.8's. |
|
|
54 | |
|
|
55 | 2.23 Mon Sep 29 05:08:29 CEST 2008 |
|
|
56 | - fix a compilation problem when perl is not using char * as, well, |
|
|
57 | char *. |
|
|
58 | - use PL_hexdigit in favour of rolling our own. |
|
|
59 | |
|
|
60 | 2.2222 Sun Jul 20 18:49:00 CEST 2008 |
|
|
61 | - same game again, broken 5.10 finds yet another assertion |
|
|
62 | failure, and the workaround causes additional runtime warnings. |
|
|
63 | Work around the next assertion AND the warning. 5.10 seriously |
|
|
64 | needs to adjust it's attitude against working code. |
|
|
65 | |
|
|
66 | 2.222 Sat Jul 19 06:15:34 CEST 2008 |
|
|
67 | - you work around one -DDEBUGGING assertion bug in perl 5.10 |
|
|
68 | just to hit the next one. work around this one, too. |
|
|
69 | |
|
|
70 | 2.22 Tue Jul 15 13:26:51 CEST 2008 |
|
|
71 | - allow higher nesting levels in incremental parser. |
|
|
72 | - error out earlier in some cases in the incremental parser |
|
|
73 | (as suggested by Yuval Kogman). |
|
|
74 | - improve incr-parser test (Yuval Kogman). |
|
|
75 | |
|
|
76 | 2.21 Tue Jun 3 08:43:23 CEST 2008 |
|
|
77 | - (hopefully) work around a perl 5.10 bug with -DDEBUGGING. |
|
|
78 | - remove the experimental status of the incremental parser interface. |
|
|
79 | - move =encoding around again, to avoid bugs with search.cpan.org. |
|
|
80 | when can we finally have utf-8 in pod??? |
|
|
81 | - add ->incr_reset method. |
|
|
82 | |
|
|
83 | 2.2 Wed Apr 16 20:37:25 CEST 2008 |
|
|
84 | - lifted the log2 rounding restriction of max_depth and max_size. |
|
|
85 | - make booleans mutable by creating a copy instead of handing out |
|
|
86 | the same scalar (reported by pasha sadri). |
|
|
87 | - added support for incremental json parsing (still EXPERIMENTAL). |
|
|
88 | - implemented and added a json_xs command line utility that can convert |
|
|
89 | from/to a number of serialisation formats - tell me if you need more. |
|
|
90 | - implement allow_unknown/get_allow_unknown methods. |
|
|
91 | - fixed documentation of max_depth w.r.t. higher and equal. |
|
|
92 | - moved down =encoding directive a bit, too much breaks if it's the first |
|
|
93 | pod directive :/. |
|
|
94 | - removed documentation section on other modules, it became somewhat |
|
|
95 | outdated and is nowadays mostly of historical interest. |
|
|
96 | |
|
|
97 | 2.1 Wed Mar 19 23:23:18 CET 2008 |
|
|
98 | - update documentation here and there: add a large section |
|
|
99 | about utf8/latin1/ascii flags, add a security consideration |
|
|
100 | and extend and clarify the JSON and YAML section. |
|
|
101 | - medium speed enhancements when encoding/decoding non-ascii chars. |
|
|
102 | - minor speedup in number encoding case. |
|
|
103 | - extend and clarify the section on incompatibilities |
|
|
104 | between YAML and JSON. |
|
|
105 | - switch to static inline from just inline when using gcc. |
|
|
106 | - add =encoding utf-8 to the manpage, now that perl 5.10 supports it. |
|
|
107 | - fix some issues with UV to JSON conversion of unknown impact. |
|
|
108 | - published the yahoo locals search result used in benchmarks as the |
|
|
109 | original url changes so comparison is impossible. |
|
|
110 | |
|
|
111 | 2.01 Wed Dec 5 11:40:28 CET 2007 |
|
|
112 | - INCOMPATIBLE API CHANGE: to_json and from_json have been |
|
|
113 | renamed to encode_json/decode_json for JSON.pm compatibility. |
|
|
114 | The old functions croak and might be replaced by JSON.pm |
|
|
115 | comaptible versions in some later release. |
|
|
116 | |
|
|
117 | 2.0 Tue Dec 4 11:30:46 CET 2007 |
|
|
118 | - this is supposed to be the first version of JSON::XS |
|
|
119 | compatible with version 2.0+ of the JSON module. |
|
|
120 | Using the JSON module as frontend to JSON::XS should be |
|
|
121 | as fast as using JSON::XS directly, so consider using it |
|
|
122 | instead. |
|
|
123 | - added get_* methods for all "simple" options. |
|
|
124 | - make JSON::XS subclassable. |
|
|
125 | |
|
|
126 | 1.53 Tue Nov 13 23:58:33 CET 2007 |
|
|
127 | - minor doc clarifications. |
|
|
128 | - fixed many doc typos (patch by Thomas L. Shinnick). |
|
|
129 | |
|
|
130 | 1.52 Mon Oct 15 03:22:06 CEST 2007 |
|
|
131 | - remove =encoding pod directive again, it confuses too many pod |
|
|
132 | parsers :/. |
|
|
133 | |
|
|
134 | 1.51 Sat Oct 13 03:55:56 CEST 2007 |
|
|
135 | - encode empty arrays/hashes in a compact way when pretty is enabled. |
|
|
136 | - apparently JSON::XS was used to find some bugs in the |
|
|
137 | JSON_checker testsuite, so add (the corrected) JSON_checker tests to |
|
|
138 | the testsuite. |
|
|
139 | - quite a bit of doc updates/extension. |
|
|
140 | - require 5.8.2, as this seems to be the first unicode-stable version. |
|
|
141 | |
|
|
142 | 1.5 Tue Aug 28 04:05:38 CEST 2007 |
|
|
143 | - add support for tied hashes, based on ideas and testcase by |
|
|
144 | Marcus Holland-Moritz. |
|
|
145 | - implemented relaxed parsing mode where some extensions are being |
|
|
146 | accepted. generation is still JSON-only. |
|
|
147 | |
|
|
148 | 1.44 Wed Aug 22 01:02:44 CEST 2007 |
|
|
149 | - very experimental process-emulation support, slowing everything down. |
|
|
150 | the horribly broken perl threads are still not supported - YMMV. |
|
|
151 | |
|
|
152 | 1.43 Thu Jul 26 13:26:37 CEST 2007 |
|
|
153 | - convert big json numbers exclusively consisting of digits to NV |
|
|
154 | only when there is no loss of precision, otherwise to string. |
|
|
155 | |
|
|
156 | 1.42 Tue Jul 24 00:51:18 CEST 2007 |
|
|
157 | - fix a crash caused by not handling missing array elements |
|
|
158 | (report and testcase by Jay Kuri). |
|
|
159 | |
|
|
160 | 1.41 Tue Jul 10 18:21:44 CEST 2007 |
|
|
161 | - fix compilation with NDEBUG (assert side-effect), |
|
|
162 | affects convert_blessed only. |
|
|
163 | - fix a bug in decode filters calling ENTER; SAVETMPS; |
|
|
164 | one time too often. |
|
|
165 | - catch a typical error in TO_JSON methods. |
|
|
166 | - antique-ised XS.xs again to work with outdated |
|
|
167 | C compilers (windows...). |
|
|
168 | |
|
|
169 | 1.4 Mon Jul 2 10:06:30 CEST 2007 |
5 | - add convert_blessed setting. |
170 | - add convert_blessed setting. |
6 | - encode did not catch all blessed objects, encoding their |
171 | - encode did not catch all blessed objects, encoding their |
7 | contents in most cases. This has been fixed by introducing |
172 | contents in most cases. This has been fixed by introducing |
8 | the allow_blessed setting. |
173 | the allow_blessed setting. |
9 | - added filter_json_object and filter_json_single_key_object |
174 | - added filter_json_object and filter_json_single_key_object |
10 | settings that specify a callback to be called when |
175 | settings that specify a callback to be called when |
11 | json objects are encountered. |
176 | all/specific json objects are encountered. |
12 | - assume that most object keys are simple ascii words and |
177 | - assume that most object keys are simple ascii words and |
13 | optimise this case, penalising the general case. This can |
178 | optimise this case, penalising the general case. This can |
14 | speed up decoding by 30% in typical cases and gives |
179 | speed up decoding by 30% in typical cases and gives |
15 | a smaller and faster perl hash. |
180 | a smaller and faster perl hash. |
16 | - implemented simpleminded, optional resource size checking |
181 | - implemented simpleminded, optional resource size checking |
… | |
… | |
157 | case the called functions do... stuff. |
322 | case the called functions do... stuff. |
158 | - croak when encoding to ascii and an out-of-range |
323 | - croak when encoding to ascii and an out-of-range |
159 | (non-unicode) codepoint is encountered. |
324 | (non-unicode) codepoint is encountered. |
160 | |
325 | |
161 | 0.2 Fri Mar 23 00:23:34 CET 2007 |
326 | 0.2 Fri Mar 23 00:23:34 CET 2007 |
162 | - the "could not sleep without debuggign release". |
327 | - the "could not sleep without debugging release". |
163 | it should basically work now, with many bugs as |
328 | it should basically work now, with many bugs as |
164 | no production tests have been run yet. |
329 | no production tests have been run yet. |
165 | - added more testcases. |
330 | - added more testcases. |
166 | - the expected shitload of bugfixes. |
331 | - the expected shitload of bugfixes. |
167 | - handle utf8 flag correctly in decode. |
332 | - handle utf8 flag correctly in decode. |