Skip to content

Adopt spancodec v0.1.2 and spanvalue v0.8.1 in EncodeOptions - #7

Merged
apstndb merged 1 commit into
mainfrom
deps/spancodec-v0.1.2
Jun 12, 2026
Merged

apstndb merged 1 commit into
mainfrom
deps/spancodec-v0.1.2

Conversation

@apstndb

@apstndb apstndb commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Closes the feedback loop this package opened: both upstream changes were filed from spanpg and are now consumed back.

Verification: mise run check green; mise run test-integration green against the PG-dialect emulator — the round-trip and spancodec e2e probes (including RowTypeFor annotation inference, which now exercises the fixed slice inference) pass unchanged, proving the rewrite is behavior-identical.

🤖 Generated with Claude Code

spancodec v0.1.2 fixed []T inference from element WithGoType
registrations (apstndb/spancodec#1, filed from this package), so the
slice-type registration workarounds are gone, and the new
WithTypedValueEncoder collapses each encoder+type pair into one option.
The PGNumericValue rounding hazard doc now points at spanvalue v0.8.1
PGNumericValueExact (apstndb/spanvalue#249, also filed from here).
Behavior verified unchanged by the integration probes against the
PG-dialect emulator, including the RowTypeFor annotation inference test
that now exercises the fixed element-based slice inference.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the dependencies spancodec to v0.1.2 and spanvalue to v0.8.1. In encode_options.go, the EncodeOptions function is refactored to use WithTypedValueEncoder instead of WithValueEncoder paired with WithGoType. Redundant slice-type registrations are removed because spancodec v0.1.2 now automatically resolves slice types from element registrations via static inference. The documentation has been updated accordingly. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@apstndb
apstndb merged commit 8c94312 into main Jun 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant