ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/JSON-XS/Changes
(Generate patch)

Comparing JSON-XS/Changes (file contents):
Revision 1.113 by root, Tue May 27 05:31:39 2008 UTC vs.
Revision 1.177 by root, Thu Aug 17 01:42:19 2017 UTC

1Revision history for Perl extension JSON::XS 1Revision history for Perl extension JSON::XS
2 2
3work around perl bug 3TODO: maybe detetc and croak on more invalid inputs (e.g. +-inf/nan)
4TODO: maybe avoid the reblessing and better support readonly objects.
5TODO: http://stevehanov.ca/blog/index.php?id=104 compression
6TODO: how to cope with tagged values and standard json decoders
7TODO: investigate magic (Eric Brine)
8TODO: rfc7464
9TODO: Victor Efimov
10TODO: move json_xs to types::serialiser
11TODO: 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
13TODO: fix overruns in json_sv_grow
14TODO: 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
253.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
313.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
433.01 Tue Oct 29 16:55:15 CET 2013
44 - backport to perls < 5.18 (reported by Paul Howarth).
45
463.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
572.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
662.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
722.32 Thu Aug 11 19:06:38 CEST 2011
73 - fix a bug in the initial whitespace accumulation.
74
752.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
832.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
902.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
952.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
1042.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
1082.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.
113
1142.25 Sat Aug 8 12:04:41 CEST 2009
115 - the perl debugger completely breaks lvalue subs - try to work
116 around the issue.
117 - ignore RMAGICAL hashes w.r.t. CANONICAL.
118 - try to work around a possible char signedness issue on aix.
119 - require common sense.
120
1212.24 Sat May 30 08:25:45 CEST 2009
122 - the incremental parser did not update its parse offset
123 pointer correctly when parsing utf8-strings (nicely
124 debugged by Martin Evans).
125 - appending a non-utf8-string to the incremental parser
126 in utf8 mode failed to upgrade the string.
127 - wording of parse error messages has been improved.
128
1292.232 Sun Feb 22 11:12:25 CET 2009
130 - use an exponential algorithm to extend strings, to
131 help platforms with bad or abysmal==windows memory
132 allocater performance, at the expense of some memory
133 wastage (use shrink to recover this extra memory).
134 (nicely analysed by Dmitry Karasik).
135
1362.2311 Thu Feb 19 02:12:54 CET 2009
137 - add a section "JSON and ECMAscript" to explain some
138 incompatibilities between the two (problem was noted by
139 various people).
140 - add t/20_faihu.t.
141
1422.231 Thu Nov 20 04:59:08 CET 2008
143 - work around 5.10.0 magic bugs where manipulating magic values
144 (such as $1) would permanently damage them as perl would
145 ignore the magicalness, by making a full copy of the string,
146 reported by Dmitry Karasik.
147 - work around spurious warnings under older perl 5.8's.
148
1492.23 Mon Sep 29 05:08:29 CEST 2008
150 - fix a compilation problem when perl is not using char * as, well,
151 char *.
152 - use PL_hexdigit in favour of rolling our own.
153
1542.2222 Sun Jul 20 18:49:00 CEST 2008
155 - same game again, broken 5.10 finds yet another assertion
156 failure, and the workaround causes additional runtime warnings.
157 Work around the next assertion AND the warning. 5.10 seriously
158 needs to adjust it's attitude against working code.
159
1602.222 Sat Jul 19 06:15:34 CEST 2008
161 - you work around one -DDEBUGGING assertion bug in perl 5.10
162 just to hit the next one. work around this one, too.
163
1642.22 Tue Jul 15 13:26:51 CEST 2008
165 - allow higher nesting levels in incremental parser.
166 - error out earlier in some cases in the incremental parser
167 (as suggested by Yuval Kogman).
168 - improve incr-parser test (Yuval Kogman).
169
1702.21 Tue Jun 3 08:43:23 CEST 2008
171 - (hopefully) work around a perl 5.10 bug with -DDEBUGGING.
4 - remove the experimental status of the incremental parser interface. 172 - remove the experimental status of the incremental parser interface.
5 - move =encoding around again, to avoid bugs with search.cpan.org. 173 - move =encoding around again, to avoid bugs with search.cpan.org.
6 when can we finally have utf-8 in pod??? 174 when can we finally have utf-8 in pod???
7 - add ->incr_reset method. 175 - add ->incr_reset method.
8 176
92.2 Wed Apr 16 20:37:25 CEST 2008 1772.2 Wed Apr 16 20:37:25 CEST 2008
10 - lifted the log2 rounding restriction of max_depth and max_size. 178 - lifted the log2 rounding restriction of max_depth and max_size.
11 - make booleans mutable by creating a copy instead of handing out 179 - make booleans mutable by creating a copy instead of handing out
12 the same scalar (reported by pasha sadri). 180 the same scalar (reported by pasha sadri).
13 - added support for incremental json parsing (still EXPERIMENTAL). 181 - added support for incremental json parsing (still EXPERIMENTAL).
14 - 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
15 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.
16 - implement allow_unknown/get_allow_unknown methods. 184 - implement allow_unknown/get_allow_unknown methods.
17 - fixed documentation of max_depth w.r.t. higher and equal. 185 - fixed documentation of max_depth w.r.t. higher and equal.
18 - 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines