Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Nov 1, 2024

If an invalid component identifier is provided to the development server for an external stylesheet requiring encapsulation, both a console message and a 400 status response will now be sent. This removes the potential for invalid styles to be sent to the browser.

…style component ID

If an invalid component identifier is provided to the development server for an external
stylesheet requiring encapsulation, both a console message and a 400 status response will
now be sent. This removes the potential for invalid styles to be sent to the browser.
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label Nov 1, 2024
@clydin clydin requested a review from alan-agius4 November 1, 2024 15:41
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 1, 2024
…ackage in dev server

Within the development server, the external stylesheet encapsulation logic has been
adjusted to avoid needing to asynchronously import the `@angular/compiler` package within
the request execution. This removes the need to pre-import the package at the start of the
development server which was previously used to avoid a delay in stylesheet response on
first use. The external stylesheet response execution is also now fully synchronous.
@clydin clydin force-pushed the hmr/style-invalid-id-response branch from 4b22332 to e0600e1 Compare November 1, 2024 16:27
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 1, 2024
@clydin clydin merged commit 7eabe7d into angular:main Nov 1, 2024
31 checks passed
@clydin
Copy link
Member Author

clydin commented Nov 1, 2024

The changes were merged into the following branches: main, 19.0.x

@clydin clydin deleted the hmr/style-invalid-id-response branch November 1, 2024 22:42
@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 Dec 2, 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 area: @angular/build target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants