Skip to content
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

refactor: migrate to standard decorators #8739

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HyperLife1119
Copy link
Collaborator

@HyperLife1119 HyperLife1119 commented Sep 10, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Application (the showcase website) / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

@WithConfig() 装饰器现在是标准装饰器,关闭 experimentalDecorators 选项。

该 API 从未在文档中公开,应该属于 ZORRO 私有 API,因此不会对用户造成 "breaking change",
但如果用户也使用了该 API,则需要关闭 experimentalDecorators 选项。

不太确定是否需要添加 "breaking change" label。

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.21%. Comparing base (c64e1a1) to head (199bdb9).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8739      +/-   ##
==========================================
+ Coverage   91.67%   93.21%   +1.54%     
==========================================
  Files         538      538              
  Lines       18457    18966     +509     
  Branches     2816     2811       -5     
==========================================
+ Hits        16920    17680     +760     
- Misses       1225     1248      +23     
+ Partials      312       38     -274     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HyperLife1119 HyperLife1119 added 💔 Breaking Change This PR or the solution to this issue would introduce breaking changes PR: unreviewed PR: target-major labels Sep 10, 2024
};
},
set: (newValue: Value) => {
assignedByUser = isDefined(newValue);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

如果用户主动将值设置为 undefined,则该属性也应视为未被用户分配的,用户可以使用 null 来明确表示将该值设置为 空。

@HyperLife1119 HyperLife1119 marked this pull request as ready for review September 10, 2024 10:47
@HyperLife1119 HyperLife1119 added this to the v19 milestone Sep 11, 2024
@Laffery
Copy link
Collaborator

Laffery commented Oct 5, 2024

BREAK CHANGE 我觉得是需要加的,不排除用户基于此 API 二开了一些组件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💔 Breaking Change This PR or the solution to this issue would introduce breaking changes PR: target-major PR: unreviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants