Skip to content
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

feat(ENGDESK-27107): Upgrade WebRTC library to support React 18 #321

Merged
merged 14 commits into from
Nov 16, 2023

Conversation

DeividVeloso
Copy link
Contributor

@DeividVeloso DeividVeloso commented Nov 14, 2023

  • Upgrade WebRTC library to support React 18

📝 To Do

  • All linters pass
  • All tests pass
  • Change documentation based on my changes

✋ Manual testing

  1. Navigate to packages/react-client
  2. Run yarn build
  3. it should build without issues.
  4. run yarn link
  5. go to feat(ENGDESK-27107): upgrade react version webrtc-examples#59
  6. clone and install dependencies
  7. run yarn link "@telnyx/react-client"
  8. run the project and make a call

🦊 Browser testing

Desktop

  • Edge (latest)
  • Chrome
  • Firefox
  • Safari

@@ -20,6 +20,7 @@
"build": "microbundle-crl --no-compress --format modern,cjs",
"start": "microbundle-crl watch --no-compress --format modern,cjs",
"prepare": "install-peers && run-s build",
"install-peers": "install-peers",
Copy link

Choose a reason for hiding this comment

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

Do we need this? It seems like this would install the peerDependencies as devDependencies, according to the documentation: https://www.npmjs.com/package/install-peers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was already there as you can see on the line above.


if (props?.onNotification) {
telnyxClient!.on('telnyx.notification', props.onNotification);
}
}
}, []);
Copy link

Choose a reason for hiding this comment

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

Do you need to add telnyxClient as a dependency or will this have client on initial render?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for cathing it, I added.

@DeividVeloso DeividVeloso merged commit 66d0c0e into main Nov 16, 2023
@DeividVeloso DeividVeloso deleted the upgrade-react branch November 16, 2023 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants