✨ Add @datadog/browser-remote-config standalone package#4239
Draft
mormubis wants to merge 2 commits into
Draft
Conversation
Bundles Sizes Evolution
|
|
This was referenced Feb 25, 2026
c8d543d to
bf0351d
Compare
a9a703b to
55c2fbe
Compare
bf0351d to
9b45817
Compare
55c2fbe to
acbc310
Compare
62b7c0b to
adbf904
Compare
341f17a to
3d0af4b
Compare
90ab4b6 to
026364b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-configfetchRemoteConfiguration(options)— fetch remote config with 30s timeoutRemoteConfigResult— discriminated union ({ ok: true; value } | { ok: false; error }) for safe TypeScript narrowing without non-null assertionsAbortSignalsupport — pass a signal for cancellation (e.g.AbortSignal.timeout(30_000))$cookie:name), DOM selectors ($dom:selector), JS paths ($js:path)buildSiteHostfrom@datadog/browser-core(PR1) — no type-assertion hackPurely additive
rum-core's existing
remoteConfigurationIdinit option is untouched. This PR only adds the new package.Testing