The repository has no package overrides. Its only custom dependency-resolution
rules are the two patchedDependencies below. Repository maintainers own both
patches and must keep their compatibility evidence and removal conditions
current whenever a parent dependency changes.
- Patch:
patches/gaxios@6.7.1.patch - Rationale: Replaces
uuid.v4()with the Bun-compatible Nodecrypto.randomUUID()API and removes Gaxios's vulnerableuuid@9dependency. - Owner: Repository maintainers.
- Compatibility tests:
tests/dependency-patches.test.tsverifies Gaxios multipart boundary generation and a Google Cloud Storage request through the patched dependency stack. - Removal condition: Remove the patch only after the resolved Gaxios version
no longer depends on vulnerable UUID code, either because upstream fixed the
path or because
@google-cloud/storageresolves a fixed newer Gaxios release. Regeneratebun.lockand complete every required check below before removal.
- Patch:
patches/teeny-request@9.0.0.patch - Rationale: Replaces
uuid.v4()with the Bun-compatible Nodecrypto.randomUUID()API and removes teeny-request's vulnerableuuid@9dependency. - Owner: Repository maintainers.
- Compatibility tests:
tests/dependency-patches.test.tsverifies callback multipart boundary generation and the Google Cloud Storage request path. - Removal condition: Remove the patch only after the resolved teeny-request
version no longer depends on vulnerable UUID code, either because upstream
fixed the path or because
@google-cloud/storageno longer resolves teeny-request 9.0.0. Regeneratebun.lockand complete every required check below before removal.
The Docker build must copy patches/ before running
bun install --frozen-lockfile --production; otherwise the production install
cannot apply the patches. CI and Docker both use Bun 1.3.9 so lockfile and patch
behavior match.
Run all checks after changing either patch, patchedDependencies, bun.lock, or
a parent dependency:
bun install --frozen-lockfile
bun test tests/dependency-patches.test.ts tests/trading-day.test.ts
bun run typecheck
bun run knip
trunk check --all --filter=osv-scanner
docker build -t morning-briefing:dependency-check .Every command must exit successfully. Knip and OSV Scanner must each report zero findings, and the dependency patch tests must pass without skips. Do not replace a patch with an ignore, baseline, or suppression.