diff --git a/.github/workflows/natsjs.yml b/.github/workflows/natsjs.yml index f54e45f..1bde38c 100644 --- a/.github/workflows/natsjs.yml +++ b/.github/workflows/natsjs.yml @@ -32,7 +32,7 @@ jobs: with: deno-version: ${{ matrix.deno-version }} - name: Set NATS Server Version - run: echo "NATS_VERSION=v2.10.3" >> $GITHUB_ENV + run: echo "NATS_VERSION=v2.10.4" >> $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-lock.json b/package-lock.json index e335ec5..e48fc18 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,24 +1,24 @@ { "name": "nats", - "version": "2.17.1-2", + "version": "2.18.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "nats", - "version": "2.17.1-2", + "version": "2.18.0", "license": "Apache-2.0", "dependencies": { "nkeys.js": "1.0.5" }, "devDependencies": { - "@types/node": "^20.6.x", + "@types/node": "^20.8.x", "ava": "^5.3.x", "minimist": "^1.2.8", "nats-jwt": "^0.0.5", "nyc": "^15.1.0", "shx": "^0.3.3", - "typescript": "^5.2.x" + "typescript": "5.2.2" }, "engines": { "node": ">= 14.0.0" @@ -547,10 +547,13 @@ } }, "node_modules/@types/node": { - "version": "20.6.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.6.3.tgz", - "integrity": "sha512-HksnYH4Ljr4VQgEy2lTStbCKv/P590tmPe5HqOnv9Gprffgv5WXAY+Y5Gqniu0GGqeTCUdBnzC3QSrzPkBkAMA==", - "dev": true + "version": "20.8.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.10.tgz", + "integrity": "sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/acorn": { "version": "8.10.0", @@ -3373,6 +3376,12 @@ "node": ">=14.17" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/uuid": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", @@ -3938,10 +3947,13 @@ } }, "@types/node": { - "version": "20.6.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.6.3.tgz", - "integrity": "sha512-HksnYH4Ljr4VQgEy2lTStbCKv/P590tmPe5HqOnv9Gprffgv5WXAY+Y5Gqniu0GGqeTCUdBnzC3QSrzPkBkAMA==", - "dev": true + "version": "20.8.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.10.tgz", + "integrity": "sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, "acorn": { "version": "8.10.0", @@ -5935,6 +5947,12 @@ "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", "dev": true }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "uuid": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", diff --git a/package.json b/package.json index 497c97a..9e90585 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nats", - "version": "2.17.1-2", + "version": "2.18.0", "description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system", "keywords": [ "nats", @@ -42,7 +42,7 @@ "cjs-jetstream": "deno run --allow-all ./bin/cjs-fix-imports.ts -o jetstream/ ./.deps/nats.deno/jetstream/", "cjs": "npm run cjs-nbc && npm run cjs-jetstream", "clean": "shx rm -Rf ./lib/* ./nats-base-client ./.deps", - "clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch main https://github.com/nats-io/nats.deno.git", + "clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.18.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", @@ -62,13 +62,13 @@ "nkeys.js": "1.0.5" }, "devDependencies": { - "@types/node": "^20.6.x", + "@types/node": "^20.8.x", "ava": "^5.3.x", "minimist": "^1.2.8", "nats-jwt": "^0.0.5", "nyc": "^15.1.0", "shx": "^0.3.3", - "typescript": "^5.2.x" + "typescript": "5.2.2" }, "typings": "./lib/src/mod.d.ts", "ava": { diff --git a/src/node_transport.ts b/src/node_transport.ts index 6663367..1aa90c4 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.17.1-2"; +const VERSION = "2.18.0"; const LANG = "nats.js"; export class NodeTransport implements Transport {