Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Oct 27, 2019

The ConnectedPositionStrategy has been deprecated since at least 7.0.0 and is just a wrapper around FlexibleConnectedPositionStrategy. These changes remove it since it still adds a fair bit of code that has to be maintained.

BREAKING CHANGE:

  • ConnectedPositionStrategy has been removed. Use FlexibleConnectedPositionStrategy instead.
  • OverlayPositionBuilder.connectedTo has been removed. Use OverlayPositionBuilder.flexibleConnectedTo instead.

@crisbeto crisbeto added P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: major This PR is targeted for the next major release labels Oct 27, 2019
@crisbeto crisbeto requested a review from jelbourn as a code owner October 27, 2019 10:37
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 27, 2019
@crisbeto
Copy link
Member Author

Caretaker note: let's decide how to proceed with this one based on the number of usages we see in g3.

@crisbeto crisbeto added this to the 9.0.0 milestone Oct 27, 2019
@mmalerba mmalerba removed this from the 9.0.0 milestone Oct 30, 2019
@jelbourn jelbourn added this to the 10.0.0 milestone Dec 4, 2019
@crisbeto crisbeto force-pushed the remove-connected-position-strategy branch from 623d0bd to 56fdba5 Compare February 16, 2020 16:54
@jelbourn jelbourn added P2 The issue is important to a large percentage of users, with a workaround and removed P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful labels Jun 2, 2020
@jelbourn jelbourn modified the milestones: 10.0.0, 11.0.0 Jun 2, 2020
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 8, 2020
Removes most of the deprecated APIs for v11 under `cdk/overlay`. Note that these changes target primarily the breaking changes that should be easier to land. I've left out removing `ConnectedPositionStrategy` which has a separate PR (angular#17519), and `GlobalPositionStrategy.width` and `GlobalPositionStrategy.height`, because they'll be trickier to land.

BREAKING CHANGES:
* The `OVERLAY_PROVIDERS` constant has been removed. Import `OverlayModule` and use the providers directly instead.
* `_platform` parameter of the `OverlayContainer` constructor is now required.
* `_platform` parameter of the `FullscreenOverlayContainer` constructor is now required.
* `_location` and `_outsideClickDispatcher` parameters of the `OverlayRef` constructor are now required.
* `_location` and `_outsideClickDispatcher` parameters of the `Overlay` constructor are now required.
@crisbeto crisbeto force-pushed the remove-connected-position-strategy branch from 56fdba5 to f96fb83 Compare September 8, 2020 13:50
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Sep 8, 2020
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 8, 2020
Removes most of the deprecated APIs for v11 under `cdk/overlay`. Note that these changes target primarily the breaking changes that should be easier to land. I've left out removing `ConnectedPositionStrategy` which has a separate PR (angular#17519), and `GlobalPositionStrategy.width` and `GlobalPositionStrategy.height`, because they'll be trickier to land.

