Skip to content

✨ Add @datadog/browser-remote-config standalone package#4239

Draft
mormubis wants to merge 2 commits into
mainfrom
adlrb/ssi-remote-config
Draft

✨ Add @datadog/browser-remote-config standalone package#4239
mormubis wants to merge 2 commits into
mainfrom
adlrb/ssi-remote-config

Conversation

@mormubis
Copy link
Copy Markdown
Contributor

Motivation

Customers using SSI (Server-Side Instrumentation) need to fetch remote configuration independently of the RUM SDK, at build time or server-side. This package provides that capability as a standalone, lightweight module.

Changes

New package: @datadog/browser-remote-config

  • fetchRemoteConfiguration(options) — fetch remote config with 30s timeout
  • RemoteConfigResult — discriminated union ({ ok: true; value } | { ok: false; error }) for safe TypeScript narrowing without non-null assertions
  • AbortSignal support — pass a signal for cancellation (e.g. AbortSignal.timeout(30_000))
  • Dynamic value resolution — cookies ($cookie:name), DOM selectors ($dom:selector), JS paths ($js:path)
  • Uses buildSiteHost from @datadog/browser-core (PR1) — no type-assertion hack

Purely additive

rum-core's existing remoteConfigurationId init option is untouched. This PR only adds the new package.

Testing

yarn test:unit --spec packages/remote-config/src/remoteConfiguration.spec.ts
yarn test:unit --spec packages/remote-config/src/jsonPathParser.spec.ts
yarn typecheck

Part of SSI Phase 6 stacked PRs. Stacks on: ♻️ Extract buildSiteHost (#4238). Next: @datadog/browser-sdk-endpoint package.

@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da Bot commented Feb 25, 2026

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 173.88 KiB 173.96 KiB +76 B +0.04%
Rum Profiler 7.89 KiB 7.89 KiB 0 B 0.00%
Rum Recorder 21.21 KiB 21.21 KiB 0 B 0.00%
Logs 55.69 KiB 55.69 KiB 0 B 0.00%
Rum Slim 131.63 KiB 131.70 KiB +76 B +0.06%
Worker 22.99 KiB 22.99 KiB 0 B 0.00%

🔗 RealWorld

@datadog-datadog-prod-us1
Copy link
Copy Markdown

datadog-datadog-prod-us1 Bot commented Feb 25, 2026

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 20 Pipeline jobs failed

DataDog/browser-sdk | build-and-lint   View in Datadog   GitLab

🛟 This job is unlikely to succeed on retry. Please review your pipeline configuration. Lockfile modification forbidden: The lockfile would have been modified by this install.

DataDog/browser-sdk | build-bundle   View in Datadog   GitLab

🛟 This job is unlikely to succeed on retry. Please review your pipeline configuration. The lockfile would have been modified by this install, which is explicitly forbidden. Command terminated with exit code 1.

DataDog/browser-sdk | bundle-size   View in Datadog   GitLab

🛟 This job is unlikely to succeed on retry. Please review your pipeline configuration. The lockfile would have been modified by this install, which is explicitly forbidden.

View all 20 failed jobs.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 026364b | Docs | Datadog PR Page | Give us feedback!

@mormubis mormubis force-pushed the adlrb/ssi-remote-config branch from c8d543d to bf0351d Compare March 13, 2026 15:32
@mormubis mormubis force-pushed the adlrb/ssi-build-site-host branch from a9a703b to 55c2fbe Compare March 13, 2026 15:34
@mormubis mormubis force-pushed the adlrb/ssi-remote-config branch from bf0351d to 9b45817 Compare March 13, 2026 15:35
@mormubis mormubis force-pushed the adlrb/ssi-build-site-host branch from 55c2fbe to acbc310 Compare March 17, 2026 09:46
@mormubis mormubis force-pushed the adlrb/ssi-remote-config branch from 62b7c0b to adbf904 Compare March 17, 2026 14:52
@mormubis mormubis changed the base branch from adlrb/ssi-build-site-host to main May 29, 2026 10:04
@mormubis mormubis force-pushed the adlrb/ssi-remote-config branch from 341f17a to 3d0af4b Compare May 29, 2026 10:04
@mormubis mormubis force-pushed the adlrb/ssi-remote-config branch from 90ab4b6 to 026364b Compare June 1, 2026 15:38
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