extism / js-sdk

Run Extism WebAssembly plug-ins / functions from JavaScript (supports major browsers, Node.js, Deno, Bun, and Cloudflare Workers)
https://extism.github.io/js-sdk/
BSD 3-Clause "New" or "Revised" License
65 stars 10 forks source link

install with Deno 2 runtime #93

Closed adunne09 closed 1 month ago

adunne09 commented 1 month ago

https://jsr.io/@extism/extism and import createPlugin from "jsr:@extism/extism"; here in the README indicate that there is an extism jsr package, but when I run deno add jsr:@extism/extism, I get:

error: jsr:@extism/extism was not found, but a matching npm package exists. Did you mean `deno add npm:@extism/extism`

Is this the intended behavior, or is there meant to be an extism jsr package?

bhelx commented 1 month ago

As discussed in Discord, I believe this should be a JSR package. But maybe something changed in Deno 2.

chrisdickinson commented 1 month ago

Hm, maybe Deno 2 isn't picking up the rc release? I'll take a look.

bhelx commented 1 month ago

@adunne09 did you find any more details? And is this related to the WASI issue you posted in discord?

adunne09 commented 1 month ago

@adunne09 did you find any more details? And is this related to the WASI issue you posted in discord?

My overall goal right now is to determine the feasibility of Deno 2 as the JS runtime for a plugin-centric application. I have not found any more details other than this issue is still persisting. With this issue specifically, I'm simply confused how there is this package on jsr- https://jsr.io/@extism/extism but when I run deno add jsr:@extism/extism, it fails.

chrisdickinson commented 1 month ago

Confirmed: deno 2 isn't picking up rc releases. You can work around this for now using deno add jsr:@extism/extism@2.0.0-rc9. (We'll cut a v2 release of the js-sdk soon.)

G4Vi commented 1 month ago

Closing in favor of https://github.com/extism/js-sdk/issues/96 as it's now just a documentation issue.