Seth Falco
747cc722d9
chore: revamp how we export types ( #2118 )
2025-05-04 17:39:44 +01:00
Seth Falco
8c593fab06
chore: bulk update all jsdoc and jsdoctypes ( #2114 )
2025-05-01 22:16:52 +01:00
Seth Falco
4573d0178e
chore: migrate plugin types to plugin ( #2111 )
2025-04-30 02:16:53 +01:00
Seth Falco
dba60b3580
chore: migrate from ts-ignore to ts-expect-error ( #2103 )
2025-04-12 19:41:49 +01:00
Nathan Baulch
0eccff2794
chore: fix various typos across the project
2025-03-22 11:49:01 +00:00
Jon Dufresne
2442f74239
chore: convert project to us ECMAScript modules (preserving CJS compatibility) ( #1905 )
2024-01-03 16:17:37 +00:00
Seth Falco
22533f1ffe
chore: update prettier and eslint ( #1885 )
2023-12-15 13:10:21 +00:00
Seth Falco
a663d8d683
fix(cleanupEnableBackground): clean up inline styles too ( #1866 )
2023-12-02 12:26:21 +00:00
Bogdan Chadkin
e2e65cfc1e
Move plugin types into d.ts
2022-11-11 12:19:38 +03:00
Bogdan Chadkin
e6bd703b0a
Remove unused active and type fields from plugins
2022-10-08 23:39:58 +03:00
Bogdan Chadkin
4082eca762
Refactor cleanupEnableBackground with visitor plugin api ( #1540 )
...
Slightly restructured plugin to do less work in case no filters used.
2021-08-24 14:20:23 +03:00
XhmikosR
75ec2943b0
Update minor and patch dependencies ( #1528 )
...
* @rollup/plugin-node-resolve ^11.2.0 → ^11.2.1
* @types/jest ^27.0.0 → ^27.0.1
* colorette ^1.2.2 → ^1.3.0
* commander ^7.1.0 → ^7.2.0
* css-tree ^1.1.2 → ^1.1.3
* eslint ^7.22.0 → ^7.32.0
* playwright ^1.9.2 → ^1.14.0
* prettier ^2.2.1 → ^2.3.2
* rollup ^2.42.1 → ^2.56.2
* typescript ^4.2.3 → ^4.3.5
2021-08-15 13:57:58 +03:00
Bogdan Chadkin
07f8d606e0
Implement preset-default plugin ( #1513 )
...
I saw complaints about `extendDefaultPlugins` api
- it cannot be used when svgo is installed globally
- it requires svgo to be installed when using svgo-loader or svgo-jsx
- it prevents using serializable config formats like json
In this diff I introduced the new plugin which is a bundle of all
default plugins.
```js
module.exports = {
plugins: [
'preset_default',
// or
{
name: 'preset_default',
floatPrecision: 4,
overrides: {
convertPathData: {
applyTransforms: false
}
}
}
]
}
```
2021-08-13 19:07:08 +03:00
Bogdan Chadkin
4cacd9e676
Migrate ast traversing into xast module ( #1434 )
...
Replaced JSAPI methods with new utilities
- querySelectorAll(node, selector)
- querySelector(node, selector)
- matches(node, selector)
- closestByName(node, elementName)
- traverse(node, fn)
New traverse replaced many in-place implementations.
2021-03-19 11:06:41 +03:00
Bogdan Chadkin
07928fc77e
Replace removeAttr with delete operator ( #1432 )
...
delete operator is more explicit and not much harder to use.
2021-03-17 21:40:06 +03:00
Bogdan Chadkin
5314c12c99
Convert element children to xast
...
Ref https://github.com/syntax-tree/xast
Renamed content to children to match xast spec.
2021-03-11 12:29:13 +03:00
Bogdan Chadkin
00ec0f71fe
Format all plugins with prettier
2021-03-09 19:58:00 +03:00
XhmikosR
1310210d4e
Use https when possible and fix an inactive domain ( #1374 )
2021-02-25 13:48:18 +03:00
Bogdan Chadkin
9263d9ab90
Fix svg spec urls in plugins
2021-02-24 11:18:48 +03:00
Bogdan Chadkin
a7cc20bb43
Setup recommended eslint preset ( #1345 )
...
This is usually enough to prevent silly mistakes.
Formatting will be done by prettier after merging pull requests.
2021-02-19 15:26:07 +03:00
Yoshiya Hinosawa
8e6b365c40
Add --show-plugins option
2015-06-07 19:35:49 +09:00
Vasiliy Loginevskiy
da5c339076
Improve cleanupEnableBackground plugin.
2014-11-13 08:41:53 +03:00
deepsweet
2816424ed7
global refactoring dump
2013-04-09 22:06:27 +03:00
deepsweet
d120b1f0b7
plugins/cleanupEnableBackground doesn't catch floating-point numbers ( fix #89 )
2013-01-18 15:34:19 +02:00
deepsweet
5485010269
'use strict' motherfucker! do you use it?!
2012-11-27 22:51:31 +02:00
deepsweet
bb6323c7f8
more JSHint
2012-11-27 16:53:05 +02:00
deepsweet
43d716296a
JSHint :-|
2012-10-12 22:36:12 +03:00
deepsweet
8dd8be26b8
plugins/cleanupEnableBackground: important fixes
2012-10-02 15:36:14 +04:00
deepsweet
e8237f495d
plugins/cleanupEnableBackground: +TODO
2012-09-30 01:23:27 +04:00
deepsweet
d4b0fe3546
update some jsdoc with examples
2012-09-30 01:17:59 +04:00
deepsweet
f8faa1f2f7
new plugin cleanupEnableBackground
2012-09-29 17:36:19 +04:00