Skip to content

v0.7.3

Choose a tag to compare

@apstndb apstndb released this 11 Jun 02:51
77bc274

Patch release since v0.7.2. Fixes wire output from JSONFromNullable and PGJSONBFromNullable when Value is a Go string, aligning with the official Spanner client's encodeValue. No compile-time API removals or signature changes. Minimum Go remains 1.24.


Highlights

gcvctor JSON nullable wire fix (#237, #236)

Input Value v0.7.2 wire v0.7.3 wire
"x" (string) x (invalid JSON) "x"
json.RawMessage("{\"a\":1}") {"a":1} {"a":1}

Upgrading to v0.7.3

From v0.7.2

Compile-time: no API removals or signature changes.

Runtime: if you relied on JSONFromNullable / PGJSONBFromNullable treating a Go string Value as pre-encoded wire JSON, switch that input to json.RawMessage. This matches the official client's encoding semantics and fixes invalid wire output for string column round-trips (e.g. spanenc adoption of #232).


Full changelog

v0.7.2...v0.7.3