Bytedance Sonic Versions Save

A blazingly fast JSON serializing & deserializing library

v1.8.10

11 months ago

Bigfix

  • fix: quote empty string key in ast

Full Changelog: https://github.com/bytedance/sonic/compare/v1.8.9...v1.8.10

v1.8.9

11 months ago

Bugfix

  • [#407] (decoder) check mismatch error after recursion
  • [#415] (decoder) clear allocated memory after slice grow in decode

Optimization

  • [#416] (decoder) skip space use shuffle SIMD instruction
  • [#409] (decoder) optimize default slice capacity (16 -> 2)

Full Changelog: https://github.com/bytedance/sonic/compare/v1.8.8...v1.8.9

v1.8.8

1 year ago

Bugfix

  • [#400] unmarshal recursive pointer type
  • [#404] incorrectly handle alias type of pointer in struct

Full Changelog: https://github.com/bytedance/sonic/compare/v1.8.7...v1.8.8

v1.8.7

1 year ago

Bugfix

  • [#392] fix unmarshal into named pointer type with unmarshaler
  • [#396] fix marshal direct struct/array type with marshaler

Full Changelog: https://github.com/bytedance/sonic/compare/v1.8.6...v1.8.7

v1.8.6

1 year ago

Bugfix

  • [#387] match empty string in json path
  • [#388] add mutex lock for registerModule
  • [#389] validate raw-node JSON strictly

Full Changelog: https://github.com/bytedance/sonic/compare/v1.8.5...v1.8.6

v1.8.5

1 year ago

Bugfix

  • [#376] out-of-bound for single unclosed string
  • [#380, #383] export not found error in ast get
  • [#382] decimal map key may be truncated and populated unexpectedly

Feature

  • [#382] add options Default(Encoder|Decoder)BufferSize to make initial buffer size adjustable

Full Changelog: https://github.com/bytedance/sonic/compare/v1.8.3...v1.8.5

v1.8.3

1 year ago

Bugfix

  • [#372] omit checkptr detects on unsafe functions
  • [#373] return error when Get() from incomplete json value

Full Changelog: https://github.com/bytedance/sonic/compare/v1.8.2...v1.8.3

v1.8.2

1 year ago

Bugfix

  • [#369] (encoder) failed to use memory pool after passing UTF8 validation

Full Changelog: https://github.com/bytedance/sonic/compare/v1.8.1...v1.8.2

v1.8.1

1 year ago

Feature

  • [#362] generic loader for go1.16~1.17

Bugfix

  • [#365] add nocheckptr directive

Full Changelog: https://github.com/bytedance/sonic/compare/v1.8.0...v1.8.1

v1.8.0

1 year ago

Feature

  • [#350] add Get() API on not-amd64 envs
  • [#354] more complete function loader and support Go 1.20
  • [#357] replace invalid utf8 char with '\ufffd', which is n accord with encoding/json
  • [#361] add env option SONIC_STOP_PROFILING to stop profiling on demands, working around for issue #310

Full Changelog: https://github.com/bytedance/sonic/compare/v1.7.0...v1.8.0