Skip to content

Support keepalive request option - #203

Merged
brianhdk merged 2 commits into
mainfrom
codex/keepalive-request-options
Aug 3, 2026
Merged

Support keepalive request option#203
brianhdk merged 2 commits into
mainfrom
codex/keepalive-request-options

Conversation

@mzanoni

@mzanoni mzanoni commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

https://trello.com/c/xt2jRYcz/21073-support-keepalive-for-javascript-sdk-tracking-requests

What changed

  • Added keepalive?: boolean to RelewiseRequestOptions.
  • Passed the option through to the shared fetch request configuration.
  • Added a unit test covering keepalive propagation from a tracking request.

Why

Tracking events can benefit from fetch keepalive when requests are sent during navigation or page lifecycle transitions.

Validation

  • npm test
  • npm run build
  • npm run build:types

npm run lint was attempted but is currently blocked because ESLint 10 expects eslint.config.*, while this package still uses .eslintrc.js.

@mzanoni
mzanoni marked this pull request as ready for review August 3, 2026 08:46
@mzanoni
mzanoni requested a review from brianhdk August 3, 2026 08:52
@brianhdk
brianhdk merged commit dc4b23b into main Aug 3, 2026
4 checks passed
@brianhdk
brianhdk deleted the codex/keepalive-request-options branch August 3, 2026 09:48
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