Repository navigation
chore: boring-tech audit easy wins — drop dead dep, use builtin, dedupe - #791
Merged
Merged
Conversation
Three low-risk resourcefulness fixes from the build-vs-adopt audit: - Drop the unused `gradient-string` dependency (0 import sites) plus its orphaned `@types/gradient-string`; removes tinygradient/tinycolor2 from the lockfile. - Replace the manual AbortController+setTimeout+clearTimeout timeout dance in fetchLatestVersion with the AbortSignal.timeout() builtin. - Consolidate the duplicate compareVersions: manifest.ts now imports the more robust comparator (strips `v` prefix, tolerates non-3-part versions) from version-check.ts instead of its own hard-coded copy. Build, lint, and version-check tests all pass. Entire-Checkpoint: 7cd4043b9396
Per repo convention (per-PR changelog entries), record the dropped gradient-string dep, the AbortSignal.timeout() swap, and the compareVersions consolidation under [Unreleased] → Changed. Entire-Checkpoint: 5f1698fbc6f5
This was referenced Jul 20, 2026
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.
Three low-risk resourcefulness fixes from the build-vs-adopt ("boring technology") audit. Net -84 lines, no behavior change beyond a strictly-more-robust version comparator.
Changes
gradient-stringdependency (0 import sites anywhere insrc/bin/scripts/dashboard/hooks/dist) plus its orphaned@types/gradient-string. Removestinygradient/tinycolor2from the lockfile.AbortSignal.timeout()builtin infetchLatestVersioninstead of the manualAbortController+setTimeout+ 2×clearTimeoutdance (builtin is available on the>=22.12engines floor).compareVersions—manifest.tsnow imports the more robust comparator fromversion-check.ts(strips a leadingv, tolerates non-3-part versions) instead of its own hard-coded 3-part copy.manifestonly ever compares plainX.Y.Zvalues, so the changed semantics are a pure improvement.Verification
npm run build(tsc) — cleannpm run lint(eslint--max-warnings 0) — cleannpx vitest run version-check— 66/66 passednpm install --package-lock-only—gradient-stringfully gone from lock, 0 vulnerabilities