@absolutejs/absolute 0.19.0-beta.981 → 0.19.0-beta.983
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/dist/angular/browser.js +19 -4
- package/dist/angular/browser.js.map +3 -3
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +116 -152
- package/dist/angular/index.js.map +9 -10
- package/dist/angular/server.js +98 -149
- package/dist/angular/server.js.map +8 -9
- package/dist/build.js +494 -696
- package/dist/build.js.map +8 -10
- package/dist/client/index.js +1 -3
- package/dist/client/index.js.map +4 -4
- package/dist/index.js +521 -723
- package/dist/index.js.map +8 -10
- package/dist/islands/index.js +1 -3
- package/dist/islands/index.js.map +4 -4
- package/dist/react/index.js +1 -3
- package/dist/react/index.js.map +4 -4
- package/dist/src/angular/composables/useSubscription.d.ts +9 -3
- package/dist/src/build/runAngularHandlerScan.d.ts +0 -5
- package/dist/svelte/index.js +1 -3
- package/dist/svelte/index.js.map +4 -4
- package/dist/types/angular.d.ts +0 -1
- package/dist/vue/index.js +1 -3
- package/dist/vue/index.js.map +4 -4
- package/package.json +1 -1
- package/dist/src/angular/loadRouteMounts.d.ts +0 -3
- package/dist/src/build/emitAngularProvidersFiles.d.ts +0 -29
- package/dist/src/build/emitAngularRouteMounts.d.ts +0 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
1
2
|
import type { Observable, Subscription } from 'rxjs';
|
|
2
3
|
export type Observer<T> = {
|
|
3
4
|
next?: (value: T) => void;
|
|
@@ -10,11 +11,16 @@ export type Observer<T> = {
|
|
|
10
11
|
* collapsed into one call so consumers can't forget the cleanup
|
|
11
12
|
* operator (the most common Angular memory-leak source).
|
|
12
13
|
*
|
|
13
|
-
*
|
|
14
|
+
* Prefer calling from an injection context (field initializer or
|
|
15
|
+
* constructor). When called outside one — e.g. from `ngOnInit` —
|
|
16
|
+
* pass the host's `DestroyRef` explicitly as the third argument
|
|
17
|
+
* (capture it via `destroyRef = inject(DestroyRef)` in a field
|
|
18
|
+
* initializer once). Otherwise auto-teardown is dropped and the
|
|
19
|
+
* caller owns the returned `Subscription`.
|
|
14
20
|
*
|
|
15
21
|
* Note: this composable handles teardown only — it does not trigger
|
|
16
22
|
* change detection on emissions. If the observer mutates state that
|
|
17
23
|
* drives the template, store that state in a `signal()` so updates
|
|
18
24
|
* propagate in zoneless Angular. */
|
|
19
|
-
export declare function useSubscription<T>(observable: Observable<T>, next: (value: T) => void): Subscription;
|
|
20
|
-
export declare function useSubscription<T>(observable: Observable<T>, observer: Observer<T
|
|
25
|
+
export declare function useSubscription<T>(observable: Observable<T>, next: (value: T) => void, destroyRef?: DestroyRef): Subscription;
|
|
26
|
+
export declare function useSubscription<T>(observable: Observable<T>, observer: Observer<T>, destroyRef?: DestroyRef): Subscription;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { type EmittedProvidersFile } from './emitAngularProvidersFiles';
|
|
2
1
|
import { type AngularHandlerCall } from './scanAngularHandlerCalls';
|
|
3
2
|
import { type AngularPageRoutes } from './scanAngularPageRoutes';
|
|
4
3
|
export type AngularHandlerScanResult = {
|
|
5
4
|
calls: AngularHandlerCall[];
|
|
6
5
|
pageRoutes: AngularPageRoutes[];
|
|
7
|
-
providersFiles: EmittedProvidersFile[];
|
|
8
|
-
/** Set of manifest keys that have a generated providers file the
|
|
9
|
-
* client bundle can import. */
|
|
10
|
-
manifestKeysWithProviders: Set<string>;
|
|
11
6
|
};
|
|
12
7
|
export declare const runAngularHandlerScan: (projectRoot: string, angularDirectory: string) => AngularHandlerScanResult;
|
package/dist/svelte/index.js
CHANGED
|
@@ -2325,7 +2325,6 @@ var initDominoAdapter = (platformServer) => {
|
|
|
2325
2325
|
return {
|
|
2326
2326
|
APP_BASE_HREF: common.APP_BASE_HREF,
|
|
2327
2327
|
bootstrapApplication: platformBrowser.bootstrapApplication,
|
|
2328
|
-
clearResolutionOfComponentResourcesQueue: core.\u{275}clearResolutionOfComponentResourcesQueue,
|
|
2329
2328
|
DomSanitizer: platformBrowser.DomSanitizer,
|
|
2330
2329
|
ENVIRONMENT_INITIALIZER: core.ENVIRONMENT_INITIALIZER,
|
|
2331
2330
|
inject: core.inject,
|
|
@@ -2496,7 +2495,6 @@ var routeContextCache, cacheRouteData = (pagePath, data) => {
|
|
|
2496
2495
|
}
|
|
2497
2496
|
return result;
|
|
2498
2497
|
}, renderAngularApp = async (deps, PageComponent, providers, document2, url = "/") => {
|
|
2499
|
-
deps.clearResolutionOfComponentResourcesQueue();
|
|
2500
2498
|
const bootstrap = (context) => deps.bootstrapApplication(PageComponent, { providers }, context);
|
|
2501
2499
|
return withSuppressedAngularDevLogs(() => deps.renderApplication(bootstrap, {
|
|
2502
2500
|
document: document2,
|
|
@@ -3997,5 +3995,5 @@ export {
|
|
|
3997
3995
|
createTypedIsland
|
|
3998
3996
|
};
|
|
3999
3997
|
|
|
4000
|
-
//# debugId=
|
|
3998
|
+
//# debugId=7667EC6EAC7D4C8564756E2164756E21
|
|
4001
3999
|
//# sourceMappingURL=index.js.map
|