1
0
mirror of https://github.com/svg/svgo.git synced 2025-04-19 10:22:15 +03:00

1547 Commits

Author SHA1 Message Date
Lucas Larson
10c4287051
docs: fix dead link in convertTransform.mdx (#2092) (#2106) 2025-04-18 10:15:29 +01:00
Seth Falco
dba60b3580
chore: migrate from ts-ignore to ts-expect-error (#2103) 2025-04-12 19:41:49 +01:00
Seth Falco
9c8768f64d
ci: add spellcheck (#2101) 2025-04-12 16:47:32 +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
LordArugula
55ae463649
Update links in _transforms.js (#2092)
docs: fixed dead link in doc comments
2025-04-11 08:14:15 +01:00
Nathan Baulch
0eccff2794
chore: fix various typos across the project 2025-03-22 11:49:01 +00:00
Seth Falco
f3495ff6c9
fix(removeEmptyContainers): skip if filter is applied via styles as well (#2089)
Fixes a bug where we were too eager to remove empty containers.

We already had logic to skip removing empty containers if it had the
filter attribute, which is needed to apply a filter to the whole area.
However, the filter can also be defined through CSS. We did not
properly handle this case, and treated the node as if it had no filter
at all.

This computes the styles and checks the stylesheet as well. (We also
move the logic down to avoid computing the styles eagerly.)
2024-12-22 16:01:22 +00:00
nuintun
bf97a1f9a9
deps: upgrade css-tree and picocolors (#2083) 2024-12-21 23:46:09 +00:00
ntnyq
c372b36296
feat: export type CustomPlugin and PluginConfig (#2081) 2024-10-21 17:57:17 +01:00
João Palmeiro
a8472bc45f
chore: export the Output type (#2076) 2024-10-02 21:39:45 +01:00
Seth Falco
ab7f518a75
chore: add npm registry server to yarnrc (#2072) 2024-09-07 21:10:17 +01:00
Seth Falco
97d7d00add
add: centralize exports to svgo (#2071) v4.0.0-rc.1 2024-09-07 19:26:05 +01:00
Simon Arnell
50fc3c9de5
Updated recursive usage example (#2070)
Fixes #2069
2024-09-04 20:27:49 +01:00
Seth Falco
9078e8ca08
refactor(cleanupNumbericValues): improve how viewbox is split (#2046) 2024-07-02 10:07:57 +01:00
Seth Falco
a59f47b98c
chore(removeScripts): remove redundant regex pattern (#2045) 2024-07-02 09:38:35 +01:00
Seth Falco
b8f8d1c655
refactor: dont covert to charcode in iswhitespace (#2039) 2024-06-16 13:02:53 +01:00
Seth Falco
abb23bf123
docs: add usage section (#2038) 2024-06-16 00:10:42 +01:00
Seth Falco
1348383caa
chore(addAttributesToSVGElement): fix typoes in docs (#2037) 2024-06-14 21:44:45 +01:00
XhmikosR
ce4ca1cabc
chore: enable more coverage reporters (#2024) 2024-06-14 13:31:07 +01:00
Vlad Tansky
fea26379d2
fix: support -o-keyframes and -moz-keyframes (#2019) 2024-06-14 13:30:18 +01:00
Seth Falco
5481fc2477
fix: don't insert 0 at start or end of attribute if whitespace (#2036) 2024-06-14 12:48:56 +01:00
Antonio Salvati
e73d13a1a5
fix: convertColors plugin ignore currentColor in 'mask' elements (#2032) 2024-06-14 10:43:30 +01:00
Seth Falco
8d777dd3c9
chore: use concrete types for generics (#2034) 2024-06-13 16:18:19 +01:00
Seth Falco
65d0a52ab3
fix: add alias of removeScriptElement to removeScripts (#2033) 2024-06-11 23:09:04 +01:00
XhmikosR
7593b325f6
chore(ci): add Node.js 22 (#2026) 2024-06-10 15:59:08 +01:00
Seth Falco
a21dae62a1
chore: freeze plugin arrays (#2028) 2024-06-09 18:55:34 +01:00
nuintun
1a025dac88
fix: fixed Config definition for node (#1997) v4.0.0-rc.0 2024-06-09 16:19:57 +01:00
Seth Falco
0c13740fdd
feat: expose builtin plugins (#2027) 2024-06-09 12:28:37 +01:00
XhmikosR
1bb5bbe39e
chore!: Update commander to v11 (#2004) 2024-06-07 20:23:59 +01:00
Seth Falco
32edd7bcd6
chores: amend version strings (#2023) 2024-06-07 18:53:07 +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
1e23f66e76
chore: rename removescriptelement to removescripts (#2021) 2024-06-07 09:58:21 +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
Kendell R
a761a01038
fix(convertColors): accept commaless rgb (#2015) 2024-05-26 22:08:37 +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
ceb2178935
test: expand and optimize regression testing (#1918) 2024-05-25 23:44:26 +01:00
Seth Falco
c86536ed70
chore: disable removeTitle from default plugins (#2014) 2024-05-24 21:14:48 +01:00
John Albin Wilkins
3d2a6247e0
Remove the removeViewBox plugin from the default plugins list (#1461) 2024-05-24 20:49:24 +01:00
Seth Falco
83a94e9475
chore: minor wording in package.json and docs (#2013) 2024-05-24 20:33:31 +01:00
Gifford Nowland
c250920fd0
docs: fix transposition of preset-default (#2012) 2024-05-20 17:28:23 +01:00
Seth Falco
bec0cb487e
docs: minor restructure and rewording (#2011) 2024-05-18 09:46:13 +01:00
Seth Falco
07b3dc0f07
docs: add section on reproducible ids for prefix ids (#2010) 2024-05-18 01:10:02 +01:00
Seth Falco
9fdbb4d11c
chore: use markdown in frontmatter (#2009) 2024-05-17 12:13:30 +01:00
Seth Falco
3bcdc37cb7
docs: use plugin names and refactor (#2007) 2024-05-15 20:37:26 +01:00
XhmikosR
9a1c7496a5
chore: update yarn to v3.8.2 (#1989) 2024-05-14 20:07:03 +01:00