Skip to content

Releases

MoonPar2 0.6.0

Choose a tag to compare

@xmyd0915 xmyd0915 released this 29 Nov 01:37

MoonPar2 can now find complete copies of renamed or moved files and restore them under the paths recorded in the PAR2 set. Pass a file or directory to --search. Repeat the option to check more locations.

node moonpar2-0.6.0.cjs plan --search ../photos backup.par2
node moonpar2-0.6.0.cjs repair --search ../photos restored backup.par2
node moonpar2-0.6.0.cjs verify --base-dir restored backup.par2

The planner counts only slices still missing after matching. In the interoperability example, a renamed photo accounts for 64 slices and a damaged note for one. Finding the photo leaves one slice to reconstruct. MoonPar2 and par2cmdline each recover the original SHA-256 digests from sets written by either tool. An index alone also suffices when all files have complete copies. Reproducible tests

Library users can install moon add xmyd0915/moonpar2@0.6.0 and pass their own random-access reader to RecoverySet::find_replacements. The standalone CLI runs with Node.js 24 and includes the project and standard-library license notices. Library integration

The Ubuntu and Windows builds include the renamed-file cases, existing damaged-volume tests and cross-tool recovery. CI run

On Windows the CLI restored a moved 4,294,967,297-byte file from a par2cmdline index and its intact copy, with zero recovery blocks. Its full SHA-256 matched the original. Peak RSS was 121.0 MiB for planning and 122.7 MiB for repair under a 256 MiB Node heap limit. relocated-4gib-windows.json contains the measurements.

MoonPar2 0.5.0

Choose a tag to compare

@xmyd0915 xmyd0915 released this 27 Nov 08:42

MoonPar2 0.5.0 adds a read-only repair assessment for damaged file sets. Run node moonpar2-0.5.0.cjs plan backup.par2 to see the missing slice count and the number of independent equations available for those positions. Add a recovery volume and run the command again to check whether the set has enough recovery data. The MoonBit API exposes the same assessment through RecoverySet::plan_repair.

The library, CLI, examples and tests build with moonc v1.0.0-rc1+3c0520448. The standalone CLI includes MoonPar2's MIT license and the standard library's Apache 2.0 license and NOTICE. It runs with Node.js 24. Install the library with moon add xmyd0915/moonpar2@0.5.0.

The Windows and Ubuntu CI run records the actual compiler, JS and Wasm GC tests, read-only planning scenarios, split-volume recovery, large-file recovery and independent PAR2 interoperability. For the input files, command output and expected recovery result, see the executable walkthrough.

MoonPar2 0.4.0

Choose a tag to compare

@xmyd0915 xmyd0915 released this 10 Nov 08:41

MoonPar2 0.4.0 completes the split-volume workflow for directory recovery.

  • create --volume-blocks N writes an index and recovery volumes. Every recovery volume carries repeated metadata and can be read without the index.
  • Read an index or any recovery volume to discover the matching family. --no-discovery restricts input to explicitly listed files; repeated path aliases are deduplicated.
  • New split_volume library API preserves packet content and recovery exponents, including Unicode metadata and unknown packets.
  • Stage all split outputs before exclusive publication. Existing files are preserved; caught publication errors roll back files created by the current operation, including partially written fallback outputs.
  • Fix CLI numeric parsing for 16 MiB slice widths and overflowing integers. Reserve recovery-volume names to avoid ambiguous index discovery.

Final Windows and Ubuntu CI validates commit 64310ac0b26d33cf06b3b42b32c9857841dd6097: 30 core tests on each JS/Wasm GC backend, 16 split-volume cases, 26 directory/damaged-volume cases, Unicode interoperability with par2cmdline and MultiPar, and 1 GiB + 1 byte streaming recovery on both operating systems. The known par2cmdline non-recovery-list crash is recorded separately; MultiPar provides the passing independent check for that feature.

Install: moon add xmyd0915/moonpar2@0.4.0.

Download moonpar2-0.4.0.cjs and use Node.js 24 for the standalone CLI. See the volume guide and coverage matrix. Assets include the CLI, source ZIP, split-volume acceptance results and checksums.

MoonPar2 0.3.0

Choose a tag to compare

@xmyd0915 xmyd0915 released this 10 Nov 08:19

MoonPar2 0.3.0 adds streaming file recovery and Unicode directory interoperability.

  • Create, verify and repair through UInt64 random-access callbacks; the Node CLI uses streaming by default.
  • Unicode names, UTF-16LE Unicode Filename packets and UTF-8 FileDesc compatibility, tested bidirectionally with par2cmdline 1.4.0 and the MultiPar 1.3.3.6 package.
  • MultiPar independently validates non-recovery members and repairs recoverable files in the same set.
  • Compact stored recovery payloads, in-place decoding, incremental MD5, verified output staging and interrupted-write cleanup.
  • Runnable storage callback example and updated PAR2 coverage matrix.

Validation on commit 7cb55b45175e80e824fc433a848516be433d28b8:

  • Windows and Ubuntu CI passed, including 24 core tests on each JS/Wasm GC backend, 26 conformance cases, Unicode interoperability, 256 MiB archive recovery and 1 GiB + 1 byte streaming recovery on both operating systems.
  • An actual 4 GiB + 1 byte file passed create, verify and repair on Windows under a 256 MiB Node heap limit. Peak repair RSS was 358.3 MiB. Both MoonPar2 and par2cmdline independently restored the original SHA-256 after corruption beyond the 4 GiB offset. Raw measurements are attached.
  • par2cmdline 1.4.0's non-recovery-list crash remains explicitly recorded as a reference-tool limitation; MultiPar supplies the successful independent validation for that feature.

Install the library with moon add xmyd0915/moonpar2@0.3.0. For the standalone CLI, download moonpar2-0.3.0.cjs and run node moonpar2-0.3.0.cjs --help with Node.js 24.

The tested 4 GiB file size is distinct from the 512 GiB streaming address budget. See CONFORMANCE.md for dimensions and optional extensions, and STREAMING.md for callback contracts.

Assets include the standalone CLI, source archive, large-file measurements and SHA-256 checksums.

MoonPar2 0.2.0

Choose a tag to compare

@xmyd0915 xmyd0915 released this 10 Nov 07:32

Recover directory trees even when parts of the PAR2 volume are damaged. Includes empty-file support, explicit data roots, packet resynchronization, safe paths and Creator diagnostics.

Validated limits: 256 MiB, 4096 files, 32768 source slices. Independent tests compare core packet bytes with par2cmdline and exercise both directions of directory and damaged-volume recovery.

See conformance matrix for supported core semantics, resource bounds and the separately reported reference-tool limitation with check-only files. Windows and Ubuntu CI passed.

The attached .cjs CLI requires Node.js 24. Run it with --help. The source ZIP includes an executable walkthrough and verification scripts.