From c8b477aa8d9263326403896caa3d8292022e90ad Mon Sep 17 00:00:00 2001 From: aricart Date: Thu, 9 Feb 2023 09:51:46 -0400 Subject: [PATCH 1/2] [BUMP] lib version, CI test dependencies --- .github/workflows/test.yml | 11 ++--------- src/deno_transport.ts | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c29dce3f..dde9c3e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: environment: CI strategy: matrix: - deno-version: [1.29.2] + deno-version: [1.30.3] steps: - name: Git Checkout Deno Module @@ -30,7 +30,7 @@ jobs: deno-version: ${{ matrix.deno-version }} - name: Set NATS Server Version - run: echo "NATS_VERSION=v2.9.11" >> $GITHUB_ENV + run: echo "NATS_VERSION=v2.9.14" >> $GITHUB_ENV # this here because dns seems to be wedged on gha # - name: Add hosts to /etc/hosts @@ -44,13 +44,6 @@ jobs: mv nats-server-$NATS_VERSION-linux-amd64 nats-server rm nats-server/README.md LICENSE -# - name: Get nats-server -# run: | -# wget "https://github.com/aricart/wsgnatsd/releases/download/v0.8.4/nats-server-$NATS_VERSION-linux-amd64.zip" -O tmp.zip -# unzip tmp.zip -# mv nats-server-$NATS_VERSION-linux-amd64 nats-server -# rm nats-server/README.md LICENSE - - name: Lint Deno Module run: deno fmt --check --ignore=docs/ diff --git a/src/deno_transport.ts b/src/deno_transport.ts index cf57e06a..8fb9a856 100644 --- a/src/deno_transport.ts +++ b/src/deno_transport.ts @@ -33,7 +33,7 @@ import { } from "../nats-base-client/internal_mod.ts"; import type { TlsOptions } from "../nats-base-client/types.ts"; -const VERSION = "1.11.0"; +const VERSION = "1.12.0"; const LANG = "nats.deno"; // if trying to simply write to the connection for some reason From b42cc28f7616692562313874249ee901da9d0a1c Mon Sep 17 00:00:00 2001 From: aricart Date: Thu, 9 Feb 2023 10:44:04 -0400 Subject: [PATCH 2/2] [CHORE] update copyright --- bin/exports.ts | 19 +++++++++++++++++-- dependencies.md | 2 +- examples/bench.js | 3 +-- examples/nats-events.ts | 2 +- examples/nats-pub.ts | 2 +- examples/nats-rep.ts | 2 +- examples/nats-req.ts | 2 +- examples/nats-sub.ts | 2 +- examples/services/01_services.ts | 4 ++-- src/deno_transport.ts | 4 ++-- tests/auth_test.ts | 4 ++-- tests/authenticator_test.ts | 17 ++++++++++++++++- tests/autounsub_test.ts | 4 ++-- tests/basics_test.ts | 4 ++-- tests/bench_test.ts | 4 ++-- tests/binary_test.ts | 4 ++-- tests/buffer_test.ts | 2 +- tests/clobber_test.ts | 4 ++-- tests/codec_test.ts | 4 ++-- tests/consumeropts_test.ts | 4 ++-- tests/databuffer_test.ts | 4 ++-- tests/doublesubs_test.ts | 6 +++--- tests/drain_test.ts | 4 ++-- tests/events_test.ts | 4 ++-- tests/headers_test.ts | 4 ++-- tests/heartbeats_test.ts | 4 ++-- tests/helpers/asserts.ts | 4 ++-- tests/helpers/cluster.ts | 8 ++++---- tests/helpers/conf_test.ts | 4 ++-- tests/helpers/launcher.ts | 8 ++++---- tests/helpers/mod.ts | 17 ++++++++++++++++- tests/idleheartbeats_test.ts | 4 ++-- tests/iterators_test.ts | 4 ++-- tests/jetream409_test.ts | 17 ++++++++++++++++- tests/jetstream_test.ts | 4 ++-- tests/jsm_test.ts | 4 ++-- tests/jsmsg_test.ts | 4 ++-- tests/json_test.ts | 6 +++--- tests/jstest_util.ts | 19 +++++++++++++++++-- tests/kv_test.ts | 4 ++-- tests/mrequest_test.ts | 4 ++-- tests/noresponders_test.ts | 4 ++-- tests/objectstore_test.ts | 10 +++++----- tests/parseip_test.ts | 10 +++------- tests/parser_test.ts | 4 ++-- tests/properties_test.ts | 4 ++-- tests/protocol_test.ts | 4 ++-- tests/queues_test.ts | 4 ++-- tests/reconnect_test.ts | 6 +++--- tests/resub_test.ts | 17 ++++++++++++++++- tests/semver_test.ts | 17 ++++++++++++++++- tests/servers_test.ts | 4 ++-- tests/service_test.ts | 2 +- tests/sub_extensions_test.ts | 4 ++-- tests/timeout_test.ts | 4 ++-- tests/tls_test.ts | 8 ++++---- tests/token_test.ts | 4 ++-- tests/typedsub_test.ts | 4 ++-- tests/types_test.ts | 4 ++-- 59 files changed, 222 insertions(+), 122 deletions(-) diff --git a/bin/exports.ts b/bin/exports.ts index 6e508382..503183b9 100644 --- a/bin/exports.ts +++ b/bin/exports.ts @@ -1,10 +1,25 @@ -import { parse } from "https://deno.land/std@0.171.0/flags/mod.ts"; +/* + * Copyright 2021-2023 The NATS Authors + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts"; import { basename, extname, join, resolve, -} from "https://deno.land/std@0.171.0/path/mod.ts"; +} from "https://deno.land/std@0.177.0/path/mod.ts"; const argv = parse( Deno.args, diff --git a/dependencies.md b/dependencies.md index a88b4728..092558ab 100644 --- a/dependencies.md +++ b/dependencies.md @@ -4,5 +4,5 @@ This file lists the dependencies used in this repository. | Dependency | License | | ------------------------------------------ | ----------- | -| https://deno.land/std@0.171.0/flags/mod.ts | MIT License | +| https://deno.land/std@0.177.0/flags/mod.ts | MIT License | | http://github.com/nats-io/nkeys.js | Apache-2.0 | diff --git a/examples/bench.js b/examples/bench.js index b7cb743f..6b0fa618 100755 --- a/examples/bench.js +++ b/examples/bench.js @@ -1,6 +1,5 @@ #!/usr/bin/env deno run --allow-all --unstable - -import { parse } from "https://deno.land/std@0.171.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts"; import { connect, Nuid } from "../src/mod.ts"; import { Bench, Metric } from "../nats-base-client/bench.ts"; const defaults = { diff --git a/examples/nats-events.ts b/examples/nats-events.ts index 134d5fe4..8fd4edb0 100755 --- a/examples/nats-events.ts +++ b/examples/nats-events.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.171.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts"; import { connect, ConnectionOptions } from "../src/mod.ts"; const argv = parse( diff --git a/examples/nats-pub.ts b/examples/nats-pub.ts index e02aa6e9..b4f815d2 100755 --- a/examples/nats-pub.ts +++ b/examples/nats-pub.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.171.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts"; import { connect, ConnectionOptions, diff --git a/examples/nats-rep.ts b/examples/nats-rep.ts index f4da9d6f..34f4c0ff 100755 --- a/examples/nats-rep.ts +++ b/examples/nats-rep.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.171.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts"; import { connect, ConnectionOptions, diff --git a/examples/nats-req.ts b/examples/nats-req.ts index 9c5ff853..4c531975 100755 --- a/examples/nats-req.ts +++ b/examples/nats-req.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.171.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts"; import { connect, ConnectionOptions, diff --git a/examples/nats-sub.ts b/examples/nats-sub.ts index a28b5bd5..a52a995c 100755 --- a/examples/nats-sub.ts +++ b/examples/nats-sub.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.171.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts"; import { connect, ConnectionOptions, diff --git a/examples/services/01_services.ts b/examples/services/01_services.ts index fe41e429..d007e96b 100644 --- a/examples/services/01_services.ts +++ b/examples/services/01_services.ts @@ -1,5 +1,5 @@ /* - * Copyright 2022 The NATS Authors + * Copyright 2022-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -24,7 +24,7 @@ import { ServiceMsg, ServiceStats, } from "../../src/mod.ts"; -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; // connect to NATS on demo.nats.io const nc = await connect({ servers: ["demo.nats.io"] }); diff --git a/src/deno_transport.ts b/src/deno_transport.ts index 8fb9a856..e9d6387a 100644 --- a/src/deno_transport.ts +++ b/src/deno_transport.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2022 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { BufWriter } from "https://deno.land/std@0.171.0/io/mod.ts"; +import { BufWriter } from "https://deno.land/std@0.177.0/io/mod.ts"; import { Deferred, deferred } from "../nats-base-client/internal_mod.ts"; import Conn = Deno.Conn; import { diff --git a/tests/auth_test.ts b/tests/auth_test.ts index 10d66cc0..2422ba95 100644 --- a/tests/auth_test.ts +++ b/tests/auth_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2022 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,7 +17,7 @@ import { assertEquals, assertRejects, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { connect, createInbox, diff --git a/tests/authenticator_test.ts b/tests/authenticator_test.ts index 8931b257..0d392447 100644 --- a/tests/authenticator_test.ts +++ b/tests/authenticator_test.ts @@ -1,3 +1,18 @@ +/* + * Copyright 2022-2023 The NATS Authors + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { cleanup, setup } from "./jstest_util.ts"; import { credsAuthenticator, @@ -9,7 +24,7 @@ import { tokenAuthenticator, usernamePasswordAuthenticator, } from "../nats-base-client/mod.ts"; -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { nkeys } from "../nats-base-client/nkeys.ts"; import { encodeAccount, diff --git a/tests/autounsub_test.ts b/tests/autounsub_test.ts index 8c4d0487..8fd09acf 100644 --- a/tests/autounsub_test.ts +++ b/tests/autounsub_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2021 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -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.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { createInbox, Empty, ErrorCode, Subscription } from "../src/mod.ts"; import { Lock } from "./helpers/mod.ts"; diff --git a/tests/basics_test.ts b/tests/basics_test.ts index b0df59f9..74e9bba4 100644 --- a/tests/basics_test.ts +++ b/tests/basics_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2021 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -20,7 +20,7 @@ import { assertRejects, assertThrows, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { assertThrowsAsyncErrorCode } from "./helpers/asserts.ts"; diff --git a/tests/bench_test.ts b/tests/bench_test.ts index 504cb149..de5a3c34 100644 --- a/tests/bench_test.ts +++ b/tests/bench_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2021 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -16,7 +16,7 @@ import { assert, assertEquals, assertThrows, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { Bench, connect, createInbox } from "../src/mod.ts"; import { BenchOpts, Metric } from "../nats-base-client/bench.ts"; diff --git a/tests/binary_test.ts b/tests/binary_test.ts index 64e009f5..20bbbe04 100644 --- a/tests/binary_test.ts +++ b/tests/binary_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2021 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { createInbox, Msg } from "../src/mod.ts"; import { deferred } from "../nats-base-client/internal_mod.ts"; import { cleanup, setup } from "./jstest_util.ts"; diff --git a/tests/buffer_test.ts b/tests/buffer_test.ts index 68530eff..dccc5125 100644 --- a/tests/buffer_test.ts +++ b/tests/buffer_test.ts @@ -11,7 +11,7 @@ import { assert, assertEquals, assertThrows, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { DenoBuffer, MAX_SIZE, diff --git a/tests/clobber_test.ts b/tests/clobber_test.ts index 62432bd9..cf0d1b80 100644 --- a/tests/clobber_test.ts +++ b/tests/clobber_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2021 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -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.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; function makeBuffer(N: number): Uint8Array { const buf = new Uint8Array(N); diff --git a/tests/codec_test.ts b/tests/codec_test.ts index b639c219..3c6ab288 100644 --- a/tests/codec_test.ts +++ b/tests/codec_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2022 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -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.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; Deno.test("codec - string", () => { const sc = StringCodec(); diff --git a/tests/consumeropts_test.ts b/tests/consumeropts_test.ts index 36268495..e99c25fd 100644 --- a/tests/consumeropts_test.ts +++ b/tests/consumeropts_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021 The NATS Authors + * Copyright 2021-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,7 +17,7 @@ import { assert, assertEquals, assertThrows, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { consumerOpts, diff --git a/tests/databuffer_test.ts b/tests/databuffer_test.ts index 1c56869a..5952581d 100644 --- a/tests/databuffer_test.ts +++ b/tests/databuffer_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2021 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -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.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { DataBuffer } from "../nats-base-client/internal_mod.ts"; Deno.test("databuffer - empty", () => { diff --git a/tests/doublesubs_test.ts b/tests/doublesubs_test.ts index 3589a1a5..565b7cd1 100644 --- a/tests/doublesubs_test.ts +++ b/tests/doublesubs_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2021 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -25,9 +25,9 @@ import { import { assertArrayIncludes, assertEquals, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { extend } from "../nats-base-client/util.ts"; -import { join, resolve } from "https://deno.land/std@0.171.0/path/mod.ts"; +import { join, resolve } from "https://deno.land/std@0.177.0/path/mod.ts"; async function runDoubleSubsTest(tls: boolean) { const cwd = Deno.cwd(); diff --git a/tests/drain_test.ts b/tests/drain_test.ts index 40acbfee..986341c8 100644 --- a/tests/drain_test.ts +++ b/tests/drain_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2021 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -16,7 +16,7 @@ import { assert, assertEquals, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { assertThrowsAsyncErrorCode } from "./helpers/asserts.ts"; import { connect, diff --git a/tests/events_test.ts b/tests/events_test.ts index 3d4c3757..32d960fb 100644 --- a/tests/events_test.ts +++ b/tests/events_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-2021 The NATS Authors + * Copyright 2021-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -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.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { delay, NatsConnectionImpl } from "../nats-base-client/internal_mod.ts"; import { setup } from "./jstest_util.ts"; diff --git a/tests/headers_test.ts b/tests/headers_test.ts index c84ed950..ff4c7483 100644 --- a/tests/headers_test.ts +++ b/tests/headers_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2022 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -29,7 +29,7 @@ import { assert, assertEquals, assertThrows, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { MsgHdrsImpl, MsgImpl, diff --git a/tests/heartbeats_test.ts b/tests/heartbeats_test.ts index 15284cc7..be3cec42 100644 --- a/tests/heartbeats_test.ts +++ b/tests/heartbeats_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2022 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -16,7 +16,7 @@ import { assert, assertEquals, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { DebugEvents, diff --git a/tests/helpers/asserts.ts b/tests/helpers/asserts.ts index dd06af84..1858f4b9 100644 --- a/tests/helpers/asserts.ts +++ b/tests/helpers/asserts.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2021 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,7 +17,7 @@ import { assert, assertThrows, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { isNatsError, NatsError } from "../../nats-base-client/error.ts"; export function assertErrorCode(err?: Error, ...codes: string[]) { diff --git a/tests/helpers/cluster.ts b/tests/helpers/cluster.ts index 5870a247..2db6c9d0 100644 --- a/tests/helpers/cluster.ts +++ b/tests/helpers/cluster.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2022 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,9 +14,9 @@ */ import { NatsServer } from "./mod.ts"; -import { parse } from "https://deno.land/std@0.171.0/flags/mod.ts"; -import { rgb24 } from "https://deno.land/std@0.171.0/fmt/colors.ts"; -import { setTimeout } from "https://deno.land/std@0.171.0/node/timers.ts"; +import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts"; +import { rgb24 } from "https://deno.land/std@0.177.0/fmt/colors.ts"; +import { setTimeout } from "https://deno.land/std@0.177.0/node/timers.ts"; const defaults = { c: 2, diff --git a/tests/helpers/conf_test.ts b/tests/helpers/conf_test.ts index bbc77a5a..29269f69 100644 --- a/tests/helpers/conf_test.ts +++ b/tests/helpers/conf_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2021 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ import { toConf } from "./launcher.ts"; -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; Deno.test("conf - serializing simple", () => { const x = { diff --git a/tests/helpers/launcher.ts b/tests/helpers/launcher.ts index 59048170..68f09012 100644 --- a/tests/helpers/launcher.ts +++ b/tests/helpers/launcher.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2021 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,8 +13,8 @@ * limitations under the License. */ // deno-lint-ignore-file no-explicit-any -import * as path from "https://deno.land/std@0.171.0/path/mod.ts"; -import { rgb24 } from "https://deno.land/std@0.171.0/fmt/colors.ts"; +import * as path from "https://deno.land/std@0.177.0/path/mod.ts"; +import { rgb24 } from "https://deno.land/std@0.177.0/fmt/colors.ts"; import { check } from "./mod.ts"; import { Deferred, @@ -24,7 +24,7 @@ import { nuid, timeout, } from "../../nats-base-client/internal_mod.ts"; -import { assert } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { jsopts } from "../jstest_util.ts"; export const ServerSignals = Object.freeze({ diff --git a/tests/helpers/mod.ts b/tests/helpers/mod.ts index 4b89f890..a5ddf948 100644 --- a/tests/helpers/mod.ts +++ b/tests/helpers/mod.ts @@ -1,10 +1,25 @@ +/* + * Copyright 2020-2023 The NATS Authors + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NatsServer } from "./launcher.ts"; import { NatsConnection } from "../../nats-base-client/types.ts"; import { cleanup } from "../jstest_util.ts"; import { compare, parseSemVer } from "../../nats-base-client/semver.ts"; export { check } from "./check.ts"; export { Lock } from "./lock.ts"; -import { red, yellow } from "https://deno.land/std@0.171.0/fmt/colors.ts"; +import { red, yellow } from "https://deno.land/std@0.177.0/fmt/colors.ts"; export { Connection, TestServer } from "./test_server.ts"; export { assertBetween, diff --git a/tests/idleheartbeats_test.ts b/tests/idleheartbeats_test.ts index f531f0f4..fa4aef03 100644 --- a/tests/idleheartbeats_test.ts +++ b/tests/idleheartbeats_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2022 The NATS Authors + * Copyright 2022-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,7 +17,7 @@ import { IdleHeartbeat } from "../nats-base-client/idleheartbeat.ts"; import { assert, assertEquals, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { deferred } from "../nats-base-client/util.ts"; Deno.test("idleheartbeat - basic", async () => { diff --git a/tests/iterators_test.ts b/tests/iterators_test.ts index 1dd195d4..ddc45dae 100644 --- a/tests/iterators_test.ts +++ b/tests/iterators_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2022 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ import { connect, createInbox, ErrorCode } from "../src/mod.ts"; -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.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"; diff --git a/tests/jetream409_test.ts b/tests/jetream409_test.ts index 448390d7..2dd3165a 100644 --- a/tests/jetream409_test.ts +++ b/tests/jetream409_test.ts @@ -1,3 +1,18 @@ +/* + * Copyright 2022-2023 The NATS Authors + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { AckPolicy, JetStreamClient, @@ -17,7 +32,7 @@ import { import { assertRejects, assertStringIncludes, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { cleanup, initStream, diff --git a/tests/jetstream_test.ts b/tests/jetstream_test.ts index 2a8ac980..cb59e12e 100644 --- a/tests/jetstream_test.ts +++ b/tests/jetstream_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-2022 The NATS Authors + * Copyright 2021-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -57,7 +57,7 @@ import { assertRejects, assertThrows, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { assert } from "../nats-base-client/denobuffer.ts"; import { PubAck, RepublishHeaders } from "../nats-base-client/types.ts"; diff --git a/tests/jsm_test.ts b/tests/jsm_test.ts index 6d0808de..411f036e 100644 --- a/tests/jsm_test.ts +++ b/tests/jsm_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-2022 The NATS Authors + * Copyright 2021-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -20,7 +20,7 @@ import { assertRejects, assertThrows, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { AckPolicy, diff --git a/tests/jsmsg_test.ts b/tests/jsmsg_test.ts index 965ee6e9..4fd6833e 100644 --- a/tests/jsmsg_test.ts +++ b/tests/jsmsg_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021 The NATS Authors + * Copyright 2021-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,7 +15,7 @@ import { assertEquals, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { connect, createInbox, Empty, Msg, StringCodec } from "../src/mod.ts"; import { nanos } from "../nats-base-client/jsutil.ts"; import { parseInfo, toJsMsg } from "../nats-base-client/jsmsg.ts"; diff --git a/tests/json_test.ts b/tests/json_test.ts index dd1c54d2..4e0e07f8 100644 --- a/tests/json_test.ts +++ b/tests/json_test.ts @@ -1,7 +1,7 @@ /* - * Copyright 2018-2021 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use assertEquals file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { createInbox, ErrorCode, diff --git a/tests/jstest_util.ts b/tests/jstest_util.ts index 06d4ffc5..64baff8d 100644 --- a/tests/jstest_util.ts +++ b/tests/jstest_util.ts @@ -1,7 +1,22 @@ -import * as path from "https://deno.land/std@0.171.0/path/mod.ts"; +/* + * Copyright 2021-2023 The NATS Authors + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import * as path from "https://deno.land/std@0.177.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.171.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { ConnectionOptions, extend, diff --git a/tests/kv_test.ts b/tests/kv_test.ts index 14364bcf..083d4c12 100644 --- a/tests/kv_test.ts +++ b/tests/kv_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-2022 The NATS Authors + * Copyright 2021-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -36,7 +36,7 @@ import { assertEquals, assertRejects, assertThrows, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { ConnectionOptions, diff --git a/tests/mrequest_test.ts b/tests/mrequest_test.ts index 641e78e6..09136d93 100644 --- a/tests/mrequest_test.ts +++ b/tests/mrequest_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2022 The NATS Authors + * Copyright 2022-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -22,7 +22,7 @@ import { assertEquals, assertRejects, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { StringCodec } from "../nats-base-client/codec.ts"; import { deferred, delay } from "../nats-base-client/util.ts"; diff --git a/tests/noresponders_test.ts b/tests/noresponders_test.ts index 80eb11a1..19edf230 100644 --- a/tests/noresponders_test.ts +++ b/tests/noresponders_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -19,7 +19,7 @@ import { assert, assertEquals, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; Deno.test("noresponders - option", async () => { const srv = await NatsServer.start(); diff --git a/tests/objectstore_test.ts b/tests/objectstore_test.ts index edd09692..62a55263 100644 --- a/tests/objectstore_test.ts +++ b/tests/objectstore_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2022 The NATS Authors + * Copyright 2022-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -20,17 +20,17 @@ import { assertEquals, assertExists, equal, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { DataBuffer } from "../nats-base-client/databuffer.ts"; -import { crypto } from "https://deno.land/std@0.171.0/crypto/mod.ts"; +import { crypto } from "https://deno.land/std@0.177.0/crypto/mod.ts"; import { Empty, headers, StorageType, StringCodec, } from "../nats-base-client/mod.ts"; -import { assertRejects } from "https://deno.land/std@0.171.0/testing/asserts.ts"; -import { equals } from "https://deno.land/std@0.171.0/bytes/mod.ts"; +import { assertRejects } from "https://deno.land/std@0.177.0/testing/asserts.ts"; +import { equals } from "https://deno.land/std@0.177.0/bytes/mod.ts"; import { ObjectInfo, ObjectStoreMeta } from "../nats-base-client/types.ts"; import { SHA256 } from "../nats-base-client/sha256.js"; import { Base64UrlCodec } from "../nats-base-client/base64.ts"; diff --git a/tests/parseip_test.ts b/tests/parseip_test.ts index 50bff190..cf455f12 100644 --- a/tests/parseip_test.ts +++ b/tests/parseip_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,14 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// JavaScript port of go net/ip/ParseIP -// ported from https://github.com/golang/go/blob/master/src/net/ip_test.go -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// 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.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { ipV4 } from "../nats-base-client/ipparser.ts"; Deno.test("ipparser", () => { diff --git a/tests/parser_test.ts b/tests/parser_test.ts index e9acb7a8..3f0b965e 100644 --- a/tests/parser_test.ts +++ b/tests/parser_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2021 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -30,7 +30,7 @@ import { assert, assertEquals, assertThrows, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import type { Publisher } from "../nats-base-client/protocol.ts"; const te = new TextEncoder(); diff --git a/tests/properties_test.ts b/tests/properties_test.ts index dd5c62d8..12762593 100644 --- a/tests/properties_test.ts +++ b/tests/properties_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -16,7 +16,7 @@ import { assert, assertEquals, assertMatch, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { connect, ConnectionOptions } from "../src/mod.ts"; import { DenoTransport } from "../src/deno_transport.ts"; diff --git a/tests/protocol_test.ts b/tests/protocol_test.ts index 22bb5275..20086466 100644 --- a/tests/protocol_test.ts +++ b/tests/protocol_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2021 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -27,7 +27,7 @@ import { assertErrorCode } from "./helpers/mod.ts"; import { assertEquals, equal, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { protoLen } from "../nats-base-client/util.ts"; Deno.test("protocol - mux subscription unknown return null", async () => { diff --git a/tests/queues_test.ts b/tests/queues_test.ts index b7913cb3..40ee1fe9 100644 --- a/tests/queues_test.ts +++ b/tests/queues_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2021 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ import { createInbox, Subscription } from "../src/mod.ts"; -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { cleanup, setup } from "./jstest_util.ts"; Deno.test("queues - deliver to single queue", async () => { diff --git a/tests/reconnect_test.ts b/tests/reconnect_test.ts index 4174a7dc..8e39053e 100644 --- a/tests/reconnect_test.ts +++ b/tests/reconnect_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2021 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -16,7 +16,7 @@ import { assert, assertEquals, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { connect, createInbox, @@ -33,7 +33,7 @@ import { NatsConnectionImpl, } from "../nats-base-client/internal_mod.ts"; import { cleanup, setup } from "./jstest_util.ts"; -import { deadline } from "https://deno.land/std@0.171.0/async/deadline.ts"; +import { deadline } from "https://deno.land/std@0.177.0/async/deadline.ts"; import Conn = Deno.Conn; Deno.test("reconnect - should receive when some servers are invalid", async () => { diff --git a/tests/resub_test.ts b/tests/resub_test.ts index f9297ae7..94946898 100644 --- a/tests/resub_test.ts +++ b/tests/resub_test.ts @@ -1,8 +1,23 @@ +/* + * Copyright 2021-2023 The NATS Authors + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { cleanup, setup } from "./jstest_util.ts"; import { createInbox } from "../nats-base-client/protocol.ts"; import { Msg } from "../nats-base-client/types.ts"; import { NatsConnectionImpl } from "../nats-base-client/nats.ts"; -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; Deno.test("resub - iter", async () => { const { ns, nc } = await setup(); diff --git a/tests/semver_test.ts b/tests/semver_test.ts index 4d2c074b..16c4b3e5 100644 --- a/tests/semver_test.ts +++ b/tests/semver_test.ts @@ -1,3 +1,18 @@ +/* + * Copyright 2021-2023 The NATS Authors + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { compare, Feature, @@ -9,7 +24,7 @@ import { assertEquals, assertFalse, assertThrows, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; Deno.test("semver", () => { const pt: { a: string; b: string; r: number }[] = [ diff --git a/tests/servers_test.ts b/tests/servers_test.ts index 04a42265..51c53c65 100644 --- a/tests/servers_test.ts +++ b/tests/servers_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2022 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ import { isIPV4OrHostname, Servers } from "../nats-base-client/servers.ts"; -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import type { ServerInfo } from "../nats-base-client/types.ts"; import { setTransportFactory } from "../nats-base-client/internal_mod.ts"; diff --git a/tests/service_test.ts b/tests/service_test.ts index 6293690d..9e8404ec 100644 --- a/tests/service_test.ts +++ b/tests/service_test.ts @@ -34,7 +34,7 @@ import { assertRejects, assertThrows, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { collect, delay } from "../nats-base-client/util.ts"; import { NatsConnectionImpl } from "../nats-base-client/nats.ts"; diff --git a/tests/sub_extensions_test.ts b/tests/sub_extensions_test.ts index 05a15c63..2a898ad5 100644 --- a/tests/sub_extensions_test.ts +++ b/tests/sub_extensions_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021 The NATS Authors + * Copyright 2021-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,7 +15,7 @@ import { assert, assertEquals, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { createInbox, Msg, StringCodec } from "../src/mod.ts"; import { deferred, diff --git a/tests/timeout_test.ts b/tests/timeout_test.ts index 7fbce1e3..eb3d0cfc 100644 --- a/tests/timeout_test.ts +++ b/tests/timeout_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021 The NATS Authors + * Copyright 2021-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,7 +15,7 @@ import { assertStringIncludes, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { connect } from "../src/connect.ts"; import { createInbox, Empty } from "../nats-base-client/mod.ts"; diff --git a/tests/tls_test.ts b/tests/tls_test.ts index 8a9dad13..ed2cdc5d 100644 --- a/tests/tls_test.ts +++ b/tests/tls_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 The NATS Authors + * Copyright 2020-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,14 +15,14 @@ import { assertEquals, fail, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { connect, ErrorCode } from "../src/mod.ts"; import { assertErrorCode, Lock, NatsServer } from "./helpers/mod.ts"; -import { join, resolve } from "https://deno.land/std@0.171.0/path/mod.ts"; +import { join, resolve } from "https://deno.land/std@0.177.0/path/mod.ts"; import { NatsConnectionImpl } from "../nats-base-client/nats.ts"; import { cleanup } from "./jstest_util.ts"; -import { assertRejects } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertRejects } from "https://deno.land/std@0.177.0/testing/asserts.ts"; Deno.test("tls - fail if server doesn't support TLS", async () => { const ns = await NatsServer.start(); diff --git a/tests/token_test.ts b/tests/token_test.ts index 047f8dac..d81a1a05 100644 --- a/tests/token_test.ts +++ b/tests/token_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2020 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { fail } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { fail } from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { connect, ErrorCode } from "../src/mod.ts"; import { assertErrorCode, NatsServer } from "./helpers/mod.ts"; diff --git a/tests/typedsub_test.ts b/tests/typedsub_test.ts index b3a3f6e9..d6575294 100644 --- a/tests/typedsub_test.ts +++ b/tests/typedsub_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021 The NATS Authors + * Copyright 2021-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -16,7 +16,7 @@ import { assert, assertEquals, assertRejects, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { assertErrorCode, assertThrowsErrorCode } from "./helpers/asserts.ts"; import { createInbox, diff --git a/tests/types_test.ts b/tests/types_test.ts index cb3213f0..ea45a000 100644 --- a/tests/types_test.ts +++ b/tests/types_test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018-2020 The NATS Authors + * Copyright 2018-2023 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -25,7 +25,7 @@ import { DataBuffer, deferred } from "../nats-base-client/internal_mod.ts"; import { assert, assertEquals, -} from "https://deno.land/std@0.171.0/testing/asserts.ts"; +} from "https://deno.land/std@0.177.0/testing/asserts.ts"; import { NatsServer } from "./helpers/launcher.ts"; function mh(nc: NatsConnection, subj: string): Promise {