modern.js

Modern.js is a web engineering system, including a web framework and a npm package solution.

MIT License

Downloads
1.7M
Stars
4.2K
Committers
117

Bot releases are visible (Hide)

modern.js - v1.19.0

Published by github-actions[bot] about 2 years ago

Features:

  • #1794

    feat: add production env for release command

    feat: 为 release 命令增加 production 环境变量

  • #1788

    feat: support custom solution list

    feat: 生成器支持自定义工程方案列表

  • #1768

    feat: upgrade husky version

    feat: 升级生成器模板 husky 版本

  • #1768

    feat: upgrade @modern-js/plugin-jarvis husky version to 8

    feat: 升级 @modern-js/plugin-jarvis husky 版本为 8

  • #1736

    feat: support custom umd module name by 'getModuleId'

    feat: 支持自定义umd模块名通过设置'getModuleId'

  • #1768

    feat: base template set pnpm strict-peer-deoebdebcues config

    feat: 生成器添加 pnpm strict-peer-deoebdebcues 配置

  • #1768

    feat: release command support pnpm v7

    feat: release 命令支持 pnpm v7

Bug Fix:

  • #1780

    fix(server): failed to access static files when output.assetPrefix ends with /

    fix(server): 修复 output.assetPrefix 以 / 结尾时无法正确访问的问题

  • #1743

    fix: register microApps before loadApp

    fix:修复手动控制子应用加载情况下未注册子应用问题

  • #1766

    fix: upgrade command ignore electron, codesmith, reduck packages

    fix: 升级工具支持忽略 electron、codesmith、reduck 相关包

modern.js - v1.18.1

Published by caohuilin about 2 years ago

Features:

  • #1729

    chore: electron ts template use electron.config.js

    chore: electron ts 模版使用electron.config.js配置

  • #1678

    feat: support etag in dev server by default

    feat: 开发环境默认支持 etag 功能

  • #1682

    chore: add assets retry plugin

    chore: 增加资源重试插件

  • #1724

    chore(utils): add RULE.JS_DATA_URI to CHAIN_ID

    chore(utils): CHAIN_ID 增加 RULE.JS_DATA_URI 值

  • #1718

    update electron template dep: @modern-js/plugin-electron

    升级 electron 模版中的 @modern-js/plugin-electron 依赖版本

Bug Fix:

  • #1668

    fix: the compaire-version throw error make the supportModern error

    fix: compaire-version 的抛错导致 supportModern 失败

  • #1735

    fix: tools.devServer type missing some properties

    fix: 修复 tools.devServer 类型定义不完整的问题

  • #1725

    fix(plugin): incorrect createManager type in TS 4.8

    fix(plugin): 修复 createManager 在 TS 4.8 下的类型问题

  • #1738

    fix: dev server config should be optional

    fix: devServer 配置项应该是可选配置的

  • #1720

    fix: invoke next() in dev-middleware directly if only api

    fix: 在 api 服务的情况下,直接调用 next(),不执行 dev-middleware

  • #1715

    fix: fix MApp can not pass props to microapp and fix closure causes loadable invalid

    fix: 修复 MApp 无法传递 props 问题,修复 loadable setstate 闭包问题导致 state 更新异常

  • #1676

    fix: alias should take precedence over package name

    fix: 编译时,别名的优先级应该高于包名

  • #1700

    fix: fix the problem that the response header cannot be redirected when setting in ssr

    fix: 修复在 SSR 中设置响应头却无法重定向的问题

  • #1717

    fix: ssr bundle should not be compiled by ts-node

    fix: ts-node 不应该编译 ssr bundle

  • #1719

    fix: fix dev server type error

    fix: 修复 dev server 中的类型错误

  • #1721

    fix: use output.publicPath(default) as webpack-dev-middleware publicPath

    fix: 使用 output.publicPath 作为 webpack-dev-middleware publicPath

modern.js - v1.18.0

Published by github-actions[bot] about 2 years ago

