Skip to content

Commit 9d81173

Browse files
committed
Updating 1.16 release notes
1 parent f3cb5c2 commit 9d81173

File tree

2 files changed

+96
-57
lines changed

2 files changed

+96
-57
lines changed

docs/spfx/release-1.16.md

Lines changed: 95 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
---
2-
title: SharePoint Framework v1.16 preview release notes
3-
description: Release notes for the SharePoint Framework v1.16 preview release
4-
ms.date: 11/14/2022
2+
title: SharePoint Framework v1.16 release notes
3+
description: Release notes for the SharePoint Framework v1.16 release
4+
ms.date: 11/15/2022
55
ms.localizationpriority: high
66
---
77
# SharePoint Framework v1.16 release notes
88

9-
This release introduces updates across the features around Microsoft Viva, Microsoft Teams and SharePoint.
9+
This release introduces updates across the features around Microsoft Viva, Microsoft Teams, Outlook, Office and SharePoint.
1010

11-
[!INCLUDE [spfx-release-beta](../../includes/snippets/spfx-release-beta.md)]
12-
13-
- rc.0 **Released:** November 2, 2022
14-
- beta.2 **Released:** October 26, 2022
15-
- beta.1 **Released:** August 30, 2022
11+
**Released:** November 15, 2022
1612

1713
[!INCLUDE [spfx-release-notes-common](../../includes/snippets/spfx-release-notes-common.md)]
1814

19-
## Install the latest preview version
15+
## Install the latest version
2016

21-
Install the preview release of the SharePoint Framework (SPFx) by including the **@next** tag:
17+
Install the latest release of the SharePoint Framework (SPFx) by including the **@latest** tag:
2218

2319
```console
2420
npm install @microsoft/generator-sharepoint@next --global
25-
```
21+
```
2622

27-
## Upgrading projects from v1.15.2 to v1.16 preview
23+
## Upgrading projects from v1.15.2 to v1.16
2824

2925
1. In the project's **package.json** file, identify all SPFx v1.15.2 packages. For each SPFx package:
3026
1. Uninstall the existing v1.15.2 package:
@@ -33,16 +29,59 @@ npm install @microsoft/generator-sharepoint@next --global
3329
npm uninstall @microsoft/{spfx-package-name}@1.15.2
3430
```
3531

36-
2. Install the new v1.16 preview package:
32+
2. Install the new v1.16 package:
3733

3834
```console
39-
npm install @microsoft/{spfx-package-name}@next --save --save-exact
35+
npm install @microsoft/{spfx-package-name}@latest --save --save-exact
4036
```
4137

4238
[!INCLUDE [spfx-release-upgrade-tip](../../includes/snippets/spfx-release-upgrade-tip.md)]
4339

4440
## New features and capabilities
4541

