Skip to content

feat!: support promidas 5 - #67

Merged
F88 merged 1 commit into
mainfrom
feat/promidas-v5-2026-11-09
Nov 9, 2026
Merged

F88 merged 1 commit into
mainfrom
feat/promidas-v5-2026-11-09

Conversation

@F88

@F88 F88 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

Supports promidas 5.0.0, and requires it (peer ^5.0.0). promidas-utils 4.x stays for promidas 4.x.

promidas 5 changes (F88/promidas#158):

promidas 4 promidas 5
kind: 'cors' kind: 'browser_fetch'
code: 'CORS_BLOCKED' code: 'BROWSER_FETCH_FAILED'
details.res.code details.causeCode

Changes

  • lib/repository/snapshot-operation-failure-utils.ts: the message for CORS_BLOCKED is now for BROWSER_FETCH_FAILED, and 通信エラーコード shows details.causeCode. The text does not change
  • Tests: new names and shapes. Fixtures that promidas 5 no longer produces, such as causeCode: 'TIMEOUT', now use real cases
  • package.json: peer and dev promidas ^5.0.0
  • package-lock.json: only promidas changes. It starts from main instead of being regenerated, because npm 11 prunes entries that npm 10 requires
  • docs/api/repository.md, docs/installation.md (with a version table), CHANGELOG.md

Verification

With published promidas 5.0.0:

Check npm 10.9 npm 11.19
npm ci passed passed
Tests: 253 passed passed
  • test:exports: 8 passed
  • lint, typecheck, format:check, docs build: passed

With 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 shows APIトークンが設定されていません. Fetching, saving, and restoring a snapshot work.

Not verified: browsers, which need an app such as PROMIDAS-demo.

🤖 Generated with Claude Code

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

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@F88
F88 merged commit a925de9 into main Nov 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant