Support deno? #1625
Replies: 5 comments 29 replies
-
What does it mean to support deno? |
Beta Was this translation helpful? Give feedback.
-
@tom-sherman have you tried another service, like jsDelivr or unpkg? |
Beta Was this translation helpful? Give feedback.
-
Should this be moved into Issues to track as a bug-request, or is deno out-of-scope? |
Beta Was this translation helpful? Give feedback.
-
Update: With Deno 1.25's npm support you can run xstate (I've only tried fsm right now but I'm sure the xstate package is the same) directly from npm in Deno: // script.js
import { createMachine } from "npm:@xstate/fsm";
const machine = createMachine({
initial: "idle",
states: {
idle: {
on: {
foo: "done",
},
},
done: {
type: "final",
},
},
});
console.log(machine.transition("idle", "foo").value); // "done"
🙌 Few issues right now:
The first two problems make it unsuitable to use in libraries right now (my current use case) and the third problem makes it unsuitable to use in your deno app if you're using TypeScript. Good progress though! |
Beta Was this translation helpful? Give feedback.
-
I use import by this url:https://esm.sh/xstate@5.6.0/dist/xstate.esm.js
|
Beta Was this translation helpful? Give feedback.
-
It would be great if xstate could support deno out of the box.
core
should be a relatively easy starting point because of it's lack of dependencies.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions