@objectstack/core 9.11.0 → 10.0.0
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.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1204,6 +1204,19 @@ function createMemoryMetadata() {
|
|
|
1204
1204
|
async register(type, name, data) {
|
|
1205
1205
|
getTypeMap(type).set(name, data);
|
|
1206
1206
|
},
|
|
1207
|
+
// Mirror MetadataManager.registerInMemory (synchronous, no persistence).
|
|
1208
|
+
// AppPlugin gates code-defined-datasource / stack-RBAC registration on
|
|
1209
|
+
// `typeof metadata.registerInMemory === 'function'` (it must register
|
|
1210
|
+
// GitOps-managed artefacts *listably* but never persist them). Without this
|
|
1211
|
+
// method the guard was false on the host-config / standalone boot path —
|
|
1212
|
+
// where this fallback (not MetadataPlugin) provides the `metadata` service —
|
|
1213
|
+
// so `defineStack({ datasources })` entries silently never reached the
|
|
1214
|
+
// registry and were absent from GET /api/v1/datasources and
|
|
1215
|
+
// GET /api/v1/meta/datasource (ADR-0015 §18). This store is already
|
|
1216
|
+
// in-memory only, so registerInMemory and register share an implementation.
|
|
1217
|
+
registerInMemory(type, name, data) {
|
|
1218
|
+
getTypeMap(type).set(name, data);
|
|
1219
|
+
},
|
|
1207
1220
|
async get(type, name) {
|
|
1208
1221
|
return getTypeMap(type).get(name);
|
|
1209
1222
|
},
|