Update dependency org.graalvm.js:js-scriptengine to v24
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
org.graalvm.js:js-scriptengine (source) | compile | major |
22.3.4 -> 24.1.1
|
⚠ ️ WarningSome dependencies could not be looked up. Check the warning logs for more information.
Release Notes
graalvm/graaljs (org.graalvm.js:js-scriptengine)
v24.1.0
- ECMAScript 2024 mode/features enabled by default.
- Implemented the Make eval-introduced global vars redeclarable proposal.
- Implemented the Float16Array proposal. It is available in ECMAScript staging mode (
--js.ecmascript-version=staging
). - Implemented the Array.fromAsync proposal. It is available in ECMAScript staging mode (
--js.ecmascript-version=staging
). - Implemented the Resizable and Growable ArrayBuffers proposal.
- Updated Node.js to version 20.13.1.
- Made option
js.esm-eval-returns-exports
stable and allowed inSandboxPolicy.UNTRUSTED
.
v24.0.0
- Implemented the WebAssembly threads proposal.
- Implemented the Promise.withResolvers proposal. It is available in ECMAScript staging mode (
--js.ecmascript-version=staging
). - Implementation of Async Iterator Helpers proposal (that was split out from Iterator Helpers proposal) was moved behind the experimental option
--js.async-iterator-helpers
. - Implemented the Well-Formed Unicode Strings proposal. It is available in ECMAScript staging mode (
--js.ecmascript-version=staging
). - Implemented the JSON.parse source text access proposal. It is available in ECMAScript staging mode (
--js.ecmascript-version=staging
). - Updated Node.js to version 18.18.2.
- WebAssembly support in Node.js has been enabled by default. It can be disabled using the experimental option
--js.webassembly=false
. -
--js.import-assertions
option has been replaced by--js.import-attributes
option because the corresponding proposal has migrated from the usage of assertions to the usage of attributes.
v23.1.0
- NOTE: GraalVM no longer ships with a "js" ScriptEngine. Please either use the Maven dependency or explicitly put
js-scriptengine.jar
on the module path. See ScriptEngine documentation for details. - ECMAScript 2023 mode/features enabled by default.
- Updated Node.js to version 18.17.1.
- Implemented the Async Context proposal. It is available behind the experimental option
--js.async-context
. -
FinalizationRegistry.prototype.cleanupSome
is not enabled by default any more; it has been moved to ECMAScript staging mode (--js.ecmascript-version=staging
). - Added an experimental option
--js.allow-narrow-spaces-in-date-format
(enabled by default). When this option is set tofalse
then narrow spaces in date/time formats are replaced by a space (0x20
). - Made option
js.console
stable and allowed inSandboxPolicy.UNTRUSTED
. - Made option
js.unhandled-rejections
stable and allowed inSandboxPolicy.CONSTRAINED
. - Added option
js.allow-eval
that is stable and allowed inSandboxPolicy.UNTRUSTED
. - Deprecated option
js.disable-eval
, superseded byjs.allow-eval
. - Implemented the String.dedent proposal. It is available in ECMAScript staging mode (
--js.ecmascript-version=staging
). - Duplicate named capture groups are now supported in regular expressions, as per the duplicate named capturing groups proposal.
- Implemented the RegExp v flag proposal. It is available behind the experimental option
--js.regexp-unicode-sets
. - The Maven coordinates for embedding the GraalVM JavaScript have been updated.
For consuming the enterprise GraalVM JavaScript, use:
<dependency> <groupId>org.graalvm.polyglot</groupId> <artifactId>js</artifactId> <version>${graalvm.version}</version> <type>pom</type> </dependency>
<dependency> <groupId>org.graalvm.polyglot</groupId> <artifactId>js-community</artifactId> <version>${graalvm.version}</version> <type>pom</type> </dependency>
v23.0.0
- Implemented the WebAssembly reference types proposal.
- Implemented the Iterator Helpers proposal. It is available behind the experimental option
--js.iterator-helpers
. - Implemented the ShadowRealm proposal. It is available behind the experimental option
--js.shadow-realm
. - Removed experimental option
v8-legacy-const
. - Removed non-standard
SharedArrayBuffer.isView
. - Updated Node.js to version 18.14.1.
- Implemented the Symbols as WeakMap keys proposal. It is available in ECMAScript staging mode (
--js.ecmascript-version=staging
). - Implemented the ArrayBuffer.prototype.transfer and friends proposal. It is available in ECMAScript staging mode (
--js.ecmascript-version=staging
). - Implemented the Change Array by copy proposal. It is available in ECMAScript staging mode (
--js.ecmascript-version=staging
). - Added BigInteger interop support.
Note that foreign BigIntegers require an explicit type cast using the
BigInt
function to opt into JS BigInt semantics. The default semantics is to treat all foreign numbers like JS Number values, regardless of the original value or type. Arithmetic operators perform an implicit lossy conversion to double; mixing a JS BigInt with any non-JS number always throws. Comparison operators attempt to do a precise value comparison where possible. JS BigInt values can now be converted tojava.math.BigInteger
host objects, although a target type mapping may still be necessary to ensure consistent type mapping if the target type is ambiguous or absent.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by RenovateBot