BREAKING CHANGES:
* The `OVERLAY_PROVIDERS` constant has been removed. Import `OverlayModule` and use the providers directly instead.
* `_platform` parameter of the `OverlayContainer` constructor is now required.
* `_platform` parameter of the `FullscreenOverlayContainer` constructor is now required.
* `_location` and `_outsideClickDispatcher` parameters of the `OverlayRef` constructor are now required.
* `_location` and `_outsideClickDispatcher` parameters of the `Overlay` constructor are now required.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 17, 2020
Removes most of the deprecated APIs for v11 under `cdk/overlay`. Note that
these changes target primarily the breaking changes that should be easier to
land. I've left out removing `ConnectedPositionStrategy` which has a separate
PR (angular#17519), and `GlobalPositionStrategy.width` and
`GlobalPositionStrategy.height`, because they'll be trickier to land.

BREAKING CHANGES:
* The `OVERLAY_PROVIDERS` constant has been removed. Import
`OverlayModule` and use the providers directly instead.
* `_platform` parameter of the `OverlayContainer` constructor is now required.
* `_platform` parameter of the `FullscreenOverlayContainer` constructor is
now required.
* `_location` and `_outsideClickDispatcher` parameters of the `OverlayRef`
constructor are now required.
* `_location` and `_outsideClickDispatcher` parameters of the `Overlay`
constructor are now required.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 17, 2020
Removes most of the deprecated APIs for v11 under `cdk/overlay`. Note that
these changes target primarily the breaking changes that should be easier to
land. I've left out removing `ConnectedPositionStrategy` which has a separate
PR (angular#17519), and `GlobalPositionStrategy.width` and
`GlobalPositionStrategy.height`, because they'll be trickier to land.

BREAKING CHANGES:
* The `OVERLAY_PROVIDERS` constant has been removed. Import
`OverlayModule` and use the providers directly instead.
* `_platform` parameter of the `OverlayContainer` constructor is now required.
* `_platform` parameter of the `FullscreenOverlayContainer` constructor is
now required.
* `_location` and `_outsideClickDispatcher` parameters of the `OverlayRef`
constructor are now required.
* `_location` and `_outsideClickDispatcher` parameters of the `Overlay`
constructor are now required.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 23, 2020
Removes most of the deprecated APIs for v11 under `cdk/overlay`. Note that
these changes target primarily the breaking changes that should be easier to
land. I've left out removing `ConnectedPositionStrategy` which has a separate
PR (angular#17519), and `GlobalPositionStrategy.width` and
`GlobalPositionStrategy.height`, because they'll be trickier to land.

BREAKING CHANGES:
* The `OVERLAY_PROVIDERS` constant has been removed. Import
`OverlayModule` and use the providers directly instead.
* `_platform` parameter of the `OverlayContainer` constructor is now required.
* `_platform` parameter of the `FullscreenOverlayContainer` constructor is
now required.
* `_location` and `_outsideClickDispatcher` parameters of the `OverlayRef`
constructor are now required.
* `_location` and `_outsideClickDispatcher` parameters of the `Overlay`
constructor are now required.
annieyw pushed a commit that referenced this pull request Sep 23, 2020
Removes most of the deprecated APIs for v11 under `cdk/overlay`. Note that
these changes target primarily the breaking changes that should be easier to
land. I've left out removing `ConnectedPositionStrategy` which has a separate
PR (#17519), and `GlobalPositionStrategy.width` and
`GlobalPositionStrategy.height`, because they'll be trickier to land.

BREAKING CHANGES:
* The `OVERLAY_PROVIDERS` constant has been removed. Import
`OverlayModule` and use the providers directly instead.
* `_platform` parameter of the `OverlayContainer` constructor is now required.
* `_platform` parameter of the `FullscreenOverlayContainer` constructor is
now required.
* `_location` and `_outsideClickDispatcher` parameters of the `OverlayRef`
constructor are now required.
* `_location` and `_outsideClickDispatcher` parameters of the `Overlay`
constructor are now required.
wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Sep 24, 2020
Removes most of the deprecated APIs for v11 under `cdk/overlay`. Note that
these changes target primarily the breaking changes that should be easier to
land. I've left out removing `ConnectedPositionStrategy` which has a separate
PR (angular#17519), and `GlobalPositionStrategy.width` and
`GlobalPositionStrategy.height`, because they'll be trickier to land.

BREAKING CHANGES:
* The `OVERLAY_PROVIDERS` constant has been removed. Import
`OverlayModule` and use the providers directly instead.
* `_platform` parameter of the `OverlayContainer` constructor is now required.
* `_platform` parameter of the `FullscreenOverlayContainer` constructor is
now required.
* `_location` and `_outsideClickDispatcher` parameters of the `OverlayRef`
constructor are now required.
* `_location` and `_outsideClickDispatcher` parameters of the `Overlay`
constructor are now required.
@Splaktar
Copy link
Contributor

Was there already a migration for this applied in a previous release?

@crisbeto
Copy link
Member Author

There's no easy way to migrate this for people. The position strategy has been deprecated since March 2018 so there's been a lot of time to migrate away from it.

@crisbeto crisbeto changed the title refactor(overlay): remove deprecated connected position strategy refactor(material/overlay): remove deprecated connected position strategy Jan 4, 2021
@crisbeto crisbeto changed the title refactor(material/overlay): remove deprecated connected position strategy refactor(cdk/overlay): remove deprecated connected position strategy Jan 4, 2021
@crisbeto crisbeto force-pushed the remove-connected-position-strategy branch from f96fb83 to 19a1178 Compare January 4, 2021 21:04
wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Jan 14, 2021
Removes most of the deprecated APIs for v11 under `cdk/overlay`. Note that
these changes target primarily the breaking changes that should be easier to
land. I've left out removing `ConnectedPositionStrategy` which has a separate
PR (angular#17519), and `GlobalPositionStrategy.width` and
`GlobalPositionStrategy.height`, because they'll be trickier to land.

BREAKING CHANGES:
* The `OVERLAY_PROVIDERS` constant has been removed. Import
`OverlayModule` and use the providers directly instead.
* `_platform` parameter of the `OverlayContainer` constructor is now required.
* `_platform` parameter of the `FullscreenOverlayContainer` constructor is
now required.
* `_location` and `_outsideClickDispatcher` parameters of the `OverlayRef`
constructor are now required.
* `_location` and `_outsideClickDispatcher` parameters of the `Overlay`
constructor are now required.
Copy link
Contributor

@Splaktar Splaktar left a comment

Choose a reason for hiding this comment

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

LGTM

@crisbeto crisbeto modified the milestones: 11.0.0, 12.0.0 Feb 6, 2021
@crisbeto crisbeto force-pushed the remove-connected-position-strategy branch from 19a1178 to 3f43275 Compare August 3, 2021 20:40
@crisbeto crisbeto requested a review from a team as a code owner August 3, 2021 20:40
The `ConnectedPositionStrategy` has been deprecated since at least 7.0.0 and is just a
wrapper around `FlexibleConnectedPositionStrategy`. These changes remove it since it
still adds a fair bit of code that has to be maintained.

BREAKING CHANGE:
* `ConnectedPositionStrategy` has been removed. Use `FlexibleConnectedPositionStrategy` instead.
* `OverlayPositionBuilder.connectedTo` has been removed. Use `OverlayPositionBuilder.flexibleConnectedTo` instead.
@crisbeto crisbeto force-pushed the remove-connected-position-strategy branch from 3f43275 to babd9de Compare August 3, 2021 20:50
@crisbeto crisbeto modified the milestones: 12.0.0, 13.0.0 Aug 5, 2021
@andrewseguin andrewseguin merged commit 8d39384 into angular:master Aug 6, 2021
@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 6, 2021
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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note 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.

6 participants