Commit 693af56
authored
* Fix diffAtom nested identity path using bracket instead of dot notation (#392)
walkChanges was not passing embeddedKeyIsPath to buildCanonicalFilterPath,
so function-based identity keys returning nested paths like positionNumber.value
produced @['positionNumber.value'] instead of @.positionNumber.value.
* Address review: fix findElementByKey for nested paths, fix null fallback
- findElementByKey now resolves nested paths via resolveNestedKey helper
- Use undefined-only check instead of ?? to preserve null identity values
* Fix null identity matching, string-based nested keys, add comprehensive tests
- indexOfItemInArray/applyArrayChange: use !== undefined instead of != null
so null identity values can match (null is a valid filter value)
- compareArray/convertArrayToObj: support string-based nested identity keys
(e.g. embeddedObjKeys: { items: 'positionNumber.value' }) by checking
whether data has literal property or needs nested resolution
- Add 8 new tests: full round-trip (diffAtom→applyAtom→revertAtom), string
key, 3-level nesting, numeric/boolean/null identity values, toAtom bridge
* Sync package-lock.json version to 5.0.0-alpha.8
* Guard in operator against primitives, fix comment accuracy
1 parent 34a4900 commit 693af56
5 files changed
Lines changed: 319 additions & 17 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 | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | | - | |
| 287 | + | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| |||
309 | 311 | | |
310 | 312 | | |
311 | 313 | | |
312 | | - | |
313 | | - | |
314 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
315 | 319 | | |
316 | 320 | | |
317 | 321 | | |
| |||
360 | 364 | | |
361 | 365 | | |
362 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
363 | 374 | | |
364 | 375 | | |
365 | 376 | | |
366 | 377 | | |
367 | 378 | | |
368 | | - | |
| 379 | + | |
| 380 | + | |
369 | 381 | | |
| 382 | + | |
370 | 383 | | |
371 | 384 | | |
372 | | - | |
| 385 | + | |
373 | 386 | | |
374 | 387 | | |
375 | 388 | | |
376 | | - | |
| 389 | + | |
377 | 390 | | |
378 | 391 | | |
379 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
579 | 585 | | |
580 | 586 | | |
581 | 587 | | |
582 | 588 | | |
583 | 589 | | |
584 | | - | |
| 590 | + | |
585 | 591 | | |
586 | 592 | | |
587 | 593 | | |
| |||
626 | 632 | | |
627 | 633 | | |
628 | 634 | | |
629 | | - | |
630 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
631 | 641 | | |
632 | 642 | | |
633 | 643 | | |
| |||
680 | 690 | | |
681 | 691 | | |
682 | 692 | | |
683 | | - | |
| 693 | + | |
684 | 694 | | |
685 | 695 | | |
686 | 696 | | |
| |||
755 | 765 | | |
756 | 766 | | |
757 | 767 | | |
758 | | - | |
| 768 | + | |
759 | 769 | | |
760 | 770 | | |
761 | 771 | | |
| |||
845 | 855 | | |
846 | 856 | | |
847 | 857 | | |
848 | | - | |
| 858 | + | |
849 | 859 | | |
850 | 860 | | |
851 | 861 | | |
| |||
0 commit comments