From 736c5524d5d7c71a29b39e4ca9280db5124a1857 Mon Sep 17 00:00:00 2001 From: Lino Le Van <11367844+lino-levan@users.noreply.github.com> Date: Fri, 2 Jun 2023 17:04:23 -0700 Subject: [PATCH] chore: upgrade `preact` to 10.15.1 and `std` to 0.190.0 (#1237) Co-authored-by: Asher Gomez --- .vscode/import_map.json | 6 +++--- demo/import_map.json | 4 ++-- src/dev/deps.ts | 8 ++++---- src/dev/imports.ts | 4 ++-- src/server/deps.ts | 16 ++++++++-------- tests/cli_test.ts | 2 +- tests/deps.ts | 10 +++++----- tests/fixture/import_map.json | 4 ++-- tests/fixture_error/import_map.json | 4 ++-- tests/fixture_jsx_pragma/import-map.json | 4 ++-- tests/fixture_plugin/import_map.json | 4 ++-- www/import_map.json | 6 +++--- www/utils/screenshot.ts | 2 +- 13 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.vscode/import_map.json b/.vscode/import_map.json index 788a6785..529ab585 100644 --- a/.vscode/import_map.json +++ b/.vscode/import_map.json @@ -6,11 +6,11 @@ "$fresh/": "../", "twind": "https://esm.sh/twind@0.16.19", "twind/": "https://esm.sh/twind@0.16.19/", - "preact": "https://esm.sh/preact@10.13.1", - "preact/": "https://esm.sh/preact@10.13.1/", + "preact": "https://esm.sh/preact@10.15.1", + "preact/": "https://esm.sh/preact@10.15.1/", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.0.3", "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3", - "$std/": "https://deno.land/std@0.189.0/" + "$std/": "https://deno.land/std@0.190.0/" } } diff --git a/demo/import_map.json b/demo/import_map.json index 1348f871..b0f63712 100644 --- a/demo/import_map.json +++ b/demo/import_map.json @@ -1,8 +1,8 @@ { "imports": { "$fresh/": "../", - "preact": "https://esm.sh/preact@10.13.1", - "preact/": "https://esm.sh/preact@10.13.1/", + "preact": "https://esm.sh/preact@10.15.1", + "preact/": "https://esm.sh/preact@10.15.1/", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.0.3", "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3" diff --git a/src/dev/deps.ts b/src/dev/deps.ts index 218ac838..b25b6ea7 100644 --- a/src/dev/deps.ts +++ b/src/dev/deps.ts @@ -8,10 +8,10 @@ export { resolve, SEP, toFileUrl, -} from "https://deno.land/std@0.189.0/path/mod.ts"; -export { walk } from "https://deno.land/std@0.189.0/fs/walk.ts"; -export { parse } from "https://deno.land/std@0.189.0/flags/mod.ts"; -export { gte } from "https://deno.land/std@0.189.0/semver/mod.ts"; +} from "https://deno.land/std@0.190.0/path/mod.ts"; +export { walk } from "https://deno.land/std@0.190.0/fs/walk.ts"; +export { parse } from "https://deno.land/std@0.190.0/flags/mod.ts"; +export { gte } from "https://deno.land/std@0.190.0/semver/mod.ts"; // ts-morph export { Node, Project } from "https://deno.land/x/ts_morph@17.0.1/mod.ts"; diff --git a/src/dev/imports.ts b/src/dev/imports.ts index b124841a..b4f37109 100644 --- a/src/dev/imports.ts +++ b/src/dev/imports.ts @@ -1,9 +1,9 @@ -export const RECOMMENDED_PREACT_VERSION = "10.13.1"; +export const RECOMMENDED_PREACT_VERSION = "10.15.1"; export const RECOMMENDED_PREACT_RTS_VERSION = "6.0.3"; export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.1.3"; export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.2.3"; export const RECOMMENDED_TWIND_VERSION = "0.16.19"; -export const RECOMMENDED_STD_VERSION = "0.189.0"; +export const RECOMMENDED_STD_VERSION = "0.190.0"; export function freshImports(imports: Record) { imports["$fresh/"] = new URL("../../", import.meta.url).href; diff --git a/src/server/deps.ts b/src/server/deps.ts index ea4a5b12..5f8a329f 100644 --- a/src/server/deps.ts +++ b/src/server/deps.ts @@ -3,20 +3,20 @@ export { extname, fromFileUrl, toFileUrl, -} from "https://deno.land/std@0.189.0/path/mod.ts"; -export { walk } from "https://deno.land/std@0.189.0/fs/walk.ts"; -export { serve } from "https://deno.land/std@0.189.0/http/server.ts"; +} from "https://deno.land/std@0.190.0/path/mod.ts"; +export { walk } from "https://deno.land/std@0.190.0/fs/walk.ts"; +export { serve } from "https://deno.land/std@0.190.0/http/server.ts"; export type { ConnInfo, Handler as RequestHandler, ServeInit, -} from "https://deno.land/std@0.189.0/http/server.ts"; -export { Status } from "https://deno.land/std@0.189.0/http/http_status.ts"; +} from "https://deno.land/std@0.190.0/http/server.ts"; +export { Status } from "https://deno.land/std@0.190.0/http/http_status.ts"; export { typeByExtension, -} from "https://deno.land/std@0.189.0/media_types/mod.ts"; -export { toHashString } from "https://deno.land/std@0.189.0/crypto/to_hash_string.ts"; -export { escape } from "https://deno.land/std@0.189.0/regexp/escape.ts"; +} from "https://deno.land/std@0.190.0/media_types/mod.ts"; +export { toHashString } from "https://deno.land/std@0.190.0/crypto/to_hash_string.ts"; +export { escape } from "https://deno.land/std@0.190.0/regexp/escape.ts"; // -- esbuild -- // @deno-types="https://deno.land/x/esbuild@v0.17.11/mod.d.ts" diff --git a/tests/cli_test.ts b/tests/cli_test.ts index a0b17137..47a02306 100644 --- a/tests/cli_test.ts +++ b/tests/cli_test.ts @@ -1,5 +1,5 @@ import * as path from "$std/path/mod.ts"; -import { assertNotMatch } from "https://deno.land/std@0.189.0/testing/asserts.ts"; +import { assertNotMatch } from "https://deno.land/std@0.190.0/testing/asserts.ts"; import { Status } from "../src/server/deps.ts"; import { assert, diff --git a/tests/deps.ts b/tests/deps.ts index 74529efd..e86870f7 100644 --- a/tests/deps.ts +++ b/tests/deps.ts @@ -8,13 +8,13 @@ export { assert, assertEquals, assertStringIncludes, -} from "https://deno.land/std@0.189.0/testing/asserts.ts"; -export { assertSnapshot } from "https://deno.land/std@0.189.0/testing/snapshot.ts"; +} from "https://deno.land/std@0.190.0/testing/asserts.ts"; +export { assertSnapshot } from "https://deno.land/std@0.190.0/testing/snapshot.ts"; export { TextLineStream, -} from "https://deno.land/std@0.189.0/streams/text_line_stream.ts"; -export { delay } from "https://deno.land/std@0.189.0/async/delay.ts"; -export { retry } from "https://deno.land/std@0.189.0/async/retry.ts"; +} from "https://deno.land/std@0.190.0/streams/text_line_stream.ts"; +export { delay } from "https://deno.land/std@0.190.0/async/delay.ts"; +export { retry } from "https://deno.land/std@0.190.0/async/retry.ts"; export { default as puppeteer, Page, diff --git a/tests/fixture/import_map.json b/tests/fixture/import_map.json index 2cd9d9f9..11aab501 100644 --- a/tests/fixture/import_map.json +++ b/tests/fixture/import_map.json @@ -1,8 +1,8 @@ { "imports": { "$fresh/": "../../", - "preact": "https://esm.sh/preact@10.13.1", - "preact/": "https://esm.sh/preact@10.13.1/", + "preact": "https://esm.sh/preact@10.15.1", + "preact/": "https://esm.sh/preact@10.15.1/", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.0.3", "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3" diff --git a/tests/fixture_error/import_map.json b/tests/fixture_error/import_map.json index 57319354..02b01b6f 100644 --- a/tests/fixture_error/import_map.json +++ b/tests/fixture_error/import_map.json @@ -1,8 +1,8 @@ { "imports": { "$fresh/": "../../", - "preact": "https://esm.sh/preact@10.13.1", - "preact/": "https://esm.sh/preact@10.13.1/", + "preact": "https://esm.sh/preact@10.15.1", + "preact/": "https://esm.sh/preact@10.15.1/", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.0.3" } } diff --git a/tests/fixture_jsx_pragma/import-map.json b/tests/fixture_jsx_pragma/import-map.json index 68f2947f..ec023997 100644 --- a/tests/fixture_jsx_pragma/import-map.json +++ b/tests/fixture_jsx_pragma/import-map.json @@ -1,8 +1,8 @@ { "imports": { "$fresh/": "../../", - "preact": "https://esm.sh/preact@10.13.1", - "preact/": "https://esm.sh/preact@10.13.1/", + "preact": "https://esm.sh/preact@10.15.1", + "preact/": "https://esm.sh/preact@10.15.1/", "preact-render-to-string": "https://esm.sh/preact-render-to-string@5.2.6?external=preact" } } diff --git a/tests/fixture_plugin/import_map.json b/tests/fixture_plugin/import_map.json index 57319354..02b01b6f 100644 --- a/tests/fixture_plugin/import_map.json +++ b/tests/fixture_plugin/import_map.json @@ -1,8 +1,8 @@ { "imports": { "$fresh/": "../../", - "preact": "https://esm.sh/preact@10.13.1", - "preact/": "https://esm.sh/preact@10.13.1/", + "preact": "https://esm.sh/preact@10.15.1", + "preact/": "https://esm.sh/preact@10.15.1/", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.0.3" } } diff --git a/www/import_map.json b/www/import_map.json index f1b0d98b..3ede032f 100644 --- a/www/import_map.json +++ b/www/import_map.json @@ -3,12 +3,12 @@ "$fresh/": "../", "twind": "https://esm.sh/twind@0.16.19", "twind/": "https://esm.sh/twind@0.16.19/", - "preact": "https://esm.sh/preact@10.13.1", - "preact/": "https://esm.sh/preact@10.13.1/", + "preact": "https://esm.sh/preact@10.15.1", + "preact/": "https://esm.sh/preact@10.15.1/", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.0.3", "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3", - "$std/": "https://deno.land/std@0.189.0/", + "$std/": "https://deno.land/std@0.190.0/", "$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts" } } diff --git a/www/utils/screenshot.ts b/www/utils/screenshot.ts index b70423d1..d8b06d68 100644 --- a/www/utils/screenshot.ts +++ b/www/utils/screenshot.ts @@ -1,6 +1,6 @@ import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts"; import { Image } from "https://deno.land/x/imagescript@1.2.15/mod.ts"; -import { join } from "https://deno.land/std@0.189.0/path/mod.ts"; +import { join } from "https://deno.land/std@0.190.0/path/mod.ts"; const url = Deno.args[0]; const id = Deno.args[1];