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

Remove clone-deep dependency #1763

Closed
wants to merge 1 commit into from

Conversation

bryanrideshark
Copy link

Removing the clone-deep dependency is possible by writing a custom clone function for Line Coordinates.

This closes #1762

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)

Currently, a dependency on 4 year old clone-deep causes an optimization bailout warning, and an error in Angular 14 compilation.

What is the new behavior?

Removing a function call which was only used once, and replacing it with a monomorphic function, improves the performance and removes this breaking error.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

Removing the clone-deep dependency is possible by writing a custom clone function for Line Coordinates. 

This closes swimlane#1762
@Hypercubed
Copy link
Contributor

Replaced by #1771

@Hypercubed Hypercubed closed this Jul 22, 2022
Copy link

@ezhupa99 ezhupa99 left a comment

Choose a reason for hiding this comment

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

it's alright

PhilFlash added a commit to PhilFlash/ngx-charts that referenced this pull request Nov 11, 2022
…anrideshark in pr swimlane#1763 (with rfdc, there is the same message like clone-deep: CommonJS or AMD dependencies can cause optimization bailouts)
PhilFlash added a commit to PhilFlash/ngx-charts that referenced this pull request Mar 28, 2023
…anrideshark in pr swimlane#1763 (with rfdc, there is the same message like clone-deep: CommonJS or AMD dependencies can cause optimization bailouts)

ng-package.json: remove rfdc
PhilFlash added a commit to PhilFlash/ngx-charts that referenced this pull request Feb 19, 2024
…anrideshark in pr swimlane#1763 (with rfdc, there is the same message like clone-deep: CommonJS or AMD dependencies can cause optimization bailouts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to serve using Angular 14
4 participants