deno/js
Kitson Kelly a21a5ad2fa Add Deno global namespace (#1748)
Resolves #1705

This PR adds the Deno APIs as a global namespace named `Deno`. For backwards
compatibility, the ability to `import * from "deno"` is preserved. I have tried
to convert every test and internal code the references the module to use the
namespace instead, but because I didn't break compatibility I am not sure.

On the REPL, `deno` no longer exists, replaced only with `Deno` to align with
the regular runtime.

The runtime type library includes both the namespace and module. This means it
duplicates the whole type information. When we remove the functionality from the
runtime, it will be a one line change to the library generator to remove the
module definition from the type library.

I marked a `TODO` in a couple places where to remove the `"deno"` module, but
there are additional places I know I didn't mark.
2019-02-12 10:08:56 -05:00
..
deps/https/deno.land/x Upgrade deno_std for std/prettier/main.ts 2019-02-02 17:48:43 -05:00
mixins Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
assets.ts Happy new year! 2019-01-02 02:37:08 +01:00
blob.ts Support more fetch init body types (#1449) 2019-01-03 06:41:20 -05:00
blob_test.ts Remove unnecessary async keyword in test file (#1507) 2019-01-13 09:39:23 -05:00
buffer.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
buffer_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
chmod.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
chmod_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
compiler.ts Rationalise startup for compiler/main (#1737) 2019-02-10 20:07:02 -05:00
compiler_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
console.ts Support scoped variables, unblock REPL async op, and REPL error colors (#1721) 2019-02-09 16:55:40 -05:00
console_table.ts Add console.table (#1608) 2019-01-28 16:41:29 -05:00
console_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
copy_file.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
copy_file_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
custom_event.ts Web API: CustomEvent (#1505) 2019-01-23 06:20:53 -06:00
custom_event_test.ts Web API: CustomEvent (#1505) 2019-01-23 06:20:53 -06:00
deno.ts Adds deno.noColor (#1716) 2019-02-08 22:13:04 -05:00
dir.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
dir_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
dispatch.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
dom_file.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
dom_types.ts Web API: CustomEvent (#1505) 2019-01-23 06:20:53 -06:00
errors.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
event.ts Web API: CustomEvent (#1505) 2019-01-23 06:20:53 -06:00
event_target.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
event_target_test.ts Web API: CustomEvent (#1505) 2019-01-23 06:20:53 -06:00
event_test.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
fetch.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
fetch_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
file_info.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
file_test.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
files.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
files_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
flatbuffers.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
form_data.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
form_data_test.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
format_error.ts Support scoped variables, unblock REPL async op, and REPL error colors (#1721) 2019-02-09 16:55:40 -05:00
global_eval.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
globals.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
globals_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
headers.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
headers_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
io.ts docs/typo: readerIterator -> toAsyncIterator as exported (#1620) 2019-01-29 13:24:40 -05:00
lib.web_assembly.d.ts Add WebAssembly to runtime library (#1677) 2019-02-05 08:12:58 -05:00
libdeno.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
main.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
make_temp_dir.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
make_temp_dir_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
metrics.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
metrics_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
mkdir.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
mkdir_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
mock_builtin.js chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
net.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
net_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
os.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
os_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
performance.ts Add performance.now (#1633) 2019-02-02 01:27:42 -05:00
performance_test.ts Add performance.now (#1633) 2019-02-02 01:27:42 -05:00
platform.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
platform_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
plugins.d.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
process.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
process_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
read_dir.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
read_dir_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
read_file.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
read_file_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
read_link.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
read_link_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
remove.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
remove_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
rename.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
rename_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
repl.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
resources.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
resources_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
stat.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
stat_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
symlink.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
symlink_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
test_util.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
text_encoding.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
text_encoding_test.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
timers.ts timers: use int instead of double for timeout type (#1469) 2019-01-26 22:10:38 +01:00
timers_test.ts timers: use int instead of double for timeout type (#1469) 2019-01-26 22:10:38 +01:00
truncate.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
truncate_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
types.ts Split out compiler snapshot (#1566) 2019-01-28 20:41:28 -05:00
unit_tests.ts Add performance.now (#1633) 2019-02-02 01:27:42 -05:00
url.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
url_search_params.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
url_search_params_test.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
url_test.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
util.ts Compiler cleanups and minor improvements (#1656) 2019-02-02 18:27:53 -05:00
workers.ts Native ES modules (#1460) 2019-01-09 12:59:46 -05:00
write_file.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
write_file_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00