@constela/runtime 5.0.0 → 5.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 +6 -0
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -960,6 +960,12 @@ function evaluateBinary(op, left, right, ctx) {
960
960
  }
961
961
  return dividend / divisor;
962
962
  }
963
+ case "%": {
964
+ const dividend = typeof leftVal === "number" ? leftVal : 0;
965
+ const divisor = typeof rightVal === "number" ? rightVal : 0;
966
+ if (divisor === 0) return NaN;
967
+ return dividend % divisor;
968
+ }
963
969
  // Comparison (using strict equality)
964
970
  case "==":
965
971
  return leftVal === rightVal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/runtime",
3
- "version": "5.0.0",
3
+ "version": "5.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.16",
22
- "@constela/core": "0.21.0"
21
+ "@constela/compiler": "0.15.17",
22
+ "@constela/core": "0.21.1"
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": "17.0.0"
32
+ "@constela/server": "17.0.1"
33
33
  },
34
34
  "peerDependencies": {
35
- "@constela/ai": "6.0.0"
35
+ "@constela/ai": "6.0.1"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@constela/ai": {