@angular/core 17.2.2 → 17.2.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/esm2022/src/application/application_ref.mjs +18 -5
- package/esm2022/src/cached_injector_service.mjs +49 -0
- package/esm2022/src/core_private_export.mjs +2 -1
- package/esm2022/src/defer/instructions.mjs +29 -3
- package/esm2022/src/defer/interfaces.mjs +1 -1
- package/esm2022/src/render3/after_render_hooks.mjs +8 -5
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/queue_state_update.mjs +41 -0
- package/esm2022/src/render3/reactivity/computed.mjs +3 -1
- package/esm2022/src/render3/reactivity/effect.mjs +3 -1
- package/esm2022/src/render3/reactivity/signal.mjs +3 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +218 -105
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +32 -3
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +1 -1
- package/schematics/migrations/block-template-entities/bundle.js.map +1 -1
- package/schematics/ng-generate/control-flow-migration/bundle.js +3 -3
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +2941 -2853
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.2.
|
|
2
|
+
* @license Angular v17.2.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -5695,6 +5695,12 @@ declare interface InternalAfterNextRenderOptions {
|
|
|
5695
5695
|
* If this is not provided, the current injection context will be used instead (via `inject`).
|
|
5696
5696
|
*/
|
|
5697
5697
|
injector?: Injector;
|
|
5698
|
+
/**
|
|
5699
|
+
* When true, the hook will execute both on client and on the server.
|
|
5700
|
+
*
|
|
5701
|
+
* When false or undefined, the hook only executes in the browser.
|
|
5702
|
+
*/
|
|
5703
|
+
runOnServer?: boolean;
|
|
5698
5704
|
}
|
|
5699
5705
|
|
|
5700
5706
|
/**
|
|
@@ -9208,6 +9214,11 @@ declare interface TDeferBlockDetails {
|
|
|
9208
9214
|
* which all await the same set of dependencies.
|
|
9209
9215
|
*/
|
|
9210
9216
|
loadingPromise: Promise<unknown> | null;
|
|
9217
|
+
/**
|
|
9218
|
+
* List of providers collected from all NgModules that were imported by
|
|
9219
|
+
* standalone components used within this defer block.
|
|
9220
|
+
*/
|
|
9221
|
+
providers: Provider[] | null;
|
|
9211
9222
|
}
|
|
9212
9223
|
|
|
9213
9224
|
/** Static data for an <ng-container> */
|
|
@@ -11360,7 +11371,7 @@ export declare interface WritableSignal<T> extends Signal<T> {
|
|
|
11360
11371
|
update(updateFn: (value: T) => T): void;
|
|
11361
11372
|
/**
|
|
11362
11373
|
* Returns a readonly version of this signal. Readonly signals can be accessed to read their value
|
|
11363
|
-
* but can't be changed using set
|
|
11374
|
+
* but can't be changed using set or update methods. The readonly signals do _not_ have
|
|
11364
11375
|
* any built-in mechanism that would prevent deep-mutation of their value.
|
|
11365
11376
|
*/
|
|
11366
11377
|
asReadonly(): Signal<T>;
|
|
@@ -11381,9 +11392,10 @@ export declare function ɵ_sanitizeUrl(url: string): string;
|
|
|
11381
11392
|
*/
|
|
11382
11393
|
export declare class ɵAfterRenderEventManager {
|
|
11383
11394
|
/**
|
|
11384
|
-
* Executes
|
|
11395
|
+
* Executes internal and user-provided callbacks.
|
|
11385
11396
|
*/
|
|
11386
11397
|
execute(): void;
|
|
11398
|
+
executeInternalCallbacks(): void;
|
|
11387
11399
|
ngOnDestroy(): void;
|
|
11388
11400
|
/** @nocollapse */
|
|
11389
11401
|
static ɵprov: unknown;
|
|
@@ -12878,6 +12890,23 @@ export declare interface ɵProviderRecord {
|
|
|
12878
12890
|
|
|
12879
12891
|
export declare function ɵprovideZonelessChangeDetection(): EnvironmentProviders;
|
|
12880
12892
|
|
|
12893
|
+
/**
|
|
12894
|
+
* Queue a state update to be performed asynchronously.
|
|
12895
|
+
*
|
|
12896
|
+
* This is useful to safely update application state that is used in an expression that was already
|
|
12897
|
+
* checked during change detection. This defers the update until later and prevents
|
|
12898
|
+
* `ExpressionChangedAfterItHasBeenChecked` errors. Using signals for state is recommended instead,
|
|
12899
|
+
* but it's not always immediately possible to change the state to a signal because it would be a
|
|
12900
|
+
* breaking change. When the callback updates state used in an expression, this needs to be
|
|
12901
|
+
* accompanied by an explicit notification to the framework that something has changed (i.e.
|
|
12902
|
+
* updating a signal or calling `ChangeDetectorRef.markForCheck()`) or may still cause
|
|
12903
|
+
* `ExpressionChangedAfterItHasBeenChecked` in dev mode or fail to synchronize the state to the DOM
|
|
12904
|
+
* in production.
|
|
12905
|
+
*/
|
|
12906
|
+
export declare function ɵqueueStateUpdate(callback: VoidFunction, options?: {
|
|
12907
|
+
injector?: Injector;
|
|
12908
|
+
}): void;
|
|
12909
|
+
|
|
12881
12910
|
export declare function ɵreadHydrationInfo(node: RNode): ɵHydrationInfo | null;
|
|
12882
12911
|
|
|
12883
12912
|
export declare class ɵReflectionCapabilities implements PlatformReflectionCapabilities {
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -26070,7 +26070,7 @@ function publishFacade(global) {
|
|
|
26070
26070
|
}
|
|
26071
26071
|
|
|
26072
26072
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
26073
|
-
var VERSION2 = new Version("17.2.
|
|
26073
|
+
var VERSION2 = new Version("17.2.3");
|
|
26074
26074
|
|
|
26075
26075
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
26076
26076
|
var _VisitorMode;
|