Seth Falco
eabc29d159
fix: types for loadConfig and add more tests ( #2123 )
2025-05-06 08:05:09 +01:00
ntnyq
52c09479e9
fix: fix loadConfig types ( #2122 )
2025-05-06 07:13:05 +01:00
Seth Falco
60cbbcce9b
chore: omit unneccesary slugs in docs ( #2121 )
2025-05-05 19:38:05 +01:00
Seth Falco
966f124118
docs: minor revision to wording of migration ( #2120 )
2025-05-05 17:43:50 +01:00
Seth Falco
75dc22b4fb
docs: add migration guide for svgo v4 ( #2119 )
2025-05-05 17:27:55 +01:00
Seth Falco
747cc722d9
chore: revamp how we export types ( #2118 )
v4.0.0-rc.2
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
97079fb57e
chore: refactor stringifier.js ( #2115 )
2025-05-01 23:24:24 +01:00
Seth Falco
8c593fab06
chore: bulk update all jsdoc and jsdoctypes ( #2114 )
2025-05-01 22:16:52 +01:00
Seth Falco
9eb3af59f2
chore: drop parentNode property ( #2113 )
2025-05-01 15:59:23 +01:00
Seth Falco
1b4919a0d4
chore: stronger typing for xast/css-select code ( #2112 )
2025-04-30 14:41:07 +01:00
Seth Falco
4573d0178e
chore: migrate plugin types to plugin ( #2111 )
2025-04-30 02:16:53 +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
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