1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/runtime/js
Nayeem Rahman 45c49034a7
BREAKING(unstable): Improve Deno.spawn() stdio API (#14919)
- "SpawnOutput" extends "ChildStatus" instead of composing it
- "SpawnOutput::stdout", "SpawnOutput::stderr", "Child::stdin", 
"Child::stdout" and "Child::stderr" are no longer optional, instead 
made them getters that throw at runtime if that stream wasn't set 
to "piped". 
- Remove the complicated "<T extends SpawnOptions = SpawnOptions>" 
which we currently need to give proper type hints for the availability of 
these fields. Their typings for these would get increasingly complex 
if it became dependent on more options (e.g. "SpawnOptions::pty" 
which if set should make the stdio streams unavailable)
2022-07-18 15:16:12 +02:00
..
01_build.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_errors.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_version.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_web_util.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
06_util.js refactor: cleanup assert() & AssertionError definitions (#13859) 2022-03-19 13:57:37 +01:00
10_permissions.js fix(runtime): improve permission descriptor validation (#14676) 2022-05-19 17:45:09 -04:00
11_workers.js BREAKING(unstable): Enable Deno namespace in workers by default (#14581) 2022-05-17 22:27:17 +02:00
12_io.js perf(runtime): bypass tokio file and bump op buffer size to 64K (#14319) 2022-04-19 20:11:31 +05:30
13_buffer.js refactor: cleanup assert() & AssertionError definitions (#13859) 2022-03-19 13:57:37 +01:00
30_fs.js refactor: primordials for instanceof (#13527) 2022-02-01 18:06:11 +01:00
30_os.js feat(unstable): add Deno.getGid (#14528) 2022-05-31 17:42:44 +09:00
40_diagnostics.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
40_files.js Reland "perf(http): optimize ReadableStreams backed by a resource" (#14346) 2022-04-22 16:19:08 +05:30
40_fs_events.js refactor: primordials for instanceof (#13527) 2022-02-01 18:06:11 +01:00
40_http.js feat(unstable): Add Deno.upgradeHttp API (#13618) 2022-03-16 14:54:18 +01:00
40_process.js refactor(ops/process): add StdioOrRid enum (#14393) 2022-04-26 09:26:05 -04:00
40_read_file.js perf(runtime): read entire files in single ops (#14261) 2022-04-27 16:03:44 +02:00
40_signals.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
40_spawn.js BREAKING(unstable): Improve Deno.spawn() stdio API (#14919) 2022-07-18 15:16:12 +02:00
40_testing.js refactor: allocate IDs for tests (#14729) 2022-07-15 13:09:22 -04:00
40_tty.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
40_write_file.js perf: move Deno.writeTextFile and like functions to Rust (#14221) 2022-04-18 18:00:14 -04:00
41_prompt.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
90_deno_ns.js feat(ext/ffi): Callbacks (#14663) 2022-06-20 16:36:04 +05:30
99_main.js Revert "feat: add "unhandledrejection" event support (#12994) (#15080)" (#15210) 2022-07-15 01:06:20 +02:00
README.md feat: add --location=<href> and globalThis.location (#7369) 2021-01-07 19:06:08 +01:00

Runtime JavaScript Code

This directory contains Deno runtime code written in plain JavaScript.

Each file is a plain, old script, not ES modules. The reason is that snapshotting ES modules is much harder, especially if one needs to manipulate global scope (like in case of Deno).

Each file is prefixed with a number, telling in which order scripts should be loaded into V8 isolate. This is temporary solution and we're striving not to require specific order (though it's not 100% obvious if that's feasible).

Deno Web APIs

This directory facilities Web APIs that are available in Deno.

Please note, that some implementations might not be completely aligned with specification.

Some Web APIs are using ops under the hood, eg. console, performance.

Implemented Web APIs