pypi / jsonpatch
jsonpatch
What changed in jsonpatch 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.
4 breaking1 security2 performance2 behavior and defaults9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjsonpatch 118 changes
Breaking changes 4
Rejects moving a location into its own children.
JSON diff comparison no longer treats 1 and True as equal.
Pointers can no longer index into strings.
The project supports only currently supported Python versions.
Security 1
Malformed patches and "from": "/-" raise the documented exceptions.
Performance 2
Finds moves without rewriting all later operations.
Patch operations are hashed by their op and path.
Behavior and default changes 2
Supports whole-document operations on scalar documents.
Compares values using JSON equality.
Fixes and other changes 9
Closes the original input before performing an in-place replacement.
List diffing uses sequence alignment to avoid unnecessary replacements and cascading changes.
Handles self-containing values when generating a patch.
Adds support for Python 3.13 and 3.14.
Rejects '-' only when it refers to an array, rather than rejecting it in other contexts.
Fix operation reindexing for nested paths and other operation reindexing bugs in generated diffs.
Comparison ordering is deterministic, making JSON diff results consistent.
Applying patch operations no longer modifies the patch object.
Handle the whole-document pointer in the sequence branch and fix copying from that pointer.