Skip to content

deps: clear remaining minor Dependabot alerts and lazy-load undici - #652

Merged
dglazkov merged 1 commit into
mainfrom
isocan_security_dependabot
Dec 4, 2026
Merged

dglazkov merged 1 commit into
mainfrom
isocan_security_dependabot

Conversation

@dglazkov

@dglazkov dglazkov commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Follows up on #650 (65/77 Dependabot alerts) to clear 11 more alerts (76/77 total; only low #15 katex@0.16.47 remains behind mermaid@12) with zero majors and zero npm overrides, and fixes the test/cli-bundle.test.ts regression introduced by #650.

Changes

  • package-lock.json: bump dompurify 3.4.14 → 3.5.1 (7 alerts, incl. the last High).
  • packages/cloudstore/package.json:
    • @google-cloud/firestore ^9.0.0 → ^9.4.1 (google-gax@6.17.0 drops rimraf, removing glob@10.5.0, minimatch@9.0.9, and brace-expansion@2.1.4).
    • @google-cloud/storage ^8.2.0 → ^8.4.0 (gaxios@7/8 and google-auth-library@11 drop uuid@9.0.1).
  • package.json: bump eslint ^10.9.1 → ^10.16.0 and @typescript-eslint/parser ^8.68.0 → ^8.74.0 so the 3 dev-only copies of minimatch@10.2.6 (also inside <= 11.0.7) collapse to a single node_modules/minimatch@11.0.10.
  • packages/web/test/lint.test.ts: use config?.rules?.[rule] for eslint@10.16.0's narrowed calculateConfigForFile() return type.
  • packages/api/src/client.ts: lazy-load undici via loadUndici() (unwrapping raw.default when raw.Agent isn't exposed at top level, since esbuild splits dynamically imported CJS behind export default). Drops isocan --version startup reads from 5.79 MB → 4.46 MB (-1.33 MB) with module count unchanged (46 < 48).

Verification

  • npm audit: 0 critical, 0 high, 0 moderate, 2 low (katex + mermaid).
  • 76/77 open Dependabot alerts cleared (remaining: #15 low katex@0.16.47).
  • npm run build: passed (packages/web/dist rebuilt with dompurify@3.5.1).
  • npm run typecheck: all 40 workspaces + tsconfig.test.json passed.
  • npm run lint: passed cleanly on eslint@10.16.0.
  • npm run test:deep: 956/970 files passed (9,962 tests), incl. test/cli-bundle.test.ts (5/5), test/bundle-budget.test.ts (3/3), packages/cloudstore/test/signed-url.test.ts (3/3).
    • test/packaging.test.ts (15/15) and packages/mcp/test/stdio-personal.test.ts (1/1) passed on re-run.
    • packages/cli/test/browser.test.ts hit sandbox EACCES on /nonexistent/isocan-test-opener (expected ENOENT).
    • 11 packages/cloudstore/test/*.test.ts suites skipped locally (no Firestore emulator); CI's test:ci will run them.

Follows up on #650 (65/77 alerts) to clear 11 more alerts (76/77 total;
only low #15 katex@0.16.47 remains behind mermaid@12) with zero majors
and zero npm overrides, and fixes the CLI startup bundle regression from
#650:

- Bump dompurify 3.4.14 -> 3.5.1 in lockfile (7 alerts, incl. last High).
- Bump @google-cloud/firestore ^9.0.0 -> ^9.4.1 (google-gax@6.17.0 drops
  rimraf, removing glob@10.5.0, minimatch@9.0.9, brace-expansion@2.1.4).
- Bump @google-cloud/storage ^8.2.0 -> ^8.4.0 (gaxios@7/8 and
  google-auth-library@11 drop uuid@9.0.1).
- Bump eslint ^10.9.1 -> ^10.16.0 and @typescript-eslint/parser
  ^8.68.0 -> ^8.74.0 so dev-only minimatch@10.2.6 (also inside <=11.0.7)
  collapses to a single minimatch@11.0.10. Update config?.rules access in
  packages/web/test/lint.test.ts for eslint@10.16.0's return type.
- Lazy-load undici in packages/api/src/client.ts (unwrapping esbuild's
  CJS default export for split bundles), dropping `isocan --version`
  startup reads from 5.79 MB to 4.46 MB (modules unchanged at 46 < 48).
@dglazkov
dglazkov requested review from dalmaer and nitagoogler and removed request for dalmaer December 4, 2026 22:01
@dglazkov
dglazkov merged commit 1069795 into main Dec 4, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants