|
| 1 | +# ProbeJS Legacy 4.3.1 -> 4.4.0 |
| 2 | + |
| 3 | +better `$Class<T>` and recipe doc |
| 4 | + |
| 5 | +### Event |
| 6 | + |
| 7 | +- onForgeEvent() that uses string as its first arg will now have typing supports again |
| 8 | + - for example `onForgeEvent("net.minecraftforge.event.entity.ProjectileImpactEvent$Arrow", (event) => {}` |
| 9 | +- now almost all elements in `recipes` in RecipeEvent will now be resolved, `recipes.minecraftCampfireCooking` for example |
| 10 | +- by default some json-based recipe function is not dumped, since they're basically the same as `event.custom(...)`, a new config option is added that allows dumping them |
| 11 | + |
| 12 | +### Class |
| 13 | + |
| 14 | +- better `$Class` typing that prevents `typeof T` or `typeof any` |
| 15 | +- `$Class` will now be redirected to `JClass` for clearer type hint |
| 16 | +- primitive classes will not somehow be dumped now |
| 17 | +- Java wrapper classes like `java.lang.String` can now be dumped again |
| 18 | +- results of `java(...)` can now be used for generic matching that requires `$Class<T>` |
| 19 | + |
| 20 | +### Others |
| 21 | + |
| 22 | +- fixed registry names with same path and different namespace from conflicting |
| 23 | +- support for KesseractJS |
| 24 | +- ScriptableObject and NativeArray will be resolved to its JS type, for better `global` resolving |
| 25 | +- cleanup imports of `GlobalClasses` |
| 26 | + |
| 27 | +### Internal |
| 28 | + |
| 29 | +- several tweaks to improve typing generation performance |
| 30 | +- mixin targeting forge event bus is removed because we have class scanner, this improves forge event performance a bit |
| 31 | +- probejs plugin can only be registered in Java code now |
| 32 | +- make `ItemStackJS` assignable from `ItemStack` |
| 33 | +- classes with simple package name will be dumped to `simple_package_classes.d.ts` |
| 34 | + |
| 35 | +--- |
| 36 | + |
1 | 37 | # ProbeJS Legacy 4.3.0 -> 4.3.1
|
2 | 38 |
|
3 | 39 | fix recipe docs
|
|
0 commit comments