@nuxt/schema-nightly 5.0.0-29807919.2cbde35e → 5.0.0-29809859.f0ca99e9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ import { Options as Options$1 } from "@vitejs/plugin-vue-jsx";
16
16
  import { RouteLocationNormalizedGeneric, RouteLocationRaw, RouteRecordRaw, RouterHistory, RouterOptions } from "vue-router";
17
17
  import { AsyncLocalStorage } from "node:async_hooks";
18
18
  import { Server as Server$1 } from "node:https";
19
- import { BuiltinPresetName, Unimport } from "unimport";
19
+ import { BuiltinPresetName, Import, Unimport } from "unimport";
20
20
  import { RawVueCompilerOptions } from "@vue/language-core";
21
21
  import { CompatibilityDateSpec } from "compatx";
22
22
  import { ChokidarOptions } from "chokidar";
@@ -901,6 +901,8 @@ interface NuxtHooks {
901
901
  * @param options.nodeReferences Array of Node TypeScript references
902
902
  * @param options.sharedTsConfig The shared TypeScript config object
903
903
  * @param options.sharedReferences Array of shared TypeScript references
904
+ * @param options.serverTsConfig The server TypeScript config object
905
+ * @param options.serverReferences Array of server TypeScript references
904
906
  * @returns Promise
905
907
  */
906
908
  "prepare:types": (options: {
@@ -911,6 +913,8 @@ interface NuxtHooks {
911
913
  nodeReferences: TSReference[];
912
914
  sharedTsConfig: TSConfig;
913
915
  sharedReferences: TSReference[];
916
+ serverTsConfig: TSConfig;
917
+ serverReferences: TSReference[];
914
918
  }) => HookResult;
915
919
  /**
916
920
  * Called when the dev server is loading.
@@ -1475,6 +1479,12 @@ interface NuxtServerBuild {
1475
1479
  * builder's own build.
1476
1480
  */
1477
1481
  buildsSeparately: boolean;
1482
+ /**
1483
+ * The auto-imports available in the server program, when the builder provides any. Read by
1484
+ * the app layer to work out which of its own auto-imports also resolve on the server, so it
1485
+ * can type the shared context without naming a particular server runtime.
1486
+ */
1487
+ imports?: () => Promise<Import[]>;
1478
1488
  output: NuxtServerBuildOutput;
1479
1489
  capabilities: NuxtServerBuildCapabilities;
1480
1490
  runtime: NuxtServerBuildRuntime;
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as NuxtPluginTemplate, $t as NuxtImportDeclarationType, A as NuxtConfig, At as NuxtLayout, B as ViewTransitionPageOptions, Bt as RequestEvent, C as NuxtLayerSourceOptions, Ct as GenerateAppOptions, D as DefineNuxtConfig, Dt as NuxtAnalyzeMeta, E as CustomAppConfig, Et as ModuleInstallInfo, F as RuntimeValue, Ft as VueTSConfig, G as WebpackPluginInstance, Gt as ServerRoutes, H as ViteOptions, Ht as ServerRequestTypes, I as SchemaDefinition, It as WatchEvent, J as MetaObjectRaw, Jt as NuxtManifestResource, K as AppHeadMetaObject, Kt as ServerTypes, L as SharedAppConfig, Lt as AppRouteRules, M as NuxtOptions, Mt as NuxtPage, N as PublicRuntimeConfig, Nt as NuxtPageMeta, O as NuxtAppConfig, Ot as NuxtHookName, P as RuntimeConfig, Pt as TSReference, Q as NuxtPlugin, Qt as NuxtImportCommon, R as UpperSnakeCase, Rt as AppRouteRulesBase, S as NuxtDotenvOptions, St as ResolvedModuleOptions, T as AppConfigInput, Tt as ImportPresetWithDeprecation, U as VitePlugin, Ut as ServerRouteHandler, V as ViteConfig, Vt as RequestEventFallback, W as WebpackConfig, Wt as ServerRouteSegment, X as NuxtApp, Xt as NuxtImport, Y as Nuxt, Yt as ImportsOptions, Z as NuxtBuildOutputs, Zt as NuxtImportAddonsOptions, _ as RouterConfig, _n as NuxtCompatibilityIssue, _t as ModuleMeta, a as NitroInstanceOptionsFallback, an as NuxtImportScanOptions, at as NuxtServerTemplate, b as NuxtConfigLayer, bt as ModuleSetupReturn, c as ComponentMeta, cn as NuxtIgnoreOptions, ct as NuxtTemplateDependency, d as ScanDir, dn as NuxtHookCallback, dt as NuxtDebugContext, en as NuxtImportEntry, f as CompilerScanDir, fn as NuxtHookKeys, ft as NuxtDebugModuleMutationRecord, g as ConfigSchema, gn as NuxtCompatibility, gt as ModuleDependencyMeta, h as NuxtCompilerOptions, hn as NuxtNestedHooks, ht as ModuleDependencies, i as NitroInstanceOptions, in as NuxtImportScanDir, j as NuxtConfigInput, jt as NuxtMiddleware, k as NuxtBuilder, kt as NuxtHooks, l as ComponentsDir, ln as NuxtIgnoreTestResult, lt as NuxtTypeTemplate, m as KeyedFunctionFactory, mn as NuxtHookSpyEvent, mt as ModuleDefinition, n as NitroInstance, nn as NuxtImportPresetName, o as NitroTypes, on as NuxtPackageImportPreset, ot as NuxtTemplate, p as KeyedFunction, pn as NuxtHookRegistry, pt as NuxtDebugOptions, q as MetaObject, qt as NuxtManifest, r as NitroInstanceFallback, rn as NuxtImportPresetSource, s as Component, sn as NuxtIgnoreMatcher, st as NuxtTemplateChange, t as _default, tn as NuxtImportPreset, u as ComponentsOptions, un as NuxtDeprecatedHook, ut as ResolvedNuxtTemplate, v as RouterConfigSerializable, vn as NuxtCompatibilityIssues, vt as ModuleOptions, w as AppConfig, wt as HookResult, x as NuxtConfigLayerMeta, xt as NuxtModule, y as RouterOptions, yt as ModuleSetupInstallResult, z as ViewTransitionOptions, zt as AppRouteRulesExtensions } from "./index-5fr9wce5.mjs";
1
+ import { $ as NuxtPluginTemplate, $t as NuxtImportDeclarationType, A as NuxtConfig, At as NuxtLayout, B as ViewTransitionPageOptions, Bt as RequestEvent, C as NuxtLayerSourceOptions, Ct as GenerateAppOptions, D as DefineNuxtConfig, Dt as NuxtAnalyzeMeta, E as CustomAppConfig, Et as ModuleInstallInfo, F as RuntimeValue, Ft as VueTSConfig, G as WebpackPluginInstance, Gt as ServerRoutes, H as ViteOptions, Ht as ServerRequestTypes, I as SchemaDefinition, It as WatchEvent, J as MetaObjectRaw, Jt as NuxtManifestResource, K as AppHeadMetaObject, Kt as ServerTypes, L as SharedAppConfig, Lt as AppRouteRules, M as NuxtOptions, Mt as NuxtPage, N as PublicRuntimeConfig, Nt as NuxtPageMeta, O as NuxtAppConfig, Ot as NuxtHookName, P as RuntimeConfig, Pt as TSReference, Q as NuxtPlugin, Qt as NuxtImportCommon, R as UpperSnakeCase, Rt as AppRouteRulesBase, S as NuxtDotenvOptions, St as ResolvedModuleOptions, T as AppConfigInput, Tt as ImportPresetWithDeprecation, U as VitePlugin, Ut as ServerRouteHandler, V as ViteConfig, Vt as RequestEventFallback, W as WebpackConfig, Wt as ServerRouteSegment, X as NuxtApp, Xt as NuxtImport, Y as Nuxt, Yt as ImportsOptions, Z as NuxtBuildOutputs, Zt as NuxtImportAddonsOptions, _ as RouterConfig, _n as NuxtCompatibilityIssue, _t as ModuleMeta, a as NitroInstanceOptionsFallback, an as NuxtImportScanOptions, at as NuxtServerTemplate, b as NuxtConfigLayer, bt as ModuleSetupReturn, c as ComponentMeta, cn as NuxtIgnoreOptions, ct as NuxtTemplateDependency, d as ScanDir, dn as NuxtHookCallback, dt as NuxtDebugContext, en as NuxtImportEntry, f as CompilerScanDir, fn as NuxtHookKeys, ft as NuxtDebugModuleMutationRecord, g as ConfigSchema, gn as NuxtCompatibility, gt as ModuleDependencyMeta, h as NuxtCompilerOptions, hn as NuxtNestedHooks, ht as ModuleDependencies, i as NitroInstanceOptions, in as NuxtImportScanDir, j as NuxtConfigInput, jt as NuxtMiddleware, k as NuxtBuilder, kt as NuxtHooks, l as ComponentsDir, ln as NuxtIgnoreTestResult, lt as NuxtTypeTemplate, m as KeyedFunctionFactory, mn as NuxtHookSpyEvent, mt as ModuleDefinition, n as NitroInstance, nn as NuxtImportPresetName, o as NitroTypes, on as NuxtPackageImportPreset, ot as NuxtTemplate, p as KeyedFunction, pn as NuxtHookRegistry, pt as NuxtDebugOptions, q as MetaObject, qt as NuxtManifest, r as NitroInstanceFallback, rn as NuxtImportPresetSource, s as Component, sn as NuxtIgnoreMatcher, st as NuxtTemplateChange, t as _default, tn as NuxtImportPreset, u as ComponentsOptions, un as NuxtDeprecatedHook, ut as ResolvedNuxtTemplate, v as RouterConfigSerializable, vn as NuxtCompatibilityIssues, vt as ModuleOptions, w as AppConfig, wt as HookResult, x as NuxtConfigLayerMeta, xt as NuxtModule, y as RouterOptions, yt as ModuleSetupInstallResult, z as ViewTransitionOptions, zt as AppRouteRulesExtensions } from "./index-OqvpLTgt.mjs";
2
2
  export { type AppConfig, type AppConfigInput, type AppHeadMetaObject, type AppRouteRules, type AppRouteRulesBase, type AppRouteRulesExtensions, type CompilerScanDir, type Component, type ComponentMeta, type ComponentsDir, type ComponentsOptions, type ConfigSchema, type CustomAppConfig, type DefineNuxtConfig, type GenerateAppOptions, type HookResult, type ImportPresetWithDeprecation, type ImportsOptions, type KeyedFunction, type KeyedFunctionFactory, type MetaObject, type MetaObjectRaw, type ModuleDefinition, type ModuleDependencies, type ModuleDependencyMeta, type ModuleInstallInfo, type ModuleMeta, type ModuleOptions, type ModuleSetupInstallResult, type ModuleSetupReturn, type NitroInstance, type NitroInstanceFallback, type NitroInstanceOptions, type NitroInstanceOptionsFallback, type NitroTypes, type Nuxt, type NuxtAnalyzeMeta, type NuxtApp, type NuxtAppConfig, type NuxtBuildOutputs, type NuxtBuilder, type NuxtCompatibility, type NuxtCompatibilityIssue, type NuxtCompatibilityIssues, type NuxtCompilerOptions, type NuxtConfig, type NuxtConfigInput, type NuxtConfigLayer, type NuxtConfigLayerMeta, _default as NuxtConfigSchema, type NuxtDebugContext, type NuxtDebugModuleMutationRecord, type NuxtDebugOptions, type NuxtDeprecatedHook, type NuxtDotenvOptions, type NuxtHookCallback, type NuxtHookKeys, type NuxtHookName, type NuxtHookRegistry, type NuxtHookSpyEvent, type NuxtHooks, type NuxtIgnoreMatcher, type NuxtIgnoreOptions, type NuxtIgnoreTestResult, type NuxtImport, type NuxtImportAddonsOptions, type NuxtImportCommon, type NuxtImportDeclarationType, type NuxtImportEntry, type NuxtImportPreset, type NuxtImportPresetName, type NuxtImportPresetSource, type NuxtImportScanDir, type NuxtImportScanOptions, type NuxtLayerSourceOptions, type NuxtLayout, type NuxtManifest, type NuxtManifestResource, type NuxtMiddleware, type NuxtModule, type NuxtNestedHooks, type NuxtOptions, type NuxtPackageImportPreset, type NuxtPage, type NuxtPageMeta, type NuxtPlugin, type NuxtPluginTemplate, type NuxtServerTemplate, type NuxtTemplate, type NuxtTemplateChange, type NuxtTemplateDependency, type NuxtTypeTemplate, type PublicRuntimeConfig, type RequestEvent, type RequestEventFallback, type ResolvedModuleOptions, type ResolvedNuxtTemplate, type RouterConfig, type RouterConfigSerializable, type RouterOptions, type RuntimeConfig, type RuntimeValue, type ScanDir, type SchemaDefinition, type ServerRequestTypes, type ServerRouteHandler, type ServerRouteSegment, type ServerRoutes, type ServerTypes, type SharedAppConfig, type TSReference, type UpperSnakeCase, type ViewTransitionOptions, type ViewTransitionPageOptions, type ViteConfig, type ViteOptions, type VitePlugin, type VueTSConfig, type WatchEvent, type WebpackConfig, type WebpackPluginInstance };
package/dist/index.mjs CHANGED
@@ -600,7 +600,7 @@ const template = (messages) => {
600
600
  ..._messages,
601
601
  ...messages
602
602
  };
603
- return "<!DOCTYPE html><html lang=\"en\"><head><title>" + escapeHtml(messages.loading) + " | " + escapeHtml(messages.appName) + "</title><meta charset=\"utf-8\"><meta content=\"width=device-width,initial-scale=1,minimum-scale=1\" name=\"viewport\"><style>.nuxt-loader-bar{background:#00dc82;position:fixed;bottom:0;left:0;right:0;height:3px}.triangle-loading{position:absolute}.triangle-loading>path{fill:none;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-loading-move 3s linear infinite}.nuxt-logo:hover .triangle-loading>path{animation-play-state:paused}@keyframes nuxt-loading-move{to{stroke-dashoffset:-128}}@media (prefers-color-scheme:dark){body,html{color:#fff;color-scheme:dark}}*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:\"\"}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}svg{vertical-align:middle;display:block}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x:;--un-pan-y:;--un-pinch-zoom:;--un-scroll-snap-strictness:proximity;--un-ordinal:;--un-slashed-zero:;--un-numeric-figure:;--un-numeric-spacing:;--un-numeric-fraction:;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset:;--un-shadow:0 0 #0000;--un-ring-inset:;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur:;--un-brightness:;--un-contrast:;--un-drop-shadow:;--un-grayscale:;--un-hue-rotate:;--un-invert:;--un-saturate:;--un-sepia:;--un-backdrop-blur:;--un-backdrop-brightness:;--un-backdrop-contrast:;--un-backdrop-grayscale:;--un-backdrop-hue-rotate:;--un-backdrop-invert:;--un-backdrop-opacity:;--un-backdrop-saturate:;--un-backdrop-sepia:}.relative{position:relative}.inline-block{display:inline-block}.min-h-screen{min-height:100vh}.flex{display:flex}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.border{border-width:1px}.border-\\[\\#00DC42\\]\\/50{border-color:#00dc4280}.group:hover .group-hover\\:border-\\[\\#00DC42\\]{--un-border-opacity:1;border-color:rgb(0 220 66/var(--un-border-opacity))}.rounded{border-radius:.25rem}.bg-\\[\\#00DC42\\]\\/10{background-color:#00dc421a}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.group:hover .group-hover\\:bg-\\[\\#00DC42\\]\\/15{background-color:#00dc4226}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.text-center{text-align:center}.text-\\[16px\\]{font-size:16px}.group:hover .group-hover\\:text-\\[\\#00DC82\\],.text-\\[\\#00DC82\\]{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.text-\\[\\#00DC82\\]\\/80{color:#00dc82cc}.group:hover .group-hover\\:text-\\[\\#020420\\],.text-\\[\\#020420\\]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\\[\\#020420\\]\\/80{color:#020420cc}.font-semibold{font-weight:600}.leading-none{line-height:1}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\\:bg-\\[\\#020420\\]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\\:text-gray-200{--un-text-opacity:1;color:rgb(224 224 224/var(--un-text-opacity))}.dark\\:text-white,.group:hover .dark\\:group-hover\\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}</style></head><body class=\"antialiased bg-white dark:bg-[#020420] dark:text-white flex flex-col font-sans items-center justify-center min-h-screen overflow-hidden relative text-[#020420] text-center\"><a href=\"https://nuxt.com/?utm_source=nuxt-loading-screen\" target=\"_blank\" rel=\"noopener\" class=\"flex gap-4 group items-end nuxt-logo\" id=\"nuxtImg\"><div class=\"relative\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" fill=\"none\" class=\"group-hover:text-[#00DC82] text-[#00DC82]/80 triangle-loading\" viewBox=\"0 0 37 25\"><path stroke=\"currentColor\" d=\"M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567\"/></svg> <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"214\" height=\"53\" fill=\"none\" class=\"dark:group-hover:text-white dark:text-gray-200 group-hover:text-[#020420] text-[#020420]/80\" viewBox=\"0 0 800 200\"><path fill=\"currentColor\" d=\"M377 200a4 4 0 0 0 4-4v-93s5.244 8.286 15 25l38.707 66.961c1.789 3.119 5.084 5.039 8.649 5.039H470V50h-27a4 4 0 0 0-4 4v94l-17-30-36.588-62.98c-1.792-3.108-5.081-5.02-8.639-5.02H350v150zm299.203-56.143L710.551 92h-25.73a9.97 9.97 0 0 0-8.333 4.522L660.757 120.5l-15.731-23.978A9.97 9.97 0 0 0 636.693 92h-25.527l34.348 51.643L608.524 200h24.966a9.97 9.97 0 0 0 8.29-4.458l19.18-28.756 18.981 28.72a9.97 9.97 0 0 0 8.313 4.494h24.736zM724.598 92h19.714V60.071h28.251V92H800v24.857h-27.437V159.5c0 10.5 5.284 15.429 14.43 15.429H800V200h-16.869c-23.576 0-38.819-14.143-38.819-39.214v-43.929h-19.714zM590 92h-15c-3.489 0-6.218.145-8.5 2.523-2.282 2.246-2.5 3.63-2.5 7.066v52.486c0 8.058-.376 12.962-4 16.925-3.624 3.831-8.619 5-16 5-7.247 0-12.376-1.169-16-5-3.624-3.963-4-8.867-4-16.925v-52.486c0-3.435-.218-4.82-2.5-7.066C519.218 92.145 516.489 92 513 92h-15v62.422q0 21.006 11.676 33.292C517.594 195.905 529.103 200 544 200s26.204-4.095 34.123-12.286Q590 175.428 590 154.422z\"/></svg></div> <span class=\"bg-[#00DC42]/10 border border-[#00DC42]/50 font-mono font-semibold group-hover:bg-[#00DC42]/15 group-hover:border-[#00DC42] inline-block leading-none px-2.5 py-1.5 rounded text-[#00DC82] text-[16px]\">5.0.0-29807919.2cbde35e</span> </a><div class=\"nuxt-loader-bar\"></div><script>if(void 0===window.fetch)setTimeout(()=>window.location.reload(),200);else{let t=200;const e=async()=>{try{if(!(await window.fetch(window.location.href,{headers:{accept:\"text/html\"}}).then(t=>t.text())).includes(\"__NUXT_LOADING__\"))return window.location.reload()}catch{}setTimeout(e,t),t=Math.min(Math.round(1.5*t),1e3)};e()}<\/script><script>const prefersReducedMotion=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;function whatHemisphere(){let e=new Date;if(null==e.getTimezoneOffset)return null;e=e.getFullYear();let t=-new Date(e,0,1,0,0,0,0).getTimezoneOffset()- -new Date(e,6,1,0,0,0,0).getTimezoneOffset();return t<0?\"N\":t>0?\"S\":null}const months={N:[10,11,0],S:[4,5,6]},hemisphere=whatHemisphere();if(hemisphere&&months[hemisphere].includes((new Date).getMonth())&&!prefersReducedMotion){let e=\"false\"!==localStorage.getItem(\"nuxt-snow\"),t=null,n=[],r=Date.now();const i=25e-5,a=1.25,o={current:0,maxCurrent:4,force:.1,target:.1,min:.1,max:.4,easing:.01},s=(e,t)=>(e%t+t)%t,d=document.createElement(\"button\");d.id=\"snow-toggle\",d.style=\"position:fixed;bottom:16px;right:16px;z-index:100;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:8px;padding:8px 12px;cursor:pointer;font-size:20px;\",document.body.appendChild(d);const h=document.createElement(\"canvas\");h.id=\"snow-canvas\",h.style=\"position:fixed;inset:0;z-index:-10;pointer-events:none;opacity:0;transition:opacity 0.5s;filter:blur(4px);\",document.body.appendChild(h);const l=h.getContext(\"2d\");function resize(){h.width=window.innerWidth,h.height=window.innerHeight,n=Array.from({length:Math.floor(h.width*h.height*i)},()=>({x:Math.random()*h.width,y:Math.random()*h.height,vx:1+Math.random(),vy:1+Math.random(),vsin:10*Math.random(),rangle:2*Math.random()*Math.PI,rsin:10*Math.random(),color:`rgba(255,255,255,${.1+.15*Math.random()})`,size:5*Math.random()*4*(h.height/1e3)}))}function draw(){l.clearRect(0,0,h.width,h.height);const e=Date.now(),i=e-r;r=e,o.force+=(o.target-o.force)*o.easing,o.current=Math.max(-o.maxCurrent,Math.min(o.current+o.force*i*.05,o.maxCurrent)),Math.random()>.995&&(o.target=(o.min+Math.random()*(o.max-o.min))*(Math.random()>.5?-1:1));const d=.2*i;n.forEach(e=>{e.x=s(e.x+d+o.current*e.vx,h.width),e.y=s(e.y+d*e.vy*a,h.height),e.x+=Math.sin(d*e.vsin)*e.rsin*.5,e.rangle+=.01*d,l.fillStyle=e.color,l.beginPath(),l.ellipse(e.x,e.y,e.size,.66*e.size,e.rangle,0,2*Math.PI),l.fill()}),t=requestAnimationFrame(draw)}function update(){d.innerHTML=e?\"☀️\":\"❄️\",d.title=e?\"Disable snow\":\"Enable snow\",e?(resize(),window.addEventListener(\"resize\",resize),h.style.opacity=1,r=Date.now(),draw()):(t&&cancelAnimationFrame(t),t=null,window.removeEventListener(\"resize\",resize),h.style.opacity=0)}d.onclick=()=>{e=!e,localStorage.setItem(\"nuxt-snow\",e),update()},update()}<\/script></body></html>";
603
+ return "<!DOCTYPE html><html lang=\"en\"><head><title>" + escapeHtml(messages.loading) + " | " + escapeHtml(messages.appName) + "</title><meta charset=\"utf-8\"><meta content=\"width=device-width,initial-scale=1,minimum-scale=1\" name=\"viewport\"><style>.nuxt-loader-bar{background:#00dc82;position:fixed;bottom:0;left:0;right:0;height:3px}.triangle-loading{position:absolute}.triangle-loading>path{fill:none;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-loading-move 3s linear infinite}.nuxt-logo:hover .triangle-loading>path{animation-play-state:paused}@keyframes nuxt-loading-move{to{stroke-dashoffset:-128}}@media (prefers-color-scheme:dark){body,html{color:#fff;color-scheme:dark}}*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:\"\"}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}svg{vertical-align:middle;display:block}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x:;--un-pan-y:;--un-pinch-zoom:;--un-scroll-snap-strictness:proximity;--un-ordinal:;--un-slashed-zero:;--un-numeric-figure:;--un-numeric-spacing:;--un-numeric-fraction:;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset:;--un-shadow:0 0 #0000;--un-ring-inset:;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur:;--un-brightness:;--un-contrast:;--un-drop-shadow:;--un-grayscale:;--un-hue-rotate:;--un-invert:;--un-saturate:;--un-sepia:;--un-backdrop-blur:;--un-backdrop-brightness:;--un-backdrop-contrast:;--un-backdrop-grayscale:;--un-backdrop-hue-rotate:;--un-backdrop-invert:;--un-backdrop-opacity:;--un-backdrop-saturate:;--un-backdrop-sepia:}.relative{position:relative}.inline-block{display:inline-block}.min-h-screen{min-height:100vh}.flex{display:flex}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.border{border-width:1px}.border-\\[\\#00DC42\\]\\/50{border-color:#00dc4280}.group:hover .group-hover\\:border-\\[\\#00DC42\\]{--un-border-opacity:1;border-color:rgb(0 220 66/var(--un-border-opacity))}.rounded{border-radius:.25rem}.bg-\\[\\#00DC42\\]\\/10{background-color:#00dc421a}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.group:hover .group-hover\\:bg-\\[\\#00DC42\\]\\/15{background-color:#00dc4226}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.text-center{text-align:center}.text-\\[16px\\]{font-size:16px}.group:hover .group-hover\\:text-\\[\\#00DC82\\],.text-\\[\\#00DC82\\]{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.text-\\[\\#00DC82\\]\\/80{color:#00dc82cc}.group:hover .group-hover\\:text-\\[\\#020420\\],.text-\\[\\#020420\\]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\\[\\#020420\\]\\/80{color:#020420cc}.font-semibold{font-weight:600}.leading-none{line-height:1}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\\:bg-\\[\\#020420\\]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\\:text-gray-200{--un-text-opacity:1;color:rgb(224 224 224/var(--un-text-opacity))}.dark\\:text-white,.group:hover .dark\\:group-hover\\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}</style></head><body class=\"antialiased bg-white dark:bg-[#020420] dark:text-white flex flex-col font-sans items-center justify-center min-h-screen overflow-hidden relative text-[#020420] text-center\"><a href=\"https://nuxt.com/?utm_source=nuxt-loading-screen\" target=\"_blank\" rel=\"noopener\" class=\"flex gap-4 group items-end nuxt-logo\" id=\"nuxtImg\"><div class=\"relative\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" fill=\"none\" class=\"group-hover:text-[#00DC82] text-[#00DC82]/80 triangle-loading\" viewBox=\"0 0 37 25\"><path stroke=\"currentColor\" d=\"M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567\"/></svg> <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"214\" height=\"53\" fill=\"none\" class=\"dark:group-hover:text-white dark:text-gray-200 group-hover:text-[#020420] text-[#020420]/80\" viewBox=\"0 0 800 200\"><path fill=\"currentColor\" d=\"M377 200a4 4 0 0 0 4-4v-93s5.244 8.286 15 25l38.707 66.961c1.789 3.119 5.084 5.039 8.649 5.039H470V50h-27a4 4 0 0 0-4 4v94l-17-30-36.588-62.98c-1.792-3.108-5.081-5.02-8.639-5.02H350v150zm299.203-56.143L710.551 92h-25.73a9.97 9.97 0 0 0-8.333 4.522L660.757 120.5l-15.731-23.978A9.97 9.97 0 0 0 636.693 92h-25.527l34.348 51.643L608.524 200h24.966a9.97 9.97 0 0 0 8.29-4.458l19.18-28.756 18.981 28.72a9.97 9.97 0 0 0 8.313 4.494h24.736zM724.598 92h19.714V60.071h28.251V92H800v24.857h-27.437V159.5c0 10.5 5.284 15.429 14.43 15.429H800V200h-16.869c-23.576 0-38.819-14.143-38.819-39.214v-43.929h-19.714zM590 92h-15c-3.489 0-6.218.145-8.5 2.523-2.282 2.246-2.5 3.63-2.5 7.066v52.486c0 8.058-.376 12.962-4 16.925-3.624 3.831-8.619 5-16 5-7.247 0-12.376-1.169-16-5-3.624-3.963-4-8.867-4-16.925v-52.486c0-3.435-.218-4.82-2.5-7.066C519.218 92.145 516.489 92 513 92h-15v62.422q0 21.006 11.676 33.292C517.594 195.905 529.103 200 544 200s26.204-4.095 34.123-12.286Q590 175.428 590 154.422z\"/></svg></div> <span class=\"bg-[#00DC42]/10 border border-[#00DC42]/50 font-mono font-semibold group-hover:bg-[#00DC42]/15 group-hover:border-[#00DC42] inline-block leading-none px-2.5 py-1.5 rounded text-[#00DC82] text-[16px]\">5.0.0-29809859.f0ca99e9</span> </a><div class=\"nuxt-loader-bar\"></div><script>if(void 0===window.fetch)setTimeout(()=>window.location.reload(),200);else{let t=200;const e=async()=>{try{if(!(await window.fetch(window.location.href,{headers:{accept:\"text/html\"}}).then(t=>t.text())).includes(\"__NUXT_LOADING__\"))return window.location.reload()}catch{}setTimeout(e,t),t=Math.min(Math.round(1.5*t),1e3)};e()}<\/script><script>const prefersReducedMotion=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;function whatHemisphere(){let e=new Date;if(null==e.getTimezoneOffset)return null;e=e.getFullYear();let t=-new Date(e,0,1,0,0,0,0).getTimezoneOffset()- -new Date(e,6,1,0,0,0,0).getTimezoneOffset();return t<0?\"N\":t>0?\"S\":null}const months={N:[10,11,0],S:[4,5,6]},hemisphere=whatHemisphere();if(hemisphere&&months[hemisphere].includes((new Date).getMonth())&&!prefersReducedMotion){let e=\"false\"!==localStorage.getItem(\"nuxt-snow\"),t=null,n=[],r=Date.now();const i=25e-5,a=1.25,o={current:0,maxCurrent:4,force:.1,target:.1,min:.1,max:.4,easing:.01},s=(e,t)=>(e%t+t)%t,d=document.createElement(\"button\");d.id=\"snow-toggle\",d.style=\"position:fixed;bottom:16px;right:16px;z-index:100;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:8px;padding:8px 12px;cursor:pointer;font-size:20px;\",document.body.appendChild(d);const h=document.createElement(\"canvas\");h.id=\"snow-canvas\",h.style=\"position:fixed;inset:0;z-index:-10;pointer-events:none;opacity:0;transition:opacity 0.5s;filter:blur(4px);\",document.body.appendChild(h);const l=h.getContext(\"2d\");function resize(){h.width=window.innerWidth,h.height=window.innerHeight,n=Array.from({length:Math.floor(h.width*h.height*i)},()=>({x:Math.random()*h.width,y:Math.random()*h.height,vx:1+Math.random(),vy:1+Math.random(),vsin:10*Math.random(),rangle:2*Math.random()*Math.PI,rsin:10*Math.random(),color:`rgba(255,255,255,${.1+.15*Math.random()})`,size:5*Math.random()*4*(h.height/1e3)}))}function draw(){l.clearRect(0,0,h.width,h.height);const e=Date.now(),i=e-r;r=e,o.force+=(o.target-o.force)*o.easing,o.current=Math.max(-o.maxCurrent,Math.min(o.current+o.force*i*.05,o.maxCurrent)),Math.random()>.995&&(o.target=(o.min+Math.random()*(o.max-o.min))*(Math.random()>.5?-1:1));const d=.2*i;n.forEach(e=>{e.x=s(e.x+d+o.current*e.vx,h.width),e.y=s(e.y+d*e.vy*a,h.height),e.x+=Math.sin(d*e.vsin)*e.rsin*.5,e.rangle+=.01*d,l.fillStyle=e.color,l.beginPath(),l.ellipse(e.x,e.y,e.size,.66*e.size,e.rangle,0,2*Math.PI),l.fill()}),t=requestAnimationFrame(draw)}function update(){d.innerHTML=e?\"☀️\":\"❄️\",d.title=e?\"Disable snow\":\"Enable snow\",e?(resize(),window.addEventListener(\"resize\",resize),h.style.opacity=1,r=Date.now(),draw()):(t&&cancelAnimationFrame(t),t=null,window.removeEventListener(\"resize\",resize),h.style.opacity=0)}d.onclick=()=>{e=!e,localStorage.setItem(\"nuxt-snow\",e),update()},update()}<\/script></body></html>";
604
604
  };
