jonkemp / gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.
MIT License
705 stars 93 forks source link

Replace deprecated dependency gulp-util #245

Closed TheDancingCode closed 6 years ago

TheDancingCode commented 6 years ago

gulp-util has been recently deprecated. Continuing to use this dependency may prevent the use of your library with the latest release of Gulp 4 so it is important to replace gulp-util.

The README.md lists alternatives for all the components so a simple replacement should be enough.

Your package is one of the most popular packages still relying on gulp-util, it would be good to publish a fixed version to npm as soon as possible.

See:

demurgos commented 6 years ago

I see that it was fixed recently: https://github.com/jonkemp/gulp-useref/commit/81cb43f40f1265fe68beb6c4a7cc7abad0b655a8

@jonkemp Could you publish the updated version to npm?

jonkemp commented 6 years ago

It’s possible that a plugin using gulp-util isn’t broken if it’s not using the gutil.File API. While not as urgent, the plugin author should still transition away from gulp-util.

Yes, I can publish a new version to npm. It was not urgent however since it was only using gutil.PluginError and should work with Gulp 4 even though Gulp 4 has not been released yet.

jonkemp commented 6 years ago

Done e388dabebbd528ad7aa7b3b8d7e7c840d3b64f00.

demurgos commented 6 years ago

Thank you very much.

Gulp 4 is planned to get a stable release soon that's why we are working on this. It also helps to ensure that the most popular plugins are still actively maintained.