Skip to content

Deno --unstable is deprecated. Use granular flags instead. #2682

Description

@oxcabe

Describe the bug
From Deno - Unstable Feature Flags:

Warning

--unstable is deprecated - use granular flags instead

The --unstable flag is no longer being used for new features, and will be removed in a future release. All unstable features that were available using this flag are now available as granular unstable flags, notably:

  • --unstable-kv
  • --unstable-cron
    Please use these feature flags instead moving forward.

To Reproduce
Steps to reproduce the behavior:

  1. Run supabase init.
  2. Input "y" for the Generate VS Code settings for Deno? [y/N] prompt.
  3. Verify deno.unstable: true in .vscode/settings.json.

Expected behavior
The VS Code configuration uses granular flags for Deno.

Proposed solution
Replace the following line:

with something similar to:

 "deno.unstable": [
  "bare-node-builtins",
  "byonm",
  "sloppy-imports",
  "unsafe-proto",
  "webgpu",
  "broadcast-channel",
  "worker-options",
  "cron",
  "kv",
  "ffi",
  "fs",
  "http",
  "net"
],

This array contains all current unstable flags featured on the Deno website, and it should match the previous boolean setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions