Download Latest Version v10.1.0 source code.zip (22.9 MB) Google Add to Preferred Sources
Home / v10.1.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-10-02 2.2 kB
v10.1.0 source code.tar.gz 2026-10-02 22.2 MB
v10.1.0 source code.zip 2026-10-02 22.9 MB
Totals: 3 Items   45.1 MB 2

New Features

  • In-Browser Mock Server: Added zero-dependency, in-browser OpenAPI mock server enabled via mock-server="true" — prototype frontends before backend APIs are ready without Prism, Docker, or external proxies.
  • Host Application Interception: Transparently intercepts both RapiDoc's internal "TRY" console and any in-page fetch() or XMLHttpRequest calls made by host frontend apps (React, Vue, Vite, etc.) with zero CORS issues.
  • Multi-Status Code Simulation: Added mock-server-status-code and mock-server-status-strategy with first, cycle (round-robin per endpoint for testing retry/backoff logic), and random (chaos engineering).
  • Simulated Network Latency: Added mock-server-delay to simulate artificial network delays in milliseconds for testing loading spinners, skeleton states, and optimistic UI transitions.
  • DevTools Intercept Logging: Added mock-server-log to output matched endpoints, synthetic status codes, and latency timing to the browser console.
  • Visual Mock Indicator: Added a prominent emerald MOCK ACTIVE badge in the API Server selector bar when mocking is active.

Bug Fixes & Schema Improvements

  • Fixed generateExample bug where a singular example was shadowed when examples was passed as an empty object.
  • Fixed handling of falsy schema values (0, false, "") in example generation.
  • Prevented combinatorial explosion in mergePropertyExamples by capping combinations at 10 to avoid performance freezes on deeply nested schemas.
  • Strictly omitted writeOnly fields from mock response payloads (preventing passwords and secrets from leaking into responses).
  • Improved MIME type formatting with native support for YAML content types and cleaner XML indentation.

Other Chores & Documentation

  • Added new interactive Mock Server Showcase page (/mock-server) with an in-page fetch() testing console.
  • Added comprehensive Starlight documentation guide under Advanced Guides → In-Browser Mock Server.
  • Updated API reference table with all new mock server attributes.
  • Added native Node.js unit test suite (npm run test:unit) covering schema example generation, edge cases, and interception.
Source: README.md, updated 2026-10-02