Skip to content

Commit

Permalink
Update package versions and integrate coverage reporting (#176)
Browse files Browse the repository at this point in the history
* Update package versions and integrate coverage reporting

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 <[email protected]>
  • Loading branch information
aricart authored Dec 11, 2024
1 parent e00278f commit 8228dfe
Show file tree
Hide file tree
Showing 21 changed files with 62 additions and 52 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/node_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
deno-version: [2.0.x]
node-version: [22.x]
node-version: [23.x]

steps:
- name: Git Checkout Sources
Expand Down 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/[email protected]"
}
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/[email protected]",
"@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.

19 changes: 10 additions & 9 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,15 +36,16 @@
"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 --test-coverage-include='lib/**/*' --test-coverage-exclude='lib/mod.js' --test-coverage-exclude='lib/nats-base-client.js'",
"coverage": "npm run before-test && node --test --experimental-test-coverage --test-force-exit --test-reporter=lcov --test-reporter-destination=out.lcov --test-coverage-include='lib/**/*' --test-coverage-exclude='lib/mod.js' --test-coverage-exclude='lib/nats-base-client.js'",
"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",
"cover:html": "/nyc report --reporter=html && open coverage/index.html",
"coveralls": "shx mkdir -p ./coverage && nyc report --reporter=text-lcov > ./coverage/lcov.info",
"cover:html": "genhtml -o ./coverage/html ./out.lcov && open ./coverage/html/index.html",
"check-package": "cd .. && deno run --allow-all bin/check-bundle-version.ts --module transport-node",
"postversion": "git push && git push --tags",
"bump-qualifier": "npm version prerelease --no-commit-hooks --no-git-tag-version",
Expand All @@ -54,7 +55,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 +64,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 8228dfe

Please sign in to comment.