42+
### Publish Teams solutions build with SPFx to Outlook and Office
43+
44+
As this SPFx version supports the Teams JavaScript SDK v2, you can now start building experiences also for Outlook and for Office.com (Microsoft 365 app) with SharePoint Framework (SPFx). This will enable the same solution to be exposed within Microsoft, Outlook, Office.com and in SharePoint without specific code changes.
45+
46+
You can use the Teams JavaScript SDK v2 to detect the host of the solution as shown on the following code. If the `this.context.sdks.microsoftTeams` is empty, then code is executed in the SharePoint.
47+
48+
```typescript
49+
// if running in Microsoft Teams, Outlook, or Office...
50+
if (!!this.context.sdks.microsoftTeams) {
51+
const teamsContext = await this.context.sdks.microsoftTeams.teamsJs.app.getContext();
52+
switch (teamsContext.app.host.name.toLowerCase()) {
53+
case 'teams':
54+
// RUNNING IN MICROSOFT TEAMS
55+
case 'office':
56+
// RUNNING IN OFFICE / OFFICE.COM
57+
case 'outlook':
58+
// RUNNING IN OUTLOOK
59+
default:
60+
throw new Error('Unknown host');
61+
}
62+
} else {
63+
// RUNNING IN SHAREPOINT
64+
}
65+
```
66+
67+
See more details around these options from following article
68+
69+
* [Extend Outlook and Office with the SharePoint Framework](office/overview.md)
70+
71+
> [!Important]
72+
> Using the Teams SDK v2 within the SharePoint Framework solutions is generally available starting from the 1.16 version, enabling usage of the Teams SDK v2 immediately.
73+
> Support for publishing Teams apps (including SPFx solutions) within the Outlook and in Office.com (Microsoft 365 app) is however still in preview and is planned to be generally available for both mobile and desktop experiences within the first half of calendar year 2023.
74+
75+
### Teams JavaScript SDK v2 support
76+
77+
This version supports the teams-js v2. `this.context.sdks.microsoftTeams.teamsJs` will return version 2 of the SDK. `this.context.sdks.microsoftTeams.context` will still return v1 context for backward compatibility.
78+
79+
> [!NOTE]
80+
> teams-js v2 is backward compatible with teams-js v1. We will continue to support v1 for existing solutions.
81+
82+
> [!TIP]
83+
> Teams JavaScript SDK v2 enables new scenarios for developers. See following announcement for additional details on the Teams JS SDK v2 capabilities - [Microsoft Teams JS SDK v2 is now generally available](https://devblogs.microsoft.com/microsoft365dev/microsoft-teams-js-sdk-v2-is-now-generally-available/)
84+
4685
### teams-js v2 typings support
4786

4887
Starting with this version the `context.sdks.microsoftTeams.teamJs` property in the web part has type of teams-js SDK v2. This enables usage of the new features of the teams-js SDK v2, including new hosts: Outlook and Office 365 app (previously called office.com).
@@ -97,10 +136,40 @@ public renderCompleted(didUpdate: boolean): void { /* ... */ }
97136

98137
Adding a new optional property `imageAltText` for `IImageCardParameters` will add `alt` text attribute to the image html element.
99138

139+
### New Form Customizer context properties
140+
141+
#### List item fields' values
142+
143+
Form Customizer's context for Edit and Display forms now contains the list item fields' values in standard `odata` format.
144+
145+
```typescript
146+
IFormCustomizerContext.item?: IListItem;
147+
```
148+
149+
#### List form JSON formatting configuration
150+
151+
Form Customizer's context provides information about applied list form JSON Formatting. Use `contentType` property to access the configuration.
152+
153+
```typescript
154+
IFormCustomizerContext.contentType.ClientFormCustomFormatter: string | undefined;
155+
```
156+
157+
### Remove NodeJS v12 and v14 support
158+
159+
Node.js v12 & v14 are no longer supported. SPFx v1.16 requires Node.js v16.
160+
161+
> [!NOTE]
162+
> Node.js v18 support is scheduled for the first half of the 2023 calendar year.
163+
164+
## Preview features
165+
100166
### Web part Top Actions
101167

102168
Top Actions allow developers to add custom actions to web part's command bar. The feature is similar to property pane controls, but based on cleaner UI approach.
103169

170+
> [!NOTE]
171+
> Top Actions is released as a preview version as part of the 1.16 release.
172+
104173
![Top Actions](../images/webpart-top-actions.png)
105174

106175
To add top actions, developers can use the `getTopActionsConfiguration` method.
@@ -124,39 +193,10 @@ export interface ITopActions {
124193
> Although type of Top Action Configuration is `IPropertyPaneField<any>` we currently support buttons and choice groups only.
125194
> It means you can use either `PropertyPaneChoiceGroup(...)` and `PropertyPaneButton(...)`, or specify your own configurations that will resolve to `IPropertyPaneField<IPropertyPaneChoiceGroupProps>` and `IPropertyPaneField<IPropertyPaneButtonProps>`
126195
196+
See more details on the code level guidance from the following article
127197

128-
### New Form Customizer context properties
129-
130-
#### List item fields' values
131-
132-
Form Customizer's context for Edit and Display forms now contains the list item fields' values in standard `odata` format.
133-
134-
```typescript
135-
IFormCustomizerContext.item?: IListItem;
136-
```
137-
138-
#### List form JSON formatting configuration
139-
140-
Form Customizer's context provides information about applied list form JSON Formatting. Use `contentType` property to access the configuration.
141-
142-
```typescript
143-
IFormCustomizerContext.contentType.ClientFormCustomFormatter: string | undefined;
144-
```
145-
146-
### Teams JavaScript SDK v2 support
147-
148-
We're rolling our support for teams-js v2. `this.context.sdks.microsoftTeams.teamsJs` will return v2 as soon as service code is rolled out to the tenant. `this.context.sdks.microsoftTeams.context` will still return v1 context for backward compatibility.
149-
150-
> [!NOTE]
151-
> teams-js v2 is backward compatible with teams-js v1. We will continue to support v1 for existing solutions.
152-
> We will add support for teams-js v2 context in later beta releases.
198+
* [link](https://www.fi)
153199

154-
> [!TIP]
155-
> Teams JavaScript SDK v2 enables new scenarios for developers. See following announcement for additional details on the Teams JS SDK v2 capabilities - [Microsoft Teams JS SDK v2 is now generally available](https://devblogs.microsoft.com/microsoft365dev/microsoft-teams-js-sdk-v2-is-now-generally-available/)
156-
157-
### Remove NodeJS v12 and v14 support
158-
159-
Node.js v12 & v14 are no longer supported. SPFx v1.16 requires Node.js v16 LTS.
160200

161201
## Deprecations
162202

@@ -165,8 +205,15 @@ Node.js v12 & v14 are no longer supported. SPFx v1.16 requires Node.js v16 LTS.
165205

166206
## Fixed Issues
167207

168-
### September-October Timeframe
208+
Here's a list of specific issues fixed around SharePoint Framework since the previous public release.
169209

210+
### August-November Timeframe
211+
212+
- [#8146](https://github.com/SharePoint/sp-dev-docs/issues/8146) - SPFX Application Customizer breaks Anonymous Links for PDF Files
213+
- [#8266](https://github.com/SharePoint/sp-dev-docs/issues/8266) - SPFx 1.15 - Form Customiser does not work in View History
214+
- [#8272](https://github.com/SharePoint/sp-dev-docs/issues/8272) - SPFx 1.15 - Getting error when use form customier to view existing list item in Classic mode
215+
- [#8279](https://github.com/SharePoint/sp-dev-docs/issues/8279) - New icons in production environments
216+
- [#8301](https://github.com/SharePoint/sp-dev-docs/issues/8301) - Error When Revisiting Custom Teams ?app=portals App
170217
- [#8372](https://github.com/SharePoint/sp-dev-docs/issues/8372) - Applying permissions on Form Customizer
171218
- [#8379](https://github.com/SharePoint/sp-dev-docs/issues/8379) - SPFx `ListViewCommandSet` - `this.context.listView.selectedRows` is wrong in grouped lists
172219
- [#8467](https://github.com/SharePoint/sp-dev-docs/issues/8467) - Buttons (`onClick` events) in `BaseDialog` no longer working - ListView Command Set
@@ -177,12 +224,4 @@ Node.js v12 & v14 are no longer supported. SPFx v1.16 requires Node.js v16 LTS.
177224
- [#7324](https://github.com/SharePoint/sp-dev-docs/issues/7324) - SPFx license does not permit commercial use
178225
- [#8331](https://github.com/SharePoint/sp-dev-docs/issues/8331) - Mechanism to version the preconfiguredEntries in the manifest
179226
- [#8510](https://github.com/SharePoint/sp-dev-docs/issues/8510) - SPFx sudden Minified React error #321
180-
- [#8496](https://github.com/SharePoint/sp-dev-docs/issues/8496) - React version mismatch causes property pane not displaying
181-
182-
### August Timeframe
183-
184-
- [#8146](https://github.com/SharePoint/sp-dev-docs/issues/8146) - SPFX Application Customizer breaks Anonymous Links for PDF Files
185-
- [#8266](https://github.com/SharePoint/sp-dev-docs/issues/8266) - SPFx 1.15 - Form Customiser does not work in View History
186-
- [#8272](https://github.com/SharePoint/sp-dev-docs/issues/8272) - SPFx 1.15 - Getting error when use form customier to view existing list item in Classic mode
187-
- [#8279](https://github.com/SharePoint/sp-dev-docs/issues/8279) - New icons in production environments
188-
- [#8301](https://github.com/SharePoint/sp-dev-docs/issues/8301) - Error When Revisiting Custom Teams ?app=portals App
227+
- [#8496](https://github.com/SharePoint/sp-dev-docs/issues/8496) - React version mismatch causes property pane not displaying

docs/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@
458458
items:
459459
- name: Overview
460460
href: spfx/roadmap.md
461-
- name: SPFx v1.16.0 - November 2, 2022
461+
- name: SPFx v1.16.0 - November 15, 2022
462462
href: spfx/release-1.16.md
463463
- name: SPFx v1.15.2 - August 2, 2022
464464
href: spfx/release-1.15.2.md

0 commit comments

Comments
 (0)