nuxt-nightly 4.2.3-29422039.47e05245 → 4.2.3-29425455.7d502292

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.
@@ -1,4 +1,4 @@
1
1
  export * from 'vue';
2
2
  export declare const install: () => void;
3
- export declare function set(target: any, key: string | number | symbol, val: any): any;
3
+ export declare function set<T>(target: any, key: string | number | symbol, val: T): T;
4
4
  export declare function del(target: any, key: string | number | symbol): void;
@@ -1 +1 @@
1
- export declare const setInterval: typeof globalThis.setInterval | (() => void);
1
+ export declare const setInterval: typeof globalThis.setInterval;
@@ -1,6 +1,6 @@
1
1
  import { createError } from "../composables/error.js";
2
2
  const intervalError = "[nuxt] `setInterval` should not be used on the server. Consider wrapping it with an `onNuxtReady`, `onBeforeMount` or `onMounted` lifecycle hook, or ensure you only call it in the browser by checking `import.meta.client`.";
3
- export const setInterval = import.meta.client ? globalThis.setInterval : () => {
3
+ export const setInterval = import.meta.client ? globalThis.setInterval : (() => {
4
4
  if (import.meta.dev) {
5
5
  throw createError({
6
6
  statusCode: 500,
@@ -8,4 +8,4 @@ export const setInterval = import.meta.client ? globalThis.setInterval : () => {
8
8
  });
9
9
  }
10
10
  console.error(intervalError);
11
- };
11
+ });
@@ -1,6 +1,6 @@
1
1
  export declare const NuxtImg: {
2
- setup: () => void;
2
+ setup: () => never;
3
3
  };
4
4
  export declare const NuxtPicture: {
5
- setup: () => void;
5
+ setup: () => never;
6
6
  };
@@ -1,3 +1,3 @@
1
- import type { CreateOptions } from './nuxt.js';
2
- declare const entry: (ctx?: CreateOptions["ssrContext"]) => Promise<any>;
1
+ import type { Entry } from './entry.js';
2
+ declare const entry: Entry | (() => Promise<Entry>);
3
3
  export default entry;
@@ -1,7 +1,8 @@
1
1
  import type { App } from 'vue';
2
2
  import '#build/fetch.mjs';
3
3
  import '#build/global-polyfills.mjs';
4
- import type { CreateOptions } from './nuxt.js';
4
+ import type { NuxtSSRContext } from './nuxt.js';
5
5
  import '#build/css';
6
- declare const _default: (ssrContext?: CreateOptions["ssrContext"]) => Promise<App<Element>>;
6
+ export type Entry = (ssrContext?: NuxtSSRContext) => Promise<App<Element>>;
7
+ declare const _default: Entry;
7
8
  export default _default;
package/dist/app/entry.js CHANGED
@@ -75,4 +75,4 @@ if (import.meta.client) {
75
75
  throw error;
76
76
  });
77
77
  }
78
- export default (ssrContext) => entry(ssrContext);
78
+ export default ((ssrContext) => entry(ssrContext));
@@ -1,6 +1,7 @@
1
1
  import type { App, EffectScope, Ref, VNode, onErrorCaptured } from 'vue';
2
2
  import type { RouteLocationNormalizedLoaded } from 'vue-router';
3
3
  import type { Hookable } from 'hookable';
4
+ import type { UseContext } from 'unctx';
4
5
  import type { SSRContext, createRenderer } from 'vue-bundle-renderer/runtime';
5
6
  import type { EventHandlerRequest, H3Event } from 'h3';
6
7
  import type { RenderResponse } from 'nitropack/types';
@@ -15,7 +16,7 @@ import type { NuxtAppManifestMeta } from './composables/manifest.js';
15
16
  import type { LoadingIndicator } from './composables/loading-indicator.js';
16
17
  import type { RouteAnnouncer } from './composables/route-announcer.js';
17
18
  import type { AppConfig, AppConfigInput, RuntimeConfig } from 'nuxt/schema';
18
- export declare function getNuxtAppCtx(id?: any): import("unctx/index").UseContext<NuxtApp>;
19
+ export declare function getNuxtAppCtx(id?: string): UseContext<NuxtApp>;
19
20
  type HookResult = Promise<void> | void;
