Gulp 4 is finally happening 🎉 and gulp-util has been deprecated 😳. There are a lot of packages using it.
The Problem with gulp-util explains the move and provides this very helpful “rosetta stone” for guiding migrations:
gutil.File=> https://www.npmjs.com/package/vinylgutil.replaceExtension=> The.extnameproperty on Vinyl objects or https://www.npmjs.com/package/replace-extgutil.colors=> https://www.npmjs.com/package/ansi-colorsgutil.date=> https://www.npmjs.com/package/date-formatgutil.log=> https://www.npmjs.com/package/fancy-loggutil.template=> https://www.npmjs.com/package/lodash.templategutil.env=> https://www.npmjs.com/package/minimistgutil.beep=> https://www.npmjs.com/package/beepergutil.noop=> https://www.npmjs.com/package/through2gutil.isStream=> Use the.isStream()method on Vinyl objectsgutil.isBuffer=> Use the.isBuffer()method on Vinyl objectsgutil.isNull=> Use the.isNull()method on Vinyl objectsgutil.linefeed=> Use the string'\n'in your codegutil.combine=> https://www.npmjs.com/package/multipipegutil.buffer=> https://www.npmjs.com/package/list-streamgutil.PluginError=> https://www.npmjs.com/package/plugin-error
Thankfully I’ve only been using it for logging and coloring terminal output — easy fixes.
I’ll be sticking with Chalk over ansi-colors for now. While saving a character (ansi vs chalk) is appealing, I’m not interested in supporting old version of node.js, so the reasoning behind gulp-cli#125 doesn’t apply.