# Changelog

## 0.8.0

- Recover files from multiple renamed, truncated or edited copies. Combine `--resync` and repeatable `--search` paths to find intact slices at arbitrary offsets. The plan reports how many missing positions the fragments supply.
- Use `RecoverySet::plan_with_fragments` and the optional `candidates` argument to `repair_stream` with random-access stores. Reuse identical content across members, including short final slices.
- Verify index-only and single-parity recovery with both MoonPar2 and par2cmdline as writers and readers. The large-file test distributes distinct slices between two partial copies and checks the restored file and both inputs by SHA-256.

## 0.7.0

- Recover intact slices from new byte offsets within a damaged file. Use `plan --resync` to count the remaining missing slices and `repair --resync` to rebuild the original contents.
- Enable the same search for a random-access store with `resync=true` on `verify_stream` and `repair_stream`. The scanner checks both IFSC hashes and handles short final slices and repeated contents.
- Compare insertion, deletion and same-length edits across MoonPar2 and par2cmdline in both directions, including index-only recovery and an edited large file under a bounded Node heap.

## 0.6.0

- Find intact renamed or moved files with repeatable `--search FILE_OR_DIR` arguments to `plan` and `repair`. Restore their original paths and reserve recovery blocks for the remaining damage.
- Use `RecoverySet::find_replacements` with a random-access store. It filters candidates by length and prefix MD5, then verifies the full contents in bounded reads.
- Test swapped filenames with an index alone, a changed candidate during repair, and mixed damage on archives written and repaired by both MoonPar2 and par2cmdline.

## 0.5.0

- Build and test the library and CLI with the MoonBit 1.0 RC1 compiler.
- Use `plan` or `RecoverySet::plan_repair` to assess whether available recovery equations cover the missing slices before writing output. Check-only file damage is reported separately.

## 0.4.0

- Split output into an index and self-contained recovery volumes with `--volume-blocks`; each recovery volume carries repeated metadata.
- Discover sibling volumes from an index or any recovery volume, with `--no-discovery` for explicit input selection.
- Add `split_volume` to preserve packets and recovery exponents while regrouping existing complete volumes.
- Stage all split outputs before exclusive publication; preserve existing files and roll back owned outputs after a write failure.
- Verify missing-index recovery, damaged-volume recovery and bidirectional multi-volume interoperability with par2cmdline.
- Accept the documented 16 MiB slice size in numeric CLI options and reject overflowing integers.

## 0.3.0

- Unicode paths, UTF-16LE Unicode Filename packets and UTF-8 FileDesc interoperability.
- Streaming create, verify and repair callbacks with UInt64 sizes and offsets; Node CLI uses bounded-memory file access by default.
- Incremental MD5, in-place residual decoding and verified staging before output publication.
- Chinese/Japanese/emoji recovery tested in both directions with par2cmdline and MultiPar.
- MultiPar verifies non-recovery metadata and repairs recovery members; the par2cmdline 1.4.0 defect is documented separately.
- Large-file acceptance under a 256 MiB Node heap, interrupted-write cleanup and exact output hashes.

## 0.2.0

- Recursive directory input and nested recovery output, explicit data roots, empty files and check-only members.
- Bytewise packet resynchronization with damaged-packet diagnostics; repeated critical metadata in newly created volumes.
- Creator inspection and failure context, safe relative paths, ancestor symlink/junction rejection and output collision protection.
- 256 MiB source budget, 4096 files and 32768 source slices; repair avoids a second file-sized output copy.
- Independent packet byte comparison, directory/damaged-volume repairs in both tools, hostile archive paths, full capacity and file-count boundaries.
- Published core conformance matrix and executable walkthrough; known non-recovery-list reference-tool limitation reported separately.

## 0.1.0

- Initial MoonBit PAR2 library and Node CLI with create, verify and non-overwriting repair.
- 64 MiB flat file sets and bidirectional par2cmdline tests on Windows and Ubuntu.
