Skip to content

Releases: iann838/workery

Release 1.2.1

16 Apr 20:58
Compare
Choose a tag to compare

Changes

  • minor adjustments to openapi security definition, now per route instead of global.

Release 1.2.0

10 Apr 02:40
Compare
Choose a tag to compare

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

05 Mar 21:07
Compare
Choose a tag to compare

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

25 Jan 19:40
Compare
Choose a tag to compare

Changes

  • bumped all 3 main dependency versions. Fixing #6
  • officially adding create-workery commands to docs. Closing #3
  • added support for multi-level apps middleware definition and auto merging. Closing #5

Release 1.1.2

07 Nov 15:38
Compare
Choose a tag to compare

Bug fixes:

  • path param not ignored in the default route summary in OpenAPI.

Release 1.1.1

07 Nov 04:05
Compare
Choose a tag to compare

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

14 Oct 16:31
Compare
Choose a tag to compare
  • fix: params altname and headers conversion

Release 1.0.2

14 Oct 02:18
Compare
Choose a tag to compare
  • fix: base args not correctly parsed

Release 1.0.1

13 Oct 23:33
Compare
Choose a tag to compare
  • fix: app basePath does not work with openapi.json in docs render

Release 1.0.0

18 Aug 20:07
Compare
Choose a tag to compare
v1.0.0

fix: npm publish auth fail