1 个仓库
Differing arrays based on object identity via hashing rather than strictly by index position.
Distinct from Logical Array Operations: Focuses on identity-based matching for diffing, not element-wise logical operations.
Explore 1 awesome GitHub repository matching data & databases · Logical Array Diffing. Refine with filters or upvote what's useful.
jsondiffpatch 是一个 JSON 差异和补丁库,旨在计算两个 JSON 对象之间的差异并应用这些更改以同步状态。它作为一个同步工具,用于计算增量并应用补丁来更新或还原复杂的嵌套 JavaScript 对象。 该项目提供了符合 RFC 6902 JSON Patch 标准的原子更新实现,以及一个将数据增量转换为人类可读 HTML 视图的视觉差异渲染器。它包括一个专门的文本差异工具,用于对 JSON 数据值中的长字符串执行细粒度的字符级分析。 该库涵盖了广泛的功能,包括递归增量生成和使用最长公共子序列(LCS)算法的数组差异计算。它支持逻辑数组差异分析,通过自定义哈希检测项目移动,并提供多种格式输出选项,如彩色控制台格式和用于视觉比较的专用 React 组件。
Matches objects within arrays using custom hash functions to detect moves and deletions instead of relying on position.