Skip to content

Releases: microsoftgraph/msgraph-sdk-javascript

2.0.0

27 Aug 05:45
Compare
Choose a tag to compare

New Features (Breaking Changes)

Refer this guide for migrating from 1.x.x to 2.x.x

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.

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.

Bug Fixes

2.0.0-Preview.5

14 Aug 09:49
Compare
Choose a tag to compare
2.0.0-Preview.5 Pre-release
Pre-release

Bug Fixes

  • #207
  • #204
  • Updating dependencies for security issue

2.0.0-Preview.4

11 Jul 09:35
Compare
Choose a tag to compare
2.0.0-Preview.4 Pre-release
Pre-release

Fixes

  • Returning undefined token in case if the error for acquireTokenSilent is not InteractionRequiredAuthError in ImplicitMSALAuthenticationProvider.

2.0.0-Preview.3

01 Jul 09:50
Compare
Choose a tag to compare
2.0.0-Preview.3 Pre-release
Pre-release

Bug Fix

#189

2.0.0-Preview.2

25 Jun 05:13
Compare
Choose a tag to compare
2.0.0-Preview.2 Pre-release
Pre-release

Bug Fixes:

2.0.0-Preview.1

19 Jun 09:32
f813590
Compare
Choose a tag to compare
2.0.0-Preview.1 Pre-release
Pre-release

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

Refer this guide for migrating from 1.x.x to 2.x.x.

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.

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.

1.7.0

15 May 03:51
Compare
Choose a tag to compare

Features

  • Large file upload with customized options - This enables uploading files to SharePoint, OneDrive for Business

Changes

  • Added document for calling pattern
  • Added Telemetry Handler

Bug Fixes

1.7.0-Preview.3

11 May 06:49
Compare
Choose a tag to compare
1.7.0-Preview.3 Pre-release
Pre-release

Features

  • Large file upload with customized options - This enables uploading files to SharePoint

Bug Fixes

1.7.0-Preview.2

10 May 06:45
Compare
Choose a tag to compare
1.7.0-Preview.2 Pre-release
Pre-release

Changes

  • Added document for calling pattern
  • Fixing #171

1.7.0-Preview.1

29 Apr 05:28
Compare
Choose a tag to compare
1.7.0-Preview.1 Pre-release
Pre-release

Changes:

  • Added Telemetry Handler