@ultimat3/cli 31.22.1 → 31.22.3
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/package.json +29 -29
- package/src/dev-rebuild.ts +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/cli",
|
|
3
|
-
"version": "31.22.
|
|
3
|
+
"version": "31.22.3",
|
|
4
4
|
"description": "The `x` binary: new, dev, build, verify, generate, db, mcp, doctor, deploy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ultimate",
|
|
@@ -53,34 +53,34 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@babel/core": "^8.0.9",
|
|
56
|
-
"@ultimat3/action": "31.22.
|
|
57
|
-
"@ultimat3/admin": "31.22.
|
|
58
|
-
"@ultimat3/ai": "31.22.
|
|
59
|
-
"@ultimat3/auth": "31.22.
|
|
60
|
-
"@ultimat3/cache": "31.22.
|
|
61
|
-
"@ultimat3/core": "31.22.
|
|
62
|
-
"@ultimat3/db": "31.22.
|
|
63
|
-
"@ultimat3/entity": "31.22.
|
|
64
|
-
"@ultimat3/flags": "31.22.
|
|
65
|
-
"@ultimat3/http": "31.22.
|
|
66
|
-
"@ultimat3/i18n": "31.22.
|
|
67
|
-
"@ultimat3/jobs": "31.22.
|
|
68
|
-
"@ultimat3/mail": "31.22.
|
|
69
|
-
"@ultimat3/manifest": "31.22.
|
|
70
|
-
"@ultimat3/mcp": "31.22.
|
|
71
|
-
"@ultimat3/money": "31.22.
|
|
72
|
-
"@ultimat3/notify": "31.22.
|
|
73
|
-
"@ultimat3/policy": "31.22.
|
|
74
|
-
"@ultimat3/pwa": "31.22.
|
|
75
|
-
"@ultimat3/query": "31.22.
|
|
76
|
-
"@ultimat3/realtime": "31.22.
|
|
77
|
-
"@ultimat3/render": "31.22.
|
|
78
|
-
"@ultimat3/schema": "31.22.
|
|
79
|
-
"@ultimat3/scraping": "31.22.
|
|
80
|
-
"@ultimat3/seo": "31.22.
|
|
81
|
-
"@ultimat3/storage": "31.22.
|
|
82
|
-
"@ultimat3/testing": "31.22.
|
|
83
|
-
"@ultimat3/time": "31.22.
|
|
56
|
+
"@ultimat3/action": "31.22.3",
|
|
57
|
+
"@ultimat3/admin": "31.22.3",
|
|
58
|
+
"@ultimat3/ai": "31.22.3",
|
|
59
|
+
"@ultimat3/auth": "31.22.3",
|
|
60
|
+
"@ultimat3/cache": "31.22.3",
|
|
61
|
+
"@ultimat3/core": "31.22.3",
|
|
62
|
+
"@ultimat3/db": "31.22.3",
|
|
63
|
+
"@ultimat3/entity": "31.22.3",
|
|
64
|
+
"@ultimat3/flags": "31.22.3",
|
|
65
|
+
"@ultimat3/http": "31.22.3",
|
|
66
|
+
"@ultimat3/i18n": "31.22.3",
|
|
67
|
+
"@ultimat3/jobs": "31.22.3",
|
|
68
|
+
"@ultimat3/mail": "31.22.3",
|
|
69
|
+
"@ultimat3/manifest": "31.22.3",
|
|
70
|
+
"@ultimat3/mcp": "31.22.3",
|
|
71
|
+
"@ultimat3/money": "31.22.3",
|
|
72
|
+
"@ultimat3/notify": "31.22.3",
|
|
73
|
+
"@ultimat3/policy": "31.22.3",
|
|
74
|
+
"@ultimat3/pwa": "31.22.3",
|
|
75
|
+
"@ultimat3/query": "31.22.3",
|
|
76
|
+
"@ultimat3/realtime": "31.22.3",
|
|
77
|
+
"@ultimat3/render": "31.22.3",
|
|
78
|
+
"@ultimat3/schema": "31.22.3",
|
|
79
|
+
"@ultimat3/scraping": "31.22.3",
|
|
80
|
+
"@ultimat3/seo": "31.22.3",
|
|
81
|
+
"@ultimat3/storage": "31.22.3",
|
|
82
|
+
"@ultimat3/testing": "31.22.3",
|
|
83
|
+
"@ultimat3/time": "31.22.3",
|
|
84
84
|
"babel-preset-solid": "^1.9.16"
|
|
85
85
|
}
|
|
86
86
|
}
|
package/src/dev-rebuild.ts
CHANGED
|
@@ -126,6 +126,11 @@ export function devRebuilder(
|
|
|
126
126
|
// What the route table was built from: the boot's generation, for the life of this process. Each
|
|
127
127
|
// save is compared with IT, not with the save before — a route added two saves ago is still a 404.
|
|
128
128
|
const mounted = { manifest: state.manifest, findings: state.appFindings };
|
|
129
|
+
// What this process still holds stale, for the life of it — the same rule as `mounted`. A pinned
|
|
130
|
+
// module keeps the old instance until a new process, so a LATER rebuild that changed nothing
|
|
131
|
+
// (the watcher's second event for one write, a no-op save) is still a restart: it reported
|
|
132
|
+
// "reloaded" over the old read, and an unsupervised `/_x` lost its X_DEV_RESTART_REQUIRED.
|
|
133
|
+
let held: readonly StalePin[] = [];
|
|
129
134
|
// One rebuild at a time, and the last save wins: a tick arriving mid-build coalesces into ONE
|
|
130
135
|
// trailing rebuild instead of racing the one in flight for `state.manifest` and `state.islands`.
|
|
131
136
|
return coalesceReloads(
|
|
@@ -141,8 +146,11 @@ export function devRebuilder(
|
|
|
141
146
|
// Awaited one by one: a shared store answers over the network, and a dev save is rare.
|
|
142
147
|
for (const path of await isr.store().paths()) await isr.store().delete(path);
|
|
143
148
|
state.reloads += 1;
|
|
144
|
-
// Read on EVERY rebuild, so a pin one save reached is never reported against the next save
|
|
145
|
-
|
|
149
|
+
// Read on EVERY rebuild, so a pin one save reached is never reported against the next save:
|
|
150
|
+
// this save's own pins name it, and only a save that reached none inherits the held ones.
|
|
151
|
+
const reached = takeStalePins();
|
|
152
|
+
held = [...held, ...reached.filter((pin) => !held.some((was) => was.pinned === pin.pinned))];
|
|
153
|
+
const stale = reached.length > 0 ? reached : held;
|
|
146
154
|
// A generation this process cannot mount is a restart named after the saved file — never
|
|
147
155
|
// "reloaded" over a route table built for the generation before it.
|
|
148
156
|
const saved = resolve(options.root, file);
|