diff --git a/CHANGELOG.md b/CHANGELOG.md index e841c6a..a1b7f40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,4 +8,8 @@ project uses [Semantic Versioning](https://semver.org/). ### Added -- `@bquery/unplugin` — a bundler plugin for Vite, Rollup, webpack, Rspack and esbuild ([bQuery/bQuery#224](https://github.com/bQuery/bQuery/issues/224), developed in [bQuery/bQuery#278](https://github.com/bQuery/bQuery/pull/278)). It compiles `*.view.html` imports with the view compiler (HMR in Vite), generates the file-route manifest as `virtual:bquery/routes`, extracts i18n messages into the catalogs in watch mode (`virtual:bquery/messages` hot-reloads them), and in Vite dev adds a CSP nonce and an SSR middleware for a `render(request, ctx)` server entry. Requires `@bquery/bquery` 1.17.2 or later. +- `@bquery/unplugin` — a bundler plugin for Vite, Rollup, webpack, Rspack and esbuild ([bQuery/bQuery#224](https://github.com/bQuery/bQuery/issues/224), developed in [bQuery/bQuery#278](https://github.com/bQuery/bQuery/pull/278)). It compiles `*.view.html` imports with the view compiler (HMR in Vite), generates the file-route manifest as `virtual:bquery/routes`, extracts i18n messages into the catalogs in watch mode (`virtual:bquery/messages` hot-reloads them), and in Vite dev adds a CSP nonce and an SSR middleware for a `render(request, ctx)` server entry. Requires `@bquery/bquery` 1.18.0 or later. + +### Changed + +- Requires `@bquery/bquery` 1.18.0 or later (peer and dev dependency `^1.18.0`, was `^1.17.2`). `bq-on` handlers with several `;`-separated statements (`$event.preventDefault(); add()`) now always compile: the view compiler puts them in a separate statements map that the emitted module passes to `registerCompiledExpressions(expressions, statements)`, instead of leaving them to the runtime evaluator with a warning as 1.17.2 did. bQuery 1.18 also keeps the `` of full-page templates in its SSR renderers, so pages served by the SSR dev middleware no longer fall into quirks mode. diff --git a/README.md b/README.md index 6038587..22b4f3e 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ bun add -d @bquery/unplugin pnpm add -D @bquery/unplugin ``` -`@bquery/bquery` (`^1.17.2`) is a peer dependency. Install the bundler you use; +`@bquery/bquery` (`^1.18.0`) is a peer dependency. Install the bundler you use; each one (`vite`, `rollup`, `webpack`, `@rspack/core`, `esbuild`) is an optional peer dependency. @@ -153,6 +153,21 @@ keeps its status and headers, except `content-encoding`, `content-length` and hop-by-hop headers: its body is read decoded (as `fetch()` returns it), so those no longer describe what the middleware sends. Every `Set-Cookie` is kept. +bQuery's SSR renderers drop every `