Skip to content

Commit

Permalink
🐳 chore: Upgrade V8 to v12.6.228.13
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Jun 8, 2024
1 parent 77a4944 commit a544ae7
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android_v8_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

env:
JAVET_V8_VERSION: 12.5.227.6
JAVET_V8_VERSION: 12.6.228.13
JAVET_VERSION: 3.1.3
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 @@ -18,7 +18,7 @@ env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_REPO_JAVET: ${{ secrets.DOCKERHUB_REPO_JAVET }}
JAVET_NODE_VERSION: 20.14.0
JAVET_V8_VERSION: 12.5.227.6
JAVET_V8_VERSION: 12.6.228.13
JAVET_VERSION: 3.1.3

jobs:
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 @@ -22,7 +22,7 @@ env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_REPO_JAVET: ${{ secrets.DOCKERHUB_REPO_JAVET }}
JAVET_NODE_VERSION: 20.14.0
JAVET_V8_VERSION: 12.5.227.6
JAVET_V8_VERSION: 12.6.228.13
JAVET_VERSION: 3.1.3

# if we skip a job using a job level `if` condition, then any dependent jobs also don't run.
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 @@ -8,7 +8,7 @@ on:

env:
JAVET_NODE_VERSION: 20.14.0
JAVET_V8_VERSION: 12.5.227.6
JAVET_V8_VERSION: 12.6.228.13
JAVET_VERSION: 3.1.3
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 @@ -8,7 +8,7 @@ on:

env:
JAVET_NODE_VERSION: 20.14.0
JAVET_V8_VERSION: 12.5.227.6
JAVET_V8_VERSION: 12.6.228.13
JAVET_VERSION: 3.1.3
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 @@ -8,7 +8,7 @@ on:

env:
JAVET_NODE_VERSION: 20.14.0
JAVET_V8_VERSION: 12.5.227.6
JAVET_V8_VERSION: 12.6.228.13
JAVET_VERSION: 3.1.3
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.14.0`` + V8 ``v12.5.227.6``
* Node.js ``v20.14.0`` + V8 ``v12.6.228.13``
* 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/android/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Usage: docker build -t sjtucaocao/javet-android:3.1.3 -f docker/android/base.Dockerfile .

ARG JAVET_V8_VERSION=12.5.227.6
ARG JAVET_V8_VERSION=12.6.228.13

FROM ubuntu:20.04
WORKDIR /
Expand Down
2 changes: 1 addition & 1 deletion docker/linux-arm64/base_all_in_one.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Usage: docker build -t sjtucaocao/javet-arm64:3.1.3 -f docker/linux-arm64/base_all_in_one.Dockerfile .

ARG JAVET_NODE_VERSION=18.15.0
ARG JAVET_V8_VERSION=12.5.227.6
ARG JAVET_V8_VERSION=12.6.228.13

FROM ubuntu:20.04
WORKDIR /
Expand Down
6 changes: 3 additions & 3 deletions docker/linux-arm64/base_v8.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:arm64-base-v8_12.5.227.6 \
# -t sjtucaocao/javet:arm64-base-v8_12.6.228.13 \
# --build-arg JAVET_REPO=sjtucaocao/javet \
# --build-arg JAVET_V8_VERSION=12.5.227.6 \
# --build-arg JAVET_V8_VERSION=12.6.228.13 \
# -f docker/linux-arm64/base_v8.Dockerfile .

ARG JAVET_REPO=sjtucaocao/javet
ARG JAVET_V8_VERSION=12.5.227.6
ARG JAVET_V8_VERSION=12.6.228.13

FROM ${JAVET_REPO}:arm64-base-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 @@ -19,7 +19,7 @@ FROM ubuntu:20.04
WORKDIR /

ARG JAVET_NODE_VERSION=20.14.0
ARG JAVET_V8_VERSION=12.5.227.6
ARG JAVET_V8_VERSION=12.6.228.13

# Update Ubuntu
ENV DEBIAN_FRONTEND=noninteractive
Expand Down
6 changes: 3 additions & 3 deletions docker/linux-x86_64/base_v8.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-v8_12.5.227.6 \
# -t sjtucaocao/javet:x86_64-base-v8_12.6.228.13 \
# --build-arg JAVET_REPO=sjtucaocao/javet \
# --build-arg JAVET_V8_VERSION=12.5.227.6 \
# --build-arg JAVET_V8_VERSION=12.6.228.13 \
# -f docker/linux-x86_64/base_v8.Dockerfile .

ARG JAVET_REPO=sjtucaocao/javet
ARG JAVET_V8_VERSION=12.5.227.6
ARG JAVET_V8_VERSION=12.6.228.13

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.3
JAVET_V8_VERSION=12.5.227.6
JAVET_V8_VERSION=12.6.228.13
JAVET_NODE_VERSION=20.14.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 @@ -32,7 +32,7 @@
# Usage: docker build -t sjtucaocao/javet-windows:3.1.3 -m 4G -f docker/windows-x86_64/base.Dockerfile .

ARG JAVET_NODE_VERSION=20.14.0
ARG JAVET_V8_VERSION=12.5.227.6
ARG JAVET_V8_VERSION=12.6.228.13

# https://hub.docker.com/_/microsoft-windows
FROM mcr.microsoft.com/windows:20H2-amd64
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 @@ -6,6 +6,7 @@ Release Notes 3.1.x
--------------

* Upgraded Node.js to ``v20.14.0`` `(2024-05-28) <https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#20.14.0>`_
* Upgraded V8 to ``v12.6.228.13`` (2024-06-06)
* Upgraded Visual Studio 2022 to `v17.10.1 <https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.10>`_
* Rewrote ``toString()`` for ``V8ValueBigInteger``, ``V8ValueInteger``, ``V8ValueLong`` and ``V8ValueDouble``
* Added ``getPrototypeOf()`` to support ``instanceof`` for proxy converter
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 @@ -166,7 +166,7 @@ def update(self) -> None:
def main():
change_node_version = ChangeNodeVersion('20.14.0')
change_node_version.update()
change_v8_version = ChangeV8Version('12.5.227.6')
change_v8_version = ChangeV8Version('12.6.228.13')
change_v8_version.update()
return 0

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/caoccao/javet/enums/JSRuntimeType.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public enum JSRuntimeType {
*/
V8(
"v8",
"12.5.227.6",
"12.6.228.13",
V8RuntimeOptions::new,
o -> o instanceof V8RuntimeOptions);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
import java.util.concurrent.TimeUnit;

public class TestV8HeapStatisticsOOM {
@Tag("performance")
@Test
@Tag("performance")
public void testOOM() throws JavetException, InterruptedException {
V8RuntimeOptions.V8_FLAGS.setMaxHeapSize(8096);
try (V8Runtime v8Runtime = V8Host.getV8Instance().createV8Runtime()) {
Expand Down

0 comments on commit a544ae7

Please sign in to comment.