Skip to content

Commit d12ecd7

Browse files
authored
Merge pull request #46 from superwall/feature/fix-string-to-int
Simplify string normalization - don't convert numeric strings to numbers
2 parents 521926f + 6ef83b1 commit d12ecd7

5 files changed

Lines changed: 587 additions & 285 deletions

File tree

CHANGELOG.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,80 @@
11
# CHANGELOG
22

3+
## 1.0.13
4+
5+
### Fixes
6+
7+
- Simplify string normalization: numeric strings now stay as strings instead of being converted to numbers. This fixes issues where `device.appBuildString == "5690201"` would fail because the string was incorrectly converted to an integer. Only "true" and "false" strings are converted to booleans; all other strings remain as strings. Removed the complex `extract_string_compared_variables` mechanism in favor of this simpler approach.
8+
39
## 1.0.12
410

511
- Bump version
612

713
## 1.0.11
814

915
## Fixes
16+
1017
- Fixes comparison issue of padded numbers by skipping expression conversion and normalization in special cases
1118

1219
## 1.0.10
1320

14-
## Fixes
21+
### Fixes
22+
1523
- Removes modulemap from outputs
1624

1725
## 1.0.9
1826

1927
## Fixes
28+
2029
- Ensures XC projects also work with module SPM setup
30+
2131
## 1.0.8
2232

2333
## Fixes
34+
2435
- Fix generic module name
2536

2637
## 1.0.7
2738

2839
## Fixes
40+
2941
- Fix iOS build script
3042

3143
## 1.0.6
3244

3345
## Fixes
46+
3447
- Ensure new module headers point to right places
3548

3649
## 1.0.5
3750

3851
## Fixes
52+
3953
- Fixes namespaces for SPM module headers
4054

4155
## 1.0.4
4256

4357
## Enhancements
58+
4459
- Disable Android Cleaner in UniFFI builds
4560

4661
## 1.0.3
4762

4863
## Enhancements
64+
4965
- Ensure that previously set compilation flags do not affect Android compilation
5066
- Add flags to ensure common page size is being passed to Cross
5167

5268
## 1.0.2.
5369

5470
## Enhancements
71+
5572
- Removes log print, reduces binary size
5673

5774
## 1.0.1
5875

5976
## Enhancements
77+
6078
- Adds `hasFn` function that checks for the existance of a function or returns `false`
6179
- Enhance `hasFn` and `has` checks to do the following:
6280
- If a `device.` or `computed.` function is used, or a variable is accessed in an expression
@@ -69,16 +87,19 @@
6987
- Removes `string.toBool()`,`string.toInt()`, `string.toFloat()` functions as every possible valid atom conversion is done in the AST
7088

7189
## General
90+
7291
- Adds more tests, improves test coverage, adds displaying coverage badge
7392
- Improves `README.MD` and adds an `interpretation-flow.md` to serve as a guide for how things are interpreted
7493

7594
## 1.0.0
7695

7796
## Enhancements
97+
7898
- 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.
7999
- Adds conversion methods `bool.toString()`, `float.toString()`, `int.toString()`, `bool.toString()` and `string.toBool()`,`string.toInt()`, `string.toFloat()` to enable typecasting in CEL
80100

81101
## Truthiness
102+
82103
- Fixes issues with undeclared references for properties and functions by wrapping them in a has(x)? x : Null tertiary expression
83104

84105
## 0.2.8
@@ -100,17 +121,21 @@
100121
## 0.2.5
101122

102123
### Enhancements
124+
103125
- Moves the HostContext to a Sync version with callback
104126
- Updates Android NDK to support 16kb page sizes
105127
- Updates Uniffi version
106128

107129
## 0.2.4
130+
108131
- Fix aarch64 build for Android
109132

110133
## 0.2.3
134+
111135
- Fix aarch64 build for Android
112136

113137
## 0.2.2
138+
114139
- Version bump for deployment purposes
115140

116141
## 0.2.1

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cel-eval"
3-
version = "1.0.12"
3+
version = "1.0.13"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.htmlž

0 commit comments

Comments
 (0)