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

[LTS port] fix(compiler): JIT mode incorrectly interpreting host directive configuration in partial compilation #57003

Closed
wants to merge 1 commit into from

Conversation

crisbeto
Copy link
Member

This is a port of #57002 to the LTS branch.

Fixes that the runtime implementation of ɵɵngDeclareDirective was interpreting the hostDirectives mapping incorrectly. Instead of treating the inputs/outputs as ['binding', 'alias'] arrays, it was parsing them as ['binding: alias']. This was leading to runtime errors if a user is consuming a partially-compiled library in JIT mode.

Fixes #54096.

…guration in partial compilation (angular#57002)

Fixes that the runtime implementation of `ɵɵngDeclareDirective` was interpreting the `hostDirectives` mapping incorrectly. Instead of treating the inputs/outputs as `['binding', 'alias']` arrays, it was parsing them as `['binding: alias']`. This was leading to runtime errors if a user is consuming a partially-compiled library in JIT mode.

Fixes angular#54096.

PR Close angular#57002
@crisbeto crisbeto added target: lts This PR is targeting a version currently in long-term support PullApprove: disable action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Jul 16, 2024
@crisbeto crisbeto requested a review from atscott July 16, 2024 16:22
@crisbeto crisbeto marked this pull request as ready for review July 16, 2024 16:22
@crisbeto
Copy link
Member Author

Caretaker note: I've skipped PullApprove since it's the exact same changes as #57002.

atscott pushed a commit that referenced this pull request Jul 16, 2024
…guration in partial compilation (#57002) (#57003)

Fixes that the runtime implementation of `ɵɵngDeclareDirective` was interpreting the `hostDirectives` mapping incorrectly. Instead of treating the inputs/outputs as `['binding', 'alias']` arrays, it was parsing them as `['binding: alias']`. This was leading to runtime errors if a user is consuming a partially-compiled library in JIT mode.

Fixes #54096.

PR Close #57002

PR Close #57003
@atscott
Copy link
Contributor

atscott commented Jul 16, 2024

This PR was merged into the repository by commit 327bae4.

The changes were merged into the following branches: 17.3.x

@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 Aug 16, 2024
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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note PullApprove: disable target: lts This PR is targeting a version currently in long-term support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants