1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Commit Graph

266 Commits

Author SHA1 Message Date
Seth Falco
747cc722d9 chore: revamp how we export types (#2118) 2025-05-04 17:39:44 +01:00
Seth Falco
49954bc0d9 chores: various clean ups regardin ESM and TypeScript (#2117) 2025-05-03 09:42:29 +01:00
Seth Falco
a8a53dbd90 chore: apply more eslint rules (#2116) 2025-05-02 10:00:37 +01:00
Seth Falco
0ff7f24092 deps: upgrade rollup and @rollup/plugin-commonjs (#2110) 2025-04-29 11:07:00 +01:00
Seth Falco
df87725b19 chore: improve jsdoc types and match most files (#2108) 2025-04-29 10:35:11 +01:00
Seth Falco
71a1254895 fix: improve jsdoc types and remove excludes (#2107) 2025-04-28 22:24:16 +01:00
Seth Falco
d06fffbb2d chore: upgrade yarn to v3.8.7 (#2098) 2025-04-11 23:13:03 +01:00
Seth Falco
e065d1000e deps: upgrade pixelmatch for performance improvements (#2102) 2025-04-11 16:22:50 +01:00
Seth Falco
e9c3be7a27 test: use latest version of svgo-test-suite (#2100) 2025-04-11 13:12:32 +01:00
nuintun
bf97a1f9a9 deps: upgrade css-tree and picocolors (#2083) 2024-12-21 23:46:09 +00:00
XhmikosR
ce4ca1cabc chore: enable more coverage reporters (#2024) 2024-06-14 13:31:07 +01:00
Seth Falco
65d0a52ab3 fix: add alias of removeScriptElement to removeScripts (#2033) 2024-06-11 23:09:04 +01:00
XhmikosR
1bb5bbe39e chore!: Update commander to v11 (#2004) 2024-06-07 20:23:59 +01:00
XhmikosR
964c7b28ff chore!: drop Node.js < 16 support (#2002) 2024-06-07 18:21:00 +01:00
Seth Falco
35d3fb6ee8 chore: export default and named packages (#2022) 2024-06-07 18:08:05 +01:00
Seth Falco
f604c6979e chore: migrate to upstream sax (#2017) 2024-05-28 08:39:38 +01:00
Seth Falco
78403d3dc9 feat: export version constant (#2016) 2024-05-27 20:28:13 +01:00
XhmikosR
4daaa4251f chore: update ESLint to v9 and switch to flat config (#2001) 2024-05-26 13:22:23 +01:00
XhmikosR
83bfee4768 chore(tests): switch to native fetch (#2003) 2024-05-26 00:11:00 +01:00
Seth Falco
83a94e9475 chore: minor wording in package.json and docs (#2013) 2024-05-24 20:33:31 +01:00
XhmikosR
9a1c7496a5 chore: update yarn to v3.8.2 (#1989) 2024-05-14 20:07:03 +01:00
XhmikosR
38458c2cf0 chore: ignore .yarn folder from prettier (#1992) 2024-05-14 19:39:16 +01:00
XhmikosR
3c155ccfec chore: add cross-env and rimraf so that tests work everywhere (#1988) 2024-05-14 19:28:39 +01:00
XhmikosR
2bbaba4f0a chore: update devDependencies (#1987) 2024-05-14 19:01:09 +01:00
XhmikosR
506c08aa98 chore: remove del devDependency (#1986) 2024-05-09 10:20:36 +01:00
Seth Falco
73fe46b1f4 chore: increment version to 3.3.1 (#1995) 2024-05-09 00:21:42 +01:00
nuintun
3964d64c65 fix: v3.3.0 Common JS missing loadConfig and optimize exports (#1984) 2024-05-09 00:15:06 +01:00
Jon Dufresne
4bb3d8844f chore: Upgrade @types/css-tree to remove @ts-ignore comment (#1934) 2024-01-08 22:50:25 +00:00
Jon Dufresne
2442f74239 chore: convert project to us ECMAScript modules (preserving CJS compatibility) (#1905) 2024-01-03 16:17:37 +00:00
Seth Falco
252b28c4bf chore: increment version to 3.2.0 (#1919) 2024-01-01 23:58:44 +00:00
Seth Falco
967d2f1e14 deps: update css-tree and clean ts-ignores (#1911) 2023-12-27 13:51:50 +00:00
Jon Dufresne
4768af63e4 chore: Update @types/csso and correct types (#1910) 2023-12-27 13:09:56 +00:00
mozzie
90406f7967 refactor(mergePaths): improve performance on large files (#1764) 2023-12-26 00:53:44 +00:00
Seth Falco
2c408ce56f refactor: improve regression testing (#1898) 2023-12-23 06:56:46 +00:00
Seth Falco
22533f1ffe chore: update prettier and eslint (#1885) 2023-12-15 13:10:21 +00:00
Jon Dufresne
40544220e8 chore: tidy up eslint config and usage (#1883) 2023-12-15 12:32:20 +00:00
Jon Dufresne
aa470c7952 chore: apply prettier to all supported file types (#1870) 2023-12-15 12:30:44 +00:00
Seth Falco
d17b001cbd chore: increment version (#1884) 2023-12-11 00:43:57 +00:00
Seth Falco
e22d533be8 fix(removeHiddenElems): remove hidden definitions usage (#1852) 2023-11-26 20:55:35 +00:00
Bogdan Chadkin
9fca7be551 feat(removeXlink): new plugin to map xlink attrs to svg 2 2023-11-18 16:29:20 +00:00
Seth Falco
b740c07695 fix(inlineStyles): dont remove wrapper class if traversed (#1832) 2023-11-13 14:53:30 +00:00
Seth Falco
96fedb4855 chore: change link to homepage in package.json (#1824)
Change the link of the homepage from this Git repository (which is
already documented in `bugs` and `repository` to a link to the
documentation.
2023-11-08 16:00:36 +00:00
Seth Falco
5aad38bcc7 fix(inlineStyles): empty css block created empty attribute (#1823)
When running this plugin on an SVG with an empty block in the CSS, it
would apply it to the matched elements by adding an empty `style`
attribute. See the test for an example.

This resolves that by just dropping the declaration if it's empty.
2023-11-07 23:20:48 +00:00
Seth Falco
6eac770ba5 feat: convert one stop gradients plugin (#1790)
Detects if a redundant linearGradient or radialGradient is used with
only a single stop, which effectively means a solid color.

If this is found, just remove the gradient and replace references to it
with the color of the first and only stop defined.
2023-10-22 13:53:39 +01:00
Seth Falco
027e110f9d chore: increment patch version (#1804) 2023-09-27 17:45:32 +01:00
Seth Falco
42f7752db1 fix(cleanupIds): handle when 2 ids referenced in one attr (#1795) 2023-09-25 19:04:31 +01:00
Seth Falco
82593c6134 test: update jest (#1792) 2023-09-24 17:50:38 +01:00
Seth Falco
59ab80eed2 test: fix regression testing action (#1788)
The regression-test GitHub Action was failing for all pull requests due
to not handling the gzipped archive properly.

This resolved it by piping the response body to zlib#createGunzip
first. Also updates the relevant dependencies.

Signed-off-by: Seth Falco <seth@falco.fun>
Co-authored-by: strarsis <strarsis@gmail.com>
Co-authored-by: Bogdan Chadkin <trysound@yandex.ru>
2023-09-23 07:47:30 +01:00
Bogdan Chadkin
ae32acf514 3.0.2 2022-11-18 19:46:18 +03:00
Bogdan Chadkin
2f8adced74 Upgrade css-tree types 2022-11-18 12:00:54 +03:00