-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(dialog): remove deprecated APIs for 9.0.0 #17333
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(dialog): remove deprecated APIs for 9.0.0 #17333
Conversation
e82b673
to
4236d8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Looks like it just needs API golds updated |
4236d8b
to
fca880e
Compare
Breaks nearly 2,000 targets in Google. We'll need to dedicate more time to updating people. |
Removes the APIs that were scheduled to be removed from the dialog package in v9. BREAKING CHANGES: * `MatDialogRef.afterOpen` has been replaced with `MatDialogRef.afterOpened`. * `MatDialogRef.beforeClose` has been replaced with `MatDialogRef.beforeClosed`. * `MatDialog.afterOpen` has been replaced with `MatDialog.afterOpened`. * `matDialogAnimations.slideDialog` has been replaced with `matDialogAnimations.dialogContainer`. * `_location` parameter in `MatDialogRef` constructor has been removed.
fca880e
to
e0f0571
Compare
Though there were many broken targets, the underlying cause was only about 20 or so files, working on updating them now |
@crisbeto @jelbourn Can I ask why Location features are being stripped out? I noticed the comment saying they are being deprecated. Is this because of a dependency deprecation or just a decision to deprecate the feature of monitoring the paths to trigger a dialog close? I ask because I am investigating ways of solving an issue where the dialog remains open during routing changes and ways to allow a feature to "auto-close" the dialog when a routing change occurs. The current "Location" based features is a small part of this and I would be expanding it to use the Router most likely to expand this feature. Let me know as the information is helpful to know if I should be building this as a solution to be contributed here. |
These changes remove the |
Any interest in an addition that allows for Routing changes to auto-close the Dialog? I would assume it would be an opt-in flag to avoid regression issues. If so I can work on it to contribute it. If this goes against the Dialog assumed features no problem at all. |
We haven't added closing based on routing, because it would introduce a dependency between Material and the router. |
Dialog has a |
Got ya. Makes sense and I did discover that layer. The only issue is I believe that using Location observing which only emits for back/forward browser actions as opposed to clicking links/buttons or other path changes. It's helpful but doesn't cover things like a link in a dialog going to another route in the app or in our case a redirect/auto logout that triggers a route change while the dialog may be open. Definitely understandable about the Route dependency. I can build it in as a one-off for our implementation. Ping me if there is interest in including this in the future. I will also see if there are ways to do this without needing the Route dependency ;) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Removes the APIs that were scheduled to be removed from the dialog package in v9.
BREAKING CHANGES:
MatDialogRef.afterOpen
has been replaced withMatDialogRef.afterOpened
.MatDialogRef.beforeClose
has been replaced withMatDialogRef.beforeClosed
.MatDialog.afterOpen
has been replaced withMatDialog.afterOpened
.matDialogAnimations.slideDialog
has been replaced withmatDialogAnimations.dialogContainer
._location
parameter inMatDialogRef
constructor has been removed.