Features:

  • #1636

    feat: change hmr sock path to /webpack-hmr

    feat: 热更新 socket 请求的 path 修改为 /webpack-hmr

  • #1659

    feat: remove generator create project enable less and sass function

    feat: 移除生成器创建项目支持开启 Less 和 Sass 能力

  • #1636

    chore(server): export DevServerOptions type

    chore(server): 导出 DevServerOptions 类型

  • #1627

    feat: use typescript instead of babel as typescript compiler in server

    feat: 服务端,增加 typescript 作为 typescipt 编译器

  • #1649

    feat: upgrade tools support prompting users to already have the latest version

    feat: 升级工具支持提示用户当前项目依赖已经为最新版本

  • #1642

    fix: update upgrade command descrption

    fix: 更新 upgrade 命令描述信息

  • #1643

    feat(server): export DevServerHttpsOptions type

    feat(server): 导出 DevServerHttpsOptions 类型

  • #1670

    feat: add compiler option for server

    feat: 为 server 添加编译选项

  • #1652

    feat: add webpack-builder plugin subresource-integrity

    feat: 新增 webpack-builder 插件 subresource-integrity

  • #1639

    feat: add source.enableAsyncEntry config

    feat: 新增 source.enableAsyncEntry 配置项

  • #1637

    feat: upgrade support monorepo sub-project

    feat: upgrade 命令支持升级 monorepo 子项目依赖版本

  • #1667

    feat: add overrideBrowserslist option

    feat: 新增 overrideBrowserslist 选项

  • #1644

    chore: add inspector plugin

    chore: 增加 Inspector 插件

Bug Fix:

  • #1634

    fix: upgrade generator error when not exist dependencies

    fix: 修复升级工具在不存在依赖时报错

  • #1657

    chore: get api mode from bff core

    chore: 从 bff core 中获取 api mode

  • #1660

    fix: compile ts with dynamic import should replace to correct alias name

    fix: 编译 ts 时,动态导入的路径应该替换为正确的别名

modern.js - v1.17.0

Published by caohuilin about 2 years ago

Features:

  • #1588

    feat(utils): add TOML to CHAIN_ID.RULE

    feat(utils): 向 CHAIN_ID.RULE 中增加新常量 TOML

  • #1586

    feat: runtime export utils not write d.ts file

    feat: runtime 生成 export 函数不再支持生成 d.ts 文件

  • #1591

    feat(babel-preset-app): bump core-js version to support more polyfills

    feat(babel-preset-app): 升级默认的 core-js 版本,支持更多 polyfill

  • #1614

    feat: add upgrade tools and command

    feat: 增加升级工具和升级命令

  • #1598

    feat: new command use solution version

    feat: new 命令使用当前工程方案对应版本的插件

  • #1621

    chore(dev-server): no longer depend on @modern-js/webpack

    chore(dev-server): 不再依赖 @modern-js/webpack

  • #1592

    feat(utils): add PUG to CHAIN_ID

    feat(utils): CHAIN_ID 常量新增 PUG 值

  • #1628

    chore: export getAddressUrls method

    chore: 导出 getAddressUrls 方法

  • #1586

    feat: remove .runtime-exports/index.js export

    feat: 移除 .runtime-exports/index.js 导出

  • #1605

    feat(utils): add SVG_ASSET to CHAIN_ID

    feat(utils): CHAIN_ID 常量新增 SVG_ASSET 值

  • #1589

    fix: runtime type

    fix: 修复 runtime 类型定义

  • #1608

    fix: useLoader auto-generated id

    fix: 修复 useLoader 自动生成的 id

  • #1618

    feat: support react 18 ssr

    feat: 支持 React 18 下使用 SSR

  • #1577

    feat(utils): add MODULE_DEPENDENCY_ERROR to CHAIN_ID

    feat(utils): CHAIN_ID 常量新增 MODULE_DEPENDENCY_ERROR 值

  • #1593

    feat(utils): add YAML to CHAIN_ID.RULE

    feat(utils): 向 CHAIN_ID.RULE 中增加新常量 YAML

Bug Fix:

  • #1594

    fix: ignore css when copy in style CompileMode is 'all'

    fix: 当 style 的编译模式为 'all'的时候, 忽略 css 文件的复制

  • #1612

    fix(core): missing BabelConfig type

    fix(core): 修复未导出 BabelConfig 类型的问题

  • #1609

    fix(core): cli -c option not work

    fix(core): 修复命令行中 -c 选项不生效的问题

  • #1596

    fix: add merge check

    fix: 添加合并属性的检查

modern.js - v1.16.1

Published by caohuilin about 2 years ago

