Skip to content

Commit

Permalink
[chore] bumped deno to 1.2.2 and deno std to 0.63.0 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart authored Aug 4, 2020
1 parent ffb68ce commit 8cad22b
Show file tree
Hide file tree
Showing 33 changed files with 34 additions and 37 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
deno-version: [1.2.0]
deno-version: [1.2.2]

steps:
- name: Git Checkout Deno Module
Expand All @@ -37,9 +37,6 @@ jobs:
unzip tmp.zip
mv nats-server-$NATS_VERSION-linux-amd64 nats-server
- name: ls
run: ls -lg

- name: Lint Deno Module
run: deno fmt --check

Expand Down
2 changes: 1 addition & 1 deletion examples/bench.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.61.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.63.0/flags/mod.ts";
import { connect, Nuid } from "../src/mod.ts";
const defaults = {
s: "nats://127.0.0.1:4222",
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.61.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.63.0/flags/mod.ts";
import { ConnectionOptions, connect } 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.61.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.63.0/flags/mod.ts";
import { ConnectionOptions, connect, StringCodec } from "../src/mod.ts";
import { headers, MsgHdrs } from "../nats-base-client/mod.ts";
import { delay } from "../nats-base-client/internal_mod.ts";
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.61.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.63.0/flags/mod.ts";
import { ConnectionOptions, connect, StringCodec } from "../src/mod.ts";
import { headers } from "../nats-base-client/mod.ts";

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.61.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.63.0/flags/mod.ts";
import { ConnectionOptions, connect, StringCodec } from "../src/mod.ts";
import { delay } from "../nats-base-client/internal_mod.ts";

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.61.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.63.0/flags/mod.ts";
import { ConnectionOptions, connect, StringCodec } from "../src/mod.ts";

const argv = parse(
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.61.0/io/mod.ts";
import { Deferred, deferred } from "https://deno.land/std@0.61.0/async/mod.ts";
import { BufWriter } from "https://deno.land/std@0.63.0/io/mod.ts";
import { Deferred, deferred } from "https://deno.land/std@0.63.0/async/mod.ts";
import Conn = Deno.Conn;
import {
ConnectionOptions,
Expand Down
2 changes: 1 addition & 1 deletion tests/auth_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import {
fail,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";
import {
connect,
ErrorCode,
Expand Down
2 changes: 1 addition & 1 deletion tests/autounsub_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
import {
assertEquals,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";

import {
ErrorCode,
Expand Down
2 changes: 1 addition & 1 deletion tests/basics_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
assertEquals,
assertThrowsAsync,
fail,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";
import {
connect,
Msg,
Expand Down
2 changes: 1 addition & 1 deletion tests/binary_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import {
assertEquals,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";
import {
connect,
Msg,
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.61.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.63.0/testing/asserts.ts";
import { DataBuffer } from "../nats-base-client/internal_mod.ts";

Deno.test("databuffer - empty", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/disconnect_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Lock, NatsServer } from "./helpers/mod.ts";
import { ParserState } from "../nats-base-client/internal_mod.ts";
import {
assertEquals,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";

Deno.test("disconnect - close handler is called on close", async () => {
const ns = await NatsServer.start();
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.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.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 @@ -2,7 +2,7 @@ import { NatsServer, Lock, ServerSignals } from "../tests/helpers/mod.ts";
import { connect, Events, ServersChanged } from "../src/mod.ts";
import {
assertEquals,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";
import { delay } 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 @@ -15,7 +15,7 @@ import {
assertArrayContains,
assert,
fail,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";

Deno.test("headers - option", async () => {
const srv = await NatsServer.start();
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 {
fail,
assert,
assertEquals,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.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
@@ -1,4 +1,4 @@
import { assert, fail } from "https://deno.land/std@0.61.0/testing/asserts.ts";
import { assert, fail } from "https://deno.land/std@0.63.0/testing/asserts.ts";

export function assertErrorCode(err: Error, ...codes: string[]) {
const { code } = err as { code?: string };
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/cluster.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
NatsServer,
} from "./mod.ts";
import { parse } from "https://deno.land/std@0.61.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.63.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.61.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.63.0/testing/asserts.ts";

Deno.test("conf - serializing simple", () => {
let x = {
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/launcher.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as path from "https://deno.land/std@0.61.0/path/mod.ts";
import * as path from "https://deno.land/std@0.63.0/path/mod.ts";
import { check } from "./mod.ts";
import {
deferred,
Expand Down
2 changes: 1 addition & 1 deletion tests/iterators_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import { connect, createInbox, ErrorCode, NatsError } from "../src/mod.ts";
import {
assertEquals,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";
import { assertErrorCode, Lock, NatsServer } from "./helpers/mod.ts";

const u = "demo.nats.io:4222";
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.61.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.63.0/testing/asserts.ts";
import {
connect,
createInbox,
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 {
assertEquals,
assertThrows,
assertArrayContains,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";
import { NatsError, MsgHdrsImpl } 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 {
assertEquals,
assert,
fail,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";

Deno.test("noresponders - option", async () => {
const srv = await NatsServer.start();
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 {
assertEquals,
assertMatch,
assert,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.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, Lock } from "./helpers/mod.ts";
import {
assertEquals,
equal,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";

Deno.test("protocol - partial messages correctly", async () => {
const sc = StringCodec();
Expand Down
2 changes: 1 addition & 1 deletion tests/queues_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from "../src/mod.ts";
import {
assertEquals,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.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.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.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 @@ -16,7 +16,7 @@
import { Servers } from "../nats-base-client/servers.ts";
import {
assertEquals,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";
import { ServerInfo } from "../nats-base-client/internal_mod.ts";

Deno.test("servers - single", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/token_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
import {
fail,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";
import { connect, ErrorCode } from "../src/mod.ts";
import {
assertErrorCode,
Expand Down
2 changes: 1 addition & 1 deletion tests/types_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
import {
assert,
assertEquals,
} from "https://deno.land/std@0.61.0/testing/asserts.ts";
} from "https://deno.land/std@0.63.0/testing/asserts.ts";

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

Expand Down

0 comments on commit 8cad22b

Please sign in to comment.