1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 10:07:54 -05:00
denoland-deno/tests/specs/run
Bartek Iwańczuk 5504acea67
feat: add --allow-import flag (#25469)
This replaces `--allow-net` for import permissions and makes the
security sandbox stricter by also checking permissions for statically
analyzable imports.

By default, this has a value of
`--allow-import=deno.land:443,jsr.io:443,esm.sh:443,raw.githubusercontent.com:443,gist.githubusercontent.com:443`,
but that can be overridden by providing a different set of hosts.

Additionally, when no value is provided, import permissions are inferred
from the CLI arguments so the following works because
`fresh.deno.dev:443` will be added to the list of allowed imports:

```ts
deno run -A -r https://fresh.deno.dev
```

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2024-09-26 01:50:54 +00:00
..
045_proxy feat: stabilize Deno.createHttpClient() (#25569) 2024-09-12 10:46:48 +10:00
allow_run_allowlist_resolution refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
allow_run_insecure_warnings feat: update warning message for --allow-run with no list (#25693) 2024-09-18 00:32:52 +02:00
bare_specifier_without_import fix: update hint for deno add <package> (#25455) 2024-09-05 11:08:22 +02:00
cjs_reexport_non_analyzable fix(node): Don't error out if we fail to statically analyze CJS re-export (#25748) 2024-09-19 18:37:36 -07:00
default_ts feat: default to TS for file extension and support ext flag in more scenarios (#25472) 2024-09-18 21:15:13 +02:00
dom_extras_dts fix(types): Conform lib.deno_web.d.ts to lib.dom.d.ts and lib.webworker.d.ts (#24599) 2024-07-22 22:02:39 +02:00
dom_readable_stream_from fix(types): Conform lib.deno_web.d.ts to lib.dom.d.ts and lib.webworker.d.ts (#24599) 2024-07-22 22:02:39 +02:00
dynamic_already_prepared perf: avoid building module graph if dynamic specifier already in graph (#24035) 2024-05-29 14:59:35 -04:00
env_unparsable_file fix: --env flag confusing message on syntax error (#23915) 2024-05-27 15:06:18 +02:00
exit_code feat: Add Deno.exitCode API (#23609) 2024-05-29 23:16:27 +00:00
import_common_js fix: add suggestion how to fix importing CJS module (#21764) 2024-09-05 12:49:07 +00:00
import_map_parent_dir fix: handle specifying an import map in an ancestor dir of deno.json (#23602) 2024-04-29 14:32:27 -04:00
invalid_emit_options fix(cli): Don't panic on invalid emit options (#23463) 2024-04-23 08:50:50 -07:00
keep_comments_ts fix(emit): regression - keep comments in emit (#23815) 2024-05-14 22:01:31 +00:00
ld_preload refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
location feat: make 'globalThis.location' a configurable property (#25812) 2024-09-23 14:18:07 +02:00
no_deno_json tests: enable auto_discovered tests of run/no_deno_json (#25821) 2024-09-23 15:37:35 +02:00
no_reparse_first_load chore: add test to ensure parsing only happens once on first load (#23837) 2024-05-21 16:12:40 -04:00
node_builtin_modules fix(node/byonm): do not accidentally resolve bare node built-ins (#25543) 2024-09-09 21:35:41 +00:00
node_prefix_missing fix(node/byonm): do not accidentally resolve bare node built-ins (#25543) 2024-09-09 21:35:41 +00:00
npm_v8flags fix(ext/node): handle node child_process with --v8-options flag (#24804) 2024-07-31 16:28:08 +02:00
package_json test: rewrite some ignored tests to spec tests (#25652) 2024-09-16 15:39:58 +02:00
package_json_auto_discovered_for_npm_binary test: rewrite some ignored tests to spec tests (#25652) 2024-09-16 15:39:58 +02:00
patch feat(unstable): ability to use a local copy of jsr packages (#25068) 2024-08-20 14:11:43 +00:00
redirect_javascript feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
require_esm fix: cjs resolution cases (#25739) 2024-09-19 21:10:34 -07:00
run_task fix(flags): don't treat empty run command as task subcommand (#25708) 2024-09-18 20:36:37 +02:00
skips_compiler_option_types fix: do not download compilerOptions -> types when not type checking (#24473) 2024-07-09 17:07:16 -04:00
sloppy_imports fix(check): properly surface dependency errors in types file of js file (#25860) 2024-09-25 09:04:57 -04:00
ts_import_assertions BREAKING: DENO_FUTURE=1 by default, or welcome to Deno 2.0 (#25213) 2024-08-30 13:58:58 -04:00
unref_stdin fix: unref stdin read (#23534) 2024-04-25 05:32:01 +00:00
unstable feat: stabilize Deno.createHttpClient() (#25569) 2024-09-12 10:46:48 +10:00
unstable_temporal_api BREAKING(temporal/unstable): Remove obsoleted Temporal APIs part 2 (#25505) 2024-09-10 21:36:43 +00:00
unstable_temporal_api_list BREAKING(temporal/unstable): Remove obsoleted Temporal APIs part 2 (#25505) 2024-09-10 21:36:43 +00:00
unstable_temporal_api_patch BREAKING(temporal/unstable): Remove obsoleted Temporal APIs part 2 (#25505) 2024-09-10 21:36:43 +00:00
v8_jitless test: add test for running in V8 jitless mode (#23054) 2024-04-15 23:47:01 +00:00
window feat: Show hints when using window global (#25805) 2024-09-23 00:05:42 +02:00
workspaces chore: enable specs::run::workspaces::explicit_import_map test (#25611) 2024-09-13 11:52:48 +02:00