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 [email protected] — UPSTREAM BLOCKED

  • Source: [email protected] -> prebuild-install@^7.1.1
  • [email protected] is the latest release and still depends on prebuild-install
  • No fix available until upstream migrates away

#3 [email protected] — UPSTREAM BLOCKED

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 [email protected] — UPSTREAM BLOCKED - Source: `[email protected]` -> `prebuild-install@^7.1.1` - `[email protected]` is the latest release and still depends on `prebuild-install` - No fix available until upstream migrates away ### #3 [email protected] — UPSTREAM BLOCKED - Chain: `pi-ai` -> `@google/genai` -> `google-auth-library` -> `[email protected]` -> `[email protected]` -> `[email protected]` -> `[email protected]` - 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
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/[email protected].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.

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

- [email protected] (via @google/genai → google-auth-library →
  gaxios@7 → node-fetch@3 → fetch-blob@3 → node-domexception): upstream-
  blocked.  [email protected] (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 <[email protected]>
jason.woltje merged commit 30c0fb1308 into main 2026-04-04 21:03:55 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#377