chore: upgrade jQuery from 3.6.1 to 4.0.0, fix misnamed vendor file #30
Reference in New Issue
Block a user
Delete Branch "chore/jquery-4-upgrade"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Upgrade jQuery from 3.6.1 to 4.0.0 and fix the misnamed vendor file.
Why
The vendor file was named
jquery-1.12.4.min.jsbut actually contained jQuery 3.6.1 — misleading and easy to overlook. jQuery 4.0.0 is the current stable release. The file size actually decreased slightly (89 KB → 78 KB).Changes
web/wwwroot/js/vendor/jquery-4.0.0.min.js(jQuery 4.0.0, correctly named)web/wwwroot/js/vendor/jquery-1.12.4.min.js(was actually 3.6.1, now gone)<script>reference in bothindex.htmlandcv-matcher/index.htmlCompatibility check
None of the removed jQuery 4.0 APIs are used in
main.js:$.isArray,$.isFunction,$.isNumeric,$.trim,$.type,$.parseJSON,$.now,$.nodeName$.ajax,$.when,$.get,$.getJSON,.done()/.fail()/.always(),.on(),.prop(),.val(),.css(),.addClass(),.removeClass(),.toggleClass(),.is(),.each()) remain available in the full 4.0 buildTesting
dotnet build web/web.csproj— 0 errors, 0 warningsRisk Assessment
Checklist