@absolutejs/absolute 0.19.0-beta.849 → 0.19.0-beta.850
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/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +26 -4
- package/dist/build.js.map +5 -5
- package/dist/index.js +26 -4
- package/dist/index.js.map +5 -5
- package/dist/react/browser.js +19 -2
- package/dist/react/browser.js.map +3 -3
- package/dist/react/index.js +19 -2
- package/dist/react/index.js.map +3 -3
- package/dist/src/dev/clientManager.d.ts +1 -0
- package/dist/src/react/UniversalRouter.d.ts +1 -30
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-ZJL7JH/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-ZJL7JH/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-ZJL7JH/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";
|
package/dist/build.js
CHANGED
|
@@ -16452,7 +16452,7 @@ var init_ssrCache = __esm(() => {
|
|
|
16452
16452
|
import { readFileSync as readFileSync16 } from "fs";
|
|
16453
16453
|
import { basename as basename10 } from "path";
|
|
16454
16454
|
import * as ts3 from "typescript";
|
|
16455
|
-
var TYPE_PRIORITY, STYLE_EXT_RE, COMPONENT_STYLE_RE, TEMPLATE_RE, COMPONENT_CLASS_RE, SERVICE_RE, ROUTES_RE, SIDE_EFFECT_CALL_NAMES, SIDE_EFFECT_NEW_NAMES, getCalleeName = (node) => {
|
|
16455
|
+
var TYPE_PRIORITY, STYLE_EXT_RE, COMPONENT_STYLE_RE, TEMPLATE_RE, COMPONENT_CLASS_RE, SERVICE_RE, ROUTES_RE, PAGE_TS_RE, SIDE_EFFECT_CALL_NAMES, SIDE_EFFECT_NEW_NAMES, getCalleeName = (node) => {
|
|
16456
16456
|
const callee = node.expression;
|
|
16457
16457
|
if (ts3.isIdentifier(callee))
|
|
16458
16458
|
return callee.text;
|
|
@@ -16622,6 +16622,13 @@ var TYPE_PRIORITY, STYLE_EXT_RE, COMPONENT_STYLE_RE, TEMPLATE_RE, COMPONENT_CLAS
|
|
|
16622
16622
|
sourceFile: file4
|
|
16623
16623
|
};
|
|
16624
16624
|
}
|
|
16625
|
+
if (PAGE_TS_RE.test(file4)) {
|
|
16626
|
+
return {
|
|
16627
|
+
type: "class-component",
|
|
16628
|
+
reason: `${base} \u2014 page component edit`,
|
|
16629
|
+
sourceFile: file4
|
|
16630
|
+
};
|
|
16631
|
+
}
|
|
16625
16632
|
return {
|
|
16626
16633
|
type: "reboot",
|
|
16627
16634
|
reason: `${base} \u2014 unrecognized angular file type, falling back to reboot`,
|
|
@@ -16660,6 +16667,7 @@ var init_editTypeDetection = __esm(() => {
|
|
|
16660
16667
|
COMPONENT_CLASS_RE = /\.component\.ts$/i;
|
|
16661
16668
|
SERVICE_RE = /\.service\.ts$/i;
|
|
16662
16669
|
ROUTES_RE = /(?:^|[\\/])(?:app\.)?routes\.ts$/i;
|
|
16670
|
+
PAGE_TS_RE = /(?:^|[\\/])pages[\\/][^\\/]+\.ts$/i;
|
|
16663
16671
|
SIDE_EFFECT_CALL_NAMES = new Set([
|
|
16664
16672
|
"subscribe",
|
|
16665
16673
|
"setInterval",
|
|
@@ -17933,6 +17941,13 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
17933
17941
|
const DEBOUNCE_MS = config.options?.hmr?.debounceMs ?? DEFAULT_DEBOUNCE_MS;
|
|
17934
17942
|
state.rebuildTimeout = setTimeout(async () => {
|
|
17935
17943
|
await waitForStableWrites(state);
|
|
17944
|
+
const userEditedFiles = new Set;
|
|
17945
|
+
state.fileChangeQueue.forEach((filePaths) => {
|
|
17946
|
+
for (const filePath2 of filePaths) {
|
|
17947
|
+
userEditedFiles.add(resolve31(filePath2));
|
|
17948
|
+
}
|
|
17949
|
+
});
|
|
17950
|
+
state.lastUserEditedFiles = userEditedFiles;
|
|
17936
17951
|
const filesToProcess = buildFilesToProcess(state);
|
|
17937
17952
|
state.fileChangeQueue.clear();
|
|
17938
17953
|
if (filesToProcess.size === 0) {
|
|
@@ -18048,6 +18063,11 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
18048
18063
|
const clientManifest = generateManifest2(clientResult.outputs, buildDir);
|
|
18049
18064
|
Object.assign(state.manifest, clientManifest);
|
|
18050
18065
|
await populateAssetStore(state.assetStore, clientManifest, buildDir);
|
|
18066
|
+
}, filterToUserEdits = (candidates, userEditedFiles) => {
|
|
18067
|
+
if (!userEditedFiles || userEditedFiles.size === 0)
|
|
18068
|
+
return candidates;
|
|
18069
|
+
const filtered = candidates.filter((file4) => userEditedFiles.has(resolve31(file4)));
|
|
18070
|
+
return filtered.length > 0 ? filtered : candidates;
|
|
18051
18071
|
}, broadcastAngularPageUpdates = (state, pagesToUpdate, manifest, startTime, classification) => {
|
|
18052
18072
|
pagesToUpdate.forEach((angularPagePath) => {
|
|
18053
18073
|
const fileName = basename12(angularPagePath);
|
|
@@ -18112,7 +18132,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
18112
18132
|
const angularHmrFiles = angularFiles.filter((file4) => file4.endsWith(".ts") || file4.endsWith(".html"));
|
|
18113
18133
|
const angularPageFiles = angularHmrFiles.filter((file4) => file4.replace(/\\/g, "/").includes("/pages/"));
|
|
18114
18134
|
const pagesToUpdate = angularPageFiles.length > 0 ? angularPageFiles : pageEntries;
|
|
18115
|
-
const
|
|
18135
|
+
const filesToClassify = filterToUserEdits(angularFiles, state.lastUserEditedFiles);
|
|
18136
|
+
const classification = collapseClassifications(filesToClassify.map(classifyAngularEdit));
|
|
18116
18137
|
broadcastAngularPageUpdates(state, pagesToUpdate, manifest, startTime, classification);
|
|
18117
18138
|
onRebuildComplete({ hmrState: state, manifest });
|
|
18118
18139
|
return manifest;
|
|
@@ -18824,7 +18845,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
18824
18845
|
handleAngularCssOnlyUpdate(state, angularCssFiles, manifest, duration);
|
|
18825
18846
|
return;
|
|
18826
18847
|
}
|
|
18827
|
-
const
|
|
18848
|
+
const filesToClassifySlow = filterToUserEdits(angularFiles, state.lastUserEditedFiles);
|
|
18849
|
+
const classification = collapseClassifications(filesToClassifySlow.map(classifyAngularEdit));
|
|
18828
18850
|
pagesToUpdate.forEach((angularPagePath) => {
|
|
18829
18851
|
broadcastAngularPageHmrUpdate(state, angularPagePath, manifest, duration, classification);
|
|
18830
18852
|
});
|
|
@@ -19887,5 +19909,5 @@ export {
|
|
|
19887
19909
|
build
|
|
19888
19910
|
};
|
|
19889
19911
|
|
|
19890
|
-
//# debugId=
|
|
19912
|
+
//# debugId=C3AE2CB9A404DDCA64756E2164756E21
|
|
19891
19913
|
//# sourceMappingURL=build.js.map
|