From b49f7be51b81add1abd85fd7f9c2c4f0e6ae8d18 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Tue, 12 Mar 2024 12:59:26 -0400 Subject: [PATCH] [BUMP] version, nbc to 1.20.1, and ci dependencies, version (#228) --- package-lock.json | 50 +++++++++++++++++++++++++---------------- package.json | 10 ++++----- src/connect.ts | 2 +- src/mod.ts | 4 ++-- src/nats-base-client.ts | 2 +- src/ws_transport.ts | 6 ++--- 6 files changed, 43 insertions(+), 31 deletions(-) diff --git a/package-lock.json b/package-lock.json index 26487ba..089aa5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,27 +1,27 @@ { "name": "nats.ws", - "version": "1.20.0", + "version": "1.22.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nats.ws", - "version": "1.20.0", + "version": "1.22.0", "license": "Apache-2.0", "devDependencies": { - "@types/node": "^20.10.x", + "@types/node": "^20.11.26", "ava": "^5.3.x", "minimist": "^1.2.8", "nats-jwt": "^0.0.7", "nyc": "^15.1.0", "shx": "^0.3.3", "tslint": "^6.1.3", - "typescript": "^5.3.x", - "web-streams-polyfill": "^3.2.1", + "typescript": "^5.4.2", + "web-streams-polyfill": "^4.0.0", "websocket": "^1.0.34" }, "optionalDependencies": { - "nkeys.js": "1.0.5" + "nkeys.js": "1.1.0" } }, "node_modules/@ampproject/remapping": { @@ -570,9 +570,9 @@ } }, "node_modules/@types/node": { - "version": "20.10.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.3.tgz", - "integrity": "sha512-XJavIpZqiXID5Yxnxv3RUDKTN5b81ddNC3ecsA0SoFXz/QU8OGBwZGMomiq0zw+uuqbL/krztv/DINAQ/EV4gg==", + "version": "20.11.26", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.26.tgz", + "integrity": "sha512-YwOMmyhNnAWijOBQweOJnQPl068Oqd4K3OFbTc6AHJwzweUwwWG3GIFY74OKks2PJUDkQPeddOQES9mLn1CTEQ==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -2363,6 +2363,18 @@ "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" + } + }, "node_modules/next-tick": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", @@ -2370,10 +2382,10 @@ "dev": true }, "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==", - "devOptional": true, + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.1.0.tgz", + "integrity": "sha512-tB/a0shZL5UZWSwsoeyqfTszONTt4k2YS0tuQioMOD180+MbombYVgzDUYHlx+gejYK6rgf08n/2Df99WY0Sxg==", + "optional": true, "dependencies": { "tweetnacl": "1.0.3" }, @@ -3626,9 +3638,9 @@ } }, "node_modules/typescript": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz", - "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==", + "version": "5.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", + "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -3697,9 +3709,9 @@ } }, "node_modules/web-streams-polyfill": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", - "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0.tgz", + "integrity": "sha512-0zJXHRAYEjM2tUfZ2DiSOHAa2aw1tisnnhU3ufD57R8iefL+DcdJyRBRyJpG+NUimDgbTI/lH+gAE1PAvV3Cgw==", "dev": true, "engines": { "node": ">= 8" diff --git a/package.json b/package.json index f6a8ed2..c99ae2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nats.ws", - "version": "1.20.0", + "version": "1.22.0", "description": "WebSocket NATS client", "main": "./cjs/nats.js", "module": "./esm/nats.js", @@ -49,17 +49,17 @@ "bump-release": "npm version patch --no-commit-hooks --no-git-tag-version" }, "optionalDependencies": { - "nkeys.js": "1.0.5" + "nkeys.js": "1.1.0" }, "devDependencies": { - "@types/node": "^20.10.x", + "@types/node": "^20.11.26", "ava": "^5.3.x", "minimist": "^1.2.8", "nats-jwt": "^0.0.7", "shx": "^0.3.3", "tslint": "^6.1.3", - "typescript": "^5.3.x", - "web-streams-polyfill": "^3.2.1", + "typescript": "^5.4.2", + "web-streams-polyfill": "^4.0.0", "websocket": "^1.0.34", "nyc": "^15.1.0" }, diff --git a/src/connect.ts b/src/connect.ts index 107820b..6c6ea21 100644 --- a/src/connect.ts +++ b/src/connect.ts @@ -19,7 +19,7 @@ import { setTransportFactory, Transport, TransportFactory, -} from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.19.0/nats-base-client/internal_mod.ts"; +} from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.20.1/nats-base-client/internal_mod.ts"; import { WsTransport } from "./ws_transport.ts"; diff --git a/src/mod.ts b/src/mod.ts index bc8a2c7..abbed4a 100644 --- a/src/mod.ts +++ b/src/mod.ts @@ -12,6 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export * from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.19.0/nats-base-client/mod.ts"; -export * from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.19.0/jetstream/mod.ts"; +export * from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.20.1/nats-base-client/mod.ts"; +export * from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.20.1/jetstream/mod.ts"; export { connect } from "./connect.ts"; diff --git a/src/nats-base-client.ts b/src/nats-base-client.ts index 1e92a61..b215540 100644 --- a/src/nats-base-client.ts +++ b/src/nats-base-client.ts @@ -13,4 +13,4 @@ * limitations under the License. */ // this import here to drive the build system -export * from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.19.0/nats-base-client/internal_mod.ts"; +export * from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.20.1/nats-base-client/internal_mod.ts"; diff --git a/src/ws_transport.ts b/src/ws_transport.ts index e038b1e..a4261ca 100644 --- a/src/ws_transport.ts +++ b/src/ws_transport.ts @@ -19,7 +19,7 @@ import type { Server, ServerInfo, Transport, -} from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.19.0/nats-base-client/internal_mod.ts"; +} from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.20.1/nats-base-client/internal_mod.ts"; import { checkOptions, DataBuffer, @@ -30,9 +30,9 @@ import { INFO, NatsError, render, -} from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.19.0/nats-base-client/internal_mod.ts"; +} from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.20.1/nats-base-client/internal_mod.ts"; -const VERSION = "1.20.0"; +const VERSION = "1.22.0"; const LANG = "nats.ws"; export type WsSocketFactory = (u: string, opts: ConnectionOptions) => Promise<{