Skip to content

Commit 474719f

Browse files
committed
update
1 parent 88207a0 commit 474719f

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

lib/Module.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,9 @@ class Module extends DependenciesBlock {
12221222
super.deserialize(context);
12231223
}
12241224

1225+
// TODO remove in webpack 6
12251226
/**
1227+
* @deprecated In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
12261228
* @param {Module} module the module
12271229
* @returns {ReturnType<Module["getSourceBasicTypes"]>} the source types of the module
12281230
*/

types.d.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3830,6 +3830,11 @@ declare class CssLoadingRuntimeModule extends RuntimeModule {
38303830
* Runtime modules which trigger actions on bootstrap
38313831
*/
38323832
static STAGE_TRIGGER: number;
3833+
3834+
/**
3835+
* In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
3836+
* @deprecated
3837+
*/
38333838
static getSourceBasicTypes(module: Module): ReadonlySet<string>;
38343839
}
38353840
declare interface CssLoadingRuntimeModulePluginHooks {
@@ -5710,6 +5715,11 @@ declare class ExternalModule extends Module {
57105715
static getExternalModuleNodeCommonjsInitFragment: (
57115716
runtimeTemplate: RuntimeTemplate
57125717
) => InitFragment<ChunkRenderContextJavascriptModulesPlugin>;
5718+
5719+
/**
5720+
* In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
5721+
* @deprecated
5722+
*/
57135723
static getSourceBasicTypes(module: Module): ReadonlySet<string>;
57145724
}
57155725
declare interface ExternalModuleInfo {
@@ -6450,6 +6460,11 @@ declare class GetChunkFilenameRuntimeModule extends RuntimeModule {
64506460
* Runtime modules which trigger actions on bootstrap
64516461
*/
64526462
static STAGE_TRIGGER: number;
6463+
6464+
/**
6465+
* In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
6466+
* @deprecated
6467+
*/
64536468
static getSourceBasicTypes(module: Module): ReadonlySet<string>;
64546469
}
64556470
declare interface GotHandler<T> {
@@ -8959,6 +8974,11 @@ declare class JsonpChunkLoadingRuntimeModule extends RuntimeModule {
89598974
* Runtime modules which trigger actions on bootstrap
89608975
*/
89618976
static STAGE_TRIGGER: number;
8977+
8978+
/**
8979+
* In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
8980+
* @deprecated
8981+
*/
89628982
static getSourceBasicTypes(module: Module): ReadonlySet<string>;
89638983
}
89648984
declare interface JsonpCompilationPluginHooks {
@@ -9924,6 +9944,11 @@ declare class LoadScriptRuntimeModule extends HelperRuntimeModule {
99249944
* Runtime modules which trigger actions on bootstrap
99259945
*/
99269946
static STAGE_TRIGGER: number;
9947+
9948+
/**
9949+
* In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
9950+
* @deprecated
9951+
*/
99279952
static getSourceBasicTypes(module: Module): ReadonlySet<string>;
99289953
}
99299954

@@ -10794,6 +10819,11 @@ declare class Module extends DependenciesBlock {
1079410819
get errors(): any;
1079510820
get warnings(): any;
1079610821
used: any;
10822+
10823+
/**
10824+
* In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
10825+
* @deprecated
10826+
*/
1079710827
static getSourceBasicTypes(module: Module): ReadonlySet<string>;
1079810828
}
1079910829
declare class ModuleChunkLoadingRuntimeModule extends RuntimeModule {
@@ -10821,6 +10851,11 @@ declare class ModuleChunkLoadingRuntimeModule extends RuntimeModule {
1082110851
* Runtime modules which trigger actions on bootstrap
1082210852
*/
1082310853
static STAGE_TRIGGER: number;
10854+
10855+
/**
10856+
* In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
10857+
* @deprecated
10858+
*/
1082410859
static getSourceBasicTypes(module: Module): ReadonlySet<string>;
1082510860
}
1082610861
declare class ModuleConcatenationPlugin {
@@ -11943,6 +11978,11 @@ declare class NormalModule extends Module {
1194311978
compilation: Compilation
1194411979
): NormalModuleCompilationHooks;
1194511980
static deserialize(context: ObjectDeserializerContext): NormalModule;
11981+
11982+
/**
11983+
* In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
11984+
* @deprecated
11985+
*/
1194611986
static getSourceBasicTypes(module: Module): ReadonlySet<string>;
1194711987
}
1194811988
declare interface NormalModuleCompilationHooks {
@@ -16618,6 +16658,11 @@ declare class RuntimeModule extends Module {
1661816658
* Runtime modules which trigger actions on bootstrap
1661916659
*/
1662016660
static STAGE_TRIGGER: number;
16661+
16662+
/**
16663+
* In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
16664+
* @deprecated
16665+
*/
1662116666
static getSourceBasicTypes(module: Module): ReadonlySet<string>;
1662216667
}
1662316668
declare interface RuntimeRequirementsContext {

0 commit comments

Comments
 (0)