Vigia

将 @typescript-eslint/typescript-estree 从 7.x 升级到 8.x

根据 TypeScript 类型自动比较 @typescript-eslint/typescript-estree 7.18.0 与 8.71.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出0
已修改的签名6
已删除的类或接口成员0
已修改的类或接口成员2
新增弃用0
要求变化(engines、peer 依赖)2
新增导出3

已删除的导出

未发现。

已修改的签名

export之前之后
@typescript-eslint/typescript-estree · parseAndGenerateServices<T extends TSESTreeOptions = ParseAndGenerateServicesOptions>(code: any, options: T): ParseAndGenerateServicesResult<T><T extends TSESTreeOptions = ParseAndGenerateServicesOptions>(code: any, tsestreeOptions: T): ParseAndGenerateServicesResult<T>
@typescript-eslint/typescript-estree · typescriptVersionIsAtLeastRecord<"4.7" | "4.8" | "4.9" | "5.0" | "5.1" | "5.2" | "5.3" | "5.4", boolean>Record<"4.7" | "4.8" | "4.9" | "5.0" | "5.1" | "5.2" | "5.3" | "5.4" | "5.5" | "5.6" | "5.7" | "5.8" | "5.9" | "6.0", boolean>
@typescript-eslint/typescript-estree · withoutProjectParserOptions(opts: ParseAndGenerateServicesOptions): ParseAndGenerateServicesOptions<Options extends object>(opts: Options): Omit<Options, "EXPERIMENTAL_useProjectService" | "project" | "projectService">
@typescript-eslint/typescript-estree/use-at-your-own-risk · astConverter(ast: SourceFile, parseSettings: Readonly<MutableParseSettings>, shouldPreserveNodeMaps: boolean): { estree: TSESTree.Program; astMaps: ASTMaps; }(ast: SourceFile, parseSettings: Readonly<MutableParseSettings>, shouldPreserveNodeMaps: boolean): { astMaps: ASTMaps; estree: TSESTree.Program; }
@typescript-eslint/typescript-estree/use-at-your-own-risk · ParseSettings{ readonly allowInvalidAST: boolean; readonly code: any; readonly codeFullText: string; readonly comment: boolean; readonly comments: TSESTree.Comment[]; readonly DEPRECATED__createDefaultProgram: boolean; readonly debugLevel: Set<DebugModule>; readonly errorOnTypeScriptSyntacticAndSemanticIssues: boolean; readonly errorOnUnknownASTType: boolean; readonly EXPERIMENTAL_projectService: ProjectServiceSettings | undefined; readonly EXPERIMENTAL_useSourceOfProjectReferenceRedirect: boolean; readonly extraFileExtensions: string[]; readonly filePath: string; readonly jsDocParsingMode: ts.JSDocParsing…{ readonly allowInvalidAST: boolean; readonly code: any; readonly codeFullText: string; readonly comment: boolean; readonly comments: TSESTree.Comment[]; readonly debugLevel: Set<DebugModule>; readonly errorOnTypeScriptSyntacticAndSemanticIssues: boolean; readonly errorOnUnknownASTType: boolean; readonly extraFileExtensions: string[]; readonly filePath: string; readonly setExternalModuleIndicator?: ((file: ts.SourceFile) => void) | undefined; readonly jsDocParsingMode: ts.JSDocParsingMode; readonly jsx: boolean; readonly loc: boolean; readonly log: (message: string) => void; readonly preserveN…
@typescript-eslint/typescript-estree/use-at-your-own-risk · typescriptVersionIsAtLeastRecord<"4.7" | "4.8" | "4.9" | "5.0" | "5.1" | "5.2" | "5.3" | "5.4", boolean>Record<"4.7" | "4.8" | "4.9" | "5.0" | "5.1" | "5.2" | "5.3" | "5.4" | "5.5" | "5.6" | "5.7" | "5.8" | "5.9" | "6.0", boolean>

已删除的类或接口成员

未发现。

已修改的类或接口成员

member之前之后
TSError.location{ start: { line: number; column: number; offset: number; }; end: { line: number; column: number; offset: number; }; }{ end: { column: number; line: number; offset: number; }; start: { column: number; line: number; offset: number; }; }
TSError.constructor(message: string, fileName: string, location: { start: { line: number; column: number; offset: number; }; end: { line: number; column: number; offset: number; }; }): TSError(message: string, fileName: string, location: { end: { column: number; line: number; offset: number; }; start: { column: number; line: number; offset: number; }; }): TSError

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
engines.node^18.18.0 || >=20.0.0^18.18.0 || ^20.9.0 || >=21.1.0
peerDependencies.typescript—>=4.8.4 <6.1.0
新增导出 (3)
importexportkind
@typescript-eslint/typescript-estreeaddCandidateTSConfigRootDirfunction
@typescript-eslint/typescript-estreeclearCandidateTSConfigRootDirsfunction
@typescript-eslint/typescript-estree/use-at-your-own-riskSUPPORTED_TYPESCRIPT_VERSIONSvariable

常见问题

将 @typescript-eslint/typescript-estree 从 7 升级到 8 有哪些不兼容变更?

在 @typescript-eslint/typescript-estree 7.18.0 与 8.71.0 之间,Vigia 发现 0 个已删除的导出、6 个已修改的签名,以及 2 个已删除或修改的类或接口成员。

@typescript-eslint/typescript-estree 8 中弃用了哪些内容?

@typescript-eslint/typescript-estree 8.71.0 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/@typescript-eslint/typescript-estree/upgrade?from=7.18.0&to=8.71.0