v2.0.0
v2.0.0 — Hybrid Redoc + Swagger “Try it” • CDN fix (breaking)
🚨 Breaking
- All prior versions are no longer functional because the legacy Redoc CDN was discontinued.
This release switches to a supported Redoc bundle and introduces a new hybrid docs view. Upgrade is required.
✨ What’s new
- Hybrid docs view: Redoc OSS for reading + a slide-in Swagger UI “Try it” panel.
- Context-aware console:
- Follows Redoc links (
#/tag/...and#/tag/.../operation/...). - When scrolling, detects the visible tag/operation and updates the console automatically.
- Follows Redoc links (
- Extra request headers (JSON): Add arbitrary headers (e.g.,
{"X-Tenant":"acme"}) in the panel header.
Persisted tolocalStorageand injected into every Swagger request. - Click-to-copy & Download: One-click copy of response JSON and a Download button on Swagger responses.
- Cleaner Swagger header: Reduced title size for a tighter look.
- Extensive inline documentation in the Blade view to explain selectors, options, and fallbacks.
🛠 Fixes
- Redoc CDN 404 (e.g.,
Not found: /@redocly/reference-docs.../redoc.standalone.js).
Now usinghttps://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js.
🔧 Changed
- Updated default Markdown intro to document the hybrid model, quick start, and tips.
- Safer fetch normalization that adds
Accept: application/jsonto/apicalls when missing.
📦 How to upgrade (required)
- Update package
composer update ovac/idoc
What's Changed
- CHORE: Fix typos by @dandelosreyes in #45
- Laravel 12.x Compatibility by @laravel-shift in #50
- Issue Resolved #47 by @hassaans208 in #48
New Contributors
- @dandelosreyes made their first contribution in #45
- @hassaans208 made their first contribution in #48
Full Changelog: v1.7.0...v2.0.0