You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library now operates exclusively in strict CEL mode
- **Removed**: `EvaluationMode.PYTHON` and all automatic integer-to-float promotion
- **Removed**: `mode` parameter from `evaluate()` function
- **Removed**: `--mode` CLI option
- **Behavior change**: Mixed arithmetic like `1 + 2.5` now raises `TypeError` instead of automatically promoting to `3.5`
- **Migration**: Use explicit type conversion (e.g., `double(1) + 2.5`) for mixed arithmetic
- **Rationale**: Eliminates complex AST preprocessing that was breaking `has()` short-circuiting and other CEL functions
### 🐛 Fixed
- **CEL function short-circuiting**: Fixed issue where `has()` and other CEL functions failed due to AST preprocessing interference
- **String literal corruption**: Eliminated string literal modification that occurred during integer promotion preprocessing
### Updated
- Updated cel crate from v0.11.0 to v0.11.1
- Updated documentation to reflect strict CEL mode operation
- Updated tests to work with strict CEL mode only
- Removed complex preprocessing logic
0 commit comments