From b327e5df37ee448f7222c78f45279b89a5190192 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Wed, 31 Jul 2024 15:17:14 -0500 Subject: [PATCH 1/4] chore: reference to new nats.js --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 12a59ac..9c2161d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # NATS.js - A [NATS](http://nats.io) client for [Node.Js](https://nodejs.org/en/) + +> [!IMPORTANT] +> +> This repository was renamed from nats.js to nats.node. +> A new [nats.js](https://github.com/nats-io/nats.js) repository houses all nats clients for JavaScript +> Please visit the above link for more information. + A Node.js client for the [NATS messaging system](https://nats.io). [![License](https://img.shields.io/badge/Licence-Apache%202.0-blue.svg)](./LICENSE) From 97e8e5a239e29cc3b2ac1d65927f4fd181fd7c65 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Wed, 31 Jul 2024 15:18:45 -0500 Subject: [PATCH 2/4] chore: reference to new nats.js --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9c2161d..e43ea2b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # NATS.js - A [NATS](http://nats.io) client for [Node.Js](https://nodejs.org/en/) - > [!IMPORTANT] > -> This repository was renamed from nats.js to nats.node. -> A new [nats.js](https://github.com/nats-io/nats.js) repository houses all nats clients for JavaScript -> Please visit the above link for more information. +> This repository was renamed from nats.js to nats.node. A new +> [nats.js](https://github.com/nats-io/nats.js) repository houses all nats +> clients for JavaScript Please visit the above link for more information. A Node.js client for the [NATS messaging system](https://nats.io). @@ -765,7 +764,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. | From 87eaffe03d741752fac1051266bb7b5b6503e316 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Wed, 31 Jul 2024 15:27:46 -0500 Subject: [PATCH 3/4] ci: install nats server --- .github/workflows/natsjs.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/natsjs.yml b/.github/workflows/natsjs.yml index c27b867..9c5f402 100644 --- a/.github/workflows/natsjs.yml +++ b/.github/workflows/natsjs.yml @@ -31,13 +31,12 @@ jobs: uses: denoland/setup-deno@v1 with: deno-version: ${{ matrix.deno-version }} - - name: Set NATS Server Version - run: echo "NATS_VERSION=v2.10.17" >> $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 - unzip tmp.zip - mv nats-server-$NATS_VERSION-linux-amd64 nats-server + - name: Install nats-server + uses: aricart/install-binary@v1.0.0 + with: + repo: nats-io/nats-server + name: nats-server + cache: true - run: npm ci - run: npm run prepack - run: npm test From 8315354dc3333bf3e909de8e2e480ae91b542f7c Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Wed, 31 Jul 2024 15:30:07 -0500 Subject: [PATCH 4/4] ci: install nats server --- test/helpers/launcher.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/helpers/launcher.js b/test/helpers/launcher.js index 58e8650..f931999 100644 --- a/test/helpers/launcher.js +++ b/test/helpers/launcher.js @@ -264,9 +264,7 @@ exports.NatsServer = class NatsServer { } static async start(conf = {}, debug = undefined) { - const exe = process.env.CI - ? "/home/runner/work/nats.js/nats.js/nats-server/nats-server" - : "nats-server"; + const exe = "nats-server"; const tmp = path.resolve(process.env.TMPDIR || "."); let srv;