Modern.js is a web engineering system, including a web framework and a npm package solution.
MIT License
Bot releases are hidden (Show)
Published by caohuilin about 1 year ago
Published by caohuilin over 1 year ago
source.aliasStrategy
option by @chenjiahan in https://github.com/web-infra-dev/modern.js/pull/4225
$
in mdx file by @sanyuan0704 in https://github.com/web-infra-dev/modern.js/pull/4234
html
dir by @sanyuan0704 in https://github.com/web-infra-dev/modern.js/pull/4211
modifyRoutes
in SSR by @xuchaobei in https://github.com/web-infra-dev/modern.js/pull/4219
source.aliasStrategy
选项 由 @chenjiahan 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4225
$
字符时,mdx 内容扁平化结果异常 由 @sanyuan0704 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4234
modifyRoutes
执行时机 由 @xuchaobei 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4219
Published by caohuilin over 1 year ago
--no-need-install
params by @caohuilin{tailwindCSSPlugin}
but the named export is {tailwindcssPlugin}
by @ScriptedAlchemy in https://github.com/web-infra-dev/modern.js/pull/4162
--no-need-install
参数 由 @caohuilin 实现Published by caohuilin over 1 year ago
addPages
hook by @sanyuan0704 in https://github.com/web-infra-dev/modern.js/pull/4094
addPages
钩子新增的页面添加预览功能 由 @sanyuan0704 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4094
Published by caohuilin over 1 year ago
Published by caohuilin over 1 year ago
setAppContext
by @xuchaobei in https://github.com/web-infra-dev/modern.js/pull/4047
setAppContext
时, 获取最新的 App Context 进行合并 由 @xuchaobei 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4047
Published by caohuilin over 1 year ago
http-compression
can't handler stream http by @GiveMe-A-Name in https://github.com/web-infra-dev/modern.js/pull/4023
-server-loader.js
file change by @zllkjc in https://github.com/web-infra-dev/modern.js/pull/4008
@remix-run/router
cjs instead of react-router-dom
by @zllkjc in https://github.com/web-infra-dev/modern.js/pull/4011
http-compression
不能处理 stream http 由 @GiveMe-A-Name 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4023
-server-loader.js
变化时触发 onServerChange 由 @zllkjc 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4008
@remix-run/router
的 cjs 导出代替 react-router-dom
由 @zllkjc 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4011
Published by chenjiahan over 1 year ago
Published by caohuilin over 1 year ago
Published by caohuilin over 1 year ago
feat: add esbuildOptions to support that change esbuild options directly
feat: 新增esbuildOptions配置支持直接修改esbuild最终配置
chore(deps): bump cssnano from v5 to v6
chore(deps): 将 cssnano 从 v5 升级到 v6
feat: add doc-tools e2e
feat: 添加 doc-tools e2e 测试用例
feat(builder): add convertToRem.inlineRuntime config
feat(builder): 新增 convertToRem.inlineRuntime 配置项
chore(generator): make rspack a priority
chore(generator): 将启用 rspack 作为优先选项
chore(server): no longer replace globalVars when compiler is babel
chore(server): 进行 babel compile 时不再替换 globalVars
feat: adjust server.worker config to deploy.worker.ssr
feat: 调整 server.worker 为 deploy.worker.ssr
feat: support Comment component in Document.tsx
feat: 支持 Comment 组件,可以保留用户的注释到最终的 html 上
fix: change content padding-bottom from 48px to 72px, equal to header height
fix: 将内容区域的底部内边距从48px修改为72px,和头部高度保持一致
feat: add hook modifyRoutes
feat: 增加 hook modifyRoutes
feat: adpate rspack copy plugin
feat: 适配 rspack copy 插件
chore(rspack-provider): update rspack to 0.1.8
chore(rspack-provider): 升级 rspack 相关依赖到 0.1.8 版本
feat: re-export createPath
from react-router
feat: 从 react-router 导出 createPath
fix(devServer): using current host and port to create HMR connection
fix(devServer): 建立 HMR 连接时默认使用当前 host 和 port
feat: support config handle of Route
feat: 支持配置 Route 的 handle 属性
feat: add ssr.inlineScript for use inline json instead inline script when ssr
feat: 添加 ssr.inlineScript 用于在 ssr 模式下使用内联 json 而不是内联脚本
chore(cli): improve commands descriptions
chore(cli): 优化命令的描述文案
feat(builder): source.globalVars support function usage
feat(builder): source.globalVars 支持函数写法
feat: support extendPageData hook and last updated time
feat: 支持 extendPageData 钩子和最后更新时间功能
feat: add optional dynamic routes docs
feat: 添加可选动态路由文档
fix: The http://0.0.0.0:port can't visit in windows, we shouldn't set publicPath as //0.0.0.0:${port}/
;
fix: 在 windows 里不能正常访问 http://0.0.0.0:port,我们不应该将 publicPath 设置成 //0.0.0.0:${port}
fix(app-tools): failed to scan public dir when using Rspack
fix(app-tools): 修复 Rspack 模式读取 public 目录失败的问题
fix(utils): the esm format files should be generate for the client
fix(utils): 应该为客户端使用,生成 esm 格式的文件
fix(app-tools): can not disable output.cleanDistPath
fix(app-tools): 修复无法禁用 output.cleanDistPath 的问题
fix: doc e2e test in windows
fix: 解决 windows 下 e2e 测试失败的问题
fix: the streaming ssr may add repeated css assets, because the route-manifets would product all css link
fix: 因为 route-manifets 会生成所有 css link 信息,导致 streaming ssr 可能添加重复的 css 资源,
fix: ssr and document integration test error
fix: 修复 ssr 和 document 的集测错误
fix(monorepo): ignore unnessary peer deps warning from antd
fix(monorepo): 忽略由 antd 造成的不必要的 peer deps 警告
fix(app-tools): should not print all addresses when custom dev.host
fix(app-tools): 修复自定义 dev.host 时会输出多余的 URL 地址的问题
fix: router missing App static property
fix: router 确实 App 的静态属性
fix: 更新集测 snapshot,修复 document 功能在 node 14 下的错误
fix: update test snapshot, fix document error in node 14
fix(generator): README should be written in English
fix(generator): README 应该使用英文编写
fix(garfish): pass basename to subApp
test(garfish): add e2e test for passing basename
fix(app-tools): failed to validate globalVars in legacy mode
fix(app-tools): 修复兼容模式下 globalVars 类型校验错误的问题
fix: ssr stream test case
fix: 修复 ssr stream 测试用例
fix(runtime): MODERN_TARGET is not injected when using Rspack
fix(runtime): 修复 Rspack 模式未注入 MODERN_TARGET 的问题
fix(builder): update source.alias type when using Rspack
fix(builder): 更新使用 Rspack 时的 source.alias 类型
chore: remove plugin-egg and plugin-nest
chore: 移除 plugin-egg 和 plugin-nest
fix: set encoding for defered loader
fix: 为 defer loader 设置 encoding
fix(doc-core): fix failed to resolve @modern-js/utils/logger
fix(doc-core): 修复引用 @modern-js/utils/logger 失败的问题
Published by yimingjfe almost 2 years ago
feat(builder): support display compile time in progress bar
feat(builder): 支持在进度条中展示编译时间
feat: remove node internal package like fs or path which import by ssr runtime
feat: 删除在 ssr runtime 中引用的 node 内部包
fix: reduce compile parameters for dev-server
fix: 减少 dev-server 编译所需参数
feat: Support disable builder performance.builderCache configuration
feat: 支持禁用掉 builder performance.buildeCache
配置项
feat(builder): improve log info of inspectConfig method
feat(builder): 优化 inspectConfig 方法的日志输出
feat: new command install not run prepare scripts
feat: new 命令安装依赖时不执行 prepare 脚本
chore: reduce parameters for dev-server & update default config value in builder startDevServer
chore: 缩简 devServer 配置定义 & 更新 builder startDevServer 方法 config 默认值
feat(webpack): expose HtmlWebpackPlugin instance in tools.webpack
feat(webpack): 支持在 tools.webpack 中获取到 HtmlWebpackPlugin 实例
feat(builder): support distPath.server config
feat(builder): 支持 distPath.server 配置项
fix: new action version when new electron
fix: 修复启用 Electron 时版本报错
fix: new testing reference type
fix: 修复开启测试功能 reference 类型
fix(bundle-require): should bundle ts or esm files inside node_modules
fix(bundle-require): 修复无法打包 node_modules 下的 ts 和 esm 文件的问题
fix: runtime export field
fix: 修复 runtime 包导出字段
fix: tools.webpack
of Storybook API not work
fix: 修复 Storybook API tools.webpack 不生效
fix: state runtime plugin params
fix: state 插件参数格式
fix(core): dev.https missing object type
fix(core): 修复 dev.https 配置项缺少对象类型的问题
fix: add missing ssr exports from runtime ssr plugin
fix: 补充 runtime ssr 插件中丢失的 ssr 导出
fix(plugin): fix return type of Workflow
fix(plugin): 修复 Workflow 的返回值类型错误
fix(builder): inlined assets should be deleted after all html generated
fix(builder): inline 的资源应该在所有 html 生成后被删除
fix: should not do render if set location header and 302 status in middleware
fix: 如果在 middleware 中设置了 location 头和 302 状态码,则不应该走渲染逻辑
fix(prod-server): failed to match URL which ends with ".html"
fix(prod-server): 修复无法匹配到以 ".html" 结尾的 URL 的问题
fix: modify the parameters passed to the compile function of server-utils
fix: 修改传入server-utils的compile函数的参数
fix(builder): default value of tools.tsChecker config
fix(builder): 修复 tools.tsChecker 默认值错误的问题
fix(builder): failed to write stderr messages
fix(builder): 修复输出 stderr 信息时不展示的问题
fix(builder): not apply style-loader or extract css when target is node
fix(builder): 修复 CSS 构建时注册了 style-loader 或 extract css 导致报错的问题
Published by xuchaobei about 2 years ago
feat: add afterDev hook
feat: 添加 afterDev 钩子
feat: support Webpack profile
configuration
feat: 支持 Webpack profile
配置项
docs(builder): add docs for inline chunks
docs(builder): 增加 inline chunks 文档
feat(devServer): support devServer.setupMiddlewares config
feat(devServer): 支持 devServer.setupMiddlewares 配置项
feat: generator plugin support set default config
feat: 生成器插件支持设置增加问题的默认值
feat: optimize the logger of @modern-js/utils, remove builder logger
feat: 优化 @modern-js/utils 的 logger 格式, 移除 builder 内置的 logger
fix: upgrade tools npmrc content
fix: 升级工具 npmrc 文件配置
feat(builder): allow to close dev server
feat(builder): 支持关闭 dev server
chore(builder): bump webpack to 5.74.0
chore(builder): 升级 webpack 到 5.74.0 版本
feat: support loadable scripts add crossorigin attribute
feat: SSR 支持 loadable 脚本添加 crossorigin 属性
chore: move copyTask from bundleless task to build task
chore: 把copy任务从bundleless任务中移动到build任务中
feat: allow user config managerWebpack
feat: 运行用户配置 managerWebpack
feat: support devServer.historyApiFallback
feat: 支持 devServer.historyApiFallback 配置项
chore(builder): move constants and utils to shared package
chore(builder): 将常量和 utils 移动至 shared 包
feat: support Webpack resolve.mainFields
configuration
feat: 支持 Webpack resolve.mainFields
配置项
chore(devServer): get devServer config from this.dev
chore(devServer): 从 this.dev 上获取 devServer 配置
fix(core): failed to log validate config errors from plugins
fix(core): 修复校验 plugin 中的 config 异常时,日志格式不正确的问题
fix: extends path error
fix: 修复 extends 字段路径的问题
fix(builder): api.onExit hook not work
fix(builder): 修复 api.onExit 钩子不生效的问题
fix(builder): disable resolve.fullySpecified by default
fix(builder): 默认禁用 resolve.fullySpecified 规则
fix(app-tools): remove useless logging option
fix(app-tools): 移除无效的 logging 选项
fix: ssr runtime plugin need default config
fix: ssr 运行时插件需要传入默认配置
fix: generator plugin addHelper api
fix: 修复生成器插件 addHelper this 指向问题
fix(builder): should not apply react refresh when dev.hmr is false
fix(builder): 修复 dev.hmr 为 false 时仍然会注入 react-refresh 的问题
fix: change preview template
fix: 修改 preview 模板文件
fix(utils): failed to resolve execa
fix(utils): 修复找不到 execa 模块的问题
fix(builder): add hash for static assets in dev to avoid conflict
fix(builder): 在开发环境下生成静态资源时,默认添加 hash 以避免文件名冲突
fix(builder): remove asset file after inlining it into html
fix(builder): 在 inline 后删除 asset 文件
fix(webpack): react-refresh-webpack-plugin cause rebuild slow
fix(webpack): 修复 react-refresh-webpack-plugin 导致重新编译慢的问题
fix: support monorepo deploy in pnpm 7
fix: 修复 monorepo deploy 命令在 pnpm 7 下的问题
fix: console error message if error stack not exist
fix: 如果错误堆栈不存在,则输出错误信息
Published by caohuilin about 2 years ago
chore: electron ts template use electron.config.js
chore: electron ts 模版使用electron.config.js
配置
feat: support etag in dev server by default
feat: 开发环境默认支持 etag 功能
chore: add assets retry plugin
chore: 增加资源重试插件
chore(utils): add RULE.JS_DATA_URI to CHAIN_ID
chore(utils): CHAIN_ID 增加 RULE.JS_DATA_URI 值
update electron template dep: @modern-js/plugin-electron
升级 electron 模版中的 @modern-js/plugin-electron
依赖版本
fix: the compaire-version throw error make the supportModern error
fix: compaire-version 的抛错导致 supportModern 失败
fix: tools.devServer type missing some properties
fix: 修复 tools.devServer 类型定义不完整的问题
fix(plugin): incorrect createManager type in TS 4.8
fix(plugin): 修复 createManager 在 TS 4.8 下的类型问题
fix: dev server config should be optional
fix: devServer 配置项应该是可选配置的
fix: invoke next() in dev-middleware directly if only api
fix: 在 api 服务的情况下,直接调用 next(),不执行 dev-middleware
fix: fix MApp can not pass props to microapp and fix closure causes loadable invalid
fix: 修复 MApp 无法传递 props 问题,修复 loadable setstate 闭包问题导致 state 更新异常
fix: alias should take precedence over package name
fix: 编译时,别名的优先级应该高于包名
fix: fix the problem that the response header cannot be redirected when setting in ssr
fix: 修复在 SSR 中设置响应头却无法重定向的问题
fix: ssr bundle should not be compiled by ts-node
fix: ts-node 不应该编译 ssr bundle
fix: fix dev server type error
fix: 修复 dev server 中的类型错误
fix: use output.publicPath(default) as webpack-dev-middleware publicPath
fix: 使用 output.publicPath 作为 webpack-dev-middleware publicPath
Published by caohuilin about 2 years ago
feat(utils): add TOML to CHAIN_ID.RULE
feat(utils): 向 CHAIN_ID.RULE 中增加新常量 TOML
feat: runtime export utils not write d.ts file
feat: runtime 生成 export 函数不再支持生成 d.ts 文件
feat(babel-preset-app): bump core-js version to support more polyfills
feat(babel-preset-app): 升级默认的 core-js 版本,支持更多 polyfill
feat: add upgrade tools and command
feat: 增加升级工具和升级命令
feat: new command use solution version
feat: new 命令使用当前工程方案对应版本的插件
chore(dev-server): no longer depend on @modern-js/webpack
chore(dev-server): 不再依赖 @modern-js/webpack
feat(utils): add PUG to CHAIN_ID
feat(utils): CHAIN_ID 常量新增 PUG 值
chore: export getAddressUrls method
chore: 导出 getAddressUrls 方法
feat: remove .runtime-exports/index.js
export
feat: 移除 .runtime-exports/index.js
导出
feat(utils): add SVG_ASSET to CHAIN_ID
feat(utils): CHAIN_ID 常量新增 SVG_ASSET 值
fix: runtime type
fix: 修复 runtime 类型定义
fix: useLoader
auto-generated id
fix: 修复 useLoader
自动生成的 id
feat: support react 18 ssr
feat: 支持 React 18 下使用 SSR
feat(utils): add MODULE_DEPENDENCY_ERROR to CHAIN_ID
feat(utils): CHAIN_ID 常量新增 MODULE_DEPENDENCY_ERROR 值
feat(utils): add YAML to CHAIN_ID.RULE
feat(utils): 向 CHAIN_ID.RULE 中增加新常量 YAML
Published by caohuilin about 2 years ago
feat: create new project use modern current latest version
feat: @modern-js/create 创建项目使用 Modern.js 最新依赖版本
feat(utils): add html-cross-origin to CHAIN_ID
feat(utils): CHAIN_ID 常量新增 html-cross-origin 值
chore: support react 18
chore: 支持 React 18
feat: add media rule name to CHAIN_ID constant
feat: 在 CHAIN_ID 常量中新增 media rule
chore: remove all deploy logic and package
chore: 删除所有部署相关的逻辑和包
feat: support frame mode without lambda directories
feat: 支持无 lambda 目录的框架模式
feat: update codesmith package
feat: 升级 codesmith 包版本
fix: check apiOnly while has source.entriesDir
fix: 当配置 source.entriesDir 存在时,apiOnly 检查错误
fix: remove helmet regexp's global tag
fix: 删除 helmet 中正则匹配的全局标记
fix(dev-server): support enable hmr client by webpack target
fix(dev-server): 支持通过 webpack target 来判断是否启用 hmr client
fix: generator schema validate
fix: 修复生成器问题校验失败
fix: compatibility issues of dev server in iOS 10
fix: 修复 dev server 代码在 iOS 10 下的兼容性问题
fix: fix generator plugin new function MaxListenersExceededWarning
fix: 修复生成器插件使用开启工程时 MaxListenersExceededWarning
Published by caohuilin about 2 years ago
从该版本开始,Modern.js 将仓库内所有包版本号保持一致,Release Tag 版本即为版本号!!!
fix: generator template doc link
fix: 修复生成器生成项目文档链接问题
chore: remove @modern-js/plugin-docsite
chore: 移除 @modern-js/plugin-docsite
feat: generate SSR bundle sourcemap
feat: SSR 打包生成 sourcemap
feat: support afterLambdaRegisted
hook
feat: 支持 afterLambdaRegisted
钩子函数
chore(utils): add fs-extra to exports fields
chore(utils): 通过 exports 导出 fs-extra 子路径
feat: adjust new command dependencies position
feat: 调整 new 命令添加依赖位置
feat(webpack): log more detailed error messages
feat(webpack): 打印详细的错误日志
fix(app-tools): should not modify entry when using disableDefaultEntries
fix(app-tools): 修复开启 disableDefaultEntries 后 entry 名称被修改的问题
fix: remove package adapter-helpers and bff runtime export
fix: 移除 adapter-helpers 包和 BFF runtime 导出
fix: add server hook and types
fix: 增加 server hook API
fix: fix runtime context format bug
fix: 修复 runtimeContext 数据格式化时的问题
fix: modify bff-core's types
fix: 修改 bff-core 的 types
fix: Adjust createServer logic in bff test plugin
fix: 调整 BFF 测试中 create server 的逻辑
fix: bff.proxy and devServer.proxy types
fix: 修复 bff.proxy 和 devServer.proxy 类型定义不完整的问题
fix(babel-preset-app): incorrect babel plugin path
fix(babel-preset-app): 修复 babel 插件路径错误的问题
fix(webpack): failed to format error message in some cases
fix(webpack): 修复格式化 webpack 错误信息时报错的问题
chore: remove cookie in error log
chore: 删除错误日志中的 cookie 信息
fix: 修复 SSR 物理降级时,获取不到请求上下文的问题
fix: should get ssrContext anyway if entry is ssr enable
Published by caohuilin about 2 years ago
chore: merge @modern-js/plugin-design-token
to @modern-js/plugin-tailwindcss
chore: 合并 @modern-js/plugin-design-token
到 @modern-js/plugin-tailwindcss
feat: support runtime router and state type
feat: 支持在 modern.config.ts
中提示 runtime.router
and runtime.state
类型
feat: mwa template add runtime types
feat: mwa 生成器模板增加导出 runtime 类型
feat: support runtime masterApp type
feat: 支持在 modern.config.ts
中提示 runtime.masterApp
类型
chore: move pre-bundled ajv to @modern-js/utils
chore: 预打包的 ajv 产物移动至 @modern-js/utils
内
chore(runtime): merge @modern-js/runtime-core
to @modern-js/runtime
chore(runtime): 合并 @modern-js/runtime-core
到 @modern-js/runtime
feat: support bff zod schema use transform/record/lazy
feat: 支持 bff 中 zod schema 使用 transform/record/lazy
fix: @modern-js/plugin-multiprocess
export fields
fix: 修复 @modern-js/plugin-multiprocess
导出字段路径
fix: @modern-js/plugin-esbuild
export fields
fix: 修复 @modern-js/plugin-esbuild
导出字段路径
chore: adjust @modern-js/plugin-garfish
runtime export path
chore: 调整 @modern-js/plugin-garfish
runtime 导出路径
fix(runtime): router plugin replace error
fix(runtime): router 插件 replace 报错
fix: @modern-js/app-tools
export fields
fix: 修复 @modern-js/app-tools
导出字段路径
fix(webpack): incorrect fallback result
fix(webpack): 修复 fallback 的编译产物不符合预期的问题
fix: @modern-js/node-bundle-require
export fields
fix: 修复 @modern-js/node-bundle-require
导出字段路径
fix: @modern-js/plugin-proxy
export fields
fix: 修复 @modern-js/plugin-proxy
导出字段路径
fix: storybook plugin type
fix: 修复 storybook 插件类型
fix: monorepo-tools deploy need to copy lerna.json
fix: Monorepo 中生成产物需复制 lerna.json
文件
fix: @modern-js/plugin-changeset
export fields
fix: 修复 @modern-js/plugin-changeset
导出字段路径
Published by caohuilin about 2 years ago
feat(app-tools): start and inspect command support specify config file
feat(app-tools): start 和 inspect 命令支持指定配置文件
Published by caohuilin about 2 years ago
feat: package manager support isSubProject params
feat: 生成器包管理工具选项支持 isSubProject 参数
chore: lock egg-ts-helper version
chore: 锁定 egg-ts-helper 版本
feat: solution schema support isSubProject params
feat: 生成器工程方案选项支持 isSubProject 参数
#1429 fix assets prefix bug in prod env
feat: storybook generator add react-dom
dependence
feat: storybook 生成器增加 react-dom
依赖
#1422 feat: 支持用户定义 externals 模块
feat: support response headers
feat: 支持设置响应头