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

Investigate impact of Deno moving its std library to JSR #571

Open MasterKale opened 6 months ago

MasterKale commented 6 months ago

Describe the issue

See https://deno.com/blog/std-on-jsr, this part makes me wonder if I have to start using JSR in here, which would have an impact on the rest of the project:

deno.land/std will still be available indefinitely. All programs that depend on deno.land/std will keep working. Don’t worry!

However, going forward new features will be published to jsr.io/@std. deno.land/std will receive only critical updates, such as security patches.

sachaw commented 5 months ago

For those of us using Deno, it would be good if all of the packages could be published on JSR. Would be nice in the future to see this project use JSR as the package source for NPM (using JSR's automatic transpiling) This could possibly remove the need to use DNT.

MasterKale commented 5 months ago

Would be nice in the future to see this project use JSR as the package source for NPM (using JSR's automatic transpiling) This could possibly remove the need to use DNT.

I am with you on this, JSR stands to greatly simplify my work of deploying this project to support as many runtimes as I target. The one thing that seems a little suboptimal for me right now is the need to use npx jsr add to install something, and remember to commit the generated .npmrc to help future npm install commands know where to pull in SimpleWebAuthn.

Is anyone on the NPM side of JS runtimes working to add first-class support for JSR package installations?

MasterKale commented 2 weeks ago

I'm going to add this conversation to this issue:

https://github.com/MasterKale/SimpleWebAuthn/discussions/542

tl;dr: Technically @simplewebauthn/browser is available via https://deno.land/x/simplewebauthn@v11.0.0/packages/browser, but its code is not in a shape that Deno recognizes (no file extensions on relative imports, etc...) Could migrating/deploying this project to JSR make @simplewebauthn/browser available in Deno projects too?

MasterKale commented 1 week ago

If anyone's following this issue and is interested in testing out Deno support via JSR-hosted versions of v11.0.0, check out this discussion comment for more info:

https://github.com/MasterKale/SimpleWebAuthn/discussions/542#discussioncomment-11195351