Skip to content

Commit f1f78d8

Browse files
committed
4.4.0
1 parent f294216 commit f1f78d8

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
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+
137
# ProbeJS Legacy 4.3.0 -> 4.3.1
238

339
fix recipe docs

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ vineflower_version=1.10.1
2121
parchment_version=1.16.5:2022.03.06
2222

2323
# Mod Properties
24-
mod_version=4.3.1
24+
mod_version=4.4.0
2525
maven_group=com.prunoideae
2626
archives_base_name=probejs
2727
mod_id=probejs

0 commit comments

Comments
 (0)