Repository navigation
Fix Wrangler workers-types peer compatibility - #18
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
Dependabot 将
wrangler更新到4.156.0后,仓库仍锁定@cloudflare/workers-types 5.20261019.1。本地npm ci和npm ls将该版本标记为不满足 Wrangler 的可选 peer 要求^5.20261023.1。修复
将
@cloudflare/workers-types与 Wrangler 的最低兼容版本对齐到5.20261023.1,只更新package.json和package-lock.json。验证
npm cinpm ls wrangler undici @cloudflare/workers-types --all --depth=2npm test(119 个测试文件,1152 个测试)npm run typechecknpm run typecheck:workernpm run test:workernpm run build:workernpm run lintnpm run format:check