dashhudson / vue-ld

Vue LaunchDarkly plugin and routing utilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flag Casing

benjamin-t-frost opened this issue · comments

Use Case:
To avoid confusion and casual mistakes, getters on $ld.flags should be indifferent to casing.

Acceptance Criteria:

  • Interactions with flags should be indifferent between kebab casing and camel casing
    • e.g., $ld.flags['feature-flag'] and $ld.flags.featureFlag
  • The solution should be usable by older browsers

This should also work for LDRouteGuard and the redirects. Ideally, this would also be opt-in to avoid surprises.