Skip to content

Releases: sindresorhus/path-type

v6.0.0

26 Jul 10:54
Compare
Choose a tag to compare

Breaking

v5.0.0...v6.0.0

v5.0.0

27 Jan 12:53
Compare
Choose a tag to compare

Breaking

  • Require Node.js 12 (#8) 24e52d3
  • This package is now pure ESM
    • This means you need to use import {isFile} from 'path-type' instead of const {isFile} = require('path-type').
    • I would recommend moving to ESM. ESM can still import CommonJS packages, but CommonJS cannot import ESM packages synchronously.
    • If you cannot move to ESM yet, don't upgrade to this version.

v4.0.0...v5.0.0

v4.0.0

12 Mar 09:27
Compare
Choose a tag to compare

Breaking:

  • Rename exported methods. They now have an is prefix: .file => .isFile. (#5) f6de669
  • Require Node.js 8 (#4) 7b3755c

Enhancements:

v3.0.0...v4.0.0