Skip to content

Commit

Permalink
Javet v0.9.11 (#87)
Browse files Browse the repository at this point in the history
* Upgraded Node.js to `v14.17.6` (2021-08-31)
* Upgraded V8 to `v9.3.345.16` (2021-08-17)
* Added `unbind()`, `unbindProperty()`, `unbindFunction()` to `IV8ValueObject`
* Updated `V8Runtime` to be completely thread-safe
* Added `V8ValueBuiltInSymbol`
* Added `getOwnPropertySymbols()` to `V8ValueBuiltInObject`
* Added `createV8ValueSymbol()` to `V8Runtime`
* Added `symbol` to `V8Property` to enable getter and setter on symbol
* Added error code 407 and 805
  • Loading branch information
caoccao authored Sep 6, 2021
1 parent c0ff8c2 commit 2277783
Show file tree
Hide file tree
Showing 67 changed files with 1,415 additions and 324 deletions.
36 changes: 18 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
Javet
=====

|Maven Central| |Discord| |Donate|
|Maven Central| |Discord| |Donate| |Linux Build|

|Linux Build|

.. |Maven Central| image:: https://img.shields.io/maven-central/v/com.caoccao.javet/javet.svg
.. |Maven Central| image:: https://img.shields.io/maven-central/v/com.caoccao.javet/javet?style=for-the-badge
:target: https://search.maven.org/search?q=g:com.caoccao.javet

.. |Gitter Chatroom| image:: https://badges.gitter.im/caoccao/Javet.svg
:target: https://gitter.im/caoccao/Javet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

.. |Discord| image:: https://img.shields.io/badge/join%20our-Discord-%237289DA%20
.. |Discord| image:: https://img.shields.io/discord/870518906115211305?label=join%20our%20Discord&style=for-the-badge
:target: https://discord.gg/R4vvKU96gw

.. |Donate| image:: https://img.shields.io/badge/Donate-PayPal-green.svg
.. |Donate| image:: https://img.shields.io/badge/Donate-Paypal-green?style=for-the-badge
:target: https://paypal.me/caoccao?locale.x=en_US

.. |Linux Build| image:: https://github.com/caoccao/Javet/actions/workflows/linux_build.yml/badge.svg
.. |Linux Build| image:: https://img.shields.io/github/workflow/status/caoccao/Javet/Linux%20Build?label=Linux%20Build&style=for-the-badge
:target: https://github.com/caoccao/Javet/actions/workflows/linux_build.yml

Javet is Java + V8 (JAVa + V + EighT). It is an awesome way of embedding Node.js and V8 in Java.

If you like my work, please **Star** this project. And, you may follow me `@sjtucaocao <https://twitter.com/sjtucaocao>`_, or visit http://caoccao.blogspot.com/. And the official support channel is at `discord <https://discord.gg/R4vvKU96gw>`_.

💖 If you use Mac OS (x86_64), please be aware that the Mac OS (x86_64) build will discontinue anytime because my MacBook Air mid-2012 will be soon deprecated by new version of V8. Please `donate <https://paypal.me/caoccao?locale.x=en_US>`_ to support me purchasing a new Mac OS (x86_64) device.

💖 If you use Mac OS (arm64), unfortunately there is no Mac OS (arm64) build because I don't have any Mac OS (arm64) device. Please `donate <https://paypal.me/caoccao?locale.x=en_US>`_ to support me purchasing a new Mac OS (arm64) device.

Major Features
==============

* Linux + Mac OS + ️Windows (x86_64)
* Node.js ``v14.17.4`` + V8 ``v9.2.230.21``
* Dynamic switch between Node.js and V8
* Node.js ``v14.17.6`` + V8 ``v9.3.345.16``
* Dynamic switch between Node.js and V8 mode
* Polyfill V8 mode with `Javenode <https://github.com/caoccao/Javenode>`_
* Exposure of the majority of V8 API in JVM
* JavaScript and Java interop
* Native BigInt and Date
Expand All @@ -52,31 +52,31 @@ Maven
<dependency>
<groupId>com.caoccao.javet</groupId>
<artifactId>javet</artifactId>
<version>0.9.10</version>
<version>0.9.11</version>
</dependency>
<!-- Mac OS (x86_64 Only) -->
<dependency>
<groupId>com.caoccao.javet</groupId>
<artifactId>javet-macos</artifactId>
<version>0.9.10</version>
<version>0.9.11</version>
</dependency>
Gradle Kotlin DSL
^^^^^^^^^^^^^^^^^

.. code-block:: kotlin
implementation("com.caoccao.javet:javet:0.9.10") // Linux or Windows
implementation("com.caoccao.javet:javet-macos:0.9.10") // Mac OS (x86_64 Only)
implementation("com.caoccao.javet:javet:0.9.11") // Linux or Windows
implementation("com.caoccao.javet:javet-macos:0.9.11") // Mac OS (x86_64 Only)
Gradle Groovy DSL
^^^^^^^^^^^^^^^^^

.. code-block:: groovy
implementation 'com.caoccao.javet:javet:0.9.10' // Linux or Windows
implementation 'com.caoccao.javet:javet-macos:0.9.10' // Mac OS (x86_64 Only)
implementation 'com.caoccao.javet:javet:0.9.11' // Linux or Windows
implementation 'com.caoccao.javet:javet-macos:0.9.11' // Mac OS (x86_64 Only)
Hello Javet
-----------
Expand Down
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repositories {
}

group = "com.caoccao.javet"
version = "0.9.10"
version = "0.9.11"

repositories {
mavenCentral()
Expand All @@ -35,9 +35,8 @@ dependencies {
testImplementation("org.eclipse.jetty.websocket:websocket-server:9.4.38.v20210224")
testImplementation("org.eclipse.jetty.websocket:javax-websocket-server-impl:9.4.38.v20210224")
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.12.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
runtimeOnly(fileTree("libs"))
}

afterEvaluate {
Expand Down
2 changes: 1 addition & 1 deletion cpp/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Usage for V8: sh build-linux.sh -DV8_DIR=${HOME}/v8
# Usage for Node: sh build-linux.sh -DNODE_DIR=${HOME}/node
JAVET_VERSION=0.9.10
JAVET_VERSION=0.9.11
rm -rf build
mkdir build
cd build
Expand Down
2 changes: 1 addition & 1 deletion cpp/build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Usage for V8: sh build-macos.sh -DV8_DIR=${HOME}/v8
# Usage for Node: sh build-macos.sh -DNODE_DIR=${HOME}/node
JAVET_VERSION=0.9.10
JAVET_VERSION=0.9.11
rm -rf build
mkdir build
cd build
Expand Down
2 changes: 1 addition & 1 deletion cpp/build-windows.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off
REM Usage for V8: build -DV8_DIR=C:\v8
REM Usage for Node: build -DNODE_DIR=C:\node
SET JAVET_VERSION=0.9.10
SET JAVET_VERSION=0.9.11
rd /s/q build
mkdir build
cd build
Expand Down
Loading

0 comments on commit 2277783

Please sign in to comment.