Skip to content

Commit

Permalink
updates for release
Browse files Browse the repository at this point in the history
[UPDATE] nbc to v1.5.0, build deps and GA nats-server/deno (#473)
[FIX] changed test call of `jsm.streams.update()` to use new signature
[fmt] ran latest version of the formatter
  • Loading branch information
aricart committed Jan 19, 2022
1 parent 4b1aa0e commit 6567424
Show file tree
Hide file tree
Showing 7 changed files with 447 additions and 465 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/natsjs.yml
Expand Up @@ -29,9 +29,9 @@ jobs:
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denolib/setup-deno@master
with:
deno-version: 1.9.2
deno-version: 1.17.3
- name: Set NATS Server Version
run: echo "NATS_VERSION=v2.5.0" >> $GITHUB_ENV
run: echo "NATS_VERSION=v2.7.0" >> $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
Expand Down
4 changes: 2 additions & 2 deletions examples/bench.js
Expand Up @@ -86,8 +86,8 @@ const metrics = [];
a.version = m.version;
a.async = m.async;

a.max = Math.max((a.max === undefined ? 0 : a.max), m.duration);
a.min = Math.min((a.min === undefined ? m.duration : a.max), m.duration);
a.max = Math.max(a.max === undefined ? 0 : a.max, m.duration);
a.min = Math.min(a.min === undefined ? m.duration : a.max, m.duration);
}
return a;
};
Expand Down
888 changes: 437 additions & 451 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "nats",
"version": "2.4.0",
"version": "2.5.0",
"description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system",
"keywords": [
"nats",
Expand Down Expand Up @@ -40,7 +40,7 @@
"build": "tsc",
"cjs": "deno run --allow-all bin/cjs-fix-imports.ts -o nats-base-client/ ./.deps/nats.deno/nats-base-client/",
"clean": "shx rm -Rf ./lib/* ./nats-base-client ./.deps",
"clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.4.0 https://github.com/nats-io/nats.deno.git",
"clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.5.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",
Expand Down
2 changes: 1 addition & 1 deletion src/node_transport.ts
Expand Up @@ -34,7 +34,7 @@ const { resolve } = require("path");
const { readFile, existsSync } = require("fs");
const dns = require("dns");

const VERSION = "2.4.0";
const VERSION = "2.5.0";
const LANG = "nats.js";

export class NodeTransport implements Transport {
Expand Down
8 changes: 2 additions & 6 deletions test/autounsub.js
Expand Up @@ -89,9 +89,7 @@ test("autounsub - can change auto-unsub to a higher value", async (t) => {
await nc.close();
});

test("autounsub - request receives expected count with multiple helpers", async (
t,
) => {
test("autounsub - request receives expected count with multiple helpers", async (t) => {
const nc = await connect({ servers: u });
const subj = createInbox();

Expand All @@ -116,9 +114,7 @@ test("autounsub - request receives expected count with multiple helpers", async
t.is(count, 5);
});

test("autounsub - manual request receives expected count with multiple helpers", async (
t,
) => {
test("autounsub - manual request receives expected count with multiple helpers", async (t) => {
const nc = await connect({ servers: u });
const subj = createInbox();
const lock = Lock(5);
Expand Down
2 changes: 1 addition & 1 deletion test/jetstream.js
Expand Up @@ -55,7 +55,7 @@ test("jetstream - jsm", async (t) => {

const conf = si.config;
conf.subjects.push("goodbye.>");
await jsm.streams.update(conf);
await jsm.streams.update("stream", conf);

const name = await jsm.streams.find("goodbye.>");
t.is(name, "stream");
Expand Down

0 comments on commit 6567424

Please sign in to comment.