Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cnderrauber
Copy link
Contributor

relates livekit/protocol#1002

Also rename the enums according to js naming convention.

@changeset-bot
Copy link

changeset-bot bot commented Mar 26, 2025

🦋 Changeset detected

Latest commit: 357e58d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lukasIO
Copy link
Contributor

lukasIO commented Mar 26, 2025

there's a mismatch between the protocol defined backupcodecpolicy and the one redefined in the SDK, that's why the CI is failing

@github-actions
Copy link
Contributor

github-actions bot commented Mar 26, 2025

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 90.64 KB (+0.08% 🔺)
dist/livekit-client.umd.js 98.33 KB (+0.08% 🔺)

REGRESSION = 0,
SIMULCAST = 1,
// codec regression is preferred, the sfu will try to regress codec if possible but not guaranteed
PreferRegression = 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure if renaming these to camel case is worth it.

  1. it breaks for users who used the enum previously
  2. it needs the forced typecast with as unknown which will hide incompatibilities

I think it's better to leave them as uppercase for the reasons above

Copy link
Contributor Author

@cnderrauber cnderrauber Mar 27, 2025

Choose a reason for hiding this comment

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

for 1, I think no user use it now so it is not a problem. if uppercase is ok here, I can revert the naming change.

Copy link
Contributor

@lukasIO lukasIO left a comment

Choose a reason for hiding this comment

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

thanks!

@cnderrauber cnderrauber merged commit 615eb71 into main Mar 28, 2025
6 checks passed
@cnderrauber cnderrauber deleted the prefer_regression branch March 28, 2025 09:37
@github-actions github-actions bot mentioned this pull request Mar 28, 2025
svajunas-budrys pushed a commit to svajunas-budrys/client-sdk-js that referenced this pull request Jun 17, 2025
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.

3 participants