Skip to content

feat(deno): add Deno support - #117

Merged
buffcode merged 4 commits into
masterfrom
feat/deno
Apr 21, 2026
Merged

feat(deno): add Deno support#117
buffcode merged 4 commits into
masterfrom
feat/deno

Conversation

@buffcode

@buffcode buffcode commented Apr 21, 2026

Copy link
Copy Markdown
Owner

Closes #104

Summary

  • Replace __proto__ access in isPlainObject with Object.getPrototypeOf() — the root cause of Deno incompatibility
  • Add test/integration/deno.ts — verifies instantiation and option merging work without --unstable-unsafe-proto
  • Add examples/deno.ts — demonstrates usage via npm: specifier
  • Add deno CI job to nodejs.yml with the same Node.js version matrix as the build job (['20', '22', '24', '25'])
  • Add Deno section to README

Test plan

  • deno run test/integration/deno.ts passes without --unstable-unsafe-proto
  • Deno CI job passes across all four Node.js versions
  • Existing Node.js examples still pass

🤖 Generated with Claude Code

buffcode and others added 3 commits April 21, 2026 15:59
- Replace __proto__ in isPlainObject with Object.getPrototypeOf()
- Add test/integration/deno.ts for CI verification
- Add examples/deno.ts showing npm: specifier usage
- Add deno CI job to nodejs.yml
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Node 18 was dropped in origin/master; align deno job matrix accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@buffcode buffcode self-assigned this Apr 21, 2026
Add "type": "commonjs" to package.json so Deno 2.x correctly identifies
dist/index.js as CommonJS, and pass --allow-read to deno run in CI since
createRequire requires filesystem read access.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@buffcode
buffcode merged commit 733ee79 into master Apr 21, 2026
11 checks passed
@buffcode
buffcode deleted the feat/deno branch April 21, 2026 23:58
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.

Deno support

1 participant