nuxt-nightly 4.1.3-29310364.73627c96 → 4.1.3-29310393.7b2ff488

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 (2) hide show
  1. package/dist/index.mjs +7 -8
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1319,10 +1319,10 @@ const pagesModule = defineNuxtModule({
1319
1319
  return;
1320
1320
  }
1321
1321
  if (useExperimentalTypedPages) {
1322
- const declarationFile = "./types/typed-router.d.ts";
1322
+ const declarationFile = resolve(nuxt.options.buildDir, "types/typed-router.d.ts");
1323
1323
  const typedRouterOptions = {
1324
1324
  routesFolder: [],
1325
- dts: resolve(nuxt.options.buildDir, declarationFile),
1325
+ dts: declarationFile,
1326
1326
  logs: nuxt.options.debug && nuxt.options.debug.router,
1327
1327
  async beforeWriteFiles(rootPage) {
1328
1328
  for (const child of rootPage.children) {
@@ -1362,11 +1362,10 @@ const pagesModule = defineNuxtModule({
1362
1362
  references.push({ types: "unplugin-vue-router/client" });
1363
1363
  });
1364
1364
  const context = createRoutesContext(resolveOptions(typedRouterOptions));
1365
- const dtsFile = resolve(nuxt.options.buildDir, declarationFile);
1366
- await mkdir(dirname(dtsFile), { recursive: true });
1365
+ await mkdir(dirname(declarationFile), { recursive: true });
1367
1366
  await context.scanPages(false);
1368
1367
  if (nuxt.options._prepare || !nuxt.options.dev) {
1369
- const dts = await readFile(dtsFile, "utf-8");
1368
+ const dts = await readFile(declarationFile, "utf-8");
1370
1369
  addTemplate({
1371
1370
  filename: "types/typed-router.d.ts",
1372
1371
  getContents: () => dts
@@ -2212,7 +2211,7 @@ function resolveComponentTypes(app, baseDir) {
2212
2211
  }
2213
2212
  return componentTypes;
2214
2213
  }
2215
- const islandType = "type IslandComponent<T extends DefineComponent> = T & DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>>";
2214
+ const islandType = "type IslandComponent<T> = DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>> & T";
2216
2215
  const hydrationTypes = `
2217
2216
  type HydrationStrategies = {
2218
2217
  hydrateOnVisible?: IntersectionObserverInit | true
@@ -2223,7 +2222,7 @@ type HydrationStrategies = {
2223
2222
  hydrateWhen?: boolean
2224
2223
  hydrateNever?: true
2225
2224
  }
2226
- type LazyComponent<T> = (T & DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }>)
2225
+ type LazyComponent<T> = DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }> & T
2227
2226
  `;
2228
2227
  const componentsDeclarationTemplate = {
2229
2228
  filename: "components.d.ts",
@@ -3822,7 +3821,7 @@ function addDeclarationTemplates(ctx, options) {
3822
3821
  });
3823
3822
  }
3824
3823
 
3825
- const version = "4.1.3-29310364.73627c96";
3824
+ const version = "4.1.3-29310393.7b2ff488";
3826
3825
 
3827
3826
  const createImportProtectionPatterns = (nuxt, options) => {
3828
3827
  const patterns = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.1.3-29310364.73627c96",
3
+ "version": "4.1.3-29310393.7b2ff488",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -67,10 +67,10 @@
67
67
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
68
68
  "@nuxt/devalue": "^2.0.2",
69
69
  "@nuxt/devtools": "^2.6.3",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.3-29310364.73627c96",
71
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-29310364.73627c96",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.3-29310393.7b2ff488",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-29310393.7b2ff488",
72
72
  "@nuxt/telemetry": "^2.6.6",
73
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-29310364.73627c96",
73
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-29310393.7b2ff488",
74
74
  "@unhead/vue": "^2.0.14",
75
75
  "@vue/shared": "^3.5.21",
76
76
  "c12": "^3.3.0",