Skip to content

Commit

Permalink
chore: bump std to 0.211.0 and loader to 0.8.3 (denoland#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
deer authored Jan 11, 2024
1 parent d2e9ee9 commit ca8338e
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .vscode/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@preact/signals-core": "https://esm.sh/@preact/[email protected]",
"@preact/[email protected]": "https://esm.sh/@preact/[email protected]",
"@preact/[email protected]": "https://esm.sh/@preact/[email protected]",
"$std/": "https://deno.land/std@0.208.0/",
"$std/": "https://deno.land/std@0.211.0/",
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
"$marked-mangle": "https://esm.sh/[email protected]",
"$fresh-testing-library": "https://deno.land/x/[email protected]/mod.ts",
Expand Down
8 changes: 4 additions & 4 deletions src/build/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export {
join,
relative,
toFileUrl,
} from "https://deno.land/std@0.208.0/path/mod.ts";
export { escape as regexpEscape } from "https://deno.land/std@0.208.0/regexp/escape.ts";
export { denoPlugins } from "https://deno.land/x/[email protected].2/mod.ts";
export { assertEquals } from "https://deno.land/std@0.208.0/assert/mod.ts";
} from "https://deno.land/std@0.211.0/path/mod.ts";
export { escape as regexpEscape } from "https://deno.land/std@0.211.0/regexp/escape.ts";
export { denoPlugins } from "https://deno.land/x/[email protected].3/mod.ts";
export { assertEquals } from "https://deno.land/std@0.211.0/assert/mod.ts";
1 change: 0 additions & 1 deletion src/build/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export class EsbuildBuilder implements Builder {
plugins: [
devClientUrlPlugin(opts.basePath),
buildIdPlugin(opts.buildID),
// @ts-ignore TODO: types in esbuild loader need to be updated
...denoPlugins({ configPath: opts.configPath }),
],
});
Expand Down
20 changes: 10 additions & 10 deletions src/dev/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ export {
resolve,
SEP,
toFileUrl,
} from "https://deno.land/std@0.208.0/path/mod.ts";
export { normalize } from "https://deno.land/std@0.208.0/path/posix/mod.ts";
export { DAY, WEEK } from "https://deno.land/std@0.208.0/datetime/constants.ts";
export * as colors from "https://deno.land/std@0.208.0/fmt/colors.ts";
} from "https://deno.land/std@0.211.0/path/mod.ts";
export { normalize } from "https://deno.land/std@0.211.0/path/posix/mod.ts";
export { DAY, WEEK } from "https://deno.land/std@0.211.0/datetime/constants.ts";
export * as colors from "https://deno.land/std@0.211.0/fmt/colors.ts";
export {
walk,
type WalkEntry,
WalkError,
} from "https://deno.land/std@0.208.0/fs/walk.ts";
export { parse } from "https://deno.land/std@0.208.0/flags/mod.ts";
} from "https://deno.land/std@0.211.0/fs/walk.ts";
export { parse } from "https://deno.land/std@0.211.0/flags/mod.ts";
export {
gte,
lt,
parse as semverParse,
} from "https://deno.land/std@0.208.0/semver/mod.ts";
export { emptyDir, existsSync } from "https://deno.land/std@0.208.0/fs/mod.ts";
export * as JSONC from "https://deno.land/std@0.208.0/jsonc/mod.ts";
export { assertEquals } from "https://deno.land/std@0.208.0/assert/mod.ts";
} from "https://deno.land/std@0.211.0/semver/mod.ts";
export { emptyDir, existsSync } from "https://deno.land/std@0.211.0/fs/mod.ts";
export * as JSONC from "https://deno.land/std@0.211.0/jsonc/mod.ts";
export { assertEquals } from "https://deno.land/std@0.211.0/assert/mod.ts";

// ts-morph
export { Node, Project } from "https://deno.land/x/[email protected]/mod.ts";
2 changes: 1 addition & 1 deletion src/dev/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const RECOMMENDED_PREACT_VERSION = "10.19.2";
export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.2.1";
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.5.0";
export const RECOMMENDED_TWIND_VERSION = "0.16.19";
export const RECOMMENDED_STD_VERSION = "0.208.0";
export const RECOMMENDED_STD_VERSION = "0.211.0";
export const RECOMMENDED_TAILIWIND_VERSION = "3.3.5";

