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
{{ message }}
Repository navigation
Usage of toValue, operators and async support #953
toValue() is widely used, and Liquid operator is different from JavaScript. That means we'll still need both toValue() and Drop, and nil, empty need to be a Drop or Symbol as they convey different semantics from other JavaScript primitives, thus
operator input need include Drop, or Symbol. The latter approach frees operators from Drop, while adds complexity as:
each operator need be aware of all Symbols, knowing how to compare them
Liquid output should aware of all Symbols, knowing how to stringify them
toValue need not be coupled with operators. Meaning operators work with Drop/Symbols, while filters/tags work with values, unaware of Drop or Symbol.
Proposals:
Keep Drop abstraction for empty, nil, etc. as Drop still need to be supported as a core Liquid concept. And using ·Drop for them is simpler than Symbols.
Keep Comparable interface as it's originally designed for comparing Drops and it works well, but it need to support async
Pass final values to filters/tags instead of possible Drops, meaning will have both evalToken and evallTokenValue:
evalToken for foo.bar contains 3, where expression receives Drop or values
evalTokenValue for {{ foo.bar | join }}wherejoin` receives values
changed the title [-]v11: simplify operators around Drop.valueOf (remove Comparable)[/-][+]Simplify operators around Drop.valueOf (remove Comparable)[/+]on Sep 6, 2026
Activity
[-]v11: simplify operators around Drop.valueOf (remove Comparable)[/-][+]Simplify operators around Drop.valueOf (remove Comparable)[/+][-]Simplify operators around Drop.valueOf (remove Comparable)[/-][+]Simplify operators around Drop.valueOf[/+][-]Simplify operators around Drop.valueOf[/-][+]Usage of toValue, Comparable, operators and async support[/+][-]Usage of toValue, Comparable, operators and async support[/-][+]Usage of toValue, operators and async support[/+]feat: await promises returned by Drop.valueOf() (#948) (#953) (#959)
chore(release): 10.30.0 [skip ci]