605
605
  //#endregion
606
606
  //#region src/config/dev.ts
@@ -1,2 +1,2 @@
1
- import { et as NuxtServerBuild, it as NuxtServerBuildRuntime, nt as NuxtServerBuildOutput, rt as NuxtServerBuildPreview, tt as NuxtServerBuildCapabilities } from "./index-5fr9wce5.mjs";
1
+ import { et as NuxtServerBuild, it as NuxtServerBuildRuntime, nt as NuxtServerBuildOutput, rt as NuxtServerBuildPreview, tt as NuxtServerBuildCapabilities } from "./index-OqvpLTgt.mjs";
2
2
  export type { NuxtServerBuild, NuxtServerBuildCapabilities, NuxtServerBuildOutput, NuxtServerBuildPreview, NuxtServerBuildRuntime };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/schema-nightly",
3
- "version": "5.0.0-29807919.2cbde35e",
3
+ "version": "5.0.0-29809859.f0ca99e9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -56,15 +56,15 @@
56
56
  "cssnano": "^9.0.1",
57
57
  "esbuild": "0.28.2",
58
58
  "esbuild-loader": "^4.5.0",
59
- "h3": "2.0.1-rc.22",
59
+ "h3": "^2.0.1-rc.31",
60
60
  "mini-css-extract-plugin": "^2.10.2",
61
- "ofetch": "2.0.0-alpha.3",
61
+ "ofetch": "^2.0.0-alpha.3",
62
62
  "oxc-transform": "0.147.0",
63
63
  "postcss": "^8.5.26",
64
64
  "rollup-plugin-visualizer": "7.1.1",
65
65
  "tsdown": "0.22.14",
66
66
  "unctx": "^3.0.1",
67
- "unimport": "^6.4.0",
67
+ "unimport": "6.4.0",
68
68
  "untyped": "^2.0.0",
69
69
  "vite": "^8.2.2",
70
70
  "vitest": "4.1.11",