Skip to content

ci: run the packed SDK on Deno (Supabase Edge Functions) - #2

Merged
dragg merged 1 commit into
mainfrom
ci/deno-smoke
Nov 19, 2026
Merged

dragg merged 1 commit into
mainfrom
ci/deno-smoke

Conversation

@dragg

@dragg dragg commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Supabase Edge Functions load this package as npm:@proofage/node, and customers already integrate from there (one production tenant runs 0.14.0 on Supabase Edge Runtime), but nothing tested Deno.

  • scripts/deno-smoke.sh builds, packs the package and installs the tarball into deno/, then runs deno/smoke.ts from there, so Deno loads it as npm package code, as Supabase does.
  • deno/smoke.ts checks the shared HMAC vectors, a signed create against a local stand-in for the API (keys passed explicitly and read from the environment, X-ProofAge-Sdk checked, a /v1 base URL accepted), and webhookHandler accepting a signed delivery and refusing a tampered one with 401.
  • New deno job in CI on Deno 2.1.4 (what Supabase Edge Runtime 1.77–1.79 reports in production User-Agents) and the current 2.x.
  • README shows the npm: import for Deno; CLAUDE.md says how to run the check without a local Deno.

Locally (Docker): passes on Deno 2.1.4 and 2.9.8, and fails when the signature is broken. Nothing in the package changes.

🤖 Generated with Claude Code

Supabase Edge Functions import npm:@proofage/node, and customers already
integrate from there, but nothing tested it. scripts/deno-smoke.sh packs the
package, installs the tarball into deno/ and runs deno/smoke.ts: the shared
HMAC vectors, a signed create against a local stand-in for the API (keys
explicit and from the environment, SDK header checked) and webhookHandler
accepting a signed delivery and refusing a tampered one. The README shows
the npm: import for Deno.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dragg
dragg merged commit 733bbb3 into main Nov 19, 2026
4 checks passed
@dragg
dragg deleted the ci/deno-smoke branch November 19, 2026 17:14
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