Skip to content

4.0.0

Latest

Choose a tag to compare

@Alex-D Alex-D released this 22 Oct 17:05
a0fca9d

Upgrade

Migrates to ESM and does not use default export anymore.

- import checkDiskSpace from "check-disk-space";
+ import { checkDiskSpace } from "check-disk-space";
- const checkDiskSpace = require("check-disk-space").default;
+ import { checkDiskSpace } from "check-disk-space";

Breaking

  • Remove support for Node 16 (not tested anymore).

Improved runtime support

  • Support for Bun and Deno is now also tested in CI.

Fixes

  • Supports empty filesystem column in df output — fixes #32
  • Makes getFirstExistingParentPath work on Windows — fixes #33

Quality of life

  • Add more context to NoMatchError — fixes #35

Internal work

  • Migrate to Vite+
  • Rewrite and improve tests with Vitest
  • Remove ESLint in favor of OXLint
  • Improve CI with more tests and latest Node, Bun & Deno versions in addition to older ones

Full Changelog: v3.4.0...4.0.0