-
Notifications
You must be signed in to change notification settings - Fork 22
chore: now utilizes FDv2 basis param and supports FDv1 fallback #849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: ta/fdv2-code-move-part2
Are you sure you want to change the base?
Conversation
@launchdarkly/js-sdk-common size report |
@launchdarkly/js-client-sdk-common size report |
@launchdarkly/js-client-sdk size report |
@@ -47,7 +47,7 @@ | |||
"dependencies": { | |||
"@launchdarkly/js-server-sdk-common": "2.15.1", | |||
"https-proxy-agent": "^5.0.1", | |||
"launchdarkly-eventsource": "2.1.0" | |||
"launchdarkly-eventsource": "2.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reviewers: This includes error header support needed for FDv2 fallback.
@@ -25,7 +25,7 @@ it('it sets basis to true when intent code is xfer-full', () => { | |||
}); | |||
|
|||
mockStream.simulateEvent('server-intent', { | |||
data: '{"payloads": [{"code": "xfer-full", "id": "mockId"}]}', | |||
data: '{"payloads": [{"intentCode": "xfer-full", "id": "mockId"}]}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FDv2 spec change.
Do not merge into target branch until target merges to main. |
@@ -134,4 +134,5 @@ export interface Requests { | |||
export interface HttpErrorResponse { | |||
message: string; | |||
status?: number; | |||
headers?: Record<string, string>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case of multiple values for a header is the second string some delimited form?
Object.entries(data).forEach(([namespace, items]) => { | ||
Object.keys(items || {}).forEach((key) => { | ||
const item = items[key]; | ||
promises.push( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will want to do some validation tests with real stores for this behavior.
No description provided.