diff --git a/modules/homepage-head/assets.server.ts b/modules/homepage-head/assets.server.ts new file mode 100644 index 00000000..51ff4347 --- /dev/null +++ b/modules/homepage-head/assets.server.ts @@ -0,0 +1,17 @@ +import { defineNitroPlugin } from 'nitropack/runtime' +import { buildAssetsURL } from '#internal/nuxt/paths' +import assets from '#skilld-head-assets' + +export default defineNitroPlugin((nitro) => { + nitro.hooks.hook('render:html', (html, { event, streaming }) => { + const [path, query] = event.path.split('?', 2) + const pilot = path === '/' && new URLSearchParams(query).get('head') === 'lazy' + if (!streaming && pilot) { + html.head.push(``) + } + else { + const href = buildAssetsURL(assets.eager).replaceAll('&', '&').replaceAll('"', '"') + html.head.push(``) + } + }) +}) diff --git a/modules/homepage-head/module.ts b/modules/homepage-head/module.ts new file mode 100644 index 00000000..35846a48 --- /dev/null +++ b/modules/homepage-head/module.ts @@ -0,0 +1,82 @@ +import { join } from 'node:path' +import { addTypeTemplate, createResolver, defineNuxtModule } from '@nuxt/kit' + +const stockPlugin = /[/\\]head[/\\]runtime[/\\]plugins[/\\]unhead(?:-stream)?\.client\.js$/ +const assetName = /^(?:[\w.-]+\/)*[\w.-]+\.m?js$/ +const assetsId = '#skilld-head-assets' + +export default defineNuxtModule({ + meta: { name: 'skilld-homepage-head' }, + setup(_, nuxt) { + if (nuxt.options.dev || process.env.NODE_ENV === 'test') + return + + const { resolve } = createResolver(import.meta.url) + const client = resolve('./runtime/head.client') + const assets = { eager: '', runtime: '', options: '' } + let eagerSource = '' + + nuxt.hook('app:resolve', (app) => { + const head = app.plugins.find(plugin => stockPlugin.test(plugin.src)) + const scripts = app.plugins.find(plugin => plugin.src.endsWith('/modules/@nuxt-scripts/plugin.mjs')) + if (!head || !scripts) + throw new Error('Homepage head requires Nuxt head and the Cloudflare Analytics registry plugin.') + + // Cloudflare Analytics is the only registry entry. SSR emits its beacon once. + scripts.mode = 'server' + eagerSource = head.src.replaceAll('\\', '/') + nuxt.options.alias['#skilld-eager-head'] = head.src + nuxt.options.alias['#skilld-install-head'] = join(head.src, '../../install-client-head.js') + head.src = client + }) + + nuxt.hook('build:manifest', (manifest) => { + if (!eagerSource) + throw new Error('Homepage head could not find the stock Nuxt client plugin.') + + for (const [key, chunk] of Object.entries(manifest)) { + if (!assetName.test(chunk.file)) + continue + // Rolldown can share the plugin options between the eager and lazy entries. + if ([key, chunk.src, chunk.name].some(source => source?.includes('unhead-options'))) { + assets.options = chunk.file + continue + } + if (!chunk.isDynamicEntry) + continue + + const sources = [key, chunk.src ?? ''].map(source => source.replaceAll('\\', '/').split('?')[0]!) + if (sources.some(source => eagerSource.endsWith(`/${source.replace(/^(?:\.\.\/)+/, '')}`) || source === eagerSource)) { + assets.eager = chunk.file + } + else if (sources.some(source => source.endsWith('/node_modules/unhead/dist/chunks/runtime.mjs'))) { + assets.runtime = chunk.file + } + else { + continue + } + + chunk.preload = false + chunk.prefetch = false + } + + if (Object.values(assets).some(file => !file)) + throw new Error(`Homepage head is missing an emitted chunk: ${JSON.stringify(assets)}`) + }) + + addTypeTemplate({ + filename: 'types/skilld-head-assets.d.ts', + getContents: () => `declare module '${assetsId}' { + const assets: { eager: string, runtime: string, options: string } + export default assets + }`, + }, { nuxt: false, nitro: true }) + + nuxt.hook('nitro:config', (config) => { + config.virtual ||= {} + config.virtual[assetsId] = () => `export default ${JSON.stringify(assets)}` + config.plugins ||= [] + config.plugins.push(resolve('./assets.server')) + }) + }, +}) diff --git a/modules/homepage-head/runtime/head.client.ts b/modules/homepage-head/runtime/head.client.ts new file mode 100644 index 00000000..2a0e61d1 --- /dev/null +++ b/modules/homepage-head/runtime/head.client.ts @@ -0,0 +1,139 @@ +import { headSymbol } from '@unhead/vue' +import { HookableCore } from 'hookable' +import { createHead } from 'unhead/lazy' +import { defineNuxtPlugin } from '#app/nuxt' +import { buildAssetsURL } from '#build/paths.mjs' +import { installClientHead } from '#skilld-install-head' + +declare global { + interface Window { + /** Set before navigation to compare against Nuxt's eager renderer with the same SSR response. */ + __SKILLD_EAGER_HEAD__?: boolean + } +} + +export default defineNuxtPlugin({ + name: 'nuxt:head', + enforce: 'pre', + async setup(nuxtApp): Promise { + const assets = document.head.querySelector('meta[name="skilld-head-assets"]') + if (!assets || !nuxtApp.payload.serverRendered || window.__SKILLD_EAGER_HEAD__) { + assets?.remove() + const { default: plugin } = await import('#skilld-eager-head') + await plugin(nuxtApp) + return + } + + const hooks = new HookableCore() + const importPlugins = () => import('#build/unhead-options.mjs').then(options => options.default.plugins) + let loadingPlugins: ReturnType | undefined + const options = { + disableDefaults: true, + hookable: hooks, + lazyPlugins: () => loadingPlugins ?? importPlugins(), + } + const head = createHead(options) + let hydrated = false + let loading: Promise | undefined + + function load() { + if (loading) + return loading + + performance.mark('skilld-head-load-start') + loadingPlugins = importPlugins() + loading = Promise.all([head.load(), loadingPlugins]).then(() => { + performance.mark('skilld-head-load-end') + }).catch((error: unknown) => { + loading = undefined + loadingPlugins = undefined + console.error('Homepage head could not load', error) + }) + return loading + } + + const push = head.push + head.push = (input, options) => { + const entry = push(input, options) + const { patch, dispose } = entry + if (hydrated || options?.onRendered) + void load() + entry.patch = (input) => { + patch(input) + if (hydrated) + void load() + } + entry.dispose = () => { + dispose() + if (hydrated) + void load() + } + return entry + } + + const use = head.use + head.use = (plugin) => { + use(plugin) + if (hydrated) + void load() + } + hooks.hook('script:updated', ({ script }) => { + if (script.status === 'loading') + void load() + }) + + const installableHead = Object.assign(head, { + install(app: typeof nuxtApp.vueApp) { + app.config.globalProperties.$unhead = app.config.globalProperties.$head = head + app.provide(headSymbol, head) + }, + }) + // Nuxt installs only push, hooks, render and install before the shell activates. + installClientHead(nuxtApp, installableHead as unknown as Parameters[1]) + + const connection = (navigator as Navigator & { connection?: { rtt?: number } }).connection + const rtt = connection?.rtt + if (!rtt || rtt >= 150) { + const warm = () => { + if (loading) + return + performance.mark('skilld-head-warm') + for (const file of assets.content.split(' ')) { + const link = document.createElement('link') + link.rel = 'modulepreload' + link.setAttribute('fetchpriority', 'low') + link.crossOrigin = '' + link.href = buildAssetsURL(file) + document.head.appendChild(link) + } + } + // Hydration can last until the first click on a slow connection. + if ('requestIdleCallback' in globalThis) + requestIdleCallback(warm, { timeout: 500 }) + else + setTimeout(warm) + } + assets.remove() + + nuxtApp.hook('app:suspense:resolve', () => { + if (hydrated) + return + head.finishHydration() + hydrated = true + performance.mark('skilld-head-hydrated') + }) + nuxtApp.hook('app:created', () => { + nuxtApp.$router.beforeEach((to, from) => { + if (from.matched.length && to.path !== from.path) + void load() + }) + }) + nuxtApp.hook('page:start', () => { + if (hydrated) + void load() + }) + nuxtApp.hook('app:error', () => { + void load() + }) + }, +}) diff --git a/nuxt.config.ts b/nuxt.config.ts index b6b8dafe..0196e659 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -82,6 +82,7 @@ export default defineNuxtConfig({ '@nuxt/ui', '@nuxt/fonts', '@nuxt/scripts', + './modules/homepage-head/module.ts', '@nuxtjs/seo', '@nuxtjs/mcp-toolkit', '@nuxt/a11y', diff --git a/package.json b/package.json index cb661dc8..3e0645c6 100644 --- a/package.json +++ b/package.json @@ -114,17 +114,20 @@ "@nuxtjs/mcp-toolkit": "catalog:", "@playwright/test": "catalog:", "@types/node": "catalog:", + "@unhead/vue": "catalog:", "@vue/test-utils": "catalog:", "axe-core": "catalog:", "better-sqlite3": "catalog:", "eslint": "catalog:", "eslint-plugin-harlanzw": "catalog:", "happy-dom": "catalog:", + "hookable": "catalog:", "lint-staged": "catalog:", "nuxtseo-devtools-host": "catalog:", "site-typecheck": "workspace:*", "tsx": "catalog:", "typescript": "catalog:", + "unhead": "catalog:", "vitest": "catalog:", "vue-tsc": "catalog:", "wrangler": "catalog:" diff --git a/patches/@nuxt__scripts@1.3.10.patch b/patches/@nuxt__scripts@1.3.10.patch new file mode 100644 index 00000000..a78b8ce1 --- /dev/null +++ b/patches/@nuxt__scripts@1.3.10.patch @@ -0,0 +1,13 @@ +diff --git a/dist/runtime/registry/cloudflare-web-analytics.js b/dist/runtime/registry/cloudflare-web-analytics.js +index 8deda48f1a57cc86890d8569d4f785e74a3c8458..2452bf75f13d33c7374d704155cc9c1c92c0b0e5 100644 +--- a/dist/runtime/registry/cloudflare-web-analytics.js ++++ b/dist/runtime/registry/cloudflare-web-analytics.js +@@ -11,7 +11,7 @@ export function useScriptCloudflareWebAnalytics(_options) { + schema: import.meta.dev ? CloudflareWebAnalyticsOptions : void 0, + scriptOptions: { + // we want to load earlier so that the web vitals reports are correct +- trigger: "client", ++ trigger: options.scriptOptions?.trigger ?? "client", + use() { + return { __cfBeacon: window.__cfBeacon }; + } diff --git a/patches/unhead@3.4.3.patch b/patches/unhead@3.4.3.patch new file mode 100644 index 00000000..0df3105a --- /dev/null +++ b/patches/unhead@3.4.3.patch @@ -0,0 +1,1285 @@ +diff --git a/dist/chunks/devCheck.mjs b/dist/chunks/devCheck.mjs +new file mode 100644 +index 0000000000000000000000000000000000000000..f4d8fb2deaab586dde51057d9c0dec9e4ffc14d4 +--- /dev/null ++++ b/dist/chunks/devCheck.mjs +@@ -0,0 +1,134 @@ ++import { c as createUnhead, r as resolveTags, H as HasElementTags, i as isMetaArrayDupeKey, t as tagWeight, n as normalizeProps, d as dedupeKey, h as hashTag } from '../shared/unhead.QUR5kIxs.mjs'; ++import 'unhead/utils'; ++ ++const WARNED = "unhead:lazy-warned"; ++function readWarned(view) { ++ try { ++ return new Set(JSON.parse(view?.sessionStorage.getItem(WARNED) || "[]")); ++ } catch { ++ return /* @__PURE__ */ new Set(); ++ } ++} ++function saveWarned(view, warned) { ++ try { ++ view?.sessionStorage.setItem(WARNED, JSON.stringify([...warned])); ++ } catch { ++ } ++} ++const FIX = `It applies when the framework loads the head. Push the same input on the server and the client, or call head.load().`; ++function attr(value) { ++ if (value === false || value == null || typeof value === "function") ++ return void 0; ++ if (value === true) ++ return ""; ++ if (value instanceof Set) ++ return [...value].join(" "); ++ if (value instanceof Map) ++ return [...value].map(([k, v]) => `${k}:${v}`).join(";"); ++ return String(value); ++} ++function label(tag) { ++ if (tag.tag === "htmlAttrs") ++ return ""; ++ if (tag.tag === "bodyAttrs") ++ return ""; ++ const p = tag.props; ++ const id = ["name", "property", "http-equiv", "charset", "rel", "src", "id"].filter((k) => p[k] != null && p[k] !== false).map((k) => `${k}="${attr(p[k])}"`); ++ if (p.rel && p.href) ++ id.push(`href="${p.href}"`); ++ return `<${[tag.tag, ...id].join(" ")}>`; ++} ++function indexDocument(document) { ++ const index = /* @__PURE__ */ new Map(); ++ for (const el of [...document.head.children, ...document.body.children]) { ++ const tag = el.tagName.toLowerCase(); ++ if (!HasElementTags.has(tag)) ++ continue; ++ const props = { innerHTML: el.innerHTML }; ++ for (const n of el.getAttributeNames()) ++ props[n] = el.getAttribute(n); ++ const next = normalizeProps({ tag, props: {} }, props); ++ next.key = el.getAttribute("data-hid") || void 0; ++ const dedupe = dedupeKey(next) || hashTag(next); ++ let k = dedupe; ++ let c = 1; ++ while (index.has(k)) ++ k = `${dedupe}:${c++}`; ++ index.set(k, el); ++ } ++ return index; ++} ++function differences(tag, el) { ++ const out = []; ++ const props = tag.props; ++ for (const k in props) { ++ const v = props[k]; ++ if (k === "class" && v instanceof Set) { ++ if ([...v].some((c) => !el.classList.contains(c))) ++ out.push("class"); ++ } else if (k === "style" && v instanceof Map) { ++ if ([...v].some(([sk, sv]) => el.style.getPropertyValue(sk) !== sv)) ++ out.push("style"); ++ } else if (!(k[0] === "o" && k[1] === "n")) { ++ const value = attr(v); ++ if (value !== void 0 && el.getAttribute(k) !== value) ++ out.push(k); ++ } ++ } ++ if (tag.textContent != null && tag.textContent !== "" && String(tag.textContent) !== el.textContent) ++ out.push("textContent"); ++ if (tag.innerHTML != null && tag.innerHTML !== "" && String(tag.innerHTML) !== el.innerHTML) ++ out.push("innerHTML"); ++ return out; ++} ++function checkHydratedHead(options, queue) { ++ const document = options.document ?? globalThis.document; ++ if (!document || options.lazyPlugins || options.plugins?.length || queue.plugins.length) ++ return; ++ const head = createUnhead(() => false, { document, propResolvers: options.propResolvers, _tagWeight: tagWeight }); ++ const sources = {}; ++ for (const [id, entry] of queue.entries) { ++ if (!entry.disposed) { ++ head.push(entry.input, { ...entry.options, _index: id }); ++ sources[id] = entry.source; ++ } ++ } ++ const tags = resolveTags(head); ++ const index = indexDocument(document); ++ const counter = {}; ++ const warned = readWarned(document.defaultView); ++ for (const tag of tags) { ++ let problem; ++ if (tag.tag === "title") { ++ if (String(tag.textContent ?? "") !== document.title) ++ problem = `differs from the server head: "${tag.textContent}" on the client, "${document.title}" in the document`; ++ } else if (tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs") { ++ const diff = differences(tag, tag.tag === "htmlAttrs" ? document.documentElement : document.body); ++ if (diff.length) ++ problem = `differs from the server head in ${diff.join(", ")}`; ++ } else if (HasElementTags.has(tag.tag)) { ++ const count = counter[tag._d] || 0; ++ const id = (count ? `${tag._d}:${count}` : tag._d) || tag._h; ++ if (tag.tag === "meta" && tag._d && isMetaArrayDupeKey(tag._d)) ++ counter[tag._d] = count + 1; ++ const el = index.get(id); ++ const diff = el && differences(tag, el); ++ if (!el) ++ problem = "is missing from the server head"; ++ else if (diff.length) ++ problem = `differs from the server head in ${diff.join(", ")}`; ++ } ++ if (!problem) ++ continue; ++ const entry = tag._p === void 0 ? void 0 : tag._p >> 10; ++ const source = entry === void 0 ? "" : ` Pushed by ${sources[entry] || `entry ${entry}`}.`; ++ const key = label(tag) + source; ++ if (warned.has(key)) ++ continue; ++ warned.add(key); ++ console.warn(`[unhead] ${label(tag)} ${problem}.${source} ${FIX}`); ++ } ++ saveWarned(document.defaultView, warned); ++} ++ ++export { checkHydratedHead }; +diff --git a/dist/chunks/runtime.mjs b/dist/chunks/runtime.mjs +new file mode 100644 +index 0000000000000000000000000000000000000000..8dee38e034af5bbc856501cdf9fe41ea40766e29 +--- /dev/null ++++ b/dist/chunks/runtime.mjs +@@ -0,0 +1,543 @@ ++import { a as callHook, r as resolveTags, i as isMetaArrayDupeKey, H as HasElementTags, n as normalizeProps, d as dedupeKey, h as hashTag, c as createUnhead, t as tagWeight } from '../shared/unhead.QUR5kIxs.mjs'; ++import { HookableCore } from 'hookable'; ++import { c as copyInput } from '../shared/unhead.CyNMusnl.mjs'; ++import 'unhead/utils'; ++ ++function createClientHeadAdapter(core, hooks, render) { ++ const corePush = core.push; ++ const head = core; ++ head.ssr = false; ++ head.hooks = hooks; ++ head.dirty = !!head.dirty; ++ head.render = () => render(head); ++ function notify() { ++ head.dirty = true; ++ hooks.callHook("entries:updated", head); ++ if (!head._b) ++ head.render(); ++ } ++ head.invalidate = () => { ++ for (const entry of head.entries.values()) ++ delete entry._tags; ++ notify(); ++ }; ++ head.push = (input, entryOptions) => { ++ const unhook = entryOptions?.onRendered ? hooks.hook("dom:rendered", entryOptions.onRendered) : void 0; ++ const active = corePush(input, entryOptions); ++ const entry = core.entries.get(active._i); ++ if (entry) ++ entry._o = input; ++ notify(); ++ return { ++ _i: active._i, ++ patch(input2) { ++ active.patch(input2); ++ notify(); ++ }, ++ dispose() { ++ unhook?.(); ++ if (core.entries.has(active._i)) { ++ active.dispose(); ++ head.invalidate(); ++ } ++ } ++ }; ++ }; ++ return head; ++} ++ ++const WHITESPACE_RE = /\s+/; ++function hasPendingEntries(head) { ++ for (const entry of head.entries.values()) { ++ if (entry._pending !== void 0) ++ return true; ++ } ++ return false; ++} ++function createDomState(head, dom) { ++ const state = { _d: dom, _t: dom.title, _e: /* @__PURE__ */ new Map([["htmlAttrs", dom.documentElement], ["bodyAttrs", dom.body]]), _p: {}, _s: {}, _l: /* @__PURE__ */ new Map() }; ++ for (const entry of head.entries.values()) { ++ for (const t of ["bodyAttrs", "htmlAttrs"]) { ++ const cls = entry._o?.[t]?.class; ++ if (typeof cls === "string") { ++ const $el = state._e.get(t); ++ for (const c of cls.split(WHITESPACE_RE)) { ++ if (c) ++ state._p[`${t}:attr:class:${c}`] = () => $el.classList.remove(c); ++ } ++ } ++ } ++ } ++ return state; ++} ++function _renderDOMHead(head, options = {}, adoption) { ++ const dom = options.document || head.resolvedOptions.document; ++ const activeState = head._dom; ++ if (!dom || head._du || activeState && activeState._d === dom && !head.dirty && !hasPendingEntries(head)) ++ return false; ++ const defaultView = dom.defaultView; ++ head._du = true; ++ let didRender = false; ++ try { ++ let track = function(key, fn, fresh) { ++ if (keepEffects && renderState._s[key]) ++ return; ++ renderState._s[key] = !fresh && previous[key] || fn; ++ delete previous[key]; ++ }, trackEvent = function(id, k, ev, source, $el, target) { ++ const key = `${id}:event:${k}`; ++ const prev = renderState._l.get(key); ++ if (prev && prev[0] === target && prev[1] === source) { ++ track(key, prev[3]); ++ return; ++ } ++ prev?.[3](); ++ const dk = `data-${k}`; ++ const handler = ((e) => source.call($el, e)); ++ const cleanup = () => { ++ target.removeEventListener(ev, handler); ++ if ($el.getAttribute(dk) === "") ++ $el.removeAttribute(dk); ++ if (renderState._l.get(key)?.[2] === handler) ++ renderState._l.delete(key); ++ }; ++ target.addEventListener(ev, handler); ++ renderState._l.set(key, [target, source, handler, cleanup]); ++ $el.setAttribute(dk, ""); ++ track(key, cleanup, true); ++ }, trackCtx = function({ id, $el, tag }) { ++ renderState._e.set(id, $el); ++ if (!tag.tag.endsWith("Attrs")) { ++ const text = tag.textContent; ++ if (text != null && text !== "") { ++ if (!adoption && text !== $el.textContent) ++ $el.textContent = text; ++ track(`${id}:text`, () => { ++ if ($el.textContent === text) ++ $el.textContent = ""; ++ }, true); ++ } ++ const html = tag.innerHTML; ++ if (html != null && html !== "") { ++ if (!adoption && html !== $el.innerHTML) ++ $el.innerHTML = html; ++ track(`${id}:html`, () => { ++ if ($el.innerHTML === html) ++ $el.innerHTML = ""; ++ }, true); ++ } ++ const elKey = `${id}:el`; ++ track(elKey, previous[elKey] || (() => { ++ $el?.remove(); ++ renderState._e.delete(id); ++ })); ++ } ++ for (const k in tag.props) { ++ const v = tag.props[k]; ++ if (k[0] === "o" && k[1] === "n" && typeof v === "function") { ++ if (adoption) ++ continue; ++ const ev = k.slice(2); ++ if ($el?.dataset?.[`${k}fired`]) ++ v.call($el, new (defaultView?.Event || Event)(ev)); ++ trackEvent(id, k, ev, v, $el, tag.tag === "bodyAttrs" && defaultView ? defaultView : $el); ++ continue; ++ } ++ const ck = `${id}:attr:${k}`; ++ if (k === "class" && v) { ++ for (const c of v) { ++ const key = `${ck}:${c}`; ++ track(key, previous[key] || (() => $el.classList.remove(c))); ++ if (!adoption && !$el.classList.contains(c)) ++ $el.classList.add(c); ++ } ++ } else if (k === "style" && v) { ++ for (const [sk, sv] of v) { ++ const key = `${ck}:${sk}`; ++ track(key, previous[key] || (() => $el.style.removeProperty(sk))); ++ if (!adoption) ++ $el.style.setProperty(sk, sv); ++ } ++ } else if (v !== false && v !== null) { ++ if (!adoption && $el.getAttribute(k) !== v) ++ $el.setAttribute(k, v === true ? "" : String(v)); ++ track(ck, previous[ck] || (() => $el.removeAttribute(k))); ++ } ++ } ++ }; ++ const beforeRenderCtx = { shouldRender: true, tags: [] }; ++ callHook(head, "dom:beforeRender", beforeRenderCtx); ++ if (!beforeRenderCtx.shouldRender) ++ return false; ++ let state = activeState; ++ if (state?._d !== dom) { ++ if (state) { ++ for (const k in state._s) state._s[k](); ++ for (const k in state._p) state._p[k](); ++ state._s = state._p = {}; ++ state._e.clear(); ++ state._l.clear(); ++ } ++ state = void 0; ++ } ++ const keepEffects = adoption && !!state; ++ if (!state) { ++ state = createDomState(head, dom); ++ } else { ++ state._p = keepEffects ? {} : state._s; ++ } ++ if (!keepEffects) ++ state._s = {}; ++ const renderState = state; ++ const previous = renderState._p; ++ const pending = []; ++ const frag = {}; ++ head.dirty = false; ++ const rawTags = resolveTags(head, options, adoption); ++ const tags = []; ++ const dupeKeyCounter = {}; ++ for (const tag of rawTags) { ++ const count = dupeKeyCounter[tag._d] || 0; ++ const id = (count ? `${tag._d}:${count}` : tag._d) || tag._h; ++ const ctx = { tag, id, shouldRender: true }; ++ if (tag.tag === "meta" && tag._d && isMetaArrayDupeKey(tag._d)) ++ dupeKeyCounter[tag._d] = count + 1; ++ tags.push(ctx); ++ if (tag.tag === "title") { ++ if (!adoption) ++ dom.title = tag.textContent; ++ track("title:", () => dom.title = renderState._t); ++ continue; ++ } ++ ctx.$el = renderState._e.get(id); ++ if (ctx.$el) ++ trackCtx(ctx); ++ else if (HasElementTags.has(tag.tag)) ++ pending.push(ctx); ++ } ++ if (pending.length) { ++ const tracked = /* @__PURE__ */ new Set(); ++ for (const [key, $el] of renderState._e) { ++ const trackedKey = `${key}:el`; ++ if (renderState._s[trackedKey] === void 0 && previous[trackedKey] === void 0 && !$el.isConnected) ++ renderState._e.delete(key); ++ else ++ tracked.add($el); ++ } ++ for (const el of [...dom.body.children, ...dom.head.children]) { ++ const elTag = el.tagName.toLowerCase(); ++ if (!HasElementTags.has(elTag) || tracked.has(el)) ++ continue; ++ const props = { innerHTML: el.innerHTML }; ++ for (const n of el.getAttributeNames()) ++ props[n] = el.getAttribute(n); ++ const next = normalizeProps({ tag: elTag, props: {} }, props); ++ next.key = el.getAttribute("data-hid") || void 0; ++ const dedupe = dedupeKey(next) || hashTag(next); ++ let k = dedupe; ++ let c = 1; ++ while (renderState._e.has(k)) ++ k = `${dedupe}:${c++}`; ++ renderState._e.set(k, el); ++ } ++ } ++ for (const ctx of pending) { ++ const found = renderState._e.get(ctx.id); ++ if (adoption && !found) ++ continue; ++ ctx.$el = found || dom.createElement(ctx.tag.tag); ++ trackCtx(ctx); ++ if (!found) ++ (frag[ctx.tag.tagPosition || "head"] ??= dom.createDocumentFragment()).appendChild(ctx.$el); ++ } ++ if (frag.head) ++ dom.head.appendChild(frag.head); ++ if (frag.bodyOpen) ++ dom.body.insertBefore(frag.bodyOpen, dom.body.firstChild); ++ if (frag.bodyClose) ++ dom.body.appendChild(frag.bodyClose); ++ for (const k in previous) ++ previous[k](); ++ head._dom = renderState; ++ didRender = true; ++ if (!adoption) ++ callHook(head, "dom:rendered", { renders: tags }); ++ } catch (e) { ++ head.dirty = true; ++ throw e; ++ } finally { ++ head._du = false; ++ } ++ if (!adoption && didRender && (head.dirty || hasPendingEntries(head))) ++ _renderDOMHead(head, options); ++ return didRender; ++} ++ ++function attachStreamHead(queue, head, push = (input) => head.push(input)._i) { ++ const backlog = queue._q; ++ const previousHead = queue._head; ++ const previousPush = queue.push; ++ let attaching = true; ++ queue._q = []; ++ queue._head = head; ++ let pending; ++ const streamPush = (entries) => { ++ if (pending) { ++ pending.push(entries); ++ return; ++ } ++ pending = [entries]; ++ const batching = head._b; ++ head._b = true; ++ try { ++ for (const batch of pending) { ++ for (const input of batch) { ++ const id = push(input); ++ const entry = id === void 0 ? void 0 : head.entries.get(id); ++ if (entry) ++ entry._streamed = true; ++ } ++ } ++ } catch (error) { ++ if (attaching && queue.push === streamPush) ++ queue._q = pending; ++ throw error; ++ } finally { ++ pending = void 0; ++ head._b = batching; ++ if (!batching) { ++ head.dirty = true; ++ head.render(); ++ } ++ } ++ }; ++ queue.push = streamPush; ++ try { ++ if (backlog.length) ++ queue.push(backlog.flat()); ++ } catch (error) { ++ if (queue.push === streamPush) { ++ queue.push = previousPush; ++ } ++ queue._head = previousHead; ++ throw error; ++ } finally { ++ attaching = false; ++ } ++} ++ ++function createHooks(hooks) { ++ const instance = new HookableCore(); ++ for (const key in {}) { ++ instance.hook(key, hooks[key]); ++ } ++ return instance; ++} ++ ++function connectStream(head, stream, queue, replayShell) { ++ const live = head.entries; ++ const wasDiscarded = () => queue.closeStream === false; ++ const discard = () => { ++ stream._q.length = 0; ++ stream.push = () => { ++ }; ++ let removed = false; ++ for (const [id, entry] of live) { ++ if (entry._streamed) { ++ live.delete(id); ++ removed = true; ++ } ++ } ++ if (removed) ++ head.invalidate(); ++ }; ++ if (wasDiscarded()) { ++ discard(); ++ return; ++ } ++ queue.closeStream = discard; ++ let index = -1048576; ++ attachStreamHead(stream, head, (input) => { ++ if (wasDiscarded()) ++ return; ++ const entry = head.push(input, { _index: index++ }); ++ replayShell(); ++ if (wasDiscarded()) ++ entry.dispose(); ++ return entry._i; ++ }); ++} ++function adoptHydratedEntries(head, adoption) { ++ const live = head.entries; ++ const get = adoption.get.bind(adoption); ++ adoption.get = (id) => get(id) || live.get(id); ++ adoption.has = (id) => !!adoption.get(id); ++ head.entries = adoption; ++ head.dirty = true; ++ try { ++ return _renderDOMHead(head, {}, true); ++ } finally { ++ head.entries = live; ++ head.dirty = true; ++ } ++} ++function resolveStream(document, streamKey) { ++ const view = document?.defaultView; ++ const stream = view?.[streamKey]; ++ if (!Array.isArray(stream?._q) || typeof stream.push !== "function") ++ throw new Error("[unhead] Lazy head requires the server bootstrap for this streamKey."); ++ return stream; ++} ++async function activate(options, queue, shell, connect) { ++ const document = shell.resolvedOptions.document; ++ const resolveQueue = () => { ++ if (options.streamKey === void 0) ++ return; ++ const stream2 = resolveStream(document, options.streamKey); ++ if (stream2._head) ++ throw new Error("[unhead] This stream already has a client head."); ++ return stream2; ++ }; ++ let stream = resolveQueue(); ++ const lazyPlugins = options.lazyPlugins ? await options.lazyPlugins() : void 0; ++ if (options.lazyPlugins) ++ stream = resolveQueue(); ++ let render = () => false; ++ const core = createUnhead((head2) => render(head2), { document, propResolvers: options.propResolvers, _tagWeight: tagWeight }); ++ const hooks = shell.hooks ??= createHooks(); ++ const head = createClientHeadAdapter(core, hooks, (head2) => render(head2)); ++ head._b = true; ++ const hydrated = /* @__PURE__ */ new Map(); ++ function preserveHydrationOrder(active) { ++ const live = head.entries.get(active._i); ++ if (stream && active._i >= 0 && live && live._order === void 0) { ++ live._order = -2097152 + active._i; ++ const patch = active.patch; ++ active.patch = (input) => { ++ if (!queue.hydrating) ++ delete live._order; ++ patch(input); ++ }; ++ } ++ } ++ const clientPush = head.push; ++ head.push = (input, entryOptions) => { ++ const baseline = queue.hydrating && !options.render && (entryOptions?._index ?? 0) >= 0 ? { input: copyInput(input) } : void 0; ++ const active = clientPush(input, entryOptions); ++ if (baseline) { ++ hydrated.set(active._i, { ++ _i: active._i, ++ input: baseline.input, ++ _o: baseline.input, ++ options: head.entries.get(active._i)?.options ++ }); ++ } ++ if (queue.hydrating) ++ preserveHydrationOrder(active); ++ return active; ++ }; ++ Object.defineProperty(head, "_entryCount", { ++ get: () => queue.index, ++ set: (index) => queue.index = index, ++ configurable: true ++ }); ++ Object.defineProperty(head, "_scripts", { ++ get: () => shell._scripts, ++ set: (scripts) => shell._scripts = scripts ++ }); ++ Object.defineProperty(shell, "_dom", { ++ get: () => queue.head?._dom, ++ configurable: true ++ }); ++ const previousCloseStream = queue.closeStream; ++ const unhooks = []; ++ const hook = hooks.hook; ++ hooks.hook = (name, callback) => { ++ const off = hook.call(hooks, name, callback); ++ unhooks.push(off); ++ return off; ++ }; ++ queue.head = head; ++ try { ++ for (const name in options.hooks) ++ hooks.hook(name, options.hooks[name]); ++ for (const plugin of options.plugins ?? []) ++ head.use(plugin); ++ for (const plugin of lazyPlugins ?? []) ++ head.use(plugin); ++ let pluginIndex = 0; ++ const registerQueuedPlugins = () => { ++ while (pluginIndex < queue.plugins.length) ++ head.use(queue.plugins[pluginIndex++]); ++ }; ++ registerQueuedPlugins(); ++ const replayShell = () => { ++ registerQueuedPlugins(); ++ for (const [_i, entry] of queue.entries) { ++ if (entry.active) ++ continue; ++ const input = entry.input; ++ const active = entry.active = head.push(input, { ...entry.options, _index: _i }); ++ if (entry.hydrated) ++ preserveHydrationOrder(active); ++ if (entry.baseline) { ++ hydrated.set(_i, { ++ _i, ++ input: entry.baseline.input, ++ _o: entry.baseline.input, ++ options: head.entries.get(_i)?.options ++ }); ++ } ++ if (entry.disposed) ++ active.dispose(); ++ else if (entry.input !== input) ++ active.patch(entry.input); ++ registerQueuedPlugins(); ++ } ++ }; ++ replayShell(); ++ if (stream) ++ connectStream(head, stream, queue, replayShell); ++ } catch (error) { ++ for (const off of unhooks) ++ off(); ++ queue.head = void 0; ++ for (const entry of queue.entries.values()) ++ entry.active = void 0; ++ if (queue.closeStream !== false) ++ queue.closeStream = previousCloseStream; ++ throw error; ++ } finally { ++ hooks.hook = hook; ++ head._b = false; ++ } ++ let renderId = 0; ++ render = options.render || (() => { ++ const id = ++renderId; ++ setTimeout(() => { ++ if (id !== renderId) ++ return; ++ if (hydrated.size) { ++ const adoption = new Map(hydrated); ++ try { ++ if (!adoptHydratedEntries(head, adoption)) ++ return; ++ } catch (error) { ++ console.warn("[unhead] Failed to adopt hydrated entries.", error); ++ } ++ for (const [id2, snapshot] of adoption) { ++ if (hydrated.get(id2) === snapshot) ++ hydrated.delete(id2); ++ } ++ } ++ _renderDOMHead(head); ++ }); ++ return false; ++ }); ++ Object.defineProperty(head, "_entryCount", { value: queue.index, writable: true }); ++ connect(head); ++ head.render(); ++ return head; ++} ++ ++export { activate }; +diff --git a/dist/lazy.d.mts b/dist/lazy.d.mts +new file mode 100644 +index 0000000000000000000000000000000000000000..fbbd9a669075dffa8f6632ddb600c886cc01322a +--- /dev/null ++++ b/dist/lazy.d.mts +@@ -0,0 +1,15 @@ ++import type { ClientUnhead, CreateClientHeadOptions } from './client.mjs'; ++import type { HeadPluginInput, ResolvableHead } from './types.mjs'; ++ ++export interface LazyHeadOptions extends CreateClientHeadOptions { ++ lazyPlugins?: () => Promise; ++ hookable?: ClientUnhead['hooks']; ++} ++ ++export interface LazyUnhead extends Pick, 'ssr' | 'push' | 'use' | 'resolvedOptions' | '_scripts' | '_dom' | 'render' | 'entries'> { ++ hooks?: ClientUnhead['hooks']; ++ finishHydration: () => void; ++ load: () => Promise>; ++} ++ ++export declare function createHead(options?: LazyHeadOptions): LazyUnhead; +diff --git a/dist/lazy.mjs b/dist/lazy.mjs +new file mode 100644 +index 0000000000000000000000000000000000000000..61fc8f3ef08d66316c72e4cb50d0ecf95456a809 +--- /dev/null ++++ b/dist/lazy.mjs +@@ -0,0 +1,2 @@ ++// Skilld homepage pilot, pinned to unjs/unhead@4c2f65ae436e87fb5e13748d63b1138dce765e15 (MIT). ++export { a as createHead } from './shared/unhead.CyNMusnl.mjs'; +diff --git a/dist/shared/unhead.CyNMusnl.mjs b/dist/shared/unhead.CyNMusnl.mjs +new file mode 100644 +index 0000000000000000000000000000000000000000..b842bc2df3afed5ffe291e1aec3d1ff7174bf42b +--- /dev/null ++++ b/dist/shared/unhead.CyNMusnl.mjs +@@ -0,0 +1,105 @@ ++function isFunctionValue(key) { ++ return key === "titleTemplate" || !!key?.startsWith("on"); ++} ++function copyInput(value, key) { ++ if (key === "_resolver") ++ return value; ++ if (typeof value === "function" && !isFunctionValue(key)) { ++ try { ++ const resolved = value(); ++ const snapshot = typeof resolved === "function" ? resolved : copyInput(resolved); ++ return (() => snapshot); ++ } catch { ++ return value; ++ } ++ } ++ if (!value || typeof value !== "object" || !Array.isArray(value) && value.constructor !== Object) ++ return value; ++ const out = Array.isArray(value) ? [] : {}; ++ for (const k in value) ++ out[k] = copyInput(value[k], k); ++ return out; ++} ++ ++// @__NO_SIDE_EFFECTS__ ++function createHead(options = {}) { ++ const queue = { index: 1, hydrating: true, entries: /* @__PURE__ */ new Map(), plugins: [] }; ++ let active; ++ let loading; ++ let emptyEntries; ++ const shell = { ++ ssr: false, ++ hooks: options.hookable, ++ resolvedOptions: { document: options.document ?? globalThis.document }, ++ get entries() { ++ return queue.head?.entries ?? (emptyEntries ||= /* @__PURE__ */ new Map()); ++ }, ++ finishHydration() { ++ if (!queue.hydrating) ++ return; ++ queue.hydrating = false; ++ if (process.env.NODE_ENV !== "production" && !loading && options.streamKey === void 0) { ++ import('../chunks/devCheck.mjs').then(({ checkHydratedHead }) => !loading && checkHydratedHead(options, queue)).catch((error) => console.warn("[unhead] The lazy head dev check failed.", error)); ++ } ++ }, ++ discardStream() { ++ const close = queue.closeStream; ++ queue.closeStream = false; ++ if (close) ++ close(); ++ }, ++ use(plugin) { ++ if (active) ++ active.use(plugin); ++ else ++ queue.plugins.push(plugin); ++ }, ++ render: () => active?.render() ?? false, ++ push(input, entryOptions) { ++ if (active) ++ return active.push(input, entryOptions); ++ const _i = entryOptions?._index ?? queue.index++; ++ const entry = { input, options: entryOptions, hydrated: queue.hydrating }; ++ if (queue.hydrating && !options.render) ++ entry.baseline = { input: copyInput(input) }; ++ if (process.env.NODE_ENV !== "production") ++ entry.source = options._entrySource?.(); ++ queue.entries.set(_i, entry); ++ return { ++ _i, ++ patch(next) { ++ if (!queue.hydrating) ++ entry.hydrated = false; ++ const baseline = entry.baseline; ++ if (baseline && queue.hydrating && next === entry.input) { ++ queueMicrotask(() => { ++ if (entry.input === next && !entry.disposed && !entry.active) ++ baseline.input = copyInput(next); ++ }); ++ } ++ entry.input = next; ++ entry.disposed = false; ++ entry.active?.patch(next); ++ }, ++ dispose() { ++ entry.disposed = true; ++ entry.active?.dispose(); ++ } ++ }; ++ }, ++ load() { ++ return loading ||= active ? Promise.resolve(active) : import('../chunks/runtime.mjs').then(({ activate }) => activate(options, queue, shell, (head) => { ++ active = head; ++ queue.entries.clear(); ++ queue.plugins.length = 0; ++ })).catch((error) => { ++ loading = void 0; ++ throw error; ++ }); ++ } ++ }; ++ options.init?.forEach((input) => input && shell.push(input)); ++ return shell; ++} ++ ++export { createHead as a, copyInput as c }; +diff --git a/dist/shared/unhead.QUR5kIxs.mjs b/dist/shared/unhead.QUR5kIxs.mjs +new file mode 100644 +index 0000000000000000000000000000000000000000..bae556a6d2ef5f800381def3e7efeb8bc025163e +--- /dev/null ++++ b/dist/shared/unhead.QUR5kIxs.mjs +@@ -0,0 +1,435 @@ ++import { walkResolver } from 'unhead/utils'; ++ ++const DupeableTags = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]); ++const TagsWithInnerContent = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]); ++const HasElementTags = /* @__PURE__ */ new Set(["base", "meta", "link", "style", "script", "noscript"]); ++const ValidHeadTags = /* @__PURE__ */ new Set(["title", "base", "htmlAttrs", "bodyAttrs", "meta", "link", "style", "script", "noscript"]); ++const UniqueTags = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]); ++const TagConfigKeys = /* @__PURE__ */ new Set(["key", "tagPosition", "tagPriority", "tagDuplicateStrategy", "innerHTML", "textContent", "processTemplateParams"]); ++const UsesMergeStrategy = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]); ++const MetaTagsArrayable = /* @__PURE__ */ new Set([ ++ "theme-color", ++ "google-site-verification", ++ "author", ++ "og:locale:alternate", ++ "og:image", ++ "og:video", ++ "og:audio", ++ "article:author", ++ "article:tag", ++ "book:author", ++ "book:tag", ++ "twitter:image" ++]); ++const TagPriorityAliases = { critical: -8, high: -1, low: 2 }; ++const hasContent = (value) => typeof value === "number" ? Number.isFinite(value) : value; ++ ++const tagWeight = (tag) => typeof tag.tagPriority === "number" ? tag.tagPriority : 100 + (TagPriorityAliases[tag.tagPriority] || 0); ++ ++function registerPlugin(head, p) { ++ if (typeof p === "function" && p.key && head.plugins.has(p.key)) ++ return; ++ const plugin = typeof p === "function" ? p(head) : p; ++ const key = plugin.key || String(head.plugins.size + 1); ++ if (!head.plugins.get(key)) { ++ head.plugins.set(key, plugin); ++ for (const k in plugin.hooks || {}) ++ head.hooks?.hook(k, plugin.hooks[k]); ++ } ++} ++// @__NO_SIDE_EFFECTS__ ++function createUnhead(renderer, resolvedOptions = {}) { ++ const ssr = !resolvedOptions.document; ++ const entries = /* @__PURE__ */ new Map(); ++ const plugins = /* @__PURE__ */ new Map(); ++ const head = { ++ _entryCount: 1, ++ _h: 0, ++ plugins, ++ resolvedOptions, ++ ssr, ++ entries, ++ // adapters decorate this same object; reserve the slot to keep its shape stable ++ hooks: void 0, ++ render: () => renderer(head), ++ use: (p) => registerPlugin(head, p), ++ push(input, _options) { ++ const { head: _head, onRendered: _onRendered, _index, ...options } = _options || {}; ++ const _i = _index ?? head._entryCount++; ++ const entry = { _i, input, options }; ++ entries.set(_i, entry); ++ const active = { ++ _i, ++ dispose() { ++ entries.delete(_i); ++ }, ++ patch(input2) { ++ if (ssr) { ++ entry.input = input2; ++ delete entry._tags; ++ } else { ++ entry._pending = input2; ++ } ++ if (!entries.has(_i)) ++ entries.set(_i, entry); ++ } ++ }; ++ return active; ++ } ++ }; ++ resolvedOptions.init?.forEach((e) => e && head.push(e)); ++ return head; ++} ++ ++const META_NOREWRITE_RE = /^(?:viewport|description|keywords|robots)$/; ++const META_KEY_ATTRS = ["name", "property", "http-equiv"]; ++function isMetaArrayDupeKey(v) { ++ const i = v.indexOf(":"); ++ if (i === -1) ++ return false; ++ const key = v.slice(i + 1); ++ return MetaTagsArrayable.has(key) || key.startsWith("og:image:") || key.startsWith("og:video:") || key.startsWith("og:audio:") || key.startsWith("twitter:image:"); ++} ++function dedupeKey(tag) { ++ const { props, tag: t, key } = tag; ++ if (UniqueTags.has(t)) ++ return t; ++ if (t === "link") { ++ if (props.rel === "canonical") ++ return "canonical"; ++ if (props.rel === "alternate" && props.hreflang) ++ return `alternate:${props.hreflang}`; ++ } ++ if (props.charset) ++ return "charset"; ++ if (t === "meta") { ++ for (const n of META_KEY_ATTRS) { ++ const v = props[n]; ++ if (v !== void 0) ++ return `meta:${v}${(typeof v !== "string" || !v.includes(":")) && !META_NOREWRITE_RE.test(v) && key ? `:key:${key}` : ""}`; ++ } ++ } ++ if (key) ++ return `${t}:key:${key}`; ++ if (props.id) ++ return `${t}:id:${props.id}`; ++ if (t === "link" && props.rel && props.href) ++ return `link:${props.rel}:${props.href}`; ++ return TagsWithInnerContent.has(t) && (tag.textContent || tag.innerHTML) ? `${t}:content:${tag.textContent || tag.innerHTML}` : void 0; ++} ++function hashTag(tag) { ++ const identity = tag._h || tag._d || tag.textContent || tag.innerHTML; ++ if (identity) ++ return String(identity); ++ const keys = Object.keys(tag.props).sort(); ++ let hash = `${tag.tag}:`; ++ let separator = ""; ++ for (const key of keys) { ++ hash += `${separator}${key}:${String(tag.props[key])}`; ++ separator = ","; ++ } ++ return hash; ++} ++ ++const INVALID_ATTR_NAME_RE = /[\s"'<>/=\x00-\x1F\x7F]/; ++ ++// @__NO_SIDE_EFFECTS__ ++function isUnsafeKey(key) { ++ return key === "__proto__" || key === "constructor" || key === "prototype"; ++} ++ ++const ASCII_UPPER_RE = /[A-Z]/g; ++function normalizeStyleClassProps(key, value) { ++ const isStyle = key === "style"; ++ const store = isStyle ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(); ++ const add = (v) => { ++ if (!v) ++ return; ++ if (isStyle) { ++ const i = v.indexOf(":"); ++ i > 0 && store.set(v.slice(0, i).trim(), v.slice(i + 1).trim()); ++ } else { ++ v.split(" ").forEach((c) => c && store.add(c)); ++ } ++ }; ++ if (typeof value === "string") { ++ (isStyle ? value.split(";") : [value]).forEach(add); ++ } else if (Array.isArray(value)) { ++ value.forEach(add); ++ } else if (value && typeof value === "object") { ++ for (const k in value) { ++ const v = value[k]; ++ v && v !== "false" && (isStyle ? store.set(k.trim(), String(v)) : add(k)); ++ } ++ } ++ return store; ++} ++function normalizeProps(tag, input) { ++ tag.props = tag.props || {}; ++ if (!input) ++ return tag; ++ if (tag.tag === "templateParams") { ++ tag.props = input; ++ return tag; ++ } ++ const isHtmlTag = HasElementTags.has(tag.tag) || tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs"; ++ for (const prop in input) { ++ if (isUnsafeKey(prop)) ++ continue; ++ const isData = prop.startsWith("data-"); ++ const isHtmlAttr = isHtmlTag && !TagConfigKeys.has(prop); ++ const key = isHtmlAttr && !isData ? prop.replace(ASCII_UPPER_RE, (letter) => letter.toLowerCase()) : prop; ++ if (isHtmlAttr && (!key || INVALID_ATTR_NAME_RE.test(key))) ++ continue; ++ const value = input[prop]; ++ if (value === null) { ++ tag.props[key] = null; ++ } else if (prop === "class" || prop === "style") { ++ tag.props[prop] = normalizeStyleClassProps(prop, value); ++ } else if (TagConfigKeys.has(prop)) { ++ if ((prop === "textContent" || prop === "innerHTML") && typeof value === "object") { ++ const type = input.type || "application/json"; ++ if (type.endsWith("json") || type === "speculationrules" || type === "importmap") { ++ tag.props.type = type; ++ tag[prop] = JSON.stringify(value); ++ } ++ } else { ++ tag[prop] = value; ++ } ++ } else if (value !== void 0) { ++ const str = String(value); ++ const preserveString = isData || tag.tag === "meta" && key === "content" || tag.tag === "script" && typeof value === "string" && (key === "type" || key === "language"); ++ tag.props[key] = str === "true" || str === "" ? preserveString ? str : true : !value && isData && str === "false" ? "false" : value; ++ } ++ } ++ return tag; ++} ++function resolveHeadInput(input, propResolvers) { ++ let resolve; ++ if (propResolvers.length) { ++ resolve = (key, val) => { ++ for (let i = 0; i < propResolvers.length; i++) ++ val = propResolvers[i](key, val); ++ return val; ++ }; ++ input = resolve(void 0, input); ++ } ++ return walkResolver(input, resolve); ++} ++function normalizeTag(tags, tagName, _input) { ++ const input = typeof _input === "object" && typeof _input !== "function" ? _input : { [tagName === "script" || tagName === "noscript" || tagName === "style" ? "innerHTML" : "textContent"]: _input }; ++ const tag = normalizeProps({ tag: tagName, props: {} }, input); ++ if (tag.key && DupeableTags.has(tag.tag)) ++ tag.props["data-hid"] = tag._h = tag.key; ++ if (Array.isArray(tag.props.content)) { ++ for (const content of tag.props.content) ++ tags.push({ ...tag, props: { ...tag.props, content } }); ++ } else { ++ tags.push(tag); ++ } ++} ++function normalizeEntryToTags(input, propResolvers) { ++ if (!input) ++ return []; ++ if (typeof input === "function") ++ input = input(); ++ input = resolveHeadInput(input, propResolvers); ++ const tags = []; ++ for (const key in input) { ++ const value = input[key]; ++ if (value !== void 0) { ++ if (Array.isArray(value)) { ++ for (const v of value) normalizeTag(tags, key, v); ++ } else { ++ normalizeTag(tags, key, value); ++ } ++ } ++ } ++ return tags; ++} ++ ++function callHook(head, hook, ctx) { ++ const hooks = head.hooks?._hooks?.[hook]; ++ if (!hooks?.length) ++ return; ++ return head.hooks?.callHook(hook, ctx); ++} ++ ++const LT_RE = / a._w === b._w ? a._p - b._p : a._w - b._w; ++const DEFAULT_TAG_WEIGHT = () => 100; ++function isEmptyProps(props) { ++ for (const _ in props) ++ return false; ++ return true; ++} ++const TAG_MUTATING_HOOK_RE = /^tags:|:render/; ++function syncEntryHookCache(head, hooks) { ++ const count = (hooks["entries:resolve"]?.length || 0) + (hooks["entries:normalize"]?.length || 0); ++ if (head._h !== count) { ++ head._h = count; ++ for (const entry of head.entries.values()) ++ delete entry._tags; ++ } ++} ++function cloneTagsInPlace(tags) { ++ for (let i = 0; i < tags.length; i++) { ++ const t = tags[i]; ++ const props = { ...t.props }; ++ if (props.class instanceof Set) ++ props.class = new Set(props.class); ++ if (props.style instanceof Map) ++ props.style = new Map(props.style); ++ tags[i] = { ...t, props }; ++ } ++} ++function valuesToTags(ctx, sortFlatMeta) { ++ const tags = ctx.tags; ++ let w = 0; ++ for (const value of ctx.tagMap.values()) { ++ if (Array.isArray(value)) { ++ for (const tag of value) tags[w++] = tag; ++ } else { ++ tags[w++] = value; ++ } ++ } ++ tags.length = w; ++ if (sortFlatMeta) ++ tags.sort(sortTags); ++} ++function dedupeTags(ctx) { ++ let hasFlatMeta = false; ++ for (const next of ctx.tags.sort(sortTags)) { ++ const k = next._d || hashTag(next); ++ if (!k) ++ continue; ++ const prev = ctx.tagMap.get(k); ++ if (!prev) { ++ ctx.tagMap.set(k, next); ++ continue; ++ } ++ const strategy = next.tagDuplicateStrategy || (UsesMergeStrategy.has(next.tag) ? "merge" : null) || (next.key && next.key === prev.key ? "merge" : null); ++ if (strategy === "merge") { ++ const props = { ...prev.props }; ++ for (const p in next.props) { ++ props[p] = p === "style" ? new Map([...prev.props.style || [], ...next.props[p]]) : p === "class" ? /* @__PURE__ */ new Set([...prev.props.class || [], ...next.props[p]]) : next.props[p]; ++ } ++ ctx.tagMap.set(k, { ...next, props }); ++ } else if (next._p >> 10 === prev._p >> 10 && next.tag === "meta" && isMetaArrayDupeKey(k)) { ++ ctx.tagMap.set(k, Object.assign([...Array.isArray(prev) ? prev : [prev], next], next)); ++ hasFlatMeta = true; ++ } else if (next._w === prev._w ? next._p > prev._p : next._w < prev._w) { ++ ctx.tagMap.set(k, next); ++ } ++ } ++ return hasFlatMeta; ++} ++function resolveTitleTemplate(ctx, head, adoption = false) { ++ const title = ctx.tagMap.get("title"); ++ const tpl = ctx.tagMap.get("titleTemplate"); ++ head._title = title?.textContent; ++ if (!tpl) ++ return; ++ const fn = tpl.textContent; ++ head._titleTemplate = fn; ++ if (!fn) ++ return; ++ let v = adoption ? head.resolvedOptions.document?.title : typeof fn === "function" ? fn(title?.textContent) : fn; ++ if (typeof v === "string" && !head.plugins.has("template-params")) ++ v = v.replace("%s", title?.textContent || ""); ++ if (title) { ++ v === null ? ctx.tagMap.delete("title") : ctx.tagMap.set("title", { ...title, textContent: v }); ++ } else { ++ ctx.tagMap.set("titleTemplate", { ...tpl, tag: "title", textContent: v }); ++ } ++} ++function sanitizeTagsInPlace(tags) { ++ let w = 0; ++ for (let t of tags) { ++ const { innerHTML, tag, props } = t; ++ if (!ValidHeadTags.has(tag) || isEmptyProps(props) && !hasContent(innerHTML) && !hasContent(t.textContent)) ++ continue; ++ if (tag === "meta") { ++ if (!hasContent(props.content) && !props["http-equiv"] && !props.charset) ++ continue; ++ } ++ if (tag === "script" && (innerHTML || t.textContent)) { ++ const type = String(props.type); ++ const isJsonLike = type.endsWith("json") || type === "importmap" || type === "speculationrules"; ++ const escape = (content) => isJsonLike ? (typeof content === "string" ? content : JSON.stringify(content)).replace(LT_RE, "\\u003C") : typeof content === "string" ? content.replace(SCRIPT_END_RE, "<\\/script") : content; ++ t = { ...t }; ++ if (innerHTML) ++ t.innerHTML = escape(innerHTML); ++ if (t.textContent) ++ t.textContent = escape(t.textContent); ++ t._d = dedupeKey(t); ++ } ++ tags[w++] = t; ++ } ++ tags.length = w; ++ return tags; ++} ++function resolveTags(head, options, adoption = false) { ++ const weightFn = options?.tagWeight ?? head.resolvedOptions._tagWeight ?? DEFAULT_TAG_WEIGHT; ++ const ctx = { tagMap: /* @__PURE__ */ new Map(), tags: [] }; ++ const hooks = head.hooks?._hooks || {}; ++ syncEntryHookCache(head, hooks); ++ for (const e of head.entries.values()) { ++ if (e._pending !== void 0) { ++ e.input = e._pending; ++ delete e._pending; ++ delete e._tags; ++ delete e._precomputedTags; ++ } ++ } ++ let entries; ++ if (head._h) { ++ entries = [...head.entries.values()]; ++ callHook(head, "entries:resolve", { entries, ...ctx }); ++ } ++ syncEntryHookCache(head, hooks); ++ for (const e of entries || head.entries.values()) { ++ let tags = e._tags; ++ if (!tags) { ++ tags = head.resolvedOptions._precomputed?.(e, weightFn, hooks); ++ if (!tags) { ++ tags = normalizeEntryToTags(e.input, head.resolvedOptions.propResolvers || []); ++ if (e.options && !isEmptyProps(e.options)) { ++ for (const t of tags) ++ Object.assign(t, e.options); ++ } ++ if (hooks["entries:normalize"]?.length) { ++ const normalizeCtx = { tags, entry: e }; ++ callHook(head, "entries:normalize", normalizeCtx); ++ tags = normalizeCtx.tags; ++ } ++ for (let i = 0; i < tags.length; i++) { ++ const t = tags[i]; ++ t._w = weightFn(t); ++ t._p = ((e._order ?? e._i) << 10) + i; ++ t._d = dedupeKey(t); ++ if (!t._d) ++ t._h = hashTag(t); ++ } ++ e._tags = tags; ++ } ++ } ++ ctx.tags.push(...tags); ++ } ++ for (const name in hooks) { ++ if (hooks[name]?.length && TAG_MUTATING_HOOK_RE.test(name)) { ++ cloneTagsInPlace(ctx.tags); ++ break; ++ } ++ } ++ const hasFlatMeta = dedupeTags(ctx); ++ resolveTitleTemplate(ctx, head, adoption); ++ valuesToTags(ctx, hasFlatMeta); ++ callHook(head, "tags:beforeResolve", ctx); ++ callHook(head, "tags:resolve", ctx); ++ callHook(head, "tags:afterResolve", ctx); ++ return sanitizeTagsInPlace(ctx.tags); ++} ++ ++export { HasElementTags as H, callHook as a, createUnhead as c, dedupeKey as d, hashTag as h, isMetaArrayDupeKey as i, normalizeProps as n, resolveTags as r, tagWeight as t }; +diff --git a/package.json b/package.json +index dff8efd4206eb7181448dda0f4cc46050d9d3433..9f0d8534a442030272266b0dec03a9f3c992c5e0 100644 +--- a/package.json ++++ b/package.json +@@ -45,6 +45,10 @@ + "types": "./dist/server.d.ts", + "default": "./dist/server.mjs" + }, ++ "./lazy": { ++ "types": "./dist/lazy.d.mts", ++ "default": "./dist/lazy.mjs" ++ }, + "./client": { + "types": "./dist/client.d.ts", + "default": "./dist/client.mjs" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04dd9c71..7973a0db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -272,6 +272,9 @@ catalogs: '@types/node': specifier: ^26.4.0 version: 26.4.0 + '@unhead/vue': + specifier: 3.4.3 + version: 3.4.3 '@vue/test-utils': specifier: ^2.5.0 version: 2.5.0 @@ -314,6 +317,9 @@ catalogs: happy-dom: specifier: ^21.0.4 version: 21.0.4 + hookable: + specifier: 6.1.2 + version: 6.1.2 import-in-the-middle: specifier: ^3.4.0 version: 3.4.0 @@ -359,6 +365,9 @@ catalogs: typescript: specifier: 6.0.3 version: 6.0.3 + unhead: + specifier: 3.4.3 + version: 3.4.3 unstorage: specifier: 1.17.5 version: 1.17.5 @@ -399,9 +408,11 @@ overrides: nuxt-ai-ready: 3.5.0 patchedDependencies: + '@nuxt/scripts@1': 5c5eb6d405f4569eada65bb94cc46ce3d278a138cea06736f73ddfa058b4e9c7 hookable@5: 3b44da13a743bfa2eab02aef7246065e4dfd56e9878c206f34b51322832cfb2c hookable@6: 7530364d493fa95257cb863d105ed55a1bb4b46d5c9a178a6d64cb73028ed344 nitropack@2: a99fd975a7a90d0358937d8bdc06a0df631a088825383710a2e3875c7cc0051a + unhead@3: 59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c importers: @@ -451,13 +462,13 @@ importers: version: 1.0.1(@nuxt/schema@4.6.4)(aws4fetch@1.0.20)(cac@7.1.0)(confbox@0.3.1)(db0@0.3.4(better-sqlite3@13.0.3)(drizzle-orm@1.0.0-rc.4(@cloudflare/workers-types@5.20260901.1)(@opentelemetry/api@1.9.1)(better-sqlite3@13.0.3)(valibot@1.4.2(typescript@6.0.3))(zod@4.6.6)))(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(lightningcss@1.33.0)(magic-string@1.2.3)(mlly@1.8.2)(oxc-parser@0.143.0)(postcss@8.5.29)(rolldown@1.2.18)(rollup@4.62.4)(srvx@0.12.5)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) '@nuxt/scripts': specifier: 'catalog:' - version: 1.3.10(@nuxt/schema@4.6.4)(@oxc-project/types@0.144.0)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(aws4fetch@1.0.20)(confbox@0.3.1)(db0@0.3.4(better-sqlite3@13.0.3)(drizzle-orm@1.0.0-rc.4(@cloudflare/workers-types@5.20260901.1)(@opentelemetry/api@1.9.1)(better-sqlite3@13.0.3)(valibot@1.4.2(typescript@6.0.3))(zod@4.6.6)))(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(mlly@1.8.2)(rolldown@1.2.18)(rollup@4.62.4)(typescript@6.0.3)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)) + version: 1.3.10(patch_hash=5c5eb6d405f4569eada65bb94cc46ce3d278a138cea06736f73ddfa058b4e9c7)(@nuxt/schema@4.6.4)(@oxc-project/types@0.144.0)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(aws4fetch@1.0.20)(confbox@0.3.1)(db0@0.3.4(better-sqlite3@13.0.3)(drizzle-orm@1.0.0-rc.4(@cloudflare/workers-types@5.20260901.1)(@opentelemetry/api@1.9.1)(better-sqlite3@13.0.3)(valibot@1.4.2(typescript@6.0.3))(zod@4.6.6)))(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(mlly@1.8.2)(rolldown@1.2.18)(rollup@4.62.4)(typescript@6.0.3)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)) '@nuxt/ui': specifier: 'catalog:' version: 4.11.2(@oxc-project/types@0.144.0)(@tiptap/extensions@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))(aws4fetch@1.0.20)(change-case@5.4.4)(confbox@0.3.1)(db0@0.3.4(better-sqlite3@13.0.3)(drizzle-orm@1.0.0-rc.4(@cloudflare/workers-types@5.20260901.1)(@opentelemetry/api@1.9.1)(better-sqlite3@13.0.3)(valibot@1.4.2(typescript@6.0.3))(zod@4.6.6)))(dotenv@17.4.2)(embla-carousel@8.6.0)(esbuild@0.28.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(tailwindcss@4.3.3)(typescript@6.0.3)(valibot@1.4.2(typescript@6.0.3))(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue-router@5.4.0(@vue/compiler-sfc@3.5.45)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) '@nuxtjs/seo': specifier: 'catalog:' - version: 6.0.1(29fbdbb5909e778594ab22f6ef8324fa) + version: 6.0.1(34018f438ef50a809fe5c491b2b0745c) '@resvg/resvg-js': specifier: 'catalog:' version: 2.6.2 @@ -579,6 +590,9 @@ importers: '@types/node': specifier: 'catalog:' version: 26.4.0 + '@unhead/vue': + specifier: 'catalog:' + version: 3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)) '@vue/test-utils': specifier: 'catalog:' version: 2.5.0(@vue/compiler-dom@3.5.45)(@vue/server-renderer@3.5.45)(vue@3.5.45(typescript@6.0.3)) @@ -597,6 +611,9 @@ importers: happy-dom: specifier: 'catalog:' version: 21.0.4 + hookable: + specifier: 'catalog:' + version: 6.1.2(patch_hash=7530364d493fa95257cb863d105ed55a1bb4b46d5c9a178a6d64cb73028ed344) lint-staged: specifier: 'catalog:' version: 17.4.1 @@ -612,6 +629,9 @@ importers: typescript: specifier: 'catalog:' version: 6.0.3 + unhead: + specifier: 'catalog:' + version: 3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) vitest: specifier: 'catalog:' version: 4.1.11(@opentelemetry/api@1.9.1)(@types/node@26.4.0)(esbuild@0.28.2)(happy-dom@21.0.4)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1) @@ -7102,9 +7122,6 @@ packages: hookable@5.5.3: resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==} - hookable@6.1.1: - resolution: {integrity: sha512-U9LYDy1CwhMCnprUfeAZWZGByVbhd54hwepegYTK7Pi5NvqEj63ifz5z+xukznehT7i6NIZRu89Ay1AZmRsLEQ==} - hookable@6.1.2: resolution: {integrity: sha512-+abwxtiEA52GCVIsQqut3S/uKTbUwYIp4Pe/vv+6py5XiXBCqMZHg6pA6Y5qhgLSEys0/cYuPbO0z1QFj5ZCmg==} @@ -13428,7 +13445,7 @@ snapshots: pkg-types: 2.4.0 std-env: 4.3.0 - '@nuxt/scripts@1.3.10(@nuxt/schema@4.6.4)(@oxc-project/types@0.144.0)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(aws4fetch@1.0.20)(confbox@0.3.1)(db0@0.3.4(better-sqlite3@13.0.3)(drizzle-orm@1.0.0-rc.4(@cloudflare/workers-types@5.20260901.1)(@opentelemetry/api@1.9.1)(better-sqlite3@13.0.3)(valibot@1.4.2(typescript@6.0.3))(zod@4.6.6)))(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(mlly@1.8.2)(rolldown@1.2.18)(rollup@4.62.4)(typescript@6.0.3)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3))': + '@nuxt/scripts@1.3.10(patch_hash=5c5eb6d405f4569eada65bb94cc46ce3d278a138cea06736f73ddfa058b4e9c7)(@nuxt/schema@4.6.4)(@oxc-project/types@0.144.0)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(aws4fetch@1.0.20)(confbox@0.3.1)(db0@0.3.4(better-sqlite3@13.0.3)(drizzle-orm@1.0.0-rc.4(@cloudflare/workers-types@5.20260901.1)(@opentelemetry/api@1.9.1)(better-sqlite3@13.0.3)(valibot@1.4.2(typescript@6.0.3))(zod@4.6.6)))(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(mlly@1.8.2)(rolldown@1.2.18)(rollup@4.62.4)(typescript@6.0.3)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3))': dependencies: '@nuxt/devtools-kit': 3.4.2(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(oxc-parser@0.140.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) '@vueuse/core': 14.4.0(vue@3.5.45(typescript@6.0.3)) @@ -14019,7 +14036,7 @@ snapshots: - unplugin - vue - '@nuxtjs/seo@6.0.1(29fbdbb5909e778594ab22f6ef8324fa)': + '@nuxtjs/seo@6.0.1(34018f438ef50a809fe5c491b2b0745c)': dependencies: '@nuxt/kit': 4.6.1(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))) '@nuxtjs/robots': 7.0.2(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) @@ -14028,8 +14045,8 @@ snapshots: nuxt-ai-ready: 3.5.0(@nuxt/schema@4.6.4)(@oxc-project/types@0.144.0)(dotenv@17.4.2)(drizzle-orm@1.0.0-rc.4(@cloudflare/workers-types@5.20260901.1)(@opentelemetry/api@1.9.1)(better-sqlite3@13.0.3)(valibot@1.4.2(typescript@6.0.3))(zod@4.6.6))(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) nuxt-link-checker: 6.0.1(@nuxt/schema@4.6.4)(aws4fetch@1.0.20)(confbox@0.3.1)(db0@0.3.4(better-sqlite3@13.0.3)(drizzle-orm@1.0.0-rc.4(@cloudflare/workers-types@5.20260901.1)(@opentelemetry/api@1.9.1)(better-sqlite3@13.0.3)(valibot@1.4.2(typescript@6.0.3))(zod@4.6.6)))(dotenv@17.4.2)(giget@3.3.1)(ioredis@5.11.1(supports-color@10.2.2))(jiti@2.7.0)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) nuxt-og-image: 7.0.3(cd5ef42f493b297519d52ebdbbc51752) - nuxt-schema-org: 7.0.1(@nuxt/schema@4.6.4)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unhead@3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) - nuxt-seo-utils: 9.0.0(@nuxt/schema@4.6.4)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(confbox@0.3.1)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(lightningcss@1.33.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unhead@3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) + nuxt-schema-org: 7.0.1(@nuxt/schema@4.6.4)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unhead@3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) + nuxt-seo-utils: 9.0.0(@nuxt/schema@4.6.4)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(confbox@0.3.1)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(lightningcss@1.33.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unhead@3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) nuxt-site-config: 5.0.3(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) nuxt-skew-protection: 2.0.2(d6e4e27d2932c6c5f4ef9fa600916119) nuxtseo-shared: 6.0.2(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt-site-config@5.0.3(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6))(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) @@ -15629,12 +15646,12 @@ snapshots: '@ungap/structured-clone@1.4.0': {} - '@unhead/bundler@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(unhead@3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))': + '@unhead/bundler@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(unhead@3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))': dependencies: - magic-string: 1.4.3 + magic-string: 1.4.5 oxc-walker: 1.1.1(@oxc-project/types@0.144.0)(oxc-parser@0.143.0)(rolldown@1.2.18) - unhead: 3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) - unplugin: 3.4.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) + unhead: 3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) + unplugin: 3.7.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) optionalDependencies: esbuild: 0.28.2 lightningcss: 1.33.0 @@ -15652,10 +15669,10 @@ snapshots: '@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3))': dependencies: - '@unhead/bundler': 3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(unhead@3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) + '@unhead/bundler': 3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(unhead@3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) hookable: 6.1.2(patch_hash=7530364d493fa95257cb863d105ed55a1bb4b46d5c9a178a6d64cb73028ed344) - unhead: 3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) - unplugin: 3.4.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) + unhead: 3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) + unplugin: 3.7.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) vue: 3.5.45(typescript@6.0.3) optionalDependencies: vite: 8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1) @@ -17820,8 +17837,6 @@ snapshots: hookable@5.5.3(patch_hash=3b44da13a743bfa2eab02aef7246065e4dfd56e9878c206f34b51322832cfb2c): {} - hookable@6.1.1(patch_hash=7530364d493fa95257cb863d105ed55a1bb4b46d5c9a178a6d64cb73028ed344): {} - hookable@6.1.2(patch_hash=7530364d493fa95257cb863d105ed55a1bb4b46d5c9a178a6d64cb73028ed344): {} html-entities@2.6.0: {} @@ -19197,7 +19212,7 @@ snapshots: '@nuxt/kit': 4.6.1(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))) defu: 6.1.7 h3: 1.15.11 - hookable: 6.1.1(patch_hash=7530364d493fa95257cb863d105ed55a1bb4b46d5c9a178a6d64cb73028ed344) + hookable: 6.1.2(patch_hash=7530364d493fa95257cb863d105ed55a1bb4b46d5c9a178a6d64cb73028ed344) jose: 6.2.8 ofetch: 1.5.1 openid-client: 6.8.4 @@ -19332,7 +19347,7 @@ snapshots: - vue - webpack - nuxt-schema-org@7.0.1(@nuxt/schema@4.6.4)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unhead@3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6): + nuxt-schema-org@7.0.1(@nuxt/schema@4.6.4)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unhead@3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6): dependencies: '@nuxt/kit': 4.6.1(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))) '@unhead/vue': 3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)) @@ -19341,7 +19356,7 @@ snapshots: nuxt-site-config: 5.0.3(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) nuxtseo-shared: 6.0.2(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt-site-config@5.0.3(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6))(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6) ufo: 1.6.4 - unhead: 3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) + unhead: 3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) vue: 3.5.45(typescript@6.0.3) optionalDependencies: zod: 4.6.6 @@ -19357,7 +19372,7 @@ snapshots: - rolldown - unplugin - nuxt-seo-utils@9.0.0(@nuxt/schema@4.6.4)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(confbox@0.3.1)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(lightningcss@1.33.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unhead@3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6): + nuxt-seo-utils@9.0.0(@nuxt/schema@4.6.4)(@unhead/vue@3.4.3(@oxc-project/types@0.144.0)(esbuild@0.28.2)(lightningcss@1.33.0)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))(vue@3.5.45(typescript@6.0.3)))(confbox@0.3.1)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(lightningcss@1.33.0)(magic-string@1.2.3)(mlly@1.8.2)(nuxt@4.6.4(6769f065876a7bcb481f3c39c213f5fd))(oxc-parser@0.143.0)(rolldown@1.2.18)(unhead@3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)))(vue@3.5.45(typescript@6.0.3))(zod@4.6.6): dependencies: '@nuxt/kit': 4.6.1(@nuxt/schema@4.6.4)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.2.3)(mlly@1.8.2)(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.3.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))) citty: 0.2.2 @@ -19377,7 +19392,7 @@ snapshots: esbuild: 0.28.2 lightningcss: 1.33.0 rolldown: 1.2.18 - unhead: 3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) + unhead: 3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) transitivePeerDependencies: - '@nuxt/schema' - confbox @@ -19668,7 +19683,7 @@ snapshots: uncrypto: 0.1.3 unctx: 3.0.1(magic-string@1.4.5)(oxc-parser@0.143.0)(rolldown@1.2.18)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1))) undici: 8.12.4 - unhead: 3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) + unhead: 3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) unimport: 7.0.2(acorn@8.18.0)(esbuild@0.28.2)(oxc-parser@0.143.0)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) unplugin: 3.7.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) unrouting: 0.3.2 @@ -21407,10 +21422,10 @@ snapshots: dependencies: pathe: 2.0.3 - unhead@3.4.3(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)): + unhead@3.4.3(patch_hash=59bfcba26fdeedaa7b190635e3554cd3d0725367bc2a53eaaa8f60c67163711c)(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)): dependencies: hookable: 6.1.2(patch_hash=7530364d493fa95257cb863d105ed55a1bb4b46d5c9a178a6d64cb73028ed344) - unplugin: 3.4.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) + unplugin: 3.7.0(esbuild@0.28.2)(rolldown@1.2.18)(rollup@4.62.4)(vite@8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1)) optionalDependencies: vite: 8.3.7(@types/node@26.4.0)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.50.0)(tsx@4.23.13)(yaml@2.9.1) transitivePeerDependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 286cf99b..9f5161e8 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -270,9 +270,11 @@ overrides: # silently: on 2026-11-12 an exact key shipped nitropack 2.13.6 unpatched. # Every copy in the major takes the patch, or the install fails. patchedDependencies: + '@nuxt/scripts@1': patches/@nuxt__scripts@1.3.10.patch hookable@5: patches/hookable@5.5.3.patch hookable@6: patches/hookable@6.patch nitropack@2: patches/nitropack@2.patch + unhead@3: patches/unhead@3.4.3.patch catalog: '@antfu/eslint-config': ^9.3.0 '@cloudflare/sandbox': 1.0.0 @@ -310,6 +312,7 @@ catalog: '@takumi-rs/core': ^2.15.0 '@takumi-rs/wasm': ^2.15.0 '@types/node': ^26.4.0 + '@unhead/vue': 3.4.3 '@vue/test-utils': ^2.5.0 '@vueuse/core': ^15.0.0 '@vueuse/nuxt': ^15.0.0 @@ -324,6 +327,7 @@ catalog: fflate: ^0.8.3 h3: 1.15.11 happy-dom: ^21.0.4 + hookable: 6.1.2 import-in-the-middle: ^3.4.0 jsonc-parser: 3.3.1 lint-staged: ^17.4.1 @@ -341,6 +345,7 @@ catalog: tailwindcss: ^4.3.3 tsx: ^4.23.13 typescript: 6.0.3 + unhead: 3.4.3 unstorage: 1.17.5 vitest: ^4.1.11 vue: 3.5.45