From 6c28dd4ce75660c42888fcaa4bae9aa825dbc2b8 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Wed, 10 Apr 2024 09:46:29 -0500 Subject: [PATCH] [BUMP] nbc to v1.22.0, client version (#617) [CI] allow CI to publish npm package to latest --- .github/workflows/npm.yml | 2 +- package.json | 4 ++-- src/node_transport.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 8a833a9..c5d193d 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -39,7 +39,7 @@ jobs: run: | npm run check-package - run: npm run clean - - run: npm publish --provenance --access public --tag=next + - run: npm publish --provenance --access public --tag=latest env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index db8aa34..92b80e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nats", - "version": "2.21.0", + "version": "2.22.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.22.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 83d24d7..a1a0018 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.21.0"; +const VERSION = "2.22.0"; const LANG = "nats.js"; export class NodeTransport implements Transport {