@constela/server 4.1.0 → 5.0.1

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 +6 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -219,6 +219,12 @@ function evaluate(expr, ctx) {
219
219
  case "style": {
220
220
  return evaluateStyle(expr, ctx);
221
221
  }
222
+ case "concat": {
223
+ return expr.items.map((item) => {
224
+ const val = evaluate(item, ctx);
225
+ return val == null ? "" : String(val);
226
+ }).join("");
227
+ }
222
228
  default: {
223
229
  const _exhaustiveCheck = expr;
224
230
  throw new Error(`Unknown expression type: ${JSON.stringify(_exhaustiveCheck)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/server",
3
- "version": "4.1.0",
3
+ "version": "5.0.1",
4
4
  "description": "Server-side rendering for Constela UI framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,7 +15,7 @@
15
15
  "dist"
16
16
  ],
17
17
  "peerDependencies": {
18
- "@constela/compiler": "^0.8.0"
18
+ "@constela/compiler": "^0.9.1"
19
19
  },
20
20
  "dependencies": {
21
21
  "isomorphic-dompurify": "^2.35.0",
@@ -28,7 +28,7 @@
28
28
  "tsup": "^8.0.0",
29
29
  "typescript": "^5.3.0",
30
30
  "vitest": "^2.0.0",
31
- "@constela/compiler": "0.8.0"
31
+ "@constela/compiler": "0.9.1"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=20.0.0"