diff --git a/.changeset/node-hono-node-server-range.md b/.changeset/node-hono-node-server-range.md new file mode 100644 index 0000000000..64b1959d3e --- /dev/null +++ b/.changeset/node-hono-node-server-range.md @@ -0,0 +1,5 @@ +--- +'@modelcontextprotocol/node': patch +--- + +The `@hono/node-server` dependency range widens from `^1.19.9` to `^1.19.9 || ^2.1.3`, so a new install resolves to 2.x and an install that cannot get 2.x keeps 1.x. diff --git a/DEPENDENCY_POLICY.md b/DEPENDENCY_POLICY.md index 6be03850f3..1d74b5b7de 100644 --- a/DEPENDENCY_POLICY.md +++ b/DEPENDENCY_POLICY.md @@ -30,6 +30,6 @@ Dependencies are only updated when there is a concrete reason, not simply becaus ## Pinning and Ranges -Ranges shared by more than one package live in the pnpm workspace catalogs (`pnpm-workspace.yaml`), so a version is declared once. Runtime dependencies use caret ranges (`^`) to allow compatible updates within a major version; exact versions of third-party runtime dependencies are pinned only when necessary to work around a specific issue. Dependencies between the SDK's own packages (`workspace:*`) publish as exact pins by design, so a released `client` or `server` always resolves the `core` it was built against. Framework integrations (`express`, `hono`, `fastify`) declare the framework as a peer dependency rather than bundling a copy. +Ranges shared by more than one package live in the pnpm workspace catalogs (`pnpm-workspace.yaml`), so a version is declared once. Runtime dependencies use caret ranges (`^`) to allow compatible updates within a major version, and a range may span two majors when the SDK works on both; exact versions of third-party runtime dependencies are pinned only when necessary to work around a specific issue. Dependencies between the SDK's own packages (`workspace:*`) publish as exact pins by design, so a released `client` or `server` always resolves the `core` it was built against. Framework integrations (`express`, `hono`, `fastify`) declare the framework as a peer dependency rather than bundling a copy. Runtime dependencies of published packages are kept to a minimum; adding one is a significant change under the discuss-before-you-code rule in `CONTRIBUTING.md`. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7d405533e4..060f3c4b42 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,8 +96,8 @@ catalogs: version: 6.2.2 runtimeServerOnly: '@hono/node-server': - specifier: ^1.19.9 - version: 1.19.11 + specifier: ^1.19.9 || ^2.1.3 + version: 2.1.5 cors: specifier: ^2.8.5 version: 2.8.6 @@ -306,7 +306,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:^ version: link:shared @@ -432,7 +432,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -504,7 +504,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -529,7 +529,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -551,7 +551,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -598,7 +598,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -642,7 +642,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -667,7 +667,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -726,7 +726,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -810,7 +810,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -835,7 +835,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -894,7 +894,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -916,7 +916,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -941,7 +941,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -1092,7 +1092,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -1170,7 +1170,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -1195,7 +1195,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -1220,7 +1220,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -1245,7 +1245,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -1270,7 +1270,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -1292,7 +1292,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@mcp-examples/shared': specifier: workspace:* version: link:../shared @@ -1753,7 +1753,7 @@ importers: dependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) hono: specifier: catalog:runtimeServerOnly version: 4.12.9 @@ -2017,7 +2017,7 @@ importers: devDependencies: '@hono/node-server': specifier: catalog:runtimeServerOnly - version: 1.19.11(hono@4.12.9) + version: 2.1.5(hono@4.12.9) '@modelcontextprotocol/client': specifier: workspace:^ version: link:../../packages/client @@ -3059,6 +3059,12 @@ packages: peerDependencies: hono: ^4 + '@hono/node-server@2.1.5': + resolution: {integrity: sha512-MgP/I06GdvsilDspMk/qmRzpk8LOUStP6jFAbSRi40W09DhoyUn+Mj7eyKICPqeYKybOjVFLVIAQzvu1bfIa7Q==} + engines: {node: '>=20'} + peerDependencies: + hono: ^4 || ^5.0.0-0 + '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -7732,6 +7738,10 @@ snapshots: dependencies: hono: 4.12.9 + '@hono/node-server@2.1.5(hono@4.12.9)': + dependencies: + hono: 4.12.9 + '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.7': diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 73c94daf91..64875347ec 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -40,7 +40,7 @@ catalogs: eventsource-parser: ^3.0.8 jose: ^6.1.3 runtimeServerOnly: - '@hono/node-server': ^1.19.9 + '@hono/node-server': ^1.19.9 || ^2.1.3 cors: ^2.8.5 express: ^5.2.1 fastify: ^5.2.0