Skip to content

Commit 51f4b9a

Browse files
committed
rm attributes
1 parent d0fe207 commit 51f4b9a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Lib.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,6 @@ export interface FeatureFlagsOptions {
104104
* If not provided, rollout-based flags may return different results on each evaluation.
105105
*/
106106
visitorId?: string
107-
108-
/**
109-
* Visitor attributes for targeting rules.
110-
* Common attributes: cc (country), dv (device), br (browser), os (operating system), pg (page).
111-
*/
112-
attributes?: Record<string, string>
113107
}
114108

115109
/**
@@ -421,18 +415,14 @@ export class Lib {
421415

422416
try {
423417
const apiBase = this.getApiBase()
424-
const body: { pid: string; visitorId?: string; attributes?: Record<string, string> } = {
418+
const body: { pid: string; visitorId?: string } = {
425419
pid: this.projectID,
426420
}
427421

428422
if (options?.visitorId) {
429423
body.visitorId = options.visitorId
430424
}
431425

432-
if (options?.attributes) {
433-
body.attributes = options.attributes
434-
}
435-
436426
const response = await fetch(`${apiBase}/feature-flag/evaluate`, {
437427
method: 'POST',
438428
headers: {

0 commit comments

Comments
 (0)