diff --git a/.github/workflows/natsjs.yml b/.github/workflows/natsjs.yml index dc248fc..de16d3f 100644 --- a/.github/workflows/natsjs.yml +++ b/.github/workflows/natsjs.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: node-version: [22.x, 20.x, 18.x] - deno-version: [1.43.5] + deno-version: [1.44.4] 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.14" >> $GITHUB_ENV + run: echo "NATS_VERSION=v2.10.16" >> $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 57a08d8..21f0828 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: node-version: [22.x] - deno-version: [1.43.5] + deno-version: [1.44.4] runs-on: ubuntu-latest permissions: diff --git a/README.md b/README.md index b97eb82..0d429c0 100644 --- a/README.md +++ b/README.md @@ -758,7 +758,7 @@ more performant or appropriate. The following is the list of connection options and default values. | Option | Default | Description | -| ----------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +|-------------------------|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `authenticator` | none | Specifies the authenticator function that sets the client credentials. | | `debug` | `false` | If `true`, the client prints protocol interactions to the console. Useful for debugging. | | `ignoreClusterUpdates` | `false` | If `true` the client will ignore any cluster updates provided by the server. | @@ -770,6 +770,7 @@ The following is the list of connection options and default values. | `noAsyncTraces` | `false` | When `true` the client will not add additional context to errors associated with request operations. Setting this option to `true` will greatly improve performance of request/reply and JetStream publishers. | | `noEcho` | `false` | Subscriptions receive messages published by the client. Requires server support (1.2.0). If set to true, and the server does not support the feature, an error with code `NO_ECHO_NOT_SUPPORTED` is emitted, and the connection is aborted. Note that it is possible for this error to be emitted on reconnect when the server reconnects to a server that does not support the feature. | | `noRandomize` | `false` | If set, the order of user-specified servers is randomized. | +| `resolve` | | If set to false, will not resolve host names. Note that by default it is set to true if the client supports resolution. It is an error to set it to true when not supported. | | `pass` | | Sets the password for a connection. | | `pedantic` | `false` | Turns on strict subject format checks. | | `pingInterval` | `120000` | Number of milliseconds between client-sent pings. | diff --git a/package-lock.json b/package-lock.json index c8e79dc..ce320be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,24 +1,24 @@ { "name": "nats", - "version": "2.26.0", + "version": "2.27.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nats", - "version": "2.26.0", + "version": "2.27.0", "license": "Apache-2.0", "dependencies": { "nkeys.js": "1.1.0" }, "devDependencies": { - "@types/node": "^20.12.12", + "@types/node": "^20.14.6", "ava": "^5.3.x", "minimist": "^1.2.8", "nats-jwt": "^0.0.9", "nyc": "^15.1.0", "shx": "^0.3.3", - "typescript": "5.4.5" + "typescript": "5.5.2" }, "engines": { "node": ">= 14.0.0" @@ -570,9 +570,9 @@ } }, "node_modules/@types/node": { - "version": "20.12.12", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", - "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", + "version": "20.14.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.6.tgz", + "integrity": "sha512-JbA0XIJPL1IiNnU7PFxDXyfAwcwVVrOoqyzzyQTyMeVhBzkJVMSkC1LlVsRQ2lpqiY4n6Bb9oCS6lzDKVQxbZw==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -806,12 +806,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -1399,9 +1399,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -3374,9 +3374,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz", + "integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index b6875bf..af266e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nats", - "version": "2.26.0", + "version": "2.27.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.26.0 https://github.com/nats-io/nats.deno.git", + "clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.27.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.12.12", + "@types/node": "^20.14.6", "ava": "^5.3.x", "minimist": "^1.2.8", "nats-jwt": "^0.0.9", "nyc": "^15.1.0", "shx": "^0.3.3", - "typescript": "5.4.5" + "typescript": "5.5.2" }, "typings": "./lib/src/mod.d.ts", "ava": { diff --git a/src/node_transport.ts b/src/node_transport.ts index 343f825..c44ce1b 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.26.0"; +const VERSION = "2.27.0"; const LANG = "nats.js"; export class NodeTransport implements Transport {