Skip to content

v1.2.2

Compare
Choose a tag to compare
@sejori sejori released this 29 Nov 12:18
· 16 commits to main since this release
181e82b

What's Changed

  • fix: async static transform by @sebringrose in #80
  • Cache route by @sebringrose in #81

You can now transform static content by receiving the Uint8 array of the content in an optional "transform" function supplied to the staticHandler.

Also the ResponseCache has been totally abstracted and the memoize handler logic has been moved into the cacher middleware. The cacher middleware has a slightly different implementation that uses only the request path in the cache item key, not the full url string.

Along with these changes there have been a couple of fixes and tidying ups in the RequestContext object as well as the cacher's key now including params as well as path.

Woop 🦆

Full Changelog: v1.2.1...v1.2.2