D
Deno

help

deno.jsonc "unstable" format?

Jjcayzac12/2/2023
I added this entry to my deno.jsonc:
"unstable": [
"broadcast-channel",
"ffi",
"fs",
"kv",
"net",
"http",
"worker-options",
"cron"
],
"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
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"
}
}
"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.
No description
Jjcayzac12/2/2023
@bartlomieju is that a bug? This should work acording to the code I'm reading in the feature checker right now. Oh wow even --unstable-broadcast-channel passed to the CLI doesn't work 😮 Well, I'll just revert to passing --unstable everywhere then…
CcrowlKats12/2/2023
@jcayzac could you oen an issue?
Jjcayzac12/2/2023
GitHub
Granular unstable feature flags appear ignored · Issue #21434 · den...
Version: Deno 1.38.3 I added this entry to my deno.jsonc: "unstable": [ "broadcast-channel", "ffi", "fs", "kv", "net", "http", ...
Bbartlomieju12/2/2023
That seems like a bug. Thanks for reporting
Jjcayzac12/6/2023
@bartlomieju @crowlKats I think I fixed https://github.com/denoland/deno/pull/21466, if you have time to review it
Bbartlomieju12/6/2023
Thanks!

Looking for more? Join the community!

Recommended Posts
Signal value not updating from inside of `for await of` loop inside of an IIFE```ts // routes/connect.tsx import type { FunctionComponent } from 'preact' import type { PageProps Pricing Question - Is my pro account applied to my Orgs?Just recently purchased a pro account cause I thought a project would benefit from the extra firepowRecommended `denoland/deno` contributor editor setupI have a problem with deno trying to redefine itself via random `declare namespace Deno { ... }` thrHow to enable "WebSocketStream" using deno.json fileI want to enable "WebSocketStream" using deno.json's "unstable" array option.subhosting to run user scriptsI want to allow users to run arbitrary scripts, but they don't need to be available as endpoints, soRemove Old DeploymentsIs there a way to remove old preview deployments, or do they expire at some point? There are a numbeCompiled program cannot write to fileI made a program that can download the latest version of papermc or velocity. and it does download iHow to monkey patch an installed third party deno module.Is it possible to monkey patch an installed third party deno module?? I want to overwrite a functionMongoDB connection error on Deno DeployHello, I've a project running on Deno Deploy using Deno Fresh and I need to write information beinDeno cron instrumentationWe at Sentry are looking at adding automatic instrumentation for Deno crons: https://github.com/getsWebgl2 in Deno i.e. for unit testingnodejs has this challenge that there is no way to run webgl2 (or webgpu), i.e. for unit testing. The"A fetch response body was created during the test" when invoking a PUT request in a test?I'm writing a Deno library for uploading files on IPFS. The code is very simple: ```ts export consDeno.CommandI'm looking to run a child_process with readline and spawn. I've tried following examples and such. module not updating anymorei have a module which is not updating anymore it seems to be stuck on version 1.5 i already have pusHow Can I Delete Deno???I did this, but Deno still works! https://www.reddit.com/r/Deno/comments/xza84i/how_do_you_uninstallContributing doc is 404Refer to https://deno.com/manual/contributing (it is a part of deno's PR template)How to Extensions in JSRuntime ?Here's my function to create rt fn get_js_runtime() -> deno_core::JsRuntime { let extensions =Am I supposed to commit my vendor directory when deploying with the Github Action?My deploy failed with the message "The deployment failed: import map not found at 'file:///src/vendo