@emeryld/rrroutes-export 1.0.23 → 1.0.24
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/index.mjs
CHANGED
|
@@ -2148,6 +2148,7 @@ async function createSnapshot(repoRoot, moduleCandidates, exportName, commit, te
|
|
|
2148
2148
|
commit,
|
|
2149
2149
|
routesByKey: {},
|
|
2150
2150
|
sourceObjectsById: {},
|
|
2151
|
+
missing: true,
|
|
2151
2152
|
fallbackReason: "snapshot_error",
|
|
2152
2153
|
fallbackError: message
|
|
2153
2154
|
};
|
|
@@ -2439,14 +2440,23 @@ async function exportFinalizedLeavesChangelog(options) {
|
|
|
2439
2440
|
}
|
|
2440
2441
|
const routeEvents = [];
|
|
2441
2442
|
const sourceEvents = [];
|
|
2442
|
-
log("[changelog] diffing
|
|
2443
|
-
|
|
2443
|
+
log("[changelog] diffing successful snapshots");
|
|
2444
|
+
let previousSnapshot;
|
|
2445
|
+
for (const snapshot of snapshots) {
|
|
2446
|
+
if (snapshot.missing) {
|
|
2447
|
+
continue;
|
|
2448
|
+
}
|
|
2449
|
+
if (!previousSnapshot) {
|
|
2450
|
+
previousSnapshot = snapshot;
|
|
2451
|
+
continue;
|
|
2452
|
+
}
|
|
2444
2453
|
const { routeEvents: nextRouteEvents, sourceEvents: nextSourceEvents } = diffSnapshots(
|
|
2445
|
-
|
|
2446
|
-
|
|
2454
|
+
previousSnapshot,
|
|
2455
|
+
snapshot
|
|
2447
2456
|
);
|
|
2448
2457
|
routeEvents.push(...nextRouteEvents);
|
|
2449
2458
|
sourceEvents.push(...nextSourceEvents);
|
|
2459
|
+
previousSnapshot = snapshot;
|
|
2450
2460
|
}
|
|
2451
2461
|
log(
|
|
2452
2462
|
`[changelog] diff complete: route events=${routeEvents.length}, source events=${sourceEvents.length}`
|