#3601 fix(mappers): Support `simpleeval` 1.0.5+ by subclassing `simpleeval.EvalWithCompoundTypes`
Pull request opened by
edgarrmondragon
Related
•
#3561
•
#3595
• Re-implements upstream
danthedeckie/simpleeval#181
Summary by Sourcery
Update stream mapper expression evaluation to be compatible with simpleeval 1.0.5+ while preserving the mapper’s existing safety guarantees.
New Features:
• Introduce a dedicated mapper expression evaluator subclass to control how AST nodes, names, and disallowed items are handled during evaluation.
Bug Fixes:
• Fix incompatibility with simpleeval 1.0.5+ by bypassing its new redundant container safety scan in a controlled way.
Enhancements:
• Wrap datetime and json modules with simpleeval.ModuleWrapper when exposing them as mapper functions to align with simpleeval’s safety model.
Build:
• Pin simpleeval to version 1.0.7 in project dependencies.
meltano/sdk