Skip to content

Commit

Permalink
chore(release): v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Mar 22, 2024
1 parent 35aebd7 commit d804712
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 41 deletions.
80 changes: 62 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,79 @@
# v2.5.0
`2024-03-22`



* :sparkles: feat(Popover): 新增单条数据的demo展示 (#2117) @xiaoyatong
* :sparkles: feat(progress): 支持taro的lazy属性 & demo拆解与规范 (#2086) @Alex-huxiyang
* :bug: fix(dialog): 关闭按钮默认在底部,24px白色图标 (#2118) @irisSong
* :bug: fix(noticebar): fix docs (#2119) @xiaoyatong
* :bug: fix(virtuallist): demo拆解与规范 (#2116) @eiinu
* :bug: fix: 修复address组件onChange参数透传问题 (#2110) @DreamSeeker321
* :bug: fix(Icon): 小程序下展示异常问题修复 (#2114) @xiaoyatong
* :bug: fix(swiper): demo拆解与规范 (#2115) @Alex-huxiyang
* :bug: fix(audio): demo拆解与规范 (#2111) @Alex-huxiyang
* :bug: fix(animatingnumbers): demo拆解与规范 (#2109) @Alex-huxiyang
* :bug: fix(video): demo拆解与规范 (#2104) @eiinu
* :bug: fix(avatarcropper): demo拆解与规范 (#2103) @eiinu
* :bug: fix(steps): demo拆解与规范 (#2105) @eiinu
* :bug: fix: 修复 demo 目录报错 (#2107) @eiinu
* :bug: fix(swipe): 修改demo文案 (#2106) @xiaoyatong
* :bug: fix(shortpassword): demo拆解与规范 (#2102) @Alex-huxiyang
* :bug: fix(circleprogress): demo拆解与规范 (#2091) @Alex-huxiyang
* :bug: fix: vitest (#2101) @xiaoyatong
* :bug: fix(table): demo拆解与规范 (#2074) @Alex-huxiyang
* :bug: fix(timeselect): demo拆解与规范 (#2087) @Alex-huxiyang
* :bug: fix(tabs): demo拆解与规范 (#2066) @yeyu98
* :bug: fix(signature): demo拆解与规范 (#2099) @Alex-huxiyang
* :bug: fix(tag): taro 下自定义icon无法展示 (#2088) @eiinu
* :bug: fix(animate): demo拆解与规范 (#2085) @eiinu
* :bug: fix(collapse): demo拆解与规范 (#2094) @eiinu
* :bug: fix(barrage): 简化demo (#2100) @xiaoyatong
* :bug: fix(barrage): demo拆解与规范 (#2098) @joyfully-W
* :bug: fix: taro-demo full class (#2095) @eiinu
* :bug: fix(Ellipsis): 修复小程序环境下给Ellipsis设置字号后工作不正常的问题 (#2078) @FPG-Alan
* :bug: fix: test (#2096) @xiaoyatong
* :bug: fix: 代码块修改为等宽字体 (#2092) @eiinu
* 🚦 Revert "feat(progress): 支持taro的lazy属性 & demo拆解与规范 (#2086)" @oasis-cloud
* 🏡 chore(calendarcard): demo 拆解与规范 (#2026) @eiinu
* 🏡 chore: 优化组件类型导出 (#2036) @eiinu
* 🏡 chore(deps): update dependency happy-dom to v14 (#2097) @renovate[bot]
* 🏡 chore: update changelog @oasis-cloud
* 📖 docs(overlay): fix typo @eiinu


# v2.4.2
`2024-03-20`

* 🔨 chore(row): 优化 className (#2054) @Eiinu
* 🔨 chore(row): 优化 className (#2054) @eiinu
* :sparkles: feat(backtop): rtl (#2051) @xiaoyatong
* :sparkles: feat(NoticeBar): 增加right 属性,支持更多可自定义内容 @xiaoyatong
* :bug: fix(address): demo拆解与规范 (#2068) @Alex.huxiyang
* :bug: fix(avatar): demo规范与调整 (#2071) @Alex.huxiyang
* :bug: fix(address): demo拆解与规范 (#2068) @Alex-huxiyang
* :bug: fix(avatar): demo规范与调整 (#2071) @Alex-huxiyang
* :bug: fix(badge): demo拆解与规范 (#2060) @sd
* :bug: fix(calendarcard): 修复受控模式 (#2063) @Eiinu
* :bug: fix(calendarcard): 修复受控模式 (#2063) @eiinu
* :bug: fix(Card): demo拆解与规范 (#2072) @joyfully-W
* :bug: fix(dialog): demo拆解与规范 (#2069) @songsong
* :bug: fix(fixedNav): demo拆解与规范 (#2048) @Alex.huxiyang
* :bug: fix(dialog): demo拆解与规范 (#2069) @irisSong
* :bug: fix(fixedNav): demo拆解与规范 (#2048) @Alex-huxiyang
* :bug: fix(icon): 处理 rtl 部分 (#2050) @xiaoyatong
* :bug: fix(indicator): demo拆解与规范 (#2090) @Eiinu
* :bug: fix(infiniteLoading): demo拆解与规范+增加joy logo的demo (#2081) @songsong
* :bug: fix(indicator): demo拆解与规范 (#2090) @eiinu
* :bug: fix(infiniteLoading): demo拆解与规范+增加joy logo的demo (#2081) @irisSong
* :bug: fix(input): demo拆解与规范 (#2035) @yeyu1998
* :bug: fix(navbar): demo拆解与规范 (#2055) @Alex.huxiyang
* :bug: fix(pagination): demo拆解与规范 (#2079) @Alex.huxiyang
* :bug: fix(price): demo拆解与规范 (#2082) @Alex.huxiyang
* :bug: fix(pulltorefresh): demo中下拉图标修改为joy logo (#2084) @songsong
* :bug: fix(navbar): demo拆解与规范 (#2055) @Alex-huxiyang
* :bug: fix(pagination): demo拆解与规范 (#2079) @Alex-huxiyang
* :bug: fix(price): demo拆解与规范 (#2082) @Alex-huxiyang
* :bug: fix(pulltorefresh): demo中下拉图标修改为joy logo (#2084) @irisSong
* :bug: fix(rate): demo拆解与规范 (#2045) @sandra
* :bug: fix(SearchBar): demo拆解与规范 (#2064) @joyfully-W
* :bug: fix(sideNavBar): demo拆解与规范 (#2058) @Alex.huxiyang
* :bug: fix(sideNavBar): demo拆解与规范 (#2058) @Alex-huxiyang
* :bug: fix(skeleton): demo拆解与规范 (#2047) @sd
* :bug: fix(sticky): demo拆解与规范 (#2024) @Alex.huxiyang
* :bug: fix(sticky): demo拆解与规范 (#2024) @Alex-huxiyang
* :bug: fix(swiper): rtl (#2061) @xiaoyatong
* :bug: fix(tabbar): demo拆解与规范&脚本增强 (#2059) @Alex.huxiyang
* :bug: fix(tabbar): demo拆解与规范&脚本增强 (#2059) @Alex-huxiyang
* :bug: fix(trendarrow): demo拆解与规范 (#2075) @ber
* :bug: fix(watermark): demo拆解与规范 (#2083) @Eiinu
* :bug: fix: update copy-docs-h5-or-taro.js (#2080) @Eiinu
* test: migrate jest to vitest (#2057) @Eiinu
* :bug: fix(watermark): demo拆解与规范 (#2083) @eiinu
* :bug: fix: update copy-docs-h5-or-taro.js (#2080) @eiinu
* test: migrate jest to vitest (#2057) @eiinu


# v2.4.1
Expand Down
21 changes: 0 additions & 21 deletions gitlog.sh

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nutui/nutui-react-taro",
"version": "2.4.2",
"name": "@nutui/nutui-react",
"version": "2.5.0",
"style": "dist/style.css",
"main": "dist/nutui.react.umd.js",
"module": "dist/esm/nutui-react.es.js",
Expand Down
97 changes: 97 additions & 0 deletions scripts/generate-local-changelog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
const shell = require('shelljs')
const fs = require('fs')
const { join } = require('path')

const beforeTag = process.argv[2]
const nextTag = process.argv[3]

shell.exec(
`git log -1 --format=%ai ${beforeTag}`,
{ silent: true },
(code, stdout, stderr) => {
shell.exec(
`git log --since="${stdout.replace('\n', '')}" --pretty=format:"%s @%an" next`,
{ silent: true },
(code, stdout, stderr) => {
const logs = stdout.split('\n')
const rules = [
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
]
const logsWithGithubUser = {
build: [],
chore: [],
ci: [],
docs: [],
feat: [],
fix: [],
perf: [],
refactor: [],
revert: [],
style: [],
test: [],
others: [],
}
const logSymbol = {
build: '* 📦 ',
chore: '*🏡 ',
ci: '* 🤖 ',
docs: '* 📖 ',
feat: '* :sparkles: ',
fix: '* :bug: ',
perf: '* zap: ',
refactor: '* 🪵 ',
revert: '* 🚦 ',
style: ':art: ',
test: '* 💡 ',
others: '* 🔔 ',
}
logs.forEach((log, index) => {
// const groups = log.match(/#(?<pr>[0-9]+)/)?.groups
// if (groups && groups.pr) {
if (log.indexOf(beforeTag) === -1) {
const a = rules.filter((rule) => {
return log.toLowerCase().startsWith(rule)
})
if (a.length) {
logsWithGithubUser[a[0]].push(log)
} else {
logsWithGithubUser.others.push(log)
}
}
})

let changeLog = ''
rules.forEach((rule) => {
const logs = logsWithGithubUser[rule]
if (!logs.length) return
changeLog += `${logs.map((log) => `${logSymbol[rule]}${log}`).join('\n')}\n`
})
shell.exec(
'date "+%Y-%m-%d"',
{ silent: true },
(code, stdout, stderr) => {
const res = `# ${nextTag}\n\`${stdout.replaceAll('\n', '')}\`\n\n\n${changeLog}\n\n`

fs.writeFileSync(
join(__dirname, '../CHANGELOG.md'),
res +
fs.readFileSync(join(__dirname, '../CHANGELOG.md'), {
encoding: 'utf8',
})
)
}
)
}
)
}
)

0 comments on commit d804712

Please sign in to comment.