segmentio/encoding
Go package containing implementations of efficient encoding, decoding, and validation APIs.
📋 What's Changed
- fix: Validate key length on assignment in decodeStruct by @maciej-kisiel in https://github.com/segmentio/encoding/pull/162
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.5.3...v0.5.4
📋 What's Changed
- lint fixes by @extemporalgenome in https://github.com/segmentio/encoding/pull/151
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.5.2...v0.5.3
📋 What's Changed
- perf(json): address performance penalty found in json decoding by @dominicbarnes in https://github.com/segmentio/encoding/pull/149
✨ New Contributors
- @dominicbarnes made their first contribution in https://github.com/segmentio/encoding/pull/149
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.5.1...v0.5.2
📋 What's Changed
- json: encode \b and \f like the Go 1.22 stdlib does by @extemporalgenome in https://github.com/segmentio/encoding/pull/145
- lint fixes by @extemporalgenome in https://github.com/segmentio/encoding/pull/146
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.5.0...v0.5.1
📋 What's Changed
- .github: fix security vuln by @kevinburkesegment in https://github.com/segmentio/encoding/pull/142
- Add protobuf rewrite rule overrides by @kalamay in https://github.com/segmentio/encoding/pull/144
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.4.0...v0.5.0
When decoding into `any`, `ParseFlags` can now be used to control decoding into any combination of `uint64`, `int64`, and `*big.Int`, in addition to the prior support for `json.Number` and `float64`. Choice of type will depend on each value encountered, and as before, when `json.Number` is requested, `float64` will not be used.
📋 What's Changed
- Added a `Remaining() int` method to `json.Tokenizer` by @chriso in https://github.com/segmentio/encoding/pull/126
- Enabled a slice optimization for go1.18 and go1.19 by @chriso in https://github.com/segmentio/encoding/pull/127
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.5...v0.3.6
📋 What's Changed
- fix decoding lists of TRUE values by @achille-roussel in https://github.com/segmentio/encoding/pull/122
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.4...v0.3.5
📋 What's Changed
- Encoder: add SetAddExtraNewline option to json.Encoder by @Jerska in https://github.com/segmentio/encoding/pull/119
✨ New Contributors
- @Jerska made their first contribution in https://github.com/segmentio/encoding/pull/119
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.3...v0.3.4
📋 What's Changed
- purego fix by @chriso in https://github.com/segmentio/encoding/pull/111
- Speed up integer parsing by @chriso in https://github.com/segmentio/encoding/pull/112
- Optimize short string parsing (part 2) by @chriso in https://github.com/segmentio/encoding/pull/113
- Improved field lookup for small structs (arm64) by @chriso in https://github.com/segmentio/encoding/pull/114
- Fixes Bool method comment by @Succo in https://github.com/segmentio/encoding/pull/115
- README: note where to find CPU/memory details by @kevinburkesegment in https://github.com/segmentio/encoding/pull/116
- thrift: allow reusing struct fields by @achille-roussel in https://github.com/segmentio/encoding/pull/117
✨ New Contributors
- @Succo made their first contribution in https://github.com/segmentio/encoding/pull/115
- @kevinburkesegment made their first contribution in https://github.com/segmentio/encoding/pull/116
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.2...v0.3.3
📋 What's Changed
- add test for issue 107 by @achille-roussel in https://github.com/segmentio/encoding/pull/108
- Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.0...v0.3.1
This release adds a new thrift package with encoder/decoder to work with the thrift format, including support for the binary and compact protocols.
