Rhino

A fork of Mozilla's Rhino library, modified for use in mods

File Details

Rhino 2101.2.8-build.91

  • B
  • Jul 19, 2026
  • 957.95 KB
  • 1.0K
  • 26.1.2+5
  • Forge + 2

File Name

rhino-2101.2.8-build.91.jar

Supported Versions

  • 26.1.2
  • 1.21.4
  • 1.21.3
  • 1.21.2
  • 1.21.1
  • 1.21

Curse Maven Snippet

Forge

implementation "curse.maven:rhino-416294:8463898"

Fabric

modImplementation "curse.maven:rhino-416294:8463898"

NeoForge

implementation "curse.maven:rhino-416294:8463898"

Learn more about Curse Maven

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 in catch, for loops, 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 of values/entries/fromEntries for Object, 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...in or for...of loops (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!