This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
3.2.0
⚠️ Potentially breaking changes
- The following environment variables have been renamed to be more declarative:
VITE_ENABLE_SW
toVITE_SERVICE_WORKER
VITE_ENABLE_SWR
toVITE_STALE_WHILE_REVALIDATE
KIRBY_DEV_HOSTNAME
toKIRBY_DEV_HOSTNAME
KIRBY_SERVER_PORT
toKIRBY_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.