From 8b0edaee910cbdf49a1e1e8ff56eb66b66d95538 Mon Sep 17 00:00:00 2001 From: Exile Date: Wed, 6 Dec 2023 13:48:15 +0200 Subject: [PATCH] Deprecation of node < v18 - Deprecate older node engines - Add node action for github workflows - Update to publish action to use node v20 --- .github/workflows/nodejs.yml | 23 +++++++++++++++++++++ .github/workflows/npm-publish.yml | 12 +++++------ package-lock.json | 34 ++++++++++++++++++++++--------- package.json | 7 ++++--- 4 files changed, 57 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..5955fac --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,23 @@ +name: Node CI + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x, 19.x, 20.x, 21.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: npm install and test + run: | + npm install + npm test diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index be9461b..fa9dca9 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,10 +11,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 20 - run: npm ci - run: npm test @@ -22,10 +22,10 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish diff --git a/package-lock.json b/package-lock.json index 63a43e3..4d0a913 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,32 +1,46 @@ { "name": "@pylonide/smith", - "version": "0.1.24", - "lockfileVersion": 1, + "version": "0.2.0", + "lockfileVersion": 3, "requires": true, - "dependencies": { - "base64-js": { + "packages": { + "": { + "name": "@pylonide/smith", + "version": "0.2.0", + "license": "MIT", + "dependencies": { + "msgpack-js": "~0.3.0" + }, + "engines": { + "node": ">= 18.18.2" + } + }, + "node_modules/base64-js": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.2.tgz", - "integrity": "sha1-Ak8Pcq+iW3X5wO5zzU9V7Bvtl4Q=" + "integrity": "sha1-Ak8Pcq+iW3X5wO5zzU9V7Bvtl4Q=", + "engines": { + "node": ">= 0.4" + } }, - "bops": { + "node_modules/bops": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/bops/-/bops-0.0.7.tgz", "integrity": "sha1-tKClqDmkBkVK8P4FqLkaenZqVOI=", - "requires": { + "dependencies": { "base64-js": "0.0.2", "to-utf8": "0.0.1" } }, - "msgpack-js": { + "node_modules/msgpack-js": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/msgpack-js/-/msgpack-js-0.3.0.tgz", "integrity": "sha1-Aw7AjFlW+cp9F9QKVy1Tlv7BCSM=", - "requires": { + "dependencies": { "bops": "~0.0.6" } }, - "to-utf8": { + "node_modules/to-utf8": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/to-utf8/-/to-utf8-0.0.1.tgz", "integrity": "sha1-0Xrqcv8vujm55DYBvns/9y4ImFI=" diff --git a/package.json b/package.json index fc0e58b..fbb84cf 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "@pylonide/smith", - "version": "0.1.24", + "version": "0.2.0", "description": "Smith is an RPC agent system for Node.JS used in architect and vfs.", - "author": "Ajax.org B.V. ", + "author": "Sten Feldman ", "license": "MIT", "contributors": [ + "Ajax.org B.V. ", { "name": "Tim Caswell", "email": "tim@c9.io>" @@ -20,7 +21,7 @@ }, "main": "smith.js", "engines": { - "node": ">= 12.22.1" + "node": ">= 18.18.2" }, "dependencies": { "msgpack-js": "~0.3.0"