Skip to content

Conversation

@wkillerud
Copy link
Contributor

This replacement with a shallow clone might look odd, but only one value at the root level is mutated. Also, because of a quirk with how clonedeep works with the AssetCss and AssetJs classes in podium utils, the entries in the css and js arrays weren't actually cloned – instead the values were copied.

See podium-lib/utils#289 for a more thorough explanation with links to code.

This replacement with a shallow clone might look odd, but only one
value at the root level is mutated. Also, because of a quirk with
how clonedeep works with the AssetCss and AssetJs classes in
podium utils, the entries in the css and js arrays weren't actually
cloned – instead the values were copied.

See podium-lib/utils#289 for a more thorough
explanation with links to code.
@wkillerud wkillerud changed the title refactor: remove clonedeep dependency fix(deps): remove clonedeep dependency Jul 1, 2025
Copy link
Contributor

@leftieFriele leftieFriele left a comment

Choose a reason for hiding this comment

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

given what you mention in the PR description, this is an adequate solution 👍

@wkillerud wkillerud merged commit d77e266 into main Jul 2, 2025
9 checks passed
@wkillerud wkillerud deleted the knip branch July 2, 2025 07:07
github-actions bot pushed a commit that referenced this pull request Jul 2, 2025
## [5.3.6](v5.3.5...v5.3.6) (2025-07-02)

### Bug Fixes

* **deps:** remove clonedeep dependency ([#471](#471)) ([d77e266](d77e266))
@github-actions
Copy link

github-actions bot commented Jul 2, 2025

🎉 This PR is included in version 5.3.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants