Skip to content

chore(deps): bump the minor-and-patch group with 7 updates, adapted - #399

Merged
glebedel merged 9 commits into
mainfrom
s2d2/deps/stackone-ai-node-398
Nov 13, 2026
Merged

glebedel merged 9 commits into
mainfrom
s2d2/deps/stackone-ai-node-398

Conversation

@glebedel

@glebedel glebedel commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Supersedes #398 (Dependabot: bump the minor-and-patch group with 7 updates). It keeps the Dependabot commit and adds the changes CI needs to pass. All 7 updates stay in the group, and no unrelated package is pinned or overridden.

Why CI failed on #398

  • Build and typecheck: tsdown 0.23 removed dts.tsgo and dts.resolve. tsdown.config.ts then failed type checking (TS2769), and the build crashed with Cannot create property 'moduleUrl' on boolean 'true'.
  • Tests stalled: @hono/mcp 0.3.2 answers an MCP notification with a 202 whose body is JSON null. The MCP SDK client then awaits response.body?.cancel(). Under MSW that cancel never settles, so every test that connects to the mock MCP server hung. The real StackOne endpoint, and the spec, send a 202 with no body.
  • Property tests: @fast-check/vitest 0.5 needs vitest ^4.1.0 (it imports TestRunner), and the catalog allowed 4.0.x.

Fix

  • tsdown.config.ts: dts.resolve moves to deps.dts.alwaysBundle, keeping the same list. tsgo is dropped, so .d.ts files come from tsc. @typescript/native-preview is not installed, and the tsgo generator in tsdown 0.23 needs a TypeScript 7.1 beta. exports.inlinedDependencies: false stops the build from writing a new inlinedDependencies field into package.json.
  • mocks/mcp-server.ts: a 202 from the transport is returned as an empty 202, matching the real endpoint. Status, routing and tool call recording are unchanged.
  • pnpm-workspace.yaml: the vitest and @vitest/coverage-v8 catalog floors go to ^4.1.0. The prod @modelcontextprotocol/sdk range stays ^1.24.3. The earlier WIP commit on this branch raised it to ^1.29.0, and that is reverted because consumers do not need it. The lockfile resolves 1.32.2, which satisfies the @hono/mcp dev peer.
  • package.json: tsdown now writes publishConfig.exports with import before require. Only the key order changes.
  • src/tool-optional-ai.test.ts: tsdown 0.23 roots the unbundled output at src, so dist/src/tool.* is now dist/tool.*. The test still pointed at the old paths, so it silently skipped both optional ai peer checks. It now finds the build and runs them.

