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

chore(module:message,notification): remove old injection tokens #4404

Merged
merged 4 commits into from
Jan 8, 2020

Conversation

wzhudev
Copy link
Member

@wzhudev wzhudev commented Nov 8, 2019

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] 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?

Injection tokens such as NZ_MESSAGE_CONFIG are now removed. Users should use NzConfigService instead.

Does this PR introduce a breaking change?

[x] Yes
[ ] No

Other information

@wzhudev wzhudev added 💔 Breaking Change This PR or the solution to this issue would introduce breaking changes PR: target-major labels Nov 8, 2019
@netlify
Copy link

netlify bot commented Nov 8, 2019

Deploy preview for ng-zorro-master ready!

Built with commit 395dadc

https://deploy-preview-4404--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Nov 8, 2019

Codecov Report

Merging #4404 into master will decrease coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4404      +/-   ##
==========================================
- Coverage   93.23%   93.16%   -0.08%     
==========================================
  Files         519      521       +2     
  Lines       12822    12830       +8     
  Branches     2013     2016       +3     
==========================================
- Hits        11955    11953       -2     
- Misses        452      462      +10     
  Partials      415      415
Impacted Files Coverage Δ
components/message/nz-message-base.service.ts 100% <ø> (ø) ⬆️
components/message/nz-message.module.ts 100% <ø> (ø) ⬆️
components/notification/nz-notification.module.ts 100% <ø> (ø) ⬆️
components/message/nz-message.service.ts 100% <100%> (ø) ⬆️
...mponents/message/nz-message-container.component.ts 94.73% <100%> (+2.05%) ⬆️
...otification/nz-notification-container.component.ts 100% <100%> (+3.12%) ⬆️
components/notification/nz-notification.service.ts 100% <100%> (ø) ⬆️
components/select/nz-option-container.component.ts 76.19% <0%> (-14.29%) ⬇️
components/table/nz-th.component.ts 98.16% <0%> (-1.84%) ⬇️
...ents/time-picker/nz-time-picker-panel.component.ts 92.88% <0%> (-1.19%) ⬇️
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 137337e...f71fba3. Read the comment docs.

@wzhudev wzhudev added this to the 9.0.0 milestone Nov 8, 2019
@hsuanxyz hsuanxyz changed the title feat(module:message,notification): remove old injection tokens chore(module:message,notification): remove old injection tokens Nov 22, 2019
@wzhudev wzhudev force-pushed the remove-msg-noti-api branch 2 times, most recently from 90f8fc4 to 395dadc Compare November 22, 2019 11:58
BREAKING CHANGE:

- `NZ_MESSAGE_CONFIG` is removed. Please use `NzGlobalConfigService` instead.
- `NZ_NOTIFICATION_CONFIG` is removed. Please use `NzGlobalConfigService` instead.
- `config` method of `NzMessageService` and `NzNotificationService` is removed. Please use `set` method of `NzGlobalConfigService` instead.
Copy link
Member

@hsuanxyz hsuanxyz left a comment

Choose a reason for hiding this comment

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

全局配置#全局配置项的优先级 文档需要修改或移除

@hsuanxyz hsuanxyz merged commit f9b0e75 into NG-ZORRO:master Jan 8, 2020
@wzhudev wzhudev deleted the remove-msg-noti-api branch January 8, 2020 11:21
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
…ORRO#4404)

* chore(module:message,notification): remove old injection tokens

* fix: lint
* fix: fix lint
* docs: fix global injection doc

BREAKING CHANGE:

- `NZ_MESSAGE_CONFIG` is removed. Please use `NzGlobalConfigService` instead.
- `NZ_NOTIFICATION_CONFIG` is removed. Please use `NzGlobalConfigService` instead.
- `config` method of `NzMessageService` and `NzNotificationService` is removed. Please use `set` method of `NzGlobalConfigService` instead.
@hsuanxyz hsuanxyz mentioned this pull request Apr 15, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
…ORRO#4404)

* chore(module:message,notification): remove old injection tokens

* fix: lint
* fix: fix lint
* docs: fix global injection doc

BREAKING CHANGE:

- `NZ_MESSAGE_CONFIG` is removed. Please use `NzGlobalConfigService` instead.
- `NZ_NOTIFICATION_CONFIG` is removed. Please use `NzGlobalConfigService` instead.
- `config` method of `NzMessageService` and `NzNotificationService` is removed. Please use `set` method of `NzGlobalConfigService` instead.
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: merge-ready PR: merged PR: target-major PR: unreviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants