@nuxt/schema-nightly 4.4.3-29575944.80f44384 → 4.4.3-29608489.ff42fe25

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
@@ -656,6 +656,7 @@ interface NuxtHooks {
656
656
  * Adding a router options file will switch on page-based routing, unless `optional` is set, in which case
657
657
  * it will only apply when page-based routing is already enabled.
658
658
  * @param context An object with `files` containing an array of router options files.
659
+ * @param context.files Array of router options files
659
660
  * @returns Promise
660
661
  */
661
662
  "pages:routerOptions": (context: {
@@ -703,6 +704,7 @@ interface NuxtHooks {
703
704
  /**
704
705
  * Allows extending the routes to be pre-rendered.
705
706
  * @param ctx Nuxt context
707
+ * @param ctx.routes Set of routes to be pre-rendered
706
708
  * @returns Promise
707
709
  */
708
710
  "prerender:routes": (ctx: {
@@ -717,6 +719,13 @@ interface NuxtHooks {
717
719
  /**
718
720
  * Called before @nuxt/cli writes `.nuxt/tsconfig.json` and `.nuxt/nuxt.d.ts`, allowing addition of custom references and declarations in `nuxt.d.ts`, or directly modifying the options in `tsconfig.json`
719
721
  * @param options Objects containing `references`, `declarations`, `tsConfig`
722
+ * @param options.references Array of TypeScript references to add
723
+ * @param options.declarations Array of declaration strings to add
724
+ * @param options.tsConfig The Vue TypeScript config object
725
+ * @param options.nodeTsConfig The Node TypeScript config object
726
+ * @param options.nodeReferences Array of Node TypeScript references
727
+ * @param options.sharedTsConfig The shared TypeScript config object
728
+ * @param options.sharedReferences Array of shared TypeScript references
720
729
  * @returns Promise
721
730
  */
722
731
  "prepare:types": (options: {
@@ -761,6 +770,8 @@ interface NuxtHooks {
761
770
  /**
762
771
  * Allows to extend Vite default context.
763
772
  * @param viteBuildContext The vite build context object
773
+ * @param viteBuildContext.nuxt The Nuxt instance
774
+ * @param viteBuildContext.config The Vite config object
764
775
  * @returns Promise
765
776
  */
766
777
  "vite:extend": (viteBuildContext: {
@@ -771,6 +782,8 @@ interface NuxtHooks {
771
782
  * Allows to extend Vite default config.
772
783
  * @param viteInlineConfig The vite inline config object
773
784
  * @param env Server or client
785
+ * @param env.isClient Whether the config is for the client build
786
+ * @param env.isServer Whether the config is for the server build
774
787
  * @returns Promise
775
788
  * @deprecated
776
789
  */
@@ -782,6 +795,8 @@ interface NuxtHooks {
782
795
  * Allows to read the resolved Vite config.
783
796
  * @param viteInlineConfig The vite inline config object
784
797
  * @param env Server or client
798
+ * @param env.isClient Whether the config is for the client build
799
+ * @param env.isServer Whether the config is for the server build
785
800
  * @returns Promise
786
801
  * @deprecated
787
802
  */
@@ -793,6 +808,8 @@ interface NuxtHooks {
793
808
  * Called when the Vite server is created.
794
809
  * @param viteServer Vite development server
795
810
  * @param env Server or client
811
+ * @param env.isClient Whether the server is for the client build
812
+ * @param env.isServer Whether the server is for the server build
796
813
  * @returns Promise
797
814
  */
798
815
  "vite:serverCreated": (viteServer: ViteDevServer, env: {
@@ -819,6 +836,8 @@ interface NuxtHooks {
819
836
  /**
820
837
  * Called right before compilation.
821
838
  * @param options The options to be added
839
+ * @param options.name The name of the compiler
840
+ * @param options.compiler The webpack compiler instance
822
841
  * @returns Promise
823
842
  */
824
843
  "webpack:compile": (options: {
@@ -828,6 +847,9 @@ interface NuxtHooks {
828
847
  /**
829
848
  * Called after resources are loaded.
830
849
  * @param options The compiler options
850
+ * @param options.name The name of the compiler
851
+ * @param options.compiler The webpack compiler instance
852
+ * @param options.stats The webpack compilation stats
831
853
  * @returns Promise
832
854
  */
833
855
  "webpack:compiled": (options: {
@@ -872,6 +894,8 @@ interface NuxtHooks {
872
894
  /**
873
895
  * Called right before compilation.
874
896
  * @param options The options to be added
897
+ * @param options.name The name of the compiler
898
+ * @param options.compiler The rspack compiler instance
875
899
  * @returns Promise
876
900
  */
877
901
  "rspack:compile": (options: {
@@ -881,6 +905,9 @@ interface NuxtHooks {
881
905
  /**
882
906
  * Called after resources are loaded.
883
907
  * @param options The compiler options
908
+ * @param options.name The name of the compiler
909
+ * @param options.compiler The rspack compiler instance
910
+ * @param options.stats The rspack compilation stats
884
911
  * @returns Promise
885
912
  */
886
913
  "rspack:compiled": (options: {
@@ -2425,6 +2452,12 @@ interface ConfigSchema {
2425
2452
  * @default true with compatibilityVersion >= 5
2426
2453
  */
2427
2454
  clientNodePlaceholder: boolean;
2455
+ /**
2456
+ * When enabled, Nuxt will clear build-related hooks after bundling, freeing
2457
+ * memory before the Nitro build. Disable this if you need to call `build()`
2458
+ * multiple times on the same Nuxt instance (e.g. in benchmarks).
2459
+ */
2460
+ clearBuildHooks: boolean;
2428
2461
  };
2429
2462
  /**
2430
2463
  *
package/dist/index.mjs CHANGED
@@ -706,7 +706,8 @@ var experimental_default = defineResolvers({
706
706
  } },
707
707
  clientNodePlaceholder: { $resolve: async (val, get) => {
708
708
  return typeof val === "boolean" ? val : await get("future.compatibilityVersion") >= 5;
709
- } }
709
+ } },
710
+ clearBuildHooks: true
710
711
  }
711
712
  });
712
713
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/schema-nightly",
3
- "version": "4.4.3-29575944.80f44384",
3
+ "version": "4.4.3-29608489.ff42fe25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",