@angular/core 16.1.7 → 16.1.8
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/esm2022/src/di/create_injector.mjs +1 -3
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/render3/component_ref.mjs +1 -8
- package/esm2022/src/util/coercion.mjs +11 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +16 -14
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +6 -14
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +22 -8
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +358 -357
- package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2022/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.1.
|
|
2
|
+
* @license Angular v16.1.8
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -9055,12 +9055,12 @@ const CIRCULAR = {};
|
|
|
9055
9055
|
/**
|
|
9056
9056
|
* A lazily initialized NullInjector.
|
|
9057
9057
|
*/
|
|
9058
|
-
let NULL_INJECTOR
|
|
9058
|
+
let NULL_INJECTOR = undefined;
|
|
9059
9059
|
function getNullInjector() {
|
|
9060
|
-
if (NULL_INJECTOR
|
|
9061
|
-
NULL_INJECTOR
|
|
9060
|
+
if (NULL_INJECTOR === undefined) {
|
|
9061
|
+
NULL_INJECTOR = new NullInjector();
|
|
9062
9062
|
}
|
|
9063
|
-
return NULL_INJECTOR
|
|
9063
|
+
return NULL_INJECTOR;
|
|
9064
9064
|
}
|
|
9065
9065
|
/**
|
|
9066
9066
|
* An `Injector` that's part of the environment injector hierarchy, which exists outside of the
|
|
@@ -10100,7 +10100,7 @@ class Version {
|
|
|
10100
10100
|
/**
|
|
10101
10101
|
* @publicApi
|
|
10102
10102
|
*/
|
|
10103
|
-
const VERSION = new Version('16.1.
|
|
10103
|
+
const VERSION = new Version('16.1.8');
|
|
10104
10104
|
|
|
10105
10105
|
// This default value is when checking the hierarchy for a token.
|
|
10106
10106
|
//
|
|
@@ -10673,8 +10673,6 @@ const Injectable = makeDecorator('Injectable', undefined, undefined, undefined,
|
|
|
10673
10673
|
|
|
10674
10674
|
/**
|
|
10675
10675
|
* Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.
|
|
10676
|
-
*
|
|
10677
|
-
* @publicApi
|
|
10678
10676
|
*/
|
|
10679
10677
|
function createInjector(defType, parent = null, additionalProviders = null, name) {
|
|
10680
10678
|
const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);
|
|
@@ -13183,12 +13181,6 @@ class ComponentRef extends ComponentRef$1 {
|
|
|
13183
13181
|
this.hostView.onDestroy(callback);
|
|
13184
13182
|
}
|
|
13185
13183
|
}
|
|
13186
|
-
// TODO: A hack to not pull in the NullInjector from @angular/core.
|
|
13187
|
-
const NULL_INJECTOR = {
|
|
13188
|
-
get: (token, notFoundValue) => {
|
|
13189
|
-
throwProviderNotFoundError(token, 'NullInjector');
|
|
13190
|
-
}
|
|
13191
|
-
};
|
|
13192
13184
|
/** Creates a TNode that can be used to instantiate a root component. */
|
|
13193
13185
|
function createRootComponentTNode(lView, rNode) {
|
|
13194
13186
|
const tView = lView[TVIEW];
|
|
@@ -30133,6 +30125,11 @@ function logWarningOnStableTimedout(time, console) {
|
|
|
30133
30125
|
/**
|
|
30134
30126
|
* Transforms a value (typically a string) to a boolean.
|
|
30135
30127
|
* Intended to be used as a transform function of an input.
|
|
30128
|
+
*
|
|
30129
|
+
* @usageNotes
|
|
30130
|
+
* ```typescript
|
|
30131
|
+
* @Input({ transform: booleanAttribute }) status!: boolean;
|
|
30132
|
+
* ```
|
|
30136
30133
|
* @param value Value to be transformed.
|
|
30137
30134
|
*
|
|
30138
30135
|
* @publicApi
|
|
@@ -30146,6 +30143,11 @@ function booleanAttribute(value) {
|
|
|
30146
30143
|
* @param value Value to be transformed.
|
|
30147
30144
|
* @param fallbackValue Value to use if the provided value can't be parsed as a number.
|
|
30148
30145
|
*
|
|
30146
|
+
* @usageNotes
|
|
30147
|
+
* ```typescript
|
|
30148
|
+
* @Input({ transform: numberAttribute }) id!: number;
|
|
30149
|
+
* ```
|
|
30150
|
+
*
|
|
30149
30151
|
* @publicApi
|
|
30150
30152
|
*/
|
|
30151
30153
|
function numberAttribute(value, fallbackValue = NaN) {
|