20
21
  type AppRenderedContext = {
21
22
  ssrContext: NuxtApp['ssrContext'];
@@ -242,14 +243,14 @@ export declare function applyPlugins(nuxtApp: NuxtApp, plugins: Array<Plugin & O
242
243
  export declare function defineNuxtPlugin<T extends Record<string, unknown>>(plugin: Plugin<T> | ObjectPlugin<T>): Plugin<T> & ObjectPlugin<T>;
243
244
  export declare const definePayloadPlugin: typeof defineNuxtPlugin;
244
245
  /** @since 3.0.0 */
245
- export declare function isNuxtPlugin(plugin: unknown): plugin is Function & Record<"__nuxt_plugin", unknown>;
246
+ export declare function isNuxtPlugin(plugin: unknown): plugin is Plugin;
246
247
  /**
247
248
  * Ensures that the setup function passed in has access to the Nuxt instance via `useNuxtApp`.
248
249
  * @param nuxt A Nuxt instance
249
250
  * @param setup The function to call
250
251
  * @since 3.0.0
251
252
  */
252
- export declare function callWithNuxt<T extends (...args: any[]) => any>(nuxt: NuxtApp | _NuxtApp, setup: T, args?: Parameters<T>): ReturnType<T> | Promise<ReturnType<T>>;
253
+ export declare function callWithNuxt<T extends (...args: any[]) => any>(nuxt: NuxtApp | _NuxtApp, setup: T, args?: Parameters<T>): Promise<ReturnType<T>>;
253
254
  /**
254
255
  * Returns the current Nuxt instance.
255
256
  *
@@ -1,13 +1,10 @@
1
1
  /** @since 3.9.0 */
2
2
  export declare function toArray<T>(value: T | T[]): T[];
3
- export declare function getUserTrace(): {
3
+ type Trace = {
4
4
  source: string;
5
- column?: number;
6
- function?: string;
7
5
  line?: number;
8
- }[];
9
- export declare function getUserCaller(): {
10
- source: string;
11
- line: number | undefined;
12
- column: number | undefined;
13
- } | null;
6
+ column?: number;
7
+ };
8
+ export declare function getUserTrace(): Trace[];
9
+ export declare function getUserCaller(): Trace | null;
10
+ export {};
package/dist/index.d.mts CHANGED
@@ -4,6 +4,6 @@ import { NuxtOptions, Nuxt } from 'nuxt/schema';
4
4
  declare function createNuxt(options: NuxtOptions): Nuxt;
5
5
  declare function loadNuxt(opts: LoadNuxtOptions): Promise<Nuxt>;
6
6
 
7
- declare function build(nuxt: Nuxt): Promise<any>;
7
+ declare function build(nuxt: Nuxt): Promise<void>;
8
8
 
9
9
  export { build, createNuxt, loadNuxt };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,6 @@ import { NuxtOptions, Nuxt } from 'nuxt/schema';
4
4
  declare function createNuxt(options: NuxtOptions): Nuxt;
5
5
  declare function loadNuxt(opts: LoadNuxtOptions): Promise<Nuxt>;
6
6
 
7
- declare function build(nuxt: Nuxt): Promise<any>;
7
+ declare function build(nuxt: Nuxt): Promise<void>;
8
8
 
9
9
  export { build, createNuxt, loadNuxt };
package/dist/index.mjs CHANGED
@@ -3837,7 +3837,7 @@ function addDeclarationTemplates(ctx, options) {
3837
3837
  });
3838
3838
  }
3839
3839
 
3840
- const version = "4.2.3-29422039.47e05245";
3840
+ const version = "4.2.3-29425455.7d502292";
3841
3841
 
3842
3842
  function createImportProtectionPatterns(nuxt, options) {
3843
3843
  const patterns = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.2.3-29422039.47e05245",
3
+ "version": "4.2.3-29425455.7d502292",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -67,11 +67,11 @@
67
67
  "@dxup/nuxt": "^0.2.2",
68
68
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
69
69
  "@nuxt/devtools": "^3.1.1",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.3-29422039.47e05245",
71
- "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.3-29422039.47e05245",
72
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.3-29422039.47e05245",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.3-29425455.7d502292",
71
+ "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.3-29425455.7d502292",
72
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.3-29425455.7d502292",
73
73
  "@nuxt/telemetry": "^2.6.6",
74
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.3-29422039.47e05245",
74
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.3-29425455.7d502292",
75
75
  "@unhead/vue": "^2.0.19",
76
76
  "@vue/shared": "^3.5.25",
77
77
  "c12": "^3.3.2",
@@ -152,6 +152,7 @@
152
152
  },
153
153
  "_name": "nuxt",
154
154
  "scripts": {
155
+ "build:stub": "unbuild --stub",
155
156
  "test:attw": "attw --pack"
156
157
  }
157
158
  }