All Versions
12
Latest Version
Avg Release Cycle
67 days
Latest Release
567 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v0.7.2 Changes
August 31, 2021- ๐ Minor performances improvements (remove inlined functions in
appendEscapedBytes
).
- ๐ Minor performances improvements (remove inlined functions in
-
v0.7.1 Changes
March 03, 2020- Fix a regression in the marshaling of
nil
map keys that implement theencoding.TextMarshaler
interface, intoduced during refactor in version v0.5.0. - ๐ Split
TestTextMarshalerMapKey
andTestNilMarshaler
tests with build constraints to allow previously ignored cases to run with Go1.14.
- Fix a regression in the marshaling of
-
v0.7.0 Changes
February 17, 2020- โ Add the
omitnil
field tag's option, which specifies that a field with a nil pointer should be omitted from the encoding. This option has precedence over theomitempty
option. See this issue for more informations about the original proposal: #22480.
- โ Add the
-
v0.6.0 Changes
February 14, 2020- โ Add support for the
sync.Map
type. The marshaling behavior for this type is similar to the one of the Gomap
.
- โ Add support for the
-
v0.5.0 Changes
February 02, 2020๐จ Refactor of the entire project.
This includes the following changes, but not limited to:
- โ Remove the
Encoder
type to simplify the usage of the library and stick more closely to the design ofencoding/json
- ๐ Reduce the number of closures used. This improves readability of stacktraces and performance profiles.
- ๐ Improve the marshaling performances of many types.
- โ Add support for marshaling
json.RawMessage
values. - โ Add new options
DenyList
,NoNumberValidation
,NoCompact
, and rename some others. - Replace the
Marshaler
andMarshalerCtx
interfaces byAppendMarshaler
andAppendMarshalerCtx
to follow the new append model. See this issue for more details: #34701. - โ Remove the
IntegerBase
option, which didn't worked properly with thestring
JSON tag.
Some of the improvements have been inspired by the github.com/segmentio/encoding project.
- โ Remove the
-
v0.4.1 Changes
October 22, 2019- Fix unsafe misuses reported by go vet and the new
-d=checkptr
cmd/compile flag introduced in the Go1.14 development tree by Matthew Dempsky. The issues were mostly related to invalid arithmetic operations and dereferences. - ๐ Fix map key types precedence order during marshaling. Keys of any string type are used directly instead of the
MarshalText
method, if the types also implement theencoding.TextMarshaler
interface.
- Fix unsafe misuses reported by go vet and the new
-
v0.4.0 Changes
October 18, 2019- โ Add the
Marshaler
interface. Types that implements it can write a JSON representation of themselves to aWriter
directly, to avoid having to allocate a buffer as they would usually do when using thejson.Marshaler
interface.
- โ Add the
-
v0.3.1 Changes
October 09, 2019- ๐ Fix HTML characters escaping in struct field names.
- โ Add examples for Marshal, MarshalTo and Encoder's Encode.
- ๐จ Refactor string encoding to be compliant with
encoding/json
.
-
v0.3.0 Changes
September 22, 2019- โ Add global functions
Marshal
,MarshalTo
andRegister
. - โก๏ธ Update
README.md
: usage, examples and benchmarks.
- โ Add global functions
-
v0.2.1 Changes
September 10, 2019- ๐จ Refactor instructions for types implementing the
json.Marshaler
andencoding.TextMarshaler
interfaces.- Fix encoding of
nil
instances. - Fix behavior for pointer and non-pointer receivers, to comply with
encoding/json
.
- Fix encoding of
- ๐ Fix bug that prevents tagged fields to dominate untagged fields.
- โ Add support for anonymous struct pointer fields.
- ๐ Improve tests coverage of
encoder.go
. - โ Add test cases for unexported non-embedded struct fields.
- ๐จ Refactor instructions for types implementing the