Skip to content

build(deps): @types/node 26 for the Node.js 26 LTS, @hono/node-server 2.1.5 - #16

Merged
agentHits merged 2 commits into
AgentHits-Devfrom
deps/types-node-26
Oct 30, 2026
Merged

agentHits merged 2 commits into
AgentHits-Devfrom
deps/types-node-26

Conversation

@agentHits

@agentHits agentHits commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Зачем

28 октября 2026 года ветка Node.js 26 стала LTS под именем «Lithium». Сервер работает на Bun, поэтому от Node.js в проекте только типы @types/node, и они отставали на две ветки: стояла 22.

Заодно чинится аудит зависимостей, который с 29 октября был красным и на базовой ветке. В @hono/node-server 1.x нашли уязвимость средней тяжести: serveStatic дважды декодирует путь запроса, и запрос может обойти middleware на статических путях. Исправление вышло только в 2.x. Сервер serveStatic не использует, но аудит блокировал все PR.

Что изменилось

Пакет Было Стало
@types/node (devDependency) ^22.20.5 ^26.6.6, вышел 2026-10-28, старше суток
@hono/node-server ^1.19.17 ^2.1.5, вышел 2026-10-13

Публичный API у @hono/node-server 2.x тот же. Ломающих изменений два: отказ от Node.js 18 и удалён адаптер для Vercel. Ни одно к нам не относится: сервер работает на Bun и использует только serve и HttpBindings. @modelcontextprotocol/sdk допускает ^2.0.5, поэтому в проекте осталась одна копия 2.1.5. Код, образ (oven/bun:1.4.4) и версия Bun не менялись.

Проверки

Что Результат
bun audit --audit-level=moderate ✅ уязвимостей нет
bun run type-check (основной проект и guard) ✅
bun test ✅ 739 из 739
bun run lint, bun run build ✅
Запуск HTTP-режима из собранного build/index.js ✅ /health 200, /mcp без токена 401, initialize с токеном возвращает serverInfo

🤖 Generated with Claude Code

agentHits and others added 2 commits October 30, 2026 12:38
Node.js 26 became LTS "Lithium" on 2026-10-28. The server runs on Bun, so
only the Node.js type definitions follow it: @types/node ^22.20.5 -> ^26.6.6
(published 2026-10-28, past the one-day release age).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bun audit fails on a moderate advisory in @hono/node-server 1.x: serveStatic
decodes the request path twice and can bypass middleware on static paths
(fixed in >=2.1.3). This server does not use serveStatic, but the audit
blocks every PR and the base branch. The fix exists only in 2.x;
@modelcontextprotocol/sdk accepts ^2.0.5, so one 2.1.5 copy remains.

v2 keeps the public API. Its breaking changes are dropping Node.js 18 and
the Vercel adapter; neither applies here (Bun runtime, only serve and
HttpBindings are used).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@agentHits agentHits changed the title build(deps): @types/node 26 for the Node.js 26 LTS build(deps): @types/node 26 for the Node.js 26 LTS, @hono/node-server 2.1.5 Oct 30, 2026
@agentHits
agentHits merged commit 9ca5ae3 into AgentHits-Dev Oct 30, 2026
2 checks passed
@agentHits
agentHits deleted the deps/types-node-26 branch October 30, 2026 18:12
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.

1 participant