Open dkrnl opened 6 months ago
PRs for this dependency update are welcome, I don't have time myself the coming weeks but depending on the size of the changes I might be able to review a PR β€οΈ
Looking at the release notes of svgo@3.3.2, it sounds like a v4 release is imminent. Since either v3 or v4 will likely result in a new major release of this plugin as well, I think it makes sense to wait until SVGO v4 is released. There's also a Release Candidate available already so I'd expect this to be available soonβ’
Hum, sorry to bother, but I just want to highlight the fact that using svgo@2
and svgo@3
with shared custom configuration between svg-spritemap-webpack-plugin
and ImageMinimizerWebpackPlugin
can lead to an incompatible state, especially when trying to deal with renamed options, like this one that was renamed in v3: https://svgo.dev/docs/plugins/cleanupIds/.
Waiting for v3/v4 update as well π―
Hello @cascornelissen π
Looks a Release Candidate has been recently publish on Github: https://github.com/svg/svgo/releases/tag/v4.0.0-rc.1
Do you have some time to have a look at this? Thanks!
Thanks for the heads-up, I'm keeping an eye on it until there's a stable release. In the meantime, anyone is free to create a (WIP) PR to get the work started β€οΈ
@cascornelissen π
I have started working on this locally, but facing failing tests with the current master
branch and NodeJS 20: is it normal that tests are failing or not currently? Thanks!
@xavierfoucrier, nice that you want to take a look! Just pulled the latest commits from master
myself, ran npm clean-install
and npm test
and all tests pass as expected. Running Node.js 22.6.0 at the moment but I can't imagine they'd fail on v20 π€
Thanks @cascornelissen for your feedback on this, I have planned to continue tomorrow on that, will let you know π
@cascornelissen another try on my side:
npm ci
npm test
@xavierfoucrier, could it be that you ran npm install
at some point and you have changes to the lockfile on your end? What is the output of npm ls webpack
? All tests pass on my end with webpack@5.73.0
.
@cascornelissen on my side:
rm -rf node_modules
npm ci
npm test
And at this point, here is the return of npm ls webpack
:
I have tested to downgrade to
webpack@5.73.0
but it's clearly the same. I am working with Windows 11 Pro 64 bits.
Additional informations:
Description This
SVGO@2
is no longer supported.