Upgrading @angular/compiler 7 to 8
Unknown7.2.16 β 8.2.14
Fetching 53 releases from GitHubβ¦0 / 53
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
const $7 = 55 - added:
const $BSPACE = 8 - added:
const $b = 98 - added:
function isNewLine(code: number): boolean - added:
function isOctalDigit(code: number): boolean
- added:
property CompileQueryMetadata.static?: boolean
- removed:
export { jitExpression } from './render3/r3_jit' - added:
export { DYNAMIC_TYPE } from './output/output_ast' - added:
export { Identifiers as R3Identifiers } from './render3/r3_identifiers' - added:
export { JitEvaluator } from './output/output_jit' - added:
export { LexerRange } from './ml_parser/lexer' - added:
export { ParseTemplateOptions } from './render3/view/template' - added:
export { ParsedHostBindings } from './render3/view/compiler' - added:
export { RecursiveVisitor as TmplAstRecursiveVisitor } from './render3/r3_ast' - added:
export { STRING_TYPE } from './output/output_ast' - added:
export { findStaticQueryIds } from './view_compiler/view_compiler' - added:
export { literalMap } from './output/output_ast' - added:
export { staticViewQueryIds } from './view_compiler/view_compiler' - added:
export { verifyHostBindings } from './render3/view/compiler'
- removed:
property R3ComponentMetadataFacade.viewQueries: R3QueryMetadataFacade[] - changed:
property R3DirectiveMetadataFacade.exportAs: string | null β property R3DirectiveMetadataFacade.exportAs: string[] | null - changed:
property R3DirectiveMetadataFacade.typeSourceSpan: null β property R3DirectiveMetadataFacade.typeSourceSpan: ParseSourceSpan - changed:
property R3InjectorMetadataFacade.imports: any β property R3InjectorMetadataFacade.imports: any[] - changed:
property R3InjectorMetadataFacade.providers: any β property R3InjectorMetadataFacade.providers: any[] - added:
interface ParseSourceSpan - added:
interface R3BaseMetadataFacade - added:
member R3ResolvedDependencyType.ChangeDetectorRef = 2 - added:
method CompilerFacade.compileBase(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, meta: R3BaseMetadataFacade): any - added:
method CompilerFacade.createParseSourceSpan(kind: string, typeName: string, sourceUrl: string): ParseSourceSpan - added:
property CompilerFacade.ResourceLoader: { new (): ResourceLoader } - added:
property ParseSourceSpan.details: any - added:
property ParseSourceSpan.end: any - added:
property ParseSourceSpan.start: any - added:
property R3BaseMetadataFacade.inputs?: { [key: string]: string | [string, string] } - added:
property R3BaseMetadataFacade.name: string - added:
property R3BaseMetadataFacade.outputs?: { [key: string]: string } - added:
property R3BaseMetadataFacade.propMetadata: { [key: string]: any[] } - added:
property R3BaseMetadataFacade.queries?: R3QueryMetadataFacade[] - added:
property R3BaseMetadataFacade.type: any - added:
property R3BaseMetadataFacade.viewQueries?: R3QueryMetadataFacade[] - added:
property R3DirectiveMetadataFacade.viewQueries: R3QueryMetadataFacade[] - added:
property R3NgModuleMetadataFacade.id: string | null - added:
property R3NgModuleMetadataFacade.schemas: { name: string }[] | null - added:
property R3PipeMetadataFacade.typeArgumentCount: number - added:
property R3QueryMetadataFacade.static: boolean - added:
type ResourceLoader = { get(url: string): Promise<string> | string }
- changed:
function convertActionBinding(localResolver: LocalResolver | null, implicitReceiver: o.Expression, action: cdAst.AST, bindingId: string, interpolationFunction?: InterpolationFunction): ConvertActionBindingResult β function convertActionBinding(localResolver: LocalResolver | null, implicitReceiver: o.Expression, action: cdAst.AST, bindingId: string, interpolationFunction?: InterpolationFunction, baseSourceSpan?: ParseSourceSpan): ConvertActionBindingResult - added:
function convertUpdateArguments(localResolver: LocalResolver, contextVariableExpression: o.Expression, expressionWithArgumentsToExtract: cdAst.AST, bindingId: string): { stmts: o.Statement[]; args: o.Expression[] } - added:
method LocalResolver.notifyImplicitReceiverUse(): void
- removed:
member AttributeMarker.SelectOnly = 3 - changed:
const createHost: MetadataFactory<{}> β const createHost: MetadataFactory<unknown> - changed:
const createOptional: MetadataFactory<{}> β const createOptional: MetadataFactory<unknown> - changed:
const createSelf: MetadataFactory<{}> β const createSelf: MetadataFactory<unknown> - changed:
const createSkipSelf: MetadataFactory<{}> β const createSkipSelf: MetadataFactory<unknown> - added:
member AttributeMarker.Bindings = 3 - added:
member AttributeMarker.I18n = 6 - added:
member AttributeMarker.ProjectAs = 5 - added:
member AttributeMarker.Template = 4 - added:
property Query.static: boolean
- changed:
constructor ASTWithSource(ast: AST, source: string | null, location: string, errors: ParserError[]) β constructor ASTWithSource(ast: AST, source: string | null, location: string, absoluteOffset: number, errors: ParserError[]) - changed:
constructor BoundElementProperty(name: string, type: BindingType, securityContext: SecurityContext, value: AST, unit: string | null, sourceSpan: ParseSourceSpan) β constructor BoundElementProperty(name: string, type: BindingType, securityContext: SecurityContext, value: AST, unit: string | null, sourceSpan: ParseSourceSpan, valueSpan?: ParseSourceSpan | undefined) - changed:
constructor ParsedEvent(name: string, targetOrPhase: string, type: ParsedEventType, handler: AST, sourceSpan: ParseSourceSpan) β constructor ParsedEvent(name: string, targetOrPhase: string, type: ParsedEventType, handler: AST, sourceSpan: ParseSourceSpan, handlerSpan: ParseSourceSpan) - changed:
constructor ParsedProperty(name: string, expression: ASTWithSource, type: ParsedPropertyType, sourceSpan: ParseSourceSpan) β constructor ParsedProperty(name: string, expression: ASTWithSource, type: ParsedPropertyType, sourceSpan: ParseSourceSpan, valueSpan?: ParseSourceSpan | undefined) - added:
class AbsoluteSourceSpan - added:
constructor AbsoluteSourceSpan(start: number, end: number) - added:
method AstVisitor.visitASTWithSource?(ast: ASTWithSource, context: any): any - added:
property ASTWithSource.sourceSpan: AbsoluteSourceSpan - added:
property AbsoluteSourceSpan.end: number - added:
property AbsoluteSourceSpan.start: number - added:
property BoundElementProperty.valueSpan?: ParseSourceSpan | undefined - added:
property ParsedEvent.handlerSpan: ParseSourceSpan - added:
property ParsedProperty.valueSpan?: ParseSourceSpan | undefined
- changed:
constructor _ParseAST(input: string, location: any, tokens: Token[], inputLength: number, parseAction: boolean, errors: ParserError[], offset: number) β constructor _ParseAST(input: string, location: any, absoluteOffset: number, tokens: Token[], inputLength: number, parseAction: boolean, errors: ParserError[], offset: number) - changed:
method Parser.parseAction(input: string, location: any, interpolationConfig?: InterpolationConfig): ASTWithSource β method Parser.parseAction(input: string, location: any, absoluteOffset: number, interpolationConfig?: InterpolationConfig): ASTWithSource - changed:
method Parser.parseBinding(input: string, location: any, interpolationConfig?: InterpolationConfig): ASTWithSource β method Parser.parseBinding(input: string, location: any, absoluteOffset: number, interpolationConfig?: InterpolationConfig): ASTWithSource - changed:
method Parser.parseInterpolation(input: string, location: any, interpolationConfig?: InterpolationConfig): ASTWithSource | null β method Parser.parseInterpolation(input: string, location: any, absoluteOffset: number, interpolationConfig?: InterpolationConfig): ASTWithSource | null - changed:
method Parser.parseSimpleBinding(input: string, location: string, interpolationConfig?: InterpolationConfig): ASTWithSource β method Parser.parseSimpleBinding(input: string, location: string, absoluteOffset: number, interpolationConfig?: InterpolationConfig): ASTWithSource - changed:
method Parser.parseTemplateBindings(tplKey: string, tplValue: string, location: any): TemplateBindingParseResult β method Parser.parseTemplateBindings(tplKey: string, tplValue: string, location: any, absoluteOffset: number): TemplateBindingParseResult - changed:
method Parser.wrapLiteralPrimitive(input: string | null, location: any): ASTWithSource β method Parser.wrapLiteralPrimitive(input: string | null, location: any, absoluteOffset: number): ASTWithSource - added:
property _ParseAST.absoluteOffset: number
- removed:
static property Identifiers.defineInjectable: o.ExternalReference - added:
static property Identifiers.Ι΅Ι΅defineInjectable: o.ExternalReference
- changed:
property R3InjectableMetadata.ctorDeps: R3DependencyMetadata[] | null β property R3InjectableMetadata.ctorDeps: R3DependencyMetadata[] | 'invalid' | null
- changed:
constructor JitCompiler(_metadataResolver: CompileMetadataResolver, _templateParser: TemplateParser, _styleCompiler: StyleCompiler, _viewCompiler: ViewCompiler, _ngModuleCompiler: NgModuleCompiler, _summaryResolver: SummaryResolver<Type>, _reflector: CompileReflector, _compilerConfig: CompilerConfig, _console: Console, getExtraNgModuleProviders: (ngModule: any) => CompileProviderMetadata[]) β constructor JitCompiler(_metadataResolver: CompileMetadataResolver, _templateParser: TemplateParser, _styleCompiler: StyleCompiler, _viewCompiler: ViewCompiler, _ngModuleCompiler: NgModuleCompiler, _summaryResolver: SummaryResolver<Type>, _reflector: CompileReflector, _jitEvaluator: JitEvaluator, _compilerConfig: CompilerConfig, _console: Console, getExtraNgModuleProviders: (ngModule: any) => Comβ¦
- added:
constructor CompilerFacadeImpl(jitEvaluator?: JitEvaluator) - added:
method CompilerFacadeImpl.compileBase(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, facade: R3BaseMetadataFacade): any - added:
method CompilerFacadeImpl.createParseSourceSpan(kind: string, typeName: string, sourceUrl: string): ParseSourceSpan - added:
property CompilerFacadeImpl.ResourceLoader: typeof ResourceLoader
- removed:
method HtmlTagDefinition.requireExtraParent(currentParent: string): boolean - removed:
property HtmlTagDefinition.parentToAdd: string - removed:
property HtmlTagDefinition.requiredParents: { [key: string]: boolean } - changed:
constructor HtmlTagDefinition({ closedByChildren, requiredParents, implicitNamespacePrefix, contentType, closedByParent, isVoid, ignoreFirstLf }?: { closedByChildren?: string[]; closedByParent?: boolean; requiredParents?: string[]; implicitNamespacePrefix?: string; contentType?: TagContentType; isVoid?: boolean; ignoreFirstLf?: boolean }) β constructor HtmlTagDefinition({ closedByChildren, implicitNamespacePrefix, contentType, closedByParent, isVoid, ignoreFirstLf }?: { closedByChildren?: string[]; closedByParent?: boolean; implicitNamespacePrefix?: string; contentType?: TagContentType; isVoid?: boolean; ignoreFirstLf?: boolean })
- changed:
member TokenType.ATTR_VALUE = 12 β member TokenType.ATTR_VALUE = 13 - changed:
member TokenType.DOC_TYPE = 13 β member TokenType.DOC_TYPE = 14 - changed:
member TokenType.EOF = 19 β member TokenType.EOF = 20 - changed:
member TokenType.EXPANSION_CASE_EXP_END = 17 β member TokenType.EXPANSION_CASE_EXP_END = 18 - changed:
member TokenType.EXPANSION_CASE_EXP_START = 16 β member TokenType.EXPANSION_CASE_EXP_START = 17 - changed:
member TokenType.EXPANSION_CASE_VALUE = 15 β member TokenType.EXPANSION_CASE_VALUE = 16 - changed:
member TokenType.EXPANSION_FORM_END = 18 β member TokenType.EXPANSION_FORM_END = 19 - changed:
member TokenType.EXPANSION_FORM_START = 14 β member TokenType.EXPANSION_FORM_START = 15 - added:
class CursorError - added:
constructor CursorError(msg: string, cursor: CharacterCursor) - added:
interface LexerRange - added:
member TokenType.ATTR_QUOTE = 12 - added:
property CursorError.cursor: CharacterCursor - added:
property CursorError.msg: string - added:
property LexerRange.endPos: number - added:
property LexerRange.startCol: number - added:
property LexerRange.startLine: number - added:
property LexerRange.startPos: number - added:
property TokenizeOptions.escapedString?: boolean - added:
property TokenizeOptions.leadingTriviaChars?: string[] - added:
property TokenizeOptions.range?: LexerRange
- removed:
method TagDefinition.requireExtraParent(currentParent: string): boolean - removed:
property TagDefinition.parentToAdd: string - removed:
property TagDefinition.requiredParents: { [key: string]: boolean }
- removed:
function jitStatements(sourceUrl: string, statements: o.Statement[], reflector: CompileReflector, createSourceMaps: boolean): { [key: string]: any } - added:
class JitEvaluator - added:
method JitEvaluator.evaluateCode(sourceUrl: string, ctx: EmitterVisitorContext, vars: { [key: string]: any }, createSourceMap: boolean): any - added:
method JitEvaluator.evaluateStatements(sourceUrl: string, statements: o.Statement[], reflector: CompileReflector, createSourceMaps: boolean): { [key: string]: any } - added:
method JitEvaluator.executeFunction(fn: Function, args: any[]): any
- added:
const EMPTY_PARSE_LOCATION: ParseLocation - added:
const EMPTY_SOURCE_SPAN: ParseSourceSpan - added:
function r3JitTypeSourceSpan(kind: string, typeName: string, sourceUrl: string): ParseSourceSpan
- changed:
constructor BoundAttribute(name: string, type: BindingType, securityContext: SecurityContext, value: AST, unit: string | null, sourceSpan: ParseSourceSpan, i18n?: import('@angular/compiler/src/i18n/i18n_ast').Message | import('@angular/compiler/src/i18n/i18n_ast').Node | undefined) β constructor BoundAttribute(name: string, type: BindingType, securityContext: SecurityContext, value: AST, unit: string | null, sourceSpan: ParseSourceSpan, valueSpan?: ParseSourceSpan | undefined, i18n?: import('@angular/compiler/src/i18n/i18n_ast').Message | import('@angular/compiler/src/i18n/i18n_ast').Node | undefined) - changed:
constructor BoundEvent(name: string, type: ParsedEventType, handler: AST, target: string | null, phase: string | null, sourceSpan: ParseSourceSpan) β constructor BoundEvent(name: string, type: ParsedEventType, handler: AST, target: string | null, phase: string | null, sourceSpan: ParseSourceSpan, handlerSpan: ParseSourceSpan) - changed:
constructor Reference(name: string, value: string, sourceSpan: ParseSourceSpan) β constructor Reference(name: string, value: string, sourceSpan: ParseSourceSpan, valueSpan?: ParseSourceSpan | undefined) - changed:
constructor Template(tagName: string, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], children: Node[], references: Reference[], variables: Variable[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan | null, endSourceSpan: ParseSourceSpan | null, i18n?: import('@angular/compiler/src/i18n/i18n_ast').Message | import('@angular/compiler/src/i18n/i18n_ast')β¦ β constructor Template(tagName: string, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], templateAttrs: (BoundAttribute | TextAttribute)[], children: Node[], references: Reference[], variables: Variable[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan | null, endSourceSpan: ParseSourceSpan | null, i18n?: import('@angular/compiler/src/i18n/i18n_ast').Messβ¦ - changed:
constructor Variable(name: string, value: string, sourceSpan: ParseSourceSpan) β constructor Variable(name: string, value: string, sourceSpan: ParseSourceSpan, valueSpan?: ParseSourceSpan | undefined) - added:
property BoundAttribute.valueSpan?: ParseSourceSpan | undefined - added:
property BoundEvent.handlerSpan: ParseSourceSpan - added:
property Reference.valueSpan?: ParseSourceSpan | undefined - added:
property Template.templateAttrs: (BoundAttribute | TextAttribute)[] - added:
property Variable.valueSpan?: ParseSourceSpan | undefined
- changed:
function compileFactoryFunction(meta: R3FactoryMetadata): { factory: o.Expression; statements: o.Statement[] } β function compileFactoryFunction(meta: R3FactoryMetadata, isPipe?: boolean): { factory: o.Expression; statements: o.Statement[] } - changed:
property R3ConstructorFactoryMetadata.deps: R3DependencyMetadata[] | null β property R3ConstructorFactoryMetadata.deps: R3DependencyMetadata[] | 'invalid' | null - added:
member R3ResolvedDependencyType.ChangeDetectorRef = 2
- removed:
static property Identifiers.bind: o.ExternalReference - removed:
static property Identifiers.componentHostSyntheticProperty: o.ExternalReference - removed:
static property Identifiers.elementAttribute: o.ExternalReference - removed:
static property Identifiers.elementClassProp: o.ExternalReference - removed:
static property Identifiers.elementProperty: o.ExternalReference - removed:
static property Identifiers.elementStyleProp: o.ExternalReference - removed:
static property Identifiers.elementStyling: o.ExternalReference - removed:
static property Identifiers.elementStylingApply: o.ExternalReference - removed:
static property Identifiers.elementStylingMap: o.ExternalReference - removed:
static property Identifiers.interpolation1: o.ExternalReference - removed:
static property Identifiers.interpolation2: o.ExternalReference - removed:
static property Identifiers.interpolation3: o.ExternalReference - removed:
static property Identifiers.interpolation4: o.ExternalReference - removed:
static property Identifiers.interpolation5: o.ExternalReference - removed:
static property Identifiers.interpolation6: o.ExternalReference - removed:
static property Identifiers.interpolation7: o.ExternalReference - removed:
static property Identifiers.interpolation8: o.ExternalReference - removed:
static property Identifiers.interpolationV: o.ExternalReference - removed:
static property Identifiers.loadQueryList: o.ExternalReference - removed:
static property Identifiers.query: o.ExternalReference - removed:
static property Identifiers.registerContentQuery: o.ExternalReference - added:
static property Identifiers.attribute: o.ExternalReference - added:
static property Identifiers.attributeInterpolate1: o.ExternalReference - added:
static property Identifiers.attributeInterpolate2: o.ExternalReference - added:
static property Identifiers.attributeInterpolate3: o.ExternalReference - added:
static property Identifiers.attributeInterpolate4: o.ExternalReference - added:
static property Identifiers.attributeInterpolate5: o.ExternalReference - added:
static property Identifiers.attributeInterpolate6: o.ExternalReference - added:
static property Identifiers.attributeInterpolate7: o.ExternalReference - added:
static property Identifiers.attributeInterpolate8: o.ExternalReference - added:
static property Identifiers.attributeInterpolateV: o.ExternalReference - added:
static property Identifiers.classMap: o.ExternalReference - added:
static property Identifiers.classMapInterpolate1: o.ExternalReference - added:
static property Identifiers.classMapInterpolate2: o.ExternalReference - added:
static property Identifiers.classMapInterpolate3: o.ExternalReference - added:
static property Identifiers.classMapInterpolate4: o.ExternalReference - added:
static property Identifiers.classMapInterpolate5: o.ExternalReference - added:
static property Identifiers.classMapInterpolate6: o.ExternalReference - added:
static property Identifiers.classMapInterpolate7: o.ExternalReference - added:
static property Identifiers.classMapInterpolate8: o.ExternalReference - added:
static property Identifiers.classMapInterpolateV: o.ExternalReference - added:
static property Identifiers.classProp: o.ExternalReference - added:
static property Identifiers.componentHostSyntheticListener: o.ExternalReference - added:
static property Identifiers.contentQuery: o.ExternalReference - added:
static property Identifiers.elementContainer: o.ExternalReference - added:
static property Identifiers.hostProperty: o.ExternalReference - added:
static property Identifiers.i18nLocalize: o.ExternalReference - added:
static property Identifiers.injectPipeChangeDetectorRef: o.ExternalReference - added:
static property Identifiers.loadContentQuery: o.ExternalReference - added:
static property Identifiers.loadViewQuery: o.ExternalReference - added:
static property Identifiers.property: o.ExternalReference - added:
static property Identifiers.propertyInterpolate1: o.ExternalReference - added:
static property Identifiers.propertyInterpolate2: o.ExternalReference - added:
static property Identifiers.propertyInterpolate3: o.ExternalReference - added:
static property Identifiers.propertyInterpolate4: o.ExternalReference - added:
static property Identifiers.propertyInterpolate5: o.ExternalReference - added:
static property Identifiers.propertyInterpolate6: o.ExternalReference - added:
static property Identifiers.propertyInterpolate7: o.ExternalReference - added:
static property Identifiers.propertyInterpolate8: o.ExternalReference - added:
static property Identifiers.propertyInterpolate: o.ExternalReference - added:
static property Identifiers.propertyInterpolateV: o.ExternalReference - added:
static property Identifiers.resolveBody: o.ExternalReference - added:
static property Identifiers.resolveDocument: o.ExternalReference - added:
static property Identifiers.resolveWindow: o.ExternalReference - added:
static property Identifiers.sanitizeUrlOrResourceUrl: o.ExternalReference - added:
static property Identifiers.select: o.ExternalReference - added:
static property Identifiers.setComponentScope: o.ExternalReference - added:
static property Identifiers.setNgModuleScope: o.ExternalReference - added:
static property Identifiers.staticContentQuery: o.ExternalReference - added:
static property Identifiers.staticViewQuery: o.ExternalReference - added:
static property Identifiers.styleMap: o.ExternalReference - added:
static property Identifiers.styleProp: o.ExternalReference - added:
static property Identifiers.stylePropInterpolate1: o.ExternalReference - added:
static property Identifiers.stylePropInterpolate2: o.ExternalReference - added:
static property Identifiers.stylePropInterpolate3: o.ExternalReference - added:
static property Identifiers.stylePropInterpolate4: o.ExternalReference - added:
static property Identifiers.stylePropInterpolate5: o.ExternalReference - added:
static property Identifiers.stylePropInterpolate6: o.ExternalReference - added:
static property Identifiers.stylePropInterpolate7: o.ExternalReference - added:
static property Identifiers.stylePropInterpolate8: o.ExternalReference - added:
static property Identifiers.stylePropInterpolateV: o.ExternalReference - added:
static property Identifiers.styleSanitizer: o.ExternalReference - added:
static property Identifiers.styling: o.ExternalReference - added:
static property Identifiers.stylingApply: o.ExternalReference - added:
static property Identifiers.textInterpolate1: o.ExternalReference - added:
static property Identifiers.textInterpolate2: o.ExternalReference - added:
static property Identifiers.textInterpolate3: o.ExternalReference - added:
static property Identifiers.textInterpolate4: o.ExternalReference - added:
static property Identifiers.textInterpolate5: o.ExternalReference - added:
static property Identifiers.textInterpolate6: o.ExternalReference - added:
static property Identifiers.textInterpolate7: o.ExternalReference - added:
static property Identifiers.textInterpolate8: o.ExternalReference - added:
static property Identifiers.textInterpolate: o.ExternalReference - added:
static property Identifiers.textInterpolateV: o.ExternalReference - added:
static property Identifiers.updateSyntheticHostBinding: o.ExternalReference - added:
static property Identifiers.viewQuery: o.ExternalReference
- removed:
function jitExpression(def: o.Expression, context: { [key: string]: any }, sourceUrl: string, preStatements: o.Statement[]): any - added:
class R3JitReflector implements CompileReflector - added:
constructor R3JitReflector(context: { [key: string]: any }) - added:
method R3JitReflector.annotations(typeOrFunc: any): any[] - added:
method R3JitReflector.componentModuleUrl(type: any, cmpMetadata: any): string - added:
method R3JitReflector.guards(typeOrFunc: any): { [key: string]: any } - added:
method R3JitReflector.hasLifecycleHook(type: any, lcProperty: string): boolean - added:
method R3JitReflector.parameters(typeOrFunc: any): any[][] - added:
method R3JitReflector.propMetadata(typeOrFunc: any): { [key: string]: any[] } - added:
method R3JitReflector.resolveExternalReference(ref: o.ExternalReference): any - added:
method R3JitReflector.shallowAnnotations(typeOrFunc: any): any[] - added:
method R3JitReflector.tryAnnotations(typeOrFunc: any): any[]
- changed:
property R3InjectorMetadata.imports: o.Expression β property R3InjectorMetadata.imports: o.Expression[] - changed:
property R3InjectorMetadata.providers: o.Expression β property R3InjectorMetadata.providers: o.Expression | null - added:
property R3NgModuleMetadata.containsForwardDecls: boolean - added:
property R3NgModuleMetadata.id: o.Expression | null - added:
property R3NgModuleMetadata.schemas: R3Reference[] | null
- removed:
interface R3PipeDef - removed:
property R3PipeDef.expression: o.Expression - removed:
property R3PipeDef.statements: o.Statement[] - removed:
property R3PipeDef.type: o.Type - added:
property R3PipeMetadata.typeArgumentCount: number
- removed:
type Render3ParseResult = { nodes: t.Node[]; errors: ParseError[] } - added:
interface Render3ParseResult - added:
property Render3ParseResult.errors: ParseError[] - added:
property Render3ParseResult.nodes: t.Node[] - added:
property Render3ParseResult.styleUrls: string[] - added:
property Render3ParseResult.styles: string[]
- removed:
property R3ComponentMetadata.viewQueries: R3QueryMetadata[] - changed:
property R3DirectiveMetadata.exportAs: string | null β property R3DirectiveMetadata.exportAs: string[] | null - changed:
property R3DirectiveMetadata.host: { attributes: { [key: string]: string }; listeners: { [key: string]: string }; properties: { [key: string]: string } } β property R3DirectiveMetadata.host: R3HostMetadata - added:
interface R3HostMetadata - added:
property R3DirectiveMetadata.viewQueries: R3QueryMetadata[] - added:
property R3HostMetadata.attributes: { [key: string]: o.Expression } - added:
property R3HostMetadata.listeners: { [key: string]: string } - added:
property R3HostMetadata.properties: { [key: string]: string } - added:
property R3HostMetadata.specialAttributes: { styleAttr?: string; classAttr?: string } - added:
property R3QueryMetadata.static: boolean
- changed:
function compileBaseDefFromMetadata(meta: R3BaseRefMetaData): { expression: o.InvokeFunctionExpr; type: o.ExpressionType } β function compileBaseDefFromMetadata(meta: R3BaseRefMetaData, constantPool: ConstantPool, bindingParser: BindingParser): { expression: o.InvokeFunctionExpr; type: o.ExpressionType } - changed:
function parseHostBindings(host: { [key: string]: string }): { attributes: { [key: string]: string }; listeners: { [key: string]: string }; properties: { [key: string]: string } } β function parseHostBindings(host: { [key: string]: string | o.Expression }): ParsedHostBindings - added:
function verifyHostBindings(bindings: ParsedHostBindings, sourceSpan: ParseSourceSpan): ParseError[] - added:
interface ParsedHostBindings - added:
property ParsedHostBindings.attributes: { [key: string]: o.Expression } - added:
property ParsedHostBindings.listeners: { [key: string]: string } - added:
property ParsedHostBindings.properties: { [key: string]: string } - added:
property ParsedHostBindings.specialAttributes: { styleAttr?: string; classAttr?: string } - added:
property R3BaseRefMetaData.host?: R3HostMetadata - added:
property R3BaseRefMetaData.name: string - added:
property R3BaseRefMetaData.queries?: R3QueryMetadata[] - added:
property R3BaseRefMetaData.type: o.Expression - added:
property R3BaseRefMetaData.typeSourceSpan: ParseSourceSpan - added:
property R3BaseRefMetaData.viewQueries?: R3QueryMetadata[]
- changed:
method I18nContext.appendBinding(binding: o.Expression): void β method I18nContext.appendBinding(binding: AST): void - changed:
property I18nContext.bindings: Set<o.Expression> β property I18nContext.bindings: Set<AST> - added:
method I18nContext.appendProjection(node: i18n.AST, index: number): void - added:
property I18nContext.isEmitted: boolean
- changed:
function formatI18nPlaceholderName(name: string): string β function formatI18nPlaceholderName(name: string, useCamelCase?: boolean): string - changed:
function getTranslationDeclStmts(variable: o.ReadVarExpr, message: string, meta: I18nMeta, params?: { [name: string]: o.Expression }, transformFn?: (raw: o.ReadVarExpr) => o.Expression): o.Statement[] β function getTranslationDeclStmts(variable: o.ReadVarExpr, closureVar: o.ReadVarExpr, message: string, meta: I18nMeta, params?: { [name: string]: o.Expression }, transformFn?: (raw: o.ReadVarExpr) => o.Expression): o.Statement[] - added:
const TRANSLATION_PREFIX = 'I18N_'
- removed:
method StylingBuilder.buildDirectiveHostAttrsInstruction(sourceSpan: ParseSourceSpan | null, constantPool: ConstantPool): StylingInstruction | null - removed:
method StylingBuilder.buildElementStylingInstruction(sourceSpan: ParseSourceSpan | null, constantPool: ConstantPool): StylingInstruction | null - removed:
method StylingBuilder.buildElementStylingMapInstruction(valueConverter: ValueConverter): StylingInstruction | null - removed:
method StylingBuilder.hasBindingsOrInitialValues(): boolean - removed:
method StylingInstruction.buildParams(convertFn: (value: any) => o.Expression): o.Expression[] - changed:
method StylingBuilder.registerClassInput(className: string | null, value: AST, sourceSpan: ParseSourceSpan): BoundStylingEntry β method StylingBuilder.registerClassInput(name: string, isMapBased: boolean, value: AST, sourceSpan: ParseSourceSpan): BoundStylingEntry | null - changed:
method StylingBuilder.registerStyleInput(propertyName: string | null, value: AST, unit: string | null, sourceSpan: ParseSourceSpan): BoundStylingEntry β method StylingBuilder.registerStyleInput(name: string, isMapBased: boolean, value: AST, sourceSpan: ParseSourceSpan, unit?: string | null): BoundStylingEntry | null - added:
function parseProperty(name: string): { property: string; unit: string; hasOverrideFlag: boolean } - added:
method StylingBuilder.buildClassMapInstruction(valueConverter: ValueConverter): StylingInstruction | null - added:
method StylingBuilder.buildHostAttrsInstruction(sourceSpan: ParseSourceSpan | null, attrs: o.Expression[], constantPool: ConstantPool): StylingInstruction | null - added:
method StylingBuilder.buildStyleMapInstruction(valueConverter: ValueConverter): StylingInstruction | null - added:
method StylingBuilder.buildStylingInstruction(sourceSpan: ParseSourceSpan | null, constantPool: ConstantPool): StylingInstruction | null - added:
method StylingBuilder.registerInputBasedOnName(name: string, expression: AST, sourceSpan: ParseSourceSpan): BoundStylingEntry | null - added:
property StylingBuilder.hasBindings: boolean - added:
property StylingInstruction.allocateBindingSlots: number - added:
property StylingInstruction.params: ((convertFn: (value: any) => o.Expression | o.Expression[]) => o.Expression[]) - added:
property StylingInstruction.supportsInterpolation?: boolean
- changed:
property DirectiveMeta.exportAs: string | null β property DirectiveMeta.exportAs: string[] | null - added:
method BoundTarget.getUsedPipes(): string[]
- added:
method R3BoundTarget.getUsedPipes(): string[]
- removed:
method TemplateDefinitionBuilder.i18nAllocateRef(messageId: string): o.ReadVarExpr - changed:
constructor TemplateDefinitionBuilder(constantPool: ConstantPool, parentBindingScope: BindingScope, level: number, contextName: string | null, i18nContext: I18nContext | null, templateIndex: number | null, templateName: string | null, viewQueries: R3QueryMetadata[], directiveMatcher: SelectorMatcher | null, directives: Set<o.Expression>, pipeTypeByName: Map<string, o.Expression>, pipes: Set<o.Expβ¦ β constructor TemplateDefinitionBuilder(constantPool: ConstantPool, parentBindingScope: BindingScope, level: number, contextName: string | null, i18nContext: I18nContext | null, templateIndex: number | null, templateName: string | null, directiveMatcher: SelectorMatcher | null, directives: Set<o.Expression>, pipeTypeByName: Map<string, o.Expression>, pipes: Set<o.Expression>, _namespace: o.Externalβ¦ - changed:
function parseTemplate(template: string, templateUrl: string, options?: ParseTemplateOptions): { errors?: ParseError[]; nodes: t.Node[] } β function parseTemplate(template: string, templateUrl: string, options?: ParseTemplateOptions): { errors?: ParseError[]; nodes: t.Node[]; styleUrls: string[]; styles: string[] } - changed:
method BindingScope.set(retrievalLevel: number, name: string, lhs: o.ReadVarExpr, priority?: number, declareLocalCallback?: DeclareLocalVarCallback, localRef?: true): BindingScope β method BindingScope.set(retrievalLevel: number, name: string, lhs: o.Expression, priority?: number, declareLocalCallback?: DeclareLocalVarCallback, localRef?: true): BindingScope - added:
function prepareEventListenerParameters(eventAst: t.BoundEvent, handlerName?: string | null, scope?: BindingScope | null): o.Expression[] - added:
function resolveSanitizationFn(context: core.SecurityContext, isAttribute?: boolean): o.ExternalExpr | null - added:
method BindingScope.getOrCreateSharedContextVar(retrievalLevel: number): o.ReadVarExpr - added:
method BindingScope.notifyImplicitReceiverUse(): void - added:
method TemplateDefinitionBuilder.getNgContentSelectors(): o.Expression | null - added:
method TemplateDefinitionBuilder.i18nFormatPlaceholderNames(params: { [name: string]: o.Expression } | undefined, useCamelCase: boolean): { [key: string]: o.Expression } - added:
method TemplateDefinitionBuilder.i18nGenerateClosureVar(messageId: string): o.ReadVarExpr - added:
method TemplateDefinitionBuilder.interpolatedUpdateInstruction(instruction: o.ExternalReference, elementIndex: number, attrName: string, input: t.BoundAttribute, value: any, params: any[]): void - added:
method TemplateDefinitionBuilder.notifyImplicitReceiverUse(): void - added:
property ParseTemplateOptions.escapedString?: boolean - added:
property ParseTemplateOptions.leadingTriviaChars?: string[] - added:
property ParseTemplateOptions.range?: LexerRange
- changed:
function invalid<T>(arg: o.Expression | o.Statement | t.Node): never β function invalid<T>(this: t.Visitor, arg: o.Expression | o.Statement | t.Node): never - changed:
function unsupported(feature: string): never β function unsupported(this: void | Function, feature: string): never - added:
function chainedInstruction(reference: o.ExternalReference, calls: o.Expression[][], span?: ParseSourceSpan | null): o.Expression - added:
function getInterpolationArgsLength(interpolation: Interpolation): number
- changed:
method BindingParser.createBoundElementProperty(elementSelector: string, boundProp: ParsedProperty): BoundElementProperty β method BindingParser.createBoundElementProperty(elementSelector: string, boundProp: ParsedProperty, skipValidation?: boolean, mapPropertyName?: boolean): BoundElementProperty - changed:
method BindingParser.parseEvent(name: string, expression: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetEvents: ParsedEvent[]): void β method BindingParser.parseEvent(name: string, expression: string, sourceSpan: ParseSourceSpan, handlerSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetEvents: ParsedEvent[]): void - changed:
method BindingParser.parseInlineTemplateBinding(tplKey: string, tplValue: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], targetVars: ParsedVariable[]): void β method BindingParser.parseInlineTemplateBinding(tplKey: string, tplValue: string, sourceSpan: ParseSourceSpan, absoluteOffset: number, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], targetVars: ParsedVariable[]): void - changed:
method BindingParser.parseLiteralAttr(name: string, value: string | null, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetProps: ParsedProperty[]): void β method BindingParser.parseLiteralAttr(name: string, value: string | null, sourceSpan: ParseSourceSpan, absoluteOffset: number, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[]): void - changed:
method BindingParser.parsePropertyBinding(name: string, expression: string, isHost: boolean, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetProps: ParsedProperty[]): void β method BindingParser.parsePropertyBinding(name: string, expression: string, isHost: boolean, sourceSpan: ParseSourceSpan, absoluteOffset: number, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[]): void - changed:
method BindingParser.parsePropertyInterpolation(name: string, value: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetProps: ParsedProperty[]): boolean β method BindingParser.parsePropertyInterpolation(name: string, value: string, sourceSpan: ParseSourceSpan, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[]): boolean - added:
method BindingParser.calcPossibleSecurityContexts(selector: string, propName: string, isAttribute: boolean): SecurityContext[]
- changed:
constructor BoundEventAst(name: string, target: string | null, phase: string | null, handler: AST, sourceSpan: ParseSourceSpan) β constructor BoundEventAst(name: string, target: string | null, phase: string | null, handler: AST, sourceSpan: ParseSourceSpan, handlerSpan: ParseSourceSpan) - changed:
protected method RecursiveTemplateAstVisitor.visitChildren<T extends TemplateAst>(context: any, cb: (visit: (<V extends TemplateAst>(children: V[] | undefined) => void)) => void): any β protected method RecursiveTemplateAstVisitor.visitChildren<T extends TemplateAst>(context: any, cb: (visit: (<V extends TemplateAst>(children: V[] | undefined) => void)) => void): any[] - added:
property BoundEventAst.handlerSpan: ParseSourceSpan
- added:
function isEmptyExpression(ast: AST): boolean
- added:
function findStaticQueryIds(nodes: TemplateAst[], result?: Map<TemplateAst, StaticAndDynamicQueryIds>): Map<TemplateAst, StaticAndDynamicQueryIds> - added:
function staticViewQueryIds(nodeStaticQueryIds: Map<TemplateAst, StaticAndDynamicQueryIds>): StaticAndDynamicQueryIds