|
| 1 | +--- |
| 2 | +title: SharePoint Framework v1.12.1 release notes |
| 3 | +description: Release notes for the SharePoint Framework v1.12.1 release |
| 4 | +ms.date: 04/13/2021 |
| 5 | +ms.prod: sharepoint |
| 6 | +localization_priority: Priority |
| 7 | +--- |
| 8 | +# SharePoint Framework v1.12.1 release notes |
| 9 | + |
| 10 | +This release introduces a new property & event in the Web Part API to detect the rendering width (and changes), improved support for Microsoft Teams solutions, and updates supported versions of Node.js. |
| 11 | + |
| 12 | +**Released:** TBD Q2, 2021 |
| 13 | + |
| 14 | +[!INCLUDE [spfx-release-candidate](../../includes/snippets/spfx-release-candidate.md)] |
| 15 | + |
| 16 | +## Upgrading projects from v1.11.0 to v1.12.1 |
| 17 | + |
| 18 | +1. In the project's **package.json** file, identify all SPFx v1.11.0 packages. For each SPFx package: |
| 19 | + 1. Uninstall the existing v1.11.0 package: |
| 20 | + |
| 21 | + ```console |
| 22 | + npm uninstall @microsoft/{spfx-package-name}@1.11.0 |
| 23 | + ``` |
| 24 | + |
| 25 | + 1. Install the refreshed v1.12 {version-release} package: |
| 26 | + |
| 27 | + ```console |
| 28 | + npm install @microsoft/{spfx-package-name}@1.12.1 --save --save-exact |
| 29 | + ``` |
| 30 | + |
| 31 | +> [!TIP] |
| 32 | +> The [CLI for Microsoft 365](https://aka.ms/o365cli) provides an easy step-by-step guidance to [upgrade](https://pnp.github.io/cli-microsoft365/cmd/spfx/project/project-upgrade/) your solutions to latest SharePoint Framework version. |
| 33 | + |
| 34 | +## New features and capabilities |
| 35 | + |
| 36 | +- The **Sync to Teams** button in the Tenant App Catalog will use the Teams app manifest defined in the solution if present to create and publish a Teams app package to Microsoft Teams. If an app manifest file is not present, SharePoint will dynamically generate one. |
| 37 | + - *See [Deployment options for SharePoint Framework solutions for Microsoft Teams](deployment-spfx-teams-solutions.md) for more details.* |
| 38 | +- A new API has been added to the SPFx web part class to determine the rendered width of a web part and optionally handle an event when it changes. |
| 39 | + - *See [Determine the rendered web part size](web-parts/basics/determine-web-part-width.md) for more details.* |
| 40 | +- Preliminary support for Microsoft Teams meeting apps with the SharePoint Framework - full support is pending a fix for server side regression |
| 41 | + |
| 42 | +## Changes in this release |
| 43 | + |
| 44 | +- Add support for **Node.js v12.x & v14.x** |
| 45 | + - *See [Set up your SharePoint Framework development environment](set-up-your-development-environment.md) for details.* |
| 46 | + - **Gulp v4** (installed globally) is required (*see [Regarding Gulp versions & Node.js v12+](#gulp-versions--nodejs-v12) for details*) |
| 47 | +- For all projects: |
| 48 | + - Update the default version of TypeScript to **v3.7** (*via **@microsoft/rush-stack-compiler-3.7** v0.2.3*) |
| 49 | + - Update the **Gulp** version used to **v4.0.2** |
| 50 | +- For projects that use React: |
| 51 | + - Update the React NPM packages (**react** & **react-dom**) to **v16.9.0**. |
| 52 | + - Update the Office UI Fabric React NPM package / Microsoft Fluent UI (**office-ui-fabric-react**) to **v7.156.0**. |
| 53 | + |
| 54 | +## Deprecations and removed items in this release |
| 55 | + |
| 56 | +- **Gulp v3** is not supported (*neither globally nor locally installed*) when using Node.js v12+. |
| 57 | +- **Local workbench is deprecated** - This is the last release that will include support for the local workbench. |
| 58 | +- This is the last release that will include a single generator that works for on-prem and SharePoint Online. You'll still be able to create projects for on-prem, just by using the older generator. |
| 59 | + |
| 60 | +### Gulp versions & Node.js v12+ |
| 61 | + |
| 62 | +Gulp v3 isn't supported with Node.js v12+ (*ref [gulpjs/gulp/#2324](https://github.com/gulpjs/gulp/issues/2324)*). |
| 63 | + |
| 64 | +This is not a change with SPFx. Its mentioned here to bring attention to it as this SPFx release adds support for Node.js v12. |
0 commit comments