Skip to content

Decouple platform-server from animations#59762

Closed
crisbeto wants to merge 3 commits intoangular:mainfrom
crisbeto:server-noop-animations
Closed

Decouple platform-server from animations#59762
crisbeto wants to merge 3 commits intoangular:mainfrom
crisbeto:server-noop-animations

Conversation

@crisbeto
Copy link
Copy Markdown
Member

@crisbeto crisbeto commented Jan 28, 2025

Includes the following changes that should remove the hard dependency between platform-server and the animations module:

fix(platform-browser): automatically disable animations on the server

Uses ngServerMode to automatically disable browser animations on the server. This allows us to decouple platform-server from the animations package.

fix(platform-server): decouple server from animations module

Removes the hard dependency between platform-server and platform-browser/animations since now the animations module will disable itself automatically.

test(core): update tests that were relying on implicit animations module

We had some tests that were relying on the fact that the server module was importing animations implicitly.

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Jan 28, 2025
@angular-robot angular-robot bot added area: core Issues related to the framework runtime area: server Issues related to server-side rendering labels Jan 28, 2025
@ngbot ngbot bot added this to the Backlog milestone Jan 28, 2025
Copy link
Copy Markdown
Contributor

@alan-agius4 alan-agius4 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 force-pushed the server-noop-animations branch from 0c51b0f to 5f5a9e2 Compare January 28, 2025 18:35
@crisbeto crisbeto marked this pull request as ready for review January 28, 2025 18:57
@pullapprove pullapprove bot removed the request for review from atscott January 28, 2025 18:57
@pullapprove pullapprove bot requested a review from kirjs January 28, 2025 18:58
Uses `ngServerMode` to automatically disable browser animations on the server. This allows us to decouple `platform-server` from the animations package.
Removes the hard dependency between `platform-server` and `platform-browser/animations` since now the animations module will disable itself automatically.
We had some tests that were relying on the fact that the server module was importing animations implicitly.
@crisbeto crisbeto force-pushed the server-noop-animations branch from 5f5a9e2 to 8bea2c4 Compare January 28, 2025 19:00
Copy link
Copy Markdown
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement @crisbeto 👍

@pullapprove pullapprove bot requested a review from alxhub January 28, 2025 19:23
Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

LGTM!

reviewed-for: fw-general, public-api

@pullapprove pullapprove bot requested a review from kirjs January 28, 2025 20:16
Copy link
Copy Markdown
Member

@alxhub alxhub left a comment

Choose a reason for hiding this comment

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

Reviewed-for: public-api

@crisbeto crisbeto added 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 and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 28, 2025
@crisbeto crisbeto removed the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Jan 29, 2025
@alxhub
Copy link
Copy Markdown
Member

alxhub commented Jan 29, 2025

This PR was merged into the repository by commit ea2ea5e.

The changes were merged into the following branches: main

@alxhub alxhub closed this in e6cb411 Jan 29, 2025
alxhub pushed a commit that referenced this pull request Jan 29, 2025
Removes the hard dependency between `platform-server` and `platform-browser/animations` since now the animations module will disable itself automatically.

PR Close #59762
alxhub pushed a commit that referenced this pull request Jan 29, 2025
…ule (#59762)

We had some tests that were relying on the fact that the server module was importing animations implicitly.

PR Close #59762
PrajaktaB27 pushed a commit to PrajaktaB27/angular that referenced this pull request Feb 7, 2025
…angular#59762)

Uses `ngServerMode` to automatically disable browser animations on the server. This allows us to decouple `platform-server` from the animations package.

PR Close angular#59762
PrajaktaB27 pushed a commit to PrajaktaB27/angular that referenced this pull request Feb 7, 2025
…#59762)

Removes the hard dependency between `platform-server` and `platform-browser/animations` since now the animations module will disable itself automatically.

PR Close angular#59762
PrajaktaB27 pushed a commit to PrajaktaB27/angular that referenced this pull request Feb 7, 2025
…ule (angular#59762)

We had some tests that were relying on the fact that the server module was importing animations implicitly.

PR Close angular#59762
crisbeto added a commit to crisbeto/angular-cli that referenced this pull request Feb 12, 2025
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
crisbeto added a commit to crisbeto/angular-cli that referenced this pull request Feb 12, 2025
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
crisbeto added a commit to crisbeto/angular-cli that referenced this pull request Feb 12, 2025
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
crisbeto added a commit to crisbeto/angular-cli that referenced this pull request Feb 12, 2025
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
crisbeto added a commit to crisbeto/angular-cli that referenced this pull request Feb 12, 2025
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
crisbeto added a commit to crisbeto/angular-cli that referenced this pull request Feb 12, 2025
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
crisbeto added a commit to crisbeto/angular-cli that referenced this pull request Feb 12, 2025
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
crisbeto added a commit to crisbeto/angular-cli that referenced this pull request Feb 12, 2025
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
alan-agius4 pushed a commit to angular/angular-cli that referenced this pull request Feb 13, 2025
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 Mar 27, 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: core Issues related to the framework runtime area: server Issues related to server-side rendering target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants