Repository navigation
Add more v0.4.0 upgrade learnings from agent-rig and asdf-superdb work - #107
Merged
Merged
Conversation
Covers changes that broke real scripts but weren't in the guide: missing fields on JSON/stdin exit 0 with an error value, typeof() == <time> is silently false, exists() doesn't test presence, old JSUP files read with no error, the file-format error text, super db status records, the Go module path and Go 1.27, and bucket() on constants. Each was checked against the v0.3.0 and v0.4.0 binaries. Also drops the debug tutorial's claim that unordered debug output is new in v0.4.0; v0.3.0 reorders it too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
More v0.4.0 changes for the upgrade guide. They come from today's agent-rig work (found by superkit-38), the asdf-superdb session, and this session. Each item was re-run on the v0.3.0 and v0.4.0 binaries, except the Go module path and minimum Go version, which were read from upstream
go.modat each tag.Upgrade guide (
docs/zq-to-super-upgrades.md)error("no such field b")and exits 0. v0.3.0 exited 1. Static input still fails at compile time.typeof(x) == <time>is nowfalsewith no error. No single cast works on both versions, so pin each script to one.exists()returnstruefor a missing field, and even forerror("x"), so it can't replacehas(). Added rows to thehas()table for the['x'] in fields(this)andgrep(typeof)idioms.{type,value}envelope, so convert them with the old binary first.file format requirederror text.super db -cscript outputs a status record.github.com/superdb/super, and building needs Go 1.27 or later. Added a Quick Reference row.bucket()with two constant arguments doesn't round.Debug tutorial
debugoperators writing to stderr out of order. v0.3.0 reorders it too: underforkit came out reversed in 10 of 12 runs.changelog.sup: two entries added under 0.4.0.
npm test(109) andnpm run test:docs(71) pass locally on v0.4.0.🤖 Generated with Claude Code