Skip to content

Commit

Permalink
Merge pull request #402 from denodrivers/update-to-modern-std
Browse files Browse the repository at this point in the history
chore: upgrade std version to 202
  • Loading branch information
lucsoft authored Sep 24, 2023
2 parents 30998d2 + bbbbb08 commit d22d883
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
14 changes: 7 additions & 7 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from "https://deno.land/x/web_bson@v0.3.0/mod.js";
export { crypto } from "https://deno.land/std@0.154.0/crypto/mod.ts";
export { BufReader } from "https://deno.land/std@0.154.0/io/mod.ts";
export { writeAll } from "https://deno.land/std@0.154.0/streams/conversion.ts";
export { deferred } from "https://deno.land/std@0.154.0/async/deferred.ts";
export type { Deferred } from "https://deno.land/std@0.154.0/async/deferred.ts";
export * as b64 from "https://deno.land/std@0.154.0/encoding/base64.ts";
export * as hex from "https://deno.land/std@0.154.0/encoding/hex.ts";
export { writeAll } from "https://deno.land/std@0.202.0/streams/write_all.ts";
export { crypto } from "https://deno.land/std@0.202.0/crypto/mod.ts";
export { BufReader } from "https://deno.land/std@0.202.0/io/mod.ts";
export { deferred } from "https://deno.land/std@0.202.0/async/deferred.ts";
export type { Deferred } from "https://deno.land/std@0.202.0/async/deferred.ts";
export * as b64 from "https://deno.land/std@0.202.0/encoding/base64.ts";
export * as hex from "https://deno.land/std@0.202.0/encoding/hex.ts";
6 changes: 1 addition & 5 deletions tests/cases/06_gridfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ import {
beforeEach,
describe,
it,
readAll,
readerFromStreamReader,
} from "../test.deps.ts";

async function streamReadAll(readable: ReadableStream): Promise<Uint8Array> {
const reader = readerFromStreamReader(readable.getReader());
const result = await readAll(reader);
return result;
return new Uint8Array(await new Response(readable).arrayBuffer());
}

describe("GridFS", () => {
Expand Down
10 changes: 3 additions & 7 deletions tests/test.deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@ export {
assertNotEquals,
assertRejects,
assertThrows,
} from "https://deno.land/std@0.201.0/assert/mod.ts";
export { equals as bytesEquals } from "https://deno.land/std@0.201.0/bytes/equals.ts";
} from "https://deno.land/std@0.202.0/assert/mod.ts";
export { equals as bytesEquals } from "https://deno.land/std@0.202.0/bytes/equals.ts";
export * as semver from "https://deno.land/x/semver@v1.4.1/mod.ts";
export {
readAll,
readerFromStreamReader,
} from "https://deno.land/std@0.201.0/streams/mod.ts";
export {
afterAll,
afterEach,
beforeAll,
beforeEach,
describe,
it,
} from "https://deno.land/std@0.201.0/testing/bdd.ts";
} from "https://deno.land/std@0.202.0/testing/bdd.ts";

0 comments on commit d22d883

Please sign in to comment.