Deno: Unstable standard library

Created on 30 Apr 2020  路  6Comments  路  Source: denoland/deno

Parts of the standard library now require the --unstable option to function. I suggest we move all things that use unstable APIs into different files which are then re-exported by multiple entry points: mod.ts and unstable.ts. unstable.ts would re export mod.ts + all unstable features.

Most helpful comment

This bit me today when using https://deno.land/std/permissions/mod.ts;

If they aren't relocated to separate files, then some kind of clear indication that --unstable is required for use.

All 6 comments

@lucacasonato I would like to take on this

I should clarify that this is just an idea, and that @ry, @bartlomieju and @piscisaureus have to make the decision on if this is how they want to proceed or if they have other ideas in mind. I am not a maintainer so I am not the one to make decisions.

So I think you should wait until there is some feedback from them.

Will be prefix of the unstable function named with UNSTATBLE_? just like react.

This bit me today when using https://deno.land/std/permissions/mod.ts;

If they aren't relocated to separate files, then some kind of clear indication that --unstable is required for use.

Convention is ok, but it would be better if there were a built-in mechanism for this as long as there is an unstable API鈥攏ot just in the standard library, but for all modules. Currently, if a module uses the unstable API, I have no way of knowing, except to parse compilation error messages.

@lucacasonato suggested on Discord:

it would be cool if deno info could tell you

I think there's no reason to change it now, closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ry picture ry  路  3Comments

kyeotic picture kyeotic  路  3Comments

xueqingxiao picture xueqingxiao  路  3Comments

motss picture motss  路  3Comments

somombo picture somombo  路  3Comments