@nuxt/nitro-server-nightly 4.3.0-29474543.8aaf9d5a → 4.3.0-29480372.a6a044d8

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.d.mts CHANGED
@@ -178,6 +178,106 @@ declare module "@nuxt/schema" {
178
178
  rules?: NitroRouteConfig;
179
179
  }
180
180
  }
181
+ declare module "nuxt/schema" {
182
+ interface NuxtHooks {
183
+ /**
184
+ * Called when the dev middleware is being registered on the Nitro dev server.
185
+ * @param handler the Vite or Webpack event handler
186
+ * @returns Promise
187
+ */
188
+ "server:devHandler": (handler: EventHandler, options: {
189
+ cors: (path: string) => boolean;
190
+ }) => HookResult;
191
+ /**
192
+ * Called before Nitro writes `.nuxt/tsconfig.server.json`, allowing addition of custom references and declarations.
193
+ * @param options Objects containing `references`, `declarations`
194
+ * @returns Promise
195
+ */
196
+ "nitro:prepare:types": (options: {
197
+ references: TSReference[];
198
+ declarations: string[];
199
+ }) => HookResult;
200
+ /**
201
+ * Called before initializing Nitro, allowing customization of Nitro's configuration.
202
+ * @param nitroConfig The nitro config to be extended
203
+ * @returns Promise
204
+ */
205
+ "nitro:config": (nitroConfig: NitroConfig) => HookResult;
206
+ /**
207
+ * Called after Nitro is initialized, which allows registering Nitro hooks and interacting directly with Nitro.
208
+ * @param nitro The created nitro object
209
+ * @returns Promise
210
+ */
211
+ "nitro:init": (nitro: Nitro) => HookResult;
212
+ /**
213
+ * Called before building the Nitro instance.
214
+ * @param nitro The created nitro object
215
+ * @returns Promise
216
+ */
217
+ "nitro:build:before": (nitro: Nitro) => HookResult;
218
+ /**
219
+ * Called after copying public assets. Allows modifying public assets before Nitro server is built.
220
+ * @param nitro The created nitro object
221
+ * @returns Promise
222
+ */
223
+ "nitro:build:public-assets": (nitro: Nitro) => HookResult;
224
+ }
225
+ interface ConfigSchema {
226
+ /**
227
+ * Configuration for Nitro.
228
+ *
229
+ * @see [Nitro configuration docs](https://nitro.build/config)
230
+ */
231
+ nitro: NitroConfig;
232
+ /**
233
+ * Global route options applied to matching server routes.
234
+ *
235
+ * @experimental This is an experimental feature and API may change in the future.
236
+ *
237
+ * @see [Nitro route rules documentation](https://nitro.build/config#routerules)
238
+ */
239
+ routeRules: NitroConfig["routeRules"];
240
+ /**
241
+ * Nitro server handlers.
242
+ *
243
+ * Each handler accepts the following options:
244
+ * - handler: The path to the file defining the handler. - route: The route under which the handler is available. This follows the conventions of [rou3](https://github.com/h3js/rou3). - method: The HTTP method of requests that should be handled. - middleware: Specifies whether it is a middleware handler. - lazy: Specifies whether to use lazy loading to import the handler.
245
+ *
246
+ * @see [`server/` directory documentation](https://nuxt.com/docs/4.x/directory-structure/server)
247
+ *
248
+ * @note Files from `server/api`, `server/middleware` and `server/routes` will be automatically registered by Nuxt.
249
+ *
250
+ * @example
251
+ * ```js
252
+ * serverHandlers: [
253
+ * { route: '/path/foo/**:name', handler: '~/server/foohandler.ts' }
254
+ * ]
255
+ * ```
256
+ */
257
+ serverHandlers: NitroEventHandler[];
258
+ /**
259
+ * Nitro development-only server handlers.
260
+ *
261
+ * @see [Nitro server routes documentation](https://nitro.build/guide/routing)
262
+ */
263
+ devServerHandlers: NitroDevEventHandler[];
264
+ }
265
+ interface NuxtConfig {
266
+ nitro?: NitroConfig;
267
+ }
268
+ interface RuntimeConfig {
269
+ app: NitroRuntimeConfigApp;
270
+ /** Only available on the server. */
271
+ nitro?: NitroRuntimeConfig["nitro"];
272
+ }
273
+ interface NuxtDebugOptions {
274
+ /** Debug options for Nitro */
275
+ nitro?: NitroOptions["debug"];
276
+ }
277
+ interface NuxtPage {
278
+ rules?: NitroRouteConfig;
279
+ }
280
+ }
181
281
  //#endregion
182
282
  //#region src/index.d.ts
183
283
  declare function bundle(nuxt: Nuxt & {
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ import { resolveModulePath } from "exsolve";
21
21
  import { runtimeDependencies } from "nitropack/runtime/meta";
22
22
 
23
23
  //#region package.json
24
- var version = "4.3.0-29474543.8aaf9d5a";
24
+ var version = "4.3.0-29480372.a6a044d8";
25
25
 
26
26
  //#endregion
27
27
  //#region src/utils.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/nitro-server-nightly",
3
- "version": "4.3.0-29474543.8aaf9d5a",
3
+ "version": "4.3.0-29480372.a6a044d8",
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-29474543.8aaf9d5a",
22
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29480372.a6a044d8",
23
23
  "@unhead/vue": "^2.1.2",
24
24
  "@vue/shared": "^3.5.26",
25
25
  "consola": "^3.4.2",
@@ -47,11 +47,11 @@
47
47
  "vue-devtools-stub": "^0.1.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "nuxt": "npm:nuxt-nightly@4.3.0-29474543.8aaf9d5a"
50
+ "nuxt": "npm:nuxt-nightly@4.3.0-29480372.a6a044d8"
51
51
  },
52
52
  "devDependencies": {
53
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29474543.8aaf9d5a",
54
- "nuxt": "npm:nuxt-nightly@4.3.0-29474543.8aaf9d5a",
53
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29480372.a6a044d8",
54
+ "nuxt": "npm:nuxt-nightly@4.3.0-29480372.a6a044d8",
55
55
  "obuild": "0.4.14",
56
56
  "vitest": "3.2.4"
57
57
  },