Skip to content

Commit

Permalink
🐳 chore: Upgrade Node.js to v20.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Aug 20, 2024
1 parent 8a5d358 commit 3d0a422
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 15 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: 20.15.1
JAVET_NODE_VERSION: 20.16.0
JAVET_VERSION: 3.1.5
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: 20.15.1
JAVET_NODE_VERSION: 20.16.0
JAVET_V8_VERSION: 12.8.374.17
JAVET_VERSION: 3.1.5

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: 20.15.1
JAVET_NODE_VERSION: 20.16.0
JAVET_V8_VERSION: 12.8.374.17
JAVET_VERSION: 3.1.5

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: 20.15.1
JAVET_NODE_VERSION: 20.16.0
JAVET_V8_VERSION: 12.8.374.17
JAVET_VERSION: 3.1.5
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: 20.15.1
JAVET_NODE_VERSION: 20.16.0
JAVET_V8_VERSION: 12.8.374.17
JAVET_VERSION: 3.1.5
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: 20.15.1
JAVET_NODE_VERSION: 20.16.0
JAVET_V8_VERSION: 12.8.374.17
JAVET_VERSION: 3.1.5
ROOT: /Users/runner/work/Javet
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ arm ✔️ ❌ ❌ ❌
arm64 ✔️ ✔️ ✔️ ❌
=========== ======= ======= ======= =======

* Node.js ``v20.15.1`` + V8 ``v12.8.374.17``
* Node.js ``v20.16.0`` + V8 ``v12.8.374.17``
* Dynamic switch between Node.js and V8 mode (`Which mode do you prefer? <https://github.com/caoccao/Javet/discussions/92>`_)
* Polyfill V8 mode with `Javenode <https://github.com/caoccao/Javenode>`_
* V8 API exposure in JVM
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=20.15.1
ARG JAVET_NODE_VERSION=20.16.0
ARG JAVET_V8_VERSION=12.8.374.17

# 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_20.15.1 \
# -t sjtucaocao/javet:x86_64-base-node_20.16.0 \
# --build-arg JAVET_REPO=sjtucaocao/javet \
# --build-arg JAVET_NODE_VERSION=20.15.1 \
# --build-arg JAVET_NODE_VERSION=20.16.0 \
# -f docker/linux-x86_64/base_node.Dockerfile .

ARG JAVET_REPO=sjtucaocao/javet
ARG JAVET_NODE_VERSION=20.15.1
ARG JAVET_NODE_VERSION=20.16.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=3.1.5
JAVET_V8_VERSION=12.8.374.17
JAVET_NODE_VERSION=20.15.1
JAVET_NODE_VERSION=20.16.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:3.1.5 -m 4G -f docker/windows-x86_64/base.Dockerfile .

ARG JAVET_NODE_VERSION=20.15.1
ARG JAVET_NODE_VERSION=20.16.0
ARG JAVET_V8_VERSION=12.8.374.17

# https://hub.docker.com/_/microsoft-windows
Expand Down
1 change: 1 addition & 0 deletions docs/release_notes/release_notes_3_1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Release Notes 3.1.x
3.1.5 V8 v12.8
--------------

* Upgraded Node.js to ``v20.16.0`` `(2024-07-24) <https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#20.16.0>`_
* Upgraded V8 to ``v12.8.374.17`` (2024-08-19)
* Upgraded Android NDK to r27
* Fixed a bug of the default export in ``JavetBuiltInModuleResolver``
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 @@ -164,7 +164,7 @@ def update(self) -> None:
re.compile(r'"(?P<version>\d+\.\d+\.\d+\.\d+)",'))

def main():
change_node_version = ChangeNodeVersion('20.15.1')
change_node_version = ChangeNodeVersion('20.16.0')
change_node_version.update()
change_v8_version = ChangeV8Version('12.8.374.17')
change_v8_version.update()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,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("v20.15.1", nodeModuleProcess.getVersion());
assertEquals("v20.16.0", nodeModuleProcess.getVersion());
}

@Test
Expand Down

0 comments on commit 3d0a422

Please sign in to comment.