@angular/core 14.0.1 → 14.0.4

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.
Files changed (35) hide show
  1. package/esm2020/src/application_ref.mjs +31 -35
  2. package/esm2020/src/change_detection/differs/default_iterable_differ.mjs +3 -5
  3. package/esm2020/src/change_detection/differs/default_keyvalue_differ.mjs +3 -5
  4. package/esm2020/src/change_detection/differs/iterable_differs.mjs +3 -5
  5. package/esm2020/src/change_detection/differs/keyvalue_differs.mjs +2 -5
  6. package/esm2020/src/di/injector_compatibility.mjs +6 -16
  7. package/esm2020/src/di/jit/util.mjs +3 -2
  8. package/esm2020/src/di/reflective_key.mjs +3 -2
  9. package/esm2020/src/errors.mjs +1 -1
  10. package/esm2020/src/i18n/locale_data_api.mjs +3 -2
  11. package/esm2020/src/render3/component.mjs +3 -2
  12. package/esm2020/src/render3/features/inherit_definition_feature.mjs +3 -5
  13. package/esm2020/src/render3/interfaces/renderer.mjs +10 -1
  14. package/esm2020/src/render3/jit/directive.mjs +20 -3
  15. package/esm2020/src/render3/jit/module.mjs +2 -1
  16. package/esm2020/src/render3/view_ref.mjs +3 -5
  17. package/esm2020/src/sanitization/sanitization.mjs +4 -9
  18. package/esm2020/src/version.mjs +1 -1
  19. package/esm2020/src/zone/ng_zone.mjs +5 -4
  20. package/esm2020/testing/src/logger.mjs +3 -3
  21. package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
  22. package/esm2020/testing/src/r3_test_bed_compiler.mjs +30 -25
  23. package/fesm2015/core.mjs +87 -90
  24. package/fesm2015/core.mjs.map +1 -1
  25. package/fesm2015/testing.mjs +122 -125
  26. package/fesm2015/testing.mjs.map +1 -1
  27. package/fesm2020/core.mjs +87 -90
  28. package/fesm2020/core.mjs.map +1 -1
  29. package/fesm2020/testing.mjs +122 -125
  30. package/fesm2020/testing.mjs.map +1 -1
  31. package/index.d.ts +6 -6
  32. package/package.json +1 -1
  33. package/testing/index.d.ts +1 -1
  34. package/schematics/utils/schematics_prompt.d.ts +0 -17
  35. package/schematics/utils/schematics_prompt.js +0 -45
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.1
2
+ * @license Angular v14.0.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -401,7 +401,6 @@ export declare class ApplicationRef {
401
401
  private _zone;
402
402
  private _injector;
403
403
  private _exceptionHandler;
404
- private _initStatus;
405
404
  private _views;
406
405
  private _runningTick;
407
406
  private _stable;
@@ -7038,6 +7037,7 @@ declare const enum RuntimeErrorCode {
7038
7037
  INVALID_INJECTION_TOKEN = 204,
7039
7038
  INJECTOR_ALREADY_DESTROYED = 205,
7040
7039
  PROVIDER_IN_WRONG_CONTEXT = 207,
7040
+ MISSING_INJECTION_TOKEN = 208,
7041
7041
  MULTIPLE_COMPONENTS_MATCH = -300,
7042
7042
  EXPORT_NOT_FOUND = -301,
7043
7043
  PIPE_NOT_FOUND = -302,
@@ -7053,6 +7053,7 @@ declare const enum RuntimeErrorCode {
7053
7053
  ASYNC_INITIALIZERS_STILL_RUNNING = 405,
7054
7054
  APPLICATION_REF_ALREADY_DESTROYED = 406,
7055
7055
  INVALID_I18N_STRUCTURE = 700,
7056
+ MISSING_LOCALE_DATA = 701,
7056
7057
  IMPORT_PROVIDERS_FROM_STANDALONE = 800,
7057
7058
  INVALID_DIFFER_INPUT = 900,
7058
7059
  NO_SUPPORTING_DIFFER_FACTORY = 901,
@@ -7061,7 +7062,9 @@ declare const enum RuntimeErrorCode {
7061
7062
  UNSAFE_VALUE_IN_RESOURCE_URL = 904,
7062
7063
  UNSAFE_VALUE_IN_SCRIPT = 905,
7063
7064
  MISSING_GENERATED_DEF = 906,
7064
- TYPE_IS_NOT_STANDALONE = 907
7065
+ TYPE_IS_NOT_STANDALONE = 907,
7066
+ MISSING_ZONEJS = 908,
7067
+ UNEXPECTED_ZONE_STATE = 909
7065
7068
  }
7066
7069
 
7067
7070
  declare const SANITIZER = 12;
@@ -12750,9 +12753,6 @@ export declare function ɵɵinvalidFactory(): never;
12750
12753
  * Throws an error indicating that a factory function could not be generated by the compiler for a
12751
12754
  * particular class.
12752
12755
  *
12753
- * This instruction allows the actual error message to be optimized away when ngDevMode is turned
12754
- * off, saving bytes of generated code while still providing a good experience in dev mode.
12755
- *
12756
12756
  * The name of the class is not mentioned here, but will be in the generated factory function name
12757
12757
  * and thus in the stack trace.
12758
12758
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "14.0.1",
3
+ "version": "14.0.4",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.1
2
+ * @license Angular v14.0.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/core/schematics/utils/schematics_prompt" />
9
- declare type Inquirer = typeof import('inquirer');
10
- /** Whether prompts are currently supported. */
11
- export declare function supportsPrompt(): boolean;
12
- /**
13
- * Gets the resolved instance of "inquirer" which can be used to programmatically
14
- * create prompts.
15
- */
16
- export declare function getInquirer(): Inquirer;
17
- export {};
@@ -1,45 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- (function (factory) {
9
- if (typeof module === "object" && typeof module.exports === "object") {
10
- var v = factory(require, exports);
11
- if (v !== undefined) module.exports = v;
12
- }
13
- else if (typeof define === "function" && define.amd) {
14
- define("@angular/core/schematics/utils/schematics_prompt", ["require", "exports"], factory);
15
- }
16
- })(function (require, exports) {
17
- "use strict";
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.getInquirer = exports.supportsPrompt = void 0;
20
- let resolvedInquirerModule;
21
- try {
22
- // "inquirer" is the prompt module also used by the devkit schematics CLI
23
- // in order to show prompts for schematics. We transitively depend on this
24
- // module, but don't want to throw an exception if the module is not
25
- // installed for some reason. In that case prompts are just not supported.
26
- resolvedInquirerModule = require('inquirer');
27
- }
28
- catch (e) {
29
- resolvedInquirerModule = null;
30
- }
31
- /** Whether prompts are currently supported. */
32
- function supportsPrompt() {
33
- return !!resolvedInquirerModule && !!process.stdin.isTTY;
34
- }
35
- exports.supportsPrompt = supportsPrompt;
36
- /**
37
- * Gets the resolved instance of "inquirer" which can be used to programmatically
38
- * create prompts.
39
- */
40
- function getInquirer() {
41
- return resolvedInquirerModule;
42
- }
43
- exports.getInquirer = getInquirer;
44
- });
45
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hdGljc19wcm9tcHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlL3NjaGVtYXRpY3MvdXRpbHMvc2NoZW1hdGljc19wcm9tcHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7O0lBSUgsSUFBSSxzQkFBcUMsQ0FBQztJQUUxQyxJQUFJO1FBQ0YseUVBQXlFO1FBQ3pFLDBFQUEwRTtRQUMxRSxvRUFBb0U7UUFDcEUsMEVBQTBFO1FBQzFFLHNCQUFzQixHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztLQUM5QztJQUFDLE9BQU8sQ0FBQyxFQUFFO1FBQ1Ysc0JBQXNCLEdBQUcsSUFBSSxDQUFDO0tBQy9CO0lBRUQsK0NBQStDO0lBQy9DLFNBQWdCLGNBQWM7UUFD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