Skip to content

Workery 1.0 → 1.1

Deprecated

Workery has been reworked and renamed to Cerces. With major API changes and improvements that are outdated in this migration guide. Migrating to Cerces is highly encouraged.

Contains 3 minor breaking changes.


basePath -> rootPath replaced

  • basePath has been removed due to not meeting standard.
  • rootPath has been added as a replacement for basePath and now meets standard and supports Cloudflare Workers route patterns.
  • While functionality did not change much, the generated schemas and APIs is drastically different, this breaking change was intended to inform users that they are different.

Middleware.of removed

  • Init parameter of has been removed from Middleware, users should simply declare the env type using generic Middleware<Env>.

App.tags -> Apps.tagsInfo renamed

  • Init parameter and property tags of App renamed to tagsInfo due to naming conflict with base class Router.