jcayzacJ
Deno3y ago
8 replies
jcayzac

deno.jsonc "unstable" format?

I added this entry to my deno.jsonc:

"unstable": [
  "broadcast-channel",
  "ffi",
  "fs",
  "kv",
  "net",
  "http",
  "worker-options",
  "cron"
],


…and stopped passing --unstable to the CLI, but now I'm getting errors:

error: ReferenceError: BroadcastChannel is not defined


What's the proper syntax? The schema only has:

"unstable": {
  "type": "array",
  "description": "List of unstable features to enable.",
  "items": {
    "type": "string"
  }
}


…and I couldn't figure what the values are expected to be from reading the source code either.

The feature name is correct (see screenshot), but that doesn't seem to work.
Screenshot_2023-12-02_at_15.50.38.png
Was this page helpful?