Description
I was very surprised to encounter a bug report on gulp.spritesmith
not working with Gulp 5.0.0 today.
After some sleuthing, we found it was tied to both src()
and dest()
assuming a default encoding
of utf8
instead of none
I was quite shocked to find the source of this idea was from 2014 (10 years ago)
and there's nothing in the discussions about implications for how Gulp is being used currently, and what would break downstream as a result
I appreciate the sentiment, assuming that Gulp is prob for text-based files, but that's simply not the only case and far from the default now
This decision broke for gulp.spritesmith
both in the standalone image stream case, as well as common dest
stream which outputs both a CSS spritesheet as well as the corresponding image
I've seen lots of other image based libraries have similar issues
Adoption for Gulp@5 seems quite low compared to Gulp@4 (200K downloads in past week vs 3.4M), so I encourage reconsidering reverting the default encoding, to avoid upending more downstream maintainers by surprise (or worse, getting more broken unmaintained libraries)