deno/tools
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
..
testdata Rewrite tools/format.py in deno (#1528) 2019-01-17 15:09:44 -05:00
ts_library_builder Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
benchmark.py fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
benchmark_test.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
build.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
build_test.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
clang
deno_dir_test.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
docs.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
fmt_test.py fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
format.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
http_benchmark.py Upgrade deno_std to bef7ba (#1609) 2019-01-31 18:11:37 -05:00
http_server.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
hyper_hello.rs chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
integration_tests.py fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
is_tty_test.py fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
lint.py fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
memory
node_http.js chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
node_tcp.js chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
permission_prompt_test.py Add --allow-read test code 2019-02-09 05:57:41 -05:00
permission_prompt_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
prebuilt.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
prefetch_test.py Support --fmt 2019-02-02 17:48:43 -05:00
repl_test.py Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
run_node.py Minor code cleanups (#1570) 2019-01-24 10:54:43 -05:00
setup.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
setup_test.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
sha256sum.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
sync_third_party.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
test.py fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
test_format.py Add --allow-read (#1689) 2019-02-08 15:59:38 -05:00
third_party.py fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
throughput_benchmark.py Add --allow-read (#1689) 2019-02-08 15:59:38 -05:00
unit_tests.py fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
upload_website.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
util.py fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
util.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
util_test.py chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
util_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00