| 1 |
|
| 2 |
* Version 4.7.3 (Nov 27, 2022) |
| 3 |
|
| 4 |
- Fix a regression introduced in 4.7.1 where (json->RECORD) was not working |
| 5 |
with nested fields. |
| 6 |
|
| 7 |
|
| 8 |
* Version 4.7.2 (Jun 26, 2022) |
| 9 |
|
| 10 |
- Fix breaking change introduced in 4.7.1 and properly allow optional nested |
| 11 |
records in other records. |
| 12 |
(Closes #78, again) |
| 13 |
|
| 14 |
|
| 15 |
* Version 4.7.1 (Apr 19, 2022) |
| 16 |
|
| 17 |
- Allow optional nested records in other records. Not defined record fields |
| 18 |
will be set to *unspecified* as any other value. |
| 19 |
(Closes #78) |
| 20 |
|
| 21 |
|
| 22 |
* Version 4.7.0 (Jan 2, 2022) |
| 23 |
|
| 24 |
- Allow returning ordered JSON objects key/value pairs by using the keyword |
| 25 |
argument #:ordered. |
| 26 |
(Closes #77) |
| 27 |
|
| 28 |
|
| 29 |
* Version 4.6.0 (Dec 28, 2021) |
| 30 |
|
| 31 |
- Add support for Concatenated JSON. |
| 32 |
(Closes #76) |
| 33 |
|
| 34 |
- Add support for JSON Text Sequences. |
| 35 |
(thanks to Ivan Sokolov) |
| 36 |
|
| 37 |
|
| 38 |
* Version 4.5.2 (Feb 3, 2021) |
| 39 |
|
| 40 |
- Add missing modules to record.scm. |
| 41 |
|
| 42 |
|
| 43 |
* Version 4.5.1 (Jan 11, 2020) |
| 44 |
|
| 45 |
- Allow false values in JSON mappings. |
| 46 |
(Fixes #70) |
| 47 |
|
| 48 |
|
| 49 |
* Version 4.5.0 (Jan 3, 2020) |
| 50 |
|
| 51 |
- Introduce (define-json-type) a much simpler way to define JSON objects and |
| 52 |
record mappings. It makes use of the existing (define-json-mapping). |
| 53 |
|
| 54 |
|
| 55 |
* Version 4.4.1 (Nov 29, 2020) |
| 56 |
|
| 57 |
- Fixed a few parsing issues from JSON Parsing Test Suite |
| 58 |
(https://github.com/nst/JSONTestSuite). |
| 59 |
(Fixes #67) |
| 60 |
|
| 61 |
|
| 62 |
* Version 4.4.0 (Oct 22, 2020) |
| 63 |
|
| 64 |
- Record-JSON mapping now can define another optional procedure record->scm |
| 65 |
to convert a record to an alist. |
| 66 |
(Fixes #63) |
| 67 |
|
| 68 |
- Record-JSON mapping now allows using *unspecified* values to indicate a |
| 69 |
field record should not be serialized. |
| 70 |
(Fixes #61) |
| 71 |
|
| 72 |
- Improve pretty printing. |
| 73 |
(thanks to Jonas Schürmann) |
| 74 |
|
| 75 |
|
| 76 |
* Version 4.3.2 (Jul 23, 2020) |
| 77 |
|
| 78 |
- Fix unicode for values from E000 and upwards. |
| 79 |
(thanks again to pkill9 and RhodiumToad from #guile) |
| 80 |
|
| 81 |
|
| 82 |
* Version 4.3.1 (Jul 22, 2020) |
| 83 |
|
| 84 |
- Fix unicode codepoint with surrogate pairs. |
| 85 |
(thanks to pkill9 and RhodiumToad from #guile) |
| 86 |
|
| 87 |
|
| 88 |
* Version 4.3.0 (Jul 3, 2020) |
| 89 |
|
| 90 |
- Make RECORD->JSON optional in (define-json-mapping). |
| 91 |
|
| 92 |
|
| 93 |
* Version 4.2.0 (Jun 30, 2020) |
| 94 |
|
| 95 |
- Introduce (define-json-mapping) which allows converting a JSON object into |
| 96 |
a record type and vice versa. The initial code for this feature was copied |
| 97 |
from the GNU Guix project. |
| 98 |
|
| 99 |
|
| 100 |
* Version 4.1.0 (Jun 6, 2020) |
| 101 |
|
| 102 |
- Speed up number parsing by a 2x factor by avoiding using textual ports. |
| 103 |
|
| 104 |
- Simplify unicode string builder. |
| 105 |
|
| 106 |
- Improve string builder performance by not going back and forth with lists, |
| 107 |
strings and characters. |
| 108 |
|
| 109 |
|
| 110 |
* Version 4.0.1 (May 17, 2020) |
| 111 |
|
| 112 |
- (scm->json-string) #:validate keyword argument should default to true as |
| 113 |
stated in the documentation. |
| 114 |
|
| 115 |
|
| 116 |
* Version 4.0.0 (May 16, 2020) |
| 117 |
|
| 118 |
Breaking changes: |
| 119 |
|
| 120 |
- (scm->json) and (scm->json-string) #:espace keyword argument has been |
| 121 |
renamed to #:solidus. |
| 122 |
|
| 123 |
- JSON null now defaults to the null symbol. This can be changed in all |
| 124 |
public functions with the #:null keyword argument. |
| 125 |
|
| 126 |
Bug fixes and improvements: |
| 127 |
|
| 128 |
- Fix parsing of invalid numbers (e.g. "-"). |
| 129 |
|
| 130 |
- Go back to using (cond) instead of (match) since (match) reduces |
| 131 |
performance. |
| 132 |
|
| 133 |
- The json-parser record type has been removed as the record only contained |
| 134 |
the port. Removing the need to access records also had a slight |
| 135 |
performance increase. |
| 136 |
|
| 137 |
- Use a plain list to read strings which brings significant speed |
| 138 |
improvements. |
| 139 |
|
| 140 |
- Replace `display` with `put-string` on JSON builder. |
| 141 |
|
| 142 |
- Don't use map to parse expected string, simply use (string-ref). |
| 143 |
(thanks to Linus Björnstam) |
| 144 |
|
| 145 |
- Build array list with (cons) and (reverse). Big performance increase. |
| 146 |
(suggested by Linus Björnstam) |
| 147 |
|
| 148 |
- Check (eof-object?) last instead of first. This avoids unnecessary checks |
| 149 |
which is the regular use-case. |
| 150 |
(suggested by Linus Björnstam) |
| 151 |
|
| 152 |
- Use string ports to parse numbers. |
| 153 |
(suggested by Linus Björnstam) |
| 154 |
|
| 155 |
- Don't need to use character-sets to detect whitespaces. JSON only defines |
| 156 |
four possible types of whitespaces: space, linefeed, carriage return and |
| 157 |
horizontal tab. |
| 158 |
(suggested by Linus Björnstam) |
| 159 |
|
| 160 |
|
| 161 |
* Version 3.5.0 (Apr 21, 2020) |
| 162 |
|
| 163 |
- Simplify parser by using `match`. Idea taken from Chickadee's JSON parser |
| 164 |
(https://dthompson.us/projects/chickadee.html). This also made it easier |
| 165 |
to clean up some functions. |
| 166 |
|
| 167 |
- Better handling of invalid numbers. |
| 168 |
|
| 169 |
- Improve handling of EOF. Most parsing functions were not taking care of |
| 170 |
it. |
| 171 |
|
| 172 |
- Fix error when parsing objects with commas and no following elements are |
| 173 |
found. |
| 174 |
|
| 175 |
|
| 176 |
* Version 3.4.0 (Apr 11, 2020) |
| 177 |
|
| 178 |
- Fix parsing 0 with an exponent. |
| 179 |
(Fixes #55) |
| 180 |
|
| 181 |
- Fix cross compilation. |
| 182 |
(thanks to Jan Nieuwenhuizen) |
| 183 |
|
| 184 |
|
| 185 |
* Version 3.3.0 (Oct 31, 2019) |
| 186 |
|
| 187 |
- When building a JSON document from a native value a json-invalid exception |
| 188 |
will be thrown with the offending value as an argument. |
| 189 |
|
| 190 |
- Add an additional key argument #:validate to (scm->json) and |
| 191 |
(scm->json-string) to avoid native value validation. This could improve |
| 192 |
performance with big native values that we are certain are correct. |
| 193 |
|
| 194 |
- Empty array slots are now considered invalid and a json-invalid exception |
| 195 |
will be thrown (e.g. "[1,2,,4,5]"). |
| 196 |
|
| 197 |
- Validate scheme objects before writing output. |
| 198 |
(Fixes #36) |
| 199 |
|
| 200 |
|
| 201 |
* Version 3.2.0 (Sep 9, 2019) |
| 202 |
|
| 203 |
- Fix writing empty objects to JSON (e.g. (scm->json-string '())). |
| 204 |
(Fixes #44 and #47) |
| 205 |
|
| 206 |
- Complex numbers, inf and nan are not allowed anymore as valid numbers when |
| 207 |
building JSON. |
| 208 |
(Fixes #32) |
| 209 |
|
| 210 |
|
| 211 |
* Version 3.1.0 (Dec 31, 2018) |
| 212 |
|
| 213 |
- scm->json and scm->json-string now support an additional key argument |
| 214 |
#:unicode. If #:unicode is set to true unicode characters will be escaped |
| 215 |
when needed, otherwise characters won't be escaped (which now becomes the |
| 216 |
default). |
| 217 |
|
| 218 |
|
| 219 |
* Version 3.0.0 (Dec 29, 2018) |
| 220 |
|
| 221 |
- This is another breaking change release. |
| 222 |
|
| 223 |
- JSON objects are now defined as alists (instead of hash tables) and JSON |
| 224 |
arrays are now defined as vectors (instead of lists). Both of these |
| 225 |
changes are mainly to use types that have read syntax. This will simplify |
| 226 |
things for the user when defining JSON objects which is probably the most |
| 227 |
common case. |
| 228 |
|
| 229 |
- Fixed and issue when parsing only JSON numbers. |
| 230 |
|
| 231 |
- Added unit tests. |
| 232 |
|
| 233 |
|
| 234 |
* Version 2.0.0 (Dec 12, 2018) |
| 235 |
|
| 236 |
- This is a breaking change release. It is not possible anymore to specify a |
| 237 |
JSON object using alists. Instead alist->hash-table needs to be explicitly |
| 238 |
used. This makes the bidirectional mapping between Guile hash-tables and |
| 239 |
JSON objects consistent. |
| 240 |
|
| 241 |
|
| 242 |
* Version 1.3.2 (Dec 2, 2018) |
| 243 |
|
| 244 |
- Don't use GUILE_SITE and GUILE_SITE_CCACHE, build them as before. Print a |
| 245 |
helper message at the end of configure output to help users to install in |
| 246 |
Guile system's directory. |
| 247 |
|
| 248 |
|
| 249 |
* Version 1.3.1 (Dec 1, 2018) |
| 250 |
|
| 251 |
- Fix guile.m4 to allow multiple candidates for guild, guile-config and |
| 252 |
guile-tools. |
| 253 |
|
| 254 |
- Use GUILE_SITE as the variable instead of GUILE_SITE_DIR. |
| 255 |
(Fixes #20) |
| 256 |
|
| 257 |
|
| 258 |
* Version 1.3.0 (Nov 28, 2018) |
| 259 |
|
| 260 |
- Properly use guile.m4 macros to install to the right paths. |
| 261 |
(thanks to Jason Douglas Earl) |
| 262 |
|
| 263 |
|
| 264 |
* Version 1.2.0 (Aug 22, 2018) |
| 265 |
|
| 266 |
- Switch to GPLv3. |
| 267 |
|
| 268 |
|
| 269 |
* Version 1.1.1 (Aug 14, 2018) |
| 270 |
|
| 271 |
- Don't output extra spaces except with pretty printing. |
| 272 |
|
| 273 |
|
| 274 |
* Version 1.1.0 (Jul 26, 2018) |
| 275 |
|
| 276 |
- Install .go files to $(libdir)/guile. |
| 277 |
(thanks to Ludovic Courtès) |
| 278 |
|
| 279 |
|
| 280 |
* Version 1.0.1 (May 24, 2018) |
| 281 |
|
| 282 |
- Fixes an issue while handling alists with #nil at the beginning. |
| 283 |
|
| 284 |
|
| 285 |
* Version 1.0.0 (May 23, 2018) |
| 286 |
|
| 287 |
- Support 4-byte unicode characters. |
| 288 |
(thanks to Christopher Lam) |
| 289 |
|
| 290 |
- Remove deprecated `json` macro. |
| 291 |
|
| 292 |
- Dual GPLv3 and LGPLv3 license. |
| 293 |
|
| 294 |
|
| 295 |
* Version 0.6.0 (Jan 16, 2017) |
| 296 |
|
| 297 |
- Deprecate json macro in favor of scheme data types. |
| 298 |
|
| 299 |
|
| 300 |
* Version 0.5.0 (Feb 21, 2015) |
| 301 |
|
| 302 |
- Allow converting simple alists to json |
| 303 |
e.g.: (scm->json-string '((a . 1) (b . 2)))) |
| 304 |
(thanks to Jan Nieuwenhuizen) |
| 305 |
|
| 306 |
|
| 307 |
* Version 0.4.0 (Aug 17, 2014) |
| 308 |
|
| 309 |
- Add unquote-splicing support to json form. |
| 310 |
(thanks to David Thompson) |
| 311 |
|
| 312 |
|
| 313 |
* Version 0.3.1 (Jul 6, 2013) |
| 314 |
|
| 315 |
- Use pure sh script syntax in env.in. |
| 316 |
(thanks to Andrew Gaylard) |
| 317 |
|
| 318 |
|
| 319 |
* Version 0.3.0 (May 13, 2013) |
| 320 |
|
| 321 |
- Re-licensed under LGPLv3. |
| 322 |
|
| 323 |
- Use new guile.m4 macro. |
| 324 |
|
| 325 |
- Convert rationals to floats to comply with JSON spec. |
| 326 |
(closes github #3, patch from Doug Woos) |
| 327 |
|
| 328 |
|
| 329 |
* Version 0.2.0 (Apr 2, 2013) |
| 330 |
|
| 331 |
- Improve parser errors by providing an additional parser argument to |
| 332 |
the json-invalid exception. |
| 333 |
|
| 334 |
|
| 335 |
* Version 0.1.3 (Feb 10, 2013) |
| 336 |
|
| 337 |
- Automatically update pkg-list.scm version. |
| 338 |
|
| 339 |
|
| 340 |
* Version 0.1.2 (Feb 7, 2013) |
| 341 |
|
| 342 |
- Fix pretty printing. |
| 343 |
|
| 344 |
- Use (display) instead of (simple-format) when possible. |
| 345 |
|
| 346 |
|
| 347 |
* Version 0.1.1 (Feb 2, 2013) |
| 348 |
|
| 349 |
- Use (car)/(cdr) instead of (drop-right)/(last). This should be more |
| 350 |
efficient. |
| 351 |
|
| 352 |
|
| 353 |
* Version 0.1.0 (Jan 30, 2013) |
| 354 |
|
| 355 |
Initial release. |