Repository navigation
Tags
Tags
chore: prepare v4.1.0 release (#2275) Prepare SVGO v4.1.0 by synchronizing the package and runtime versions. The release includes stricter XML character-reference validation from sax 1.6.1 and security hardening for `removeScripts`. Validation: - typecheck passed - bundle tests passed - scoped ESLint and Prettier checks passed - main test suite passed (1,549 tests; the root command additionally discovered unrelated local `.worktrees`)
ci: configure v3 publish tag in package metadata (#2271) ## Summary Configure `v3` through `publishConfig.tag` and let `npm publish` consume it. npm 11 rejects `--tag v3` at the CLI because `v3` is a valid semver range, even though this package already uses `v3` as an established registry dist-tag. `publishConfig` passes the tag to the registry publisher without the CLI's semver-range validation, preserving the existing dist-tag.
ci: build v2 releases with Node.js 16 (#2274) ## Summary Build v2 releases under Node.js 16 before switching to Node.js 24 and npm 11.5.1 for trusted publishing. Yarn 2.4.3 and its compatibility patches are not compatible with Node.js 24 (`isDate is not a function`). Keeping the legacy build on Node.js 16 while using the modern npm runtime for publication preserves compatibility and signed provenance.
Merge commit from fork Match JavaScript URIs case insensitively, such as JAVASCRIPT or JavaScript. Match <*:script> elements that are explicitly namespaced/prefixed with the SVG namespace or XHTML namespace. We leave intact any other namespace like a custom <filmmaker:script> script which isn't executable.
Merge commit from fork Match JavaScript URIs case insensitively, such as JAVASCRIPT or JavaScript. Match <*:script> elements that are explicitly namespaced/prefixed with the SVG namespace or XHTML namespace. We leave intact any other namespace like a custom <filmmaker:script> script which isn't executable.
Merge commit from fork * fix(publish): migrate *.test.js files to test directory When publishing v2.8.1 there was a hiccup where test files were included in the package. It seems the likely cause is that previous maintainers published with "npm publish" but I tried to publish to "yarn npm publish". To avoid a hiccup like this from happening again, let's just move the tests into the tests directory. This is a change I'd like to make in the development branch anyway. * test: make billion laughts test compatible with node.js v10 Back when I originally published the first security fix for SVGO v2, I didn't actually run the tests using Node.js v10 specifically. However this time I did as I wanted to make sure I wasn't making a breaking change that inadvertenly used APIs that were too modern. Turns out the test case I wrote for billion laughs was not compatible so the tests were failing. This just makes it used older APIs so that the rests of the tests can run. * fix(removeScriptElement): make namespace aware Match <*:script> elements that are explicitly namespaced/prefixed with the SVG namespace or XHTML namespace. We leave intact any other namespace like a custom <filmmaker:script> script which isn't executable.
PreviousNext