Repository navigation
fix(deps): patch all known vulnerabilities and upgrade to latest - #335
Merged
Merged
Conversation
Upgrade @sveltejs/kit to 3.4.1, @sveltejs/adapter-static to 4.0.1 and void to 1.11.0. Floor esbuild, fflate and minimatch through pnpm overrides. Replace folder-hash, which breaks on minimatch 11, with a small hashPaths helper for the content cache key.
Vite+ 1.8.0 with its matching vite-plus-core 8.3.8001 and vitest 5.1.1, void 1.12.0, Svelte 5.59.2, chokidar 6 and the other minor updates. TypeScript stays on 6: svelte-check does not support 7 yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Mathieu · project thread
What
Fixes the 23 known vulnerabilities reported by
pnpm audit(7 high, 15 moderate, 1 low), then upgrades every other dependency to its latest version. After this PR,pnpm auditfinds nothing. All the vulnerable packages were build, dev or deploy tooling: the published site is static and ships none of them.Security fixes (first commit):
@sveltejs/kit3.1.0 to 3.4.1 and@sveltejs/adapter-static4.0.0 to 4.0.1: 6 SvelteKit advisories and 1 adapter advisory.void1.1.11 to 1.11.0: pulls patchedhono,undiciandzod(12 advisories).pnpm-workspace.yaml: version floors for 3 transitive dependencies whose parents have no patched release:esbuild>= 0.25 (under@esbuild-kit/core-utils, viadrizzle-kit),fflate>= 0.7.5 (undersatori),minimatch>= 11.0.1 (undereslintand@eslint/config-array).folder-hashremoved: it callsminimatch.makeRe, which minimatch 11 dropped. Replaced bybuild/lib/hashPaths.ts(sha256 of file paths and contents), which computes the cache key for generated content, with 3 unit tests. The key format changes, so the first build regenerates content once.Latest versions (second commit):
vite-plus-core8.3.8001 andvitest5.1.1.void1.12.0, Svelte 5.59.2, chokidar 5 to 6, and minor updates (Tailwind, Shiki, Playwright, knip, prettier, satori, runed and others).svelte-check4.7.8 only accepts^5 || ^6.Checks
pnpm audit: no known vulnerabilities.pnpm run build(with_redirects,sitemap.xmland404.htmlpresent),pnpm check:ciandpnpm check:depspass locally.check:toolchainwere not run locally (sandbox limits on file watching and.git/config); CI runs them.Merge risk
Merge risk: medium
About 30 packages move, including Svelte 5.57 to 5.59 and runed 0.37 to 0.38, which ship in the site, and the deploy tool. The site is static, and a revert rolls it back (two-way door). The first deploy with the new
voidhappens after merge and will be watched.