Bug Fix:

  • #1578

    fix: check monorepo

    fix: 修改检查 monorepo 的逻辑

  • #1581

    fix: replaceAll not work in node14

    fix: 修复 garfish replaceAll 报错

  • #1579

    fix: runtime type

    fix: 修复 runtime 类型问题

modern.js - v1.16.0

Published by caohuilin about 2 years ago

Features:

  • #1568

    feat: create new project use modern current latest version

    feat: @modern-js/create 创建项目使用 Modern.js 最新依赖版本

  • #1547

    feat(utils): add html-cross-origin to CHAIN_ID

    feat(utils): CHAIN_ID 常量新增 html-cross-origin 值

  • #1481

    chore: support react 18

    chore: 支持 React 18

  • #1532

    feat: add media rule name to CHAIN_ID constant

    feat: 在 CHAIN_ID 常量中新增 media rule

  • #1560

    chore: remove all deploy logic and package

    chore: 删除所有部署相关的逻辑和包

  • #1551

    feat: support frame mode without lambda directories

    feat: 支持无 lambda 目录的框架模式

  • #1565

    feat: update codesmith package

    feat: 升级 codesmith 包版本

Bug Fix:

  • #1574

    fix: check apiOnly while has source.entriesDir

    fix: 当配置 source.entriesDir 存在时,apiOnly 检查错误

  • #1542

    fix: remove helmet regexp's global tag

    fix: 删除 helmet 中正则匹配的全局标记

  • #1563

    fix(dev-server): support enable hmr client by webpack target

    fix(dev-server): 支持通过 webpack target 来判断是否启用 hmr client

  • #1553

    fix: generator schema validate

    fix: 修复生成器问题校验失败

  • #1564

    fix: compatibility issues of dev server in iOS 10

    fix: 修复 dev server 代码在 iOS 10 下的兼容性问题

  • #1569

    fix: fix generator plugin new function MaxListenersExceededWarning

    fix: 修复生成器插件使用开启工程时 MaxListenersExceededWarning

modern.js - v1.15.0

Published by caohuilin about 2 years ago

从该版本开始,Modern.js 将仓库内所有包版本号保持一致,Release Tag 版本即为版本号!!!

Features:

  • #1488

    fix: generator template doc link

    fix: 修复生成器生成项目文档链接问题

  • #1521

    chore: remove @modern-js/plugin-docsite

    chore: 移除 @modern-js/plugin-docsite

  • #1510

    feat: generate SSR bundle sourcemap

    feat: SSR 打包生成 sourcemap

  • #1509

    feat: support afterLambdaRegisted hook

    feat: 支持 afterLambdaRegisted 钩子函数

  • #1504

    chore(utils): add fs-extra to exports fields

    chore(utils): 通过 exports 导出 fs-extra 子路径

  • #1512

    feat: adjust new command dependencies position

    feat: 调整 new 命令添加依赖位置

  • #1492

    feat(webpack): log more detailed error messages

    feat(webpack): 打印详细的错误日志

Bug Fix:

  • #1513

    fix(app-tools): should not modify entry when using disableDefaultEntries

    fix(app-tools): 修复开启 disableDefaultEntries 后 entry 名称被修改的问题

  • #1500

    fix: remove package adapter-helpers and bff runtime export

    fix: 移除 adapter-helpers 包和 BFF runtime 导出

  • #1519

    fix: add server hook and types

    fix: 增加 server hook API

  • #1517

    fix: fix runtime context format bug

    fix: 修复 runtimeContext 数据格式化时的问题

  • #1506

    fix: modify bff-core's types

    fix: 修改 bff-core 的 types

  • #1493

    fix: Adjust createServer logic in bff test plugin

    fix: 调整 BFF 测试中 create server 的逻辑

  • #1528

    fix: bff.proxy and devServer.proxy types

    fix: 修复 bff.proxy 和 devServer.proxy 类型定义不完整的问题

  • #1527

    fix(babel-preset-app): incorrect babel plugin path

    fix(babel-preset-app): 修复 babel 插件路径错误的问题

  • #1520

    fix(webpack): failed to format error message in some cases

    fix(webpack): 修复格式化 webpack 错误信息时报错的问题

  • #1529

    chore: remove cookie in error log

    chore: 删除错误日志中的 cookie 信息

  • #1502

    fix: 修复 SSR 物理降级时,获取不到请求上下文的问题

    fix: should get ssrContext anyway if entry is ssr enable

