Skip to content

Commit

Permalink
- [chore] update std to 0.95.0
Browse files Browse the repository at this point in the history
- [fix] linter warnings
  • Loading branch information
aricart committed May 10, 2021
1 parent e0804b8 commit d1940f1
Show file tree
Hide file tree
Showing 47 changed files with 58 additions and 58 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.92.0/flags/mod.ts | MIT License |
| https://deno.land/std@0.95.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.92.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.95.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.92.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.95.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.92.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.95.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.92.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.95.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.92.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.95.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.92.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.95.0/flags/mod.ts";
import {
connect,
ConnectionOptions,
Expand Down
5 changes: 3 additions & 2 deletions nats-base-client/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,12 @@ export class MsgHdrsImpl implements MsgHdrs {
return keys.filter((v) => {
return v === k;
});
default:
default: {
const lci = k.toLowerCase();
return keys.filter((v) => {
return lci === v.toLowerCase();
});
}
}
}

Expand Down Expand Up @@ -241,7 +242,7 @@ export class MsgHdrsImpl implements MsgHdrs {
}
// if we get non-sensical ignores/etc, we should try
// to do the right thing and use the first key that matches
let keys = this.findKeys(k, match);
const keys = this.findKeys(k, match);
k = keys.length > 0 ? keys[0] : k;

const value = MsgHdrsImpl.validHeaderValue(v);
Expand Down
6 changes: 3 additions & 3 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.92.0/io/mod.ts";
import { Deferred, deferred } from "https://deno.land/std@0.92.0/async/mod.ts";
import { BufWriter } from "https://deno.land/std@0.95.0/io/mod.ts";
import { Deferred, deferred } from "https://deno.land/std@0.95.0/async/mod.ts";
import Conn = Deno.Conn;
import {
checkOptions,
Expand All @@ -32,7 +32,7 @@ import {
} from "../nats-base-client/internal_mod.ts";
import type { TlsOptions } from "../nats-base-client/types.ts";

const VERSION = "1.0.0";
const VERSION = "1.0.4";
const LANG = "nats.deno";

// if trying to simply write to the connection for some reason
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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts";

Deno.test("codec - string", () => {
const sc = StringCodec();
Expand Down
2 changes: 1 addition & 1 deletion 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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.0/testing/asserts.ts";

import {
consumerOpts,
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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.0/testing/asserts.ts";
import { extend } from "../nats-base-client/util.ts";
import { join, resolve } from "https://deno.land/std@0.92.0/path/mod.ts";
import { join, resolve } from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.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 @@ -27,7 +27,7 @@ import {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.0/testing/asserts.ts";
import { MsgHdrsImpl } from "../nats-base-client/internal_mod.ts";
import { Match } from "../nats-base-client/headers.ts";

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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.0/testing/asserts.ts";
import { isNatsError, NatsError } from "../../nats-base-client/error.ts";

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

import { NatsServer } from "./mod.ts";
import { parse } from "https://deno.land/std@0.92.0/flags/mod.ts";
import { rgb24 } from "https://deno.land/std@0.92.0/fmt/colors.ts";
import { parse } from "https://deno.land/std@0.95.0/flags/mod.ts";
import { rgb24 } from "https://deno.land/std@0.95.0/fmt/colors.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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts";

Deno.test("conf - serializing simple", () => {
const x = {
Expand Down
6 changes: 3 additions & 3 deletions tests/helpers/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* limitations under the License.
*/
// deno-lint-ignore-file no-explicit-any
import * as path from "https://deno.land/std@0.92.0/path/mod.ts";
import { rgb24 } from "https://deno.land/std@0.92.0/fmt/colors.ts";
import * as path from "https://deno.land/std@0.95.0/path/mod.ts";
import { rgb24 } from "https://deno.land/std@0.95.0/fmt/colors.ts";
import { check } from "./mod.ts";
import {
Deferred,
Expand All @@ -24,7 +24,7 @@ import {
nuid,
timeout,
} from "../../nats-base-client/internal_mod.ts";
import { assert } from "https://deno.land/std@0.92.0/testing/asserts.ts";
import { assert } from "https://deno.land/std@0.95.0/testing/asserts.ts";
import { jsopts } from "../jstest_util.ts";

export const ServerSignals = Object.freeze({
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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.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
5 changes: 2 additions & 3 deletions tests/jetstream_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ import {
assertThrows,
assertThrowsAsync,
fail,
} from "https://deno.land/std@0.92.0/testing/asserts.ts";
import { yellow } from "https://deno.land/std@0.92.0/fmt/colors.ts";
} from "https://deno.land/std@0.95.0/testing/asserts.ts";
import { yellow } from "https://deno.land/std@0.95.0/fmt/colors.ts";
import { assert } from "../nats-base-client/denobuffer.ts";
import { PubAck } from "../nats-base-client/types.ts";
import {
Expand All @@ -55,7 +55,6 @@ import {
import { defaultJsOptions } from "../nats-base-client/jsbaseclient_api.ts";
import { connect } from "../src/connect.ts";
import { ConsumerOptsBuilderImpl } from "../nats-base-client/jsconsumeropts.ts";
import { Match } from "../nats-base-client/headers.ts";
import { assertBetween } from "./helpers/mod.ts";

function callbackConsume(debug = false): JsMsgCallback {
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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.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.92.0/path/mod.ts";
import * as path from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
import { assert } from "https://deno.land/std@0.95.0/testing/asserts.ts";
import {
ConnectionOptions,
extend,
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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.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.92.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.0/testing/asserts.ts";
import { protoLen } from "../nats-base-client/util.ts";

Deno.test("protocol - mux subscription unknown return null", async () => {
Expand Down

0 comments on commit d1940f1

Please sign in to comment.