Skip to content

Commit f2827f9

Browse files
authored
Update to latest Nodejs LTS and NPM (#17606)
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
1 parent 91dd79d commit f2827f9

File tree

13 files changed

+4616
-3701
lines changed

13 files changed

+4616
-3701
lines changed

.github/workflows/check_make_vtadmin_web_proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
6262
with:
6363
# node-version should match package.json
64-
node-version: '20.12.2'
64+
node-version: '22.13.1'
6565

6666
- name: Install npm dependencies
6767
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.proto_changes == 'true'

.github/workflows/static_checks_etc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ jobs:
230230
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
231231
with:
232232
# make proto requires newer node than the pre-installed one
233-
node-version: '20.12.2'
233+
node-version: '22.13.1'
234234

235235
- name: check_make_proto
236236
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.proto_changes == 'true'

.github/workflows/vtadmin_web_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
if: steps.skip-workflow.outputs.skip-workflow == 'false'
4545
with:
4646
# node-version should match package.json
47-
node-version: '20.12.2'
47+
node-version: '22.13.1'
4848

4949
- name: Install dependencies
5050
if: steps.skip-workflow.outputs.skip-workflow == 'false'

.github/workflows/vtadmin_web_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
if: steps.skip-workflow.outputs.skip-workflow == 'false'
4545
with:
4646
# node-version should match package.json
47-
node-version: '20.12.2'
47+
node-version: '22.13.1'
4848

4949
- name: Install dependencies
5050
if: steps.skip-workflow.outputs.skip-workflow == 'false'

.github/workflows/vtadmin_web_unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
if: steps.skip-workflow.outputs.skip-workflow == 'false'
4545
with:
4646
# node-version should match package.json
47-
node-version: '20.12.2'
47+
node-version: '22.13.1'
4848

4949
- name: Install dependencies
5050
if: steps.skip-workflow.outputs.skip-workflow == 'false'

changelog/22.0/22.0.0/summary.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
- **[Minor Changes](#minor-changes)**
2020
- **[VTTablet Flags](#flags-vttablet)**
2121
- **[Topology read concurrency behaviour changes](#topo-read-concurrency-changes)**
22+
- **[VTAdmin](#vtadmin)**
23+
- [Updated to node v22.13.1](#updated-node)
2224

2325
## <a id="major-changes"/>Major Changes</a>
2426

@@ -150,3 +152,10 @@ While the flag will continue to accept float values (interpreted as seconds) for
150152
The `--topo_read_concurrency` flag was added to all components that access the topology and the provided limit is now applied separately for each global or local cell _(default `32`)_.
151153

152154
All topology read calls _(`Get`, `GetVersion`, `List` and `ListDir`)_ now respect this per-cell limit. Previous to this version a single limit was applied to all cell calls and it was not respected by many topology calls.
155+
156+
### <a id="vtadmin"/>VTAdmin
157+
158+
#### <a id="updated-node"/>vtadmin-web updated to node v22.13.1 (LTS)
159+
160+
Building `vtadmin-web` now requires node >= v22.13.0 (LTS). Breaking changes from v20 to v22 can be found at https://nodejs.org/en/blog/release/v22.13.0 -- with no known issues that apply to VTAdmin.
161+
Full details on the node v20.12.2 release can be found at https://nodejs.org/en/blog/release/v22.13.1.

docker/binaries/vtadmin/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG DEBIAN_VER=bookworm-slim
1717

1818
FROM vitess/lite:${VT_BASE_VER} AS lite
1919

20-
FROM node:20-${DEBIAN_VER} as node
20+
FROM node:22-${DEBIAN_VER} as node
2121

2222
# Prepare directory structure.
2323
RUN mkdir -p /vt/web

web/vtadmin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Prerequisites
44

5-
- [node](https://nodejs.org) >= 20.12.0 LTS
6-
- npm >= 10.5.0 (comes with node)
5+
- [node](https://nodejs.org) >= 22.13.1 LTS
6+
- npm >= 10.9.2 (comes with node)
77

88
## Available scripts
99

web/vtadmin/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [[ -z ${NVM_DIR} ]]; then
4040
fi
4141

4242
if [[ -z ${NODE_VERSION} ]]; then
43-
export NODE_VERSION="20.12.2"
43+
export NODE_VERSION="22.13.1"
4444
fi
4545

4646
output "\nInstalling nvm...\n"

0 commit comments

Comments
 (0)