modern.js - v1.7.4

Published by caohuilin about 2 years ago

Features:

  • #1466

    chore: merge @modern-js/plugin-design-token to @modern-js/plugin-tailwindcss

    chore: 合并 @modern-js/plugin-design-token@modern-js/plugin-tailwindcss

  • #1468

    feat: support runtime router and state type

    feat: 支持在 modern.config.ts 中提示 runtime.router and runtime.state 类型

  • #1468

    feat: mwa template add runtime types

    feat: mwa 生成器模板增加导出 runtime 类型

  • #1469

    feat: support runtime masterApp type

    feat: 支持在 modern.config.ts 中提示 runtime.masterApp 类型

  • #1478

    chore: move pre-bundled ajv to @modern-js/utils

    chore: 预打包的 ajv 产物移动至 @modern-js/utils

  • #1444

    chore(runtime): merge @modern-js/runtime-core to @modern-js/runtime

    chore(runtime): 合并 @modern-js/runtime-core@modern-js/runtime

  • #1475

    feat: support bff zod schema use transform/record/lazy

    feat: 支持 bff 中 zod schema 使用 transform/record/lazy

Bug Fix:

  • #1465

    fix: @modern-js/plugin-multiprocess export fields

    fix: 修复 @modern-js/plugin-multiprocess 导出字段路径

  • #1465

    fix: @modern-js/plugin-esbuild export fields

    fix: 修复 @modern-js/plugin-esbuild 导出字段路径

  • #1467

    chore: adjust @modern-js/plugin-garfish runtime export path

    chore: 调整 @modern-js/plugin-garfish runtime 导出路径

  • #1485

    fix(runtime): router plugin replace error

    fix(runtime): router 插件 replace 报错

  • #1465

    fix: @modern-js/app-tools export fields

    fix: 修复 @modern-js/app-tools 导出字段路径

  • #1463

    fix(webpack): incorrect fallback result

    fix(webpack): 修复 fallback 的编译产物不符合预期的问题

  • #1465

    fix: @modern-js/node-bundle-require export fields

    fix: 修复 @modern-js/node-bundle-require 导出字段路径

  • #1465

    fix: @modern-js/plugin-proxy export fields

    fix: 修复 @modern-js/plugin-proxy 导出字段路径

  • #1473

    fix: storybook plugin type

    fix: 修复 storybook 插件类型

  • #1471

    fix: monorepo-tools deploy need to copy lerna.json

    fix: Monorepo 中生成产物需复制 lerna.json 文件

  • #1465

    fix: @modern-js/plugin-changeset export fields

    fix: 修复 @modern-js/plugin-changeset 导出字段路径

modern.js - v1.7.3

Published by caohuilin about 2 years ago

Features:

  • #1455

    feat(app-tools): start and inspect command support specify config file

    feat(app-tools): start 和 inspect 命令支持指定配置文件

Bug Fix:

  • #1458

    fix: runtime plugin module path

    fix: 修复内置 runtime 插件模块导入路径

  • #1453

    fix(utils): revert schema of unbundle plugin

    fix(utils): 恢复 unbundle 插件相关的 schema 配置

  • #1450

    fix: missing devServer.proxy.cookieDomainRewrite type

    fix: 修复 devServer.proxy.cookieDomainRewrite 类型缺失的问题

modern.js - v1.7.2

Published by caohuilin about 2 years ago

Features:

  • #1440

    feat: package manager support isSubProject params

    feat: 生成器包管理工具选项支持 isSubProject 参数

  • #1438

    chore: lock egg-ts-helper version

    chore: 锁定 egg-ts-helper 版本

  • #1420

    feat: solution schema support isSubProject params

    feat: 生成器工程方案选项支持 isSubProject 参数

  • #1429 fix assets prefix bug in prod env

  • #1446

    feat: storybook generator add react-dom dependence

    feat: storybook 生成器增加 react-dom 依赖

  • #1422 feat: 支持用户定义 externals 模块

  • #1443

    feat: support response headers

    feat: 支持设置响应头

