create-substrat 0.9.8 → 0.9.9
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/index.js +5 -5
- package/package.json +1 -1
- package/template/src/worker.ts +8 -7
package/index.js
CHANGED
|
@@ -36,11 +36,11 @@ const TEMPLATE = join(HERE, 'template');
|
|
|
36
36
|
// The runtime packages release together off one version line (the changesets `fixed`
|
|
37
37
|
// group), so one constant is right for all of them. Engines do NOT share a line —
|
|
38
38
|
// each versions on its own, so one pin per engine, deliberately.
|
|
39
|
-
const SUBSTRAT = '^0.
|
|
40
|
-
const ENGINE_WORKORDER = '^0.
|
|
41
|
-
const ENGINE_INVOICING = '^0.
|
|
42
|
-
const BOUNDARY_LINT = '^0.
|
|
43
|
-
const DEV_ISSUER = '^0.
|
|
39
|
+
const SUBSTRAT = '^0.121.0';
|
|
40
|
+
const ENGINE_WORKORDER = '^0.12.5';
|
|
41
|
+
const ENGINE_INVOICING = '^0.11.5';
|
|
42
|
+
const BOUNDARY_LINT = '^0.5.0';
|
|
43
|
+
const DEV_ISSUER = '^0.2.3';
|
|
44
44
|
|
|
45
45
|
const DOCS = 'https://substrat.net';
|
|
46
46
|
|
package/package.json
CHANGED
package/template/src/worker.ts
CHANGED
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
type ScopeSweeperDo,
|
|
49
49
|
} from '@substrat-run/adapter-cloudflare';
|
|
50
50
|
import {
|
|
51
|
-
|
|
51
|
+
kickFlags,
|
|
52
52
|
readRoutedNode,
|
|
53
53
|
RouterAssertionError,
|
|
54
54
|
type ScopeStub,
|
|
@@ -220,12 +220,13 @@ async function stub(c: Context<{ Bindings: Env }>): Promise<ScopeStub> {
|
|
|
220
220
|
const principal = await authenticatedPrincipal(c.req.raw, c.env);
|
|
221
221
|
if (!principal) throw new HTTPException(401, { message: await unauthorizedReason(c.env, node) });
|
|
222
222
|
return hostFor(c.env).getScope(principal, node.tenantId, node.scopeId, {
|
|
223
|
-
// An operation that called `ctx.requestPlatform
|
|
224
|
-
//
|
|
225
|
-
//
|
|
226
|
-
//
|
|
227
|
-
//
|
|
228
|
-
|
|
223
|
+
// An operation that called `ctx.requestPlatform`, or committed an event of a type this
|
|
224
|
+
// vertical EXPORTS (whether or not another app imports it yet), flags its response. The
|
|
225
|
+
// router then has the platform act on this scope within seconds instead of at the next
|
|
226
|
+
// sweep. Leave it wired even if nothing uses either yet: the host raises a flag only when a
|
|
227
|
+
// committed invoke did one of the two, so it costs nothing until then, and without it each
|
|
228
|
+
// waits up to a quarter of an hour.
|
|
229
|
+
...kickFlags((name, value) => c.header(name, value)),
|
|
229
230
|
});
|
|
230
231
|
}
|
|
231
232
|
|