Skip to content

Conversation

@leermao
Copy link
Contributor

@leermao leermao commented Dec 22, 2025

关联 Issue

主要改动

界面截图

测试计划

Summary by AIGNE

发布说明 v0.3.18

破坏性变更

  • API 重构: UploaderRef 接口发生重大变更,移除了多个程序化控制方法(uploadgetProgressgetFilesremoveFilecancelAll
  • 方法重命名: addFiles 方法替换为 addFilesToUppy,参数签名已更改

新功能

  • Headless API: 新增程序化控制上传器的 API 功能

注意事项

⚠️ 重要: 此版本包含破坏性变更,升级前请检查现有代码集成并准备相应的迁移工作。

@github-actions
Copy link

github-actions bot commented Dec 22, 2025

Image description AIGNE Framework

@github-actions
Copy link

Image description AIGNE CodeSmith

Pull Request Title Suggestions

  1. feat: simplify uploader headless API interface and remove redundant methods

  2. refactor: streamline UploaderRef type definition and expose core addFilesToUppy method

  3. chore: bump version to 0.3.18 and clean up uploader API surface

@github-actions
Copy link

github-actions bot commented Dec 22, 2025

Image description AIGNE CodeSmith

Walkthrough

此次变更将 uploader 和 uploader-server 包从 0.3.17 升级到 0.3.18,主要重构了 Uploader 组件的 headless API。变更包括简化 UploaderRef 接口,将 addFiles 方法替换为 addFilesToUppy,并移除了多个程序化控制方法。这是一个破坏性变更,可能影响现有集成代码的兼容性。

Changes

文件 摘要
packages/uploader-server/CHANGELOG.md, packages/uploader/CHANGELOG.md 版本号从 0.3.17 升级到 0.3.18,记录新增 headless API 功能
packages/uploader/src/react/uploader.tsx, packages/uploader/src/types.ts CRITICAL: 重构 UploaderRef 接口,移除 8 个现有方法(upload, getProgress, getFiles 等),将 addFiles 替换为 addFilesToUppy,造成破坏性 API 变更。删除中文注释影响代码可维护性

Copy link

@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.

Image description AIGNE CodeSmith

Commits Files that changed from the base of the PR and between 3d4f9d6 and e249478 commits.
Files selected (4)
  • packages/uploader-server/CHANGELOG.md (1)
  • packages/uploader/CHANGELOG.md (1)
  • packages/uploader/src/react/uploader.tsx (2)
  • packages/uploader/src/types.ts (1)
Files ignored due to filter (2)
  • packages/uploader-server/package.json
  • packages/uploader/package.json
Files skipped from review due to trivial changes (2)
  • packages/uploader-server/CHANGELOG.md
  • packages/uploader/CHANGELOG.md
Review comments generated (3)
  • Review: 2
  • LGTM: 1

提示

Image description AIGNE CodeSmith (@codesmith) 聊天

  • 回复此机器人留下的审查评论以提出后续问题。审查评论是对差异或文件的评论。
  • 通过在回复中标记 @codesmith 邀请机器人加入审查评论链。

代码建议

  • 机器人可能会提出代码建议,但在提交前请仔细审查它们,因为行号范围可能会不对齐。
  • 你可以编辑机器人做出的评论,并在建议稍有偏差时手动调整。

暂停增量审查

  • 在 PR 描述中的任何位置添加 @codesmith: ignore 以暂停机器人的进一步审查。

@leermao leermao merged commit 01e64f6 into master Dec 22, 2025
8 checks passed
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.

3 participants