Skip to content

Commit

Permalink
v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ploomiz committed Jun 27, 2022
1 parent b46936c commit 01a6f26
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/node-server-sdk.iassignmentevent.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface IAssignmentEvent
| --- | --- | --- |
| [experiment](./node-server-sdk.iassignmentevent.experiment.md) | string | An Eppo experiment key |
| [subject](./node-server-sdk.iassignmentevent.subject.md) | string | The entity or user that was assigned to a variation |
| [subjectAttributes](./node-server-sdk.iassignmentevent.subjectattributes.md) | Record<string, any> | |
| [timestamp](./node-server-sdk.iassignmentevent.timestamp.md) | string | The time the subject was exposed to the variation. |
| [variation](./node-server-sdk.iassignmentevent.variation.md) | string | The assigned variation |

11 changes: 11 additions & 0 deletions docs/node-server-sdk.iassignmentevent.subjectattributes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@eppo/node-server-sdk](./node-server-sdk.md) &gt; [IAssignmentEvent](./node-server-sdk.iassignmentevent.md) &gt; [subjectAttributes](./node-server-sdk.iassignmentevent.subjectattributes.md)

## IAssignmentEvent.subjectAttributes property

<b>Signature:</b>

```typescript
subjectAttributes: Record<string, any>;
```
4 changes: 2 additions & 2 deletions node-server-sdk.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export function getInstance(): IEppoClient;

// @public
export interface IAssignmentEvent {
// (undocumented)
[key: string]: any;
experiment: string;
subject: string;
// (undocumented)
subjectAttributes: Record<string, any>;
timestamp: string;
variation: string;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eppo/node-server-sdk",
"version": "1.0.3",
"version": "1.0.4",
"description": "Eppo node server SDK",
"main": "dist/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/assignment-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface IAssignmentEvent {
timestamp: string;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: any;
subjectAttributes: Record<string, any>;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function init(config: IClientConfig): Promise<IEppoClient> {
JITTER_MILLIS,
configurationRequestor.fetchAndStoreConfigurations.bind(configurationRequestor),
);
clientInstance = new EppoClient(configurationRequestor);
clientInstance = new EppoClient(configurationRequestor, config.assignmentLogger);
await poller.start();
return clientInstance;
}
Expand Down

0 comments on commit 01a6f26

Please sign in to comment.