fix(deps): upgrade dependencies to resolve Dependabot security alerts#114
Merged
Conversation
Upgrades direct dependencies to pull in patched transitive versions, eliminating 28 of 29 open Dependabot alerts. The one remaining alert (serialize-javascript via copy-webpack-plugin@11 in @docusaurus/bundler) has no upstream fix available in the current docusaurus ecosystem. Root package: - @changesets/cli: 2.29.8 -> 2.31.0 (fixes picomatch 2.x via updated @manypkg) - @commitlint/cli + config-conventional: 19.8.1 -> 21.0.1 (fixes fast-uri) - @typescript-eslint/eslint-plugin + parser + typescript-eslint: 8.54.0 -> 8.59.3 - eslint: 9.23.0 -> 9.39.4 (fixes minimatch via @eslint/config-array) - eslint-plugin-jest: 28.11.0 -> 29.15.2 - lint-staged: 15.5.2 -> 17.0.4 (fixes yaml, picomatch 4.x) - ts-jest: 29.4.6 -> 29.4.9 (fixes handlebars) Docs package: - @Docusaurus core/preset-classic/types: 3.9.2 -> 3.10.1 - typedoc: -> 0.28.19 (fixes markdown-it, yaml) - typedoc-plugin-markdown: -> 4.11.0 Lockfile-only updates (pnpm update): - fast-uri: 3.1.0 -> 3.1.2 - flatted: 3.3.3 -> 3.4.2 - lodash: 4.17.23 -> 4.18.1 - picomatch 2.x: 2.3.1 -> 2.3.2
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
TypeScript 6 removed captureStackTrace from ErrorConstructor (it is a V8/Node extension). The docs build now uses TS6 via the updated typedoc dependency, causing a type error when compiling packages/lib. Use a type assertion at the call site to satisfy both TS5 and TS6.
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.
Problem
29 open Dependabot security alerts across the monorepo, ranging from low to critical severity. All were transitive dependency vulnerabilities — nothing directly declared in our package manifests was itself vulnerable.
Solution
Upgraded direct dependencies in both the root and
docspackages to versions that pull in patched transitive versions. Also ran targetedpnpm updatefor a handful of transitive packages (fast-uri, flatted, lodash, picomatch) where pnpm had locked to old versions even though the semver range already permitted the patched release.What changed
Root
package.json:@changesets/cli: 2.29.8 → 2.31.0 — fixes picomatch 2.x (via updated@manypkg/get-packageswhich droppedglobby@11)@commitlint/cli+config-conventional: 19.8.1 → 21.0.1 — fixes fast-uri (via newer ajv)@typescript-eslint/eslint-plugin+parser+typescript-eslint: 8.54.0 → 8.59.3 — fixes minimatch 9.x and picomatch 4.x chains (switches to minimatch@10 internally)eslint: 9.23.0 → 9.39.4 — fixes minimatch 3.x (via updated@eslint/config-array)eslint-plugin-jest: 28.11.0 → 29.15.2 — picks up the updated@typescript-eslint/utilslint-staged: 15.5.2 → 17.0.4 — fixes yaml and picomatch 4.xts-jest: 29.4.6 → 29.4.9 — fixes handlebars (critical/high JS injection alerts)docs/package.json:@docusaurus/core+preset-classic+ module-type-aliases/tsconfig/types: 3.9.2 → 3.10.1 — fixes@babel/plugin-transform-modules-systemjs,follow-redirects,postcss,path-to-regexp,qstypedoc: → 0.28.19 — fixesmarkdown-it(ReDoS) andyaml(stack overflow)typedoc-plugin-markdown: → 4.11.0 — required for typedoc 0.28.19 compatibilityLockfile-only (
pnpm update):fast-uri: 3.1.0 → 3.1.2flatted: 3.3.3 → 3.4.2lodash: 4.17.23 → 4.18.1picomatch2.x: 2.3.1 → 2.3.2Remaining alert (1)
serialize-javascript@6.0.2viacopy-webpack-plugin@11.0.0←@docusaurus/bundler@3.10.1. The fix requirescopy-webpack-plugin@14(which usesserialize-javascript@^7.0.3), but@docusaurus/bundlerpins^11.0.0in their latest release. Nothing we can do without an upstream docusaurus fix or an override.Test plan
pnpm test) acrosspackages/lib,packages/cli, andpackages/actionspnpm auditreduced from 29 open alerts to 1 (the blocked docusaurus one above)