Releases: reactnativecn/node-hdiffpatch
Releases · reactnativecn/node-hdiffpatch
Release list
v1.3.0
New APIs
diffWithCovers(old, new, covers, options)— create standard hdiffpatch payloads from caller-provided cover lines, withreplace/merge/native-coalescemodes and optionaldebugCoversintrospectionpatchSingleStream(oldPath, diffPath, outNewPath[, cb])— file-level apply for single-compressed diffs produced bydiff()/diffWithCovers()
CLI
hdp patchnow auto-detects the diff format by header magic (HDIFF13/HDIFFSF20), so it can apply bothhdp diffoutput anddiff()/diffWithCovers()output
Platforms & packaging
- New prebuilds:
darwin-x64andwin32-x64(in addition todarwin-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
installscript was removed (the published package ships no sources);engines.node >= 14.17declared - 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