Adds support for SPFx v1.22.2. Closes #7114#7116
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for SPFx v1.22.2 to the CLI for Microsoft 365, enabling the spfx doctor, spfx project doctor, and spfx project upgrade commands to work with this new version.
Changes:
- Added SPFx v1.22.2 configuration to the doctor command with Node.js version range consistency fix
- Created upgrade and doctor rules for v1.22.2 with corresponding test projects
- Updated documentation to reflect v1.22.2 as the latest supported version
Reviewed changes
Copilot reviewed 206 out of 228 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/m365/spfx/commands/spfx-doctor.ts | Added v1.22.2 configuration and fixed Node.js version range spacing consistency |
| src/m365/spfx/commands/project/project-upgrade.ts | Added v1.22.2 to supported versions array and added 'o' alias for output option |
| src/m365/spfx/commands/project/project-doctor.ts | Added v1.22.2 to supported versions array |
| src/m365/spfx/commands/project/project-upgrade/upgrade-1.22.2.ts | New upgrade rules file for v1.22.2 |
| src/m365/spfx/commands/project/project-doctor/doctor-1.22.2.ts | New doctor rules file for v1.22.2 |
| src/m365/spfx/commands/project/project-upgrade.spec.ts | Added e2e tests for upgrading from v1.22.1 to v1.22.2 |
| src/m365/spfx/commands/project/test-projects/spfx-1222-webpart-react/* | Complete v1.22.2 React web part test project |
| src/m365/spfx/commands/project/test-projects/spfx-1221-/ | Complete v1.22.1 test projects for various component types |
| docs/docs/cmd/spfx/project/project-upgrade.mdx | Updated documentation to reference v1.22.2 as latest supported version |
Member
|
checked locally env setup, doctor |
Member
|
ready to merge 🚀 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7114