diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15336e2..6af1277 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,8 +5,21 @@ name: Node.js CI on: push: - pull_request: branches: [ main ] + paths-ignore: + - '**/README.md' + - README.md + - .gitignore + - .gitpod.yml + - LICENSE + pull_request_target: + branches: [ main ] + paths-ignore: + - '**/README.md' + - README.md + - .gitignore + - .gitpod.yml + - LICENSE jobs: build: @@ -15,7 +28,7 @@ jobs: strategy: matrix: - node-version: [16.x] + node-version: [20.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d38cb21..ae7dfd1 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -4,8 +4,20 @@ on: workflow_dispatch: push: branches: [ main ] - pull_request: + paths-ignore: + - '**/README.md' + - README.md + - .gitignore + - .gitpod.yml + - LICENSE + pull_request_target: branches: [ main ] + paths-ignore: + - '**/README.md' + - README.md + - .gitignore + - .gitpod.yml + - LICENSE jobs: checkout: diff --git a/.tool-versions b/.tool-versions index 8abaea2..7bd5f0b 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -nodejs 16.14.0 +nodejs 20.10.0 diff --git a/Dockerfile b/Dockerfile index 722ef7c..e855974 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16 +FROM node:20-alpine COPY . . diff --git a/README.md b/README.md index cc37853..2f69db8 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ The demo leverages Adyen's API Library for Node.js ([GitHub](https://github.com/ ## Requirements -Node.js 12+ +Node.js 20+ ## Installation diff --git a/package-lock.json b/package-lock.json index 6af9b26..dc3509c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "adyen-react-online-payments", "version": "0.1.0", "dependencies": { - "@adyen/adyen-web": "^5.55.1", + "@adyen/adyen-web": "5.60.0", "@adyen/api-library": "^16.1.0", "@reduxjs/toolkit": "^2.0.1", "dotenv": "^16.0.3", @@ -18,8 +18,8 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-redux": "^9.0.4", - "react-router": "^6.21.0", - "react-router-dom": "^6.21.0", + "react-router": "^6.26.1", + "react-router-dom": "^6.26.1", "uuidv4": "^6.2.13" }, "devDependencies": { @@ -38,13 +38,13 @@ "dev": true }, "node_modules/@adyen/adyen-web": { - "version": "5.55.1", - "resolved": "https://registry.npmjs.org/@adyen/adyen-web/-/adyen-web-5.55.1.tgz", - "integrity": "sha512-7n6KDMT5bL0r21I5MhjTzLVpekHpeDDlHwpKSMNbm6OG4yEQh7DS0LtxcDabcX3gLQ0xA0ZMNJM8rMl5fNU++w==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@adyen/adyen-web/-/adyen-web-5.60.0.tgz", + "integrity": "sha512-RAtpKKGF9vJYFvahv7qMtCIH3mLxkBOYOntzXtivOMwgPYeXGFNB/3M6gXKC2f6IgiHrqES6t7K8UvzTXFmVZg==", "dependencies": { "@babel/runtime": "^7.15.4", "@babel/runtime-corejs3": "^7.20.1", - "@types/applepayjs": "^3.0.4", + "@types/applepayjs": "14.0.6", "@types/googlepay": "^0.7.0", "classnames": "^2.3.1", "core-js-pure": "^3.25.3", @@ -3578,9 +3578,9 @@ } }, "node_modules/@remix-run/router": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.14.0.tgz", - "integrity": "sha512-WOHih+ClN7N8oHk9N4JUiMxQJmRVaOxcg8w7F/oHUXzJt920ekASLI/7cYX8XkntDWRhLZtsk6LbGrkgOAvi5A==", + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.19.1.tgz", + "integrity": "sha512-S45oynt/WH19bHbIXjtli6QmwNYvaz+vtnubvNpNDvUOoA/OWh6j1OikIP3G+v5GHdxyC6EXoChG3HgYGEUfcg==", "engines": { "node": ">=14.0.0" } @@ -4073,8 +4073,9 @@ } }, "node_modules/@types/applepayjs": { - "version": "3.0.4", - "license": "MIT" + "version": "14.0.6", + "resolved": "https://registry.npmjs.org/@types/applepayjs/-/applepayjs-14.0.6.tgz", + "integrity": "sha512-nyq2+UXJL7rtcaWRtD3Tr028YTtthVFe0Y1vBhm34b+gmFdNi3VFDTsVbIxii3OgyD3CHskICZJd0tEhanqrFg==" }, "node_modules/@types/aria-query": { "version": "5.0.1", @@ -15085,11 +15086,11 @@ } }, "node_modules/react-router": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.21.0.tgz", - "integrity": "sha512-hGZ0HXbwz3zw52pLZV3j3+ec+m/PQ9cTpBvqjFQmy2XVUWGn5MD+31oXHb6dVTxYzmAeaiUBYjkoNz66n3RGCg==", + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.26.1.tgz", + "integrity": "sha512-kIwJveZNwp7teQRI5QmwWo39A5bXRyqpH0COKKmPnyD2vBvDwgFXSqDUYtt1h+FEyfnE8eXr7oe0MxRzVwCcvQ==", "dependencies": { - "@remix-run/router": "1.14.0" + "@remix-run/router": "1.19.1" }, "engines": { "node": ">=14.0.0" @@ -15099,12 +15100,12 @@ } }, "node_modules/react-router-dom": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.21.0.tgz", - "integrity": "sha512-1dUdVj3cwc1npzJaf23gulB562ESNvxf7E4x8upNJycqyUm5BRRZ6dd3LrlzhtLaMrwOCO8R0zoiYxdaJx4LlQ==", + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.26.1.tgz", + "integrity": "sha512-veut7m41S1fLql4pLhxeSW3jlqs+4MtjRLj0xvuCEXsxusJCbs6I8yn9BxzzDX2XDgafrccY6hwjmd/bL54tFw==", "dependencies": { - "@remix-run/router": "1.14.0", - "react-router": "6.21.0" + "@remix-run/router": "1.19.1", + "react-router": "6.26.1" }, "engines": { "node": ">=14.0.0" @@ -19222,13 +19223,13 @@ "dev": true }, "@adyen/adyen-web": { - "version": "5.55.1", - "resolved": "https://registry.npmjs.org/@adyen/adyen-web/-/adyen-web-5.55.1.tgz", - "integrity": "sha512-7n6KDMT5bL0r21I5MhjTzLVpekHpeDDlHwpKSMNbm6OG4yEQh7DS0LtxcDabcX3gLQ0xA0ZMNJM8rMl5fNU++w==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@adyen/adyen-web/-/adyen-web-5.60.0.tgz", + "integrity": "sha512-RAtpKKGF9vJYFvahv7qMtCIH3mLxkBOYOntzXtivOMwgPYeXGFNB/3M6gXKC2f6IgiHrqES6t7K8UvzTXFmVZg==", "requires": { "@babel/runtime": "^7.15.4", "@babel/runtime-corejs3": "^7.20.1", - "@types/applepayjs": "^3.0.4", + "@types/applepayjs": "14.0.6", "@types/googlepay": "^0.7.0", "classnames": "^2.3.1", "core-js-pure": "^3.25.3", @@ -21541,9 +21542,9 @@ } }, "@remix-run/router": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.14.0.tgz", - "integrity": "sha512-WOHih+ClN7N8oHk9N4JUiMxQJmRVaOxcg8w7F/oHUXzJt920ekASLI/7cYX8XkntDWRhLZtsk6LbGrkgOAvi5A==" + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.19.1.tgz", + "integrity": "sha512-S45oynt/WH19bHbIXjtli6QmwNYvaz+vtnubvNpNDvUOoA/OWh6j1OikIP3G+v5GHdxyC6EXoChG3HgYGEUfcg==" }, "@rollup/plugin-babel": { "version": "5.3.1", @@ -21823,7 +21824,9 @@ "dev": true }, "@types/applepayjs": { - "version": "3.0.4" + "version": "14.0.6", + "resolved": "https://registry.npmjs.org/@types/applepayjs/-/applepayjs-14.0.6.tgz", + "integrity": "sha512-nyq2+UXJL7rtcaWRtD3Tr028YTtthVFe0Y1vBhm34b+gmFdNi3VFDTsVbIxii3OgyD3CHskICZJd0tEhanqrFg==" }, "@types/aria-query": { "version": "5.0.1", @@ -29178,20 +29181,20 @@ "dev": true }, "react-router": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.21.0.tgz", - "integrity": "sha512-hGZ0HXbwz3zw52pLZV3j3+ec+m/PQ9cTpBvqjFQmy2XVUWGn5MD+31oXHb6dVTxYzmAeaiUBYjkoNz66n3RGCg==", + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.26.1.tgz", + "integrity": "sha512-kIwJveZNwp7teQRI5QmwWo39A5bXRyqpH0COKKmPnyD2vBvDwgFXSqDUYtt1h+FEyfnE8eXr7oe0MxRzVwCcvQ==", "requires": { - "@remix-run/router": "1.14.0" + "@remix-run/router": "1.19.1" } }, "react-router-dom": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.21.0.tgz", - "integrity": "sha512-1dUdVj3cwc1npzJaf23gulB562ESNvxf7E4x8upNJycqyUm5BRRZ6dd3LrlzhtLaMrwOCO8R0zoiYxdaJx4LlQ==", + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.26.1.tgz", + "integrity": "sha512-veut7m41S1fLql4pLhxeSW3jlqs+4MtjRLj0xvuCEXsxusJCbs6I8yn9BxzzDX2XDgafrccY6hwjmd/bL54tFw==", "requires": { - "@remix-run/router": "1.14.0", - "react-router": "6.21.0" + "@remix-run/router": "1.19.1", + "react-router": "6.26.1" } }, "react-scripts": { diff --git a/package.json b/package.json index b6ca104..c44fe70 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@adyen/adyen-web": "^5.55.1", + "@adyen/adyen-web": "5.60.0", "@adyen/api-library": "^16.1.0", "@reduxjs/toolkit": "^2.0.1", "dotenv": "^16.0.3", @@ -13,8 +13,8 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-redux": "^9.0.4", - "react-router": "^6.21.0", - "react-router-dom": "^6.21.0", + "react-router": "^6.26.1", + "react-router-dom": "^6.26.1", "uuidv4": "^6.2.13" }, "scripts": {