fix: remediate npm deprecation warnings in @mosaic/gateway 0.0.3 #377

Merged
jason.woltje merged 1 commits from fix/gateway-deprecation-warnings into main 2026-04-04 21:03:55 +00:00
Owner

Summary

Remediates npm deprecation warnings that appear when running npm install -g @mosaic/gateway@latest.

#1 instrumentation-fastify — FIXED

  • Upgraded @opentelemetry/auto-instrumentations-node ^0.71.0 -> ^0.72.0
  • v0.72.0 dropped @opentelemetry/instrumentation-fastify (deprecated in favour of @fastify/otel)
  • Existing getNodeAutoInstrumentations() config in tracing.ts unchanged; request spans preserved

#2 prebuild-install@7.1.3 — UPSTREAM BLOCKED

  • Source: better-sqlite3@12.8.0 -> prebuild-install@^7.1.1
  • better-sqlite3@12.8.0 is the latest release and still depends on prebuild-install
  • No fix available until upstream migrates away

#3 node-domexception@1.0.0 — UPSTREAM BLOCKED

  • Chain: pi-ai -> @google/genai -> google-auth-library -> gaxios@7.1.4 -> node-fetch@3.3.2 -> fetch-blob@3.2.0 -> node-domexception@1.0.0
  • All versions of node-domexception carry the deprecated registry flag; no override suppresses the warning
  • Requires gaxios to adopt native fetch

ModelRegistry API break (pi-coding-agent 0.65.0)

  • Bumped @mariozechner/pi-ai and @mariozechner/pi-coding-agent ~0.57.1 -> ^0.65.0
  • ModelRegistry constructor became private; updated callers to use ModelRegistry.inMemory(authStorage)

Quality gates

  • typecheck: pass
  • lint: pass
  • test: 347/347 pass
  • build: pass
  • prettier: pass
## Summary Remediates npm deprecation warnings that appear when running `npm install -g @mosaic/gateway@latest`. ### #1 instrumentation-fastify — FIXED - Upgraded `@opentelemetry/auto-instrumentations-node` `^0.71.0` -> `^0.72.0` - v0.72.0 dropped `@opentelemetry/instrumentation-fastify` (deprecated in favour of `@fastify/otel`) - Existing `getNodeAutoInstrumentations()` config in `tracing.ts` unchanged; request spans preserved ### #2 prebuild-install@7.1.3 — UPSTREAM BLOCKED - Source: `better-sqlite3@12.8.0` -> `prebuild-install@^7.1.1` - `better-sqlite3@12.8.0` is the latest release and still depends on `prebuild-install` - No fix available until upstream migrates away ### #3 node-domexception@1.0.0 — UPSTREAM BLOCKED - Chain: `pi-ai` -> `@google/genai` -> `google-auth-library` -> `gaxios@7.1.4` -> `node-fetch@3.3.2` -> `fetch-blob@3.2.0` -> `node-domexception@1.0.0` - All versions of `node-domexception` carry the `deprecated` registry flag; no override suppresses the warning - Requires gaxios to adopt native fetch ### ModelRegistry API break (pi-coding-agent 0.65.0) - Bumped `@mariozechner/pi-ai` and `@mariozechner/pi-coding-agent` `~0.57.1` -> `^0.65.0` - `ModelRegistry` constructor became private; updated callers to use `ModelRegistry.inMemory(authStorage)` ## Quality gates - typecheck: pass - lint: pass - test: 347/347 pass - build: pass - prettier: pass
jason.woltje added 1 commit 2026-04-04 21:03:33 +00:00
fix: remediate npm deprecation warnings in @mosaic/gateway 0.0.3
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
85f82bd6c3
- Upgrade @opentelemetry/auto-instrumentations-node ^0.71.0 → ^0.72.0;
  v0.72.0 drops @opentelemetry/instrumentation-fastify (deprecated in
  favour of @fastify/otel) from its dependency tree, eliminating the
  `npm warn deprecated @opentelemetry/instrumentation-fastify@0.57.0`
  warning on `npm install -g @mosaic/gateway`.

- Bump @mariozechner/pi-ai and @mariozechner/pi-coding-agent ~0.57.1 →
  ^0.65.0.  ModelRegistry constructor became private in 0.65.0; callers
  now use ModelRegistry.inMemory(authStorage) (provider.service.ts and
  provider-adapters.test.ts updated accordingly).  All 347 tests pass.

- prebuild-install@7.1.3 (via better-sqlite3@12.8.0): upstream-blocked.
  better-sqlite3 12.8.0 is the latest release and still ships with
  prebuild-install; no fix available until upstream migrates away.

- node-domexception@1.0.0 (via @google/genai → google-auth-library →
  gaxios@7 → node-fetch@3 → fetch-blob@3 → node-domexception): upstream-
  blocked.  gaxios@7.1.4 (latest) still depends on node-fetch@^3.3.2,
  and all versions of node-domexception carry the `deprecated` registry
  flag; no override can suppress it.  Fix requires gaxios to adopt native
  fetch or node-fetch v4 GA.

Bumps gateway version 0.0.2 → 0.0.3.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 30c0fb1308 into main 2026-04-04 21:03:55 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#377