Skip to content

Commit bac4d81

Browse files
committed
chore(objectos): bump @objectstack 10.2 -> 12.1 so the runtime image ships latest
- apps/objectos deps pinned at ^10.2.0 + frozen lockfile kept the ghcr image stuck at framework 10.2 even though CI runs on every push. - Bump all @objectstack/* to ^12.1.0 and regenerate pnpm-lock.yaml. - Work around a 12.1 standalone inconsistency: createStandaloneStack emits api.projectResolution:'none', which the 12.1 validator rejects (enum: required|optional|auto, field optional). Standalone has scoping disabled, so drop the field in objectstack.config.ts. Verified: objectstack compile passes; serve boots (/ -> 302, /_console/ -> 200, SqlDriver loaded, 22 plugins).
1 parent 4254851 commit bac4d81

3 files changed

Lines changed: 1282 additions & 642 deletions

File tree

apps/objectos/objectstack.config.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,19 @@ const environmentId =
4646
const databaseUrl =
4747
process.env.OS_BUSINESS_DB_URL ?? process.env.OS_DATABASE_URL;
4848

49-
export default await createStandaloneStack({
49+
const stack = await createStandaloneStack({
5050
artifactPath: artifactFile,
5151
environmentId,
5252
databaseUrl,
5353
});
54+
55+
// @objectstack 12.1 workaround: createStandaloneStack hard-codes
56+
// `api.projectResolution: 'none'` for the single-tenant standalone case, but the
57+
// 12.1 protocol validator's `api.projectResolution` enum only accepts
58+
// required|optional|auto (the field is optional). Since standalone runs with
59+
// `enableProjectScoping: false`, drop the field so compile/validate passes.
60+
const { projectResolution: _drop, ...api } = stack.api as {
61+
projectResolution?: string;
62+
} & Record<string, unknown>;
63+
64+
export default { ...stack, api };

apps/objectos/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
"type-check": "tsc --noEmit"
1414
},
1515
"dependencies": {
16-
"@objectstack/cli": "^10.2.0",
17-
"@objectstack/cloud-connection": "^10.2.0",
18-
"@objectstack/console": "^10.2.0",
19-
"@objectstack/core": "^10.2.0",
20-
"@objectstack/driver-memory": "^10.2.0",
21-
"@objectstack/driver-sql": "^10.2.0",
22-
"@objectstack/metadata": "^10.2.0",
23-
"@objectstack/objectql": "^10.2.0",
24-
"@objectstack/runtime": "^10.2.0",
25-
"@objectstack/spec": "^10.2.0",
16+
"@objectstack/cli": "^12.1.0",
17+
"@objectstack/cloud-connection": "^12.1.0",
18+
"@objectstack/console": "^12.1.0",
19+
"@objectstack/core": "^12.1.0",
20+
"@objectstack/driver-memory": "^12.1.0",
21+
"@objectstack/driver-sql": "^12.1.0",
22+
"@objectstack/metadata": "^12.1.0",
23+
"@objectstack/objectql": "^12.1.0",
24+
"@objectstack/runtime": "^12.1.0",
25+
"@objectstack/spec": "^12.1.0",
2626
"pg": "^8.0.0"
2727
},
2828
"devDependencies": {

0 commit comments

Comments
 (0)