@mintplayer/polyglot-target-php 0.5.3 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/polyglot-target-php",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "description": "MintPlayer Polyglot PHP target — a pure-JSON language plugin (spec + emission rules + capabilities + std bindings) for the polyglot transpiler.",
5
5
  "keywords": [
6
6
  "polyglot",
@@ -217,12 +217,17 @@
217
217
  "Math.sinh": "sinh($0)",
218
218
  "Math.cosh": "cosh($0)",
219
219
  "Math.tanh": "tanh($0)",
220
+ "Math.asinh": "asinh($0)",
221
+ "Math.acosh": "acosh($0)",
222
+ "Math.atanh": "atanh($0)",
220
223
  "Math.trunc": "(float)(int)($0)",
221
224
  "Math.floor": "floor($0)",
222
225
  "Math.ceil": "ceil($0)",
223
226
  "Math.min": "min($0, $1)",
224
227
  "Math.max": "max($0, $1)",
225
228
  "Math.abs": "abs($0)",
229
+ "Math.sign": "(fn($a) => $a > 0 ? 1 : ($a < 0 ? -1 : $a - $a))($0)",
230
+ "Math.clamp": "(fn($x, $lo, $hi) => $x < $lo ? $lo : ($x > $hi ? $hi : $x))($0, $1, $2)",
226
231
  "Math.round": "round($0)"
227
232
  }
228
233
  },