Aggiornare @typescript-eslint/typescript-estree da 7.x a 8.x
Confronto dell’API pubblica di @typescript-eslint/typescript-estree 7.18.0 e 8.71.0, calcolato automaticamente dai tipi TypeScript. Una firma modificata è una possibile modifica incompatibile, non una certezza.
Riepilogo
| Percorsi di import rimossi | 0 |
|---|---|
| Export rimossi | 0 |
| Firme modificate | 6 |
| Membri di classi o interfacce rimossi | 0 |
| Membri di classi o interfacce modificati | 2 |
| Nuove deprecazioni | 0 |
| Requisiti cambiati (engines, dipendenze peer) | 2 |
| Nuovi export | 3 |
Export rimossi
Nessuna rilevata.
Firme modificate
| export | Prima | Dopo |
|---|---|---|
@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 · typescriptVersionIsAtLeast | Record<"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 · typescriptVersionIsAtLeast | Record<"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> |
Membri di classi o interfacce rimossi
Nessuna rilevata.
Membri di classi o interfacce modificati
| member | Prima | Dopo |
|---|---|---|
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 |
Nuove deprecazioni
Nessuna rilevata.
Requisiti cambiati (engines, dipendenze peer)
| Prima | Dopo | |
|---|---|---|
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 |
Nuovi export (3)
| import | export | kind |
|---|---|---|
@typescript-eslint/typescript-estree | addCandidateTSConfigRootDir | function |
@typescript-eslint/typescript-estree | clearCandidateTSConfigRootDirs | function |
@typescript-eslint/typescript-estree/use-at-your-own-risk | SUPPORTED_TYPESCRIPT_VERSIONS | variable |
Domande frequenti
Quali sono le modifiche incompatibili aggiornando @typescript-eslint/typescript-estree da 7 a 8?
Tra @typescript-eslint/typescript-estree 7.18.0 e 8.71.0, Vigia ha trovato 0 export rimossi, 6 firme modificate e 2 membri di classi o interfacce rimossi o modificati.
Cosa è stato deprecato in @typescript-eslint/typescript-estree 8?
0 export o membri risultano ora deprecati in @typescript-eslint/typescript-estree 8.71.0.
Per gli agenti
GET https://vigia.coredls.cloud/v1/packages/npm/@typescript-eslint/typescript-estree/upgrade?from=7.18.0&to=8.71.0