@absolutejs/absolute 0.19.0-beta.1032 → 0.19.0-beta.1034
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.map +5 -5
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/hmrPreserveCore.ts +10 -10
- package/dist/angular/index.js +9 -2
- package/dist/angular/index.js.map +11 -11
- package/dist/angular/server.js +9 -2
- package/dist/angular/server.js.map +7 -7
- package/dist/build.js +11 -4
- package/dist/build.js.map +16 -16
- package/dist/cli/index.js +52 -6
- package/dist/client/index.js +9 -2
- package/dist/client/index.js.map +4 -4
- package/dist/dev/client/handlers/angularHmrShim.ts +1 -1
- package/dist/dev/client/handlers/angularRemount.ts +4 -4
- package/dist/dev/client/handlers/angularRemountWiring.ts +1 -1
- package/dist/dev/client/hmrToast.ts +2 -2
- package/dist/index.js +11 -4
- package/dist/index.js.map +18 -18
- package/dist/islands/index.js +9 -2
- package/dist/islands/index.js.map +4 -4
- package/dist/react/index.js +9 -2
- package/dist/react/index.js.map +5 -5
- package/dist/react/server.js.map +2 -2
- package/dist/src/angular/hmrPreserveCore.d.ts +1 -1
- package/dist/src/angular/ssrRender.d.ts +4 -1
- package/dist/src/cli/instanceStatus.d.ts +1 -0
- package/dist/src/core/build.d.ts +1 -1
- package/dist/src/utils/formatBytes.d.ts +2 -0
- package/dist/src/utils/resolveDevPort.d.ts +4 -1
- package/dist/svelte/index.js +9 -2
- package/dist/svelte/index.js.map +6 -6
- package/dist/svelte/router/prefetchCache.ts +5 -1
- package/dist/svelte/server.js.map +3 -3
- package/dist/types/cli.d.ts +2 -0
- package/dist/vue/index.js +9 -2
- package/dist/vue/index.js.map +8 -8
- package/dist/vue/server.js.map +5 -5
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-WCdV3V/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-WCdV3V/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-WCdV3V/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
|
@@ -27,14 +27,14 @@ type PreserveScope = typeof globalThis & {
|
|
|
27
27
|
export const buildCacheKey = (
|
|
28
28
|
instance: object,
|
|
29
29
|
key?: unknown
|
|
30
|
-
)
|
|
30
|
+
) => {
|
|
31
31
|
const className = instance.constructor?.name;
|
|
32
32
|
if (!className || className === 'Object') return null;
|
|
33
33
|
const suffix = key === undefined || key === null ? '' : String(key);
|
|
34
34
|
|
|
35
35
|
return `${className}:${suffix}`;
|
|
36
36
|
};
|
|
37
|
-
export const captureTrackedInstanceStates = ()
|
|
37
|
+
export const captureTrackedInstanceStates = () => {
|
|
38
38
|
if (!isHmrPreserveDev()) return;
|
|
39
39
|
|
|
40
40
|
const cache = getCache();
|
|
@@ -87,7 +87,7 @@ export const captureTrackedInstanceStates = (): void => {
|
|
|
87
87
|
|
|
88
88
|
getRebootFlag().value = true;
|
|
89
89
|
};
|
|
90
|
-
export const endHmrReboot = ()
|
|
90
|
+
export const endHmrReboot = () => {
|
|
91
91
|
if (!isHmrPreserveDev()) return;
|
|
92
92
|
getRebootFlag().value = false;
|
|
93
93
|
|
|
@@ -103,22 +103,22 @@ export const endHmrReboot = (): void => {
|
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
|
-
export const getCache = ()
|
|
106
|
+
export const getCache = () => {
|
|
107
107
|
const scope = globalThis as PreserveScope;
|
|
108
108
|
|
|
109
109
|
return (scope.__ABS_HMR_INSTANCE_STATE__ ??= new Map());
|
|
110
110
|
};
|
|
111
|
-
export const getKeyMap = ()
|
|
111
|
+
export const getKeyMap = () => {
|
|
112
112
|
const scope = globalThis as PreserveScope;
|
|
113
113
|
|
|
114
114
|
return (scope.__ABS_HMR_INSTANCE_KEYS__ ??= new WeakMap());
|
|
115
115
|
};
|
|
116
|
-
export const getRebootFlag = ()
|
|
116
|
+
export const getRebootFlag = () => {
|
|
117
117
|
const scope = globalThis as PreserveScope;
|
|
118
118
|
|
|
119
119
|
return (scope.__ABS_HMR_REBOOT_IN_PROGRESS__ ??= { value: false });
|
|
120
120
|
};
|
|
121
|
-
export const getRebootStats = ()
|
|
121
|
+
export const getRebootStats = () => {
|
|
122
122
|
const scope = globalThis as PreserveScope;
|
|
123
123
|
|
|
124
124
|
return (scope.__ABS_HMR_REBOOT_STATS__ ??= {
|
|
@@ -126,12 +126,12 @@ export const getRebootStats = (): RebootStats => {
|
|
|
126
126
|
restoredKeys: new Set()
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
|
-
export const getTracker = ()
|
|
129
|
+
export const getTracker = () => {
|
|
130
130
|
const scope = globalThis as PreserveScope;
|
|
131
131
|
|
|
132
132
|
return (scope.__ABS_HMR_TRACKED_INSTANCES__ ??= new Set());
|
|
133
133
|
};
|
|
134
|
-
export const isHmrPreserveDev = ()
|
|
134
|
+
export const isHmrPreserveDev = () => {
|
|
135
135
|
// SSR safety: globalThis on the server is process-wide and shared
|
|
136
136
|
// across requests, so writing to the preservation cache during SSR
|
|
137
137
|
// would leak request state between users. Gate strictly on the
|
|
@@ -169,7 +169,7 @@ export const isPreservable = (value: unknown, depth = 0): boolean => {
|
|
|
169
169
|
export const restoreFromCacheCore = (
|
|
170
170
|
instance: object,
|
|
171
171
|
key: string
|
|
172
|
-
)
|
|
172
|
+
) => {
|
|
173
173
|
const cache = getCache();
|
|
174
174
|
const stored = cache.get(key);
|
|
175
175
|
if (!stored) return false;
|
package/dist/angular/index.js
CHANGED
|
@@ -389,7 +389,14 @@ var ensureHead = (doc) => {
|
|
|
389
389
|
}
|
|
390
390
|
try {
|
|
391
391
|
const adapter = new \u{275}DominoAdapter;
|
|
392
|
-
const
|
|
392
|
+
const resolveSeedDoc = () => {
|
|
393
|
+
if (typeof adapter.createHtmlDocument === "function")
|
|
394
|
+
return adapter.createHtmlDocument();
|
|
395
|
+
if (typeof adapter.getDefaultDocument === "function")
|
|
396
|
+
return adapter.getDefaultDocument();
|
|
397
|
+
return null;
|
|
398
|
+
};
|
|
399
|
+
const seedDoc = resolveSeedDoc();
|
|
393
400
|
if (seedDoc) {
|
|
394
401
|
patchElementLayout(seedDoc);
|
|
395
402
|
const probe = seedDoc.createElement("div");
|
|
@@ -15782,5 +15789,5 @@ export {
|
|
|
15782
15789
|
ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
|
|
15783
15790
|
};
|
|
15784
15791
|
|
|
15785
|
-
//# debugId=
|
|
15792
|
+
//# debugId=D5F930DBBF98442E64756E2164756E21
|
|
15786
15793
|
//# sourceMappingURL=index.js.map
|