1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/tests/specs/compile
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
..
byonm_main_sub_dir chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
determinism fix(compile): make output more deterministic (#25092) 2024-08-19 16:41:11 +00:00
env_vars_support feat(compile): support --env (#24166) 2024-07-09 21:33:41 +00:00
jsr_with_deps fix(compile): certain jsr specifiers sometimes can't load (#23567) 2024-04-27 21:11:57 +00:00
npm_cjs_reexport_relative_parent_component fix(compile/windows): handle cjs re-export of relative path with parent component (#24795) 2024-07-30 16:46:15 -04:00
npmrc_auto_install refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
npmrc_byonm chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
patch feat(unstable): ability to use a local copy of jsr packages (#25068) 2024-08-20 14:11:43 +00:00
permissions_denied feat(cli): use NotCapable error for permission errors (#25431) 2024-09-10 11:12:24 -07:00
relative_permissions feat(check): turn on useUnknownInCatchVariables (#25465) 2024-09-05 15:22:31 +02:00
repetitive_unstable_flag feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
workspace fix(compile): support workspace members importing other members (#24909) 2024-08-07 07:43:05 +00:00