Upgrading ts-loader 6 to 7
Breaking6.2.2 → 7.0.5Platform1New1Fixed5
BreakingUpgrade verdict
A platform requirement change.
In plain terms
- You can no longer use this package on Node 8; upgrade to a newer Node version.
Must act 1 item needs code or config changes
Node.js requirement changed in 7.0.1: >=8.6 → >=10.0.0.
What you must change
Platform1
Drops support for Node 8 following its end of life.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
function buildSolutionReferences(instance: TSInstance, loader: webpack.loader.LoaderContext): void - added:
function getInputFileNameFromOutput(instance: TSInstance, filePath: string): string | undefined - added:
function getOutputFileNames(instance: TSInstance, configFile: typescript.ParsedCommandLine, inputFileName: string): string[] - added:
function initializeInstance(loader: webpack.loader.LoaderContext, instance: TSInstance): void - added:
function reportTranspileErrors(instance: TSInstance, loader: webpack.loader.LoaderContext): void
- removed:
method WatchFactory.watchDirectory(path: string, callback: typescript.DirectoryWatcherCallback, recursive?: boolean, options?: typescript.CompilerOptions): typescript.FileWatcher - removed:
method WatchFactory.watchFile(path: string, callback: typescript.FileWatcherCallback, pollingInterval?: number, options?: typescript.CompilerOptions): typescript.FileWatcher - changed:
property TSInstance.configFilePath?: string → property TSInstance.configFilePath: string | undefined - changed:
property TSInstance.version?: number → property TSInstance.version: number - added:
interface ConfigFileInfo - added:
interface OutputFile extends typescript.OutputFile - added:
interface ServiceHostWhichMayBeCacheable - added:
method SolutionBuilderWithWatchHost.buildReferences(): void - added:
method SolutionBuilderWithWatchHost.getInputFileNameFromOutput(outputFileName: string): string | undefined - added:
method SolutionBuilderWithWatchHost.getOutputFileFromReferencedProject(outputFileName: string): OutputFile | false | undefined - added:
method SolutionBuilderWithWatchHost.getOutputFilesFromReferencedProjectInput(inputFileName: string): OutputFile[] - added:
property ConfigFileInfo.config: typescript.ParsedCommandLine | undefined - added:
property ConfigFileInfo.dtsFiles?: string[] - added:
property ConfigFileInfo.outputFileNames?: Map<string, string[]> - added:
property ConfigFileInfo.tsbuildInfoFile?: string - added:
property OutputFile.time: Date - added:
property OutputFile.version: number - added:
property ServiceHostWhichMayBeCacheable.clearCache: Action | null - added:
property ServiceHostWhichMayBeCacheable.servicesHost: typescript.LanguageServiceHost - added:
property SolutionBuilderWithWatchHost.configFileInfo: Map<string, ConfigFileInfo> - added:
property SolutionBuilderWithWatchHost.outputAffectingInstanceVersion: Map<string, true> - added:
property SolutionBuilderWithWatchHost.writtenFiles: OutputFile[] - added:
property TSFile.modifiedTime?: Date - added:
property TSInstance.configParseResult: typescript.ParsedCommandLine - added:
property TSInstance.initialSetupPending: boolean - added:
property TSInstance.log: logger.Logger - added:
property TSInstance.reportTranspileErrors?: boolean - added:
property TSInstance.servicesHost?: ServiceHostWhichMayBeCacheable - added:
property WatchFactory.watchDirectory: typescript.WatchHost['watchDirectory'] - added:
property WatchFactory.watchFile: typescript.WatchHost['watchFile'] - added:
type Action = () => void
- removed:
interface ServiceHostWhichMayBeCacheable - removed:
property ServiceHostWhichMayBeCacheable.clearCache: Action | null - removed:
property ServiceHostWhichMayBeCacheable.servicesHost: typescript.LanguageServiceHost - removed:
type Action = () => void - changed:
function makeServicesHost(scriptRegex: RegExp, log: logger.Logger, loader: webpack.loader.LoaderContext, instance: TSInstance, enableFileCaching: boolean, projectReferences?: ReadonlyArray<typescript.ProjectReference>): ServiceHostWhichMayBeCacheable → function makeServicesHost(scriptRegex: RegExp, loader: webpack.loader.LoaderContext, instance: TSInstance, enableFileCaching: boolean, projectReferences?: ReadonlyArray<typescript.ProjectReference>): ServiceHostWhichMayBeCacheable - changed:
function makeSolutionBuilderHost(scriptRegex: RegExp, log: logger.Logger, loader: webpack.loader.LoaderContext, instance: TSInstance): SolutionBuilderWithWatchHost → function makeSolutionBuilderHost(scriptRegex: RegExp, loader: webpack.loader.LoaderContext, instance: TSInstance): SolutionBuilderWithWatchHost - changed:
function makeWatchHost(scriptRegex: RegExp, log: logger.Logger, loader: webpack.loader.LoaderContext, instance: TSInstance, projectReferences?: ReadonlyArray<typescript.ProjectReference>): WatchHost → function makeWatchHost(scriptRegex: RegExp, loader: webpack.loader.LoaderContext, instance: TSInstance, projectReferences?: ReadonlyArray<typescript.ProjectReference>): WatchHost
- changed:
function supportsSolutionBuild(loaderOptions: LoaderOptions, compiler: typeof typescript): boolean → function supportsSolutionBuild(instance: TSInstance): boolean
- changed:
function makeWatchRun(instance: TSInstance): (compiler: webpack.Compiler, callback: () => void) => void → function makeWatchRun(instance: TSInstance, loader: webpack.loader.LoaderContext): (compiler: webpack.Compiler, callback: (err?: Error | undefined) => void) => void