Skip to content

v1.1.1

Choose a tag to compare

@leoromanovsky leoromanovsky released this 30 Mar 16:57
· 25 commits to main since this release
v1.1.1
3c5d876

Bug Fixes

  • fix: allow null targeting key for static and rule-only flags (#232)

    The OpenFeature spec (3.1.1) declares targetingKey as optional, but the Node.js evaluator previously rejected ALL flag evaluations when targetingKey was null or undefined. This fix defers the null check to the shard evaluation path, so only flags that genuinely need a targeting key (for sharding) return TARGETING_KEY_MISSING.

    Scenario targetingKey absent targetingKey present
    Static flag (no rules, no shards) Returns flag value ✓ Returns flag value ✓
    Rule-only flag (rules on non-id attribute) Returns matched value ✓ Returns matched value ✓
    Sharded flag (requires key for hash) TARGETING_KEY_MISSING error Returns shard-assigned value ✓