Skip to content

Commit

Permalink
docs: update CHANGELOG for 0.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jul 11, 2024
1 parent 96f97ae commit 20d5762
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 7 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@

## 0.7.5

`2024-07-11`

- New: Added console warning for HMR if React is external by [@PeachScript](https://github.com/PeachScript) in [#1354](https://github.com/umijs/mako/pull/1354)
- New: CLI now supports custom project names by [@kiner-tang](https://github.com/kiner-tang) in [#1340](https://github.com/umijs/mako/pull/1340)
- New: Upgraded hyper-staticfile to fix JS file charset issues by [@whyer11](https://github.com/whyer11) in [#1363](https://github.com/umijs/mako/pull/1363)
- New: CLI now checks if there are existing files in the current directory by [@liangchaofei](https://github.com/liangchaofei) in [#1368](https://github.com/umijs/mako/pull/1368)
- New: Support for selecting templates from the templates directory by [@kiner-tang](https://github.com/kiner-tang) in [#1370](https://github.com/umijs/mako/pull/1370)
- New: px2rem now supports selectorDoubleRemList by [@xiaohuoni](https://github.com/xiaohuoni) in [#1336](https://github.com/umijs/mako/pull/1336)
- New: Pass umi configuration to mako by [@xiaohuoni](https://github.com/xiaohuoni) in [#1394](https://github.com/umijs/mako/pull/1394)
- Improvement: More idiomatic and concise SWC AST generation by [@stormslowly](https://github.com/stormslowly) in [#1372](https://github.com/umijs/mako/pull/1372)
- Improvement: Clearer code logic and types by [@xusd320](https://github.com/xusd320) in [#1397](https://github.com/umijs/mako/pull/1397)
- Fix: Decoded paths for less plugin by [@stormslowly](https://github.com/stormslowly) in [#1360](https://github.com/umijs/mako/pull/1360)
- Fix: Stringifying object values causing panic by [@xusd320](https://github.com/xusd320) in [#1349](https://github.com/umijs/mako/pull/1349)
- Fix: HMR does not support React.lazy + import() components by [@sorrycc](https://github.com/sorrycc) in [#1369](https://github.com/umijs/mako/pull/1369)
- Fix: Corrected spelling mistakes by [@kiner-tang](https://github.com/kiner-tang) in [#1371](https://github.com/umijs/mako/pull/1371)
- Fix: pnpm installation issues by [@sorrycc](https://github.com/sorrycc) in [#1376](https://github.com/umijs/mako/pull/1376)
- Fix: Unstable entry hash by [@stormslowly](https://github.com/stormslowly) in [#1374](https://github.com/umijs/mako/pull/1374)
- Fix: analyze not working in umi by [@sorrycc](https://github.com/sorrycc) in [#1387](https://github.com/umijs/mako/pull/1387)
- Fix: Loss of CSS order after sorting dependencies alphabetically by [@xusd320](https://github.com/xusd320) in [#1391](https://github.com/umijs/mako/pull/1391)
- Fix: Should check reserved words after preset_env by [@Jinbao1001](https://github.com/Jinbao1001) in [#1367](https://github.com/umijs/mako/pull/1367)
- Fix: commonjs might lack use strict directive by [@Jinbao1001](https://github.com/Jinbao1001) in [#1386](https://github.com/umijs/mako/pull/1386)


## 0.7.4

`2024-07-02`
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG_zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@

## 0.7.5

`2024-07-11`

- 新增: 为 HMR 增加控制台警告,如果 React 被 external by [@PeachScript](https://github.com/PeachScript) in [#1354](https://github.com/umijs/mako/pull/1354)
- 新增: CLI 支持自定义项目名称 by [@kiner-tang](https://github.com/kiner-tang) in [#1340](https://github.com/umijs/mako/pull/1340)
- 新增: 升级 hyper-staticfile,修复 JS 文件字符集问题 by [@whyer11](https://github.com/whyer11) in [#1363](https://github.com/umijs/mako/pull/1363)
- 新增: CLI 增加判断当前目录是否存在文件 by [@liangchaofei](https://github.com/liangchaofei) in [#1368](https://github.com/umijs/mako/pull/1368)
- 新增: 支持从 templates 目录选择模板 by [@kiner-tang](https://github.com/kiner-tang) in [#1370](https://github.com/umijs/mako/pull/1370)
- 新增: px2rem 支持 selectorDoubleRemList by [@xiaohuoni](https://github.com/xiaohuoni) in [#1336](https://github.com/umijs/mako/pull/1336)
- 新增: 传递 umi 配置到 mako by [@xiaohuoni](https://github.com/xiaohuoni) in [#1394](https://github.com/umijs/mako/pull/1394)
- 优化: 更加惯用和简洁的 SWC AST 生成 by [@stormslowly](https://github.com/stormslowly) in [#1372](https://github.com/umijs/mako/pull/1372)
- 优化: 代码逻辑和类型更清晰 by [@xusd320](https://github.com/xusd320) in [#1397](https://github.com/umijs/mako/pull/1397)
- 修复: less 插件未解码路径 by [@stormslowly](https://github.com/stormslowly) in [#1360](https://github.com/umijs/mako/pull/1360)
- 修复: 字符串化对象值会导致 panic by [@xusd320](https://github.com/xusd320) in [#1349](https://github.com/umijs/mako/pull/1349)
- 修复: HMR 不支持 React.lazy + import() 组件 by [@sorrycc](https://github.com/sorrycc) in [#1369](https://github.com/umijs/mako/pull/1369)
- 修复: 拼写错误 by [@kiner-tang](https://github.com/kiner-tang) in [#1371](https://github.com/umijs/mako/pull/1371)
- 修复: pnpm 安装问题 by [@sorrycc](https://github.com/sorrycc) in [#1376](https://github.com/umijs/mako/pull/1376)
- 修复: entry 哈希不稳定 by [@stormslowly](https://github.com/stormslowly) in [#1374](https://github.com/umijs/mako/pull/1374)
- 修复: analyze 在 umi 中不起作用 by [@sorrycc](https://github.com/sorrycc) in [#1387](https://github.com/umijs/mako/pull/1387)
- 修复: 按字母顺序排序依赖项后丢失 CSS 顺序 by [@xusd320](https://github.com/xusd320) in [#1391](https://github.com/umijs/mako/pull/1391)
- 修复: 在 preset_env 之后应该检查保留字 by [@Jinbao1001](https://github.com/Jinbao1001) in [#1367](https://github.com/umijs/mako/pull/1367)
- 修复: commonjs 可能缺少 use strict 指令 by [@Jinbao1001](https://github.com/Jinbao1001) in [#1386](https://github.com/umijs/mako/pull/1386)

## 0.7.4

`2024-07-02`
Expand Down
20 changes: 13 additions & 7 deletions scripts/format-changelog.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'zx/globals';

// Generated by chatgpt
function replaceText(to_replace) {
function replaceText(to_replace: string) {
let text = to_replace;
// 替换所有「by @sorrycc」里的「@sorrycc」为链接
const userRegex = /by (@([a-zA-z0-9\-_]+))/g;
Expand All @@ -18,9 +18,15 @@ function replaceText(to_replace) {
return text;
}

const cwd = process.cwd();
const changelogPath = path.join(cwd, 'CHANGELOG.md');
const content = fs.readFileSync(changelogPath, 'utf-8');
const newContent = replaceText(content);
fs.writeFileSync(changelogPath, newContent, 'utf-8');
console.log('CHANGELOG.md updated');
let cwd = process.cwd();
let changelogPaths = [
'CHANGELOG.md',
'CHANGELOG_zh-CN.md',
]
changelogPaths.forEach(changelogPath => {
changelogPath = path.join(cwd, changelogPath);
const content = fs.readFileSync(changelogPath, 'utf-8');
const newContent = replaceText(content);
fs.writeFileSync(changelogPath, newContent, 'utf-8');
console.log(`${changelogPath} updated`);
});

0 comments on commit 20d5762

Please sign in to comment.