Tags
Creators
Details
2101.2.8-build.91+Rhino-1.21
Compatibility
Changes
https://github.com/KubeJS-Mods/Rhino/commits/main
Note: This release is a major update to Rhino's internals and contains a bunch of new or fixed language features, including:
- Destructuring
const {a, b} = obj,const [x, y] = arr, defaults, nested patterns, destructuring incatch,forloops, and function parameters - Default parameters
function f(a, b = a * 2) - Rest parameters
function f(...args)(unfortunately NYI in arrow functions, also no spread yet!) - Nullish coalescing (
??) and optional chaining (?.), hopefully working this time :p - Computed properties in object literals
{[key]: value}(i didn't even know this wasn't supported until a few days ago tbh...) - Tagged string literals
- more JS builtins like
Array.flatMap, impls ofvalues/entries/fromEntriesforObject, and more - Changes to iterators where we basically just copy what upstream Rhino does tho; beware of this change especially since it may have either fixed or broken some
for...inorfor...ofloops (also no, unfortunately variable scoping is not fixed yet)
If anything breaks, addons may need to be updated, otherwise, feel free to report issues directly to us on our Discord!
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:sk9knFPE:SqkDvOLG"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:sk9knFPE:SqkDvOLG"
}

