Add temporary script to detect usage of Bootstrap v5 deprecated classes#42487
Conversation
ef240c6 to
fedf4e4
Compare
fedf4e4 to
03d0422
Compare
|
Added an option to the script to be able to run `.log` output example
╔══════════════════════════════════════════════════════════════════════╗
║ Bootstrap v5 → v6 Deprecated Classes Report ║
╚══════════════════════════════════════════════════════════════════════╝
|
03d0422 to
743713f
Compare
743713f to
21bf73e
Compare
|
Important This comment is a dynamic comment that represents the TODO of remaining utilities to check/remove. ╔══════════════════════════════════════════════════════════════════════╗ Generated : 2026-06-26T04:41:44.217Z SUMMARY USED DEPRECATED CLASSES [only classes still found in this codebase]
Warning As said in the description, there are some elements in the list that are not to be tackled
|
|
@julien-deramond - that's helpful - thanks! I have a PR open which addresses some of them in examples. #42455 |
21bf73e to
4bd5778
Compare
4bd5778 to
54b9131
Compare
Description
This PR adds a temporary vibe coded script to detect usages of Bootstrap v5 classes that no longer exist in v6 across our codebase, in a similar spirit to the approach used by the Bootstrap Deprecated Classes extension: https://github.com/julien-deramond/bootstrap-deprecated-classes-extension.
It's only been lightly tested so far (and only on my macOS environment), but the results I've spot-checked all appear to be legitimate v5 classes that should no longer be used in v6.
I'm not sure whether it makes sense to merge this, since its purpose is mainly to help with the migration work on this branch. If not, @mdo and/or @coliff may still find it useful.
Example output from a run today:
The corresponding report is generated at the repository root:
deprecated-classes-2026-06-08T17-50-24.log
Warning
Some classes are considered found in v6 codebase because of their simple names. For now, I've kept them in the results. I'm not sure it's easy to better spot what's a class or not in the docs.