Skip to content

Releases: maciejhirsz/json-rust

0.11.8

03 Jul 14:29
Compare
Choose a tag to compare
  • Fixed an issue that lead to a panic when trying to print Number types with negative exponent but with large base, where putting the period after first digit would force the scientific e notation to flip sign to positive (issue #108, thank you @lpbak)

0.11.7

26 Jun 11:34
Compare
Choose a tag to compare
  • Fixed an issue with overflow math when turning min value i16 to absolute value u16 (issue #107, thank you @lpbak)

0.11.6

15 Mar 12:26
Compare
Choose a tag to compare
  • Fixes reading out of bounds issue #106.

0.11.5

21 Jan 18:02
Compare
Choose a tag to compare
  • Object struct now implements Index and IndexMut on it's own. Thanks to @hobofan for #105.
  • Fixed a rare SIGSEGV that could occur during serialization or iteration over objects due to invalid lifetimes being applied on unsafe code. Reduced the amount of unsafe code around to increase maintainability of the project, more to come.

0.11.4

02 Jan 17:37
Compare
Choose a tag to compare
  • To allow for custom implementators of From<T> for JsonValue to benefit from automatic conversions, the trait implementations are now using generics instead of macros internally (see #101).

0.11.3

30 Nov 19:11
Compare
Choose a tag to compare
  • Fixed an issue where Object and thus JsonValue lacked the Send marker (#100).

0.11.2

25 Nov 12:30
Compare
Choose a tag to compare
  • Added Eq to derived traits on the Error type.

0.11.1

23 Nov 11:47
Compare
Choose a tag to compare
  • Added array_remove to JsonValue (see #98).

0.11.0

28 Oct 06:54
Compare
Choose a tag to compare
  • Breaking change: Error enum now has a new variant: ExceededDepthLimit.
  • Stack overflow issues on deeply nested structures should now be fixed (#93).
    • Parser has been reworked to avoid recursion and instead run in a loop with a custom, heap allocated, stack for nested objects and arrays.
    • As an additional sanity check parsing will now stop after hitting 512 nested objects or arrays and return Error::ExceededDepthLimit.
  • Fixed an issue that caused a panic when unwinding the parser on a single unicode character.

0.10.3

26 Oct 18:45
Compare
Choose a tag to compare
  • Fixed integer overflow causing a panic when parsing very long exponents.
  • Parser now returns an error on malformatted numbers which are missing a digit after a period (example: [1.]).