@angular/core 14.1.0-next.0 → 14.1.0-next.3
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/application_ref.mjs +31 -35
- package/esm2020/src/change_detection/differs/default_iterable_differ.mjs +3 -5
- package/esm2020/src/change_detection/differs/default_keyvalue_differ.mjs +3 -5
- package/esm2020/src/change_detection/differs/iterable_differs.mjs +3 -5
- package/esm2020/src/change_detection/differs/keyvalue_differs.mjs +2 -5
- package/esm2020/src/di/injector_compatibility.mjs +6 -16
- package/esm2020/src/di/jit/util.mjs +3 -2
- package/esm2020/src/di/reflective_key.mjs +3 -2
- package/esm2020/src/errors.mjs +1 -1
- package/esm2020/src/i18n/locale_data_api.mjs +3 -2
- package/esm2020/src/render3/component.mjs +3 -2
- package/esm2020/src/render3/features/inherit_definition_feature.mjs +3 -5
- package/esm2020/src/render3/interfaces/renderer.mjs +10 -1
- package/esm2020/src/render3/jit/directive.mjs +20 -3
- package/esm2020/src/render3/jit/module.mjs +2 -1
- package/esm2020/src/render3/ng_module_ref.mjs +10 -2
- package/esm2020/src/render3/view_ref.mjs +3 -5
- package/esm2020/src/sanitization/sanitization.mjs +4 -9
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/src/zone/ng_zone.mjs +5 -4
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/r3_test_bed_compiler.mjs +30 -25
- package/fesm2015/core.mjs +96 -91
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +131 -126
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +96 -91
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +131 -126
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +15 -7
- package/package.json +1 -1
- package/testing/index.d.ts +1 -1
- package/schematics/utils/schematics_prompt.d.ts +0 -17
- package/schematics/utils/schematics_prompt.js +0 -45
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.1.0-next.
|
|
2
|
+
* @license Angular v14.1.0-next.3
|
|
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;
|
|
@@ -1646,10 +1645,18 @@ declare interface CreateComponentOptions {
|
|
|
1646
1645
|
/**
|
|
1647
1646
|
* Create a new environment injector.
|
|
1648
1647
|
*
|
|
1648
|
+
* Learn more about environment injectors in
|
|
1649
|
+
* [this guide](guide/standalone-components#environment-injectors).
|
|
1650
|
+
*
|
|
1651
|
+
* @param providers An array of providers.
|
|
1652
|
+
* @param parent A parent environment injector.
|
|
1653
|
+
* @param debugName An optional name for this injector instance, which will be used in error
|
|
1654
|
+
* messages.
|
|
1655
|
+
*
|
|
1649
1656
|
* @publicApi
|
|
1650
1657
|
* @developerPreview
|
|
1651
1658
|
*/
|
|
1652
|
-
export declare function createEnvironmentInjector(providers: Array<Provider | ImportedNgModuleProviders>, parent
|
|
1659
|
+
export declare function createEnvironmentInjector(providers: Array<Provider | ImportedNgModuleProviders>, parent: EnvironmentInjector, debugName?: string | null): EnvironmentInjector;
|
|
1653
1660
|
|
|
1654
1661
|
/**
|
|
1655
1662
|
* Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
|
|
@@ -7038,6 +7045,7 @@ declare const enum RuntimeErrorCode {
|
|
|
7038
7045
|
INVALID_INJECTION_TOKEN = 204,
|
|
7039
7046
|
INJECTOR_ALREADY_DESTROYED = 205,
|
|
7040
7047
|
PROVIDER_IN_WRONG_CONTEXT = 207,
|
|
7048
|
+
MISSING_INJECTION_TOKEN = 208,
|
|
7041
7049
|
MULTIPLE_COMPONENTS_MATCH = -300,
|
|
7042
7050
|
EXPORT_NOT_FOUND = -301,
|
|
7043
7051
|
PIPE_NOT_FOUND = -302,
|
|
@@ -7053,6 +7061,7 @@ declare const enum RuntimeErrorCode {
|
|
|
7053
7061
|
ASYNC_INITIALIZERS_STILL_RUNNING = 405,
|
|
7054
7062
|
APPLICATION_REF_ALREADY_DESTROYED = 406,
|
|
7055
7063
|
INVALID_I18N_STRUCTURE = 700,
|
|
7064
|
+
MISSING_LOCALE_DATA = 701,
|
|
7056
7065
|
IMPORT_PROVIDERS_FROM_STANDALONE = 800,
|
|
7057
7066
|
INVALID_DIFFER_INPUT = 900,
|
|
7058
7067
|
NO_SUPPORTING_DIFFER_FACTORY = 901,
|
|
@@ -7061,7 +7070,9 @@ declare const enum RuntimeErrorCode {
|
|
|
7061
7070
|
UNSAFE_VALUE_IN_RESOURCE_URL = 904,
|
|
7062
7071
|
UNSAFE_VALUE_IN_SCRIPT = 905,
|
|
7063
7072
|
MISSING_GENERATED_DEF = 906,
|
|
7064
|
-
TYPE_IS_NOT_STANDALONE = 907
|
|
7073
|
+
TYPE_IS_NOT_STANDALONE = 907,
|
|
7074
|
+
MISSING_ZONEJS = 908,
|
|
7075
|
+
UNEXPECTED_ZONE_STATE = 909
|
|
7065
7076
|
}
|
|
7066
7077
|
|
|
7067
7078
|
declare const SANITIZER = 12;
|
|
@@ -12750,9 +12761,6 @@ export declare function ɵɵinvalidFactory(): never;
|
|
|
12750
12761
|
* Throws an error indicating that a factory function could not be generated by the compiler for a
|
|
12751
12762
|
* particular class.
|
|
12752
12763
|
*
|
|
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
12764
|
* The name of the class is not mentioned here, but will be in the generated factory function name
|
|
12757
12765
|
* and thus in the stack trace.
|
|
12758
12766
|
*
|
package/package.json
CHANGED
package/testing/index.d.ts
CHANGED
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hdGljc19wcm9tcHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlL3NjaGVtYXRpY3MvdXRpbHMvc2NoZW1hdGljc19wcm9tcHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7O0lBSUgsSUFBSSxzQkFBcUMsQ0FBQztJQUUxQyxJQUFJO1FBQ0YseUVBQXlFO1FBQ3pFLDBFQUEwRTtRQUMxRSxvRUFBb0U7UUFDcEUsMEVBQTBFO1FBQzFFLHNCQUFzQixHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztLQUM5QztJQUFDLE9BQU8sQ0FBQyxFQUFFO1FBQ1Ysc0JBQXNCLEdBQUcsSUFBSSxDQUFDO0tBQy9CO0lBRUQsK0NBQStDO0lBQy9DLFNBQWdCLGNBQ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