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