Skip to content

Commit

Permalink
🐳 chore: Upgrade Javet to v3.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Jul 23, 2024
1 parent 7edf3dc commit b2e3a1d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ Maven
<dependency>
<groupId>com.caoccao.javet</groupId>
<artifactId>javenode</artifactId>
<version>0.7.0</version>
<version>0.8.0</version>
</dependency>
Gradle Kotlin DSL
^^^^^^^^^^^^^^^^^

.. code-block:: kotlin
implementation("com.caoccao.javet:javenode:0.7.0")
implementation("com.caoccao.javet:javenode:0.8.0")
Gradle Groovy DSL
^^^^^^^^^^^^^^^^^

.. code-block:: groovy
implementation 'com.caoccao.javet:javenode:0.7.0'
implementation 'com.caoccao.javet:javenode:0.8.0'
Hello Javenode (Static Import)
------------------------------
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ object Config {
object Versions {
const val BYTE_BUDDY = "1.14.10"
const val JAVA_VERSION = "1.8"
const val JAVET = "3.1.2"
const val JAVENODE = "0.7.0"
const val JAVET = "3.1.4"
const val JAVENODE = "0.8.0"
const val JUNIT = "5.10.1"
const val VERTX = "4.4.6"
}
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Sam Cao'

# The full version, including alpha/beta/rc tags
release = '0.7.0'
release = '0.8.0'


# -- General configuration ---------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Release Notes
=============

0.8.0
-----

* Upgraded Javet to v3.1.4

0.7.0
-----

Expand Down
4 changes: 2 additions & 2 deletions scripts/python/change_javet_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def _update(self, relative_file_path: str, line_separator: str, *patterns: list)
logging.info(' Updated.')

def main():
change_javenode_version = ChangeVersion('0.7.0')
change_javenode_version = ChangeVersion('0.8.0')
change_javenode_version.update_javenode()
change_javet_version = ChangeVersion('3.1.2')
change_javet_version = ChangeVersion('3.1.4')
change_javet_version.update_javet()
return 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public void testThread() throws JavetException, InterruptedException {
public void testV8GC() throws JavetException {
int initialCallbackContextCount = v8Runtime.getCallbackContextCount();
v8Runtime.getGlobalObject().set("test", String.class);
assertEquals(initialCallbackContextCount + 6, v8Runtime.getCallbackContextCount());
assertEquals(initialCallbackContextCount + 7, v8Runtime.getCallbackContextCount());
v8Runtime.getGlobalObject().delete("test");
assertEquals(initialCallbackContextCount + 6, v8Runtime.getCallbackContextCount());
v8Runtime.getExecutor("javet.v8.gc()").executeVoid();
assertEquals(initialCallbackContextCount + 7, v8Runtime.getCallbackContextCount());
v8Runtime.getExecutor("javet.v8.gc()").executeVoid();
assertEquals(initialCallbackContextCount + 8, v8Runtime.getCallbackContextCount());
v8Runtime.lowMemoryNotification();
assertEquals(initialCallbackContextCount, v8Runtime.getCallbackContextCount());
}
Expand Down

0 comments on commit b2e3a1d

Please sign in to comment.