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

Comparing JSON-XS/Changes (file contents):
Revision 1.49 by root, Mon Jun 11 02:58:10 2007 UTC vs.
Revision 1.125 by root, Sun Feb 22 06:55:28 2009 UTC

1Revision history for Perl extension JSON::XS 1Revision history for Perl extension JSON::XS
2 2
3TODO: maybe use some overload magic to decode true and false into something 3 - use an exponential algorithm to extend strings, to
4 not 0 or 1 in perl. or use attached magic? 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).
5 8
6investigate the possibility of a yaml-compatible output format. 92.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.
7 14
152.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
222.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
272.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
332.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
372.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
432.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
502.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
642.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
782.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
842.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
931.53 Tue Nov 13 23:58:33 CET 2007
94 - minor doc clarifications.
95 - fixed many doc typos (patch by Thomas L. Shinnick).
96
971.52 Mon Oct 15 03:22:06 CEST 2007
98 - remove =encoding pod directive again, it confuses too many pod
99 parsers :/.
100
1011.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
1091.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
1151.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
1191.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
1231.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
1271.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
1361.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.
158
1591.3 Sun Jun 24 01:55:02 CEST 2007
160 - make JSON::XS::true and false special overloaded objects
161 and return those instead of 1 and 0 for those json atoms
162 (JSON::PP compatibility is NOT achieved yet).
163 - add JSON::XS::is_bool predicate to test for those special
164 values.
165 - add a reference to
166 http://jpsykes.com/47/practical-csrf-and-json-security.
167 - removed require 5.8.8 again, it is just not very expert-friendly.
168 Also try to be more compatible with slightly older versions,
169 which are not recommended (because they are buggy).
170
1711.24 Mon Jun 11 05:40:49 CEST 2007
8 - added informative section on JSON-as-YAML. 172 - added informative section on JSON-as-YAML.
173 - get rid of some c99-isms again.
174 - localise dec->cur in decode_str, speeding up
175 string decoding considerably (>15% on my amd64 + gcc).
176 - increased SHORT_STRING_LEN to 16kb: stack space is
177 usually plenty, and this actually saves memory
178 when !shrinking as short strings will fit perfectly.
9 179
101.23 Wed Jun 6 20:13:06 CEST 2007 1801.23 Wed Jun 6 20:13:06 CEST 2007
11 - greatly improved small integer encoding and decoding speed. 181 - greatly improved small integer encoding and decoding speed.
12 - implement a number of µ-optimisations. 182 - implement a number of µ-optimisations.
13 - updated benchmarks. 183 - updated benchmarks.
119 case the called functions do... stuff. 289 case the called functions do... stuff.
120 - croak when encoding to ascii and an out-of-range 290 - croak when encoding to ascii and an out-of-range
121 (non-unicode) codepoint is encountered. 291 (non-unicode) codepoint is encountered.
122 292
1230.2 Fri Mar 23 00:23:34 CET 2007 2930.2 Fri Mar 23 00:23:34 CET 2007
124 - the "could not sleep without debuggign release". 294 - the "could not sleep without debugging release".
125 it should basically work now, with many bugs as 295 it should basically work now, with many bugs as
126 no production tests have been run yet. 296 no production tests have been run yet.
127 - added more testcases. 297 - added more testcases.
128 - the expected shitload of bugfixes. 298 - the expected shitload of bugfixes.
129 - handle utf8 flag correctly in decode. 299 - handle utf8 flag correctly in decode.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines