Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ const filePath = `${tempDir}/config/package-solution.json`;
### Template and Example Standards

- **Sort `dependencies` and `devDependencies` alphabetically** in `package.json`.
- **Don't include direct dependencies that come from the rig** (e.g., `css-loader`, `@typescript-eslint/parser`, `@types/webpack-env`, `@types/heft-jest`, `@microsoft/spfx-heft-plugins`).
- **Don't include direct dependencies that come from the rig** (e.g., `css-loader`, `@typescript-eslint/parser`, `@types/webpack-env`, `@types/jest`, `@microsoft/spfx-heft-plugins`).
- **Remove config files that are redundant with `rig.json`** (e.g., `config/sass.json`, `config/typescript.json` when their values are defaults).
- **Localize hardcoded UI strings** using the `loc/` pattern.
- **Use `import` for images**, not `require()`.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<a href="https://www.npmjs.com/package/@microsoft/spfx-cli"><img src="https://img.shields.io/npm/v/@microsoft/spfx-cli" alt="npm version" /></a>
<a href="https://github.com/SharePoint/spfx/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT License" /></a>
<img src="https://img.shields.io/badge/node-22.x_%7C_24.x-brightgreen" alt="Node.js 22.x | 24.x" />
<img src="https://img.shields.io/badge/SPFx-1.22.2-blue" alt="SPFx 1.22.2" />
<img src="https://img.shields.io/badge/SPFx-1.23.2-blue" alt="SPFx 1.23.2" />
</p>

---
Expand Down Expand Up @@ -60,7 +60,7 @@ See the [CLI README](apps/spfx-cli/README.md) for the full command reference.

## Templates

All templates target **SPFx 1.22.2**. Use `--spfx-version` to target a different release branch.
All templates target **SPFx 1.23.2**. Use `--spfx-version` to target a different release branch.

### Web Parts

Expand Down
8 changes: 4 additions & 4 deletions api/spfx-template-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"_phase:test": "heft run --only test -- --clean"
},
"dependencies": {
"@microsoft/spfx-heft-plugins": "1.22.2",
"@rushstack/node-core-library": "~5.21.0",
"@rushstack/terminal": "~0.22.4",
"@microsoft/spfx-heft-plugins": "1.23.2",
"@rushstack/node-core-library": "~5.23.1",
"@rushstack/terminal": "~0.24.0",
"adm-zip": "^0.5.16",
"cli-table3": "^0.6.5",
"ejs": "^3.1.10",
Expand All @@ -23,7 +23,7 @@
},
"devDependencies": {
"@microsoft/spfx-cli-build-rig": "workspace:*",
"@rushstack/heft": "^1.2.9",
"@rushstack/heft": "^1.2.19",
"@types/adm-zip": "^0.5.5",
"@types/ejs": "^3.1.5",
"@types/lodash": "^4.17.18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function makeTemplateRenderedEvent(overrides?: Partial<ITemplateRenderedEvent>):
timestamp: '2026-03-27T10:00:00.000Z',
templateName: 'webpart-minimal',
templateVersion: '1.0.0',
spfxVersion: '1.22.2',
spfxVersion: '1.23.2',
context: { componentNameCamelCase: 'helloWorld' },
cliVersion: '0.1.0',
...overrides
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`PublicGitHubRepositorySource _buildDownloadUrl should build GHE REST API URL for non-github.com hosts 1`] = `Array []`;

Expand Down
2 changes: 1 addition & 1 deletion api/spfx-template-api/src/templating/SPFxBuiltInContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface ISPFxBuiltInContext {
solution_name: string;
/** npm package / library name (e.g. "\@contoso/hello-world"). */
libraryName: string;
/** SPFx version from the template manifest (e.g. "1.22.2"). */
/** SPFx version from the template manifest (e.g. "1.23.2"). */
spfxVersion: string;
/** SPFx version with hyphens escaped for shields.io badge URLs (e.g. "1.23.0--beta.0"). */
spfxVersionForBadgeUrl: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const UUID_REGEX: RegExp = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-
const DEFAULT_INPUTS: ISPFxBuiltInContextInputs = {
componentName: 'Hello World',
libraryName: '@contoso/hello-world',
spfxVersion: '1.22.2'
spfxVersion: '1.23.2'
};

describe(buildBuiltInContext.name, () => {
Expand Down Expand Up @@ -84,7 +84,7 @@ describe(buildBuiltInContext.name, () => {

it('should pass through spfxVersion unchanged', () => {
const ctx: ISPFxBuiltInContext = buildBuiltInContext(DEFAULT_INPUTS);
expect(ctx.spfxVersion).toBe('1.22.2');
expect(ctx.spfxVersion).toBe('1.23.2');
});

it('should pass through componentName unchanged', () => {
Expand All @@ -96,7 +96,7 @@ describe(buildBuiltInContext.name, () => {
describe('spfxVersionForBadgeUrl', () => {
it('should escape hyphens as double-hyphens for stable versions', () => {
const ctx: ISPFxBuiltInContext = buildBuiltInContext(DEFAULT_INPUTS);
expect(ctx.spfxVersionForBadgeUrl).toBe('1.22.2');
expect(ctx.spfxVersionForBadgeUrl).toBe('1.23.2');
});

it('should escape hyphens for pre-release versions', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`writePackageManagerToPackageJsonEnginesAsync detects version and writes for npm: terminal output 1`] = `Array []`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`SPFxTemplateWriter scaffold log integration should record a "merged" file-write event with mergeHelper name 1`] = `
Array [
Expand Down
8 changes: 4 additions & 4 deletions apps/spfx-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
},
"dependencies": {
"@microsoft/spfx-template-api": "workspace:*",
"@rushstack/node-core-library": "~5.21.0",
"@rushstack/ts-command-line": "~5.3.4",
"@rushstack/terminal": "~0.22.4",
"@rushstack/node-core-library": "~5.23.1",
"@rushstack/ts-command-line": "~5.3.10",
"@rushstack/terminal": "~0.24.0",
"zod": "^4.1.5"
},
"devDependencies": {
"@microsoft/spfx-cli-build-rig": "workspace:*",
"@rushstack/heft": "^1.2.9",
"@rushstack/heft": "^1.2.19",
"eslint": "9.37.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('ListTemplatesAction', () => {
category: 'webpart',
description: 'A minimal web part template (no framework) for SPFx',
version: '0.0.1',
spfxVersion: '1.22.2'
spfxVersion: '1.23.2'
}),
new Map(Array.from({ length: 23 }, (value, i) => [`file${i}.txt`, `content${i}`]))
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`CreateAction --package-manager calls writePackageManagerToPackageJsonEnginesAsync after a successful install 1`] = `
Array [
Expand Down
Loading