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

40 Commits

Author SHA1 Message Date
dependabot[bot]
25820964ad chore(deps): bump streetsidesoftware/cspell-action from 6 to 7 (#2139) 2025-06-09 22:16:26 +01:00
Seth Falco
e1252fa488 deps: drop yarn/releases directory (#2138) 2025-05-25 16:52:23 +01:00
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
Nathan Baulch
0eccff2794 chore: fix various typos across the project 2025-03-22 11:49:01 +00:00
XhmikosR
7593b325f6 chore(ci): add Node.js 22 (#2026) 2024-06-10 15:59:08 +01:00
Seth Falco
32edd7bcd6 chores: amend version strings (#2023) 2024-06-07 18:53:07 +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
c2cacc7060 chore: move health files to .github (#1906) 2023-12-27 12:54:30 +00:00
Seth Falco
2c408ce56f refactor: improve regression testing (#1898) 2023-12-23 06:56:46 +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
Jon Dufresne
aa470c7952 chore: apply prettier to all supported file types (#1870) 2023-12-15 12:30:44 +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
Bogdan Chadkin
ed89fbe881 Replaced stackoverflow with discord 2021-02-27 14:55:14 +03:00
Bogdan Chadkin
62257487a7 Update FUNDING.yml 2021-02-25 19:13:16 +03:00
Kir Belevich
d74d3ac2b9 Create FUNDING.yml 2021-02-25 17:07:03 +01:00
Sebastian Kreft
aa8e0bd3f6 Add Github Issue Templates (#1367)
* Path intersection was not checking paths with circles.

As an optimization the path intersection was checking the paths had three or more elements, caliming that otherwise there was nothing to fill. However a semi circle would actually contain 2 points.

Fixes #1048.

This adds a simplified test case for the 2 offending files reported in the issue.

* Add issue templates

We add issue templates for:

- Bug Reports
- Feature Requests
- Plugin Requests
- Pull Requests
- Questions

* Add Github issue templates

Fixes #1364, but is is missing the template for pull requests see
https://docs.github.com/en/github/building-a-strong-community/creating-a-pull-request-template-for-your-repository

* fix

* Use "New plugin" label

Co-authored-by: Bogdan Chadkin <trysound@yandex.ru>
2021-02-22 23:35:14 +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