Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

3.2.0

Compare
Choose a tag to compare
@johannschopplich johannschopplich released this 20 Mar 09:40
· 162 commits to main since this release

⚠️ Potentially breaking changes

  • The following environment variables have been renamed to be more declarative:
    • VITE_ENABLE_SW to VITE_SERVICE_WORKER
    • VITE_ENABLE_SWR to VITE_STALE_WHILE_REVALIDATE
    • KIRBY_DEV_HOSTNAME to KIRBY_DEV_HOSTNAME
    • KIRBY_SERVER_PORT to KIRBY_DEV_PORT

Notable changes

  • Routes have been refactored to unify rendering HTML and JSON content by one function.
  • Add the MIME type to JSON preload requests – if the request doesn't match the given type for any reason, it is skipped
  • Use Kirby's pages cache instead of a namespaced cache bucket, thus on page and site updates Kirby handles flushing the cache, not the plugin itself anymore.
  • Pass the Kirby instance ($kirby) to the index template.
  • Use esbuild for the service worker generation script, thus dropping the terser dependency all along.