| title | SharePoint Framework v1.4.1 release notes |
|---|---|
| description | Release notes for the SharePoint Framework v1.4.1 release |
| ms.date | 09/08/2021 |
| ms.localizationpriority | high |
Released: February 15, 2018
[!INCLUDE spfx-release-notes-common]
In the project's package.json file, identify all SPFx v1.4 packages. For each SPFx package:
-
Uninstall the existing v1.4 package:
npm uninstall @microsoft/{spfx-package-name}@1.4 -
Install the refreshed v1.4.1 package:
npm install @microsoft/{spfx-package-name}@1.4.1.0 --save --save-exact
[!INCLUDE spfx-release-upgrade-tip]
Support of Node.js v8 (LTS) and NPM v5 is now available in SPFx.
Issue reported here: #1002
We've also updated the Set up your SharePoint Framework development environment article.
Following are new APIs available for preview usage within SharePoint Online. These are not meant to be used in production yet.
- Initial beta release of AadHttpClient class
- Initial beta release of AadTokenProvider class
- Initial beta release of MSGraphClient class
You can find a tutorial for these new APIs from the Office SharePoint Development documentation.
AadHttpClient is used to do REST calls against an Azure AD Application, for example third-party WebAPI hosted in Azure.
- For communicating with SharePoint, use the
SPHttpClientclass instead. - For communicating with Microsoft Graph, use the
MSGraphClientclass.
You can find more information on this new API from the Office SharePoint Development documentation:
MSGraphClient is used to do 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 MSGraph client library.
If a custom configuration is wanted, the MSGraphClient API function needs to be provided with that custom configuration for every request.
Important
Notice that this API is replacing the previously released GraphHttpClient, which is now considered to be deprecated.
This class is an internal class used by AadHttpClient and MSGraphClient to obtain OAuth2 tokens from Azure AD. Although the class is currently marked as public, we're planning to change it as internal. For that reasons solutions should only rely on AadHttpClient and MSGraphClient classes.
- Fixed an issue in the generator that prevented activation of new versions of SPFx packages.
- Symptoms - You deploy a new version of SharePoint Framework packages and you no longer see your web parts in web part picker.
-
Fix: To fully successfully fix this issue, you'll need to do following steps in your SharePoint Online tenants.
- Remove all instances of existing SharePoint Framework solutions from site level
- Remove SharePoint Framework solution from app catalog
- Upload new SharePoint Framework solution built with 1.4.1 version to your app catalog
- Install SharePoint Framework solutions back to sites.
[!NOTE] This issue is not happening for tenant-scoped SharePoint Framework solutions and it's not happening for SharePoint add-ins.
[!TIP] You might potentially take advantage of the Application Lifecycle Management (ALM) APIs to automate this needed process.
- The
GraphHttpClientAPI has been deprecated in favor of the newMSGraphClientintroduced in this release. TheGraphHttpClientwill be removed in a future release.