-
Notifications
You must be signed in to change notification settings - Fork 283
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
fix: [#4123][botframework-connector] upgrade and clean up dependencies #4161
fix: [#4123][botframework-connector] upgrade and clean up dependencies #4161
Conversation
Pull Request Test Coverage Report for Build 2197216988
💛 - Coveralls |
@@ -28,7 +28,7 @@ | |||
}, | |||
"dependencies": { | |||
"@azure/cognitiveservices-luis-runtime": "2.0.0", | |||
"@azure/ms-rest-js": "1.9.1", | |||
"@azure/ms-rest-js": "^2.6.1", |
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.
IIRC this is might be a breaking change due to the underlying library using fetch
instead of axios
. Would not upgrade this without deciding it's okay to take a breaking change./
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.
@ceciliaavila Can we confirm if this is a breaking change and if there are alternatives?
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.
Hi @tracyboehrer,
We reviewed the code where this library is used and the changes that its new versions introduced and consider that they are not breaking changes for us (we are not using the interfaces and methods that were updated).
We also tested the libraries with the azure/ms-rest-js upgraded version:
- We published the packages to a testing feed and ran the BotFramework-FunctionalTests pipelines. All tests passed (cards, proactive, authentication (single-tenant, multi-tenant, MSI), among others).
- We tested a sample using botframework-streaming and webchat and it worked.
- We tested the CoreBot sample connected to a LUIS app and it worked as expected.
However, as an alternative, we could leave this dependency as it was and update only azure/identity, and jsonwebtoken versions.
Please, let us know if you have any questions.
Fixes #4123 #4094
Description
This PR upgrades de dependencies in botframework-connector library to use the latest version of
@azure/ms-rest-js
,@azure/identity
, andjsonwebtoken
.Note: The consumer-tests check was updated to test against the TypeScript versions from 3.5 to 4.3.
Versions 3.3 and 3.4 were removed from the check, otherwise, azure/ms-rest-js version should be fixed in 2.0.0 to avoid failures.
Specific Changes
botframework-connector
's dependencies.@azure/ms-rest-js
in botbuilder and botbuilder-aibotFrameworkAdapter.test
. unit tests to access the headers as an array due to a change between ms-rest-js and nock.yarn.lock
with the new versions.run.ts
to test against TypeScript versions from 3.5 to 4.3.Testing
This image shows the unit tests passing after the upgrades.
