[release/11.0] Update Bootstrap to 5.3.8 in templates and Identity UI - #68948
Conversation
7fbba35 to
7375fbe
Compare
Refresh all vendored Bootstrap 5 assets, CDN integrity hashes, licenses, and package-test expectations. Extend the copy automation to cover the current Blazor template path, standalone WebAssembly, and Identity UI. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 95292c6a-5353-44bc-9065-d2fe86d53e90
7375fbe to
28427b7
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Backports the Bootstrap 5.3.8 update to the release/11.0 branch for the ASP.NET Core project templates and the Identity UI (vendored assets + CDN references), aligning shipped template output with upstream Bootstrap patch updates.
Changes:
- Bumps
bootstrapnpm dependency to^5.3.8and expands the copy automation to include additional template destinations and Identity UI. - Refreshes vendored Bootstrap
dist/assets (CSS/JS + maps) and LICENSE text across templates and Identity UI. - Updates Identity UI production CDN URLs and SRI hashes; updates the Identity UI package test expectation to 5.3.8.
File summaries
| File | Description |
|---|---|
| src/ProjectTemplates/Web.ProjectTemplates/package.json | Bumps Bootstrap dependency and updates copy scripts to include additional destinations (WASM + Identity UI). |
| src/ProjectTemplates/Web.ProjectTemplates/package-lock.json | Locks Bootstrap to 5.3.8 (resolved URL + integrity). |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/LICENSE | Updates vendored Bootstrap license header text for 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap ESM JS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundle JS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css | Updates vendored Bootstrap reboot minified CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/LICENSE | Updates vendored Bootstrap license header text for 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap ESM JS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundle JS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css | Updates vendored Bootstrap reboot minified CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/LICENSE | Updates vendored Bootstrap license header text for 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap ESM JS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundle JS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css | Updates vendored Bootstrap reboot minified CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to 5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS to 5.3.8 for standalone WASM template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap ESM JS to 5.3.8 for standalone WASM template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundle JS to 5.3.8 for standalone WASM template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to 5.3.8 for standalone WASM template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to 5.3.8 for standalone WASM template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to 5.3.8 for standalone WASM template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to 5.3.8 for standalone WASM template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to 5.3.8 for standalone WASM template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to 5.3.8 for standalone WASM template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS to 5.3.8 for Blazor Web template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap ESM JS to 5.3.8 for Blazor Web template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundle JS to 5.3.8 for Blazor Web template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to 5.3.8 for Blazor Web template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to 5.3.8 for Blazor Web template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to 5.3.8 for Blazor Web template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to 5.3.8 for Blazor Web template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to 5.3.8 for Blazor Web template assets. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to 5.3.8 for Blazor Web template assets. |
| src/ProjectTemplates/test/Templates.Tests/IdentityUIPackageTest.cs | Updates the expected Bootstrap version string used by the Identity UI package test. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/LICENSE | Updates vendored Bootstrap license header text for Identity UI assets. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/js/bootstrap.js | Updates Identity UI vendored Bootstrap JS to 5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/js/bootstrap.esm.js | Updates Identity UI vendored Bootstrap ESM JS to 5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates Identity UI vendored Bootstrap bundle JS to 5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates Identity UI vendored Bootstrap utilities RTL CSS to 5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates Identity UI vendored Bootstrap utilities CSS to 5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates Identity UI vendored Bootstrap reboot RTL CSS to 5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-reboot.min.css | Updates Identity UI vendored Bootstrap reboot minified CSS to 5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates Identity UI vendored Bootstrap reboot CSS to 5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates Identity UI vendored Bootstrap grid RTL CSS to 5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-grid.css | Updates Identity UI vendored Bootstrap grid CSS to 5.3.8. |
| src/Identity/UI/src/Areas/Identity/Pages/V5/_Layout.cshtml | Updates Bootstrap CDN URLs + SRI hashes used by Identity UI in non-development environments. |
Review details
Files not reviewed (1)
- src/ProjectTemplates/Web.ProjectTemplates/package-lock.json: Generated file
- Files reviewed: 7/272 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Use visually-hidden for the Bootstrap 5 CDN fallback probe so a successful CDN load does not trigger the local stylesheet fallback. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 83dcfc7b-0305-4d3a-abe0-0d3bf535dddc
|
The PR description has been updated to the servicing/shiproom template, including customer impact, regression, risk, verification, and packaging review. The PR is not a draft and is ready for review. |
|
Hi @javiercn. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed. |
FYI, we normally do this push late in the release to ensure we are up to date, right before release.
[release/11.0] Update Bootstrap to 5.3.8 in templates and Identity UI
Update Bootstrap assets to 5.3.8 in templates and Identity UI.
Description
This is a backport of #68898 to
release/11.0, limited to the Bootstrap template and Identity UI changes.It refreshes the vendored Bootstrap assets, CDN integrity hashes, licenses, copy automation, and package-test expectations. Guidance changes from the original PR are intentionally excluded.
Original PR: #68898
Fixes #67666
Customer Impact
Without this backport, applications scaffolded from the .NET 11 templates and the packaged Identity UI continue to ship Bootstrap 5.3.3 instead of 5.3.8, missing the current upstream patch fixes and requiring customers to update the generated assets themselves.
Regression?
This is a patch-level third-party asset update rather than a regression fix.
Risk
The change updates vendored Bootstrap assets and matching SRI hashes without changing ASP.NET Core runtime code. The same update is already merged on
main, and generated applications were exercised locally. The remaining risk is limited to Bootstrap CSS/JavaScript behavior and package contents.Verification
Manual verification performed:
npm ci --ignore-scripts --no-audit --no-fundnpm run copy-bootstrapregenerated all six vendored destinations with no resulting source changes.npm ls bootstrap --depth=0confirmedbootstrap@5.3.8.src\ProjectTemplates\build.cmd -pack -configuration Releasecompleted successfully./_framework/blazor.web.jsafter producing the required local framework-assets package.The full
IdentityUIPackageTestwas not run locally. The generated-app validation above reached the changed template and Identity UI assets directly.Packaging changes reviewed?
The template and Identity UI package contents, vendored assets, package lock, copy automation, and expected Bootstrap version were reviewed.
When servicing release/2.3
N/A: this PR targets
release/11.0.