diff --git a/.circleci/config.yml b/.circleci/config.yml index d4f4d82732..ad47e90b5a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ version: 2.1 jobs: test-argos-ci: docker: - - image: cimg/node:16.18.0-browsers + - image: cimg/node:16.18.1-browsers steps: - checkout - run: diff --git a/.github/workflows/codeball.yml b/.github/workflows/codeball.yml new file mode 100644 index 0000000000..1e796958b0 --- /dev/null +++ b/.github/workflows/codeball.yml @@ -0,0 +1,21 @@ +name: Codeball +on: + pull_request: {} + pull_request_review_comment: + types: [created, edited] + +jobs: + codeball_job: + runs-on: ubuntu-latest + name: Codeball + steps: + # Run Codeball on all new Pull Requests and Review Comments! 🚀 + # For customizations and more documentation, see https://github.com/sturdy-dev/codeball-action + - name: Codeball + uses: sturdy-dev/codeball-action@v2 + with: + # Settings for "Codeball Approver" + approvePullRequests: "false" + labelPullRequestsWhenApproved: "true" + labelPullRequestsWhenReviewNeeded: "true" + failJobsWhenReviewNeeded: "false" diff --git a/.github/workflows/release-helper.yml b/.github/workflows/release-helper.yml index 5303b693e9..9995712fb9 100644 --- a/.github/workflows/release-helper.yml +++ b/.github/workflows/release-helper.yml @@ -34,7 +34,18 @@ jobs: prettier: true prerelease-filter: '-, a, b, A, B' - - name: release bigfish + - name: notice next + uses: actions-cool/release-helper@v2 + with: + triger: 'tag' + dingding-token: ${{ secrets.DINGDING_BOT_V5_PRE_TOKEN }} + msg-title: '# Ant Design {{v}} 发布日志' + msg-poster: 'https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*zx7LTI_ECSAAAAAAAAAAAABkARQnAQ' + msg-footer: '💬 前往 [**Ant Design Releases**]({{url}}) 查看更新日志' + prerelease-filter: '-, a, b, A, B' + prerelease-notice: true + + - name: notice bigfish uses: actions-cool/release-helper@v2 with: triger: 'tag' diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000000..31354ec138 --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/pre-commit b/.husky/pre-commit index 2205895642..d37daa075e 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx --no-install pretty-quick --staged \ No newline at end of file +npx --no-install lint-staged diff --git a/.jest.js b/.jest.js index 4dd8940f64..2af90f6d8f 100644 --- a/.jest.js +++ b/.jest.js @@ -12,8 +12,8 @@ const compileModules = [ const ignoreList = []; // cnpm use `_` as prefix -['', '_'].forEach(prefix => { - compileModules.forEach(module => { +['', '_'].forEach((prefix) => { + compileModules.forEach((module) => { ignoreList.push(`${prefix}${module}`); }); }); @@ -71,5 +71,5 @@ module.exports = { testEnvironmentOptions: { url: 'http://localhost', }, - bail: true, + // bail: true, }; diff --git a/.jest.node.js b/.jest.node.js index 957d410dae..54d6fb852d 100644 --- a/.jest.node.js +++ b/.jest.node.js @@ -15,5 +15,5 @@ module.exports = { testRegex: 'node\\.test\\.(j|t)sx$', testEnvironment: 'node', transformIgnorePatterns, - bail: true, + // bail: true, }; diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 33fbc8771b..c652e734d1 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -15,6 +15,29 @@ timeline: true --- +## 4.24.2 + +`2022-11-12` + +- Image + - 💄 Image preview controls enter animation should not be zooming out. [#36456](https://github.com/ant-design/ant-design/pull/36456) + - 🐞 Fix Image preview not showing error images. [#38112](https://github.com/ant-design/ant-design/pull/38112) +- Typography + - 🐞 Fix Typography.Text `tooltip` do not display in List. [#38431](https://github.com/ant-design/ant-design/pull/38431) [@crazyair](https://github.com/crazyair) + - 🐞 Fix Typography.Paragraph flash issue in some situations. [#38439](https://github.com/ant-design/ant-design/pull/38439) [@tinyfind](https://github.com/tinyfind) +- 🐞 Fix Menu SubMenu flick when collapse it. [#36636](https://github.com/ant-design/ant-design/issues/36636) [@JarvisArt](https://github.com/JarvisArt) +- 🐞 Fix RangePicker that `onBlur` gets triggered when selecting dates. [#38411](https://github.com/ant-design/ant-design/pull/38411) [@kiner-tang](https://github.com/kiner-tang) +- 🐞 Result should hide icon when it is falsy. [#38488](https://github.com/ant-design/ant-design/pull/38488) +- 🐞 Fix Dropdown.Button throws `overlay is deprecated` warning. [#38446](https://github.com/ant-design/ant-design/pull/38446) [@li-jia-nan](https://github.com/li-jia-nan) +- 🛎 Improve error message about multiple Form.Item children. [#38038](https://github.com/ant-design/ant-design/pull/38038) [@cincodenada](https://github.com/cincodenada) +- 🛠 Resolve Tree circular import issue. [#38421](https://github.com/ant-design/ant-design/pull/38421) [@KotoriK](https://github.com/KotoriK) +- 🐞 Fix Affix shake issue when switching visible. [#38410](https://github.com/ant-design/ant-design/pull/38410) [@imoctopus](https://github.com/imoctopus) +- 🐞 Fix Pagination `simple` mode should support `showTotal` property. [#38399](https://github.com/ant-design/ant-design/pull/38399) +- 🐞 Fix Modal.confirm buttons should not be interactive when modal is hiding. [#38400](https://github.com/ant-design/ant-design/pull/38400) +- 🐞 Fix Radio.Group style problem using in Drawer `extra`. [#38385](https://github.com/ant-design/ant-design/pull/38385) +- ⌨️ Fix Table `aria-label` contains `[object Object]`. [#38389](https://github.com/ant-design/ant-design/pull/38389) [@kiner-tang](https://github.com/kiner-tang) +- ⌨️ Adds role progressbar to Progress component. [#38447](https://github.com/ant-design/ant-design/pull/38447) [@kpustakhod](https://github.com/kpustakhod) + ## 4.24.1 `2022-11-04` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 13eb8edb46..52225c4bd6 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -15,6 +15,29 @@ timeline: true --- +## 4.24.2 + +`2022-11-12` + +- Image + - 💄 优化 Image 预览图片的工具栏显示动画的效果,现在工具条不再用缩放动画进场。[#36456](https://github.com/ant-design/ant-design/pull/36456) + - 🐞 修复 Image 预览图片没有展现错误图片的问题。[#38112](https://github.com/ant-design/ant-design/pull/38112) +- Typography + - 🐞 修复 Typography.Paragraph 在宽度较短时可能出现闪动的问题。[#38439](https://github.com/ant-design/ant-design/pull/38439) [@tinyfind](https://github.com/tinyfind) + - 🐞 修复一个 Typography.Text 在 List 内 tooltip 不显示的问题。[#38431](https://github.com/ant-design/ant-design/pull/38431) [@crazyair](https://github.com/crazyair) +- 🐞 修复 Menu 收起时 SubMenu 闪动的问题。[#36636](https://github.com/ant-design/ant-design/issues/36636) [@JarvisArt](https://github.com/JarvisArt) +- 🐞 修复 RangePicker 选择日期过程中触发 `onBlur` 的问题。[#38411](https://github.com/ant-design/ant-design/pull/38411) [@kiner-tang](https://github.com/kiner-tang) +- 🐞 修复 Result `icon` 为 `null` 时图标没有隐藏的问题。[#38488](https://github.com/ant-design/ant-design/pull/38488) +- 🐞 修复 Dropdown.Button 出现 `overlay is deprecated` 警告的问题。[#38446](https://github.com/ant-design/ant-design/pull/38446) [@li-jia-nan](https://github.com/li-jia-nan) +- 🛎 优化 Form 的相关控制台提示的表述。[#38038](https://github.com/ant-design/ant-design/pull/38038) [@cincodenada](https://github.com/cincodenada) +- 🛠 修复 Tree 模块循环导入的问题。[#38421](https://github.com/ant-design/ant-design/pull/38421) [@KotoriK](https://github.com/KotoriK) +- 🐞 修复当 Affix 隐藏切换到显示时会出现抖动。[#38410](https://github.com/ant-design/ant-design/pull/38410) [@imoctopus](https://github.com/imoctopus) +- 🐞 修复 Pagination `showTotal` 属性在 `simple` 模式下不生效的问题。[#38399](https://github.com/ant-design/ant-design/pull/38399) +- 🐞 修复 Modal.confirm 关闭中确认按钮依旧可能被触发的问题。[#38400](https://github.com/ant-design/ant-design/pull/38400) +- 🐞 修复在 Drawer `extra` 中使用 Radio.Group 的样式问题。[#38385](https://github.com/ant-design/ant-design/pull/38385) +- ⌨️ 修复 Table 组件 `aria-label` 出现 `[object Object]` 的问题。[#38389](https://github.com/ant-design/ant-design/pull/38389) [@kiner-tang](https://github.com/kiner-tang) +- ⌨️ Progress 组件增加 `role="progressbar"` 。[#38447](https://github.com/ant-design/ant-design/pull/38447) [@kpustakhod](https://github.com/kpustakhod) + ## 4.24.1 `2022-11-04` diff --git a/components/_util/__tests__/util.test.tsx b/components/_util/__tests__/util.test.tsx index 35ca704a63..eacfa6148c 100644 --- a/components/_util/__tests__/util.test.tsx +++ b/components/_util/__tests__/util.test.tsx @@ -118,7 +118,7 @@ describe('Test utils function', () => { }); }); - it('delayRaf', done => { + it('delayRaf', (done) => { jest.useRealTimers(); let bamboo = false; @@ -152,7 +152,7 @@ describe('Test utils function', () => { describe('TransButton', () => { it('can be focus/blur', () => { - const ref = React.createRef(); + const ref = React.createRef(); render(TransButton); expect(typeof ref.current?.focus).toBe('function'); expect(typeof ref.current?.blur).toBe('function'); diff --git a/components/_util/__tests__/wave.test.tsx b/components/_util/__tests__/wave.test.tsx index af547bf8a3..67fdd16ed1 100644 --- a/components/_util/__tests__/wave.test.tsx +++ b/components/_util/__tests__/wave.test.tsx @@ -194,7 +194,7 @@ describe('Wave component', () => { }); it('bindAnimationEvent should return when node is null', () => { - const ref = React.createRef(); + const ref = React.createRef(); render(