@constela/runtime 0.18.0 → 0.18.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/README.md +19 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -198,6 +198,25 @@ Call methods on arrays, strings, Math, and Date:
198
198
  - Math: min, max, round, floor, ceil, abs, sqrt, pow, random, sin, cos, tan
199
199
  - Date: now, parse, toISOString, getTime, getFullYear, getMonth, getDate, getHours, getMinutes, getSeconds, getMilliseconds
200
200
 
201
+ ### Array Expression
202
+
203
+ Construct arrays dynamically from expressions:
204
+
205
+ ```json
206
+ {
207
+ "expr": "array",
208
+ "elements": [
209
+ { "expr": "var", "name": "basicSetup" },
210
+ { "expr": "call", "target": { "expr": "var", "name": "json" }, "method": "apply", "args": [] }
211
+ ]
212
+ }
213
+ ```
214
+
215
+ Use cases:
216
+ - CodeMirror extensions: `[basicSetup, json()]`
217
+ - Dynamic configuration arrays
218
+ - Combining variables, literals, and call results in a single array
219
+
201
220
  ### Markdown Rendering
202
221
 
203
222
  ```json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/runtime",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
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.14.0",
22
- "@constela/core": "0.15.0"
21
+ "@constela/core": "0.15.1",
22
+ "@constela/compiler": "0.14.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/dompurify": "^3.2.0",