Skip to content

refactor: constructor breaking changes for 8.0 #15647

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

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Mar 29, 2019

Goes through the constructor-related breaking changes for 8.0 in all of the CDK symbols plus material/form-field and material/tabs.

BREAKING CHANGES:

  • CdkDrag: viewportRuler and dragDropRegistry parameters have been removed from the constructor. Furthermore the dragDrop and _changeDetectorRef parameters in are now required.
  • CdkDropList: dragDropRegistry and _documents parameters have been removed, and dragDrop parameter is now required.
  • ConnectedPositionStrategy: platform parameter is now required and a new overlayContainer parameter has been added.
  • FlexibleConnectedPositionStrategy: _platform and _overlayContainer parameters are now required.
  • OverlayPositionBuilder: _platform and _overlayContainer parameters are now required.
  • CdkTable: _document and _platform parameters are now required.
  • MatFormField: _platform, _ngZone and _animationMode parameters are now required.
  • MatTabLink: _focusMonitor parameter is now required.

@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround target: major This PR is targeted for the next major release labels Mar 29, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 29, 2019
@crisbeto crisbeto force-pushed the 8.0-constructor-changes-part-1 branch 3 times, most recently from 6531d44 to 9574644 Compare March 29, 2019 11:46
@crisbeto crisbeto requested a review from devversion as a code owner March 29, 2019 11:46
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Apr 1, 2019
@mmalerba
Copy link
Contributor

mmalerba commented Apr 2, 2019

@crisbeto can you separate the stepper changes into a another PR? I think the rest will go in easily

@crisbeto crisbeto force-pushed the 8.0-constructor-changes-part-1 branch from 9574644 to cd4c056 Compare April 3, 2019 15:38
@crisbeto
Copy link
Member Author

crisbeto commented Apr 3, 2019

I've removed the stepper-related changes @mmalerba.

Goes through the constructor-related breaking changes for 8.0 in all of the CDK symbols plus `material/form-field` and `material/tabs`.

BREAKING CHANGES:

* `CdkDrag`: `viewportRuler` and `dragDropRegistry` parameters have been removed from the constructor. Furthermore the `dragDrop` and `_changeDetectorRef` parameters in are now required.
* `CdkDropList`:  `dragDropRegistry` and `_documents` parameters have been removed, and `dragDrop` parameter is now required.
* `ConnectedPositionStrategy`: `platform` parameter is now required and a new `overlayContainer` parameter has been added.
* `FlexibleConnectedPositionStrategy`: `_platform` and `_overlayContainer` parameters are now required.
* `OverlayPositionBuilder`: `_platform` and `_overlayContainer` parameters are now required.
* `CdkTable`: `_document` and `_platform` parameters are now required.
* `MatFormField`: `_platform`, `_ngZone` and `_animationMode` parameters are now required.
* `MatTabLink`: `_focusMonitor` parameter is now required.
@mmalerba mmalerba force-pushed the 8.0-constructor-changes-part-1 branch from cd4c056 to b752c0c Compare April 3, 2019 22:59
@mmalerba mmalerba merged commit 526351a into angular:master Apr 3, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants