Skip to content

Commit f2e8e38

Browse files
committed
chore(deps): upgrade to [email protected]
1 parent 88a74eb commit f2e8e38

File tree

3 files changed

+42
-25
lines changed

3 files changed

+42
-25
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"ofetch": "^1.3.4",
5050
"pathe": "^1.1.2",
5151
"sharp": "^0.33.3",
52-
"svgo": "^3.2.0",
52+
"svgo": "^4.0.0-rc.0",
5353
"ufo": "^1.5.3",
5454
"unstorage": "^1.10.2",
5555
"xss": "^1.0.15"
@@ -69,4 +69,4 @@
6969
"vitest": "^1.5.2"
7070
},
7171
"packageManager": "[email protected]"
72-
}
72+
}

pnpm-lock.yaml

Lines changed: 39 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ipx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export function createIPX(userOptions: IPXOptions): IPX {
180180
const { optimize } = await getSVGO();
181181
const svg = optimize(sourceData.toString("utf8"), {
182182
...options.svgo,
183-
plugins: ["removeScriptElement", ...(options.svgo?.plugins || [])],
183+
plugins: ["removeScripts", ...(options.svgo?.plugins || [])],
184184
}).data;
185185
return {
186186
data: svg,

0 commit comments

Comments
 (0)