1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-14 11:27:57 -05:00
denoland-deno/tests/specs/publish
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
..
allow_slow_types fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
banned_triple_slash_directives feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
bare_node_builtins feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00
byonm_dep fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
byonm_with_package_json chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
config_file_jsonc fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
config_flag fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
dry_run fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
dry_run_gitignored fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
excluded_deno_jsonc fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
has_slow_types fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
invalid_import feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
invalid_import_esm_sh_suggestion feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
invalid_path fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
javascript_decl_file feat(config/jsr): add license field (#25056) 2024-08-16 13:12:52 +00:00
javascript_missing_decl_file fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
jsr_jsonc fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
missing_constraint feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
missing_constraint_jsx_import_source feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
missing_deno_json chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
missing_license feat(config/jsr): add license field (#25056) 2024-08-16 13:12:52 +00:00
no_check fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
no_check_surfaces_syntax_error fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
no_token fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
node_specifier feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00
npm_workspace fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
npm_workspace_jsr_pkg_with_npm_dep BREAKING: DENO_FUTURE=1 by default, or welcome to Deno 2.0 (#25213) 2024-08-30 13:58:58 -04:00
package_json refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
prefer_fast_check_graph feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
sloppy_imports fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
successful fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
symlink fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
unanalyzable_dynamic_import fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
unsupported_jsx_tsx fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
workspace fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00