Skip to content

Commit

Permalink
chore: use SVGO 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberalien committed Nov 28, 2023
1 parent f2484e8 commit 0c09974
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions @iconify/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
"author": "Vjacheslav Trushkin",
"version": "3.0.6",
"version": "3.0.7",
"license": "MIT",
"bugs": "https://github.com/iconify/tools/issues",
"homepage": "https://github.com/iconify/tools",
Expand Down Expand Up @@ -34,7 +34,7 @@
"extract-zip": "^2.0.1",
"local-pkg": "^0.4.3",
"pathe": "^1.1.1",
"svgo": "^3.0.2",
"svgo": "3.0.3",
"tar": "^6.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion @iconify/tools/tests/optimise/scale-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Scaling icon', () => {

scaleSVG(svg, 1 / 40);
expect(svg.toMinifiedString()).toBe(
'<svg width="24" height="24" viewBox="0 0 24 24"><path d="M12 15h1.5v-2.25L15.25 15h1.825l-2.325-3 2.325-3H15.25l-1.75 2.25V9H12v6Zm-3.5 0H10V9H7v1.5h1.5V15ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm0-2h14V5H5v14ZM5 5v14V5Z"/></svg>'
'<svg width="24" height="24" viewBox="0 0 24 24"><path d="M12 15h1.5v-2.25L15.25 15h1.825l-2.325-3 2.325-3H15.25l-1.75 2.25V9H12v6Zm-3.5 0H10V9H7v1.5h1.5V15ZM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21H5Zm0-2h14V5H5v14ZM5 5v14V5Z"/></svg>'
);
expect(svg.viewBox).toEqual({
left: 0,
Expand Down
2 changes: 1 addition & 1 deletion @iconify/tools/tests/optimise/svgo-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('Optimising icon with animations', () => {

// Should replace duplicate elements with <use />, cleanup should fix xlink namespace
expect(svg.toMinifiedString()).toBe(
'<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><defs><path id="svgID0" fill="#555" fill-rule="evenodd" d="M13 35h12L13 23v12Z" clip-rule="evenodd"/><path id="svgID1" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M13 35h12L13 23v12Z" clip-rule="evenodd"/></defs><mask id="svgID2"><g fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M44 44 4 4v40h40Z"/><use href="#svgID0" fill-rule="evenodd" clip-rule="evenodd"/><use href="#svgID0" fill-rule="evenodd" clip-rule="evenodd"/><use href="#svgID0" fill-rule="evenodd" clip-rule="evenodd"/><use href="#svgID0" fill-rule="evenodd" clip-rule="evenodd"/><use href="#svgID1" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-rule="evenodd"/><use href="#svgID1" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-rule="evenodd"/><use href="#svgID1" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-rule="evenodd"/><use href="#svgID1" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-rule="evenodd"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M30 44v-3m-6 3v-3m-6 3v-3m-6 3v-3m-8-5h3m-3-6h3m-3-6h3m-3-6h3"/></g></mask><path d="M0 0h48v48H0z" mask="url(#svgID2)"/></svg>'
'<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><defs><path id="svgID0" fill="#555" d="M13 35h12L13 23v12Z"/><path id="svgID1" stroke="#fff" d="M13 35h12L13 23v12Z"/></defs><mask id="svgID2"><g fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M44 44 4 4v40h40Z"/><use href="#svgID0" fill-rule="evenodd" clip-rule="evenodd"/><use href="#svgID0" fill-rule="evenodd" clip-rule="evenodd"/><use href="#svgID0" fill-rule="evenodd" clip-rule="evenodd"/><use href="#svgID0" fill-rule="evenodd" clip-rule="evenodd"/><use href="#svgID1" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-rule="evenodd"/><use href="#svgID1" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-rule="evenodd"/><use href="#svgID1" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-rule="evenodd"/><use href="#svgID1" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-rule="evenodd"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M30 44v-3m-6 3v-3m-6 3v-3m-6 3v-3m-8-5h3m-3-6h3m-3-6h3m-3-6h3"/></g></mask><path d="M0 0h48v48H0z" mask="url(#svgID2)"/></svg>'
);
});

Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c09974

Please sign in to comment.