1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-28 19:20:51 +03:00

1360 Commits

Author SHA1 Message Date
Bogdan Chadkin
ae32acf514 3.0.2 v3.0.2 2022-11-18 19:46:18 +03:00
Bogdan Chadkin
2f8adced74 Upgrade css-tree types 2022-11-18 12:00:54 +03:00
Bogdan Chadkin
2260aab8c1 Remove csso types from definitions 2022-11-18 11:56:38 +03:00
Bogdan Chadkin
da8840c0e1 v3.0.1 v3.0.1 2022-11-11 13:21:59 +03:00
Bogdan Chadkin
8dda989fad Revert version plugin 2022-11-11 13:18:48 +03:00
Bogdan Chadkin
0f8aa5dffa Add version plugin to yarn 2022-11-11 13:15:52 +03:00
Bogdan Chadkin
216082c591 Remove unused json plugin 2022-11-11 13:11:54 +03:00
Andrew
dd70f34b67 fix: begin's attribute incorrectly modification (#1658)
Co-authored-by: Andrey Nelyubin <nelyubin_a_a@sunlight.net>
2022-11-11 12:57:15 +03:00
Bogdan Chadkin
422fa142f2 Reuse plugin types for config 2022-11-11 12:50:33 +03:00
Bogdan Chadkin
e2e65cfc1e Move plugin types into d.ts 2022-11-11 12:19:38 +03:00
Bogdan Chadkin
a40fa216b6 3.0.0 v3.0.0 2022-10-23 17:03:45 +03:00
Bogdan Chadkin
cb1569b221 Update readme 2022-10-23 16:53:49 +03:00
Bogdan Chadkin
6295c60fbf Rename cleanupIDs to cleanupIds for consistency with prefixIds 2022-10-23 11:54:48 +03:00
Bogdan Chadkin
bc07c483c3 Remove prefix param from cleanupIDs plugin 2022-10-23 11:40:48 +03:00
Bogdan Chadkin
53ed57c7e1 Expose typescript types 2022-10-17 00:10:39 +03:00
Bogdan Chadkin
f5d1dd06cc Loosly cover with types convertPathData 2022-10-16 14:53:04 +03:00
Bogdan Chadkin
5857816a5a Remove result.info.width and result.info.height 2022-10-10 01:32:12 +03:00
Bogdan Chadkin
420ae9d8a1 Throw SvgoParserError 2022-10-10 00:33:19 +03:00
Bogdan Chadkin
dd9cad1cf9 Add sortAttrs to default preset 2022-10-09 17:29:11 +03:00
Bogdan Chadkin
e6bd703b0a Remove unused active and type fields from plugins 2022-10-08 23:39:58 +03:00
Bogdan Chadkin
f649eabf6d Remove active flag in plugin config 2022-10-08 19:42:29 +03:00
Bogdan Chadkin
2d1c12c754 Remove returning ast from invoker 2022-10-08 19:16:18 +03:00
Bogdan Chadkin
12272958db Upgrade csso and csstree 2022-10-08 14:57:57 +03:00
Bogdan Chadkin
075ab164f6 Store builtin plugins as an array 2022-10-02 22:58:02 +03:00
Bogdan Chadkin
954faf3c87 Remove default plugin.params support 2022-10-02 19:43:06 +03:00
Bogdan Chadkin
97553d83b6 Replace list of default plugins with default preset 2022-10-02 15:06:45 +03:00
Bogdan Chadkin
de5d68201b Drop full, perItem and perItemReverse plugin types 2022-10-02 14:53:34 +03:00
Bogdan Chadkin
acf103251c Fix encode without multipass 2022-10-02 13:15:29 +03:00
Bogdan Chadkin
d5a8555781 Drop node 10 require fallback when load config 2022-10-02 12:15:41 +03:00
Bogdan Chadkin
516c6e1fc1 Drop createContentItem from public api and JSAPI node wrappers 2022-10-02 12:00:44 +03:00
Bogdan Chadkin
50e836d5a4 Drop class list handler 2022-10-02 11:10:45 +03:00
Bogdan Chadkin
be458216a4 Drop all unused jsapi methods and fields 2022-10-02 09:55:08 +03:00
Bogdan Chadkin
783583538f Drop legacy JSAPI style handler 2022-10-02 00:24:43 +03:00
Bogdan Chadkin
bb590b8928 Drop extendDefaultPlugins 2022-10-02 00:17:16 +03:00
Raphael Boidol
2ea65860f0 Remove stable package in favor of native stable sort (#1681) 2022-10-01 21:21:09 +03:00
Bogdan Chadkin
fdc9ceb914 Upgrade to css-select 5 2022-10-01 16:33:51 +03:00
Bogdan Chadkin
b0d19ebd1b Update snapshot format 2022-10-01 16:27:41 +03:00
Bogdan Chadkin
5fa6bf0e21 Upgrade checks 2022-10-01 16:08:01 +03:00
Bogdan Chadkin
4769027865 Upgrade build 2022-10-01 16:00:07 +03:00
Bogdan Chadkin
ce21f9b54a Upgrade to yarn 3 2022-10-01 15:47:29 +03:00
Bogdan Chadkin
07588be807 Require node 14+ 2022-10-01 15:42:02 +03:00
Randall Hunt
256bc5b2f9 missing closing quote on plugin-api doc (#1685) 2022-10-01 13:14:46 +03:00
Álvaro Mondéjar
a9834efa16 Add funding key to package.json (#1662) 2022-03-15 16:37:10 +03:00
Andreas Deininger
d2785ae707 README.md: fix broken image link (#1653) 2022-02-17 16:33:13 +03:00
Liam Mitchell
1b88baa123 More helpful preset warnings (#1645)
* More helpful preset warnings

* Optimise
2022-02-07 12:22:14 +03:00
Bogdan Chadkin
da1d761b53 Refactor removeDimensions and removeXMLNS (#1640)
Migrated both to visitor api and tsdoc
2022-01-22 00:12:52 +03:00
Bogdan Chadkin
238d3bf600 Refactor convertStyleToAttrs (#1635)
Did not rewrite much, just migrated to tsdoc and visitor plugin api.
This plugin will be obsolete eventually.
2022-01-20 10:55:01 +03:00
Bogdan Chadkin
aaf1cfa5e7 Refactor removeNonInheritableGroupAttrs and moveGroupAttrsToElems (#1636)
Batched in one PR. Pretty simple changes. Just migrated to api and
added more safety checks for types.
2022-01-19 20:42:13 +03:00
Bogdan Chadkin
068db0e894 Refactor applyTransforms (#1637)
- applyTransforms is prepared to be a separate plugin, in v3 I will
  remove it from convertPathData
- migrated to tsdoc
- removed optimisation with stroke-width inside id (still not idea how
  it worked)
- added deoptimisation when id is on element to fix redefining in `<use>`

Note: review with hidden whitespaces
2022-01-19 20:41:10 +03:00
Bogdan Chadkin
bbc6baca78 Plugin definitive guide (#1624)
This is just initial thoughts. Feel free to suggest any changes.

Here are described only the new visitor plugins api. Old "full", "perItem", "perItemReverse" will be removed in v3. Old JSAPI class on every node will be also removed so nodes could be plain objects.
2022-01-09 14:27:04 +03:00