@angular/core 19.0.0-next.8 → 19.0.0-rc.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.
Files changed (42) hide show
  1. package/fesm2022/core.mjs +21591 -19590
  2. package/fesm2022/core.mjs.map +1 -1
  3. package/fesm2022/primitives/event-dispatch.mjs +71 -47
  4. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  5. package/fesm2022/primitives/signals.mjs +8 -6
  6. package/fesm2022/primitives/signals.mjs.map +1 -1
  7. package/fesm2022/rxjs-interop.mjs +90 -10
  8. package/fesm2022/rxjs-interop.mjs.map +1 -1
  9. package/fesm2022/testing.mjs +177 -114
  10. package/fesm2022/testing.mjs.map +1 -1
  11. package/index.d.ts +591 -101
  12. package/package.json +1 -1
  13. package/primitives/event-dispatch/index.d.ts +7 -4
  14. package/primitives/signals/index.d.ts +7 -1
  15. package/rxjs-interop/index.d.ts +35 -4
  16. package/schematics/bundles/{checker-e68dd7ce.js → checker-2451e7c5.js} +2464 -1132
  17. package/schematics/bundles/{group_replacements-472b2387.js → combine_units-c52492ab.js} +1964 -2207
  18. package/schematics/bundles/{compiler_host-9a4d0c2b.js → compiler_host-f54f8309.js} +2 -2
  19. package/schematics/bundles/control-flow-migration.js +3 -3
  20. package/schematics/bundles/explicit-standalone-flag.js +31 -11
  21. package/schematics/bundles/{imports-4ac08251.js → imports-44987700.js} +1 -1
  22. package/schematics/bundles/inject-migration.js +122 -48
  23. package/schematics/bundles/{leading_space-d190b83b.js → leading_space-6e7a8ec6.js} +1 -1
  24. package/schematics/bundles/migrate_ts_type_references-ab18a7c3.js +1463 -0
  25. package/schematics/bundles/{nodes-0e7d45ca.js → ng_decorators-3ad437d2.js} +2 -15
  26. package/schematics/bundles/nodes-ffdce442.js +27 -0
  27. package/schematics/bundles/output-migration.js +7450 -0
  28. package/schematics/bundles/pending-tasks.js +5 -5
  29. package/schematics/bundles/{program-105283c5.js → program-58424797.js} +1359 -455
  30. package/schematics/bundles/{project_tsconfig_paths-e9ccccbf.js → project_tsconfig_paths-6c9cde78.js} +1 -1
  31. package/schematics/bundles/provide-initializer.js +190 -0
  32. package/schematics/bundles/route-lazy-loading.js +4 -4
  33. package/schematics/bundles/signal-input-migration.js +197 -349
  34. package/schematics/bundles/signal-queries-migration.js +462 -185
  35. package/schematics/bundles/signals.js +54 -0
  36. package/schematics/bundles/standalone-migration.js +38 -20
  37. package/schematics/collection.json +11 -0
  38. package/schematics/migrations.json +7 -1
  39. package/schematics/ng-generate/output-migration/schema.json +19 -0
  40. package/schematics/ng-generate/signal-queries-migration/schema.json +11 -0
  41. package/schematics/ng-generate/signals/schema.json +65 -0
  42. package/testing/index.d.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "19.0.0-next.8",
3
+ "version": "19.0.0-rc.0",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.8
2
+ * @license Angular v19.0.0-rc.0
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-next.8
2
+ * @license Angular v19.0.0-rc.0
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
  */
@@ -213,6 +215,10 @@ export declare interface ReactiveNode {
213
215
  * Called when a signal is read within this consumer.
214
216
  */
215
217
  consumerOnSignalRead(node: unknown): void;
218
+ /**
219
+ * A debug name for the reactive node. Used in Angular DevTools to identify the node.
220
+ */
221
+ debugName?: string;
216
222
  }
217
223
 
218
224
  export declare function runPostSignalSetFn(): void;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.8
2
+ * @license Angular v19.0.0-rc.0
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
- * @developerPreview
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
- * @developerPreview
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
- * @developerPreview
93
+ * @publicApi
63
94
  */
64
95
  export declare function takeUntilDestroyed<T>(destroyRef?: DestroyRef): MonoTypeOperatorFunction<T>;
65
96