@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
package/dist/index.js
CHANGED
|
@@ -16549,7 +16549,7 @@ var init_ssrCache = __esm(() => {
|
|
|
16549
16549
|
import { readFileSync as readFileSync17 } from "fs";
|
|
16550
16550
|
import { basename as basename11 } from "path";
|
|
16551
16551
|
import * as ts3 from "typescript";
|
|
16552
|
-
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) => {
|
|
16552
|
+
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) => {
|
|
16553
16553
|
const callee = node.expression;
|
|
16554
16554
|
if (ts3.isIdentifier(callee))
|
|
16555
16555
|
return callee.text;
|
|
@@ -16719,6 +16719,13 @@ var TYPE_PRIORITY, STYLE_EXT_RE, COMPONENT_STYLE_RE, TEMPLATE_RE, COMPONENT_CLAS
|
|
|
16719
16719
|
sourceFile: file5
|
|
16720
16720
|
};
|
|
16721
16721
|
}
|
|
16722
|
+
if (PAGE_TS_RE.test(file5)) {
|
|
16723
|
+
return {
|
|
16724
|
+
type: "class-component",
|
|
16725
|
+
reason: `${base} \u2014 page component edit`,
|
|
16726
|
+
sourceFile: file5
|
|
16727
|
+
};
|
|
16728
|
+
}
|
|
16722
16729
|
return {
|
|
16723
16730
|
type: "reboot",
|
|
16724
16731
|
reason: `${base} \u2014 unrecognized angular file type, falling back to reboot`,
|
|
@@ -16757,6 +16764,7 @@ var init_editTypeDetection = __esm(() => {
|
|
|
16757
16764
|
COMPONENT_CLASS_RE = /\.component\.ts$/i;
|
|
16758
16765
|
SERVICE_RE = /\.service\.ts$/i;
|
|
16759
16766
|
ROUTES_RE = /(?:^|[\\/])(?:app\.)?routes\.ts$/i;
|
|
16767
|
+
PAGE_TS_RE = /(?:^|[\\/])pages[\\/][^\\/]+\.ts$/i;
|
|
16760
16768
|
SIDE_EFFECT_CALL_NAMES = new Set([
|
|
16761
16769
|
"subscribe",
|
|
16762
16770
|
"setInterval",
|
|
@@ -18030,6 +18038,13 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
18030
18038
|
const DEBOUNCE_MS = config.options?.hmr?.debounceMs ?? DEFAULT_DEBOUNCE_MS;
|
|
18031
18039
|
state.rebuildTimeout = setTimeout(async () => {
|
|
18032
18040
|
await waitForStableWrites(state);
|
|
18041
|
+
const userEditedFiles = new Set;
|
|
18042
|
+
state.fileChangeQueue.forEach((filePaths) => {
|
|
18043
|
+
for (const filePath2 of filePaths) {
|
|
18044
|
+
userEditedFiles.add(resolve33(filePath2));
|
|
18045
|
+
}
|
|
18046
|
+
});
|
|
18047
|
+
state.lastUserEditedFiles = userEditedFiles;
|
|
18033
18048
|
const filesToProcess = buildFilesToProcess(state);
|
|
18034
18049
|
state.fileChangeQueue.clear();
|
|
18035
18050
|
if (filesToProcess.size === 0) {
|
|
@@ -18145,6 +18160,11 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
18145
18160
|
const clientManifest = generateManifest2(clientResult.outputs, buildDir);
|
|
18146
18161
|
Object.assign(state.manifest, clientManifest);
|
|
18147
18162
|
await populateAssetStore(state.assetStore, clientManifest, buildDir);
|
|
18163
|
+
}, filterToUserEdits = (candidates, userEditedFiles) => {
|
|
18164
|
+
if (!userEditedFiles || userEditedFiles.size === 0)
|
|
18165
|
+
return candidates;
|
|
18166
|
+
const filtered = candidates.filter((file5) => userEditedFiles.has(resolve33(file5)));
|
|
18167
|
+
return filtered.length > 0 ? filtered : candidates;
|
|
18148
18168
|
}, broadcastAngularPageUpdates = (state, pagesToUpdate, manifest, startTime, classification) => {
|
|
18149
18169
|
pagesToUpdate.forEach((angularPagePath) => {
|
|
18150
18170
|
const fileName = basename13(angularPagePath);
|
|
@@ -18209,7 +18229,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
18209
18229
|
const angularHmrFiles = angularFiles.filter((file5) => file5.endsWith(".ts") || file5.endsWith(".html"));
|
|
18210
18230
|
const angularPageFiles = angularHmrFiles.filter((file5) => file5.replace(/\\/g, "/").includes("/pages/"));
|
|
18211
18231
|
const pagesToUpdate = angularPageFiles.length > 0 ? angularPageFiles : pageEntries;
|
|
18212
|
-
const
|
|
18232
|
+
const filesToClassify = filterToUserEdits(angularFiles, state.lastUserEditedFiles);
|
|
18233
|
+
const classification = collapseClassifications(filesToClassify.map(classifyAngularEdit));
|
|
18213
18234
|
broadcastAngularPageUpdates(state, pagesToUpdate, manifest, startTime, classification);
|
|
18214
18235
|
onRebuildComplete({ hmrState: state, manifest });
|
|
18215
18236
|
return manifest;
|
|
@@ -18921,7 +18942,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
18921
18942
|
handleAngularCssOnlyUpdate(state, angularCssFiles, manifest, duration);
|
|
18922
18943
|
return;
|
|
18923
18944
|
}
|
|
18924
|
-
const
|
|
18945
|
+
const filesToClassifySlow = filterToUserEdits(angularFiles, state.lastUserEditedFiles);
|
|
18946
|
+
const classification = collapseClassifications(filesToClassifySlow.map(classifyAngularEdit));
|
|
18925
18947
|
pagesToUpdate.forEach((angularPagePath) => {
|
|
18926
18948
|
broadcastAngularPageHmrUpdate(state, angularPagePath, manifest, duration, classification);
|
|
18927
18949
|
});
|
|
@@ -28487,5 +28509,5 @@ export {
|
|
|
28487
28509
|
ANGULAR_INIT_TIMEOUT_MS
|
|
28488
28510
|
};
|
|
28489
28511
|
|
|
28490
|
-
//# debugId=
|
|
28512
|
+
//# debugId=354081F729C5E09864756E2164756E21
|
|
28491
28513
|
//# sourceMappingURL=index.js.map
|