export function freshImports(imports: Record<string, string>) {
Expand Down
4 changes: 2 additions & 2 deletions src/server/build_id.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { toHashString } from "./deps.ts";
import { encodeHex } from "./deps.ts";

export const DENO_DEPLOYMENT_ID = Deno.env.get("DENO_DEPLOYMENT_ID");
const deploymentId = DENO_DEPLOYMENT_ID ||
Expand All @@ -10,7 +10,7 @@ const buildIdHash = await crypto.subtle.digest(
new TextEncoder().encode(deploymentId),
);

export let BUILD_ID = toHashString(buildIdHash, "hex");
export let BUILD_ID = encodeHex(buildIdHash);

export function setBuildId(buildId: string) {
BUILD_ID = buildId;
Expand Down
24 changes: 12 additions & 12 deletions src/server/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ export {
join,
SEP,
toFileUrl,
} from "https://deno.land/std@0.208.0/path/mod.ts";
export { walk } from "https://deno.land/std@0.208.0/fs/walk.ts";
export * as colors from "https://deno.land/std@0.208.0/fmt/colors.ts";
} from "https://deno.land/std@0.211.0/path/mod.ts";
export { walk } from "https://deno.land/std@0.211.0/fs/walk.ts";
export * as colors from "https://deno.land/std@0.211.0/fmt/colors.ts";
export {
type Handler as ServeHandler,
serve,
} from "https://deno.land/std@0.208.0/http/server.ts";
export { STATUS_CODE } from "https://deno.land/std@0.208.0/http/status.ts";
} from "https://deno.land/std@0.211.0/http/server.ts";
export { STATUS_CODE } from "https://deno.land/std@0.211.0/http/status.ts";
export {
contentType,
} from "https://deno.land/std@0.208.0/media_types/content_type.ts";
export { toHashString } from "https://deno.land/std@0.208.0/crypto/to_hash_string.ts";
export { escape } from "https://deno.land/std@0.208.0/regexp/escape.ts";
export * as JSONC from "https://deno.land/std@0.208.0/jsonc/mod.ts";
} from "https://deno.land/std@0.211.0/media_types/content_type.ts";
export { encodeHex } from "https://deno.land/std@0.211.0/encoding/hex.ts";
export { escape } from "https://deno.land/std@0.211.0/regexp/escape.ts";
export * as JSONC from "https://deno.land/std@0.211.0/jsonc/mod.ts";
export { renderToString } from "https://esm.sh/*[email protected]";
export {
assertEquals,
assertThrows,
} from "https://deno.land/std@0.208.0/assert/mod.ts";
} from "https://deno.land/std@0.211.0/assert/mod.ts";
export {
isIdentifierChar,
isIdentifierStart,
} from "https://esm.sh/@babel/[email protected]";
export { normalize } from "https://deno.land/std@0.208.0/path/posix/mod.ts";
export { assertSnapshot } from "https://deno.land/std@0.208.0/testing/snapshot.ts";
export { normalize } from "https://deno.land/std@0.211.0/path/posix/mod.ts";
export { assertSnapshot } from "https://deno.land/std@0.211.0/testing/snapshot.ts";
22 changes: 11 additions & 11 deletions tests/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export {
assertNotMatch,
assertRejects,
assertStringIncludes,
} from "https://deno.land/std@0.208.0/assert/mod.ts";
export { assertSnapshot } from "https://deno.land/std@0.208.0/testing/snapshot.ts";
} from "https://deno.land/std@0.211.0/assert/mod.ts";
export { assertSnapshot } from "https://deno.land/std@0.211.0/testing/snapshot.ts";
export {
TextLineStream,
} from "https://deno.land/std@0.208.0/streams/text_line_stream.ts";
export { delay } from "https://deno.land/std@0.208.0/async/delay.ts";
export { retry } from "https://deno.land/std@0.208.0/async/retry.ts";
} from "https://deno.land/std@0.211.0/streams/text_line_stream.ts";
export { delay } from "https://deno.land/std@0.211.0/async/delay.ts";
export { retry } from "https://deno.land/std@0.211.0/async/retry.ts";
export {
default as puppeteer,
Page,
Expand All @@ -33,7 +33,7 @@ export {
} from "https://esm.sh/[email protected]";
export { defineConfig, type Preset } from "https://esm.sh/@twind/[email protected]";
export { default as presetTailwind } from "https://esm.sh/@twind/[email protected]";
export { copy } from "https://deno.land/std@0.208.0/fs/mod.ts";
export { copy } from "https://deno.land/std@0.211.0/fs/mod.ts";
export {
basename,
dirname,
Expand All @@ -43,8 +43,8 @@ export {
relative,
SEP,
toFileUrl,
} from "https://deno.land/std@0.208.0/path/mod.ts";
export * as JSONC from "https://deno.land/std@0.208.0/jsonc/mod.ts";
export * as colors from "https://deno.land/std@0.208.0/fmt/colors.ts";
export { STATUS_CODE } from "https://deno.land/std@0.208.0/http/status.ts";
export { stripAnsiCode } from "https://deno.land/std@0.208.0/fmt/colors.ts";
} from "https://deno.land/std@0.211.0/path/mod.ts";
export * as JSONC from "https://deno.land/std@0.211.0/jsonc/mod.ts";
export * as colors from "https://deno.land/std@0.211.0/fmt/colors.ts";
export { STATUS_CODE } from "https://deno.land/std@0.211.0/http/status.ts";
export { stripAnsiCode } from "https://deno.land/std@0.211.0/fmt/colors.ts";
2 changes: 1 addition & 1 deletion tests/fixture_route_analysis/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preact/": "https://esm.sh/[email protected]/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"$std/": "https://deno.land/std@0.208.0/"
"$std/": "https://deno.land/std@0.211.0/"
},
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
2 changes: 1 addition & 1 deletion www/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"preact/": "https://esm.sh/[email protected]/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/@preact/[email protected]",
"$std/": "https://deno.land/std@0.208.0/",
"$std/": "https://deno.land/std@0.211.0/",
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
"$marked-mangle": "https://esm.sh/[email protected]",
"$fresh-testing-library": "https://deno.land/x/[email protected]/mod.ts",
Expand Down
2 changes: 1 addition & 1 deletion www/utils/screenshot.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import puppeteer from "https://deno.land/x/[email protected]/mod.ts";
import { Image } from "https://deno.land/x/[email protected]/mod.ts";
import { join } from "https://deno.land/std@0.208.0/path/mod.ts";
import { join } from "https://deno.land/std@0.211.0/path/mod.ts";

const url = Deno.args[0];
const id = Deno.args[1];
Expand Down

0 comments on commit ca8338e

Please sign in to comment.