Replies: 1 comment 1 reply
-
Hi! Be able to receive a file from JSR directly over http, for example: import * as X from 'https://raw.jsr.io/@xzdwq/test/0.1.0/mod.ts'; Specifying the response header This is convenient when you need to use a specific script or function from a file that is implemented purely without other dependencies. For security reasons, you can set the import * as X from 'https://raw.jsr.io/@xzdwq/test/0.1.0/mod.ts?raw'; Specifying the response header It would also be convenient to use it in Bun due to the Virtual modules mechanism: https://bun.sh/docs/runtime/plugins#virtual-modules The main motivation is variations in the use of modules and functions, their independent support, like with a micro-frontens. |
Beta Was this translation helpful? Give feedback.
-
Currently, JSR doesn't allow https imports. This has some issues if someone is writing modules specifically for deno:
npm:
are different than deno ones. So, if you're using some npm module that patches them, it simply won't work for calls from deno. The only way to handle this was using esm.sh, which we can't use with JSR.Proposed solution:
PS: this is not about importing JSR modules using HTTP URLs, it's about using HTTP imports in published files.
Beta Was this translation helpful? Give feedback.
All reactions