diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5c34037..f307962 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -39,8 +39,8 @@ // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "node", "features": { - "docker-from-docker": "latest", - }, + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} + } // "mounts": [ // "source=depeg-ui-node_modules,target=/workspaces/depeg-ui/node_modules,type=volume" diff --git a/.devcontainer/docker-compose.yaml b/.devcontainer/docker-compose.yaml index 218092e..51cae84 100644 --- a/.devcontainer/docker-compose.yaml +++ b/.devcontainer/docker-compose.yaml @@ -13,7 +13,7 @@ services: context: .. dockerfile: .devcontainer/Dockerfile args: - VARIANT: 18-bullseye + VARIANT: 20-bullseye volumes: - ..:/workspaces/staking-backend-processor:cached - staking-backend-processor-node_modules:/workspaces/staking-backend-processor/node_modules diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c26a449..d8dda36 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,7 +11,7 @@ updates: interval: "weekly" ignore: - dependency-name: "node" - versions: ["19-alpine", "20-alpine"] + versions: ["21-alpine"] - package-ecosystem: "github-actions" directory: "/" schedule: @@ -23,7 +23,7 @@ updates: open-pull-requests-limit: 30 ignore: - dependency-name: "@types/node" - versions: ["19.x", "20.x"] + versions: ["21.x"] - dependency-name: "@etherisc/gif-interface" # ignore all updates to this dependency - dependency-name: "@etherisc/depeg-contracts" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b3d3f6..740fabf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' - name: NPM install run: npm install diff --git a/Dockerfile b/Dockerfile index 315cdda..9e146cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG VARIANT=node:18-alpine +ARG VARIANT=node:20-alpine # Install dependencies only when needed FROM ${VARIANT} AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. diff --git a/package-lock.json b/package-lock.json index 6895c92..ddf2c9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "devDependencies": { "@etherisc/registry-contracts": "1.1.2-6e0b482", "@typechain/ethers-v5": "^11.1.2", - "@types/node": "^18.19.8", + "@types/node": "^20.0.0", "ts-node-dev": "^2.0.0", "typechain": "^8.3.2", "typescript": "^5.3.3" @@ -929,9 +929,9 @@ "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==" }, "node_modules/@types/node": { - "version": "18.19.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.8.tgz", - "integrity": "sha512-g1pZtPhsvGVTwmeVoexWZLTQaOvXwoSq//pTL0DHeNzUDrFnir4fgETdhjhIxjVnN+hKOuh98+E1eMLnUXstFg==", + "version": "20.11.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.5.tgz", + "integrity": "sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==", "dependencies": { "undici-types": "~5.26.4" } @@ -3642,9 +3642,9 @@ "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==" }, "@types/node": { - "version": "18.19.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.8.tgz", - "integrity": "sha512-g1pZtPhsvGVTwmeVoexWZLTQaOvXwoSq//pTL0DHeNzUDrFnir4fgETdhjhIxjVnN+hKOuh98+E1eMLnUXstFg==", + "version": "20.11.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.5.tgz", + "integrity": "sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==", "requires": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index b52f0f9..a25cb70 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@etherisc/registry-contracts": "1.1.2-6e0b482", "@typechain/ethers-v5": "^11.1.2", - "@types/node": "^18.19.8", + "@types/node": "^20.0.0", "ts-node-dev": "^2.0.0", "typechain": "^8.3.2", "typescript": "^5.3.3"