Release v3.8.0 - #8796
Merged
Merged
Conversation
|
✅ Deploy Preview for modernjs-byted ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Rsdoctor Bundle Diff Analysis📊 Quick Summary
Generated by Rsdoctor GitHub Action |
caohuilin
enabled auto-merge (squash)
August 6, 2026 06:23
zllkjc
approved these changes
Aug 7, 2026
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.

What's Changed
New Features 🎉
@modern-js/app-toolsand generateAGENTS.md/CLAUDE.mdpointing at them, so AI coding agents read docs matching the installed version in feat: make the bundled docs agent-readable #8781docs/) on publish, and generateAGENTS.md/CLAUDE.mdin new projects created by@modern-js/create(skip with--no-agents-md). Existing projects can runnpx @modern-js/create --agents-md-onlyto add or idempotently refresh these files after an upgrade (managed marker block is updated in place, user content is preserved). Also fixes boolean flags swallowing the following positional argument (e.g.create --sub my-app). in feat: make the bundled docs agent-readable #8781dev.mockDirin feat(app-tools): support dev.mockDir #8780Bug Fixes 🐞
moduleType, resolve.tsx/.jsxentries, transform JSX) in fix(server): make custom server output runnable under native ESM #8784Other Changes ✨
deployAPI and make it own the build, server plugin in feat(app-tools): support programmatic dev/build lifecycle #8783closeServerfrom the package root. Programmaticdevandstartin feat(app-tools): support programmatic dev/build lifecycle #8783buildAPI and its options from the package root, initialize the builder whenbuildis supplied through the app-context command, and close completed non-watch builds before returning. TheonPreparedist cleanup now also recognizes the programmaticappContext.command, so programmaticdev/buildclean stale output the same way the CLI does (still honoringoutput.cleanDistPathand running beforenestedRoutes.jsonis generated). in feat(app-tools): support programmatic dev/build lifecycle #8783更新内容
新特性 🎉
AGENTS.md/CLAUDE.md,让 AI 编码助手读到与所装版本匹配的文档, 详情可查看 feat: make the bundled docs agent-readable #8781docs/),并在@modern-js/create新建项目时默认生成AGENTS.md/CLAUDE.md(--no-agents-md可跳过)。已有项目可运行npx @modern-js/create --agents-md-only在升级后补齐或幂等更新这两个文件(就地更新托管标记块,保留用户自定义内容)。同时修复布尔参数吞掉后续位置参数的问题(如create --sub my-app)。, 详情可查看 feat: make the bundled docs agent-readable #8781dev.mockDir配置 Mock 目录, 详情可查看 feat(app-tools): support dev.mockDir #8780Bug 修复 🐞
moduleType、支持.tsx/.jsx入口解析、编译 JSX), 详情可查看 fix(server): make custom server output runnable under native ESM #8784其他变更 ✨
present, including occupied port selection., 详情可查看 feat(app-tools): support programmatic dev/build lifecycle #8783
buildAPI 及其选项,在通过 app-context command 传入build时初始化 builder,并在返回前关闭已完成的非 watch 构建。onPrepare的 dist 清理现在也识别程序化的appContext.command,使程序化dev/build与 CLI 一样清理陈旧产物(仍遵循output.cleanDistPath,并在生成nestedRoutes.json之前执行)。, 详情可查看 feat(app-tools): support programmatic dev/build lifecycle #8783