1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502
|
Changes
-------
1.4 (2021-06-25)
~~~~~~~~~~~~~~~~
* Build binary wheel for aarch64, thanks to odidev (`PR #156`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/156
1.3 (2021-06-25)
~~~~~~~~~~~~~~~~
* Yet another attempt to fix automatic wheels upload
1.2 (2021-06-25)
~~~~~~~~~~~~~~~~
* Fix automatic wheels upload from GH Actions to PyPI
1.1 (2021-06-25)
~~~~~~~~~~~~~~~~
* Reduce decoder memory consumption by uniquifiying keys in the loaded dictionaries
* Implement an alternative way of transmogrify JSON objects, similar to ``json``\ 's
``object_pairs_hook`` load option (`issue #154`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/154
1.0 (2020-12-13)
~~~~~~~~~~~~~~~~
* Require Python 3.6 or greater
* New serialization options, ``iterable_mode`` and ``mapping_mode``, to give some control
on how generic iterables and mappings get encoded (fix `issue #149`__ and
`issue #150`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/149
__ https://github.com/python-rapidjson/python-rapidjson/issues/150
* Internal refactorings, folding "skipkeys" and "sort_keys" arguments into the
mapping_mode options, respectively as MM_SKIP_NON_STRING_KEYS and MM_SORT_KEYS: "old"
arguments kept for backward compatibility
* Bump major version to 1, tag as "production/stable" and switch to a simpler X.Y
versioning schema
0.9.4 (2020-11-16)
~~~~~~~~~~~~~~~~~~
* Fix memory leak loading an invalid JSON (`issue #148`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/148
0.9.3 (2020-10-24)
~~~~~~~~~~~~~~~~~~
* Fix access to ``Encoder`` instance attributes (`issue #147`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/147
0.9.2 (2020-10-24)
~~~~~~~~~~~~~~~~~~
* Use `current master`__ version of rapidjson
__ https://github.com/Tencent/rapidjson/commit/0ccdbf364c577803e2a751f5aededce935314313
* Enable GH Actions-based test workflow, thanks to Martin Thoma (`PR #143`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/143
* Produce Python 3.9 wheels, disable testing under Python < 3.6
* Make the character used for indentation in pretty mode a parameter (`issue #135`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/135
* Handle wider precision range in timestamps fractional seconds (`PR 133`__), thanks to
Karl Seguin
__ https://github.com/python-rapidjson/python-rapidjson/pull/133
* Add comparison benchmarks against orjson and hyperjson (`issue #130`__ and `PR #131`__,
thanks to Sebastian Pipping)
__ https://github.com/python-rapidjson/python-rapidjson/issues/130
__ https://github.com/python-rapidjson/python-rapidjson/pull/131
0.9.1 (2019-11-13)
~~~~~~~~~~~~~~~~~~
* Fix memory leak in case of failed validation (`issue #126`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/126
0.9.0 (2019-11-13)
~~~~~~~~~~~~~~~~~~
* Produce Python 3.8 wheels
* Compatibility fix for Python 3.8 (`issue #125`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/125
* New dump option ``write_mode``, supporting RapidJSON's ``kFormatSingleLineArray`` option
(`issue #123`__), thanks to Nguyễn Hồng Quân for the initial implementation (`PR #124`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/123
__ https://github.com/python-rapidjson/python-rapidjson/pull/124
0.8.0 (2019-08-09)
~~~~~~~~~~~~~~~~~~
* New serialization option ``bytes_mode`` to control how bytes instances get encoded
(`issue #122`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/122
0.7.2 (2019-06-09)
~~~~~~~~~~~~~~~~~~
* Hopefully fix the memory leak when loading from a stream (`issue #117`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/117
0.7.1 (2019-05-11)
~~~~~~~~~~~~~~~~~~
* Raise a more specific exception on loading errors, ``JSONDecodeError``, instead of
generic ``ValueError`` (`issue #118`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/118
* Fix optimization path when using ``OrderedDict``\ s (`issue #119`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/119
* Fix serialization of ``IntEnum``\ s (`issue #121`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/121
* I spent *quite a lot* of time investigating on the memory leak when loading from a
stream (`issue #117`__): as I was not able to fully replicate the problem, I cannot be
sure I solved the problem... sorry!
__ https://github.com/python-rapidjson/python-rapidjson/issues/117
0.7.0 (2019-02-11)
~~~~~~~~~~~~~~~~~~
* Raise correct exception in code samples (`PR #109`__), thanks to Thomas Dähling
__ https://github.com/python-rapidjson/python-rapidjson/pull/109
* Fix compilation with system-wide install of rapidjson (`issue #110`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/110
* Use current master version of rapidjson, that includes a `fix`__ for its `issue #1368`__
and `issue #1336`__, and cures several compilation warnings as well (`issue #112`__ and
`issue #107`__)
__ https://github.com/Tencent/rapidjson/commit/f5e5d47fac0f654749c4d6267015005b74643dff
__ https://github.com/Tencent/rapidjson/issues/1368
__ https://github.com/Tencent/rapidjson/issues/1336
__ https://github.com/python-rapidjson/python-rapidjson/issues/112
__ https://github.com/python-rapidjson/python-rapidjson/issues/107
* Fix memory leak when using ``object_hook`` (`issue #115`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/115
0.6.3 (2018-07-11)
~~~~~~~~~~~~~~~~~~
* No visible changes, but now PyPI carries binary wheels for Python 3.7.
0.6.2 (2018-06-08)
~~~~~~~~~~~~~~~~~~
* Use a more specific ValidationError, to differentiate from invalid JSON
0.6.1 (2018-06-06)
~~~~~~~~~~~~~~~~~~
* Nothing new, attempt to build Python 3.6 binary wheels on Travis CI
0.6.0 (2018-06-06)
~~~~~~~~~~~~~~~~~~
* Add a new comparison table involving ``ensure_ascii`` (`issue #98`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/98
* Use Python's ``repr()`` to emit float values instead of rapidjson's ``dtoa()`` (`issue
#101`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/101
* Use a newer (although unreleased) version of rapidjson to fix an `issue`__ with
JSONSchema validation (`PR #103`__), thanks to Anthony Miyaguchi
__ https://github.com/Tencent/rapidjson/issues/825
__ https://github.com/python-rapidjson/python-rapidjson/pull/103
0.5.2 (2018-03-31)
~~~~~~~~~~~~~~~~~~
* Tiny tweak to restore macOS build on Travis CI
0.5.1 (2018-03-31)
~~~~~~~~~~~~~~~~~~
* Minor tweaks to CI and PyPI deploy configuration
0.5.0 (2018-03-31)
~~~~~~~~~~~~~~~~~~
* New ``RawJSON`` class, allowing inclusion of *pre-serialized* content (`PR #95`__ and
`PR #96`__), thanks to Silvio Tomatis
__ https://github.com/python-rapidjson/python-rapidjson/pull/95
__ https://github.com/python-rapidjson/python-rapidjson/pull/96
0.4.3 (2018-01-14)
~~~~~~~~~~~~~~~~~~
* Deserialize from ``bytes`` and ``bytearray`` instances, ensuring they
contain valid UTF-8 data
* Speed up parsing of floating point numbers, avoiding intermediary conversion
to a Python string (`PR #94`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/94
0.4.2 (2018-01-09)
~~~~~~~~~~~~~~~~~~
* Fix precision handling of DM_UNIX_TIME timestamps
0.4.1 (2018-01-08)
~~~~~~~~~~~~~~~~~~
* Fix memory leaks in ``Decoder()`` and ``Encoder()`` classes, related to
bad handling of ``PyObject_GetAttr()`` result value
* Fix compatibility with Python 3.7a
0.4.0 (2018-01-05)
~~~~~~~~~~~~~~~~~~
* Implemented the streaming interface, see `load()`__ and `dump()`__ (`issue #80`__)
__ https://python-rapidjson.readthedocs.io/en/latest/load.html
__ https://python-rapidjson.readthedocs.io/en/latest/dump.html
__ https://github.com/python-rapidjson/python-rapidjson/issues/80
**Backward incompatibility**: now the *flags* arguments on all the functions are
*keyword only*, to mimic stdlib's ``json`` style
0.3.2 (2017-12-21)
~~~~~~~~~~~~~~~~~~
* Reduce compiler warnings (`issue #87`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/87
0.3.1 (2017-12-20)
~~~~~~~~~~~~~~~~~~
* Fix Travis CI recipe to accomodate MacOS
0.3.0 (2017-12-20)
~~~~~~~~~~~~~~~~~~
* Fix compilation on MacOS (`issue #78`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/78
* Handle generic iterables (`PR #89`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/89
**Backward incompatibility**: the ``dumps()`` function and the ``Encoder()``
constructor used to accept a ``max_recursion_depth`` argument, to control
the maximum allowed nesting of Python structures; since the underlying
function is now effectively recursive, it has been replaced by the generic
`sys.setrecursionlimit()`__ mechanism
__ https://docs.python.org/3.6/library/sys.html#sys.setrecursionlimit
0.2.7 (2017-12-08)
~~~~~~~~~~~~~~~~~~
* Restore compatibility with Python < 3.6
0.2.6 (2017-12-08)
~~~~~~~~~~~~~~~~~~
* Fix memory leaks when using object_hook/start_object/end_object
0.2.5 (2017-09-30)
~~~~~~~~~~~~~~~~~~
* Fix bug where error handling code could raise an exception causing a
confusing exception to be returned (`PR #82`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/82
* Fix bug where loads's ``object_hook`` and dumps's ``default`` arguments
could not be passed ``None`` explicitly (`PR #83`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/83
* Fix crash when dealing with surrogate pairs (`issue #81`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/81
0.2.4 (2017-09-17)
~~~~~~~~~~~~~~~~~~
* Fix compatibility with MacOS/clang
0.2.3 (2017-08-24)
~~~~~~~~~~~~~~~~~~
* Limit the precision of DM_UNIX_TIME timestamps to six decimal digits
0.2.2 (2017-08-24)
~~~~~~~~~~~~~~~~~~
* Nothing new, attempt to fix production of Python 3.6 binary wheels
0.2.1 (2017-08-24)
~~~~~~~~~~~~~~~~~~
* Nothing new, attempt to fix production of Python 3.6 binary wheels
0.2.0 (2017-08-24)
~~~~~~~~~~~~~~~~~~
* New ``parse_mode`` option, implementing relaxed JSON syntax (`issue #73`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/73
* New ``Encoder`` and ``Decoder``, implementing a class-based interface
* New ``Validator``, exposing the underlying *JSON schema* validation (`issue #71`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/71
0.1.0 (2017-08-16)
~~~~~~~~~~~~~~~~~~
* Remove beta status
0.1.0b4 (2017-08-14)
~~~~~~~~~~~~~~~~~~~~
* Make execution of the test suite on Appveyor actually happen
0.1.0b3 (2017-08-12)
~~~~~~~~~~~~~~~~~~~~
* Exclude CI configurations from the source distribution
0.1.0b2 (2017-08-12)
~~~~~~~~~~~~~~~~~~~~
* Fix Powershell wheel upload script in appveyor configuration
0.1.0b1 (2017-08-12)
~~~~~~~~~~~~~~~~~~~~
* Compilable with somewhat old g++ (`issue #69`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/69
* **Backward incompatibilities**:
- all ``DATETIME_MODE_XXX`` constants have been shortened to ``DM_XXX``
``DATETIME_MODE_ISO8601_UTC`` has been renamed to ``DM_SHIFT_TO_UTC``
- all ``UUID_MODE_XXX`` constants have been shortened to ``UM_XXX``
* New option ``DM_UNIX_TIME`` to serialize date, datetime and time values as
`UNIX timestamps`__ targeting `issue #61`__
__ https://en.wikipedia.org/wiki/Unix_time
__ https://github.com/python-rapidjson/python-rapidjson/issues/61
* New option ``DM_NAIVE_IS_UTC`` to treat naïve datetime and time values as if
they were in the UTC timezone (also for issue #61)
* New keyword argument ``number_mode`` to use underlying C library numbers
* Binary wheels for GNU/Linux and Windows on PyPI (one would hope: this is the
reason for the beta1 release)
0.0.11 (2017-03-05)
~~~~~~~~~~~~~~~~~~~
* Fix a couple of refcount handling glitches, hopefully targeting `issue
#48`__.
__ https://github.com/python-rapidjson/python-rapidjson/issues/48
0.0.10 (2017-03-02)
~~~~~~~~~~~~~~~~~~~
* Fix source distribution to contain all required stuff (`PR #64`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/64
0.0.9 (2017-03-02)
~~~~~~~~~~~~~~~~~~
* CI testing on GitHub
* Allow using locally installed RapidJSON library (`issue #60`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/60
* Bug fixes (`issue #37`__, `issue #51`__, `issue #57`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/37
__ https://github.com/python-rapidjson/python-rapidjson/issues/51
__ https://github.com/python-rapidjson/python-rapidjson/issues/57
0.0.8 (2016-12-09)
~~~~~~~~~~~~~~~~~~
* Use unpatched RapidJSON 1.1 (`PR #46`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/46
* Handle serialization and deserialization of datetime, date and time
instances (`PR #35`__) and of UUID instances (`PR #40`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/35
__ https://github.com/python-rapidjson/python-rapidjson/pull/40
* Sphinx based documentation (`PR #44`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/44
* Refresh benchmarks (`PR #45`__)
__ https://github.com/python-rapidjson/python-rapidjson/pull/45
* Bug fixes (`issue #25`__, `issue #38`__, `PR #43`__)
__ https://github.com/python-rapidjson/python-rapidjson/issues/25
__ https://github.com/python-rapidjson/python-rapidjson/issues/38
__ https://github.com/python-rapidjson/python-rapidjson/pull/43
|