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

1444 Commits

Author SHA1 Message Date
Seth Falco
52961ba28c ci: dont create diff png if no_diff (#1903) 2023-12-25 14:06:44 +00:00
Jon Dufresne
db78c4b7b5 chore: Remove unused argument "input" in calls to optmize() (#1901) 2023-12-24 23:11:22 +00:00
Seth Falco
6996fca1a6 refactor: improve performance of stringifyPathData (#1900) 2023-12-24 23:05:12 +00:00
Seth Falco
a3da8b3a76 refactor: use set in _collections (#1899) 2023-12-24 01:54:17 +00:00
Kendell R
a7859eb177 fix(convertPathData): fix some weird behavior (#1867) 2023-12-24 01:47:29 +00:00
Seth Falco
2c408ce56f refactor: improve regression testing (#1898) 2023-12-23 06:56:46 +00:00
Kendell R
16c6977215 chore: speedier regression testing (#1897) 2023-12-23 03:21:14 +00:00
XhmikosR
38188263c3 dependabot.yml: fix lint (#1887) 2023-12-16 16:30:55 +00:00
XhmikosR
211387fb7b chore: add dependabot config for action updates (#1877) 2023-12-15 15:44:23 +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) v3.1.0 2023-12-11 00:43:57 +00:00
Seth Falco
e6deecac90 fix: improve handling of url references in reference attributes (#1881) 2023-12-10 02:07:35 +00:00
Seth Falco
c172c9e6d6 fix(cleanupIds): handle uri encoded references (#1880) 2023-12-10 00:31:55 +00:00
john-neptune
6a814cd2e7 fix(prefixIds): update all nodes in style tags (#1736) 2023-12-09 23:04:45 +00:00
Kendell R
2d9e101ded fix(removeHiddenElems): handle defs better (#1879) 2023-12-09 22:25:30 +00:00
XhmikosR
3dc2f6fef7 chore: Update CI versions (#1875) 2023-12-09 20:39:55 +00:00
XhmikosR
74f8bd7af0 chore: fix typo (#1874) 2023-12-09 20:35:39 +00:00
Seth Falco
8390add9ab feat(removeUnknownAndDefaults): apply to xml declarations (#1872) 2023-12-07 11:56:14 +00:00
Jon Dufresne
d6ff70baf9 chore: fix several typos (#1868) 2023-12-03 18:02:22 +00:00
Seth Falco
a663d8d683 fix(cleanupEnableBackground): clean up inline styles too (#1866) 2023-12-02 12:26:21 +00:00
Seth Falco
39e855be9e fix(inlineStyles): refactor how styles are collected (#1865) 2023-12-01 16:45:09 +00:00
Kendell R
51449360f5 fix(cleanupIds): properly handle begin regex to fix #1775 (#1862) v3.0.5 2023-11-30 14:38:27 +00:00
Vincent Bernat
f0ec586991 fix(removeEmptyContainers): don't remove empty containers if parent is switch (#1747) 2023-11-29 01:03:49 +00:00
Kendell R
8dd7a3b2fc fix(convertPathData): handle setting prev properly to fix path joining and #1855 (#1856) 2023-11-29 00:39:08 +00:00
Kendell R
86d5040382 fix(convertPathData): account for error in z conversions (#1842) 2023-11-28 02:01:20 +00:00
Gordon Franke
3f2bcb48d5 fix: output profit in red if file size increased (#1162) 2023-11-27 14:24:58 +00:00
Sebastian Krah
4d15ef2be9 fix: use .d.ts file extension for type definitions (#1780) 2023-11-26 23:38:52 +00:00
nuintun
25dc073ed3 feat: improve loadConfig types (#1844) 2023-11-26 23:26:10 +00:00
Seth Falco
e22d533be8 fix(removeHiddenElems): remove hidden definitions usage (#1852) 2023-11-26 20:55:35 +00:00
Seth Falco
7e259a2b92 ci: run tests on windows (#1853) 2023-11-26 15:48:16 +00:00
johnkenny54
8879fcbbab test: fix crlf unit tests (#1850) 2023-11-26 15:27:28 +00:00
Seth Falco
ee0a0f5130 docs(removeXlink): add tip to run plugin last (#1840) v3.0.4 2023-11-18 18:19:25 +00:00
Seth Falco
bf5cf1fadd docs: add params section to remove xlink docs (#1839) 2023-11-18 17:46:29 +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
9a20ad2562 chore: add contribution guide (#1837) 2023-11-15 10:10:15 +00:00
Seth Falco
9809b67852 fix(inlineStyles): dont remove id if traversed in another selector (#1836) 2023-11-14 19:01:39 +00:00
Seth Falco
0e5f0f104d chore: revamp readme (#1835) 2023-11-14 16:08:19 +00:00
Seth Falco
7d481acfea test: enable regression test that now passes (#1833) 2023-11-13 15:12:40 +00:00
Seth Falco
b740c07695 fix(inlineStyles): dont remove wrapper class if traversed (#1832) 2023-11-13 14:53:30 +00:00
Seth Falco
7e25b62fa7 fix(inlineStyles): inline styles in order of priority (#1831) 2023-11-12 18:11:46 +00:00
Seth Falco
1f766ac509 fix(convertPathData): skip if transform overridden in styles (#1830) 2023-11-12 14:54:55 +00:00
Kendell R
14bdacc2df feat(convertPathData): replace with z and remove z when optimal (#1822) 2023-11-12 13:52:01 +00:00
Seth Falco
a9df915d1d fix: dont trim pre elements (#1796)
Includes pre in the array of text elements in _collections.js so that we don't trim whitespace on them, which effects rendering.
2023-11-12 11:56:39 +00:00
Seth Falco
4c2cc1bbdb feat(inlineStyles): remove redundant presentation attrs (#1829)
SVGs can have the same presentation attribute declared redundantly in
both the node attributes and `<style>` tag.

This wouldn't break anything, but we can shave off a few more bytes by
dropping the attribute in this case.
2023-11-11 12:43:13 +00:00
Seth Falco
742cee1910 ci: use and run tests for node 20 (#1827) 2023-11-09 15:57:46 +00:00
Seth Falco
6d26482583 fix: skip keyframes with webkit prefix (#1826)
If an SVG features `keyframes` with the `-webkit` prefix, it would throw
an error before. This will treat them the same as regular `keyframes`.
2023-11-09 15:19:31 +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.
v3.0.3
2023-11-08 16:00:36 +00:00
Seth Falco
43df633348 docs: add documentation for all commands (#1808) 2023-11-07 23:43:09 +00:00