@constela/runtime 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -0
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1183,6 +1183,14 @@ function evaluate(expr, ctx) {
1183
1183
  const arrayExpr = expr;
1184
1184
  return arrayExpr.elements.map((elem) => evaluate(elem, ctx));
1185
1185
  }
1186
+ case "obj": {
1187
+ const objExpr = expr;
1188
+ const result = {};
1189
+ for (const [key2, value] of Object.entries(objExpr.props)) {
1190
+ result[key2] = evaluate(value, ctx);
1191
+ }
1192
+ return result;
1193
+ }
1186
1194
  default: {
1187
1195
  const _exhaustiveCheck = expr;
1188
1196
  throw new Error(`Unknown expression type: ${JSON.stringify(_exhaustiveCheck)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/runtime",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Runtime DOM renderer for Constela UI framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,8 +18,8 @@
18
18
  "dompurify": "^3.3.1",
19
19
  "marked": "^17.0.1",
20
20
  "shiki": "^3.20.0",
21
- "@constela/compiler": "0.15.7",
22
- "@constela/core": "0.18.1"
21
+ "@constela/compiler": "0.15.8",
22
+ "@constela/core": "0.18.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/dompurify": "^3.2.0",
@@ -29,10 +29,10 @@
29
29
  "tsup": "^8.0.0",
30
30
  "typescript": "^5.3.0",
31
31
  "vitest": "^2.0.0",
32
- "@constela/server": "14.0.1"
32
+ "@constela/server": "14.0.2"
33
33
  },
34
34
  "peerDependencies": {
35
- "@constela/ai": "3.0.1"
35
+ "@constela/ai": "3.0.2"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@constela/ai": {