Check Disk Space Versions Save

Light multi-platform disk space checker without third-party for Node.js

v3.4.0

11 months ago

Now fully asynchronous!

From now on, calls to check-disk-space will no longer freeze your app. All exec calls are done asynchronously 🔥

Breaking

Now requires at least Node.js 16+ due to dev dependencies updates for security reasons.

You can keep using 3.3.1 on lower Node.js versions.

— @Alex-D 17a539e

Evolutions

  • All sync calls are now async, making the whole lib non-blocking — @Alex-D e66917a befabdf

Fixes

  • Strip empty lines from command output to prevent NaN issues — @Alex-D e7247ef #23
  • Types are now explicitly exported — @estyrke #25
  • Explicit process import to avoid issues with some bundlers — @nathantouze @Alex-D #27 a73e7d1

v3.3.1

1 year ago

Fallback to wmic when Powershell is not available

Fixes

  • Fallback to wmic to prevent crashes when Powershell is not available — #21

v3.3.0

2 years ago

Restore support for Windows 7 and older

Fixes

  • Restore wmic usage on Windows versions that do not have PowerShell 3, which is needed to call the Get-CimInstance cmdlet, but only available as the default PowerShell version since Windows 8. — e616ad0f4e40f9389ab125e4dc742b15cc9fe8cc #17

v3.2.0

2 years ago

Use PowerShell instead of wmic on Windows

Evolution

  • Works without wmic which is now deprecated and dropped in the latest Windows 11 releases.

v3.1.0

2 years ago

Fix import/require

Fixes

  • Can now be used via import and require as expected. — #14

v3.0.1

2 years ago

TypeScript rewrite

The package is now entirely written in TypeScript, allowing the generation of .d.ts file.

Breaking changes

  • Drop Node.js 8 and 10 support, please migrate to Node.js 12+

Fixes

  • Prevent security issue due to exec usage — #6 #9
  • Prevent issue with drive letter case on Windows — #10

2.1.0

4 years ago

Add TypeScript typing definitions

2.0.0

4 years ago

Breaking change

Now requires at least Node.js 8+ due to dev deps updates for security reasons.

You can keep using 1.x on lower Node.js version.