feat(schematics): add v19 ng update migration#8911
Merged
Conversation
|
This preview will be available after the AzureCI is passed. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8911 +/- ##
==========================================
- Coverage 91.92% 91.92% -0.01%
==========================================
Files 554 554
Lines 19684 19682 -2
Branches 2936 2936
==========================================
- Hits 18095 18093 -2
Misses 1264 1264
Partials 325 325 ☔ View full report in Codecov by Sentry. |
Collaborator
Author
|
晚点我加下 #8741 的迁移 |
Collaborator
Author
Laffery
commented
Dec 5, 2024
| selector: '<%= selector %>',<% if(standalone) {%> | ||
| standalone: true, | ||
| imports: [],<%}%><% if(inlineTemplate) { %> | ||
| selector: '<%= selector %>',<% if(standalone) { %> |
Collaborator
Author
There was a problem hiding this comment.
standalone 模式下只有 imports: [],非 standalone 模式只有 standalone: false
Laffery
commented
Dec 5, 2024
|
|
||
| private visitImportDeclaration(node: ts.ImportDeclaration): void { | ||
| if (isNgZorroImportDeclaration(node)) { | ||
| return this._createFailureWithReplacement(node); |
Collaborator
Author
There was a problem hiding this comment.
如果是 ng-zorro-antd 的 import 语句,在 upgradeData 中找到匹配的变更项,编辑并应用
Collaborator
Author
|
reviewed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
ng update ng-zorro-antd时迁移下列 Breaking changes APIng-zorro-antd/input-number->ng-zorro-antd/input-number-legacyNzInputNumberModule->NzInputNumberLegacyModuleNzInputNumberComponent->NzInputNumberLegacyComponent@InputnzBorderless到nzBorderedprovideNzI18n替代NZ_I18Nstandalone: truestandalone: false./schematics/ng-upgrade下的代码组织结构 (参考 cdk)本地验证
Does this PR introduce a breaking change?
Other information