Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno support #50

Closed
guybedford opened this issue Jul 25, 2019 · 5 comments
Closed

Deno support #50

guybedford opened this issue Jul 25, 2019 · 5 comments

Comments

@guybedford
Copy link
Member

guybedford commented Jul 25, 2019

This is a tracking issue for Deno support, which is currently blocked by this jspm core issue - jspm/jspm-core#4 to implement the Node.js builtins.

Node.js builtin support requires versions of all of the Node.js builtins built on top of Deno primitives. Deno have been making some progress on this in https://github.com/denoland/deno/tree/master/std/node but the compatibility there has not yet reached a sufficient point for the jspm core support to be worthwhile to add.

As soon as the Deno node.js library support above reaches a good coverage level, this work can be unblocked further in a first-class support mechanism.

@jsejcksn
Copy link

and types headers. (Ref #55)

@brillout
Copy link

In the long term, would it then be possible to use like 99.99% of Node.js libraries published on npm with Deno instead of Node.js, by simply doing something like import * from "https://deno-npm.jspm.io/npm-module"?

Beyond v8 APIs, I'm not sure what other APIs could not (practically) be shimmed.

@guybedford
Copy link
Member Author

Yes exactly, and there is currently quite advanced experimental Deno support in the jspm 3 CLI beta to allow using Deno stdlibs for npm libraries. If anyone would like to enroll in the beta, just request access in the Discord (https://discord.com/invite/dNRweUu), it would be great to get feedback on this support coming up to launch.

@guybedford
Copy link
Member Author

Full Deno support has been live for a while per https://jspm.org/docs/workflows#deno-import-maps.

@jsejcksn
Copy link

@guybedford Import maps work from an end user standpoint (the dev running the entrypoint in deno), but it's not a solution for anyone who wants to use dependencies from jspm in deno modules published with intent to be consumed by others (e.g. deno.land/x). Doing so would require the downstream user to implement an import map themselves in order for the upstream specifiers to be resolved. They'd need to merge in the library author's import map, and if there are duplicate, conflicting specifier names, then resolution is not possible without one of the developers compromising. I think "full support" would be more inclusive than requiring import maps. Has this already been discussed?

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

No branches or pull requests

3 participants