Skip to content

fix(json-patch): create deep copy of "replace" operation value#812

Merged
streamich merged 1 commit intostreamich:masterfrom
atsjo:json-patch
Feb 5, 2025
Merged

fix(json-patch): create deep copy of "replace" operation value#812
streamich merged 1 commit intostreamich:masterfrom
atsjo:json-patch

Conversation

@atsjo
Copy link
Contributor

@atsjo atsjo commented Jan 22, 2025

When applying patches the patch value itself might be changed by subsequent patches or other changes applied to the resulting state if not cloned. This was fixed for the "add" operation in 43c7348

This applies the same fix for "replace"

Copy link
Owner

@streamich streamich left a comment

Choose a reason for hiding this comment

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

Thank you!

@streamich streamich merged commit a93f230 into streamich:master Feb 5, 2025
3 checks passed
@github-actions
Copy link

github-actions bot commented Feb 5, 2025

🎉 This PR is included in version 17.26.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@atsjo atsjo deleted the json-patch branch February 5, 2025 12:42
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.

2 participants