Repository navigation
Closed
Description
Node v10 EOLs on 2021-04-30; here's a list of things we can do when we drop support for Node v10:
fs.promisesspecial handling not needed:&Lines 20 to 27 in 2fca5b2
// Export fs.promises as a getter property so that we don't trigger // ExperimentalWarning before fs.promises is actually accessed. const fs = require('fs') if (Object.getOwnPropertyDescriptor(fs, 'promises')) { Object.defineProperty(module.exports, 'promises', { get () { return fs.promises } }) } Lines 52 to 56 in 2fca5b2
if (key === 'promises') { // fs.promises is a getter property that triggers ExperimentalWarning // Don't re-export it here, the getter is defined in "lib/index.js" return } mkdirscan use nativefs.mkdirwithrecursiveoption everywherenode-fs-extra/lib/mkdirs/make-dir.js
Line 11 in 2fca5b2
const useNativeRecursiveOption = atLeastNode('10.12.0') - No special handling to avoid
bigintusage&node-fs-extra/lib/util/stat.js
Line 8 in 2fca5b2
const nodeSupportsBigInt = atLeastNode('10.5.0') const NODE_VERSION_WITH_BIGINT = '10.5.0'
Activity
JPeer264 commentedon Apr 9, 2021
Also do not forget to update the
enginespackage.jsonnode-fs-extra/package.json
Lines 5 to 7 in c8815e3
If #881 is not yet implemented by this time Node10 got dropped and
.travis,ymlis still in, it should be updated as well (same with appveyor)node-fs-extra/appveyor.yml
Line 5 in c8815e3
node-fs-extra/.travis.yml
Lines 6 to 7 in c8815e3
Remove special handling of fs.promises
BREAKING: Use bigint everywhere
BREAKING: Remove special handling of fs.promises (#890)
BREAKING: Use bigint everywhere (#895)
RyanZim commentedon Apr 30, 2021
Done in #893, #890, #894, & #895.
bump fs-extra types