Releases: sindresorhus/path-type
Releases · sindresorhus/path-type
v6.0.0
v5.0.0
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 ofconst {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.
- This means you need to use