Skip to content

Commit 5d542b9

Browse files
committed
Remove version in user agent from web and react-native.
1 parent f8555c2 commit 5d542b9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/react-native/src/sync/stream/ReactNativeRemote.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import { BSON } from 'bson';
1818

1919
import { fetch } from 'react-native-fetch-api';
2020

21-
import { version as POWERSYNC_RN_VERSION } from '../../../package.json';
22-
2321
export const STREAMING_POST_TIMEOUT_MS = 30_000;
2422

2523
/**
@@ -48,7 +46,7 @@ export class ReactNativeRemote extends AbstractRemote {
4846
getUserAgent(): string {
4947
return [
5048
super.getUserAgent(),
51-
`powersync-react-native/${POWERSYNC_RN_VERSION}`,
49+
`powersync-react-native`,
5250
`react-native/${Platform.constants.reactNativeVersion.major}.${Platform.constants.reactNativeVersion.minor}`,
5351
`${Platform.OS}/${Platform.Version}`
5452
].join(' ');

packages/web/src/db/sync/WebRemote.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
RemoteConnector
1111
} from '@powersync/common';
1212

13-
import { version as POWERSYNC_WEB_VERSION } from '../../../package.json';
1413
import { getUserAgentInfo } from './userAgent';
1514

1615
/*
@@ -37,7 +36,7 @@ export class WebRemote extends AbstractRemote {
3736
}
3837

3938
getUserAgent(): string {
40-
let ua = [super.getUserAgent(), `powersync-web/${POWERSYNC_WEB_VERSION}`];
39+
let ua = [super.getUserAgent(), `powersync-web`];
4140
try {
4241
ua.push(...getUserAgentInfo());
4342
} catch (e) {

0 commit comments

Comments
 (0)