SPFx 1.14 beta - can we get the MS Graph SDK updated? #7620
-
The Microsoft Graph SDK included in the dependency tree is still using v1.1.0 that was specified when MS Graph support was added to SPFx in v1.6.0. That version is over 3 years old... the current version is v3... can we get the dependency updated? Side benefit: developers shouldn't need to install the MS Graph JS SDK's type declarations as a separate package as they're included in the v3 SDK. TL;DRThe Microsoft Graph JS SDK @microsoft/microsoft-graph-client is added to projects as a dependency by the @microsoft/sp-http package. That SPFx package explicitly references it ias "dependencies": {
"@microsoft/microsoft-graph-client": "~1.1.0",
} Minimally, would be nice if the @microsoft/sp-http package's dependency specifies using the latest major version (v3, which is 5mo old at the time of this request): "dependencies": {
"@microsoft/microsoft-graph-client": "^3.0.0"
} Ideally, it gets all minor versions as well with each release: "dependencies": {
"@microsoft/microsoft-graph-client": "~3.0.0"
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
This is currently by design as the MS Graph SDK does not support running multiple versions of that package side-by-side on one page. This means that if you'd be using SPFx v1.0 and SPFx v1.14 in web parts on same page, there would be breaking issues for both web parts / components. We would love to use newer version of the Microsoft Graph JS SDK in the SharePoint Framework, but are blocked until side-by-side is supported on the Microsoft Graph SDK side. We are working though actively internally on this with the Microsoft Graph team, so you can expect this to change as soon as the side-by-side support is added in Graph side. This will not most likely happen by the SPFx 1.14 version, but let's see. |
Beta Was this translation helpful? Give feedback.
This is currently by design as the MS Graph SDK does not support running multiple versions of that package side-by-side on one page. This means that if you'd be using SPFx v1.0 and SPFx v1.14 in web parts on same page, there would be breaking issues for both web parts / components.
We would love to use newer version of the Microsoft Graph JS SDK in the SharePoint Framework, but are blocked until side-by-side is supported on the Microsoft Graph SDK side.
We are working though actively internally on this with the Microsoft Graph team, so you can expect this to change as soon as the side-by-side support is added in Graph side. This will not most likely happen by the SPFx 1.14 version, but le…