Bug Fix:

  • #1434

    fix: optimize the implentation of pipe

    fix: 优化 Pipe 操作符的实现

  • #1430

    fix(runtime): fix model types for effects

    fix(runtime): 修复因为 runtime 包合并导致的 model effects 类型不生效问题

  • #1428

    fix(core): should keep single function value after merge config

    fix(core): 修复合并配置后,函数类型的配置项变成数组类型的问题

modern.js - v1.7.1

Published by caohuilin about 2 years ago

Bug Fix:

#1441

fix: fix not found analyze/cli when change config

fix: 修复修改配置重启时找不到 analyze/cli

#1441

fix: plugin runtime dependencies

fix: 修复 runtime 插件依赖

modern.js - v1.7.0

Published by caohuilin about 2 years ago

Features:

  • #1397

    feat(webpack): let css-loader generate ESModules

    feat(webpack): css-loader 生成的产物格式由 CommonJS 调整为 ESModules

  • #1404

    chore(runtime): merge @modern-js/plugin-state to @modern-js/runtime

    chore(runtime): 合并 @modern-js/plugin-state@modern-js/runtime

  • #1410

    feat: support Pipe and Middleware operators

    feat: 支持 Pipe 和 Middleware 操作符

  • #1404

    chore(create-request): remove @modern-js/plugin-ssr from @modern-js/create-request

    chore(runtime): @modern-js/create-request 中移除 @modern-js/plugin-ssr 依赖

  • #1404

    chore(utils): remove unused code

    chore(utils): 移除无用代码

  • #1415

    chore(server): delete unused @modern-js/server-utils dependence

    chore(server): 删除未使用的 @modern-js/server-utils 依赖

  • #1412

    feat(webpack): support source.preEntry config

    feat(webpack): 新增 source.preEntry 配置项

  • #1404

    chore(runtime): merge @modern-js/plugin-router to @modern-js/runtime

    chore(runtime): 合并 @modern-js/plugin-router@modern-js/runtime

  • #1404

    chore(runtime): merge @modern-js/plugin-ssr to @modern-js/runtime

    chore(runtime): 合并 @modern-js/plugin-ssr@modern-js/runtime

  • #1404

    chore(runtime): remove @modern-js/create-request from @modern-js/runtime

    chore(runtime): @modern-js/runtime 中移除 @modern-js/create-request 依赖

  • #1395

    chore(bff): remove @modern-js/bff-runtime from @modern-js/runtime dependence

    chore(bff): @modern-js/runtime 中移除 @modern-js/bff-runtime 依赖

  • #1415

    chore(server): merge @modern-js/hmr-client to @modern-js/server

    chore(server): 合并 @modern-js/hmr-client@modern-js/server

  • #1414

    fix: using typeof window to determine the browser environment is not accurate

    fix: 使用 typeof windows 判断浏览器环境不够准确

  • #1415

    chore(app-tools): merge @modern-js/analyze to @modern-js/app-tools

    chore(app-tools): 合并 @modern-js/analyze@modern-js/app-tools

  • #1391

    chore(generator): use module-tools bundle function to bundle generator package

    chore(generator): 使用 module-tools 的 bundle 功能实现生成器打包

Bug Fix:

  • #1413

    fix: ssg build error when multi entries

    fix: 修复多入口下 SSG 构建错误

  • #1381

    fix: runtime package ssr path export field

    fix: 修复 plugin-runtime ssr 路径导出字段

  • #1407

    fix: the SSG callback is called once for each baseUrl, when a user configures multiple baseUrl.

    fix: 当用户配置了多个 baseUrl 时,将会为每个 baseUrl 调用一次 SSG 回调函数。

  • #1416

    fix: the _SERVER_DATA injection twice causes the prod-server route error.

    fix: _SERVER_DATA 二次注入,导致服务器路由错误

  • #1408

    fix(webpack): failed to import SVG with query from a CSS file

    fix(webpack): 修复从 CSS 文件中引用带 query 的 SVG 时出现报错的问题

  • #1418

    fix: package exports field

    fix: 修复包导出字段

  • #1405

    fix: monorepo new command plugin path

    fix: 修复 monorepo tools new 命令计算插件路径

  • #1403

    fix: Additional compilation fields

    fix: 补充 compilation 字段

  • #1409

    fix: allow BFF function to return void

    fix: 允许 BFF 函数返回 void

modern.js - v1.6.4

Published by caohuilin over 2 years ago

