forked from pnp/sp-dev-fx-webparts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded SPFx version to 1.19.0,BaseAdaptiveCardView changed to BaseA…
…daptiveCardQuickView
- Loading branch information
1 parent
6b91583
commit 49844c4
Showing
8 changed files
with
14,747 additions
and
8,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22,435 changes: 14,407 additions & 8,028 deletions
22,435
samples/react-my-onedrive-info/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
# Upgrade project react-my-one-drive-info-client-side-solution to v1.19.0 | ||
|
||
Date: 8/28/2024 | ||
|
||
## Findings | ||
|
||
Following is the list of steps required to upgrade your project to SharePoint Framework version 1.19.0. [Summary](#Summary) of the modifications is included at the end of the report. | ||
|
||
### FN001001 @microsoft/sp-core-library | Required | ||
|
||
Upgrade SharePoint Framework dependency package @microsoft/sp-core-library | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -SE @microsoft/[email protected] | ||
``` | ||
|
||
File: [./package.json:17:5](./package.json) | ||
|
||
### FN001021 @microsoft/sp-property-pane | Required | ||
|
||
Upgrade SharePoint Framework dependency package @microsoft/sp-property-pane | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -SE @microsoft/[email protected] | ||
``` | ||
|
||
File: [./package.json:18:5](./package.json) | ||
|
||
### FN001034 @microsoft/sp-adaptive-card-extension-base | Optional | ||
|
||
Upgrade SharePoint Framework dependency package @microsoft/sp-adaptive-card-extension-base | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -SE @microsoft/[email protected] | ||
``` | ||
|
||
File: [./package.json:16:5](./package.json) | ||
|
||
### FN002001 @microsoft/sp-build-web | Required | ||
|
||
Upgrade SharePoint Framework dev dependency package @microsoft/sp-build-web | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -DE @microsoft/[email protected] | ||
``` | ||
|
||
File: [./package.json:26:5](./package.json) | ||
|
||
### FN002002 @microsoft/sp-module-interfaces | Required | ||
|
||
Upgrade SharePoint Framework dev dependency package @microsoft/sp-module-interfaces | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -DE @microsoft/[email protected] | ||
``` | ||
|
||
File: [./package.json:27:5](./package.json) | ||
|
||
### FN002022 @microsoft/eslint-plugin-spfx | Required | ||
|
||
Upgrade SharePoint Framework dev dependency package @microsoft/eslint-plugin-spfx | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -DE @microsoft/[email protected] | ||
``` | ||
|
||
File: [./package.json:23:5](./package.json) | ||
|
||
### FN002023 @microsoft/eslint-config-spfx | Required | ||
|
||
Upgrade SharePoint Framework dev dependency package @microsoft/eslint-config-spfx | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -DE @microsoft/[email protected] | ||
``` | ||
|
||
File: [./package.json:22:5](./package.json) | ||
|
||
### FN010001 .yo-rc.json version | Recommended | ||
|
||
Update version in .yo-rc.json | ||
|
||
```json | ||
{ | ||
"@microsoft/generator-sharepoint": { | ||
"version": "1.19.0" | ||
} | ||
} | ||
``` | ||
|
||
File: [./.yo-rc.json:10:5](./.yo-rc.json) | ||
|
||
### FN002026 typescript | Required | ||
|
||
Upgrade SharePoint Framework dev dependency package typescript | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -DE [email protected] | ||
``` | ||
|
||
File: [./package.json:33:5](./package.json) | ||
|
||
### FN002028 @microsoft/rush-stack-compiler-4.7 | Required | ||
|
||
Install SharePoint Framework dev dependency package @microsoft/rush-stack-compiler-4.7 | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -DE @microsoft/[email protected] | ||
``` | ||
|
||
File: [./package.json:21:3](./package.json) | ||
|
||
### FN010010 .yo-rc.json @microsoft/teams-js SDK version | Recommended | ||
|
||
Update @microsoft/teams-js SDK version in .yo-rc.json | ||
|
||
```json | ||
{ | ||
"@microsoft/generator-sharepoint": { | ||
"sdkVersions": { | ||
"@microsoft/teams-js": "2.12.0" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
File: [./.yo-rc.json:2:3](./.yo-rc.json) | ||
|
||
### FN012017 tsconfig.json extends property | Required | ||
|
||
Update tsconfig.json extends property | ||
|
||
```json | ||
{ | ||
"extends": "./node_modules/@microsoft/rush-stack-compiler-4.7/includes/tsconfig-web.json" | ||
} | ||
``` | ||
|
||
File: [./tsconfig.json:2:3](./tsconfig.json) | ||
|
||
### FN021003 package.json engines.node | Required | ||
|
||
Update package.json engines.node property | ||
|
||
```json | ||
{ | ||
"engines": { | ||
"node": ">=16.13.0 <17.0.0 || >=18.17.1 <19.0.0" | ||
} | ||
} | ||
``` | ||
|
||
File: [./package.json:6:5](./package.json) | ||
|
||
### FN002024 eslint | Required | ||
|
||
Install SharePoint Framework dev dependency package eslint | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm i -DE [email protected] | ||
``` | ||
|
||
File: [./package.json:21:3](./package.json) | ||
|
||
### FN007002 serve.json initialPage | Required | ||
|
||
Update serve.json initialPage URL | ||
|
||
```json | ||
{ | ||
"initialPage": "https://{tenantDomain}/_layouts/workbench.aspx" | ||
} | ||
``` | ||
|
||
File: [./config/serve.json:5:3](./config/serve.json) | ||
|
||
### FN017001 Run npm dedupe | Optional | ||
|
||
If, after upgrading npm packages, when building the project you have errors similar to: "error TS2345: Argument of type 'SPHttpClientConfiguration' is not assignable to parameter of type 'SPHttpClientConfiguration'", try running 'npm dedupe' to cleanup npm packages. | ||
|
||
Execute the following command: | ||
|
||
```sh | ||
npm dedupe | ||
``` | ||
|
||
File: [./package.json](./package.json) | ||
|
||
## Summary | ||
|
||
### Execute script | ||
|
||
```sh | ||
npm i -SE @microsoft/[email protected] @microsoft/[email protected] @microsoft/[email protected] | ||
npm i -DE @microsoft/[email protected] @microsoft/[email protected] @microsoft/[email protected] @microsoft/[email protected] [email protected] @microsoft/[email protected] [email protected] | ||
npm dedupe | ||
``` | ||
|
||
### Modify files | ||
|
||
#### [./.yo-rc.json](./.yo-rc.json) | ||
|
||
Update version in .yo-rc.json: | ||
|
||
```json | ||
{ | ||
"@microsoft/generator-sharepoint": { | ||
"version": "1.19.0" | ||
} | ||
} | ||
``` | ||
|
||
Update @microsoft/teams-js SDK version in .yo-rc.json: | ||
|
||
```json | ||
{ | ||
"@microsoft/generator-sharepoint": { | ||
"sdkVersions": { | ||
"@microsoft/teams-js": "2.12.0" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
#### [./tsconfig.json](./tsconfig.json) | ||
|
||
Update tsconfig.json extends property: | ||
|
||
```json | ||
{ | ||
"extends": "./node_modules/@microsoft/rush-stack-compiler-4.7/includes/tsconfig-web.json" | ||
} | ||
``` | ||
|
||
#### [./package.json](./package.json) | ||
|
||
Update package.json engines.node property: | ||
|
||
```json | ||
{ | ||
"engines": { | ||
"node": ">=16.13.0 <17.0.0 || >=18.17.1 <19.0.0" | ||
} | ||
} | ||
``` | ||
|
||
#### [./config/serve.json](./config/serve.json) | ||
|
||
Update serve.json initialPage URL: | ||
|
||
```json | ||
{ | ||
"initialPage": "https://{tenantDomain}/_layouts/workbench.aspx" | ||
} | ||
``` |
Oops, something went wrong.