From 7bf96543d0f4288caa778680b1417f589c5f76ce Mon Sep 17 00:00:00 2001 From: Jan Paepke Date: Mon, 15 Jan 2024 09:16:19 +0100 Subject: [PATCH] update required node version [breaking] --- .github/workflows/codeql.yml | 22 +++++++++++----------- .github/workflows/test.yml | 21 +++++++-------------- README.md | 7 ++++--- package.json | 2 +- 4 files changed, 23 insertions(+), 29 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index eeace85d..8a87c26d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,9 +2,9 @@ name: CodeQL on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] # Run on every 1st and 15th of the month. schedule: - cron: 0 12 1,15 * * @@ -17,12 +17,12 @@ jobs: strategy: fail-fast: false steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - config-file: ./.github/codeql-configuration.yml - languages: javascript - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 \ No newline at end of file + - name: Checkout + uses: actions/checkout@v4 + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + config-file: ./.github/codeql-configuration.yml + languages: javascript + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49b86feb..62aa79ba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,32 +2,25 @@ name: Node.js test on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: test: runs-on: ubuntu-20.04 strategy: matrix: - node-version: [[6.14, 14.x], [18.x]] + node-version: [14.x, 18.x, 20.x] steps: - name: Checkout - uses: actions/checkout@v3 - # Some modules used for building and testing this library require a greater Node.js version than this library - # itself. Switch to the second Node.js version in the tuple before installing to game the system (and switch back - # later before running the tests). - - name: Use Node.js ${{ matrix.node-version[1] || matrix.node-version[0] }} - uses: actions/setup-node@v2 + uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version[1] || matrix.node-version[0] }} + node-version: ${{ matrix.node-version }} - name: Install dependencies run: yarn --frozen-lockfile - - name: Use Node.js ${{ matrix.node-version[0] }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version[0] }} - name: Run test suite run: yarn test env: diff --git a/README.md b/README.md index 10776a7a..7af0bfd8 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you include this library in a website or app, however, your API key will be s ## Requirements -- Node.js 6.14.× or greater. +- Node.js 14.× or greater. - A free [Mollie account](https://www.mollie.com/dashboard/signup). - Your API keys, which you can find on your [dashboard](https://www.mollie.com/dashboard/developers/api-keys). @@ -101,7 +101,9 @@ const payments = mollieClient.payments.page({ limit: 15 }); // payments.nextPageCursor is the cursor: the ID of the first payment on the next page. ``` + Later: + ```javascript // Retrieve the second 15 payments (using the cursor from the previous page). const payments = mollieClient.payments.page({ limit: 15, from: 'tr_8WhJKGmgBy' }); @@ -145,7 +147,6 @@ Want to help us make our API client even better? We take [pull requests](https:/ [New BSD (Berkeley Software Distribution) License](https://opensource.org/licenses/BSD-3-Clause). Copyright 2013-2021, Mollie B.V. - [credit-card]: https://www.mollie.com/payments/credit-card [apple-pay]: https://www.mollie.com/payments/apple-pay [paypal]: https://www.mollie.com/payments/paypal @@ -166,4 +167,4 @@ Want to help us make our API client even better? We take [pull requests](https:/ [belfius]: https://www.mollie.com/payments/belfius [paysafecard]: https://www.mollie.com/payments/paysafecard [gift-cards]: https://www.mollie.com/payments/gift-cards -[przelewy24]: https://www.mollie.com/payments/przelewy24 \ No newline at end of file +[przelewy24]: https://www.mollie.com/payments/przelewy24 diff --git a/package.json b/package.json index 3b33e2d0..5d84f46d 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "jsnext:main": "dist/mollie.esm.js", "types": "dist/types/src/types.d.ts", "engines": { - "node": ">=6.14" + "node": ">=14" }, "scripts": { "prepublish": "yarn build",