Skip to content

Commit

Permalink
🐳 chore: Upgrade Node.js to v22.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Oct 23, 2024
1 parent a3a7c94 commit 3d3535c
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android_node_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

env:
JAVET_NODE_VERSION: 22.9.0
JAVET_NODE_VERSION: 22.10.0
JAVET_VERSION: 4.1.0
ROOT: /home/runner/work/Javet

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_build_artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_REPO_JAVET: ${{ secrets.DOCKERHUB_REPO_JAVET }}
JAVET_NODE_VERSION: 22.9.0
JAVET_NODE_VERSION: 22.10.0
JAVET_V8_VERSION: 13.0.245.16
JAVET_VERSION: 4.1.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_build_node_v8_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_REPO_JAVET: ${{ secrets.DOCKERHUB_REPO_JAVET }}
JAVET_NODE_VERSION: 22.9.0
JAVET_NODE_VERSION: 22.10.0
JAVET_V8_VERSION: 13.0.245.16
JAVET_VERSION: 4.1.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_x86_64_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
JAVET_NODE_VERSION: 22.9.0
JAVET_NODE_VERSION: 22.10.0
JAVET_V8_VERSION: 13.0.245.16
JAVET_VERSION: 4.1.0
ROOT: /home/runner/work/Javet
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_arm64_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
JAVET_NODE_VERSION: 22.9.0
JAVET_NODE_VERSION: 22.10.0
JAVET_V8_VERSION: 13.0.245.16
JAVET_VERSION: 4.1.0
ROOT: /Users/runner/work/Javet
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_x86_64_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
JAVET_NODE_VERSION: 22.9.0
JAVET_NODE_VERSION: 22.10.0
JAVET_V8_VERSION: 13.0.245.16
JAVET_VERSION: 4.1.0
ROOT: /Users/runner/work/Javet
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows_x86_64_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
JAVET_NODE_VERSION: 22.9.0
JAVET_NODE_VERSION: 22.10.0
JAVET_V8_VERSION: 13.0.245.16
JAVET_VERSION: 4.1.0
ROOT: D:\a\Javet
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ arm ✔️ ❌ ❌ ❌
arm64 ✔️ ✔️ ✔️ ❌
=========== ======= ======= ======= =======

* Node.js ``v22.9.0`` + V8 ``v13.0.245.16``
* Node.js ``v22.10.0`` + V8 ``v13.0.245.16``
* i18n and non-i18n
* Dynamic switch between Node.js and V8 mode
* Polyfill V8 mode with `Javenode <https://github.com/caoccao/Javenode>`_
Expand Down
2 changes: 1 addition & 1 deletion docker/linux-x86_64/base_all_in_one.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
FROM ubuntu:20.04
WORKDIR /

ARG JAVET_NODE_VERSION=22.9.0
ARG JAVET_NODE_VERSION=22.10.0
ARG JAVET_V8_VERSION=13.0.245.16

# Update Ubuntu
Expand Down
6 changes: 3 additions & 3 deletions docker/linux-x86_64/base_node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
# limitations under the License.

# Usage: docker build \
# -t sjtucaocao/javet:x86_64-base-node_22.9.0 \
# -t sjtucaocao/javet:x86_64-base-node_22.10.0 \
# --build-arg JAVET_REPO=sjtucaocao/javet \
# --build-arg JAVET_NODE_VERSION=22.9.0 \
# --build-arg JAVET_NODE_VERSION=22.10.0 \
# -f docker/linux-x86_64/base_node.Dockerfile .

ARG JAVET_REPO=sjtucaocao/javet
ARG JAVET_NODE_VERSION=22.9.0
ARG JAVET_NODE_VERSION=22.10.0

FROM ${JAVET_REPO}:x86_64-base-jvm

Expand Down
2 changes: 1 addition & 1 deletion docker/linux-x86_64/build.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
JAVET_REPO=sjtucaocao/javet
JAVET_VERSION=4.1.0
JAVET_V8_VERSION=13.0.245.16
JAVET_NODE_VERSION=22.9.0
JAVET_NODE_VERSION=22.10.0
2 changes: 1 addition & 1 deletion docker/windows-x86_64/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

# Usage: docker build -t sjtucaocao/javet-windows:4.1.0 -m 4G -f docker/windows-x86_64/base.Dockerfile .

ARG JAVET_NODE_VERSION=22.9.0
ARG JAVET_NODE_VERSION=22.10.0
ARG JAVET_V8_VERSION=13.0.245.16

# https://hub.docker.com/_/microsoft-windows
Expand Down
1 change: 1 addition & 0 deletions docs/release_notes/release_notes_4_0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Release Notes 4.0.x - 4.1.x
4.1.0
-----

* Upgraded Node.js to ``v22.10.0`` `(2024-10-16) <https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V22.md#22.10.0>`_
* Switched to core dependency + individual native dependency
* Supported ``Float16Array``
* Added ``Float16``
Expand Down
2 changes: 1 addition & 1 deletion scripts/python/change_node_v8_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def update(self) -> None:
re.compile(r'"(?P<version>\d+\.\d+\.\d+\.\d+)",'))

def main():
change_node_version = ChangeNodeVersion('22.9.0')
change_node_version = ChangeNodeVersion('22.10.0')
change_node_version.update()
change_v8_version = ChangeV8Version('13.0.245.16')
change_v8_version.update()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/caoccao/javet/enums/JSRuntimeType.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public enum JSRuntimeType {
Node(
"node",
false,
"12.4.254.21-node.19", // node -p process.versions.v8
"12.4.254.21-node.21", // node -p process.versions.v8
NodeRuntimeOptions::new,
o -> o instanceof NodeRuntimeOptions),
/**
Expand All @@ -49,7 +49,7 @@ public enum JSRuntimeType {
NodeI18n(
"node",
true,
"12.4.254.21-node.19", // node -p process.versions.v8
"12.4.254.21-node.21", // node -p process.versions.v8
NodeRuntimeOptions::new,
o -> o instanceof NodeRuntimeOptions),
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public void testModuleProcess() throws JavetException {
Path path4 = nodeModuleProcess.getWorkingDirectory().toPath();
assertNotEquals(path1.toAbsolutePath().toString(), path3.toAbsolutePath().toString());
assertEquals(path1.toAbsolutePath().toString(), path4.toAbsolutePath().toString());
assertEquals("v22.9.0", nodeModuleProcess.getVersion());
assertEquals("v22.10.0", nodeModuleProcess.getVersion());
}

@Test
Expand Down

0 comments on commit 3d3535c

Please sign in to comment.