diff --git a/.github/docker/Dockerfile b/.github/docker/Dockerfile index 83ffbad..e0b473e 100644 --- a/.github/docker/Dockerfile +++ b/.github/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-buster-slim +FROM node:17-buster-slim # Prefer node package manager that more efficient RUN npm i -g pnpm \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d383af..82ffaae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: registry-url: https://registry.npmjs.org/ - name: 🔃 Setup PNPM modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.pnpm-store key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} @@ -52,7 +52,7 @@ jobs: run: npm test - name: 🚀 Deploy - uses: JamesIves/github-pages-deploy-action@v4.2.5 + uses: JamesIves/github-pages-deploy-action@v4.3.0 if: github.event_name != 'pull_request' # Don't deploy, it will be dangerous if someone submit dangerous pull request with: branch: dist # The branch the action should deploy to. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e91891c..0f4e878 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: registry-url: https://registry.npmjs.org/ - name: 🔃 Setup PNPM modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.pnpm-store key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} diff --git a/package.json b/package.json index 18443b9..143505e 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@polkadot/extension-inject": "^0.43.0", "dotenv": "^16.0.0", "jest": "^27.5.1", - "node-fetch": "^2.6.7", + "node-fetch": "^3.0.0", "vinyl": "^2.2.1", "scarletsframe": "0.35.15" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c912039..13dbc60 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,7 +13,7 @@ specifiers: '@polkadot/util-crypto': ^9.0.1 dotenv: ^16.0.0 jest: ^27.5.1 - node-fetch: ^2.6.7 + node-fetch: ^3.0.0 scarletsframe: 0.35.15 vinyl: ^2.2.1 @@ -32,7 +32,7 @@ devDependencies: '@polkadot/extension-inject': 0.43.1_@polkadot+api@8.0.1 dotenv: 16.0.0 jest: 27.5.1 - node-fetch: 2.6.7 + node-fetch: 3.2.3 scarletsframe: 0.35.15 vinyl: 2.2.1 @@ -3155,6 +3155,11 @@ packages: assert-plus: 1.0.0 dev: true + /data-uri-to-buffer/4.0.0: + resolution: {integrity: sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==} + engines: {node: '>= 12'} + dev: true + /data-urls/2.0.0: resolution: {integrity: sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==} engines: {node: '>=10'} @@ -3731,6 +3736,14 @@ packages: bser: 2.1.1 dev: true + /fetch-blob/3.1.5: + resolution: {integrity: sha512-N64ZpKqoLejlrwkIAnb9iLSA3Vx/kjgzpcDhygcqJ2KKjky8nCgUQ+dzXtbrLaWZGZNmNfQTsiQ0weZ1svglHg==} + engines: {node: ^12.20 || >= 14.13} + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 3.2.1 + dev: true + /file-uri-to-path/1.0.0: resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==} requiresBuild: true @@ -3878,6 +3891,13 @@ packages: combined-stream: 1.0.8 mime-types: 2.1.34 + /formdata-polyfill/4.0.10: + resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} + engines: {node: '>=12.20.0'} + dependencies: + fetch-blob: 3.1.5 + dev: true + /fraction.js/4.1.3: resolution: {integrity: sha512-pUHWWt6vHzZZiQJcM6S/0PXfS+g6FM4BF5rj9wZyreivhQPdsh5PpE25VtSNxq80wHS5RfY51Ii+8Z0Zl/pmzg==} dev: true @@ -5907,6 +5927,11 @@ packages: transitivePeerDependencies: - supports-color + /node-domexception/1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} + dev: true + /node-fetch/2.6.7: resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} engines: {node: 4.x || >=6.0.0} @@ -5918,6 +5943,15 @@ packages: dependencies: whatwg-url: 5.0.0 + /node-fetch/3.2.3: + resolution: {integrity: sha512-AXP18u4pidSZ1xYXRDPY/8jdv3RAozIt/WLNR/MBGZAz+xjtlr90RvCnsvHQRiXyWliZF/CpytExp32UU67/SA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + data-uri-to-buffer: 4.0.0 + fetch-blob: 3.1.5 + formdata-polyfill: 4.0.10 + dev: true + /node-gyp-build/4.3.0: resolution: {integrity: sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q==} hasBin: true @@ -7979,6 +8013,11 @@ packages: makeerror: 1.0.12 dev: true + /web-streams-polyfill/3.2.1: + resolution: {integrity: sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==} + engines: {node: '>= 8'} + dev: true + /webidl-conversions/3.0.1: resolution: {integrity: sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=}