@angular/compiler 14.1.0-next.4 → 14.1.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.
- package/esm2020/src/constant_pool.mjs +2 -2
- package/esm2020/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2020/src/render3/partial/directive.mjs +1 -1
- package/esm2020/src/render3/partial/factory.mjs +1 -1
- package/esm2020/src/render3/partial/injectable.mjs +1 -1
- package/esm2020/src/render3/partial/injector.mjs +1 -1
- package/esm2020/src/render3/partial/ng_module.mjs +1 -1
- package/esm2020/src/render3/partial/pipe.mjs +1 -1
- package/esm2020/src/render3/view/i18n/context.mjs +3 -3
- package/esm2020/src/render3/view/i18n/get_msg_utils.mjs +2 -2
- package/esm2020/src/render3/view/template.mjs +1 -1
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/compiler.mjs +13 -13
- package/fesm2015/compiler.mjs.map +1 -1
- package/fesm2015/testing.mjs +1 -1
- package/fesm2020/compiler.mjs +13 -13
- package/fesm2020/compiler.mjs.map +1 -1
- package/fesm2020/testing.mjs +1 -1
- package/index.d.ts +2 -2
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
package/esm2020/src/version.mjs
CHANGED
|
@@ -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.1.0-
|
|
14
|
+
export const VERSION = new Version('14.1.0-rc.0');
|
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVIOzs7O0dBSUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRS9CLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBjb21waWxlciBwYWNrYWdlLlxuICovXG5cbmltcG9ydCB7VmVyc2lvbn0gZnJvbSAnLi91dGlsJztcblxuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
|
package/fesm2015/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.1.0-
|
|
2
|
+
* @license Angular v14.1.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2604,7 +2604,7 @@ class ConstantPool {
|
|
|
2604
2604
|
}
|
|
2605
2605
|
else {
|
|
2606
2606
|
// Just declare and use the variable directly, without a function call
|
|
2607
|
-
// indirection. This saves a few bytes and avoids an
|
|
2607
|
+
// indirection. This saves a few bytes and avoids an unnecessary call.
|
|
2608
2608
|
definition = variable(name).set(literal);
|
|
2609
2609
|
usage = variable(name);
|
|
2610
2610
|
}
|
|
@@ -16010,7 +16010,7 @@ function setupRegistry() {
|
|
|
16010
16010
|
*
|
|
16011
16011
|
* @param index Instruction index of i18nStart, which initiates this context
|
|
16012
16012
|
* @param ref Reference to a translation const that represents the content if thus context
|
|
16013
|
-
* @param level
|
|
16013
|
+
* @param level Nesting level defined for child contexts
|
|
16014
16014
|
* @param templateIndex Instruction index of a template which this context belongs to
|
|
16015
16015
|
* @param meta Meta information (id, meaning, description, etc) associated with this context
|
|
16016
16016
|
*/
|
|
@@ -16125,7 +16125,7 @@ class I18nContext {
|
|
|
16125
16125
|
const isTemplateTag = key.endsWith('NG-TEMPLATE');
|
|
16126
16126
|
if (isTemplateTag) {
|
|
16127
16127
|
// current template's content is placed before or after
|
|
16128
|
-
// parent template tag, depending on the open/close
|
|
16128
|
+
// parent template tag, depending on the open/close attribute
|
|
16129
16129
|
phs.splice(tmplIdx + (isCloseTag ? 0 : 1), 0, ...values);
|
|
16130
16130
|
}
|
|
16131
16131
|
else {
|
|
@@ -16821,7 +16821,7 @@ const GOOG_GET_MSG = 'goog.getMsg';
|
|
|
16821
16821
|
* original_code: {
|
|
16822
16822
|
* 'interpolation': '{{ sender }}',
|
|
16823
16823
|
* 'startTagSpan': '<span class="receiver">',
|
|
16824
|
-
* '
|
|
16824
|
+
* 'interpolation_1': '{{ receiver }}',
|
|
16825
16825
|
* 'closeTagSpan': '</span>',
|
|
16826
16826
|
* },
|
|
16827
16827
|
* },
|
|
@@ -19858,7 +19858,7 @@ function publishFacade(global) {
|
|
|
19858
19858
|
* Use of this source code is governed by an MIT-style license that can be
|
|
19859
19859
|
* found in the LICENSE file at https://angular.io/license
|
|
19860
19860
|
*/
|
|
19861
|
-
const VERSION = new Version('14.1.0-
|
|
19861
|
+
const VERSION = new Version('14.1.0-rc.0');
|
|
19862
19862
|
|
|
19863
19863
|
/**
|
|
19864
19864
|
* @license
|
|
@@ -21885,7 +21885,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
|
|
|
21885
21885
|
function compileDeclareClassMetadata(metadata) {
|
|
21886
21886
|
const definitionMap = new DefinitionMap();
|
|
21887
21887
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
21888
|
-
definitionMap.set('version', literal('14.1.0-
|
|
21888
|
+
definitionMap.set('version', literal('14.1.0-rc.0'));
|
|
21889
21889
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21890
21890
|
definitionMap.set('type', metadata.type);
|
|
21891
21891
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -22002,7 +22002,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
|
|
|
22002
22002
|
function createDirectiveDefinitionMap(meta) {
|
|
22003
22003
|
const definitionMap = new DefinitionMap();
|
|
22004
22004
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
22005
|
-
definitionMap.set('version', literal('14.1.0-
|
|
22005
|
+
definitionMap.set('version', literal('14.1.0-rc.0'));
|
|
22006
22006
|
// e.g. `type: MyDirective`
|
|
22007
22007
|
definitionMap.set('type', meta.internalType);
|
|
22008
22008
|
if (meta.isStandalone) {
|
|
@@ -22216,7 +22216,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
22216
22216
|
function compileDeclareFactoryFunction(meta) {
|
|
22217
22217
|
const definitionMap = new DefinitionMap();
|
|
22218
22218
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
22219
|
-
definitionMap.set('version', literal('14.1.0-
|
|
22219
|
+
definitionMap.set('version', literal('14.1.0-rc.0'));
|
|
22220
22220
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22221
22221
|
definitionMap.set('type', meta.internalType);
|
|
22222
22222
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -22258,7 +22258,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
22258
22258
|
function createInjectableDefinitionMap(meta) {
|
|
22259
22259
|
const definitionMap = new DefinitionMap();
|
|
22260
22260
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
22261
|
-
definitionMap.set('version', literal('14.1.0-
|
|
22261
|
+
definitionMap.set('version', literal('14.1.0-rc.0'));
|
|
22262
22262
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22263
22263
|
definitionMap.set('type', meta.internalType);
|
|
22264
22264
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -22316,7 +22316,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
22316
22316
|
function createInjectorDefinitionMap(meta) {
|
|
22317
22317
|
const definitionMap = new DefinitionMap();
|
|
22318
22318
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
22319
|
-
definitionMap.set('version', literal('14.1.0-
|
|
22319
|
+
definitionMap.set('version', literal('14.1.0-rc.0'));
|
|
22320
22320
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22321
22321
|
definitionMap.set('type', meta.internalType);
|
|
22322
22322
|
definitionMap.set('providers', meta.providers);
|
|
@@ -22353,7 +22353,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
22353
22353
|
function createNgModuleDefinitionMap(meta) {
|
|
22354
22354
|
const definitionMap = new DefinitionMap();
|
|
22355
22355
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
22356
|
-
definitionMap.set('version', literal('14.1.0-
|
|
22356
|
+
definitionMap.set('version', literal('14.1.0-rc.0'));
|
|
22357
22357
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22358
22358
|
definitionMap.set('type', meta.internalType);
|
|
22359
22359
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -22411,7 +22411,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
22411
22411
|
function createPipeDefinitionMap(meta) {
|
|
22412
22412
|
const definitionMap = new DefinitionMap();
|
|
22413
22413
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
22414
|
-
definitionMap.set('version', literal('14.1.0-
|
|
22414
|
+
definitionMap.set('version', literal('14.1.0-rc.0'));
|
|
22415
22415
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22416
22416
|
// e.g. `type: MyPipe`
|
|
22417
22417
|
definitionMap.set('type', meta.internalType);
|