Skip to content

feat(animations): make validateStyleProperty check dev-mode only - #45570

Closed
dario-piotrowicz wants to merge 2 commits into
angular:masterfrom
dario-piotrowicz:validateStyleProperty-dev-mode-only
Closed

dario-piotrowicz wants to merge 2 commits into
angular:masterfrom
dario-piotrowicz:validateStyleProperty-dev-mode-only

Conversation

@dario-piotrowicz

@dario-piotrowicz dario-piotrowicz commented Apr 9, 2022 •

Copy link
Copy Markdown
Contributor

make the validateStyleProperty check dev-mode only so that it is
consistent with the validateAnimatableStyleProperty check introduced in
PR #45212

besides consistency this change also reduces the payload size and
increases performance (since less logic is executed)

original conversation: #45212 (comment)

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

Issue

Issue Number: N/A

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@pullapprove
pullapprove Bot requested a review from crisbeto April 9, 2022 11:59
@dario-piotrowicz
dario-piotrowicz force-pushed the validateStyleProperty-dev-mode-only branch from 0328dd3 to a5c54b0 Compare April 9, 2022 12:22
@pullapprove
pullapprove Bot requested a review from jessicajaniuk April 9, 2022 12:23
@dario-piotrowicz
dario-piotrowicz force-pushed the validateStyleProperty-dev-mode-only branch from a5c54b0 to 62c4039 Compare April 9, 2022 13:29
make the validateStyleProperty check dev-mode only so that it is
consistent with the validateAnimatableStyleProperty check introduced in
PR angular#45212

besides consistency this change also reduces the payload size and
increases performance (since less logic is executed)

original conversation: angular#45212 (comment)
@dario-piotrowicz
dario-piotrowicz force-pushed the validateStyleProperty-dev-mode-only branch from 62c4039 to 2f8f3c9 Compare April 9, 2022 13:31
…idation

in the `validateAnimatableStyleProperty` function use the more complete
check for the ngDevMode as it seems to be the preferred version
(see: angular#45212 (comment))
@dario-piotrowicz
dario-piotrowicz force-pushed the validateStyleProperty-dev-mode-only branch from 2f8f3c9 to 7d51458 Compare April 9, 2022 20:31
@jessicajaniuk jessicajaniuk added the area: animations legacy animations package only. Otherwise use area: core. label Apr 11, 2022
@ngbot ngbot Bot added this to the Backlog milestone Apr 11, 2022

@jessicajaniuk jessicajaniuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 🍪

Thanks, @dario-piotrowicz!

@jessicajaniuk
jessicajaniuk removed the request for review from crisbeto April 11, 2022 16:36
@jessicajaniuk jessicajaniuk added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Apr 11, 2022
@jessicajaniuk

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 9572bb2.

jessicajaniuk pushed a commit that referenced this pull request Apr 11, 2022
…idation (#45570)

in the `validateAnimatableStyleProperty` function use the more complete
check for the ngDevMode as it seems to be the preferred version
(see: #45212 (comment))

PR Close #45570
@dario-piotrowicz
dario-piotrowicz deleted the validateStyleProperty-dev-mode-only branch April 11, 2022 17:21
dario-piotrowicz added a commit to dario-piotrowicz/angular that referenced this pull request Apr 11, 2022
…DevMode check

the check for unsupported CSS properties has been made dev-mode-only in
PR angular#45570, so the check for the unsupportedCSSPRopertiesFound can be
moved inside a ngDevMode check so that more code can be treeshaken away
jessicajaniuk pushed a commit that referenced this pull request Apr 11, 2022
…DevMode check (#45591)

the check for unsupported CSS properties has been made dev-mode-only in
PR #45570, so the check for the unsupportedCSSPRopertiesFound can be
moved inside a ngDevMode check so that more code can be treeshaken away

PR Close #45591
dylhunn pushed a commit to dylhunn/angular that referenced this pull request Apr 12, 2022
…DevMode check (angular#45591)

the check for unsupported CSS properties has been made dev-mode-only in
PR angular#45570, so the check for the unsupportedCSSPRopertiesFound can be
moved inside a ngDevMode check so that more code can be treeshaken away

PR Close angular#45591
@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 May 12, 2022
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: animations legacy animations package only. Otherwise use area: core. target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants