chore: version 0.5.0 and install pin

- package.json version 0.5.0, README install line #v0.5.0 (L4 CR-01)
- Upgrading from 0.4: the HTML sitemap pages, the catch-all rule and
  seo.htmlSitemap.overCatchAll (L4 WR-04); an app without pages needs no
  htmlSitemap: false any more
- the link:../vue-seo-layer dependency stays until the release swap
This commit is contained in:
Jakub Zych
2026-11-04 22:54:59 +01:00
parent 8b5da6762c
commit a7602c9659
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
A Nuxt 4 layer that renders a menu of the SummerCMS menu plugin as an accessible site navigation.
```bash
pnpm add git+https://git.golem15.com/golem15/vue-menu-layer.git#v0.2.0
pnpm add git+https://git.golem15.com/golem15/vue-menu-layer.git#v0.5.0
```
## Overview
@@ -81,7 +81,7 @@ The purge route `POST /api/__site__/cache/purge` that the SummerCMS backend call
- The layer extends vue-seo-layer. Nothing is needed in the app's `extends`, but every page now resolves through the SEO plugin (`GET /_seo/api/v1/resolve`) and takes its head from the answer; set `NUXT_SEO_API_BASE` when the backend is not on `http://127.0.0.1:8096`, or `seo: { cms: false }` for a site without the SEO plugin.
- `server/api/__site__/cache/purge.post.ts`, `server/lib/siteCachePurge.ts` and `server/plugins/site-cache-purge.ts` are removed from this layer: the same route, library and plugin come from vue-seo-layer, with the same environment variables. An app that imported `server/lib/siteCachePurge.ts` from this layer imports it from vue-seo-layer.
- An app without pages (only `app.vue`) sets `seo: { htmlSitemap: false }`: otherwise the SEO layer's HTML sitemap pages are its only routes, which turns the router on and makes every other path answer 404.
- **HTML sitemap pages.** The layer brings vue-seo-layer's HTML sitemap pages (pl `/mapa-strony`, en `/sitemap` by default, set in `seo.htmlSitemap.paths`). An app that renders its pages through a root catch-all (`pages/[...slug].vue`, as with the pages plugin) gets none, so a CMS page at such a path is not shadowed, unless it sets `seo.htmlSitemap.overCatchAll: true`; an app with its own page at such a path keeps its page; `seo: { htmlSitemap: false }` turns them off. An app without pages of its own (only `app.vue`) gets none and needs no setting.
### Upgrading from 0.3

View File

@@ -1,6 +1,6 @@
{
"name": "vue-menu-layer",
"version": "0.4.0",
"version": "0.5.0",
"private": true,
"type": "module",
"main": "./nuxt.config.ts",