From e1c8d2755e23182875b8fefeb558e603dd981418 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 23 Sep 2024 14:46:50 -0400 Subject: BREAKING: remove support for remote import maps in deno.json (#25836) This is for security reasons for the time being for Deno 2. Details to follow post Deno 2.0 release. Remote import maps seem incredibly rare (only 2 usages on GitHub from what I can tell), so we'll add this back with more permissions if there's enough demand for it: https://github.com/search?type=code&q=%2F%22importMap%22%3A+%22http%2F In the meantime, use the `--import-map` flag and `"deno.importMap"` config in the LSP for remote import maps. --- tests/integration/lsp_tests.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'tests') diff --git a/tests/integration/lsp_tests.rs b/tests/integration/lsp_tests.rs index 2d8d88b27..a0368d8d1 100644 --- a/tests/integration/lsp_tests.rs +++ b/tests/integration/lsp_tests.rs @@ -363,13 +363,6 @@ fn lsp_import_map_remote() { .use_temp_cwd() .build(); let temp_dir = context.temp_dir(); - temp_dir.write( - "deno.json", - json!({ - "importMap": "http://localhost:4545/import_maps/import_map_remote.json", - }) - .to_string(), - ); temp_dir.write( "file.ts", r#" -- cgit v1.2.3