Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest Deno std and node: specifiers #869

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compileForDeno.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ensureDir, walk } from "https://deno.land/std@0.177.0/fs/mod.ts";
import { ensureDir, walk } from "https://deno.land/std@0.216.0/fs/mod.ts";
import {
basename,
dirname,
join,
relative,
} from "https://deno.land/std@0.177.0/path/posix.ts";
} from "https://deno.land/std@0.216.0/path/mod.ts";

import ts from "npm:typescript";

Expand Down
2 changes: 1 addition & 1 deletion packages/driver/src/adapter.crypto.deno.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { crypto } from "https://deno.land/std@0.177.0/crypto/mod.ts";
import { crypto } from "https://deno.land/std@0.216.0/crypto/mod.ts";

import type { CryptoUtils } from "./utils.ts";

Expand Down
2 changes: 1 addition & 1 deletion packages/driver/src/adapter.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import process from "node:process";
import crypto from "node:crypto";
import url from "node:url";
import path from "node:path";
import * as _fs from "https://deno.land/std@0.208.0/fs/mod.ts";
import * as _fs from "https://deno.land/std@0.216.0/fs/mod.ts";
import fs from "node:fs/promises";
import util from "node:util";
import { isIP as _isIP } from "node:net";
Expand Down
8 changes: 4 additions & 4 deletions packages/driver/src/globals.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export {
beforeAll,
afterAll,
it,
} from "https://deno.land/std@0.177.0/testing/bdd.ts";
import { MatchResult } from "https://deno.land/x/expect/matchers.ts";
import { bold, green, red } from "https://deno.land/std@0.177.0/fmt/colors.ts";
} from "https://deno.land/std@0.216.0/testing/bdd.ts";
import { type MatchResult } from "https://deno.land/x/expect/matchers.ts";
import { bold, green, red } from "https://deno.land/std@0.216.0/fmt/colors.ts";

export { process } from "https://deno.land/std@0.177.0/node/process.ts";
export { default as process } from "node:process";

const ACTUAL = red(bold("actual"));
const EXPECTED = green(bold("expected"));
Expand Down
10 changes: 5 additions & 5 deletions packages/driver/test/globals.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export {
beforeAll,
afterAll,
it,
} from "https://deno.land/std@0.177.0/testing/bdd.ts";
import { MatchResult } from "https://deno.land/x/expect/matchers.ts";
import { bold, green, red } from "https://deno.land/std@0.177.0/fmt/colors.ts";
} from "https://deno.land/std@0.216.0/testing/bdd.ts";
import { type MatchResult } from "https://deno.land/x/expect/matchers.ts";
import { bold, green, red } from "https://deno.land/std@0.216.0/fmt/colors.ts";

export { Buffer } from "https://deno.land/std@0.177.0/node/buffer.ts";
export { process } from "https://deno.land/std@0.177.0/node/process.ts";
export { Buffer } from "node:buffer";
export { default as process } from "node:process";

const ACTUAL = red(bold("actual"));
const EXPECTED = green(bold("expected"));
Expand Down
2 changes: 1 addition & 1 deletion packages/generate/buildDeno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ await run({
importRewriteRules: [
{
match: /^@iarna\/toml$/,
replace: "https://deno.land/std@0.208.0/toml/mod.ts",
replace: "https://deno.land/std@0.216.0/toml/mod.ts",
},
{
match: /^edgedb\/dist\//,
Expand Down
2 changes: 1 addition & 1 deletion packages/generate/makeSyntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function run() {
cwd: srcSyntax,
contentTx: content => {
if (content.indexOf("Buffer") !== -1) {
content = `import {Buffer} from "https://deno.land/std@0.177.0/node/buffer.ts";\n\n${content}`;
content = `import { Buffer } from "node:buffer";\n\n${content}`;
}
return content
.replace(reDriver, `"edgedb/_src$1.ts"`)
Expand Down
Loading