Repository navigation
feat!: support promidas 5 - #67
Merged
Merged
Conversation
promidas 5 renames kind 'cors' to 'browser_fetch' and code 'CORS_BLOCKED' to 'BROWSER_FETCH_FAILED', and moves the code of the error from details.res.code to details.causeCode. Follow both. BREAKING CHANGE: promidas ^5.0.0 is required. Use promidas-utils 4.x with promidas 4.x. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Summary
Supports promidas 5.0.0, and requires it (peer
^5.0.0).promidas-utils4.x stays for promidas 4.x.promidas 5 changes (F88/promidas#158):
kind: 'cors'kind: 'browser_fetch'code: 'CORS_BLOCKED'code: 'BROWSER_FETCH_FAILED'details.res.codedetails.causeCodeChanges
lib/repository/snapshot-operation-failure-utils.ts: the message forCORS_BLOCKEDis now forBROWSER_FETCH_FAILED, and通信エラーコードshowsdetails.causeCode. The text does not changecauseCode: 'TIMEOUT', now use real casespackage.json: peer and devpromidas ^5.0.0package-lock.json: onlypromidaschanges. It starts frommaininstead of being regenerated, because npm 11 prunes entries that npm 10 requiresdocs/api/repository.md,docs/installation.md(with a version table),CHANGELOG.mdVerification
With published promidas 5.0.0:
npm citest:exports: 8 passedformat:check, docs build: passedWith a packed build of the same promidas 5.0.0, in Node.js against a local server and the real API: a dropped body, a timeout, a 401, and a refused connection show the expected messages with
分類and the code. A missing token showsAPIトークンが設定されていません. Fetching, saving, and restoring a snapshot work.Not verified: browsers, which need an app such as PROMIDAS-demo.
🤖 Generated with Claude Code