Skip to content

Commit c3cbd46

Browse files
committed
Merge remote-tracking branch 'origin/rlamb/fix-browser-contract-test-build' into rlamb/sdk-195/support-js-style-initialization
2 parents e020e86 + a83184d commit c3cbd46

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/sdk/browser/contract-tests/entity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"description": "Contract test service implementation for @launchdarkly/js-client-sdk",
77
"scripts": {
8-
"start": "vite --open=true",
8+
"start": "tsc --noEmit && vite --open=true",
99
"build": "tsc --noEmit && vite build",
1010
"lint": "eslint ./src",
1111
"prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../../.prettierignore"

packages/sdk/browser/contract-tests/entity/src/ClientEntity.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ function makeSdkConfig(options: SDKConfigParams, tag: string) {
6565
};
6666
}
6767

68+
cf.fetchGoals = false;
69+
6870
return cf;
6971
}
7072

packages/sdk/browser/src/BrowserClient.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import GoalManager from './goals/GoalManager';
1919
import { Goal, isClick } from './goals/Goals';
2020
import validateOptions, { BrowserOptions, filterToBaseOptions } from './options';
2121
import BrowserPlatform from './platform/BrowserPlatform';
22+
import { LDIdentifyOptions } from '@launchdarkly/js-client-sdk-common/dist/api/LDIdentifyOptions';
2223

2324
/**
2425
* We are not supporting dynamically setting the connection mode on the LDClient.
@@ -206,8 +207,8 @@ export class BrowserClient extends LDClientImpl {
206207
};
207208
}
208209

209-
override async identify(context: LDContext): Promise<void> {
210-
await super.identify(context);
210+
override async identify(context: LDContext, identifyOptions?: LDIdentifyOptions): Promise<void> {
211+
await super.identify(context, identifyOptions);
211212
this.goalManager?.startTracking();
212213
}
213214
>>>>>>> origin/rlamb/fix-browser-contract-test-build

0 commit comments

Comments
 (0)