Skip to content

fix(server-ai): unpin peer depedency reference#1788

Open
joker23 wants to merge 1 commit into
mainfrom
skz/sdk-2639/server-ai-peer-deps
Open

fix(server-ai): unpin peer depedency reference#1788
joker23 wants to merge 1 commit into
mainfrom
skz/sdk-2639/server-ai-peer-deps

Conversation

@joker23

@joker23 joker23 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This PR will unpin the sdk-server-common package from the peer deps of server-ai

The server common package seems to be only used for typing. I chose a more conservative floor of 2.0.0 to match more versions. We will reassess if there are any issues with this.


Note

Low Risk
Single package.json peer range change with no runtime code; low risk unless older 2.x common releases break the typing surface server-ai relies on.

Overview
@launchdarkly/server-sdk-ai no longer requires an exact @launchdarkly/js-server-sdk-common peer version. The peer range changes from 2.19.2 to ^2.0.0, so apps can pair server-ai with any 2.x server common release instead of being locked to one patch.

The devDependency on 2.19.2 is unchanged; only install-time peer resolution is affected. Server-ai still imports shared types such as LDContext and LDLogger from that package.

Reviewed by Cursor Bugbot for commit 1c1907b. Bugbot is set up for automated code reviews on this repo. Configure here.

@joker23 joker23 requested a review from a team as a code owner July 6, 2026 18:47
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 26365 bytes
Compressed size limit: 29000
Uncompressed size: 129044 bytes

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 38747 bytes
Compressed size limit: 39000
Uncompressed size: 212249 bytes

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179504 bytes
Compressed size limit: 200000
Uncompressed size: 831427 bytes

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 32027 bytes
Compressed size limit: 34000
Uncompressed size: 114248 bytes

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

"typescript-eslint": "^8.0.0"
},
"peerDependencies": {
"@launchdarkly/js-server-sdk-common": "2.19.2"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm. This one is a bit more curious and I am less sure about the safety. But I assume we are probably only using safe API types from here.

@joker23 joker23 Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yea I was debating what to do about this one honestly... it doesn't make much sense to me to pin peer deps and I can't really imagine how this would be used... from the package itself, it looks like it only uses LDContext, LDFlagValue, and LDLogger... so I think this should be fine.

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