Releases: iann838/workery
Releases · iann838/workery
Release 1.2.1
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
allow
header 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
Router
class. - 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.
Release 1.0.3
- fix: params altname and headers conversion
Release 1.0.2
- fix: base args not correctly parsed
Release 1.0.1
- fix: app basePath does not work with openapi.json in docs render
Release 1.0.0
v1.0.0 fix: npm publish auth fail