|
| 1 | +--- |
| 2 | +title: SharePoint Framework v1.21 release notes |
| 3 | +description: Release notes for the SharePoint Framework v1.21 release. |
| 4 | +ms.date: 03/03/2025 |
| 5 | +ms.localizationpriority: high |
| 6 | +--- |
| 7 | +# SharePoint Framework v1.21 release notes |
| 8 | + |
| 9 | +This release focuses primarily on the new features within the [Microsoft Viva Connections](./viva/overview-viva-connections.md) side with two key new capabilities: new data visualization options for Card Views and HTML Quick View option for Viva Connections Quick Views. |
| 10 | + |
| 11 | +[!INCLUDE spfx-release-beta] |
| 12 | + |
| 13 | +beta.0 **Released:** Feburary 25, 2025 |
| 14 | + |
| 15 | +[!INCLUDE [spfx-release-notes-common](../../includes/snippets/spfx-release-notes-common.md)] |
| 16 | + |
| 17 | +## Install the latest version |
| 18 | + |
| 19 | +Install the latest generally available release of the SharePoint Framework (SPFx) by using the **@next** tag |
| 20 | + |
| 21 | +```console |
| 22 | +npm install @microsoft/generator-sharepoint@next --global |
| 23 | +``` |
| 24 | + |
| 25 | +## Upgrading projects from the SPFx v1.20 to v1.21 preview version |
| 26 | + |
| 27 | +In the project's **package.json** file, identify all SPFx v1.20 packages. For each SPFx package: |
| 28 | + |
| 29 | +1. Uninstall the existing v1.20 package: |
| 30 | + |
| 31 | + ```console |
| 32 | + npm uninstall @microsoft/{spfx-package-name}@1.20 |
| 33 | + ``` |
| 34 | + |
| 35 | +1. Install the new v1.21 preview package: |
| 36 | + |
| 37 | + ```console |
| 38 | + npm install @microsoft/{spfx-package-name}@next --save --save-exact |
| 39 | + ``` |
| 40 | + |
| 41 | +[!INCLUDE [spfx-release-upgrade-tip](../../includes/snippets/spfx-release-upgrade-tip.md)] |
| 42 | + |
| 43 | +## New features and capabilities |
| 44 | + |
| 45 | +### Flexible layout configuration options for web parts |
| 46 | + |
| 47 | +New flexible layout sizing options are introduced for the web part manifest. These cawn be used to adjust the default behaviour for the custom web parts as they are used within flexible layouts. |
| 48 | + |
| 49 | +```json |
| 50 | + "flexibleLayoutSizing": { |
| 51 | + "supportsDynamicResizing": true, |
| 52 | + "defaultRowHeight": 10, |
| 53 | + "defaultColumnWidth": 10 |
| 54 | + } |
| 55 | +``` |
| 56 | + |
| 57 | +> [!NOTE] |
| 58 | +> By default all custom web parts are supported in the flexible layout option and do not require any code level changes. |
| 59 | +
|
| 60 | + |
| 61 | + |
| 62 | +### Viva Connections card personalization support |
| 63 | + |
| 64 | +Viva Connections will start supporting end user configuration options for the dashboard. End users can add and remove cards from the dasbhoard based on their preference. Supported cards are explictly enabled for this scenario and also custom cards are supported. |
| 65 | + |
| 66 | +By default personalization is not allowed for the custom Viva Connections cards. |
| 67 | + |
| 68 | +```json |
| 69 | + "personalization": [ |
| 70 | + "Disallow" |
| 71 | + ] |
| 72 | +``` |
| 73 | + |
| 74 | +### Updating Teams JS SDK |
| 75 | + |
| 76 | +Default [Teams JavaScript SDK](https://github.com/OfficeDev/microsoft-teams-library-js) version for the SPFx powered solutions has been updated to version 2.32. |
| 77 | + |
| 78 | +## Deprecations |
| 79 | + |
| 80 | +No new updates. |
| 81 | + |
| 82 | +## Fixed Issues |
| 83 | + |
| 84 | +No new updates. |
| 85 | + |
| 86 | +## Feedback and issues |
| 87 | + |
| 88 | +We're interested on your feedback around the release. Do let us know any findings or other feedback using the [SPFx issue list](https://github.com/SharePoint/sp-dev-docs/issues). |
| 89 | + |
| 90 | +Happy coding! Sharing is caring! 🧡 |
0 commit comments