@nuxt/nitro-server-nightly 4.3.0-29433549.f89d447a → 4.3.0-29434171.a4fda917

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.
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import { isWindows } from 'std-env';
17
17
  import { ImpoundPlugin } from 'impound';
18
18
  import { resolveModulePath } from 'exsolve';
19
19
 
20
- const version = "4.3.0-29433549.f89d447a";
20
+ const version = "4.3.0-29434171.a4fda917";
21
21
  const nitroBuilder = {
22
22
  version: version};
23
23
 
@@ -1,2 +1,3 @@
1
1
  import type { H3Event } from 'h3';
2
- export declare function useAppConfig(event?: H3Event): any;
2
+ import type { AppConfig } from '@nuxt/schema';
3
+ export declare function useAppConfig(event?: H3Event): AppConfig;
@@ -1,22 +1,16 @@
1
+ import type { RendererContext } from 'vue-bundle-renderer/runtime';
1
2
  import type { NuxtSSRContext } from 'nuxt/app';
2
- export declare const getSSRRenderer: () => Promise<{
3
- rendererContext: import("vue-bundle-renderer/runtime").RendererContext;
4
- renderToString(ssrContext: import("vue-bundle-renderer/runtime").SSRContext): Promise<{
3
+ interface Renderer {
4
+ rendererContext: RendererContext;
5
+ renderToString(ssrContext: NuxtSSRContext): Promise<{
5
6
  html: string;
6
7
  renderResourceHeaders: () => Record<string, string>;
7
8
  renderResourceHints: () => string;
8
9
  renderStyles: () => string;
9
10
  renderScripts: () => string;
10
11
  }>;
11
- }>;
12
- export declare function getRenderer(ssrContext: NuxtSSRContext): Promise<{
13
- rendererContext: import("vue-bundle-renderer/runtime").RendererContext;
14
- renderToString(ssrContext: import("vue-bundle-renderer/runtime").SSRContext): Promise<{
15
- html: string;
16
- renderResourceHeaders: () => Record<string, string>;
17
- renderResourceHints: () => string;
18
- renderStyles: () => string;
19
- renderScripts: () => string;
20
- }>;
21
- }>;
12
+ }
13
+ export declare const getSSRRenderer: () => Promise<Renderer>;
14
+ export declare function getRenderer(ssrContext: NuxtSSRContext): Promise<Renderer>;
22
15
  export declare const getSSRStyles: () => Promise<Record<string, () => Promise<string[]>>>;
16
+ export {};
@@ -1,14 +1,7 @@
1
+ import type { RenderResponse } from 'nitropack/types';
1
2
  import type { Script } from '@unhead/vue';
2
- import type { NuxtSSRContext } from 'nuxt/app';
3
- export declare function renderPayloadResponse(ssrContext: NuxtSSRContext): {
4
- body: string;
5
- statusCode: number;
6
- statusMessage: string;
7
- headers: {
8
- 'content-type': string;
9
- 'x-powered-by': string;
10
- };
11
- };
3
+ import type { NuxtPayload, NuxtSSRContext } from 'nuxt/app';
4
+ export declare function renderPayloadResponse(ssrContext: NuxtSSRContext): RenderResponse;
12
5
  export declare function renderPayloadJsonScript(opts: {
13
6
  ssrContext: NuxtSSRContext;
14
7
  data?: any;
@@ -19,19 +12,12 @@ export declare function renderPayloadScript(opts: {
19
12
  data?: any;
20
13
  src?: string;
21
14
  }): Script[];
22
- export declare function splitPayload(ssrContext: NuxtSSRContext): {
23
- initial: {
24
- prerenderedAt: number | undefined;
25
- path?: string | undefined;
26
- serverRendered?: boolean | undefined;
27
- state?: Record<string, any> | undefined;
28
- once?: Set<string> | undefined;
29
- config?: Pick<import("nuxt/schema").RuntimeConfig, "public" | "app"> | undefined;
30
- error?: import("nuxt/app").NuxtError<unknown> | undefined;
31
- _errors?: Record<string, import("nuxt/app").NuxtError<unknown> | undefined> | undefined;
32
- };
15
+ interface SplitPayload {
16
+ initial: Omit<NuxtPayload, 'data'>;
33
17
  payload: {
34
- data: Record<string, any> | undefined;
35
- prerenderedAt: number | undefined;
18
+ data?: NuxtPayload['data'];
19
+ prerenderedAt?: NuxtPayload['prerenderedAt'];
36
20
  };
37
- };
21
+ }
22
+ export declare function splitPayload(ssrContext: NuxtSSRContext): SplitPayload;
23
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/nitro-server-nightly",
3
- "version": "4.3.0-29433549.f89d447a",
3
+ "version": "4.3.0-29434171.a4fda917",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "@nuxt/devalue": "^2.0.2",
22
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29433549.f89d447a",
22
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29434171.a4fda917",
23
23
  "@unhead/vue": "^2.0.19",
24
24
  "@vue/shared": "^3.5.25",
25
25
  "consola": "^3.4.2",
@@ -46,11 +46,11 @@
46
46
  "vue-devtools-stub": "^0.1.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "nuxt": "npm:nuxt-nightly@4.3.0-29433549.f89d447a"
49
+ "nuxt": "npm:nuxt-nightly@4.3.0-29434171.a4fda917"
50
50
  },
51
51
  "devDependencies": {
52
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29433549.f89d447a",
53
- "nuxt": "npm:nuxt-nightly@4.3.0-29433549.f89d447a",
52
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29434171.a4fda917",
53
+ "nuxt": "npm:nuxt-nightly@4.3.0-29434171.a4fda917",
54
54
  "unbuild": "3.6.1",
55
55
  "vitest": "3.2.4"
56
56
  },