New Features (Breaking Changes)
Refer this guide for migrating from 1.x.x to 2.x.x
Removed polyfills for Fetch and Promise, Now its the responsibility of the library users to polyfill these based on their environment support needs.
New minified files
graph-js-sdk-core.js files are no longer available, new file named
graph-js-sdk.js will be shipped along with
graph-es-sdk.js will not depend on the
Getting Raw Response
Authentication provider and its options for MSAL library are now renamed from MSALAuthenticationProvider to ImplicitMSALAuthenticationProvider.
In order to create an instance of ImplicitMSALAuthenticationProvider previously named as MSALAuthenticaitonProvider now you can only pass an instance of MSAL's UserAgentApplication and MSALAuthenticationProviderOptions.
Creating MSAL's UserAgentApplication
MSAL changed its way of initializing UserAgentApplication (also called as MSALInstance) in v1.0.0. Since we updated our MSAL's dependency to latest stable version and ImplicitMSALAuthenticationProvider modified to adapt the same. Creating instance of ImplicitMSALAuthenticationProvider takes UserAgentApplication created as per MSAL v1.0.0.
Changing Default Content-Type in put method
Changed default Content-Type for a put request method to application/json, as it works with most of the cases. In case of putting payload other than JSON use
.header method to add custom Content-Type.