Skip to content

Conversation

crisbeto
Copy link
Member

Switches all manually-bound event handlers that were passing options to go through the renderer.

Updates the repo to Angular 19.1.0-next.3 since it includes some changes to the renderer that we need.
@crisbeto crisbeto added target: minor This PR is targeted for the next minor release merge: preserve commits When the PR is merged, a rebase and merge should be performed labels Dec 17, 2024
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Dec 17, 2024
…ndings

Adds a utility that we can use to bind events with options in a backwards-compatible way. It will be removed once we get to v20.
@crisbeto crisbeto force-pushed the remaining-event-handlers branch from a19baa1 to eda992d Compare December 17, 2024 10:55
@crisbeto crisbeto marked this pull request as ready for review December 17, 2024 11:00
@crisbeto crisbeto requested a review from a team as a code owner December 17, 2024 11:00
@crisbeto crisbeto requested review from amysorto, andrewseguin and wagnermaciel and removed request for a team December 17, 2024 11:00
@crisbeto crisbeto force-pushed the remaining-event-handlers branch from eda992d to b749a8b Compare December 17, 2024 15:43
Switches all manually-bound event handlers that were passing options to go through the renderer.
@crisbeto crisbeto force-pushed the remaining-event-handlers branch from b749a8b to c92253d Compare December 17, 2024 16:24

// Event options in `listen` are only supported in 19.1 and beyond.
// We also allow 0.0.x, because that indicates a build at HEAD.
if (major > 19 || (major === 19 && minor > 0) || (major === 0 && minor === 0)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like major >= 19 || (major === 0 && minor === 0) should be sufficient?

Copy link
Member Author

Choose a reason for hiding this comment

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

19.0.x doesn't have support for the config object in the renderer, only 19.1 and above.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh gotcha, I misread minor > 0 as minor >= 0

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Dec 17, 2024
@crisbeto crisbeto merged commit 36bdbd8 into angular:main Dec 17, 2024
20 of 22 checks passed
crisbeto added a commit to crisbeto/material2 that referenced this pull request Jan 6, 2025
This is a second attempt at landing the changes from angular#30195. I've removed some of the riskier changes.

Switches all manually-bound event handlers that were passing options to go through the renderer.
@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 Jan 18, 2025
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 area: build & ci Related the build and CI infrastructure of the project area: cdk/platform merge: preserve commits When the PR is merged, a rebase and merge should be performed target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants