
Rhino
Библиотека Rhino - это форк движка JavaScript от Mozilla, адаптированный для модов Minecraft. Она добавляет поддержку ES6 и не зависит от встроенного Nashorn, удалённого в Java 15. Нужна для работы KubeJS.
Оцените первым
18.9M
104
Список изменений
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!
Файлы
rhino-2101.2.8-build.91.jar(957.95 KiB)
ОсновнойМетаданные
Канал релиза
Beta
Номер версии
2101.2.8-build.91+Rhino-1.21
Загрузчики
NeoForge
Версии игры
1.21–26.1.2
Загрузок
10.9K
Дата публикации
19.07.2026
