Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@onikienko onikienko released this 23 Jan 01:50

2.0.0 (2025-01-23)

Why a major version bump?

  • The minimum Node.js version is v8
  • pack(), unpack() and cmd() functions provide stdout/stderr output printed by 7zip. It's returned as a second argument in the callback function. In case of usage in async way, functions are resolved with this output.
  • If used inside Electron, app.asar in a path to the 7zip binary will be replaced with app.asar.unpacked. This should allow using this package inside Electron apps.

For most users, upgrading to v2 should be smooth without any changes in the code.

Features

  • ability to use the same API in async way (e8a9106), closes #24
  • add types definition index.d.ts (578c33a)
  • return stdout/stderr output printed by 7z (a563837), closes #38
  • support electron (app.assar.unpacked) (3f1c867), closes #98

Documentation

  • more detailed jsdoc comments (ad0df9d)
  • update CHANGELOG.md (60da359)
  • update date in LICENSE (a54ab60)
  • update README.md with new ways to use API (b9bb08e)

Build System and Dependencies

  • add "files" prop to package.json (f1c8cc7)
  • add pack and unpack keywords to package.json (bb57846)
  • dev-deps: ava 6.2.0 (a914f9c)
  • dev-deps: fs-extra v11.3.0 (12c061e)
  • dev-deps: globe v11.0.1 and usage in test.js (8ba8aaf)
  • dev-deps: add @types/fs-extra v11.0.4 (4eba204)
  • use release-it instead of np (4dded46)