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

migrate deepmerge to ts-deepmerge #254

Closed
wants to merge 1 commit into from

Conversation

Neizan93
Copy link

@Neizan93 Neizan93 commented Aug 5, 2023

Summary

This PR migrates from the deepmerge library to ts-deepmerge, addressing an optimization warning in Angular 14 and later versions.

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines:
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

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
  • Other... Please describe:

Current Behavior

When integrating ngrx-store-localstorage with Angular 14 and later versions, a warning related to the deepmerge dependency emerges due to its CommonJS or AMD nature. This warning indicates potential optimization bailouts.

Issue Number: #229

New Behavior

By transitioning to the ts-deepmerge library, the warning is resolved, and users benefit from improved TypeScript compatibility and enhanced type checking.

Breaking Change?

  • Yes
  • No

Other information

The change was inspired by feedback from the community and recommendations to use libraries with ESModules support. It's a step toward aligning ngrx-store-localstorage with modern JS standards and making it more future-proof.

@Neizan93 Neizan93 closed this Aug 5, 2023
@Neizan93 Neizan93 deleted the ts-deepmerge branch August 5, 2023 17:37
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.

2 participants