Skip to content

v1.3.4

Choose a tag to compare

@Andrew-M-C Andrew-M-C released this 20 Jun 10:08
· 31 commits to master since this release

Release jsonvalue v1.3.4. Comparing to v1.3.3:

  • Type *jsonvalue.V now implements following interfaces thus it can used directly in encoding/json:
    • json.Marshaler、json.Unmarshaler
    • encoding.BinaryMarshaler、encoding.BinaryUnmarshaler
  • Supports importing data types those implement json.Marshaler or encoding.TextMarshaler interfaces, just like encoding/json does.
  • Add MustAdd, MustAppend, MustInsert, MustSet, MustDelete methods. These methods will not return sub-values or errors.
    • This will prevent golangci-lint warning of "return value is not used"
  • Bug fix: When invoking Append(xxx).InTheBeginning(), the sub-value was actually and faulty append to the end.
  • Pre-allocate some buffer and space when marshaling and unmarshaling. It will speed-up a little bit and save 40% alloc count by average.

中文