nuxt-nightly 4.2.0-29338985.3c38d1f8 → 4.2.0-29344151.f836eca0

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.
Files changed (43) hide show
  1. package/dist/app/composables/payload.js +1 -1
  2. package/dist/app/types/augments.d.ts +0 -26
  3. package/dist/app/types.d.ts +35 -2
  4. package/dist/index.mjs +29 -769
  5. package/package.json +6 -13
  6. package/types.d.mts +1 -38
  7. package/types.d.ts +1 -38
  8. package/dist/core/runtime/nitro/handlers/error.d.ts +0 -3
  9. package/dist/core/runtime/nitro/handlers/error.js +0 -63
  10. package/dist/core/runtime/nitro/handlers/island.d.ts +0 -4
  11. package/dist/core/runtime/nitro/handlers/island.js +0 -100
  12. package/dist/core/runtime/nitro/handlers/renderer.d.ts +0 -16
  13. package/dist/core/runtime/nitro/handlers/renderer.js +0 -237
  14. package/dist/core/runtime/nitro/middleware/no-ssr.d.ts +0 -2
  15. package/dist/core/runtime/nitro/middleware/no-ssr.js +0 -7
  16. package/dist/core/runtime/nitro/plugins/dev-server-logs.d.ts +0 -3
  17. package/dist/core/runtime/nitro/plugins/dev-server-logs.js +0 -82
  18. package/dist/core/runtime/nitro/templates/error-500.d.ts +0 -2
  19. package/dist/core/runtime/nitro/templates/error-500.js +0 -6
  20. package/dist/core/runtime/nitro/utils/app-config.d.ts +0 -2
  21. package/dist/core/runtime/nitro/utils/app-config.js +0 -25
  22. package/dist/core/runtime/nitro/utils/cache-driver.d.ts +0 -2
  23. package/dist/core/runtime/nitro/utils/cache-driver.js +0 -34
  24. package/dist/core/runtime/nitro/utils/cache.d.ts +0 -8
  25. package/dist/core/runtime/nitro/utils/cache.js +0 -18
  26. package/dist/core/runtime/nitro/utils/config.d.ts +0 -1
  27. package/dist/core/runtime/nitro/utils/config.js +0 -1
  28. package/dist/core/runtime/nitro/utils/dev.d.ts +0 -1
  29. package/dist/core/runtime/nitro/utils/dev.js +0 -328
  30. package/dist/core/runtime/nitro/utils/error.d.ts +0 -6
  31. package/dist/core/runtime/nitro/utils/error.js +0 -11
  32. package/dist/core/runtime/nitro/utils/paths.d.ts +0 -4
  33. package/dist/core/runtime/nitro/utils/paths.js +0 -16
  34. package/dist/core/runtime/nitro/utils/renderer/app.d.ts +0 -7
  35. package/dist/core/runtime/nitro/utils/renderer/app.js +0 -32
  36. package/dist/core/runtime/nitro/utils/renderer/build-files.d.ts +0 -22
  37. package/dist/core/runtime/nitro/utils/renderer/build-files.js +0 -86
  38. package/dist/core/runtime/nitro/utils/renderer/inline-styles.d.ts +0 -2
  39. package/dist/core/runtime/nitro/utils/renderer/inline-styles.js +0 -13
  40. package/dist/core/runtime/nitro/utils/renderer/islands.d.ts +0 -36
  41. package/dist/core/runtime/nitro/utils/renderer/islands.js +0 -82
  42. package/dist/core/runtime/nitro/utils/renderer/payload.d.ts +0 -37
  43. package/dist/core/runtime/nitro/utils/renderer/payload.js +0 -66
@@ -85,7 +85,7 @@ export async function isPrerendered(url = useRoute().path) {
85
85
  if (!appManifest) {
86
86
  return !!nuxtApp.payload.prerenderedAt;
87
87
  }
88
- url = url.replace(/\/$/, "");
88
+ url = url === "/" ? url : url.replace(/\/$/, "");
89
89
  const manifest = await getAppManifest();
90
90
  if (manifest.prerendered.includes(url)) {
91
91
  return true;
@@ -1,31 +1,5 @@
1
1
  import type { UseHeadInput } from '@unhead/vue/types';
2
2
  import type { NuxtApp, useNuxtApp } from '../nuxt.js';
3
- declare module 'nitropack' {
4
- interface NitroRuntimeConfigApp {
5
- buildAssetsDir: string;
6
- cdnURL: string;
7
- }
8
- interface NitroRouteRules {
9
- ssr?: boolean;
10
- noScripts?: boolean;
11
- /** @deprecated Use `noScripts` instead */
12
- experimentalNoScripts?: boolean;
13
- appMiddleware?: Record<string, boolean>;
14
- }
15
- }
16
- declare module 'nitropack/types' {
17
- interface NitroRuntimeConfigApp {
18
- buildAssetsDir: string;
19
- cdnURL: string;
20
- }
21
- interface NitroRouteRules {
22
- ssr?: boolean;
23
- noScripts?: boolean;
24
- /** @deprecated Use `noScripts` instead */
25
- experimentalNoScripts?: boolean;
26
- appMiddleware?: Record<string, boolean>;
27
- }
28
- }
29
3
  declare global {
30
4
  namespace NodeJS {
31
5
  interface Process {
@@ -1,6 +1,39 @@
1
+ import type { SerializableHead } from '@unhead/vue';
1
2
  export type { PageMeta, NuxtPageProps } from '../pages/runtime/index.js';
2
3
  export interface NuxtAppLiterals {
3
4
  [key: string]: string;
4
5
  }
5
- export type { NuxtRenderHTMLContext } from '../core/runtime/nitro/handlers/renderer.js';
6
- export type { NuxtIslandResponse, NuxtIslandContext } from '../core/runtime/nitro/utils/renderer/islands.js';
6
+ export interface NuxtIslandSlotResponse {
7
+ props: Array<unknown>;
8
+ fallback?: string;
9
+ }
10
+ export interface NuxtIslandClientResponse {
11
+ html: string;
12
+ props: unknown;
13
+ chunk: string;
14
+ slots?: Record<string, string>;
15
+ }
16
+ export interface NuxtIslandContext {
17
+ id?: string;
18
+ name: string;
19
+ props?: Record<string, any>;
20
+ url: string;
21
+ slots: Record<string, Omit<NuxtIslandSlotResponse, 'fallback'>>;
22
+ components: Record<string, Omit<NuxtIslandClientResponse, 'html'>>;
23
+ }
24
+ export interface NuxtIslandResponse {
25
+ id?: string;
26
+ html: string;
27
+ head: SerializableHead;
28
+ props?: Record<string, Record<string, any>>;
29
+ components?: Record<string, NuxtIslandClientResponse>;
30
+ slots?: Record<string, NuxtIslandSlotResponse>;
31
+ }
32
+ export interface NuxtRenderHTMLContext {
33
+ htmlAttrs: string[];
34
+ head: string[];
35
+ bodyAttrs: string[];
36
+ bodyPrepend: string[];
37
+ body: string[];
38
+ bodyAppend: string[];
39
+ }