Skip to content

Adds support for SPFx v1.22.2. Closes #7114#7116

Merged
Adam-it merged 1 commit intopnp:mainfrom
milanholemans:spfx-upgrade
Feb 12, 2026
Merged

Adds support for SPFx v1.22.2. Closes #7114#7116
Adam-it merged 1 commit intopnp:mainfrom
milanholemans:spfx-upgrade

Conversation

@milanholemans
Copy link
Copy Markdown
Contributor

Closes #7114

Copilot AI review requested due to automatic review settings January 29, 2026 23:19
@milanholemans milanholemans added the pr-priority Process this PR asap label Jan 29, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Adam-it Adam-it self-assigned this Feb 11, 2026
Copy link
Copy Markdown
Member

@Adam-it Adam-it left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Adam-it
Copy link
Copy Markdown
Member

Adam-it commented Feb 12, 2026

checked locally env setup, doctor
upgrade on 1.22.1 and upgrade on 1.18.0

@Adam-it
Copy link
Copy Markdown
Member

Adam-it commented Feb 12, 2026

ready to merge 🚀

@Adam-it Adam-it changed the title Adds support for SPFx v1.22.2 Adds support for SPFx v1.22.2. Closes #7114 Feb 12, 2026
@Adam-it Adam-it merged commit 59e9970 into pnp:main Feb 12, 2026
16 checks passed
@milanholemans milanholemans deleted the spfx-upgrade branch February 13, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-merged pr-priority Process this PR asap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support v1.22.2 of SPFx

3 participants