From a9d27dfe25422cdc97c02e9742c94a3a76ea9dbb Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Sat, 11 Oct 2025 18:39:01 +0100 Subject: [PATCH] docs: write v2 to v3 migration guide (#2177) --- .../01-migration-from-v3-to-v4.mdx | 44 ++--- .../02-migration-from-v2-to-v3.mdx | 150 ++++++++++++++++++ rollup.config.js | 3 + 3 files changed, 175 insertions(+), 22 deletions(-) create mode 100644 docs/06-migrations/02-migration-from-v2-to-v3.mdx diff --git a/docs/06-migrations/01-migration-from-v3-to-v4.mdx b/docs/06-migrations/01-migration-from-v3-to-v4.mdx index da3024e3..4107c58e 100644 --- a/docs/06-migrations/01-migration-from-v3-to-v4.mdx +++ b/docs/06-migrations/01-migration-from-v3-to-v4.mdx @@ -2,21 +2,20 @@ title: Migration from v3 to v4 --- -This is a summary of the changes necessary to migrate from SVGO v3 to SVGO v4. If you want more details or have any questions, please refer to our [release notes for SVGO v4.0.0](https://github.com/svg/svgo/releases/tag/v4.0.0) or related pull requests. You're also encouraged to leave comments in pull requests if the existing content doesn't already answer your question. +This is a summary of the changes necessary to migrate from SVGO v3 to SVGO v4. If you want more details or have any questions, please refer to our [release notes for SVGO v4.0.0](https://github.com/svg/svgo/releases/tag/v4.0.0) or related pull requests. You're encouraged to leave comments in pull requests if the existing content doesn't answer your question. ## Version Requirements -SVGO now requires [Node.js >=16.0.0](https://nodejs.org/en/blog/release/v16.0.0). +SVGO now requires [Node.js >=16.0.0](https://nodejs.org/blog/release/v16.0.0). ## Default Behavior -The following changes have been made to default plugins, also known as [preset-default](/docs/preset-default/). +The following changes have been made to default plugins, also known as [preset-default](/docs/preset-default/): -- **[removeViewBox](/docs/plugins/removeViewBox/)** is no longer a default plugin, to preserve scalability. -- **[removeTitle](/docs/plugins/removeTitle)** is no longer a default plugin, to preserve accessibility. -- **removeScriptElement** has been renamed to **[removeScripts](/docs/plugins/removeScripts)**, as it not only removes the `