Skip to content

2.0.0 Preview Changes

Muthurathinam edited this page May 29, 2019 · 8 revisions

New Features (Breaking Changes)

We are excited to announce that we will be releasing the preview for version 2.0.0 which will have the following changes

Polyfilling

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-web.js and 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. Both graph-js-sdk.js and graph-es-sdk.js will not depend on the isomorphic-fetch and es6-promise anymore.

Getting Raw Response

When making request using callback method raw response will not be passed as the param to the callback, instead one can get the same by using .responseType(ResponseType.RAW).

Renaming MSALAuthenticationProvider

Authentication provider and its options for MSAL library are now renamed from MSALAuthenticationProvider to ImplicitMSALAuthenticationProvider.

Initializing 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

Clone this wiki locally