Skip to content

Commit

Permalink
bumped deno std to 0.90.0 (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Mar 15, 2021
1 parent 25f69de commit 90ad783
Show file tree
Hide file tree
Showing 47 changed files with 53 additions and 54 deletions.
2 changes: 1 addition & 1 deletion dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ This file lists the dependencies used in this repository.

| Dependency | License |
| ----------------------------------------- | ----------- |
| https://deno.land/std@0.83.0/flags/mod.ts | MIT License |
| https://deno.land/std@0.90.0/flags/mod.ts | MIT License |
| http://github.com/nats-io/nkeys.js | Apache-2.0 |
2 changes: 1 addition & 1 deletion examples/bench.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.83.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.90.0/flags/mod.ts";
import { connect, Nuid } from "../src/mod.ts";
import { Bench, Metric } from "../nats-base-client/bench.ts";
const defaults = {
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-events.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.83.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.90.0/flags/mod.ts";
import { connect, ConnectionOptions } from "../src/mod.ts";

const argv = parse(
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-pub.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.83.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.90.0/flags/mod.ts";
import {
connect,
ConnectionOptions,
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-rep.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.83.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.90.0/flags/mod.ts";
import {
connect,
ConnectionOptions,
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-req.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.83.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.90.0/flags/mod.ts";
import {
connect,
ConnectionOptions,
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-sub.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.83.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.90.0/flags/mod.ts";
import {
connect,
ConnectionOptions,
Expand Down
4 changes: 2 additions & 2 deletions src/deno_transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* limitations under the License.
*/

import { BufWriter } from "https://deno.land/std@0.83.0/io/mod.ts";
import { Deferred, deferred } from "https://deno.land/std@0.83.0/async/mod.ts";
import { BufWriter } from "https://deno.land/std@0.90.0/io/mod.ts";
import { Deferred, deferred } from "https://deno.land/std@0.90.0/async/mod.ts";
import Conn = Deno.Conn;
import {
checkOptions,
Expand Down
2 changes: 1 addition & 1 deletion tests/auth_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import {
assertEquals,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import {
connect,
credsAuthenticator,
Expand Down
2 changes: 1 addition & 1 deletion tests/autounsub_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";

import {
connect,
Expand Down
2 changes: 1 addition & 1 deletion tests/basics_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
assertThrows,
assertThrowsAsync,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import {
connect,
createInbox,
Expand Down
2 changes: 1 addition & 1 deletion tests/bench_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { Bench, connect, createInbox } from "../src/mod.ts";
import { BenchOpts, Metric } from "../nats-base-client/bench.ts";

Expand Down
2 changes: 1 addition & 1 deletion tests/binary_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { connect, createInbox, Msg } from "../src/mod.ts";
import { deferred } from "../nats-base-client/internal_mod.ts";

Expand Down
2 changes: 1 addition & 1 deletion tests/buffer_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import {
DenoBuffer,
MAX_SIZE,
Expand Down
2 changes: 1 addition & 1 deletion tests/clobber_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import { NatsServer } from "./helpers/launcher.ts";
import { createInbox, DataBuffer } from "../nats-base-client/internal_mod.ts";
import { connect } from "../src/mod.ts";
import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";

function makeBuffer(N: number): Uint8Array {
const buf = new Uint8Array(N);
Expand Down
2 changes: 1 addition & 1 deletion tests/codec_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/
import { JSONCodec, StringCodec } from "../nats-base-client/codec.ts";
import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";

Deno.test("codec - string", () => {
const sc = StringCodec();
Expand Down
3 changes: 1 addition & 2 deletions tests/consumeropts_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import {
assertEquals,
assertThrows,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";

import {
consumerOpts,
Expand All @@ -29,7 +29,6 @@ import {
DeliverPolicy,
JsMsgCallback,
} from "../nats-base-client/types.ts";
import { nanos } from "../nats-base-client/jsutil.ts";

Deno.test("consumeropts - isConsumerOptsBuilder", () => {
assertEquals(isConsumerOptsBuilder(consumerOpts()), true);
Expand Down
2 changes: 1 addition & 1 deletion tests/databuffer_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { DataBuffer } from "../nats-base-client/internal_mod.ts";

Deno.test("databuffer - empty", () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/doublesubs_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import {
import {
assertArrayIncludes,
assertEquals,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { extend } from "../nats-base-client/util.ts";
import { join, resolve } from "https://deno.land/std@0.83.0/path/mod.ts";
import { join, resolve } from "https://deno.land/std@0.90.0/path/mod.ts";

async function runDoubleSubsTest(tls: boolean) {
const cwd = Deno.cwd();
Expand Down
2 changes: 1 addition & 1 deletion tests/drain_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
assertThrows,
assertThrowsAsync,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import {
connect,
createInbox,
Expand Down
2 changes: 1 addition & 1 deletion tests/events_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
import { Lock, NatsServer, ServerSignals } from "../tests/helpers/mod.ts";
import { connect, Events, ServersChanged } from "../src/mod.ts";
import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { delay, NatsConnectionImpl } from "../nats-base-client/internal_mod.ts";

Deno.test("events - close on close", async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/headers_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
assert,
assertArrayIncludes,
assertEquals,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { MsgHdrsImpl } from "../nats-base-client/internal_mod.ts";

Deno.test("headers - option", async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/heartbeats_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
assert,
assertEquals,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";

import {
DebugEvents,
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/asserts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
assertThrows,
assertThrowsAsync,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { isNatsError, NatsError } from "../../nats-base-client/error.ts";

export function assertErrorCode(err: Error, ...codes: string[]) {
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

import { NatsServer } from "./mod.ts";
import { parse } from "https://deno.land/std@0.83.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.90.0/flags/mod.ts";

const defaults = {
c: 2,
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/conf_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

import { toConf } from "./launcher.ts";
import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";

Deno.test("conf - serializing simple", () => {
const x = {
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* limitations under the License.
*/
// deno-lint-ignore-file no-explicit-any
import * as path from "https://deno.land/std@0.83.0/path/mod.ts";
import * as path from "https://deno.land/std@0.90.0/path/mod.ts";
import { check } from "./mod.ts";
import {
Deferred,
deferred,
nuid,
timeout,
} from "../../nats-base-client/internal_mod.ts";
import { assert } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assert } from "https://deno.land/std@0.90.0/testing/asserts.ts";

export const ServerSignals = Object.freeze({
QUIT: Deno.Signal.SIGQUIT,
Expand Down
2 changes: 1 addition & 1 deletion tests/iterators_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/
import { connect, createInbox, ErrorCode, NatsError } from "../src/mod.ts";
import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { assertErrorCode, Lock, NatsServer } from "./helpers/mod.ts";
import { assert } from "../nats-base-client/denobuffer.ts";
import { QueuedIteratorImpl } from "../nats-base-client/queued_iterator.ts";
Expand Down
4 changes: 2 additions & 2 deletions tests/jetstream_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ import {
assertThrows,
assertThrowsAsync,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { yellow } from "https://deno.land/std@0.83.0/fmt/colors.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { yellow } from "https://deno.land/std@0.90.0/fmt/colors.ts";
import { assert } from "../nats-base-client/denobuffer.ts";
import { PubAck } from "../nats-base-client/types.ts";
import {
Expand Down
2 changes: 1 addition & 1 deletion tests/jsm_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
assertThrows,
assertThrowsAsync,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import {
AckPolicy,
AdvisoryKind,
Expand Down
2 changes: 1 addition & 1 deletion tests/jsmsg_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import {
assertEquals,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import {
connect,
createInbox,
Expand Down
2 changes: 1 addition & 1 deletion tests/json_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";
import {
connect,
createInbox,
Expand Down
4 changes: 2 additions & 2 deletions tests/jstest_util.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from "https://deno.land/std@0.83.0/path/mod.ts";
import * as path from "https://deno.land/std@0.90.0/path/mod.ts";
import { NatsServer } from "../tests/helpers/mod.ts";
import { connect } from "../src/mod.ts";
import { assert } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assert } from "https://deno.land/std@0.90.0/testing/asserts.ts";
import {
ConnectionOptions,
extend,
Expand Down
2 changes: 1 addition & 1 deletion tests/msgheaders_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
assertArrayIncludes,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { MsgHdrsImpl, NatsError } from "../nats-base-client/internal_mod.ts";

Deno.test("msgheaders - basics", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/noresponders_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
assert,
assertEquals,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";

Deno.test("noresponders - option", async () => {
const srv = await NatsServer.start();
Expand Down
2 changes: 1 addition & 1 deletion tests/parseip_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// license that can be found in the LICENSE file.
import { parseIP } from "../nats-base-client/internal_mod.ts";

import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { ipV4 } from "../nats-base-client/ipparser.ts";

Deno.test("ipparser", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/parser_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import type { Publisher } from "../nats-base-client/protocol.ts";

const te = new TextEncoder();
Expand Down
2 changes: 1 addition & 1 deletion tests/properties_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
assert,
assertEquals,
assertMatch,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";

import { connect } from "../src/mod.ts";
import { DenoTransport } from "../src/deno_transport.ts";
Expand Down
2 changes: 1 addition & 1 deletion tests/protocol_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { assertErrorCode } from "./helpers/mod.ts";
import {
assertEquals,
equal,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import { protoLen } from "../nats-base-client/util.ts";

Deno.test("protocol - mux subscription unknown return null", async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/queues_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

import { connect, createInbox, Subscription } from "../src/mod.ts";
import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";

const u = "demo.nats.io:4222";

Expand Down
2 changes: 1 addition & 1 deletion tests/reconnect_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
assert,
assertEquals,
fail,
} from "https://deno.land/std@0.83.0/testing/asserts.ts";
} from "https://deno.land/std@0.90.0/testing/asserts.ts";
import {
connect,
createInbox,
Expand Down
2 changes: 1 addition & 1 deletion tests/servers_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
*/
import { Servers } from "../nats-base-client/servers.ts";
import { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.90.0/testing/asserts.ts";
import type { ServerInfo } from "../nats-base-client/internal_mod.ts";
import { setTransportFactory } from "../nats-base-client/internal_mod.ts";

Expand Down

0 comments on commit 90ad783

Please sign in to comment.