Skip to content

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

Open
wants to merge 2 commits into
base: ta/fdv2-code-move-part2
Choose a base branch
from

Conversation

tanderson-ld
Copy link
Contributor

No description provided.

Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Size: 24112 bytes
Size limit: 25000

Copy link
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Size: 15786 bytes
Size limit: 20000

Copy link
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Size: 20730 bytes
Size limit: 21000

@tanderson-ld tanderson-ld changed the title Ta/fdv2 code move part3 chore: now utilizes FDv2 basis param and supports FDv1 fallback May 12, 2025
@tanderson-ld tanderson-ld changed the base branch from main to ta/fdv2-code-move-part2 May 12, 2025 21:03
@@ -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"
Copy link
Contributor Author

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"}]}',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FDv2 spec change.

@tanderson-ld tanderson-ld marked this pull request as ready for review May 14, 2025 19:35
@tanderson-ld tanderson-ld requested a review from a team as a code owner May 14, 2025 19:35
@tanderson-ld
Copy link
Contributor Author

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>;
Copy link
Member

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(
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants