Skip to content

Commit

Permalink
chore: reference to new nats.js (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart authored Jul 31, 2024
1 parent a5ec21b commit 2f1338b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/natsjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
repo: nats-io/nats-server
name: nats-server
cache: true
- run: npm ci
- run: npm run prepack
- run: npm test
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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. |
Expand Down
4 changes: 1 addition & 3 deletions test/helpers/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f1338b

Please sign in to comment.