static-injector 6.3.1 → 7.0.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/import/application/application_tokens.d.ts +58 -0
- package/import/application/stability_debug.d.ts +13 -0
- package/import/authoring/output/output_ref.d.ts +37 -0
- package/import/change_detection/scheduling/zoneless_scheduling.d.ts +0 -7
- package/import/core_reactivity_export_internal.d.ts +1 -1
- package/import/defer/idle_service.d.ts +42 -0
- package/import/di/create_injector.d.ts +2 -2
- package/import/di/forward_ref.d.ts +2 -2
- package/import/di/index.d.ts +5 -0
- package/import/di/inject_async.d.ts +91 -0
- package/import/di/injectable.d.ts +7 -1
- package/import/di/injection_token.d.ts +7 -0
- package/import/di/injector.d.ts +1 -1
- package/import/di/injector_compatibility.d.ts +0 -1
- package/import/di/interface/defs.d.ts +2 -2
- package/import/di/interface/provider.d.ts +0 -15
- package/import/document.d.ts +18 -0
- package/import/errors.d.ts +13 -9
- package/import/event_emitter.d.ts +101 -0
- package/import/hydration/cache.d.ts +14 -0
- package/import/index.d.ts +16 -0
- package/import/linker.d.ts +1 -0
- package/import/pending_tasks.d.ts +1 -24
- package/import/pending_tasks_internal.d.ts +31 -0
- package/import/render3/debug/injector_profiler.d.ts +139 -0
- package/import/render3/debug/special_providers.d.ts +17 -0
- package/import/render3/errors_di.d.ts +25 -0
- package/import/render3/reactivity/api.d.ts +15 -0
- package/import/render3/reactivity/asserts.d.ts +1 -0
- package/import/render3/reactivity/effect.d.ts +3 -1
- package/import/render3/reactivity/root_effect_scheduler.d.ts +1 -1
- package/import/render3/reactivity/signal.d.ts +0 -4
- package/import/render3/util/stringify_utils.d.ts +21 -0
- package/import/resource/api.d.ts +101 -15
- package/import/resource/debounce.d.ts +21 -0
- package/import/resource/from_snapshots.d.ts +16 -0
- package/import/resource/index.d.ts +2 -0
- package/import/resource/resource.d.ts +32 -8
- package/import/transfer_state.d.ts +89 -0
- package/import/util/array_utils.d.ts +132 -0
- package/import/util/assert.d.ts +28 -0
- package/import/util/default_export.d.ts +24 -0
- package/import/util/promise_with_resolvers.d.ts +38 -0
- package/import/zone/ng_zone.d.ts +261 -0
- package/index.js +2263 -1224
- package/index.js.map +4 -4
- package/index.mjs +2246 -1218
- package/index.mjs.map +4 -4
- package/package.json +2 -2
- package/primitives/signals/index.d.ts +1 -1
- package/primitives/signals/src/formatter.d.ts +2 -1
- package/primitives/signals/src/graph.d.ts +8 -1
- package/primitives/signals/src/linked_signal.d.ts +1 -1
- package/readme.md +1 -1
- /package/import/{interface → change_detection}/lifecycle_hooks.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "static-injector",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Angular 依赖注入独立版本;Angular dependency injection standalone version",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
7
|
-
"angular
|
|
7
|
+
"angular 22.0.5",
|
|
8
8
|
"injector",
|
|
9
9
|
"typescript",
|
|
10
10
|
"injectable",
|
|
@@ -9,7 +9,7 @@ export { ComputedNode, createComputed } from './src/computed';
|
|
|
9
9
|
export { ComputationFn, LinkedSignalNode, LinkedSignalGetter, PreviousValue, createLinkedSignal, linkedSignalSetFn, linkedSignalUpdateFn } from './src/linked_signal';
|
|
10
10
|
export { ValueEqualityFn, defaultEquals } from './src/equality';
|
|
11
11
|
export { setThrowInvalidWriteToSignalError } from './src/errors';
|
|
12
|
-
export { REACTIVE_NODE, Reactive, ReactiveHookFn, ReactiveNode, SIGNAL, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, finalizeConsumerAfterComputation, getActiveConsumer, isInNotificationPhase, isReactive, producerAccessed, producerIncrementEpoch, producerMarkClean, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, resetConsumerBeforeComputation, runPostProducerCreatedFn, setActiveConsumer, setPostProducerCreatedFn, Version, } from './src/graph';
|
|
12
|
+
export { REACTIVE_NODE, Reactive, ReactiveHookFn, ReactiveNode, ReactiveNodeKind, SIGNAL, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, finalizeConsumerAfterComputation, getActiveConsumer, isInNotificationPhase, isReactive, producerAccessed, producerIncrementEpoch, producerMarkClean, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, resetConsumerBeforeComputation, runPostProducerCreatedFn, setActiveConsumer, setPostProducerCreatedFn, Version, } from './src/graph';
|
|
13
13
|
export { SIGNAL_NODE, SignalGetter, SignalNode, createSignal, runPostSignalSetFn, setPostSignalSetFn, signalGetFn, signalSetFn, signalUpdateFn } from './src/signal';
|
|
14
14
|
export { Watch, WatchCleanupFn, WatchCleanupRegisterFn, createWatch } from './src/watch';
|
|
15
15
|
export { setAlternateWeakRefImpl } from './src/weak_ref';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
declare global {
|
|
9
9
|
var devtoolsFormatters: any[];
|
|
@@ -16,3 +16,4 @@ declare global {
|
|
|
16
16
|
* @see https://firefox-source-docs.mozilla.org/devtools-user/custom_formatters/index.html
|
|
17
17
|
*/
|
|
18
18
|
export declare function installDevToolsSignalFormatter(): void;
|
|
19
|
+
export {};
|
|
@@ -26,11 +26,18 @@ export declare const REACTIVE_NODE: ReactiveNode;
|
|
|
26
26
|
interface ReactiveLink {
|
|
27
27
|
producer: ReactiveNode;
|
|
28
28
|
consumer: ReactiveNode;
|
|
29
|
+
/**
|
|
30
|
+
* Stores the epoch that holds when this link was observed, allowing subsequent observations of the same producer to
|
|
31
|
+
* realize that there's an existing link, avoiding the creation of a new, redundant link. A value of `null` indicates
|
|
32
|
+
* that the link cannot be assumed to be valid based on the epoch counter.
|
|
33
|
+
*/
|
|
34
|
+
knownValidAtEpoch: Version | null;
|
|
29
35
|
lastReadVersion: number;
|
|
30
36
|
prevConsumer: ReactiveLink | undefined;
|
|
31
37
|
nextConsumer: ReactiveLink | undefined;
|
|
32
38
|
nextProducer: ReactiveLink | undefined;
|
|
33
39
|
}
|
|
40
|
+
export type ReactiveNodeKind = 'signal' | 'computed' | 'effect' | 'template' | 'linkedSignal' | 'afterRenderEffectPhase' | 'childSignalProp' | 'unknown';
|
|
34
41
|
/**
|
|
35
42
|
* A producer and/or consumer which participates in the reactive graph.
|
|
36
43
|
*
|
|
@@ -117,7 +124,7 @@ export interface ReactiveNode {
|
|
|
117
124
|
*
|
|
118
125
|
* Used in Angular DevTools to identify the kind of signal.
|
|
119
126
|
*/
|
|
120
|
-
kind:
|
|
127
|
+
kind: ReactiveNodeKind;
|
|
121
128
|
}
|
|
122
129
|
/**
|
|
123
130
|
* Called by implementations when a producer's signal is read.
|
|
@@ -43,4 +43,4 @@ export type LinkedSignalGetter<S, D> = (() => D) & {
|
|
|
43
43
|
export declare function createLinkedSignal<S, D>(sourceFn: () => S, computationFn: ComputationFn<S, D>, equalityFn?: ValueEqualityFn<D>): LinkedSignalGetter<S, D>;
|
|
44
44
|
export declare function linkedSignalSetFn<S, D>(node: LinkedSignalNode<S, D>, newValue: D): void;
|
|
45
45
|
export declare function linkedSignalUpdateFn<S, D>(node: LinkedSignalNode<S, D>, updater: (value: D) => D): void;
|
|
46
|
-
export declare const LINKED_SIGNAL_NODE:
|
|
46
|
+
export declare const LINKED_SIGNAL_NODE: Omit<LinkedSignalNode<unknown, unknown>, 'computation' | 'source' | 'sourceValue'>;
|
package/readme.md
CHANGED
|
File without changes
|