OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
453 stars 185 forks source link

feat: remove deprecated codes and upgrade dependency versions #12453

Open yiqing-zhao opened 2 days ago

yiqing-zhao commented 2 days ago

https://msazure.visualstudio.com/Microsoft%20Teams%20Extensibility/_workitems/edit/25506981

Remove deprecated codes and dependencies to avoid node checker warning in templates. Update dependency versions and pacakge version.

codecov[bot] commented 1 day ago

Codecov Report

Attention: Patch coverage is 89.33333% with 8 lines in your changes missing coverage. Please review.

Project coverage is 89.72%. Comparing base (d8792ed) to head (42731ff).

Files with missing lines Patch % Lines
packages/sdk/src/util/utils.ts 73.68% 0 Missing and 5 partials :warning:
packages/sdk-react/src/useGraph.ts 0.00% 1 Missing :warning:
.../sdk/src/conversation/sso/botSsoExecutionDialog.ts 50.00% 0 Missing and 1 partial :warning:
...k/src/conversationWithCloudAdapter/notification.ts 95.45% 0 Missing and 1 partial :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453/graphs/tree.svg?width=650&height=150&src=pr&token=QQX8WVOEC3&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev)](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev) ```diff @@ Coverage Diff @@ ## dev #12453 +/- ## ========================================== - Coverage 94.63% 89.72% -4.91% ========================================== Files 583 573 -10 Lines 34607 34020 -587 Branches 6694 6776 +82 ========================================== - Hits 32751 30526 -2225 + Misses 1583 1535 -48 - Partials 273 1959 +1686 ``` | [Files with missing lines](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev) | Coverage Δ | | |---|---|---| | [packages/sdk-react/src/useData.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk-react%2Fsrc%2FuseData.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrLXJlYWN0L3NyYy91c2VEYXRhLnRz) | `90.90% <ø> (-9.10%)` | :arrow_down: | | [packages/sdk-react/src/useTeams.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk-react%2Fsrc%2FuseTeams.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrLXJlYWN0L3NyYy91c2VUZWFtcy50cw==) | `95.65% <100.00%> (-2.18%)` | :arrow_down: | | [packages/sdk-react/src/useTeamsUserCredential.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk-react%2Fsrc%2FuseTeamsUserCredential.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrLXJlYWN0L3NyYy91c2VUZWFtc1VzZXJDcmVkZW50aWFsLnRz) | `68.75% <ø> (-12.50%)` | :arrow_down: | | [packages/sdk/src/bot/teamsBotSsoPrompt.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk%2Fsrc%2Fbot%2FteamsBotSsoPrompt.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrL3NyYy9ib3QvdGVhbXNCb3RTc29Qcm9tcHQudHM=) | `86.55% <100.00%> (-6.51%)` | :arrow_down: | | [packages/sdk/src/conversation/interface.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk%2Fsrc%2Fconversation%2Finterface.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrL3NyYy9jb252ZXJzYXRpb24vaW50ZXJmYWNlLnRz) | `100.00% <ø> (ø)` | | | [...c/conversation/middlewares/cardActionMiddleware.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk%2Fsrc%2Fconversation%2Fmiddlewares%2FcardActionMiddleware.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrL3NyYy9jb252ZXJzYXRpb24vbWlkZGxld2FyZXMvY2FyZEFjdGlvbk1pZGRsZXdhcmUudHM=) | `55.55% <ø> (-17.78%)` | :arrow_down: | | [...ation/sso/defaultBotSsoExecutionActivityHandler.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk%2Fsrc%2Fconversation%2Fsso%2FdefaultBotSsoExecutionActivityHandler.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrL3NyYy9jb252ZXJzYXRpb24vc3NvL2RlZmF1bHRCb3RTc29FeGVjdXRpb25BY3Rpdml0eUhhbmRsZXIudHM=) | `70.96% <ø> (ø)` | | | [packages/sdk/src/conversation/storage.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk%2Fsrc%2Fconversation%2Fstorage.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrL3NyYy9jb252ZXJzYXRpb24vc3RvcmFnZS50cw==) | `82.14% <100.00%> (-11.20%)` | :arrow_down: | | [packages/sdk/src/core/errors.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk%2Fsrc%2Fcore%2Ferrors.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrL3NyYy9jb3JlL2Vycm9ycy50cw==) | `100.00% <ø> (ø)` | | | [packages/sdk/src/credential/appCredential.ts](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree&filepath=packages%2Fsdk%2Fsrc%2Fcredential%2FappCredential.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvc2RrL3NyYy9jcmVkZW50aWFsL2FwcENyZWRlbnRpYWwudHM=) | `95.34% <100.00%> (-4.66%)` | :arrow_down: | | ... and [8 more](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev) | | ... and [277 files with indirect coverage changes](https://app.codecov.io/gh/OfficeDev/teams-toolkit/pull/12453/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev)