[2.2.2] - 2025-05-13
- Fixed the issue where the WebGL build tool would repeatedly execute npm install on Windows.
- Added support for One-Click Export for WeChat Mini Games.
- Resolved the "token overflowed internal buffer" compilation error, added DisallowedType checks, and fixed cases where wrappers referenced undeclared value types (fixes #2039).
- Prevented exceptions caused by missing eval in WebGL environments from being directly thrown in JS, which could halt the program.
- Removed the restriction requiring Puerts.WebGL.MainEnv.Get to create JsEnv in WebGL builds.
- Added support for Unity's "Faster (smaller) builds" option (equivalent to WeChat export tool's "il2cpp optimize size") (#2046).
- Fixed errors when accessing C# in native setTimeout callbacks under WebGL.
- Optimized memory usage by removing storage of class/field names and storing method names as const char* pointers instead.
[2.2.2] - 2025-5-13
- 解决webgl打包工具windows下会重复npm i安装的问题
- 微信小游戏一键导出的支持
- 解决“token overflowed internal buffer”编译错误,并加入DisallowedType的判断,wrap引用了值类型但没声明的情况,fix #2039
- webgl环境没有eval的异常不直接抛在js,这会导致程序halt
- 不再限制webgl下必须得用Puerts.WebGL.MainEnv.Get来创建JsEnv
- 支持Unity生成的“Faster (smaller) builds”选项(对应微信导出工具的il2cpp optimize size ) (#2046)
- 修正webgl环境下,原生setTimeout回调中访问C#报错的问题
- 优化掉类名和字段名的存放,方法名改为存放const char*指针,节省内存