From 5d51c121c3cf09a890a8aee1ff1d220ca892de0c Mon Sep 17 00:00:00 2001 From: ERFANIUM Date: Sat, 19 Mar 2022 01:54:41 +0330 Subject: [PATCH] bump: update std --- README.md | 23 ++++++++--------------- deps.ts | 16 ++++++++-------- tests/test.deps.ts | 4 ++-- 3 files changed, 18 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 35d3b25..deb8a40 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,6 @@ ## Links - [Docs](https://doc.deno.land/https/deno.land/x/mongo/mod.ts) -- [Benchmarks]() TODO - -## Examples - -- [deno-deploy-mongo](https://github.com/erfanium/deno-deploy-mongo) A basic - twitter like app with Deno, MongoDB and oak deployed on Deno Deploy ### Import @@ -195,20 +189,19 @@ await writer.close(); const file = await new Response(bucket.openDownloadStream(id)).text(); ``` -## Unit-Testing +## Community Resources -To mock mongo-collections for use in unit-tests, please refer to the -[denomongo-unittest-utils](https://deno.land/x/denomongo_unittest_utils) module. +### Examples -## Contributing +- [deno-deploy-mongo](https://github.com/erfanium/deno-deploy-mongo) A simple + app with Deno, MongoDB and oak deployed on Deno Deploy and MongoDB Atlas -### Command to be implemented +### Tools -https://docs.mongodb.com/manual/reference/command/ +- [denomongo-unittest-utils](https://deno.land/x/denomongo_unittest_utils) To + mock mongo-collections for use in unit-tests -### API style refer to - -http://mongodb.github.io/node-mongodb-native/3.6/api/ +## Contributing ### Local testing with Docker diff --git a/deps.ts b/deps.ts index 9a59421..ca6e710 100644 --- a/deps.ts +++ b/deps.ts @@ -1,8 +1,8 @@ -export * from "https://deno.land/x/web_bson@v0.1.9/mod.ts"; -export { crypto } from "https://deno.land/std@0.126.0/crypto/mod.ts"; -export { BufReader } from "https://deno.land/std@0.126.0/io/mod.ts"; -export { writeAll } from "https://deno.land/std@0.126.0/streams/conversion.ts"; -export { deferred } from "https://deno.land/std@0.126.0/async/deferred.ts"; -export type { Deferred } from "https://deno.land/std@0.126.0/async/deferred.ts"; -export * as b64 from "https://deno.land/std@0.126.0/encoding/base64.ts"; -export * as hex from "https://deno.land/std@0.126.0/encoding/hex.ts"; +export * from "https://deno.land/x/web_bson@v0.1.10/mod.ts"; +export { crypto } from "https://deno.land/std@0.130.0/crypto/mod.ts"; +export { BufReader } from "https://deno.land/std@0.130.0/io/mod.ts"; +export { writeAll } from "https://deno.land/std@0.130.0/streams/conversion.ts"; +export { deferred } from "https://deno.land/std@0.130.0/async/deferred.ts"; +export type { Deferred } from "https://deno.land/std@0.130.0/async/deferred.ts"; +export * as b64 from "https://deno.land/std@0.130.0/encoding/base64.ts"; +export * as hex from "https://deno.land/std@0.130.0/encoding/hex.ts"; diff --git a/tests/test.deps.ts b/tests/test.deps.ts index b7852c9..a7cb37f 100644 --- a/tests/test.deps.ts +++ b/tests/test.deps.ts @@ -4,6 +4,6 @@ export { assertNotEquals, assertRejects, assertThrows, -} from "https://deno.land/std@0.126.0/testing/asserts.ts"; -export { equals as bytesEquals } from "https://deno.land/std@0.126.0/bytes/equals.ts"; +} from "https://deno.land/std@0.130.0/testing/asserts.ts"; +export { equals as bytesEquals } from "https://deno.land/std@0.130.0/bytes/equals.ts"; export * as semver from "https://deno.land/x/semver@v1.4.0/mod.ts";