@nuxt/kit-nightly 4.3.0-29460155.8c64ff6d → 4.3.0-29461727.1c4d2206
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 +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,8 @@ import { WebpackPluginInstance, Configuration } from 'webpack';
|
|
|
5
5
|
import { RspackPluginInstance } from '@rspack/core';
|
|
6
6
|
import { Plugin, UserConfig } from 'vite';
|
|
7
7
|
import { UseContext } from 'unctx';
|
|
8
|
-
import
|
|
8
|
+
import * as NitroV2 from 'nitropack/types';
|
|
9
|
+
import * as NitroV3 from 'nitro/types';
|
|
9
10
|
import { GlobOptions } from 'tinyglobby';
|
|
10
11
|
import { ConsolaInstance, ConsolaOptions } from 'consola';
|
|
11
12
|
|
|
@@ -309,6 +310,12 @@ declare function resolveIgnorePatterns(relativePath?: string): string[];
|
|
|
309
310
|
|
|
310
311
|
declare function addLayout(template: NuxtTemplate | string, name?: string): void;
|
|
311
312
|
|
|
313
|
+
type isNitroV2 = 'options' extends keyof NitroV2.Nitro ? '___INVALID' extends keyof NitroV2.Nitro ? false : true : false;
|
|
314
|
+
type Nitro = isNitroV2 extends true ? NitroV2.Nitro : NitroV3.Nitro;
|
|
315
|
+
type NitroDevEventHandler = isNitroV2 extends true ? NitroV2.NitroDevEventHandler : NitroV3.NitroDevEventHandler;
|
|
316
|
+
type NitroEventHandler = isNitroV2 extends true ? NitroV2.NitroEventHandler : NitroV3.NitroEventHandler;
|
|
317
|
+
type NitroRouteConfig = isNitroV2 extends true ? NitroV2.NitroRouteConfig : NitroV3.NitroRouteConfig;
|
|
318
|
+
|
|
312
319
|
declare function extendPages(cb: NuxtHooks['pages:extend']): void;
|
|
313
320
|
interface ExtendRouteRulesOptions {
|
|
314
321
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import { WebpackPluginInstance, Configuration } from 'webpack';
|
|
|
5
5
|
import { RspackPluginInstance } from '@rspack/core';
|
|
6
6
|
import { Plugin, UserConfig } from 'vite';
|
|
7
7
|
import { UseContext } from 'unctx';
|
|
8
|
-
import
|
|
8
|
+
import * as NitroV2 from 'nitropack/types';
|
|
9
|
+
import * as NitroV3 from 'nitro/types';
|
|
9
10
|
import { GlobOptions } from 'tinyglobby';
|
|
10
11
|
import { ConsolaInstance, ConsolaOptions } from 'consola';
|
|
11
12
|
|
|
@@ -309,6 +310,12 @@ declare function resolveIgnorePatterns(relativePath?: string): string[];
|
|
|
309
310
|
|
|
310
311
|
declare function addLayout(template: NuxtTemplate | string, name?: string): void;
|
|
311
312
|
|
|
313
|
+
type isNitroV2 = 'options' extends keyof NitroV2.Nitro ? '___INVALID' extends keyof NitroV2.Nitro ? false : true : false;
|
|
314
|
+
type Nitro = isNitroV2 extends true ? NitroV2.Nitro : NitroV3.Nitro;
|
|
315
|
+
type NitroDevEventHandler = isNitroV2 extends true ? NitroV2.NitroDevEventHandler : NitroV3.NitroDevEventHandler;
|
|
316
|
+
type NitroEventHandler = isNitroV2 extends true ? NitroV2.NitroEventHandler : NitroV3.NitroEventHandler;
|
|
317
|
+
type NitroRouteConfig = isNitroV2 extends true ? NitroV2.NitroRouteConfig : NitroV3.NitroRouteConfig;
|
|
318
|
+
|
|
312
319
|
declare function extendPages(cb: NuxtHooks['pages:extend']): void;
|
|
313
320
|
interface ExtendRouteRulesOptions {
|
|
314
321
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1070,7 +1070,7 @@ const HANDLER_METHOD_RE = /\.(get|head|patch|post|put|delete|connect|options|tra
|
|
|
1070
1070
|
function normalizeHandlerMethod(handler) {
|
|
1071
1071
|
const [, method = void 0] = handler.handler.match(HANDLER_METHOD_RE) || [];
|
|
1072
1072
|
return {
|
|
1073
|
-
method,
|
|
1073
|
+
method: method?.toUpperCase(),
|
|
1074
1074
|
...handler,
|
|
1075
1075
|
handler: normalize(handler.handler)
|
|
1076
1076
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit-nightly",
|
|
3
|
-
"version": "4.3.0-
|
|
3
|
+
"version": "4.3.0-29461727.1c4d2206",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -45,10 +45,11 @@
|
|
|
45
45
|
"untyped": "^2.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-
|
|
49
|
-
"@rspack/core": "1.7.
|
|
48
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29461727.1c4d2206",
|
|
49
|
+
"@rspack/core": "1.7.1",
|
|
50
50
|
"@types/semver": "7.7.1",
|
|
51
51
|
"hookable": "5.5.3",
|
|
52
|
+
"nitro": "3.0.1-alpha.1",
|
|
52
53
|
"nitropack": "2.12.9",
|
|
53
54
|
"unbuild": "3.6.1",
|
|
54
55
|
"unimport": "5.6.0",
|