Skip to content

Commit

Permalink
Update package versions and integrate coverage reporting
Browse files Browse the repository at this point in the history
Updated dependencies across multiple packages to the next version to ensure consistency and access to the latest features and fixes. Enhanced the CI workflow by replacing 'npm test' with 'npm run coverage' for transport-node and added Coveralls integration for coverage reporting.

Signed-off-by: Alberto Ricart <alberto@synadia.com>
  • Loading branch information
aricart committed Dec 11, 2024
1 parent e00278f commit b0e6a2e
Show file tree
Hide file tree
Showing 21 changed files with 61 additions and 49 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/node_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,13 @@ jobs:
run: |
npm install --workspaces
npm run prepack --workspaces
npm test --workspace transport-node
npm run coverage --workspace transport-node
- name: Upload coverage
uses: coverallsapp/github-action@v2
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: transport-node
file: ./transport-node/out.lcov

2 changes: 1 addition & 1 deletion core/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/nats-core",
"version": "3.0.0-47",
"version": "3.0.0-48",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/nats-core",
"version": "3.0.0-47",
"version": "3.0.0-48",
"files": [
"lib/",
"LICENSE",
Expand Down
2 changes: 1 addition & 1 deletion core/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// This file is generated - do not edit
export const version = "3.0.0-47";
export const version = "3.0.0-48";
4 changes: 2 additions & 2 deletions jetstream/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/jetstream",
"version": "3.0.0-34",
"version": "3.0.0-35",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,6 +33,6 @@
"test": "deno test -A --parallel --reload --trace-leaks --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-48"
}
}
4 changes: 2 additions & 2 deletions jetstream/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"imports": {
"@nats-io/nkeys": "jsr:@nats-io/nkeys@~2.0.0-3",
"@nats-io/nuid": "jsr:@nats-io/nuid@~2.0.1-2",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-47/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-48",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-48/internal",
"test_helpers": "../test_helpers/mod.ts",
"@std/io": "jsr:@std/io@0.224.0"
}
Expand Down
4 changes: 2 additions & 2 deletions jetstream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/jetstream",
"version": "3.0.0-34",
"version": "3.0.0-35",
"files": [
"lib/",
"LICENSE",
Expand Down Expand Up @@ -34,7 +34,7 @@
},
"description": "jetstream library - this library implements all the base functionality for NATS JetStream for javascript clients",
"dependencies": {
"@nats-io/nats-core": "3.0.0-47"
"@nats-io/nats-core": "3.0.0-48"
},
"devDependencies": {
"@types/node": "^22.7.6",
Expand Down
6 changes: 3 additions & 3 deletions kv/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/kv",
"version": "3.0.0-28",
"version": "3.0.0-29",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,7 +33,7 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-34"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-48",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-35"
}
}
8 changes: 4 additions & 4 deletions kv/import_map.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-47/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-34",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-34/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-48",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-48/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-35",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-35/internal",
"test_helpers": "../test_helpers/mod.ts",
"@nats-io/nkeys": "jsr:@nats-io/nkeys@~2.0.0-3",
"@nats-io/nuid": "jsr:@nats-io/nuid@~2.0.1-2",
Expand Down
6 changes: 3 additions & 3 deletions kv/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/kv",
"version": "3.0.0-28",
"version": "3.0.0-29",
"files": [
"lib/",
"LICENSE",
Expand Down Expand Up @@ -34,8 +34,8 @@
},
"description": "kv library - this library implements all the base functionality for NATS KV javascript clients",
"dependencies": {
"@nats-io/jetstream": "3.0.0-34",
"@nats-io/nats-core": "3.0.0-47"
"@nats-io/jetstream": "3.0.0-35",
"@nats-io/nats-core": "3.0.0-48"
},
"devDependencies": {
"@types/node": "^22.7.6",
Expand Down
6 changes: 3 additions & 3 deletions obj/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/obj",
"version": "3.0.0-30",
"version": "3.0.0-31",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,7 +33,7 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-34"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-48",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-35"
}
}
8 changes: 4 additions & 4 deletions obj/import_map.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-47/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-34",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-34/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-48",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-48/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-35",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-35/internal",
"test_helpers": "../test_helpers/mod.ts",
"@nats-io/nkeys": "jsr:@nats-io/nkeys@~2.0.0-3",
"@nats-io/nuid": "jsr:@nats-io/nuid@~2.0.1-2",
Expand Down
6 changes: 3 additions & 3 deletions obj/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/obj",
"version": "3.0.0-30",
"version": "3.0.0-31",
"files": [
"lib/",
"LICENSE",
Expand Down Expand Up @@ -34,8 +34,8 @@
},
"description": "obj library - this library implements all the base functionality for NATS objectstore for javascript clients",
"dependencies": {
"@nats-io/jetstream": "3.0.0-34",
"@nats-io/nats-core": "3.0.0-47"
"@nats-io/jetstream": "3.0.0-35",
"@nats-io/nats-core": "3.0.0-48"
},
"devDependencies": {
"@types/node": "^22.7.6",
Expand Down
4 changes: 2 additions & 2 deletions services/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/services",
"version": "3.0.0-22",
"version": "3.0.0-23",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,6 +33,6 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-48"
}
}
4 changes: 2 additions & 2 deletions services/import_map.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-47/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-48",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-48/internal",
"test_helpers": "../test_helpers/mod.ts",
"@nats-io/nkeys": "jsr:@nats-io/nkeys@~2.0.0-3",
"@nats-io/nuid": "jsr:@nats-io/nuid@~2.0.1-2",
Expand Down
4 changes: 2 additions & 2 deletions services/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/services",
"version": "3.0.0-22",
"version": "3.0.0-23",
"files": [
"lib/",
"LICENSE",
Expand Down Expand Up @@ -34,7 +34,7 @@
},
"description": "services library - this library implements all the base functionality for NATS services for javascript clients",
"dependencies": {
"@nats-io/nats-core": "3.0.0-47"
"@nats-io/nats-core": "3.0.0-48"
},
"devDependencies": {
"@types/node": "^22.7.6",
Expand Down
4 changes: 2 additions & 2 deletions transport-deno/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/transport-deno",
"version": "3.0.0-19",
"version": "3.0.0-20",
"exports": {
".": "./src/mod.ts"
},
Expand All @@ -20,7 +20,7 @@
},
"imports": {
"@std/io": "jsr:@std/io@0.225.0",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-48",
"@nats-io/nkeys": "jsr:@nats-io/nkeys@~2.0.0-3",
"@nats-io/nuid": "jsr:@nats-io/nuid@~2.0.1-2"
}
Expand Down
2 changes: 1 addition & 1 deletion transport-deno/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// This file is generated - do not edit
export const version = "3.0.0-19";
export const version = "3.0.0-20";
4 changes: 2 additions & 2 deletions transport-node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 10 additions & 7 deletions transport-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/transport-node",
"version": "3.0.0-32",
"version": "3.0.0-33",
"description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system",
"keywords": [
"nats",
Expand Down Expand Up @@ -36,10 +36,13 @@
"scripts": {
"build": "tsc",
"real-clean": "npm run clean && shx rm -Rf ./node_modules",
"clean": "shx rm -Rf ./lib/*",
"clean": "shx rm -Rf ./lib/* ./coverage/ out.lcov",
"fmt": "deno fmt src/ examples/ test/ ",
"prepack": "npm run check-package && npm run build",
"test": "npm run check-package && npm run build && NODE_EXTRA_CA_CERTS=test/certs/ca.pem; node --test",
"test": "npm run before-test && node --test --test-force-exit --experimental-test-coverage",
"html": "genhtml -o ./coverage/html ./out.lcov && open ./coverage/html/index.html",
"coverage": "npm run before-test && node --test --experimental-test-coverage --test-force-exit --test-reporter=lcov --test-reporter-destination=out.lcov",
"before-test": "npm run clean && npm run check-package && npm run build && NODE_EXTRA_CA_CERTS=test/certs/ca.pem",
"debug-test": "node ../node_modules/.bin/ava --verbose -T 6500000 --match",
"setup": "curl -fsSL https://deno.land/x/install/install.sh | sh",
"setup_win": "choco install deno",
Expand All @@ -54,7 +57,7 @@
"node": ">= 18.0.0"
},
"dependencies": {
"@nats-io/nats-core": "3.0.0-47",
"@nats-io/nats-core": "3.0.0-48",
"@nats-io/nkeys": "2.0.0-3",
"@nats-io/nuid": "2.0.1-2"
},
Expand All @@ -63,8 +66,8 @@
"minimist": "^1.2.8",
"shx": "^0.3.3",
"typescript": "5.6.3",
"@nats-io/jetstream": "3.0.0-34",
"@nats-io/kv": "3.0.0-28",
"@nats-io/obj": "3.0.0-30"
"@nats-io/jetstream": "3.0.0-35",
"@nats-io/kv": "3.0.0-29",
"@nats-io/obj": "3.0.0-31"
}
}
2 changes: 1 addition & 1 deletion transport-node/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// This file is generated - do not edit
export const version = "3.0.0-32";
export const version = "3.0.0-33";

0 comments on commit b0e6a2e

Please sign in to comment.