v0.7.2
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)
StringBasedValueOfandStringBasedValueFromCodeconstruct 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) andspanner.Null*wrappers (BoolFromNullable,Int64FromNullable,Float64FromNullable,Float32FromNullable,StringFromNullable,DateFromNullable,TimestampFromNullable,UUIDFromNullable,IntervalFromNullable,NumericFromNullable,JSONFromNullable,PGNumericFromNullable,PGJSONBFromNullable).
Documentation (#222, #233)
gcvctorpackage docs: wire-string traps,StringBasedValueOfsemantics, and when to use explicit constructors vs spanenc.- Root package and
AGENTS.md: spanenc adoption boundary (reflection / client-tag encoding stays in spanenc;gcvctorremains explicit and strict). - Godoc gaps filled for dialect helpers, literal quoting, and JSON row formatting.
JSONObjectStructFormat deprecated (#215)
JSONObjectStructFormatis deprecated in favor ofNewJSONObjectStructFormatter. Behavior is unchanged; migrate call sites at your convenience.
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.