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

28 Commits

Author SHA1 Message Date
Seth Falco
747cc722d9 chore: revamp how we export types (#2118) 2025-05-04 17:39:44 +01:00
Seth Falco
9c8768f64d ci: add spellcheck (#2101) 2025-04-12 16:47:32 +01:00
XhmikosR
7593b325f6 chore(ci): add Node.js 22 (#2026) 2024-06-10 15:59:08 +01:00
Seth Falco
78403d3dc9 feat: export version constant (#2016) 2024-05-27 20:28:13 +01:00
Seth Falco
ceb2178935 test: expand and optimize regression testing (#1918) 2024-05-25 23:44:26 +01:00
XhmikosR
a3ac91af71 chore: Add CodeQL workflow (#1876) 2024-05-08 00:38:11 +01: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
2c408ce56f refactor: improve regression testing (#1898) 2023-12-23 06:56:46 +00:00
XhmikosR
3dc2f6fef7 chore: Update CI versions (#1875) 2023-12-09 20:39:55 +00:00
Seth Falco
7e259a2b92 ci: run tests on windows (#1853) 2023-11-26 15:48:16 +00:00
Seth Falco
742cee1910 ci: use and run tests for node 20 (#1827) 2023-11-09 15:57:46 +00:00
Seth Falco
1df2e0fa39 fix(cleanupIds): skip generated ids for malformed references (#1817)
I also had some chores pending which were trivial individually, I opted
to incorporate them here as well.

* In JSDocs, use the nullable syntax as it's more concise and familiar
from TypeScript usage.
* discord → Discord (proper nouns should match capitalization)
* Use actions/checkout v4 instead of v2
2023-11-04 12:56:20 +00:00
Alex
9a83ed43a2 GitHub Workflows security hardening (#1724)
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2023-09-25 20:04:21 +01:00
Bogdan Chadkin
07588be807 Require node 14+ 2022-10-01 15:42:02 +03:00
Bogdan Chadkin
590b6b4205 Fix branch name in workflow 2022-01-09 14:20:31 +03:00
Bogdan Chadkin
4166c32eb8 Migrate to simple yarn cache (#1608)
Good advice https://twitter.com/sitnikcode/status/1448634966326325255
2021-10-15 12:01:04 +03:00
Bogdan Chadkin
5fb42ab47a Migrate to yarn 2 (#1602)
Yarn supports windows with custom shell, has better tools for
dependencies upgrade and more readable lockfile.

Migrated with preserving lockfile data.
2021-10-05 16:06:12 +03:00
Bogdan Chadkin
1f5ea7e610 Remove node 16 version fix (#1566)
Looks like the bug with v8 internals was fixed.
2021-09-12 14:16:28 +03:00
Bogdan Chadkin
d9102930ca Fix CI 2021-09-10 19:47:15 +03:00
XhmikosR
11b2801bd5 CI: remove Node.js 15 and add 16 (#1523) 2021-08-14 13:10:06 +03:00
Bogdan Chadkin
4d0ee0c330 Test regressions with W3C SVG 1.1 Test Suite (#1357)
Visual regressions tests will give us more confidence in SVGO stability.
Test cases are downloaded from w3.org, screenshooted with playwright and
compared with pixelmatch.
2021-03-04 18:00:15 +03:00
Sebastian Kreft
6842b47cc7 Add TS support (#1370)
Added Typescript support via JSDoc comments for some files.

The code has really outdated type signatures, so in order to fully type the codebase the changes need to be incremental.

To check the types run:
npx tsc
2021-03-04 16:30:28 +03:00
XhmikosR
93a5db197c Update CI config (#1397)
* separate lint step to a new job and run it only once
* add caching
2021-03-02 17:03:10 +03:00
XhmikosR
1b2c2625e3 CI: specify FORCE_COLOR: 2 (#1351) 2021-02-20 17:03:42 +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
XhmikosR
264b2b564c CI: update to actions/setup-node@v2 (#1339) 2021-02-19 02:27:05 +03:00
Bogdan Chadkin
d273b26605 Provide es module bundle for browser (#1326)
The was a lot of requests to provide browser compatible module. In this
diff I added `svgo/dist/svgo.browser.js` bundle and tested it with
playwright.
2021-02-16 19:11:01 +03:00
Bogdan Chadkin
7706192809 Replace travis with github actions (#1321)
Github is closer to the source.
2021-02-13 22:16:40 +03:00