1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-02 17:01:14 -05:00
denoland-deno/tests/specs/check
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
..
check_types_dts chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
check_with_excluded_file_specified chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
cjs_default_export chore: fix flaky net_listen_allow_localhost_4555 (#23726) 2024-05-07 17:21:56 +00:00
css_import feat(check): allow using side effect imports with unknown module kinds (ex. css modules) (#23392) 2024-04-16 16:46:31 -04:00
dts_importing_non_existent fix(check): properly surface dependency errors in types file of js file (#25860) 2024-09-25 09:04:57 -04:00
export_equals_declaration_file feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00
extensionless chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
globbing feat: glob and directory support for deno check and deno cache cli arg paths (#25001) 2024-08-20 18:38:06 +00:00
jsx_import_source_types feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
jsx_import_source_types_config feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
no_implicit_override feat(check): turn on noImplicitOverride (#25695) 2024-09-18 14:49:30 +01:00
npm_pkg_empty_main_entry fix(node): handle empty 'main' entry in pkg json (#23155) 2024-04-01 07:07:11 +01:00
package_json test: rewrite some ignored tests to spec tests (#25652) 2024-09-16 15:39:58 +02:00
package_json_auto_install test: rewrite some ignored tests to spec tests (#25652) 2024-09-16 15:39:58 +02:00
package_json_fail_check test: rewrite some ignored tests to spec tests (#25652) 2024-09-16 15:39:58 +02:00
package_json_with_deno_json test: rewrite some ignored tests to spec tests (#25652) 2024-09-16 15:39:58 +02:00
random_extension chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
remote_missing_override feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
typecheck_doc_duplicate_identifiers feat(cli): evaluate code snippets in JSDoc and markdown (#25220) 2024-09-17 21:35:48 -07:00
typecheck_doc_failure feat(cli): evaluate code snippets in JSDoc and markdown (#25220) 2024-09-17 21:35:48 -07:00
typecheck_doc_in_markdown feat(cli): evaluate code snippets in JSDoc and markdown (#25220) 2024-09-17 21:35:48 -07:00
typecheck_doc_success feat(cli): evaluate code snippets in JSDoc and markdown (#25220) 2024-09-17 21:35:48 -07:00
types_resolved_relative_config chore(specs): use jsonc for metadata file (#22946) 2024-03-15 17:27:52 +00:00
unstable_suggestion refactor: move WebGPU, FFI and FS typings from unstable to stable (#25488) 2024-09-10 05:04:59 -07:00
use_unknown_in_catch_variables feat(lsp): turn on useUnknownInCatchVariables (#25474) 2024-09-06 12:23:59 +02:00
with_bare_import fix: update hint for deno add <package> (#25455) 2024-09-05 11:08:22 +02:00
workspace feat: npm workspace and better Deno workspace support (#24334) 2024-07-04 00:54:33 +00:00