Skip to content

chore(deps): upgrade to [email protected] #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SethFalco
Copy link
Contributor

@SethFalco SethFalco commented Jun 11, 2024

Reference: N/A

Note: this PR should not be merged yet. SVGO v4 is still a release candidate for now. I just wanted to help with migrating, and to review the migration to SVGO v4 to see if there'd be any regressions downstream that we didn't spot in our testing.

Summary

Migrate to SVGO v4.

  • SVGO is now an ESM module. (Common JS is still supported.)
  • removeViewBox and removeTitle are no longer part of preset-default.
    • we disabled removeViewBox to preserve scalability (can be enabled via SVGO config)
    • we disabled removeTitle to preserve accessibility (can be enabled via SVGO config)
  • Renames removeScriptElement to removeScripts (in v4.0.0-rc.1, we internally rewrite the old name to the new one, so this shouldn't be a breaking change for you, even if users including the plugin themselves in the options)

Changes

In your project, I think this changes virtually nothing, actually. It's just nice to use the recent name for removeScripts to avoid the alias warning.

@SethFalco SethFalco changed the title chore(deps)!: upgrade to [email protected] chore(deps): upgrade to [email protected] Jun 11, 2024
Copy link

codecov bot commented Jun 11, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 45.83%. Comparing base (f666cb4) to head (172060c).
Report is 33 commits behind head on main.

Files with missing lines Patch % Lines
src/ipx.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #231       +/-   ##
===========================================
- Coverage   56.02%   45.83%   -10.20%     
===========================================
  Files          14       13        -1     
  Lines        1203      888      -315     
  Branches       83       83               
===========================================
- Hits          674      407      -267     
+ Misses        526      478       -48     
  Partials        3        3               

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pi0
Copy link
Member

pi0 commented Mar 21, 2025

Hi dear @SethFalco I hope you are doing well. Do you know have any plans for svgo v4?

@SethFalco
Copy link
Contributor Author

I've just been too busy to work on SVGO for the past few months. ^-^'

I need to release the next release candidate by this weekend, and fix a few minor issues that have been reported. There are still plans to do a v4 release, but it was delayed unfortunately as I prioritized paid work.

Sorry to leave you with a stale PR, meanwhile!

@SethFalco
Copy link
Contributor Author

Small update! I've just released SVGO v4.0.0-rc-2. I've rebased this PR and can confirm testing and building the project is fine. 👍

Optimistically, we'll see SVGO v4 released around the end of the month, but it depends on if any problems are discovered. I'll share an update if so. Sorry for the hold up until now, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants