From 2f1338b801cdb53778824320a32b26a78cd5aa42 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Wed, 31 Jul 2024 15:31:49 -0500 Subject: [PATCH] chore: reference to new nats.js (#638) --- .github/workflows/natsjs.yml | 13 ++++++------- README.md | 8 +++++++- test/helpers/launcher.js | 4 +--- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/natsjs.yml b/.github/workflows/natsjs.yml index c27b867c..9c5f4023 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 diff --git a/README.md b/README.md index 12a59ac6..e43ea2b4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # 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) @@ -758,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. | diff --git a/test/helpers/launcher.js b/test/helpers/launcher.js index 58e86509..f9319992 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;