diff --git a/.changeset/tall-birds-protect.md b/.changeset/tall-birds-protect.md new file mode 100644 index 00000000000..e155f7fdc6e --- /dev/null +++ b/.changeset/tall-birds-protect.md @@ -0,0 +1,5 @@ +--- +"@firebase/data-connect": patch +--- + +- Modified user agent to use language instead of platform diff --git a/packages/data-connect/src/network/fetch.ts b/packages/data-connect/src/network/fetch.ts index 928b9f873cf..06ef6dd8285 100644 --- a/packages/data-connect/src/network/fetch.ts +++ b/packages/data-connect/src/network/fetch.ts @@ -26,7 +26,7 @@ export function initializeFetch(fetchImpl: typeof fetch): void { function getGoogApiClientValue(_isUsingGen: boolean): string { let str = 'gl-js/ fire/' + SDK_VERSION; if (_isUsingGen) { - str += ' web/gen'; + str += ' js/gen'; } return str; } diff --git a/packages/data-connect/test/unit/userAgent.test.ts b/packages/data-connect/test/unit/userAgent.test.ts index d218969fb75..9e9637a7ea6 100644 --- a/packages/data-connect/test/unit/userAgent.test.ts +++ b/packages/data-connect/test/unit/userAgent.test.ts @@ -57,7 +57,7 @@ describe('User Agent Tests', () => { 'https://firebasedataconnect.googleapis.com/v1beta/projects/p/locations/l/services/s/connectors/c:executeQuery', { headers: { - ['X-Goog-Api-Client']: 'gl-js/ fire/' + SDK_VERSION + ' web/gen' + ['X-Goog-Api-Client']: 'gl-js/ fire/' + SDK_VERSION + ' js/gen' } } );