Skip to content

fix: correctly compute atomicValue for falsy values#78

Merged
nikku merged 1 commit intonikku:mainfrom
bpmn-io:falsy-fix
Feb 9, 2026
Merged

fix: correctly compute atomicValue for falsy values#78
nikku merged 1 commit intonikku:mainfrom
bpmn-io:falsy-fix

Conversation

@jarekdanielak
Copy link
Contributor

Related to bpmn-io/variable-resolver#52

Proposed Changes

Fix how atomicValue is computed for falsy values (false or empty string).

If we check for !value, the atomic value is not computed for falsy values, e.g. false which is a valid boolean value.

Additionally, || operator also doesn't pick up falsy values.

@nikku
Copy link
Owner

nikku commented Feb 9, 2026

Thanks for the fix and the comprehensive test coverage ⭐

@nikku nikku merged commit 34ba06b into nikku:main Feb 9, 2026
1 check passed
@nikku nikku deleted the falsy-fix branch February 9, 2026 22:32
@nikku
Copy link
Owner

nikku commented Feb 9, 2026

Released as v2.2.1, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants