From ee0f159b7edfab3d41a3c47d81ccde0c7381048f Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Thu, 21 May 2026 17:43:10 +0800 Subject: [PATCH 1/2] fix(deps): drop dead hono devDeps from @snowluma/onebot, align core to ^4.12.18 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `packages/onebot` declared `hono` and `@hono/node-server` as devDeps but never imported either — they were leftover scaffolding from when onebot was carved out of `@snowluma/core`. Combined with dependabot's hono bump only landing on core's pin (4.12.14 → 4.12.18 in cb06624), this left two distinct peer-dep resolutions of `@hono/node-server` in the lockfile (`(hono@4.12.14)` for onebot, `(hono@4.12.18)` for core). On the dev→main merge the auto-resolver kept main's snapshot list, dropping the `(hono@4.12.14)` variant onebot still referenced — so v1.9.1 shipped with an inconsistent lockfile and CI's `pnpm install --frozen-lockfile` blew up with `ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY: no entry for '@hono/node-server@1.19.14(hono@4.12.14)'`. Fix: - Remove `hono` + `@hono/node-server` from onebot (verified zero source imports — only matches were `honour` / `WebHonorType` false hits). - Bump core's `hono` pin to `^4.12.18` so dev matches what dependabot already landed on main (otherwise the drift comes back on next merge). - Regenerate pnpm-lock.yaml — now resolves to a single `@hono/node-server@1.19.14(hono@4.12.21)` snapshot. --- packages/core/package.json | 2 +- packages/onebot/package.json | 2 -- pnpm-lock.yaml | 22 ++++++++-------------- 3 files changed, 9 insertions(+), 17 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 250e168b..0a2b6dd1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -53,7 +53,7 @@ "@rollup/plugin-node-resolve": "^16.0.3", "@types/node": "^24.12.2", "cross-env": "^10.1.0", - "hono": "^4.12.14", + "hono": "^4.12.18", "tsx": "^4.21.0", "typescript": "catalog:", "vite": "catalog:", diff --git a/packages/onebot/package.json b/packages/onebot/package.json index a08313bf..64a8c113 100644 --- a/packages/onebot/package.json +++ b/packages/onebot/package.json @@ -95,9 +95,7 @@ "@snowluma/websocket": "workspace:*" }, "devDependencies": { - "@hono/node-server": "^1.19.14", "@types/node": "^24.12.2", - "hono": "^4.12.14", "typescript": "catalog:", "vite": "catalog:", "vitest": "^4.1.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 15ab33fd..65971a05 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -111,7 +111,7 @@ importers: devDependencies: '@hono/node-server': specifier: ^1.19.14 - version: 1.19.14(hono@4.12.14) + version: 1.19.14(hono@4.12.21) '@rollup/plugin-node-resolve': specifier: ^16.0.3 version: 16.0.3(rollup@4.60.4) @@ -122,8 +122,8 @@ importers: specifier: ^10.1.0 version: 10.1.0 hono: - specifier: ^4.12.14 - version: 4.12.14 + specifier: ^4.12.18 + version: 4.12.21 tsx: specifier: ^4.21.0 version: 4.21.0 @@ -164,15 +164,9 @@ importers: specifier: workspace:* version: link:../websocket devDependencies: - '@hono/node-server': - specifier: ^1.19.14 - version: 1.19.14(hono@4.12.14) '@types/node': specifier: ^24.12.2 version: 24.12.2 - hono: - specifier: ^4.12.14 - version: 4.12.14 typescript: specifier: 'catalog:' version: 6.0.2 @@ -2178,8 +2172,8 @@ packages: hermes-parser@0.25.1: resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} - hono@4.12.14: - resolution: {integrity: sha512-am5zfg3yu6sqn5yjKBNqhnTX7Cv+m00ox+7jbaKkrLMRJ4rAdldd1xPd/JzbBWspqaQv6RSTrgFN95EsfhC+7w==} + hono@4.12.21: + resolution: {integrity: sha512-uV63apnb0kyPtAUwoWgaGh9HyIFcv8lgmzPZSiTBQAFOFGIzka5EZ1dZocmGnn0XdX0+XTqJ6Tqv7selMuGLRQ==} engines: {node: '>=16.9.0'} ieee754@1.2.1: @@ -3208,9 +3202,9 @@ snapshots: '@floating-ui/utils@0.2.11': {} - '@hono/node-server@1.19.14(hono@4.12.14)': + '@hono/node-server@1.19.14(hono@4.12.21)': dependencies: - hono: 4.12.14 + hono: 4.12.21 '@humanfs/core@0.19.1': {} @@ -4543,7 +4537,7 @@ snapshots: dependencies: hermes-estree: 0.25.1 - hono@4.12.14: {} + hono@4.12.21: {} ieee754@1.2.1: {} From e08816747602721d361683a0f900695779c3e03a Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Thu, 21 May 2026 17:50:15 +0800 Subject: [PATCH 2/2] fix(lockfile): rebase against origin/main to unblock PR #63 auto-merge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous commit (ee0f159) regenerated the lockfile starting from dev's pre-fix state, which diverged structurally from main's lockfile (main carried dependabot's hono 4.12.18 bump that dev never inherited). GitHub's auto-merger saw the two lockfiles as touching overlapping hunks and marked PR #63 CONFLICTING, blocking the bot's auto-merge flow into main. Re-seed the lockfile from origin/main (`git show origin/main:pnpm-lock.yaml`) then run `pnpm install` again — this time the regeneration starts from main's already-bumped state, so the only delta is the 6 lines removed from `packages/onebot`'s importer entry (no snapshot churn). PR #63 becomes a clean fast-forward for the bot to merge. No code or package.json change here; this is purely a lockfile rebase. Verified: `pnpm install --frozen-lockfile` passes locally against the new lockfile. --- pnpm-lock.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 65971a05..a535946a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -111,7 +111,7 @@ importers: devDependencies: '@hono/node-server': specifier: ^1.19.14 - version: 1.19.14(hono@4.12.21) + version: 1.19.14(hono@4.12.18) '@rollup/plugin-node-resolve': specifier: ^16.0.3 version: 16.0.3(rollup@4.60.4) @@ -123,7 +123,7 @@ importers: version: 10.1.0 hono: specifier: ^4.12.18 - version: 4.12.21 + version: 4.12.18 tsx: specifier: ^4.21.0 version: 4.21.0 @@ -2172,8 +2172,8 @@ packages: hermes-parser@0.25.1: resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} - hono@4.12.21: - resolution: {integrity: sha512-uV63apnb0kyPtAUwoWgaGh9HyIFcv8lgmzPZSiTBQAFOFGIzka5EZ1dZocmGnn0XdX0+XTqJ6Tqv7selMuGLRQ==} + hono@4.12.18: + resolution: {integrity: sha512-RWzP96k/yv0PQfyXnWjs6zot20TqfpfsNXhOnev8d1InAxubW93L11/oNUc3tQqn2G0bSdAOBpX+2uDFHV7kdQ==} engines: {node: '>=16.9.0'} ieee754@1.2.1: @@ -3202,9 +3202,9 @@ snapshots: '@floating-ui/utils@0.2.11': {} - '@hono/node-server@1.19.14(hono@4.12.21)': + '@hono/node-server@1.19.14(hono@4.12.18)': dependencies: - hono: 4.12.21 + hono: 4.12.18 '@humanfs/core@0.19.1': {} @@ -4537,7 +4537,7 @@ snapshots: dependencies: hermes-estree: 0.25.1 - hono@4.12.21: {} + hono@4.12.18: {} ieee754@1.2.1: {}