You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's unreleased so far, but it's in the 10.9.0 release proposal: nodejs/node#22295.
There is currently an open debate on how to determine in code whether the recursive flag is supported in the running Node version: nodejs/node#22302.
When this feature lands, I'd like to use it for ensureDir in environments that support it. Long-term, we may consider deprecating/removing mkdirp/mkdirs/ensureDir when all supported Node versions support it (separate discussion for another day).
I'm inclined to fork https://github.com/sindresorhus/make-dir into this project to use as the implementation here. It uses the native solution where possible, and the fallback solution fixes #524. The one sticker is that it depends on semver to determine if the current node version supports the recursive flag. I guess I'll have to hack some simpler version sniffing to avoid adding that dep.
Activity
RyanZim commentedon Aug 15, 2018
This was pushed back, and will not be going into Node 10.9.0: nodejs/node#22295 (comment)
RyanZim commentedon Sep 24, 2018
Unblocked as of nodejs/node#21875 (comment); should land in a future v10.x release.
RyanZim commentedon May 14, 2019
This was released in Node v10.12.0; perhaps we should revisit this?
RyanZim commentedon Jan 24, 2020
Just dropping this here for future reference: https://github.com/isaacs/node-mkdirp#choosing-a-recursive-mkdir-implementation
RyanZim commentedon Jan 30, 2020
I'm inclined to fork https://github.com/sindresorhus/make-dir into this project to use as the implementation here. It uses the native solution where possible, and the fallback solution fixes #524. The one sticker is that it depends on
semverto determine if the current node version supports therecursiveflag. I guess I'll have to hack some simpler version sniffing to avoid adding that dep.BREAKING: Use internal fork of make-dir for mkdirs implementation
BREAKING: Use internal fork of make-dir for mkdirs implementation
BREAKING: Use internal fork of make-dir for mkdirs implementation
BREAKING: Use internal fork of make-dir for mkdirs implementation (#756)