Skip to content

Commit de364e1

Browse files
Upgrade node to version 20 (#163)
* Bump nock from 13.5.6 to 14.0.1 Bumps [nock](https://github.com/nock/nock) from 13.5.6 to 14.0.1. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](nock/nock@v13.5.6...v14.0.1) --- updated-dependencies: - dependency-name: nock dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * upgrade to node 20 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 39d9ced commit de364e1

File tree

8 files changed

+128
-17
lines changed

8 files changed

+128
-17
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/javascript-node/.devcontainer/base.Dockerfile
22
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 16, 14, 12, 16-bullseye, 14-bullseye, 12-bullseye, 16-buster, 14-buster, 12-buster
3-
ARG VARIANT=16-bullseye
3+
ARG VARIANT=20-bullseye
44
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
55

66
# [Optional] Uncomment this section to install additional OS packages.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
88
// Append -bullseye or -buster to pin to an OS version.
99
// Use -bullseye variants on local arm64/Apple Silicon.
10-
"args": { "VARIANT": "16-bullseye" }
10+
"args": { "VARIANT": "20-bullseye" }
1111
},
1212

1313
"settings": {},

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: actions/setup-node@v4
2323
with:
24-
node-version: 16
24+
node-version: 20
2525
check-latest: true
2626
cache: npm
2727
- run: npm ci

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 16
18+
node-version: 20
1919
check-latest: true
2020
cache: npm
2121
- run: npm ci

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16-slim
1+
FROM node:20-slim
22
WORKDIR /usr/src/app
33
COPY package.json package-lock.json ./
44
RUN npm ci --production

package-lock.json

Lines changed: 121 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"license": "MIT",
2020
"devDependencies": {
2121
"mocha": "^11.1.0",
22-
"nock": "^13.5.6",
22+
"nock": "^14.0.1",
2323
"nyc": "^17.1.0",
2424
"smee-client": "^2.0.4",
2525
"uvu": "^0.5.6"

template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Resources:
8787
Description: Basic Auth Funtion
8888
CodeUri: .
8989
Handler: handler.webhooks
90-
Runtime: nodejs16.x
90+
Runtime: nodejs20.x
9191
MemorySize: 256
9292
Timeout: 20
9393
Events:

0 commit comments

Comments
 (0)