From 697414d828b586bf38dbeec9997f9205ec8feeb0 Mon Sep 17 00:00:00 2001 From: Alexander Friedl Date: Tue, 5 May 2026 21:15:17 +0200 Subject: [PATCH 1/2] Bump @parse/node-apn to 8.1.0 --- package-lock.json | 27 +++++++++------------------ package.json | 2 +- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index 81b02e7..8525623 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "5.0.4", "license": "MIT", "dependencies": { - "@parse/node-apn": "7.1.0", + "@parse/node-apn": "8.1.0", "firebase-admin": "13.8.0", "node-adm": "0.9.1", "web-push": "3.6.7", @@ -2960,18 +2960,18 @@ } }, "node_modules/@parse/node-apn": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@parse/node-apn/-/node-apn-7.1.0.tgz", - "integrity": "sha512-a40P5nScLDi9Pf7koKKkbwI73px0q+iLaKYNrr7kyKJebq/4duGOy3mMevZS0zltn171k3jB5BWCC27dPGsMmw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@parse/node-apn/-/node-apn-8.1.0.tgz", + "integrity": "sha512-LowcdkKPDikbbzIr3zwEdoFW5wfEbbTzpYQeen3S8kKLePG0AQK586Li+OLC7bonyLmlk//Yk3smHZOLSV6TZA==", "license": "MIT", "dependencies": { "debug": "4.4.3", "jsonwebtoken": "9.0.3", - "node-forge": "1.3.2", + "node-forge": "1.4.0", "verror": "1.10.1" }, "engines": { - "node": ">=18" + "node": "20 || 22 || 24" } }, "node_modules/@parse/node-apn/node_modules/verror": { @@ -5915,15 +5915,6 @@ "url": "https://opencollective.com/node-fetch" } }, - "node_modules/firebase-admin/node_modules/node-forge": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz", - "integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==", - "license": "(BSD-3-Clause OR GPL-2.0)", - "engines": { - "node": ">= 6.13.0" - } - }, "node_modules/firebase-admin/node_modules/rimraf": { "version": "5.0.10", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", @@ -8501,9 +8492,9 @@ "license": "MIT" }, "node_modules/node-forge": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.2.tgz", - "integrity": "sha512-6xKiQ+cph9KImrRh0VsjH2d8/GXA4FIMlgU4B757iI1ApvcyA9VlouP0yZJha01V+huImO+kKMU7ih+2+E14fw==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz", + "integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==", "license": "(BSD-3-Clause OR GPL-2.0)", "engines": { "node": ">= 6.13.0" diff --git a/package.json b/package.json index 9106817..e827d46 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "url": "https://github.com/appfeel/node-pushnotifications.git" }, "dependencies": { - "@parse/node-apn": "7.1.0", + "@parse/node-apn": "8.1.0", "firebase-admin": "13.8.0", "node-adm": "0.9.1", "web-push": "3.6.7", From 643c112582eff268c6446673b988f77a8b3f6d82 Mon Sep 17 00:00:00 2001 From: Alexander Friedl Date: Tue, 5 May 2026 21:16:40 +0200 Subject: [PATCH 2/2] Require node v20 --- .github/copilot-instructions.md | 2 +- .github/workflows/ci.yml | 2 +- README.md | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 79281bb..7f59dd1 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -16,7 +16,7 @@ This repository implements a Node.js module for sending push notifications acros ## Developer Workflows -- **Install:** `npm install` (requires Node.js 18+) +- **Install:** `npm install` (requires Node.js 28+) - **Test:** Run all tests with `npm test`. Tests are in `test/` and cover basic flows and platform-specific cases (87 tests, all passing). - **Debug:** Use the callback or Promise error/result from `push.send`. Each result object includes method, success/failure counts, and error details per device. - **Build:** No build step required for basic usage. ES6 is used, but compatible with ES5 via Babel if needed. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9382f94..df29a31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x, 22.x, 24.x] + node-version: [20.x, 22.x, 24.x, 26.x] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 8fc4bec..9631f7d 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ npm install node-pushnotifications --save ## Requirements -Node version >= 18.x.x +Node version >= 20.x.x ## Features diff --git a/package.json b/package.json index e827d46..a23acd6 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "sinon-chai": "3.5.0" }, "engines": { - "node": ">=18.x.x" + "node": ">=20.x.x" }, "eslintConfig": { "ecmaVersion": 6,