fix(deps): bump sharp to 0.35.3 and js-yaml to 4.3.0 for security advisories#5848
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview sharp 0.35 uses ESM-first typings where the default export is no longer typed as a callable module namespace. Copilot VFS image prep in Reviewed by Cursor Bugbot for commit 560b66d. Configure here. |
Greptile SummaryThis PR updates two Sim dependencies to security-patched releases. The main changes are:
Confidence Score: 4/5The Sharp type export should be confirmed against a fresh install before merging.
apps/sim/lib/copilot/vfs/file-reader.ts Important Files Changed
Reviews (1): Last reviewed commit: "chore: fix import order in file-reader" | Re-trigger Greptile |
Resolves both open Dependabot alerts (apps/sim/package.json):
4.2.0→4.3.0(first patched version; pure security patch, no API change).0.34.3→0.35.3(latest; first patched is 0.35.0), which pulls libvips 1.3.2 binaries.sharp 0.35 ships new ESM-first typings where the module namespace is no longer callable — updated the lazy-load in
lib/copilot/vfs/file-reader.tsto type the constructor asSharpConstructor(type-only import, keeps the runtime lazy-load intact).Verified:
tsc --noEmitclean; vitest forlib/copilot/vfs/file-reader.test.ts(exercises real sharp),lib/file-parsers/yaml-parser.test.ts, andlib/chunkers— 262 tests pass.Supersedes Dependabot PR #5844 (sharp-only).