2020-05-09 09:15:26 -04:00
|
|
|
## Stability
|
|
|
|
|
2020-05-18 15:53:25 -04:00
|
|
|
As of Deno 1.0.0, the `Deno` namespace APIs are stable. That means we will
|
2020-05-09 09:15:26 -04:00
|
|
|
strive to make code working under 1.0.0 continue to work in future versions.
|
|
|
|
|
|
|
|
However, not all of Deno's features are ready for production yet. Features which
|
2020-05-18 15:53:25 -04:00
|
|
|
are not ready, because they are still in draft phase, are locked behind the
|
2020-05-26 22:12:02 -04:00
|
|
|
`--unstable` command line flag.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
deno run --unstable mod_which_uses_unstable_stuff.ts
|
|
|
|
```
|
|
|
|
|
|
|
|
Passing this flag does a few things:
|
2020-05-09 09:15:26 -04:00
|
|
|
|
|
|
|
- It enables the use of unstable APIs during runtime.
|
|
|
|
- It adds the
|
2020-07-23 10:05:36 -04:00
|
|
|
[`lib.deno.unstable.d.ts`](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/master/cli/dts/lib.deno.unstable.d.ts)
|
2020-05-09 21:09:42 -04:00
|
|
|
file to the list of TypeScript definitions that are used for type checking.
|
2020-05-09 09:15:26 -04:00
|
|
|
This includes the output of `deno types`.
|
|
|
|
|
2020-05-26 22:12:02 -04:00
|
|
|
You should be aware that many unstable APIs have **not undergone a security
|
2020-05-18 15:53:25 -04:00
|
|
|
review**, are likely to have **breaking API changes** in the future, and are
|
2020-05-09 09:15:26 -04:00
|
|
|
**not ready for production**.
|
|
|
|
|
2020-05-26 22:12:02 -04:00
|
|
|
### Standard modules
|
|
|
|
|
|
|
|
Deno's standard modules (https://deno.land/std/) are not yet stable. We
|
|
|
|
currently version the standard modules differently from the CLI to reflect this.
|
|
|
|
Note that unlike the `Deno` namespace, the use of the standard modules do not
|
|
|
|
require the `--unstable` flag (unless the standard module itself makes use of an
|
|
|
|
unstable Deno feature).
|