FUTURE: stabilize some `Deno` APIs behind the flag
bartlomieju opened this issue · comments
Bartek Iwańczuk commented
We would like to stabilize some of the Deno
APIs behind DENO_FUTURE=1
env var, namely:
- All the file system APIs available in
ext/fs
- WebGPU APIs in
ext/webgpu
Deno.dlopen
and related APIs inext/ffi
In other words, we don't want to perform check_unstable()
calls in these APIs if DENO_FUTURE=1
env var is present.
This requires two separate changes:
- For FS and FFI APIs we need to properly set up the unstable checker in
cli/factory.rs
to enable these two APIs ifDENO_FUTURE
is present - For the WebGPU API you want to enable it in
exposeUnstableFeaturesForWindowOrWorkerGlobalScope
in99_main.js
if thefuture
setting inruntimeOptions
is set to true.
We should add a single integration test that checks all these APIs being present without --unstable-*
flags but with DENO_FUTURE=1
env var.
Skip changing type declarations for now.
Ryan Dahl commented
webgpu and ffi not done yet