1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00
denoland-deno/tests
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
..
config chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
ffi feat: suggest deno install --entrypoint instead of deno cache (#25228) 2024-09-18 19:55:50 +00:00
integration feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
napi feat: warn when using --allow-run with no allow list (#25215) 2024-09-16 23:08:02 +00:00
node_compat test: disable 'test-child-process-ipc-next-tick.js' Node compat test (#25856) 2024-09-25 01:44:34 +02:00
registry fix(add/install): default to "latest" tag for npm packages in deno add npm:pkg (#25858) 2024-09-25 01:10:01 +00:00
specs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
testdata feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
unit fix: better error for Deno.UnsafeWindowSurface, correct HttpClient name, cleanup unused code (#25833) 2024-09-24 07:04:52 -07:00
unit_node fix(ext/node): support x509 certificates in createPublicKey (#25731) 2024-09-19 19:12:23 +05:30
util chore: update std submodule (#25595) 2024-09-12 22:32:09 +10:00
wpt feat(ext/crypto): import and export p521 keys (#25789) 2024-09-23 19:40:36 +05:30
Cargo.toml feat: improve lockfile v4 to store normalized version constraints and be more terse (#25247) 2024-08-28 14:17:47 -04:00
lib.rs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
README.md chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00

Deno Integration Tests