Skip to content

Add more v0.4.0 upgrade learnings from agent-rig and asdf-superdb work - #107

Merged
chrismo merged 2 commits into
mainfrom
upgrade-doc-040-learnings
Nov 2, 2026
Merged

chrismo merged 2 commits into
mainfrom
upgrade-doc-040-learnings

Conversation

@chrismo

@chrismo chrismo commented Nov 2, 2026

Copy link
Copy Markdown
Owner

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.mod at each tag.

Upgrade guide (docs/zq-to-super-upgrades.md)

  • On JSON or stdin input, a missing field now outputs error("no such field b") and exits 0. v0.3.0 exited 1. Static input still fails at compile time.
  • typeof(x) == <time> is now false with no error. No single cast works on both versions, so pin each script to one.
  • exists() returns true for a missing field, and even for error("x"), so it can't replace has(). Added rows to the has() table for the ['x'] in fields(this) and grep(typeof) idioms.
  • v0.4.0 reads old JSUP files with no error, as the raw {type,value} envelope, so convert them with the old binary first.
  • Quoted the file format required error text.
  • Each statement in a super db -c script outputs a status record.
  • The Go module path is now github.com/superdb/super, and building needs Go 1.27 or later. Added a Quick Reference row.
  • Known issue: bucket() with two constant arguments doesn't round.

Debug tutorial

  • Removed "As of v0.4.0" from the note about separate debug operators writing to stderr out of order. v0.3.0 reorders it too: under fork it came out reversed in 10 of 12 runs.

changelog.sup: two entries added under 0.4.0.

npm test (109) and npm run test:docs (71) pass locally on v0.4.0.

🤖 Generated with Claude Code

chrismo and others added 2 commits November 1, 2026 21:51
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>
@chrismo
chrismo merged commit 7dc9747 into main Nov 2, 2026
1 check passed
@chrismo
chrismo deleted the upgrade-doc-040-learnings branch November 2, 2026 04:56
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