1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/specs/doc
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
..
_060_deno_doc_displays_all_overloads_in_details_view chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
builtin chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
deno_doc chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
html chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
html_lint_referenced_private_types_fixed chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
import_map chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
invalid_url chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
json feat: include version number in all --json based outputs (#25335) 2024-09-05 08:51:40 +00:00
lint_html_success chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
lint_json_success feat: include version number in all --json based outputs (#25335) 2024-09-05 08:51:40 +00:00
lint_referenced_private_types_error chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
lint_referenced_private_types_fixed chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
lint_success chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
referenced_private_types chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
types_header feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
types_header_direct feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
types_hint chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00
types_ref chore: deprecate doc itests (#25452) 2024-09-05 08:09:09 +00:00