Releases: ianhco/cerces
Releases · ianhco/cerces
Release 2.0.1-beta.8
v2.0.1-beta.8 feat: better errors on disallowed param names and type resolution on …
Release 2.0.1-beta.7
v2.0.1-beta.7 fix: query param api consistency
v2.0.1-beta.6
fix: force peer as hard deps
Release 2.0.1-beta.5
v2.0.1-beta.5 fix: actions npm publish
Release 1.2.1
Changes
- minor adjustments to openapi security definition, now per route instead of global.
Release 1.2.0
Changes
Contains 3 new features (1 potentially breaking).
App.securitySchemes
App.security
Route.security
- Now supports defining OpenAPI security schemes, allowing proper authentication definitions on schemas and interactive Authorize feature on Swagger. See Authentication.
Dependency Caching
- Dependency handler responses will now be cached and reused during parameter resolution for requests, allowing that the same dependency if declared multiple times will execute once per request, reducing complexity. Marked as potentailly breaking because the caching could be unwanted behaviour, to disable caching, set
useCache: false.
Schema Exclusion for Browser Enforced Headers
- Some headers are ignored, or not sent by the browser due to security or protocol enforcement. These headers under normal circumstances should be excluded from the OpenAPI parameters schema, this does not affect route implementations. See Basic Parameters.
Release 1.1.5
Changes
- fix: middleware not run if route not found.
- fix: docs pages UI render does not request correct openapi.json if rootPath is provided.
- fix: 405 method not found should return an
allowheader with available methods. - fix: cors middleware intercepting all options methods when not needed.
Release 1.1.3
Release 1.1.2
Bug fixes:
- path param not ignored in the default route summary in OpenAPI.
Release 1.1.1
New features:
- Support for big app multi file structuring via
Routerclass. - Support for app / router wide default response schemas.
- Support for app / router wide OpenAPI tags and inclusion.
- Root path now supports Cloudflare Workers route patterns.
Bug fixes:
- Path "/" shows incorrectly on Swagger and OpenAPI document.
- Dependency after-request hook Later was called even when a non response was thrown.
- A few more internal non-critical bug fixes.
Test cases were increased to 75.