feat: 脚本过滤/操作支持(QuickJS WASM)+ warn 修复#10
Open
490694561 wants to merge 5 commits into
Open
Conversation
- 添加 yaml 包依赖(上游从 js-yaml 切换到 yaml) - esbuild 存根列表新增 dgram(上游 DNS 模块使用)
Added feedback link to LINUX DO.
Owner
|
感谢 @0xpoker 的 PR,QuickJS WASM Script Operator 适配方向已经确认可行。 我已经基于这个 PR 的思路在 main 分支补充并推送了兼容性修正:
相关提交:e2a7c23 这个 PR 的核心思路已经采纳到 main,感谢贡献。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
新增功能
eval/new Function的限制wrangler.toml中通过[vars] SCRIPT_ENGINE控制,设为"quickjs"启用,未设置则禁用并返回引导提示Bug 修复
yaml依赖、esbuild node stubs 补充dgramOpenAPI缺失warn方法导致解析订阅时I.warn is not a function报错文件变更
src/vendor/quickjs-executor.js:QuickJS WASM 沙箱引擎核心src/vendor/quickjs.wasm:QuickJS WASM 二进制esbuild.js:WASM 加载器、eval 重写优化src/restful/miscs.js:worker-status 报告脚本引擎能力src/vendor/open-api.js:补全warn方法wrangler.toml:新增SCRIPT_ENGINE环境变量package.json:新增quickjs-emscripten、@jitl/quickjs-wasmfile-release-sync、yaml依赖README.md:新增功能说明章节