Skip to content

Releases: superwall/superscript

1.0.4

15 Oct 16:06
11f5406

Choose a tag to compare

1.0.4

Enhancements

  • Updates Android to support 16kb page sizes on all platforms

1.0.1

23 Jul 12:11
e37555f

Choose a tag to compare

1.0.1

Enhancements

  • Adds hasFn function that checks for the existance of a function or returns false
  • Enhance hasFn and has checks to do the following:
    • If a device. or computed. function is used, or a variable is accessed in an expression
    • Wrap the accessor in has or hasFn
    • Wrap the evaluation to:
      • Evaluate has/hasFn first
      • if true, run the expression.
      • if false and the right side is atomic, we evaluate the default fallback value (0 for int/float, "" for String)
      • if false and the right side is not atomic, we wrap the whole expression to return false (to avoid error due to comparing different types)
  • Removes string.toBool(),string.toInt(), string.toFloat() functions as every possible valid atom conversion is done in the AST

General

  • Adds more tests, improves test coverage, adds displaying coverage badge
  • Improves README.MD and adds an interpretation-flow.md to serve as a guide for how things are interpreted

1.0.0

21 Jul 14:14
1729b1d

Choose a tag to compare

1.0.0

Enhancements

  • Adds truthiness and string normalization so value such as "true", "false", "1.1" etc are treated as true, false, 1.1. This occurs on both left and right side of an expression.
  • Adds conversion methods bool.toString(), float.toString(), int.toString(), bool.toString() and string.toBool(),string.toInt(), string.toFloat() to enable typecasting in CEL

Truthiness

  • Fixes issues with undeclared references for properties by wrapping them in a has(x)? x : Null tertiary expression

0.2.8

28 May 16:30
2850715

Choose a tag to compare

0.2.8

Enhancements

  • Pass linker flags for 16kb architecture on Android

0.2.7

28 May 14:49

Choose a tag to compare

0.2.7

Enhancements

  • Moves the HostContext to a Sync version with callback and no return
  • Updates Android NDK to support 16kb page sizes
  • Updates Uniffi version

0.2.0

11 Mar 17:34
4c6480b

Choose a tag to compare

0.2.0

  • Add typescript wrapper for the JS library
  • Add aarch64 support for Android

0.1.12

22 Oct 13:56
03f68d8

Choose a tag to compare

Fixes

  • Adds Result types to fix issues when building for iOS.

0.1.11

22 Oct 13:42
a070662

Choose a tag to compare

Enhancements

  • Adds new Android target.
  • Ensures JSON deserialization is done in a safe manner.

0.1.10

22 Oct 11:05

Choose a tag to compare

Enhancements

  • Updates GitHub workflow for the renaming of the iOS repository.

0.1.9

17 Oct 12:52
3d76917

Choose a tag to compare

0.1.9

Enhancements

  • Added returning of a JSON encoded Result<PassableValue,String> from the exposed methods instead of relying on panics.
    Example JSON:
    • Error: {"Err":"No such key: should_display"}
    • Ok: {"Ok":{"type":"bool","value":true}}

Fixes

  • Fixed a bug where getting properties from device would panic when device functions were defined