@angular/compiler 14.2.0-next.1 → 14.2.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION = '12.0.0';
21
21
  export function compileDeclareFactoryFunction(meta) {
22
22
  const definitionMap = new DefinitionMap();
23
23
  definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
24
- definitionMap.set('version', o.literal('14.2.0-next.1'));
24
+ definitionMap.set('version', o.literal('14.2.0-rc.0'));
25
25
  definitionMap.set('ngImport', o.importExpr(R3.core));
26
26
  definitionMap.set('type', meta.internalType);
27
27
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -34,7 +34,7 @@ export function compileDeclareInjectableFromMetadata(meta) {
34
34
  export function createInjectableDefinitionMap(meta) {
35
35
  const definitionMap = new DefinitionMap();
36
36
  definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
37
- definitionMap.set('version', o.literal('14.2.0-next.1'));
37
+ definitionMap.set('version', o.literal('14.2.0-rc.0'));
38
38
  definitionMap.set('ngImport', o.importExpr(R3.core));
39
39
  definitionMap.set('type', meta.internalType);
40
40
  // Only generate providedIn property if it has a non-null value
@@ -29,7 +29,7 @@ export function compileDeclareInjectorFromMetadata(meta) {
29
29
  function createInjectorDefinitionMap(meta) {
30
30
  const definitionMap = new DefinitionMap();
31
31
  definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
32
- definitionMap.set('version', o.literal('14.2.0-next.1'));
32
+ definitionMap.set('version', o.literal('14.2.0-rc.0'));
33
33
  definitionMap.set('ngImport', o.importExpr(R3.core));
34
34
  definitionMap.set('type', meta.internalType);
35
35
  definitionMap.set('providers', meta.providers);
@@ -30,7 +30,7 @@ export function compileDeclareNgModuleFromMetadata(meta) {
30
30
  function createNgModuleDefinitionMap(meta) {
31
31
  const definitionMap = new DefinitionMap();
32
32
  definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
33
- definitionMap.set('version', o.literal('14.2.0-next.1'));
33
+ definitionMap.set('version', o.literal('14.2.0-rc.0'));
34
34
  definitionMap.set('ngImport', o.importExpr(R3.core));
35
35
  definitionMap.set('type', meta.internalType);
36
36
  // We only generate the keys in the metadata if the arrays contain values.
@@ -32,7 +32,7 @@ export function compileDeclarePipeFromMetadata(meta) {
32
32
  export function createPipeDefinitionMap(meta) {
33
33
  const definitionMap = new DefinitionMap();
34
34
  definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
35
- definitionMap.set('version', o.literal('14.2.0-next.1'));
35
+ definitionMap.set('version', o.literal('14.2.0-rc.0'));
36
36
  definitionMap.set('ngImport', o.importExpr(R3.core));
37
37
  // e.g. `type: MyPipe`
38
38
  definitionMap.set('type', meta.internalType);
@@ -11,5 +11,5 @@
11
11
  * Entry point for all public APIs of the compiler package.
12
12
  */
13
13
  import { Version } from './util';
14
- export const VERSION = new Version('14.2.0-next.1');
14
+ export const VERSION = new Version('14.2.0-rc.0');
15
15
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVIOzs7O0dBSUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRS9CLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBjb21waWxlciBwYWNrYWdlLlxuICovXG5cbmltcG9ydCB7VmVyc2lvbn0gZnJvbSAnLi91dGlsJztcblxuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.2.0-next.1
2
+ * @license Angular v14.2.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -9948,10 +9948,18 @@ class _ParseAST {
9948
9948
  } // read all semicolons
9949
9949
  }
9950
9950
  else if (this.index < this.tokens.length) {
9951
+ const errorIndex = this.index;
9951
9952
  this.error(`Unexpected token '${this.next}'`);
9953
+ // The `error` call above will skip ahead to the next recovery point in an attempt to
9954
+ // recover part of the expression, but that might be the token we started from which will
9955
+ // lead to an infinite loop. If that's the case, break the loop assuming that we can't
9956
+ // parse further.
9957
+ if (this.index === errorIndex) {
9958
+ break;
9959
+ }
9952
9960
  }
9953
9961
  }
9954
- if (exprs.length == 0) {
9962
+ if (exprs.length === 0) {
9955
9963
  // We have no expressions so create an empty expression that spans the entire input length
9956
9964
  const artificialStart = this.offset;
9957
9965
  const artificialEnd = this.offset + this.input.length;
@@ -19854,7 +19862,7 @@ function publishFacade(global) {
19854
19862
  * Use of this source code is governed by an MIT-style license that can be
19855
19863
  * found in the LICENSE file at https://angular.io/license
19856
19864
  */
19857
- const VERSION = new Version('14.2.0-next.1');
19865
+ const VERSION = new Version('14.2.0-rc.0');
19858
19866
 
19859
19867
  /**
19860
19868
  * @license
@@ -21881,7 +21889,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21881
21889
  function compileDeclareClassMetadata(metadata) {
21882
21890
  const definitionMap = new DefinitionMap();
21883
21891
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21884
- definitionMap.set('version', literal('14.2.0-next.1'));
21892
+ definitionMap.set('version', literal('14.2.0-rc.0'));
21885
21893
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21886
21894
  definitionMap.set('type', metadata.type);
21887
21895
  definitionMap.set('decorators', metadata.decorators);
@@ -21998,7 +22006,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
21998
22006
  function createDirectiveDefinitionMap(meta) {
21999
22007
  const definitionMap = new DefinitionMap();
22000
22008
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
22001
- definitionMap.set('version', literal('14.2.0-next.1'));
22009
+ definitionMap.set('version', literal('14.2.0-rc.0'));
22002
22010
  // e.g. `type: MyDirective`
22003
22011
  definitionMap.set('type', meta.internalType);
22004
22012
  if (meta.isStandalone) {
@@ -22212,7 +22220,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
22212
22220
  function compileDeclareFactoryFunction(meta) {
22213
22221
  const definitionMap = new DefinitionMap();
22214
22222
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
22215
- definitionMap.set('version', literal('14.2.0-next.1'));
22223
+ definitionMap.set('version', literal('14.2.0-rc.0'));
22216
22224
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22217
22225
  definitionMap.set('type', meta.internalType);
22218
22226
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22254,7 +22262,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22254
22262
  function createInjectableDefinitionMap(meta) {
22255
22263
  const definitionMap = new DefinitionMap();
22256
22264
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22257
- definitionMap.set('version', literal('14.2.0-next.1'));
22265
+ definitionMap.set('version', literal('14.2.0-rc.0'));
22258
22266
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22259
22267
  definitionMap.set('type', meta.internalType);
22260
22268
  // Only generate providedIn property if it has a non-null value
@@ -22312,7 +22320,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22312
22320
  function createInjectorDefinitionMap(meta) {
22313
22321
  const definitionMap = new DefinitionMap();
22314
22322
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22315
- definitionMap.set('version', literal('14.2.0-next.1'));
22323
+ definitionMap.set('version', literal('14.2.0-rc.0'));
22316
22324
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22317
22325
  definitionMap.set('type', meta.internalType);
22318
22326
  definitionMap.set('providers', meta.providers);
@@ -22349,7 +22357,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22349
22357
  function createNgModuleDefinitionMap(meta) {
22350
22358
  const definitionMap = new DefinitionMap();
22351
22359
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22352
- definitionMap.set('version', literal('14.2.0-next.1'));
22360
+ definitionMap.set('version', literal('14.2.0-rc.0'));
22353
22361
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22354
22362
  definitionMap.set('type', meta.internalType);
22355
22363
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22407,7 +22415,7 @@ function compileDeclarePipeFromMetadata(meta) {
22407
22415
  function createPipeDefinitionMap(meta) {
22408
22416
  const definitionMap = new DefinitionMap();
22409
22417
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22410
- definitionMap.set('version', literal('14.2.0-next.1'));
22418
+ definitionMap.set('version', literal('14.2.0-rc.0'));
22411
22419
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22412
22420
  // e.g. `type: MyPipe`
22413
22421
  definitionMap.set('type', meta.internalType);