Skip to content

Releases: reactnativecn/node-hdiffpatch

v1.3.0

Choose a tag to compare

@sunnylqm sunnylqm released this 05 Jul 14:06
4fa14e3

New APIs

  • diffWithCovers(old, new, covers, options) — create standard hdiffpatch payloads from caller-provided cover lines, with replace / merge / native-coalesce modes and optional debugCovers introspection
  • patchSingleStream(oldPath, diffPath, outNewPath[, cb]) — file-level apply for single-compressed diffs produced by diff() / diffWithCovers()

CLI

  • hdp patch now auto-detects the diff format by header magic (HDIFF13 / HDIFFSF20), so it can apply both hdp diff output and diff() / diffWithCovers() output

Platforms & packaging

  • New prebuilds: darwin-x64 and win32-x64 (in addition to darwin-arm64, linux-x64, linux-arm64)
  • Robust native module loading: local dev build → per-platform prebuild → node-gyp-build fallback with a clear error on unsupported platforms
  • Prebuilds-only install: the install script was removed (the published package ships no sources); engines.node >= 14.17 declared
  • npm publish now includes provenance attestation

Hardening & tests

  • Diff-declared sizes are validated before allocation (size_t truncation guard)
  • Cover fields reject negative numeric strings ("-1" no longer wraps to UINT64_MAX)
  • CI test matrix across 5 platforms under both Node and Bun runtimes; async callback paths, corrupt-diff error propagation, and CLI formats are now covered

🤖 Generated with Claude Code

v1.2.2

Choose a tag to compare

@sunnylqm sunnylqm released this 01 Feb 14:46
6ee6c4c

Full Changelog: v1.2.1...v1.2.2

v1.2.1

Choose a tag to compare

@sunnylqm sunnylqm released this 01 Feb 09:56
69fd4b2

Full Changelog: v1.2.0...v1.2.1

v1.2.0

Choose a tag to compare

@sunnylqm sunnylqm released this 01 Feb 09:13
3c50501

Full Changelog: v1.0.8...v1.2.0