From 2e751cdfe327d872deeb50f5f9a3a64ad7888320 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Fri, 3 May 2024 10:01:43 -0500 Subject: [PATCH] [BUMP] nbc to v1.24.0, client version, jwt to v0.0.9 and CI dependencies (#619) --- .github/workflows/natsjs.yml | 4 ++-- .github/workflows/npm.yml | 2 +- package-lock.json | 42 +++++++++++++----------------------- package.json | 10 ++++----- src/node_transport.ts | 4 ++-- 5 files changed, 25 insertions(+), 37 deletions(-) diff --git a/.github/workflows/natsjs.yml b/.github/workflows/natsjs.yml index 424663d..bcf8196 100644 --- a/.github/workflows/natsjs.yml +++ b/.github/workflows/natsjs.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: node-version: [21.x, 20.x, 18.x] - deno-version: [1.41.3] + deno-version: [1.43.1] runs-on: ubuntu-latest @@ -32,7 +32,7 @@ jobs: with: deno-version: ${{ matrix.deno-version }} - name: Set NATS Server Version - run: echo "NATS_VERSION=v2.10.12" >> $GITHUB_ENV + run: echo "NATS_VERSION=v2.10.14" >> $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/.github/workflows/npm.yml b/.github/workflows/npm.yml index c5d193d..801e617 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: node-version: [21.x] - deno-version: [1.41.3] + deno-version: [1.43.1] runs-on: ubuntu-latest permissions: diff --git a/package-lock.json b/package-lock.json index 46ac515..28a1f63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,24 +1,24 @@ { "name": "nats", - "version": "2.23.0", + "version": "2.24.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nats", - "version": "2.23.0", + "version": "2.24.0", "license": "Apache-2.0", "dependencies": { "nkeys.js": "1.1.0" }, "devDependencies": { - "@types/node": "^20.11.30", + "@types/node": "^20.12.8", "ava": "^5.3.x", "minimist": "^1.2.8", - "nats-jwt": "^0.0.7", + "nats-jwt": "^0.0.9", "nyc": "^15.1.0", "shx": "^0.3.3", - "typescript": "5.4.3" + "typescript": "5.4.5" }, "engines": { "node": ">= 14.0.0" @@ -570,9 +570,9 @@ } }, "node_modules/@types/node": { - "version": "20.11.30", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz", - "integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==", + "version": "20.12.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.8.tgz", + "integrity": "sha512-NU0rJLJnshZWdE/097cdCBbyW1h4hEg0xpovcoAQYHl8dnEyp/NAOiE45pvc+Bd1Dt+2r94v2eGFpQJ4R7g+2w==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -2242,24 +2242,12 @@ "dev": true }, "node_modules/nats-jwt": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/nats-jwt/-/nats-jwt-0.0.7.tgz", - "integrity": "sha512-4TsK+EvmSufteQJwVnBw3mH0+R8RA/HwOUGZnox6mKh2y0xY9XaUKkoK42A5i/lugTM8jtPTELevr9GZZu6sKw==", + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/nats-jwt/-/nats-jwt-0.0.9.tgz", + "integrity": "sha512-1kcxqP4oHoG99HA/+h5qU1yBwScd5CaewD23gWDCdmpIFKJhUfd2NkkFFpCKbcfjwZKHOmCBy9DE2Z1ZVyaZ3g==", "dev": true, "dependencies": { - "nkeys.js": "1.0.5" - } - }, - "node_modules/nats-jwt/node_modules/nkeys.js": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.5.tgz", - "integrity": "sha512-u25YnRPHiGVsNzwyHnn+PT90sgAhnS8jUJ1nxmkHMFYCJ6+Ic0lv291w7uhRBpJVJ3PH2GWbYqA151lGCRrB5g==", - "dev": true, - "dependencies": { - "tweetnacl": "1.0.3" - }, - "engines": { - "node": ">=10.0.0" + "nkeys.js": "1.1.0" } }, "node_modules/nkeys.js": { @@ -3386,9 +3374,9 @@ } }, "node_modules/typescript": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", - "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index 982cfc7..94c327b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nats", - "version": "2.23.0", + "version": "2.24.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 v1.23.0 https://github.com/nats-io/nats.deno.git", + "clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.24.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", @@ -66,13 +66,13 @@ "nkeys.js": "1.1.0" }, "devDependencies": { - "@types/node": "^20.11.30", + "@types/node": "^20.12.8", "ava": "^5.3.x", "minimist": "^1.2.8", - "nats-jwt": "^0.0.7", + "nats-jwt": "^0.0.9", "nyc": "^15.1.0", "shx": "^0.3.3", - "typescript": "5.4.3" + "typescript": "5.4.5" }, "typings": "./lib/src/mod.d.ts", "ava": { diff --git a/src/node_transport.ts b/src/node_transport.ts index c61800d..d4f2c24 100644 --- a/src/node_transport.ts +++ b/src/node_transport.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020-2023 The NATS Authors + * Copyright 2020-2024 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 @@ -34,7 +34,7 @@ const { resolve } = require("path"); const { readFile, existsSync } = require("fs"); const dns = require("dns"); -const VERSION = "2.23.0"; +const VERSION = "2.24.0"; const LANG = "nats.js"; export class NodeTransport implements Transport {