Published package (before vs after pnpm build)

  • Runtime exports are identical in ESM and CJS: BaseTool, StackOneAPIError, StackOneError, StackOneTool, StackOneToolSet, ToolArgumentsError, ToolSetConfigError, ToolSetError, ToolSetLoadError, Tools.
  • exports still exposes only ., which points at dist/index.{mjs,cjs} and dist/index.d.{mts,cts}. Internal modules move from dist/src/* to dist/*. Deep paths were never exported.
  • The .d.ts files are equivalent once export style is normalized. The bundled type packages under dist/node_modules are the same set as the published 3.1.0 (ai, @ai-sdk/provider, provider-utils, @standard-schema/spec, type-fest, zod). publint is clean.
  • One consumer-facing change comes from the Dependabot bump itself: the optional @anthropic-ai/sdk peer range goes from ^0.72.1 to ^0.137.0.

Local checks (node 24.22.1, pnpm 11.17.0)

  • pnpm build: OK, publint found no issues.
  • pnpm test: 47 files passed. 1323 tests passed, plus 4 typecheck placeholders that main also skips. No type errors. The optional peer and package-exports tests now run instead of skipping.
  • pnpm lint (oxfmt, knip, oxlint type-aware): clean. The knip hints are the same as on main.
  • pnpm pack: OK.
  • Known and existing before this change: hono-rate-limiter wants hono ^4.10.8, and the dev catalog has 4.10.7.

Reviewed with the StackOne code review skill (security, correctness, quality, dependencies; all clean) and a Codex review. Codex found the stale dist path in the optional peer test, which is fixed here.

Requested by guillaume@stackone.com via the s2d2 Security Autopilot workflow (run sa-2026-11-06-35b8d066).

🤖 Generated with Claude Code


Summary by cubic

Applies the Dependabot minor-and-patch group bump (7 packages) and adapts the build and test setup so CI passes on the new versions. The published package's runtime exports, types, and bundled type packages are unchanged; the only consumer-facing change is the optional @anthropic-ai/sdk peer range, now >=0.72.1 <2.0.0.

Adaptations for the new versions

  • Moved the type-bundling list from dts.resolve to deps.dts.alwaysBundle and set inlinedDependencies: false so the published package.json keeps its shape.
  • Dropped the tsgo .d.ts generator (needs TypeScript 7.1 beta); types now come from tsc.
  • Mock MCP server now returns an empty 202 for accepted notifications because @hono/mcp 0.3.2 sends a JSON null body whose cancel never settles under MSW.
  • Raised the vitest and @vitest/coverage-v8 catalog floors to ^4.1.0, required by @fast-check/vitest 0.5.
  • Kept the prod @modelcontextprotocol/sdk range at ^1.24.3; the lockfile resolves 1.32.2, which satisfies @hono/mcp 0.3.2's ^1.29.0 peer.
  • Pointed the optional AI peer test at dist/tool.*; tsdown 0.23 roots unbundled output at src, so the old dist/src/tool.* paths silently skipped those checks.
  • Widened the @anthropic-ai/sdk peer range from ^0.137.0 so consumers on older or 1.x SDK versions aren't cut off; only the structurally stable Tool type is imported.
  • Bumped the dev hono floor to ^4.13.16 so the mock server and the MCP SDK share a single version, fixing the 5 medium CVEs in hono 4.13.14 and clearing the hono-rate-limiter peer warning.

Written for commit 56a542a. Summary will update on new commits.

View guided diff Turn on auto-fix

dependabot Bot and others added 4 commits November 2, 2026 09:16
Bumps the minor-and-patch group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [@anthropic-ai/sdk](https://github.com/anthropics/anthropic-sdk-typescript) | `0.72.1` | `0.137.0` |
| [@fast-check/vitest](https://github.com/dubzzz/fast-check/tree/HEAD/packages/vitest) | `0.2.4` | `0.5.0` |
| [@hono/mcp](https://github.com/honojs/middleware/tree/HEAD/packages/mcp) | `0.1.5` | `0.3.2` |
| [@tanstack/ai-openai](https://github.com/TanStack/ai/tree/HEAD/packages/ai-openai) | `0.3.0` | `0.31.0` |
| [@tanstack/ai](https://github.com/TanStack/ai/tree/HEAD/packages/ai) | `0.3.0` | `0.71.0` |
| [tsdown](https://github.com/rolldown/tsdown) | `0.17.2` | `0.23.2` |
| [unplugin-unused](https://github.com/unplugin/unplugin-unused) | `0.5.6` | `0.6.0` |


Updates `@anthropic-ai/sdk` from 0.72.1 to 0.137.0
- [Release notes](https://github.com/anthropics/anthropic-sdk-typescript/releases)
- [Changelog](https://github.com/anthropics/anthropic-sdk-typescript/blob/main/CHANGELOG.md)
- [Commits](anthropics/anthropic-sdk-typescript@sdk-v0.72.1...sdk-v0.137.0)

Updates `@fast-check/vitest` from 0.2.4 to 0.5.0
- [Release notes](https://github.com/dubzzz/fast-check/releases)
- [Changelog](https://github.com/dubzzz/fast-check/blob/main/packages/vitest/CHANGELOG.md)
- [Commits](https://github.com/dubzzz/fast-check/commits/vitest/v0.5.0/packages/vitest)

Updates `@hono/mcp` from 0.1.5 to 0.3.2
- [Release notes](https://github.com/honojs/middleware/releases)
- [Changelog](https://github.com/honojs/middleware/blob/main/packages/mcp/CHANGELOG.md)
- [Commits](https://github.com/honojs/middleware/commits/@hono/mcp@0.3.2/packages/mcp)

Updates `@tanstack/ai-openai` from 0.3.0 to 0.31.0
- [Release notes](https://github.com/TanStack/ai/releases)
- [Changelog](https://github.com/TanStack/ai/blob/main/packages/ai-openai/CHANGELOG.md)
- [Commits](https://github.com/TanStack/ai/commits/@tanstack/ai-openai@0.31.0/packages/ai-openai)

Updates `@tanstack/ai` from 0.3.0 to 0.71.0
- [Release notes](https://github.com/TanStack/ai/releases)
- [Changelog](https://github.com/TanStack/ai/blob/main/packages/ai/CHANGELOG.md)
- [Commits](https://github.com/TanStack/ai/commits/@tanstack/ai@0.71.0/packages/ai)

Updates `tsdown` from 0.17.2 to 0.23.2
- [Release notes](https://github.com/rolldown/tsdown/releases)
- [Commits](rolldown/tsdown@v0.17.2...v0.23.2)

Updates `unplugin-unused` from 0.5.6 to 0.6.0
- [Release notes](https://github.com/unplugin/unplugin-unused/releases)
- [Commits](unplugin/unplugin-unused@v0.5.6...v0.6.0)

---
updated-dependencies:
- dependency-name: "@anthropic-ai/sdk"
  dependency-version: 0.137.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: "@fast-check/vitest"
  dependency-version: 0.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: "@hono/mcp"
  dependency-version: 0.3.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: "@tanstack/ai-openai"
  dependency-version: 0.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: "@tanstack/ai"
  dependency-version: 0.71.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: tsdown
  dependency-version: 0.23.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: unplugin-unused
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…/sdk to ^1.29.0 (WIP)

Moves dts.resolve to deps.dts.alwaysBundle and drops dts.tsgo, which
tsdown 0.23 no longer accepts as a boolean. @hono/mcp 0.3.2 imports
isJSONRPCErrorResponse, first shipped in @modelcontextprotocol/sdk 1.29.

Work in progress: src/rate-limit.test.ts still hangs with these versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
- Keep the prod @modelcontextprotocol/sdk range at ^1.24.3. The lockfile
  resolves 1.32.2, which satisfies the ^1.29.0 peer of @hono/mcp 0.3.2, so the
  published dependency range does not need to move.
- Answer an accepted notification from the mock MCP server with an empty 202.
  @hono/mcp 0.3 sends a JSON null body there, and under MSW the SDK client's
  cancel of that body never settles, which stalled every MCP handshake in the
  suite (the "session stall"). The spec and the real endpoint send no body.
- Raise the vitest and @vitest/coverage-v8 floors to ^4.1.0, the peer range of
  @fast-check/vitest 0.5 (it imports TestRunner, added in vitest 4.1).
- Turn off tsdown 0.23's new inlinedDependencies field so the published
  package.json keeps its shape; take the exports key order tsdown now writes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
tsdown 0.23 roots the unbundled output at src, so dist/src/tool.* became
dist/tool.*. The test looked for the old paths, found no build, and
skipped both optional peer checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
@glebedel
glebedel requested a review from a team as a code owner November 6, 2026 05:54
@glebedel glebedel self-assigned this Nov 6, 2026
@pkg-pr-new

pkg-pr-new Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/StackOneHQ/stackone-ai-node/@stackone/ai@399

commit: 56a542a

s2d2-s1 and others added 2 commits November 12, 2026 03:08
^0.137.0 on a 0.x package means >=0.137.0 <0.138.0, which would cut off
every consumer on an older or 1.x SDK. Only the Tool type is imported, and
it is structurally compatible from 0.72.1 through 1.7.0, so publish
>=0.72.1 <2.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
@glebedel

Copy link
Copy Markdown
Contributor Author

s2d2 fix pass (requested by guillaume@stackone.com in Slack): merged main (was behind) and widened the published @anthropic-ai/sdk peer range from ^0.137.0 (which on 0.x only matches 0.137.x) to >=0.72.1 <2.0.0, keeping the old lower bound. Only the Tool type is imported and it is structurally compatible on 0.72.1 and 1.7.0. Lockfile specifier updated; typecheck, src/tool tests and tsdown build pass locally. Repo skills: none in clone (rules read: git-workflow, development-workflow, pnpm-usage, typescript-patterns).

…-node-398

Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>

# Conflicts:
#	pnpm-lock.yaml
#	pnpm-workspace.yaml
Comment thread pnpm-lock.yaml Resolved
s2d2-s1 and others added 2 commits November 13, 2026 02:40
The lockfile resolved hono 4.13.14 and @hono/node-server 2.1.5 through
@modelcontextprotocol/sdk 1.32.2, plus hono 4.10.7 for the dev mock server.
Aikido flags 5 medium CVEs in hono (fixed in 4.13.16) and 2 in
@hono/node-server (fixed in 2.1.6).

- Dev catalog floor for hono goes to ^4.13.16, so the mock server and the MCP
  SDK share one hono
- Lockfile resolves hono 4.13.16 and @hono/node-server 2.1.6
- This also clears the hono-rate-limiter peer warning (it wants hono ^4.10.8)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
…-node-398

Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>

# Conflicts:
#	pnpm-workspace.yaml
@glebedel
glebedel merged commit 3d7d6cd into main Nov 13, 2026
31 checks passed
@glebedel
glebedel deleted the s2d2/deps/stackone-ai-node-398 branch November 13, 2026 11:44
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