1 | Revision history for Perl extension JSON::XS |
1 | Revision history for Perl extension JSON::XS |
2 | |
2 | |
3 | TODO: configurable booleans |
3 | TODO: maybe detetc and croak on more invalid inputs (e.g. +-inf/nan) |
|
|
4 | TODO: maybe avoid the reblessing and better support readonly objects. |
|
|
5 | TODO: http://stevehanov.ca/blog/index.php?id=104 compression |
|
|
6 | TODO: how to cope with tagged values and standard json decoders |
|
|
7 | TODO: investigate magic (Eric Brine) |
|
|
8 | TODO: rfc7464 |
|
|
9 | TODO: Victor Efimov |
|
|
10 | TODO: move json_xs to types::serialiser |
|
|
11 | TODO: Matthew Horsfall slow performance with libumem due to many need reallocs: perl -MJSON::XS -e 'my $x = join q{}, map { chr rand 256 } (0 ..1e6); $j = encode_json([ $x ]);' |
|
|
12 | |
|
|
13 | TODO: fix overruns in json_sv_grow |
|
|
14 | TODO: change threading doc wording |
|
|
15 | - change exponential realloc algorithm on encoding and string decoding to be |
|
|
16 | really exponential (this helps slow/debugging allocators such as libumem) |
|
|
17 | (reported by Matthew Horsfall). |
|
|
18 | - string encoding would needlessly overallocate output space |
|
|
19 | (testcase by Matthew Horsfall). |
|
|
20 | - be very paranoid about extending buffer lengths and croak if buffers get too large, |
|
|
21 | which might (or might not) improve security. |
|
|
22 | - add cbor-packed type to json_xs. |
|
|
23 | - switch from YAML to YAML::XS in json_xs, as YAML is way too buggy and outdated. |
|
|
24 | |
|
|
25 | 3.03 Wed Nov 16 20:20:59 CET 2016 |
|
|
26 | - fix a bug introduced by a perl bug workaround that would cause |
|
|
27 | incremental parsing to fail with a sv_chop panic. |
|
|
28 | - json_xs: toformat failure error message fixed. |
|
|
29 | - json_xs: allow cyclic data structures in CBOR. |
|
|
30 | |
|
|
31 | 3.02 Fri Feb 26 22:45:20 CET 2016 |
|
|
32 | - allow_nonref now affects booleans (\1, $Types::Serialiser::Boolean) |
|
|
33 | as well (reported by Alex Efros). |
|
|
34 | - allow literal tabs in strings in relaxed mode (patch by |
|
|
35 | lubo.rintel@gooddata.com). |
|
|
36 | - support "cbor" format in json_xs tool. |
|
|
37 | - support (and fix) calling encode and decode in list context |
|
|
38 | (reported by Вадим Власов). |
|
|
39 | - work around a bug in older perls crashing when presented |
|
|
40 | with shared hash keys (Reini Urban). |
|
|
41 | - use stability canary. |
|
|
42 | |
|
|
43 | 3.01 Tue Oct 29 16:55:15 CET 2013 |
|
|
44 | - backport to perls < 5.18 (reported by Paul Howarth). |
|
|
45 | |
|
|
46 | 3.0 Tue Oct 29 01:35:37 CET 2013 |
|
|
47 | - implemented an object tagging extension (using the |
|
|
48 | Types::Serialiser serialisation protocol). |
|
|
49 | - reworked the documentation regarding object serialisation, |
|
|
50 | add a new OBJECT SERIALISATION section that explains th |
|
|
51 | whole process. |
|
|
52 | - new setting: allow_tags. |
|
|
53 | - switch to Types::Serialiser booleans. |
|
|
54 | - remove to_json/from_json. |
|
|
55 | - other minor improvements to the documentation. |
|
|
56 | |
|
|
57 | 2.34 Thu May 23 11:30:34 CEST 2013 |
|
|
58 | - work around bugs in perl 5.18 breaking more than 100 |
|
|
59 | widely used modules, without a fix in sight because |
|
|
60 | p5pers don't care about CPAN anymore. |
|
|
61 | - when canonicalising, only allocate up to 64 hash key |
|
|
62 | pointers on the stack. for larger hashes, use the heap, |
|
|
63 | to avoid using too much stackspace. |
|
|
64 | - discuss the problem with setlocale (reported by a few victims). |
|
|
65 | |
|
|
66 | 2.33 Wed Aug 1 21:03:52 CEST 2012 |
|
|
67 | - internal encode/decode XS wrappers did not expect stack |
|
|
68 | moves caused by callbacks (analyzed and testcase by Jesse Luehrs). |
|
|
69 | - add bencode as to/from option in bin/json_xs. |
|
|
70 | - add -e option to json_xs, and none and string in/out formats. |
|
|
71 | |
|
|
72 | 2.32 Thu Aug 11 19:06:38 CEST 2011 |
|
|
73 | - fix a bug in the initial whitespace accumulation. |
|
|
74 | |
|
|
75 | 2.31 Wed Jul 27 17:53:05 CEST 2011 |
|
|
76 | - don't accumulate initial whitespace in the incremental buffer |
|
|
77 | (this can be useful to allow whitespace-keepalive on a tcp |
|
|
78 | connection without triggering the max_size limit). |
|
|
79 | - properly croak on some invalid inputs that are not strings |
|
|
80 | (e.g. undef) when trying to decode a json text (reported |
|
|
81 | and analyzed by Goro Fuji). |
|
|
82 | |
|
|
83 | 2.3 Wed Aug 18 01:26:47 CEST 2010 |
|
|
84 | - make sure decoder doesn't change the decoding in the incremental |
|
|
85 | parser (testcase provided by Hendrik Schumacher). |
|
|
86 | - applied patch by DaTa for Data::Dumper support in json_xs. |
|
|
87 | - added -t dump support to json_xs, using Data::Dump. |
|
|
88 | - added -f eval support to json_xs. |
|
|
89 | |
|
|
90 | 2.29 Wed Mar 17 02:39:12 CET 2010 |
|
|
91 | - fix a memory leak when callbacks set using filter_json_object |
|
|
92 | or filter_json_single_key_object were called (great testcase |
|
|
93 | by Eric Wilhelm). |
|
|
94 | |
|
|
95 | 2.28 Thu Mar 11 20:30:46 CET 2010 |
|
|
96 | - implement our own atof function - perl's can be orders of |
|
|
97 | magnitudes slower than even the system one. on the positive |
|
|
98 | side, ours seems to be more exact in general than perl's. |
|
|
99 | (testcase provided by Tim Meadowcroft). |
|
|
100 | - clarify floating point conversion issues a bit. |
|
|
101 | - update jpsykes csrf article url. |
|
|
102 | - updated benchmark section - JSON::PP became much faster! |
|
|
103 | |
|
|
104 | 2.27 Thu Jan 7 07:35:08 CET 2010 |
|
|
105 | - support relaxed option inside the incremental parser |
|
|
106 | (testcase provided by IKEGAMI via Makamaka). |
|
|
107 | |
|
|
108 | 2.26 Sat Oct 10 03:26:19 CEST 2009 |
|
|
109 | - big integers could become truncated (based on patch |
|
|
110 | by Strobl Anton). |
|
|
111 | - output format change: indent now adds a final newline, which is |
|
|
112 | more expected and more true to the documentation. |
4 | |
113 | |
5 | 2.25 Sat Aug 8 12:04:41 CEST 2009 |
114 | 2.25 Sat Aug 8 12:04:41 CEST 2009 |
6 | - the perl debugger completely breaks lvalue subs - try to work |
115 | - the perl debugger completely breaks lvalue subs - try to work |
7 | around the issue. |
116 | around the issue. |
8 | - ignore RMAGICAL hashes w.r.t. CANONICAL. |
117 | - ignore RMAGICAL hashes w.r.t. CANONICAL. |
… | |
… | |
67 | |
176 | |
68 | 2.2 Wed Apr 16 20:37:25 CEST 2008 |
177 | 2.2 Wed Apr 16 20:37:25 CEST 2008 |
69 | - lifted the log2 rounding restriction of max_depth and max_size. |
178 | - lifted the log2 rounding restriction of max_depth and max_size. |
70 | - make booleans mutable by creating a copy instead of handing out |
179 | - make booleans mutable by creating a copy instead of handing out |
71 | the same scalar (reported by pasha sadri). |
180 | the same scalar (reported by pasha sadri). |
72 | - added support for incremental json parsing (still EXPERIMENTAL). |
181 | - added support for incremental json parsing (still EXPERIMENTAL). |
73 | - implemented and added a json_xs command line utility that can convert |
182 | - implemented and added a json_xs command line utility that can convert |
74 | from/to a number of serialisation formats - tell me if you need more. |
183 | from/to a number of serialisation formats - tell me if you need more. |
75 | - implement allow_unknown/get_allow_unknown methods. |
184 | - implement allow_unknown/get_allow_unknown methods. |
76 | - fixed documentation of max_depth w.r.t. higher and equal. |
185 | - fixed documentation of max_depth w.r.t. higher and equal. |
77 | - moved down =encoding directive a bit, too much breaks if it's the first |
186 | - moved down =encoding directive a bit, too much breaks if it's the first |