Upgrading @angular/compiler-cli 2 to 4
Unknown2.4.10 → 4.4.7
UnknownUpgrade verdict
None of the 58 releases in this range publish notes, so breaking changes can't be ruled out.
In plain terms
- Some releases in this range publish no notes, so DepDelta can't rule out breaking changes.
- DepDelta found no commit log for them either.
Must act Unknown for releases without notes
Releases without notes may still need changes. Check their commits before upgrading.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
export * from './src/transformers/api' - added:
export * from './src/transformers/entry_points' - added:
export { AstType } from './src/diagnostics/expression_type' - added:
export { BuiltinType } from './src/diagnostics/symbols' - added:
export { DeclarationKind } from './src/diagnostics/symbols' - added:
export { Definition } from './src/diagnostics/symbols' - added:
export { DiagnosticTemplateInfo } from './src/diagnostics/expression_diagnostics' - added:
export { ExpressionDiagnosticsContext } from './src/diagnostics/expression_type' - added:
export { PipeInfo } from './src/diagnostics/symbols' - added:
export { Pipes } from './src/diagnostics/symbols' - added:
export { Signature } from './src/diagnostics/symbols' - added:
export { Span } from './src/diagnostics/symbols' - added:
export { Symbol } from './src/diagnostics/symbols' - added:
export { SymbolDeclaration } from './src/diagnostics/symbols' - added:
export { SymbolQuery } from './src/diagnostics/symbols' - added:
export { SymbolTable } from './src/diagnostics/symbols' - added:
export { getClassMembersFromDeclaration } from './src/diagnostics/typescript_symbols' - added:
export { getExpressionScope } from './src/diagnostics/expression_diagnostics' - added:
export { getPipesTable } from './src/diagnostics/typescript_symbols' - added:
export { getSymbolQuery } from './src/diagnostics/typescript_symbols' - added:
export { getTemplateExpressionDiagnostics } from './src/diagnostics/expression_diagnostics' - added:
export { main as ngc } from './src/ngc'
- changed:
method CodeGenerator.codegen(): Promise<any> → method CodeGenerator.codegen(): Promise<string[]> - added:
method CodeGenerator.codegenSync(): string[]
- changed:
constructor CompilerHost(program: ts.Program, options: AngularCompilerOptions, context: CompilerHostContext) → constructor CompilerHost(program: ts.Program, options: AngularCompilerOptions, context: CompilerHostContext, collectorOptions?: CollectorOptions) - changed:
method CompilerHost.getMetadataFor(filePath: string): ModuleMetadata[] → method CompilerHost.getMetadataFor(filePath: string): ModuleMetadata[] | undefined - changed:
method CompilerHost.loadResource(filePath: string): Promise<string> → method CompilerHost.loadResource(filePath: string): Promise<string> | string - changed:
method CompilerHostContext.readResource(fileName: string): Promise<string> → method CompilerHostContext.readResource?(fileName: string): Promise<string> | string
- added:
class TypeChecker - added:
constructor TypeChecker(program: ts.Program, tsOptions: ts.CompilerOptions, compilerHost: ts.CompilerHost, aotCompilerHost: AotCompilerHost, aotOptions: AotCompilerOptions, _analyzedModules?: NgAnalyzedModules, _generatedFiles?: GeneratedFile[]) - added:
method TypeChecker.getDiagnostics(fileName?: string, cancellationToken?: ts.CancellationToken): Diagnostic[] - added:
readonly property TypeChecker.partialResults: boolean
- added:
function getExpressionDiagnostics(scope: SymbolTable, ast: AST, query: SymbolQuery, context?: ExpressionDiagnosticsContext): TypeDiagnostic[] - added:
function getExpressionScope(info: DiagnosticTemplateInfo, path: TemplateAstPath, includeEvent: boolean): SymbolTable - added:
function getTemplateExpressionDiagnostics(info: DiagnosticTemplateInfo): ExpressionDiagnostic[] - added:
interface DiagnosticTemplateInfo - added:
interface ExpressionDiagnostic - added:
property DiagnosticTemplateInfo.fileName?: string - added:
property DiagnosticTemplateInfo.htmlAst: Node[] - added:
property DiagnosticTemplateInfo.members: SymbolTable - added:
property DiagnosticTemplateInfo.offset: number - added:
property DiagnosticTemplateInfo.query: SymbolQuery - added:
property DiagnosticTemplateInfo.templateAst: TemplateAst[] - added:
property ExpressionDiagnostic.kind: DiagnosticKind - added:
property ExpressionDiagnostic.message: string - added:
property ExpressionDiagnostic.span: Span
- added:
class AstType implements AstVisitor - added:
class TypeDiagnostic - added:
constructor AstType(scope: SymbolTable, query: SymbolQuery, context: ExpressionDiagnosticsContext) - added:
constructor TypeDiagnostic(kind: DiagnosticKind, message: string, ast: AST) - added:
enum DiagnosticKind - added:
interface ExpressionDiagnosticsContext - added:
member DiagnosticKind.Error = 0 - added:
member DiagnosticKind.Warning = 1 - added:
method AstType.getDiagnostics(ast: AST): TypeDiagnostic[] - added:
method AstType.getType(ast: AST): Symbol - added:
method AstType.visitBinary(ast: Binary): Symbol - added:
method AstType.visitChain(ast: Chain): Symbol - added:
method AstType.visitConditional(ast: Conditional): Symbol - added:
method AstType.visitFunctionCall(ast: FunctionCall): Symbol - added:
method AstType.visitImplicitReceiver(ast: ImplicitReceiver): Symbol - added:
method AstType.visitInterpolation(ast: Interpolation): Symbol - added:
method AstType.visitKeyedRead(ast: KeyedRead): Symbol - added:
method AstType.visitKeyedWrite(ast: KeyedWrite): Symbol - added:
method AstType.visitLiteralArray(ast: LiteralArray): Symbol - added:
method AstType.visitLiteralMap(ast: LiteralMap): Symbol - added:
method AstType.visitLiteralPrimitive(ast: LiteralPrimitive): Symbol - added:
method AstType.visitMethodCall(ast: MethodCall): Symbol - added:
method AstType.visitNonNullAssert(ast: NonNullAssert): Symbol - added:
method AstType.visitPipe(ast: BindingPipe): Symbol - added:
method AstType.visitPrefixNot(ast: PrefixNot): Symbol - added:
method AstType.visitPropertyRead(ast: PropertyRead): Symbol | undefined - added:
method AstType.visitPropertyWrite(ast: PropertyWrite): Symbol - added:
method AstType.visitQuote(ast: Quote): Symbol - added:
method AstType.visitSafeMethodCall(ast: SafeMethodCall): Symbol - added:
method AstType.visitSafePropertyRead(ast: SafePropertyRead): Symbol | undefined - added:
property AstType.diagnostics: TypeDiagnostic[] - added:
property ExpressionDiagnosticsContext.event?: boolean - added:
property TypeDiagnostic.ast: AST - added:
property TypeDiagnostic.kind: DiagnosticKind - added:
property TypeDiagnostic.message: string
- added:
enum BuiltinType - added:
interface Location - added:
interface PipeInfo - added:
interface Signature - added:
interface Span - added:
interface Symbol - added:
interface SymbolDeclaration - added:
interface SymbolQuery - added:
interface SymbolTable - added:
member BuiltinType.Any = 0 - added:
member BuiltinType.Boolean = 3 - added:
member BuiltinType.Null = 5 - added:
member BuiltinType.Number = 2 - added:
member BuiltinType.Other = 7 - added:
member BuiltinType.String = 1 - added:
member BuiltinType.Unbound = 6 - added:
member BuiltinType.Undefined = 4 - added:
method Symbol.indexed(argument: Symbol): Symbol | undefined - added:
method Symbol.members(): SymbolTable - added:
method Symbol.selectSignature(types: Symbol[]): Signature | undefined - added:
method Symbol.signatures(): Signature[] - added:
method SymbolQuery.createSymbolTable(symbols: SymbolDeclaration[]): SymbolTable - added:
method SymbolQuery.getArrayType(type: Symbol): Symbol - added:
method SymbolQuery.getBuiltinType(kind: BuiltinType): Symbol - added:
method SymbolQuery.getElementType(type: Symbol): Symbol | undefined - added:
method SymbolQuery.getNonNullableType(type: Symbol): Symbol - added:
method SymbolQuery.getPipes(): SymbolTable - added:
method SymbolQuery.getSpanAt(line: number, column: number): Span | undefined - added:
method SymbolQuery.getTemplateContext(type: StaticSymbol): SymbolTable | undefined - added:
method SymbolQuery.getTypeKind(symbol: Symbol): BuiltinType - added:
method SymbolQuery.getTypeSymbol(type: StaticSymbol): Symbol | undefined - added:
method SymbolQuery.getTypeUnion(...types: Symbol[]): Symbol - added:
method SymbolQuery.mergeSymbolTable(symbolTables: SymbolTable[]): SymbolTable - added:
method SymbolTable.get(key: string): Symbol | undefined - added:
method SymbolTable.has(key: string): boolean - added:
method SymbolTable.values(): Symbol[] - added:
property Location.fileName: string - added:
property Location.span: Span - added:
property PipeInfo.name: string - added:
property PipeInfo.symbol: StaticSymbol - added:
property Span.end: number - added:
property Span.start: number - added:
readonly property Signature.arguments: SymbolTable - added:
readonly property Signature.result: Symbol - added:
readonly property Symbol.callable: boolean - added:
readonly property Symbol.container: Symbol | undefined - added:
readonly property Symbol.definition: Definition | undefined - added:
readonly property Symbol.kind: string - added:
readonly property Symbol.language: string - added:
readonly property Symbol.name: string - added:
readonly property Symbol.nullable: boolean - added:
readonly property Symbol.public: boolean - added:
readonly property Symbol.type: Symbol | undefined - added:
readonly property SymbolDeclaration.definition?: Definition - added:
readonly property SymbolDeclaration.kind: DeclarationKind - added:
readonly property SymbolDeclaration.name: string - added:
readonly property SymbolDeclaration.type: Symbol - added:
readonly property SymbolTable.size: number - added:
type DeclarationKind = 'attribute' | 'html attribute' | 'component' | 'element' | 'entity' | 'key' | 'method' | 'pipe' | 'property' | 'type' | 'reference' | 'variable' - added:
type Definition = Location[] | undefined - added:
type Pipes = PipeInfo[] | undefined
- added:
function getClassFromStaticSymbol(program: ts.Program, type: StaticSymbol): ts.ClassDeclaration | undefined - added:
function getClassMembers(program: ts.Program, checker: ts.TypeChecker, staticSymbol: StaticSymbol): SymbolTable | undefined - added:
function getClassMembersFromDeclaration(program: ts.Program, checker: ts.TypeChecker, source: ts.SourceFile, declaration: ts.ClassDeclaration): SymbolTable - added:
function getPipesTable(source: ts.SourceFile, program: ts.Program, checker: ts.TypeChecker, pipes: CompilePipeSummary[]): SymbolTable - added:
function getSymbolQuery(program: ts.Program, checker: ts.TypeChecker, source: ts.SourceFile, fetchPipes: () => SymbolTable): SymbolQuery
- changed:
method Extractor.extract(formatName: string): Promise<void> → method Extractor.extract(formatName: string, outFile: string | null): Promise<string[]> - changed:
method Extractor.serialize(bundle: compiler.MessageBundle, ext: string): string → method Extractor.serialize(bundle: compiler.MessageBundle, formatName: string): string - changed:
static method Extractor.create(options: tsc.AngularCompilerOptions, program: ts.Program, tsCompilerHost: ts.CompilerHost, compilerHostContext?: CompilerHostContext, ngCompilerHost?: CompilerHost): Extractor → static method Extractor.create(options: tsc.AngularCompilerOptions, program: ts.Program, tsCompilerHost: ts.CompilerHost, locale?: string | null, compilerHostContext?: CompilerHostContext, ngCompilerHost?: CompilerHost): Extractor
- added:
function main(args: string[], consoleError?: (s: string) => void): number - added:
function performCompilation(basePath: string, files: string[], options: ts.CompilerOptions, ngOptions: any, consoleError?: (s: string) => void, tsCompilerHost?: ts.CompilerHost): 0 | 1 - added:
function readConfiguration(project: string, basePath: string, existingOptions?: ts.CompilerOptions): { parsed: ts.ParsedCommandLine; ngOptions: any }
- changed:
property NgTools_InternalApi_NG2_CodeGen_Options.i18nFile: string → property NgTools_InternalApi_NG2_CodeGen_Options.i18nFile?: string - changed:
property NgTools_InternalApi_NG2_CodeGen_Options.i18nFormat: string → property NgTools_InternalApi_NG2_CodeGen_Options.i18nFormat?: string - changed:
property NgTools_InternalApi_NG2_CodeGen_Options.locale: string → property NgTools_InternalApi_NG2_CodeGen_Options.locale?: string - changed:
property NgTools_InternalApi_NG2_ExtractI18n_Options.i18nFormat: string → property NgTools_InternalApi_NG2_ExtractI18n_Options.i18nFormat?: string - changed:
static method NgTools_InternalApi_NG_2.codeGen(options: NgTools_InternalApi_NG2_CodeGen_Options): Promise<void> → static method NgTools_InternalApi_NG_2.codeGen(options: NgTools_InternalApi_NG2_CodeGen_Options): Promise<any> - changed:
static method NgTools_InternalApi_NG_2.extractI18n(options: NgTools_InternalApi_NG2_ExtractI18n_Options): Promise<void> → static method NgTools_InternalApi_NG_2.extractI18n(options: NgTools_InternalApi_NG2_ExtractI18n_Options): Promise<any> - added:
property NgTools_InternalApi_NG2_CodeGen_Options.missingTranslation?: string - added:
property NgTools_InternalApi_NG2_ExtractI18n_Options.locale?: string - added:
property NgTools_InternalApi_NG2_ExtractI18n_Options.outFile?: string
- changed:
property RouteDef.className: string → readonly property RouteDef.className: string | null - changed:
property RouteDef.path: string → readonly property RouteDef.path: string - added:
function flatten<T>(list: Array<T | T[]>): T[]
- changed:
method PathMappedCompilerHost.moduleNameToFileName(m: string, containingFile: string): string → method PathMappedCompilerHost.moduleNameToFileName(m: string, containingFile: string): string | null
- added:
enum DiagnosticCategory - added:
enum EmitFlags - added:
interface CompilerHost extends ts.CompilerHost, ModuleFilenameResolver - added:
interface CompilerOptions extends ts.CompilerOptions - added:
interface Diagnostic - added:
interface ModuleFilenameResolver - added:
interface Program - added:
member DiagnosticCategory.Error = 1 - added:
member DiagnosticCategory.Message = 2 - added:
member DiagnosticCategory.Warning = 0 - added:
member EmitFlags.All = 31 - added:
member EmitFlags.DTS = 1 - added:
member EmitFlags.Default = 3 - added:
member EmitFlags.I18nBundle = 8 - added:
member EmitFlags.JS = 2 - added:
member EmitFlags.Metadata = 4 - added:
member EmitFlags.Summary = 16 - added:
method CompilerHost.readResource?(fileName: string): Promise<string> | string - added:
method ModuleFilenameResolver.assumeFileExists(fileName: string): void - added:
method ModuleFilenameResolver.fileNameToModuleName(importedFilePath: string, containingFilePath: string): string | null - added:
method ModuleFilenameResolver.getNgCanonicalFileName(fileName: string): string - added:
method ModuleFilenameResolver.moduleNameToFileName(moduleName: string, containingFile?: string): string | null - added:
method Program.emit({ emitFlags, cancellationToken }: { emitFlags: EmitFlags; cancellationToken?: ts.CancellationToken }): void - added:
method Program.getLazyRoutes(cancellationToken?: ts.CancellationToken): { [route: string]: string } - added:
method Program.getNgOptionDiagnostics(cancellationToken?: ts.CancellationToken): Diagnostic[] - added:
method Program.getNgSemanticDiagnostics(fileName?: string, cancellationToken?: ts.CancellationToken): Diagnostic[] - added:
method Program.getNgStructuralDiagnostics(cancellationToken?: ts.CancellationToken): Diagnostic[] - added:
method Program.getTsOptionDiagnostics(cancellationToken?: ts.CancellationToken): ts.Diagnostic[] - added:
method Program.getTsProgram(): ts.Program - added:
method Program.getTsSemanticDiagnostics(sourceFile?: ts.SourceFile, cancellationToken?: ts.CancellationToken): ts.Diagnostic[] - added:
method Program.getTsSyntacticDiagnostics(sourceFile?: ts.SourceFile, cancellationToken?: ts.CancellationToken): ts.Diagnostic[] - added:
method Program.loadNgStructureAsync(): Promise<void> - added:
property CompilerOptions.annotateForClosureCompiler?: boolean - added:
property CompilerOptions.annotationsAs?: 'decorators' | 'static fields' - added:
property CompilerOptions.basePath?: string - added:
property CompilerOptions.enableLegacyTemplate?: boolean - added:
property CompilerOptions.flatModuleId?: string - added:
property CompilerOptions.flatModuleOutFile?: string - added:
property CompilerOptions.genDir?: string - added:
property CompilerOptions.generateCodeForLibraries?: boolean - added:
property CompilerOptions.preserveWhitespaces?: boolean - added:
property CompilerOptions.skipMetadataEmit?: boolean - added:
property CompilerOptions.skipTemplateCodegen?: boolean - added:
property CompilerOptions.strictMetadataEmit?: boolean - added:
property CompilerOptions.trace?: boolean - added:
property Diagnostic.category: DiagnosticCategory - added:
property Diagnostic.message: string - added:
property Diagnostic.span?: ParseSourceSpan
- added:
export { createModuleFilenameResolver } - added:
export { createProgram } from './program' - added:
function createHost({ tsHost, options }: { tsHost: ts.CompilerHost; options: CompilerOptions }): CompilerHost
- added:
function createModuleFilenameResolver(tsHost: ts.ModuleResolutionHost, options: CompilerOptions): ModuleFilenameResolver
- added:
class TypeScriptNodeEmitter - added:
interface Node - added:
method TypeScriptNodeEmitter.updateSourceFile(sourceFile: ts.SourceFile, stmts: Statement[], preamble?: string): [ts.SourceFile, Map<ts.Node, Node>] - added:
property Node.sourceSpan: ParseSourceSpan | null
- added:
function getAngularEmitterTransformFactory(generatedFiles: GeneratedFile[]): () => (sourceFile: ts.SourceFile) => ts.SourceFile
- added:
function createProgram({ rootNames, options, host, oldProgram }: { rootNames: string[]; options: CompilerOptions; host: CompilerHost; oldProgram?: Program }): Program