Skip to content

chore(release): v3.1.6-beta.20 #1419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 71 commits into
base: master
Choose a base branch
from
Open

chore(release): v3.1.6-beta.20 #1419

wants to merge 71 commits into from

Conversation

rayhomie
Copy link
Collaborator

@rayhomie rayhomie commented Feb 25, 2025

Summary by CodeRabbit

  • 新功能

    • 日历弹窗中的日历组件现在支持自定义月份范围,可显示从当前日期前一年到后一年的区间。
  • 修复

    • 修正了日历相关属性名中的拼写错误(cellHight → cellHeight),提升了代码一致性和可维护性。
  • 样式

    • 优化了日历单元格的盒模型和底部间距表现,提升了界面显示效果。
  • 其他

    • 更新了版本号显示。

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review by ChatGPT

Copy link
Contributor

github-actions bot commented Feb 25, 2025

🎊 PR Preview 6948a83 has been successfully built and deployed to https://ant-design-ant-design-mini-preview-pr-1419.surge.sh

🕐 Build time: 281.311s

🤖 By surge-preview

@rayhomie rayhomie changed the title 3.1.6 beta chore(release): v3.1.6-beta.1 Feb 25, 2025
@rayhomie
Copy link
Collaborator Author

/release beta

Copy link

cloudflare-workers-and-pages bot commented Feb 25, 2025

Deploying ant-design-mini with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6948a83
Status: ✅  Deploy successful!
Preview URL: https://792e8bf3.ant-design-mini.pages.dev
Branch Preview URL: https://3-1-6-beta.ant-design-mini.pages.dev

View logs

Copy link
Contributor

🎉 Release version 3.1.6-beta.1 publish successful! You can install this version via npm install [email protected] @rayhomie

3.1.6-beta.1
npm install [email protected]

https://www.npmjs.com/package/antd-mini/v/3.1.6-beta.1

@rayhomie rayhomie changed the title chore(release): v3.1.6-beta.1 chore(release): v3.1.6-beta.2 Feb 26, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review by ChatGPT

@rayhomie
Copy link
Collaborator Author

/release beta

Copy link
Contributor

🎉 Release version 3.1.6-beta.2 publish successful! You can install this version via npm install [email protected] @rayhomie

3.1.6-beta.2
npm install [email protected]

https://www.npmjs.com/package/antd-mini/v/3.1.6-beta.2

@rayhomie rayhomie closed this Feb 26, 2025
@rayhomie rayhomie reopened this Feb 27, 2025
@rayhomie rayhomie changed the title chore(release): v3.1.6-beta.2 chore(release): v3.1.6-beta.3 Feb 27, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review by ChatGPT

@rayhomie
Copy link
Collaborator Author

/release beta

Copy link
Contributor

🎉 Release version 3.1.6-beta.3 publish successful! You can install this version via npm install [email protected] @rayhomie

3.1.6-beta.3
npm install [email protected]

https://www.npmjs.com/package/antd-mini/v/3.1.6-beta.3

@rayhomie rayhomie changed the title chore(release): v3.1.6-beta.16 chore(release): v3.1.6-beta.17 May 19, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@rayhomie
Copy link
Collaborator Author

/release beta

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/_util/assert-component2.ts (1)

5-6: 改进的 component2 检测逻辑

通过增加 typeof ac === 'object' 条件,扩展了对 component2 特性的检测能力,使组件库在特定环境下更加健壮。但要注意以下几点:

  1. 使用 @ts-ignore 注释抑制了类型检查,可能导致潜在类型问题被忽略
  2. 全局变量 ac 没有在此文件中声明,依赖于外部类型定义
  3. 确保 typings.d.ts 中已正确声明了 ac 变量的类型

建议考虑添加注释说明此检测逻辑的目的和适用场景。

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c797dc0 and 3fcfdfd.

📒 Files selected for processing (5)
  • package.json (2 hunks)
  • src/_util/assert-component2.ts (1 hunks)
  • src/mixins/value.ts (1 hunks)
  • tsconfig.json (1 hunks)
  • typings.d.ts (1 hunks)
✅ Files skipped from review due to trivial changes (3)
  • typings.d.ts
  • tsconfig.json
  • package.json
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: 🚀🚀🚀 Release Version
  • GitHub Check: preview
  • GitHub Check: build
  • GitHub Check: build
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (1)
src/mixins/value.ts (1)