Features:

  • #1388

    chore(testing): merge @modern-js/testing-plugin-bff to @modern-js/plugin-testing

    chore(testing): 合并 @modern-js/testing-plugin-bff@modern-js/plugin-testing

  • #1388

    chore(testing): delete @modern-js/bff-utils

    chore(testing): 删除 @modern-js/bff-utils

  • #1388

    chore(testing): merge @modern-js/testing to @modern-js/plugin-testing

    chore(testing): 合并 @modern-js/testing@modern-js/plugin-testing

  • #1389

    feat: add addRuntimeExports hooks for module-tools

    feat: 为 module-tools 添加 addRuntimeExports 钩子

Bug Fix:

  • #1383

    fix: the <title> tag in html template will replace by empty content, when deveploper open ssr.

    fix: 当开启SSR时,html 中的 <title> 标签将被空白内容替换。

  • #1386

    fix: fix bff hot reload not works when has app.ts

    fix: 修复有 app.ts 的时候, bff 热更新不生效的问题

  • #1386

    fix: export http status

    fix: 暴露 http 状态码

modern.js - v1.6.3

Published by caohuilin over 2 years ago

Features:

  • #1337

    chore(generator): remove unbundle from generator options

    chore(generator): 不再支持通过 new 命令开启 unbundle 功能

  • #1352

    chore(core): move Hooks types define to @modern-js/core

    chore(core): 移动 Hooks 类型定义到 @modern-js/core

  • #1352

    chore(plugin-i18n): merge @modern-js/i18n-cli-language-detector to @modern-js/plugin-i18n

    chore(plugin-i18n): 合并 @modern-js/i18n-cli-language-detector 包到 @modern-js/plugin-i18n 包作为子路径

  • #1361

    feat: rumtime config types

    feat: 补充 runtime 配置类型

  • #1336

    feat: support ListenOptions for prod-server

    feat: server 支持传入 listernOptions 参数

  • #1352

    chore(core): merge @modern-js/load-config package to @modern-js/core utils

    chore(core): 合并 @modern-js/load-config 包到 @modern-js/core 包作为 utils 函数

  • #1353

    feat: add onApiChange hook for bff hot reload

    feat: 为 BFF 热更新优化,添加 onApiChange 钩子

  • #1335

    feat: optimize release note

    feat: 优化 Release Note 格式

  • #1350

    feat: @modern-js/module-tools remove @modern-js/plugin-analyze plugin

    feat: @modern-js/module-tools 移除 @modern-js/plugin-analyze 插件

  • #1344

    feat: prod-server supports that load server env from .env.\*

    feat: prod-server 支持从 .env.* 文件加载服务器环境变量

  • #1317

    perf(webpack): improve getSourceInclude performance

    perf(webpack): 优化 getSourceInclude 执行性能

  • #1350

    feat: @modern-js/plugin-storybook add @modern-js/plugin-analyze plugin

    feat: @modern-js/plugin-storybook 添加 @modern-js/plugin-analyze 插件

  • #1352

    chore(generator-utils): tidy up @modern-js/generator-utils func

    chore(generastor-utils): 整理 @modern-js/generator-utils 导出方法

  • #1352

    chore(types): delete http-proxy-middleware dependence(unused)

    chore(types): 删除未使用依赖 http-proxy-middleware

  • #1352

    chore(babel-chain): merge @modern-js/babel-chain to @modern-js/babel-preset-base

    chore(babel-chain): 合并 @modern-js/babel-chain@modern-js/babel-preset-base

  • #1339

    chore(plugin-storybook): remove @modern-js/esbuild-compiler from dependencies

    chore(plugin-storybook): 移除 @modern-js/esbuild-compiler 依赖

Bug Fix:

  • #1354

    fix(webpack): failed to analyze bundle

    fix(webpack): 修复使用 bundle analyze 时报错的问题

  • #1343

    fix: ignore cjs and mjs in d.ts bundle

    fix: 对 d.ts 做 bundle 时忽略 cjs 和 mjs 资源

  • #1349

    feat: update codesmith json api version

    feat: 升级 @modern-js/codesmith-api-json 版本

  • #1346

    fix(webpack): failed to compile .cjs,.cts,.mts file

    fix(webpack): 修复无法编译 .cjs,.cts,.mts 文件的问题

  • #1343

    fix: monorepo-tools new command plugin params not work

    fix: 修复 monorepo-tools new 命令 plugin 参数不生效问题

  • #1343

    fix(generator-plugin): remove addManyFiles destination empty validate

    fix(generator-plugin): 移除 addManyFiles destination 参数为空的校验

