diff --git a/.github/workflows/natsjs.yml b/.github/workflows/natsjs.yml index f1ede57..63b40b2 100644 --- a/.github/workflows/natsjs.yml +++ b/.github/workflows/natsjs.yml @@ -31,7 +31,7 @@ jobs: with: deno-version: 1.17.3 - name: Set NATS Server Version - run: echo "NATS_VERSION=v2.7.0" >> $GITHUB_ENV + run: echo "NATS_VERSION=v2.7.1" >> $GITHUB_ENV - name: Get nats-server run: | wget "https://github.com/nats-io/nats-server/releases/download/$NATS_VERSION/nats-server-$NATS_VERSION-linux-amd64.zip" -O tmp.zip diff --git a/package.json b/package.json index 473bb2f..3b511b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nats", - "version": "2.5.0", + "version": "2.6.0", "description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system", "keywords": [ "nats", @@ -40,7 +40,7 @@ "build": "tsc", "cjs": "deno run --allow-all bin/cjs-fix-imports.ts -o nats-base-client/ ./.deps/nats.deno/nats-base-client/", "clean": "shx rm -Rf ./lib/* ./nats-base-client ./.deps", - "clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.5.0 https://github.com/nats-io/nats.deno.git", + "clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.6.0 https://github.com/nats-io/nats.deno.git", "fmt": "deno fmt ./src/ ./examples/ ./test/", "prepack": "npm run clone-nbc && npm run cjs && npm run check-package && npm run build", "ava": "nyc ava --verbose -T 60000", diff --git a/src/node_transport.ts b/src/node_transport.ts index 923f3a1..10b36e0 100644 --- a/src/node_transport.ts +++ b/src/node_transport.ts @@ -34,7 +34,7 @@ const { resolve } = require("path"); const { readFile, existsSync } = require("fs"); const dns = require("dns"); -const VERSION = "2.5.0"; +const VERSION = "2.6.0"; const LANG = "nats.js"; export class NodeTransport implements Transport { diff --git a/test/tls.js b/test/tls.js index c66eceb..0377f5f 100644 --- a/test/tls.js +++ b/test/tls.js @@ -39,7 +39,7 @@ const tlsConfig = { test("tls - fail if server doesn't support TLS", async (t) => { t.plan(1); - const ns = await NatsServer.start(); + const ns = await NatsServer.start({host: "0.0.0.0"}); const lock = Lock(); await connect({ servers: `localhost:${ns.port}`, tls: {} }) .then(() => {