Tags: BRIKEV/twd-cli
Tags
fix: regenerate lockfile on linux to sync @emnapi to 1.10.0 npm on macOS never installs @rolldown/binding-wasm32-wasi, so it leaves its pinned @emnapi/* transitive deps stale in the lock, breaking npm ci on Linux CI. Adds npm run lock:linux (Docker) to regenerate the lock on the platform CI actually uses. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix: forward mock Content-Type to contract validator (#5) * chore: update dependencies (openapi-mock-validator 0.2.0, twd-js 1.7.2, puppeteer 24.42.0) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * test: add image/* photo endpoint to petstore fixture * test: add failing test for Content-Type forwarding * fix: forward mock Content-Type to contract validator * test: add case-insensitivity and default tests for Content-Type * test: assert mock collector preserves responseHeaders Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: update version to v1.1.10 * chore(test-example-app): bump twd-js to 1.7.2 for smoke testing Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * test(test-example-app): add binary Content-Type smoke tests - Adds /products/{id}/thumbnail endpoint (image/*) to products-3.0.json - Adds 4 mocks exercising the new Content-Type forwarding: - image/png and image/jpeg against image/* spec → should validate cleanly - application/xml against JSON-only /api/products → should warn (MISSING_SCHEMA) - No responseHeaders against image-only endpoint → should warn (defaults to JSON, no match) All four endpoints use contract mode 'warn' so CI does not fail on the intentional negative cases. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(lockfile): regenerate package-lock.json to restore @emnapi entries CI was failing with `npm ci` errors because the previous dep-bump commit's lockfile was missing top-level @emnapi/core and @emnapi/runtime entries that are required by transitive peers of @napi-rs/wasm-runtime. Regenerating via a fresh `npm install` restores them. All 177 tests pass and `npm ci` now succeeds locally. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
PreviousNext