Commit d499706
fix: don't duplicate field-level ops when filtering by child array path (v0.17.2) (#36)
* fix: don't duplicate field-level ops when filtering by child array path
flattenOpsForFilter recursed into Replace.changes even when the Replace
op itself already matched the prefix, causing field-level ops to appear
alongside their parent element op in the results (e.g. changing one
field on a child item produced both a Replace for the child AND a loose
Replace for the field).
Replace with filterOpsForPrefixes: include a matching op as-is (its
.changes are already attached), and only recurse into Replace.changes
when the Replace itself does NOT match the prefix.
https://claude.ai/code/session_017H6NzxYAwbmKxHH6QusCdh
* chore: bump version to 0.17.2
https://claude.ai/code/session_017H6NzxYAwbmKxHH6QusCdh
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 414d13e commit d499706
4 files changed
Lines changed: 30 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
576 | 589 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
451 | | - | |
452 | | - | |
| 450 | + | |
453 | 451 | | |
454 | 452 | | |
455 | | - | |
456 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
457 | 460 | | |
458 | | - | |
459 | | - | |
460 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
461 | 466 | | |
462 | | - | |
| 467 | + | |
463 | 468 | | |
464 | 469 | | |
465 | 470 | | |
| |||
0 commit comments