modern.js - v1.6.2

Published by caohuilin over 2 years ago

Features:

[#1313] chore(webpack): refactor webpack config, split modules (chore(webpack): 重构 webpack 配置,拆分模块)

[#1323] feat: change webpack output.publicPath for plugin-storybook (feat: 修改 plugin-storybook 的 webpack output.publicPath 配置)

[#1325] perf(webpack): optimize terser default options (perf(webpack): 优化 Terser 默认压缩配置,提升压缩率)

[#1306] feat: add gen-release-note command to generator template (feat: 生成器模板增加 gen-release-note 命令)

[#1326] feat: optimize implentation of registerModernRuntimePath (feat: 优化 registerModernRuntimePath 的实现)

Bug Fix:

[#1319] fix: use client init data first if exist (fix: 优先使用用户定义的 init 数据)

[#1330] fix: ssg load plugin correctly(fix: 修复 SSG 加载插件不正确问题)

[#1327] Add additionalProperties: false to the schema of output.buildConfig (fix: output.buildConfig 的 schema 增加 additionalProperties: false 配置)

[#1324] fix(webpack): should not inject CSS sourcemap in js bundles (fix(webpack): 修复使用 style-loader 时会将 CSS 的 SourceMap 打包到 JS 中的问题)

[#1320] fix(webpack): failed to import SVG from a CSS file in some cases (fix(webpack): 修复从 CSS 文件中引用 SVG 图片时,可能会出现编译报错的问题)

[#1331] fix(css-config): css minify not work when using style-loader (fix(css-config): 修复使用 style-loader 时,CSS 代码未被压缩的问题)

modern.js - v1.6.1

Published by targeral over 2 years ago

Features

  • @modern-js/module-tools 模块开发工具构建功能底层重构
    • 提供全新的构建配置。新增 output.buildConfigoutput.buildPreset 配置。
    • 底层支持 speedy 进行 bundle 构建。新增 tools.speedy 配置
    • 移除内部并行构建的逻辑,修复在构建过程中偶尔出现的找不到文件的问题
    • 兼容当前构建配置 output.packageMode 以及 output.packageFields,并提供了 @deprecated 标记和提示。
    • 新增和标记了构建相关 cli 参数。
    • 更新构建过程中(普通模式和watch模式)的输出 Log 的内容。
modern.js - v1.5.0

Published by caohuilin over 2 years ago

Features

  • 提供一系列的 BFF 操作符,拓展现有 BFF 语法,提升 BFF 的易用度和功能 #1220
  • 预打包 css-loader #1252
  • 实现懒加载 webpack 插件,优化 webpack 启动性能 #1281
  • 支持 twin.macro #1232
  • 支持在 App.init 中返回数据,在 context 中通过 initialData 获取,并支持在 SSR 渲染时插入到 HTML window._SSR_DATA#1265
  • @modern-js/plugin-jarvis 依赖内置到工程方案工具包(@modern-js/app-tools@modern-js/module-tools@modern-js/monorepo-tools)中,并移除初始化项目时 @modern-js/plugin-jarvis 依赖 #1267
  • 优化 dev 命令日志展示,不展示 type-check 过程信息,只展示对应错误信息 #1283
  • 移除 package-json 依赖,优化用户依赖大小 #1292
  • 简化插件机制使用姿势,避免出现 Can't call useContainer out of scope 错误 #1255
  • 增加 server.watchOptions 配置,支持配置 chokidar 文件监听规则 #1290
  • 支持 SSR Render 时在 App.init 或者插件 init 钩子函数中通过 setHeaderstatus 设置 Response 的 Header 和 statusCode #1276
  • 优化 gen-release-note 命令自定义参数,支持异步函数 #1280
  • 升级 devcert 版本号至 v1.2.2 #1252
  • babel-plugin-import 支持忽略未安装的依赖 #1275
  • 升级 @babel/runtime 版本至 ^7.18.0 #1284

Bug Fix

  • 修复约定式路由项目中 App.init 函数不生效问题 #1264
  • 修复生成器模板 css 文件中文错误 #1253
  • babel/registerts-node 已经使用的场景下,无需启用 esbuild-register #1293
modern.js - v1.4.3

Published by caohuilin over 2 years ago

Features

  • 增加 modern change-stauts 命令,支持查看当前分支 chagneset 状态 #1218
  • 升级 changesets 配置中 schema 依赖的版本至 2.0.0 #1226
  • 调整 source.moduleScopes 行为,仅在配置时限制源代码引用路径。#1211 | DOC source.moduleScopes
  • 优化 config/upload 目录下 js 文件压缩策略, 忽略 .min.js 结尾的文件。#1214 | DOC config/upload
  • tools.webpack 配置中 addRulesappendPluginsprependPlugins 方法简化 #1219 | DOC tools.webpack
  • 移除 farrow-http 依赖,减小包依赖体积 #1221
  • 升级 devcert 依赖至 v1.2.2 #1222
  • 调整 webpack babel-loaderts-loader 编译文件策略 #1241
  • 优化 modern start 命令启动时间 #1244
  • 增加 modern gen-release-note 命令,支持根据 changeset 自动生成 Release Note #1226

Bug Fix

  • 修复应用项目创建入口是 .eslintrc.js 文件位置问题 #1217
  • 修复 applyOptionsChain 类型问题 #1224
  • 修复 createApp 返回组件不可直接被加载问题 #1228
  • 修复在 CI 环境未展示 webpack 构建时间日志问题 #1227
  • 修复 tools.babel 配置中 addIncludes 工具函数类型报错问题 #1235
  • 修复插件 API 类型导出问题 #1239
  • 修复微前端插件类型声明 #1216
  • 删除 Eslint 配置中的 prettier 配置,支持用户使用项目目录的 .prettierrc 文件配置格式化代码 #1243
  • 调整 storybook 默认产物目录 ./dist/storybook-static #1237
  • 修复 tools.terser 类型 #1247
  • 修复 modern bump 命令未支持 ignore 参数 #1246
  • 修复 ssrByEntries[name] 存在时 SSR 未打包问题 #1249
  • 修复 windows 场景下 babel 插件路径不存在报错问题 #1240
  • 修复加载用户 modern.config.js 中自定义插件失败问题 #1245
  • 修复 babel-loader 编译未忽略 api 目录问题 #1248
modern.js - v1.4.2

Published by caohuilin over 2 years ago

Features

  • tools.postcss 支持通过 addPlugins 方法添加插件 1183 | DOC tools.postcss
  • 应用项目增加 inspect 命令,支持查看当前最终的 webpack 配置 1189 | DOC inspect 命令
  • tools.lesstools.sass 配置支持 addExcludes 方法 1187 | DOC tools.less DOC tools.sass
  • tools.tsLoader 配置支持 addIncludesaddExcludes 方法 1196 | DOC tools.tsLoader
  • 预打包 babel 相关插件进行构建优化 1192
  • tools.babel 配置支持 addPluginsaddPresetsremovePluginsremovePresetsaddIncludesaddExcludes 方法 1200 | DOC tools.babel
  • @modern-js/create 支持通过 config 中增加 successInfo 字段值自定义创建项目成功展示信息 1207 | DOC 工程方案配置
  • 优化 @modern-js/create 默认创建 Monorepo 的成功展示信息 1207
  • 优化微前端 garfish 插件的子应用渲染逻辑 1208

Bug Fix

  • 修复 unbundle 模式下自定义 globalVars 不生效问题 1177
  • 修复 Typescript 配置插件对 node_modules 中文件路径不生效 1181
  • 修复 devServer.headers 不生效问题 1193
  • 修复使用 Arco Design 图标时构建导入两次问题 1194
  • 修复 bootstrap 函数第二个参数不支持传入 DOM 节点 1198
modern.js - v1.4.1

Published by caohuilin over 2 years ago

  • 支持禁用热更新
  • 升级 Electron 生成器模板 electron-builder 版本
  • 升级 @babel/runtime 版本号至 7.18.0
  • dev 命令支持 --analyze 参数
  • build 和 deploy 命令支持自定义配置文件
  • 修复 dev 命令 --config 参数不生效
  • 修复 bff 未编译 shared 目录代码
Package Rankings
Top 1.49% on Npmjs.org
Related Projects