Skip to content

lumen-js 1.2.0: persist and deviceInfo options - #8

Merged
theboringhumane merged 1 commit into
mainfrom
harsh/lumen-js-persist-option
Nov 10, 2026
Merged

theboringhumane merged 1 commit into
mainfrom
harsh/lumen-js-persist-option

Conversation

@theboringhumane

Copy link
Copy Markdown
Contributor

Adds two options to the TypeScript SDK. Both default to true, so current users see no change.

  • persist: false: the anonymous id lives in memory only. It is never read from or written to localStorage, including on reset().
  • deviceInfo: false: user agent, screen size and viewport size are sent empty.

Needed for jeevit.ai, which may only count visits with no stored browser id and no device details.

Check: npm test (tsc + test/options.check.mjs) prints ok.

@theboringhumane
theboringhumane merged commit dd0e4c0 into main Nov 10, 2026
5 of 6 checks passed
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.

1 participant