15-16: 扩展了 component2 检测条件

与 assert-component2.ts 文件中的修改保持一致,通过 || typeof ac === 'object' 增强了特性检测逻辑。这有助于在支付宝环境中更可靠地识别 component2 特性的可用性。

注意事项:

  1. @ts-ignore 的使用暂时解决了类型检查问题,但应确保 ac 变量在全局类型定义中正确声明
  2. 该变更影响了条件编译块中的逻辑,对 didUpdatedidMount 中的控制流有潜在影响
  3. 与其他文件的修改保持同步,确保检测逻辑的一致性

请确认 typings.d.ts 文件中是否已经正确定义了全局变量 ac,以避免类型错误。

Copy link
Contributor

🎉 Release version 3.1.6-beta.17 publish successful! You can install this version via npm install [email protected] @rayhomie

3.1.6-beta.17
npm install [email protected]

https://www.npmjs.com/package/antd-mini/v/3.1.6-beta.17

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@rayhomie rayhomie changed the title chore(release): v3.1.6-beta.17 chore(release): v3.1.6-beta.18 May 22, 2025
@rayhomie
Copy link
Collaborator Author

/release beta

Copy link
Contributor

🎉 Release version 3.1.6-beta.18 publish successful! You can install this version via npm install [email protected] @rayhomie

3.1.6-beta.18
npm install [email protected]

https://www.npmjs.com/package/antd-mini/v/3.1.6-beta.18

@rayhomie rayhomie changed the title chore(release): v3.1.6-beta.18 chore(release): v3.1.6-beta.19 May 29, 2025
@rayhomie
Copy link
Collaborator Author

/release beta

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

🎉 Release version 3.1.6-beta.19 publish successful! You can install this version via npm install [email protected] @rayhomie

3.1.6-beta.19
npm install [email protected]

https://www.npmjs.com/package/antd-mini/v/3.1.6-beta.19

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b84a667 and 8e72fb1.

📒 Files selected for processing (2)
  • package.json (2 hunks)
  • src/Popup/index.ts (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • package.json
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: build
  • GitHub Check: Cloudflare Pages

@@ -59,7 +59,7 @@ Component({
const enableAnimation = animation && duration > 0;

if (
nextProps.visible !== visible &&
Boolean(nextProps.visible) !== Boolean(visible) &&
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

布尔值转换提升了类型安全性,但需要保持一致性

这个改动很好,使用 Boolean() 确保了严格的布尔值比较,避免了真值/假值但非严格布尔类型可能带来的问题。

但是注意到代码中存在不一致的地方:第77行的 didUpdate 方法仍然使用直接比较 prevProps.visible !== visible。建议在整个文件中保持一致的比较方式。

应用以下修改以保持一致性:

-    if (prevProps.visible !== visible && !enableAnimation) {
+    if (Boolean(prevProps.visible) !== Boolean(visible) && !enableAnimation) {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Boolean(nextProps.visible) !== Boolean(visible) &&
// In src/Popup/index.ts, within the `didUpdate` method
protected didUpdate(prevProps: PopupProps, prevState: PopupState, enableAnimation: boolean) {
const { visible } = this.state;
- if (prevProps.visible !== visible && !enableAnimation) {
+ if (Boolean(prevProps.visible) !== Boolean(visible) && !enableAnimation) {
this.setState({ triggerAnimation: true });
}
// …rest of logic
}
🤖 Prompt for AI Agents
In src/Popup/index.ts at line 77, the didUpdate method uses direct comparison
prevProps.visible !== visible, which is inconsistent with line 62 where
Boolean() is used for strict boolean comparison. Update the comparison in
didUpdate to use Boolean(prevProps.visible) !== Boolean(visible) to maintain
consistent and type-safe boolean comparisons throughout the file.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@rayhomie rayhomie changed the title chore(release): v3.1.6-beta.19 chore(release): v3.1.6-beta.20 Jun 3, 2025
@rayhomie
Copy link
Collaborator Author

rayhomie commented Jun 3, 2025

/release beta

Copy link
Contributor

github-actions bot commented Jun 3, 2025

🎉 Release version 3.1.6-beta.20 publish successful! You can install this version via npm install [email protected] @rayhomie

3.1.6-beta.20
npm install [email protected]

https://www.npmjs.com/package/antd-mini/v/3.1.6-beta.20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant