@angular/core 19.0.0-next.9 → 19.0.0-rc.1
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/fesm2022/core.mjs +21183 -19410
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +71 -47
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +8 -6
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +90 -10
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +174 -113
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +524 -92
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +7 -4
- package/primitives/signals/index.d.ts +3 -1
- package/rxjs-interop/index.d.ts +35 -4
- package/schematics/bundles/{checker-3b2ea20f.js → checker-9ca42e51.js} +2303 -1006
- package/schematics/bundles/combine_units-a16385aa.js +1634 -0
- package/schematics/bundles/{compiler_host-b4ba5a28.js → compiler_host-31afa4ed.js} +8 -5
- package/schematics/bundles/control-flow-migration.js +3 -3
- package/schematics/bundles/explicit-standalone-flag.js +29 -9
- package/schematics/bundles/imports-4ac08251.js +1 -1
- package/schematics/bundles/inject-migration.js +222 -54
- package/schematics/bundles/leading_space-d190b83b.js +1 -1
- package/schematics/bundles/migrate_ts_type_references-b2a28742.js +1463 -0
- package/schematics/bundles/nodes-0e7d45ca.js +1 -1
- package/schematics/bundles/output-migration.js +575 -0
- package/schematics/bundles/pending-tasks.js +3 -3
- package/schematics/bundles/{program-6534a30a.js → program-71beec0b.js} +1385 -460
- package/schematics/bundles/project_tsconfig_paths-e9ccccbf.js +1 -1
- package/schematics/bundles/provide-initializer.js +179 -0
- package/schematics/bundles/route-lazy-loading.js +9 -4
- package/schematics/bundles/signal-input-migration.js +183 -311
- package/schematics/bundles/signal-queries-migration.js +404 -146
- package/schematics/bundles/signals.js +54 -0
- package/schematics/bundles/standalone-migration.js +29 -12
- package/schematics/collection.json +11 -0
- package/schematics/migrations.json +7 -1
- package/schematics/ng-generate/output-migration/schema.json +19 -0
- package/schematics/ng-generate/signal-queries-migration/schema.json +11 -0
- package/schematics/ng-generate/signals/schema.json +65 -0
- package/testing/index.d.ts +1 -1
- package/schematics/bundles/group_replacements-e1b5cbf8.js +0 -31571
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.0-
|
|
2
|
+
* @license Angular v19.0.0-rc.1
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -155,8 +155,11 @@ export declare class EventContract implements UnrenamedEventContract {
|
|
|
155
155
|
* to subscribe to jsaction="transitionEnd:foo" while the underlying
|
|
156
156
|
* event is webkitTransitionEnd in one browser and mozTransitionEnd
|
|
157
157
|
* in another.
|
|
158
|
+
*
|
|
159
|
+
* @param passive A boolean value that, if `true`, indicates that the event
|
|
160
|
+
* handler will never call `preventDefault()`.
|
|
158
161
|
*/
|
|
159
|
-
addEvent(eventType: string, prefixedEventType?: string): void;
|
|
162
|
+
addEvent(eventType: string, prefixedEventType?: string, passive?: boolean): void;
|
|
160
163
|
/**
|
|
161
164
|
* Gets the queued early events and replay them using the appropriate handler
|
|
162
165
|
* in the provided event contract. Once all the events are replayed, it cleans
|
|
@@ -223,7 +226,7 @@ export declare class EventContractContainer implements EventContractContainerMan
|
|
|
223
226
|
* and maintains a reference to resulting handler in order to remove it
|
|
224
227
|
* later if desired.
|
|
225
228
|
*/
|
|
226
|
-
addEventListener(eventType: string, getHandler: (element: Element) => (event: Event) => void): void;
|
|
229
|
+
addEventListener(eventType: string, getHandler: (element: Element) => (event: Event) => void, passive?: boolean): void;
|
|
227
230
|
/**
|
|
228
231
|
* Removes all the handlers installed on this container.
|
|
229
232
|
*/
|
|
@@ -236,7 +239,7 @@ export declare class EventContractContainer implements EventContractContainerMan
|
|
|
236
239
|
* containers.
|
|
237
240
|
*/
|
|
238
241
|
declare interface EventContractContainerManager {
|
|
239
|
-
addEventListener(eventType: string, getHandler: (element: Element) => (event: Event) => void): void;
|
|
242
|
+
addEventListener(eventType: string, getHandler: (element: Element) => (event: Event) => void, passive?: boolean): void;
|
|
240
243
|
cleanUp(): void;
|
|
241
244
|
}
|
|
242
245
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.0-
|
|
2
|
+
* @license Angular v19.0.0-rc.1
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -96,6 +96,8 @@ export declare function producerAccessed(node: ReactiveNode): void;
|
|
|
96
96
|
*/
|
|
97
97
|
export declare function producerIncrementEpoch(): void;
|
|
98
98
|
|
|
99
|
+
export declare function producerMarkClean(node: ReactiveNode): void;
|
|
100
|
+
|
|
99
101
|
/**
|
|
100
102
|
* Propagate a dirty notification to live consumers of this producer.
|
|
101
103
|
*/
|
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.0-
|
|
2
|
+
* @license Angular v19.0.0-rc.1
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -11,6 +11,9 @@ import { MonoTypeOperatorFunction } from 'rxjs';
|
|
|
11
11
|
import { Observable } from 'rxjs';
|
|
12
12
|
import { OutputOptions } from '@angular/core';
|
|
13
13
|
import { OutputRef } from '@angular/core';
|
|
14
|
+
import { ResourceLoaderParams } from '@angular/core';
|
|
15
|
+
import { ResourceOptions } from '@angular/core';
|
|
16
|
+
import { ResourceRef } from '@angular/core';
|
|
14
17
|
import { Signal } from '@angular/core';
|
|
15
18
|
import { Subscribable } from 'rxjs';
|
|
16
19
|
import { ValueEqualityFn } from '@angular/core/primitives/signals';
|
|
@@ -37,7 +40,7 @@ import { ValueEqualityFn } from '@angular/core/primitives/signals';
|
|
|
37
40
|
* }
|
|
38
41
|
* ```
|
|
39
42
|
*
|
|
40
|
-
* @
|
|
43
|
+
* @publicApi
|
|
41
44
|
*/
|
|
42
45
|
export declare function outputFromObservable<T>(observable: Observable<T>, opts?: OutputOptions): OutputRef<T>;
|
|
43
46
|
|
|
@@ -47,10 +50,38 @@ export declare function outputFromObservable<T>(observable: Observable<T>, opts?
|
|
|
47
50
|
*
|
|
48
51
|
* You can subscribe to the output via `Observable.subscribe` then.
|
|
49
52
|
*
|
|
50
|
-
* @
|
|
53
|
+
* @publicApi
|
|
51
54
|
*/
|
|
52
55
|
export declare function outputToObservable<T>(ref: OutputRef<T>): Observable<T>;
|
|
53
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Operator which makes the application unstable until the observable emits, complets, errors, or is unsubscribed.
|
|
59
|
+
*
|
|
60
|
+
* Use this operator in observables whose subscriptions are important for rendering and should be included in SSR serialization.
|
|
61
|
+
*
|
|
62
|
+
* @param injector The `Injector` to use during creation. If this is not provided, the current injection context will be used instead (via `inject`).
|
|
63
|
+
*
|
|
64
|
+
* @experimental
|
|
65
|
+
*/
|
|
66
|
+
export declare function pendingUntilEvent<T>(injector?: Injector): MonoTypeOperatorFunction<T>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Like `resource` but uses an RxJS based `loader` which maps the request to an `Observable` of the
|
|
70
|
+
* resource's value. Like `firstValueFrom`, only the first emission of the Observable is considered.
|
|
71
|
+
*
|
|
72
|
+
* @experimental
|
|
73
|
+
*/
|
|
74
|
+
export declare function rxResource<T, R>(opts: RxResourceOptions<T, R>): ResourceRef<T>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Like `ResourceOptions` but uses an RxJS-based `loader`.
|
|
78
|
+
*
|
|
79
|
+
* @experimental
|
|
80
|
+
*/
|
|
81
|
+
export declare interface RxResourceOptions<T, R> extends Omit<ResourceOptions<T, R>, 'loader'> {
|
|
82
|
+
loader: (params: ResourceLoaderParams<R>) => Observable<T>;
|
|
83
|
+
}
|
|
84
|
+
|
|
54
85
|
/**
|
|
55
86
|
* Operator which completes the Observable when the calling context (component, directive, service,
|
|
56
87
|
* etc) is destroyed.
|
|
@@ -59,7 +90,7 @@ export declare function outputToObservable<T>(ref: OutputRef<T>): Observable<T>;
|
|
|
59
90
|
* passed explicitly to use `takeUntilDestroyed` outside of an [injection
|
|
60
91
|
* context](guide/di/dependency-injection-context). Otherwise, the current `DestroyRef` is injected.
|
|
61
92
|
*
|
|
62
|
-
* @
|
|
93
|
+
* @publicApi
|
|
63
94
|
*/
|
|
64
95
|
export declare function takeUntilDestroyed<T>(destroyRef?: DestroyRef): MonoTypeOperatorFunction<T>;
|
|
65
96
|
|