Skip to content

chore(server): upgrade Polyglot SQL SDK - #329

Merged
lentil32 merged 1 commit into
mainfrom
codex/update-polyglot-sdk
Jul 30, 2026
Merged

chore(server): upgrade Polyglot SQL SDK#329
lentil32 merged 1 commit into
mainfrom
codex/update-polyglot-sdk

Conversation

@lentil32

Copy link
Copy Markdown
Contributor

One-Line Summary

Upgrade the SQL validation runtime to Polyglot SQL SDK 0.6.2 while keeping self-hosted and packaged runtimes able to locate its WASM asset.

User-Facing Changes

  • SQL validation uses Polyglot SQL SDK 0.6.2.
  • Self-hosted and npm-packaged runtimes stage the SDK's renamed polyglot_sql.wasm asset.

Why This Changed

OneQuery was pinned to Polyglot SQL SDK 0.3.11. The current SDK release also renamed its distributed WASM file from polyglot_sql_wasm_bg.wasm to polyglot_sql.wasm, so upgrading the dependency without updating the runtime bundle contract would break self-host asset staging and npm package assembly.

How It Changed

  • Updated @onequery/server to depend on @polyglot-sql/sdk 0.6.2.
  • Updated the runtime bundle manifest to stage polyglot_sql.wasm.
  • Updated self-host and npm package tests to assert the new asset path.
  • Regenerated bun.lock.

Extra Context / Decisions (Optional)

  • The SDK API used by SQL validation remains compatible; no validation behavior changes were required.
  • The pre-push type-aware lint hook still reports four unrelated errors already present on main: one unresolved vitest type in a Dashboard test and three deprecated Zod API diagnostics in the Linear adapter. The regular full lint passes.

Verification

  • mise exec -- bunx turbo test --filter=@onequery/server --filter=@onequery/self-host-runtime --json
  • mise exec -- bunx turbo typecheck --filter=@onequery/server --filter=@onequery/base --filter=@onequery/self-host-runtime --json
  • mise exec -- bun test apps/cli/scripts/build-npm-package.test.ts
  • mise exec -- bun install --frozen-lockfile
  • mise exec -- bun lint --format json
  • mise exec -- bun run format

The server suite passed 213 tests, the self-host runtime suite passed 57 tests, and the npm packaging test passed 5 tests.

Video / Screenshot (Optional)

  • N/A

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
onequery-landing 0f144f2 Commit Preview URL

Branch Preview URL
Jul 30 2026, 09:17 AM

@lentil32
lentil32 merged commit dde425d into main Jul 30, 2026
13 of 15 checks passed
@lentil32
lentil32 deleted the codex/update-polyglot-sdk branch July 30, 2026 09:22
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