MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.62k stars 137 forks source link

Migrate @simplewebauthn/server to Deno's import maps #633

Closed MasterKale closed 2 weeks ago

MasterKale commented 2 weeks ago

Deno has had import maps support for quite some time now, and a recent blog post about the downsides of using the deps.ts (like I do in @simplewebauthn/server)...

https://deno.com/blog/http-imports

...made me want to try to migrate the library to using import maps in deno.jsonc instead.

This PR replaces deps.ts with an import map, then refactors everything away from relative importing out of deps.ts for more traditional package name identifiers.

MasterKale commented 2 weeks ago

Closing this PR to expand the effort into "Deploy to JSR" in #634