@absolutejs/absolute 0.19.0-beta.747 → 0.19.0-beta.749

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.
@@ -2,6 +2,7 @@ export type { AngularPageDefinition, AngularPagePropsOf } from '../../types/angu
2
2
  export { ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER, buildAbsoluteHttpTransferCacheOptions } from './httpTransferCache';
3
3
  export { createDeterministicRandom, DETERMINISTIC_NOW, DETERMINISTIC_RANDOM, DETERMINISTIC_SEED, provideDeterministicEnv } from './deterministicEnv';
4
4
  export { defineAngularPage } from './page';
5
+ export { preserveAcrossHmr } from './preserveAcrossHmr';
5
6
  export { Island } from './Island.browser';
6
7
  export { withPendingTask } from './pendingTask';
7
8
  export { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from './requestProviders';
@@ -4,6 +4,7 @@ export { ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER, buildAbsoluteHttpTransferCach
4
4
  export { createDeterministicRandom, DETERMINISTIC_NOW, DETERMINISTIC_RANDOM, DETERMINISTIC_SEED, provideDeterministicEnv } from './deterministicEnv';
5
5
  export { handleAngularPageRequest } from './pageHandler';
6
6
  export { defineAngularPage } from './page';
7
+ export { preserveAcrossHmr } from './preserveAcrossHmr';
7
8
  export { withPendingTask } from './pendingTask';
8
9
  export { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from './requestProviders';
9
10
  export { createTypedIsland } from './createIsland';
@@ -0,0 +1,10 @@
1
+ /** Mark a service instance for state preservation across full Angular HMR
2
+ * re-bootstraps. Call once from the constructor. Safe in production
3
+ * (no-op outside dev mode). */
4
+ export declare const preserveAcrossHmr: (instance: object) => void;
5
+ /** Snapshot every tracked instance's preservable own properties into
6
+ * the cache. Called by the HMR client right before `destroyAngularApp()`.
7
+ * Properties that aren't preservable (Angular-injected services,
8
+ * Subjects, class instances) are skipped — the new instance gets fresh
9
+ * ones from its new injector, just like at first bootstrap. */
10
+ export declare const captureTrackedInstanceStates: () => void;
@@ -74,6 +74,12 @@ declare global {
74
74
  updateCount: number;
75
75
  }
76
76
  >;
77
+ recordPageExports: (
78
+ sourceId: string,
79
+ routes: unknown,
80
+ providers: unknown
81
+ ) => void;
82
+ hasPageExportsChanged: (sourceId: string) => boolean;
77
83
  };
78
84
  __VUE_APP__?:
79
85
  | ({
package/package.json CHANGED
@@ -349,5 +349,5 @@
349
349
  ]
350
350
  }
351
351
  },
352
- "version": "0.19.0-beta.747"
352
+ "version": "0.19.0-beta.749"
353
353
  }