From c1d23c8e925652d768d360bfead33b3bfdddb2f0 Mon Sep 17 00:00:00 2001 From: Marius Kleidl Date: Fri, 8 Dec 2023 10:45:15 +0100 Subject: [PATCH] Revert "Revert "Drop support for Node 14 and 16 (#628)"" This reverts commit f268088e24912b17c52f16de1cbd0789bbf46682. --- .github/workflows/ci.yml | 11 ++++------- docs/installation.md | 2 +- package.json | 3 +++ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc038811..1c29cc49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,15 +19,12 @@ jobs: suite: 'puppeteer' - desc: 'Types' suite: 'types' - - desc: 'Node.js 14' - suite: 'node' - node: 14 - - desc: 'Node.js 16' - suite: 'node' - node: 16 - desc: 'Node.js 18' suite: 'node' node: 18 + - desc: 'Node.js 20' + suite: 'node' + node: 20 name: ${{ matrix.desc }} steps: - name: Check out sources @@ -39,7 +36,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node || 16 }} + node-version: ${{ matrix.node || 20 }} - name: Install dependencies uses: sergioramos/yarn-actions/install@v6 with: diff --git a/docs/installation.md b/docs/installation.md index b5195e5d..b58fb1b9 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -82,7 +82,7 @@ who provide their great service glady for Open Source project for free. ## Node.js support -tus-js-client is tested and known to work in Node.js v14 or newer. +tus-js-client is tested and known to work in Node.js v18 or newer. Since Node's environment is quite different than a browser's runtime and provides other capabilities but also restrictions, tus-js-client will have a diff --git a/package.json b/package.json index 2a3d59d2..72941b37 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,9 @@ "./lib/node/index.js": "./lib/browser/index.js" }, "types": "./lib/index.d.ts", + "engines": { + "node": ">=18" + }, "repository": { "type": "git", "url": "https://github.com/tus/tus-js-client.git"