Repository navigation
ci: run the packed SDK on Deno (Supabase Edge Functions) - #2
Merged
Merged
Conversation
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>
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.
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.shbuilds, packs the package and installs the tarball intodeno/, then runsdeno/smoke.tsfrom there, so Deno loads it as npm package code, as Supabase does.deno/smoke.tschecks 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-Sdkchecked, a/v1base URL accepted), andwebhookHandleraccepting a signed delivery and refusing a tampered one with 401.denojob 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.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