Skip to content

v0.7.2

Choose a tag to compare

@apstndb apstndb released this 11 Jun 02:12
1b92e44

Patch release since v0.7.1. Additive gcvctor constructors for string-based and nullable inputs, documentation for gcvctor traps and the spanenc adoption boundary, deprecation of JSONObjectStructFormat, and internal dead-code cleanup. No compile-time API removals or signature changes. Minimum Go remains 1.24.


Highlights

gcvctor string-based and nullable constructors (#232)

  • StringBasedValueOf and StringBasedValueFromCode construct GCVs from wire strings with caller-supplied types (no validation beyond type assignment).
  • Nullable input helpers for spanenc-style construction: pointer-based (BoolFromPtr, Int64FromPtr, Float64FromPtr, Float32FromPtr, StringFromPtr, BytesFromSlice, DateFromPtr, TimestampFromPtr, UUIDFromPtr, IntervalFromPtr) and spanner.Null* wrappers (BoolFromNullable, Int64FromNullable, Float64FromNullable, Float32FromNullable, StringFromNullable, DateFromNullable, TimestampFromNullable, UUIDFromNullable, IntervalFromNullable, NumericFromNullable, JSONFromNullable, PGNumericFromNullable, PGJSONBFromNullable).

Documentation (#222, #233)

  • gcvctor package docs: wire-string traps, StringBasedValueOf semantics, and when to use explicit constructors vs spanenc.
  • Root package and AGENTS.md: spanenc adoption boundary (reflection / client-tag encoding stays in spanenc; gcvctor remains explicit and strict).
  • Godoc gaps filled for dialect helpers, literal quoting, and JSON row formatting.

JSONObjectStructFormat deprecated (#215)

Internal cleanup (#214)

  • Removed unused literal helper functions from internal/ (no public API impact).

Upgrading to v0.7.2

From v0.7.1

Compile-time: additive APIs only. No signature removals or renames.

Runtime: no intentional behavior changes to formatting presets or export paths. Existing JSONObjectStructFormat call sites continue to work; prefer NewJSONObjectStructFormatter for new code.


Full changelog

v0.7.1...v0.7.2