this is 1.4.0 release | 这是1.4正式版
[en] feature changed since 1.3
- support apple silicon #591
- upgrade the default v8 to 9.4,nodejs to 16
- full platform support for Node.js
- make all members become configurable #667
- add
require('puerts').getLastException
to get the Error instance #629 - support multi inspector client (including hot-reload).
- add
import.meta.url
when module is loading - Add
JsEnv.Backend
and add some GC API - add global variables
CS
andpuer
. migerating to ESM module. CommonJS will deprecated in the future. - add support for Android x86_64 (v8/quickjs)
- add
Puerts.IModuleChecker
. if your ILoader implement this interface. Then you can indicate which extname of jsfile will be treated as ESM Module.
[zhcn] 自1.3版本以来的功能变更
- 支持apple silicon芯片 #591
- 升级默认v8到9.4版本,Node.JS到16版本
- 支持安卓和iOS平台的Node.JS
- 所有属性改为configurable #667
- 添加
require('puerts').getLastException
接口 #629 - 支持同时连接多个inspector(包括热重载功能)
- 为模块添加
import.meta.url
- 添加
JsEnv.Backend
,提供了一些内存管理接口 - 添加全局变量
CS
以及puer
,向ESM规范过渡,CommonJS规范未来逐渐不建议使用 - 添加v8和quickjs的android x86_64支持
- 新增Puerts.IModuleChecker。传入的ILoader如果实现了该接口,则可以自定义哪些文件后缀会被识别为ESM模块
you can see other bugfixes log in doc/unity/en/changelog.md
or doc/unity/zhcn/changelog.md
difference between Node.js/Quickjs/V8: wiki