Skip to content

Release Notes for SPFx Package Version 1.4.1

Luca Bandinelli edited this page Feb 14, 2018 · 7 revisions

What is New in This Release

Node 8 and NPM 6 Support

Support of Node 8 and NPM 6 is now available in SPFx. This fixes the issue reported here: https://github.com/SharePoint/sp-dev-docs/issues/1002

Other Relevant Fixes

Fixed issue in the generator that prevented activation of new versions of SPFx packages
Issue reported here: https://github.com/SharePoint/sp-dev-docs/issues/775

New APIs

@microsoft/sp-http

  • Initial alpha release of AadTokenProvider class*
  • Initial beta release of AadHttpClient class

@microsoft/sp-client-preview

  • Initial beta release of MSGraphClient class

Tutorials for the APIs are available here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aad-tutorial

AadHttpClient

AadHttpClient is used to perform REST calls against an Azure AD Application. For communicating with SharePoint, use the SPHttpClient class instead. For communicating with Microsoft Graph, use the MSGraphClient class. Find out more about this class here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient

AadTokenProvider

*This class is an internal class used by AadHttpClient and MSGraphClient to obtain OAuth2 tokens from Azure AD.Although the class is marked public right now, we are planning to change it as internal. For that reasons solutions should only rely on AadHttpClient and MSGraphClient classes.

MSGraphClient

MSGraphClient is used to perform REST calls against Microsoft Graph. The Microsoft Graph JavaScript client library is a lightweight wrapper around the Microsoft Graph API. This class allows developers to start making REST calls to MSGraph without needing to initialize the the MSGraph client library. If a custom configuration is desired, the MSGraphClient api function needs to be provided with that custom configuration for every request.

Find out more about this class here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-msgraph

Clone this wiki locally