Skip to content

Commit 9edfd2a

Browse files
committed
Build: Update jQuery 4.0.0-rc.1 to 4.0.0, Migrate 4.0.0-beta.1 to 4.0.1
1 parent ada6080 commit 9edfd2a

File tree

8 files changed

+49
-59
lines changed

8 files changed

+49
-59
lines changed

Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ grunt.initConfig( {
316316
"jquery-3.7.1/jquery.js": "jquery-3.7.1/dist/jquery.js",
317317
"jquery-3.7.1/LICENSE.txt": "jquery-3.7.1/LICENSE.txt",
318318

319-
"jquery-4.0.0-rc.1/jquery.js": "jquery-4.0.0-rc.1/dist/jquery.js",
320-
"jquery-4.0.0-rc.1/LICENSE.txt": "jquery-4.0.0-rc.1/LICENSE.txt",
319+
"jquery-4.0.0/jquery.js": "jquery-4.0.0/dist/jquery.js",
320+
"jquery-4.0.0/LICENSE.txt": "jquery-4.0.0/LICENSE.txt",
321321

322322
"jquery-migrate-1.x/jquery-migrate.js":
323323
"jquery-migrate-1.x/dist/jquery-migrate.js",

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"jquery-3.6.4": "jquery#3.6.4",
3939
"jquery-3.7.0": "jquery#3.7.0",
4040
"jquery-3.7.1": "jquery#3.7.1",
41-
"jquery-4.0.0-rc.1": "jquery#4.0.0-rc.1",
41+
"jquery-4.0.0": "jquery#4.0.0",
4242
"jquery-migrate-1.x": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-1.4.1.tgz",
4343
"jquery-migrate-3.x": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-3.6.0.tgz",
44-
"jquery-migrate-4.x": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-4.0.0-beta.1.tgz"
44+
"jquery-migrate-4.x": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-4.0.1.tgz"
4545
}
4646
}
Lines changed: 14 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* jQuery JavaScript Library v4.0.0-rc.1
2+
* jQuery JavaScript Library v4.0.0
33
* https://jquery.com/
44
*
55
* Copyright OpenJS Foundation and other contributors
66
* Released under the MIT license
77
* https://jquery.com/license/
88
*
9-
* Date: 2025-08-11T16:40Z
9+
* Date: 2026-01-18T00:20Z
1010
*/
1111
( function( global, factory ) {
1212

@@ -116,7 +116,7 @@ function DOMEval( code, node, doc ) {
116116
}
117117
}
118118

119-
var version = "4.0.0-rc.1",
119+
var version = "4.0.0",
120120

121121
rhtmlSuffix = /HTML$/i,
122122

@@ -530,54 +530,20 @@ var whitespace = "[\\x20\\t\\r\\n\\f]";
530530

531531
var isIE = document$1.documentMode;
532532

533-
// Support: Chrome 105 - 111 only, Safari 15.4 - 16.3 only
534-
// Make sure the `:has()` argument is parsed unforgivingly.
535-
// We include `*` in the test to detect buggy implementations that are
536-
// _selectively_ forgiving (specifically when the list includes at least
537-
// one valid selector).
538-
// Note that we treat complete lack of support for `:has()` as if it were
539-
// spec-compliant support, which is fine because use of `:has()` in such
540-
// environments will fail in the qSA path and fall back to jQuery traversal
541-
// anyway.
542-
try {
543-
document$1.querySelector( ":has(*,:jqfake)" );
544-
support.cssHas = false;
545-
} catch ( e ) {
546-
support.cssHas = true;
547-
}
548-
549-
// Build QSA regex.
550-
// Regex strategy adopted from Diego Perini.
551-
var rbuggyQSA = [];
552-
553-
if ( isIE ) {
554-
rbuggyQSA.push(
555-
556-
// Support: IE 9 - 11+
557-
// IE's :disabled selector does not pick up the children of disabled fieldsets
558-
":enabled",
559-
":disabled",
560-
561-
// Support: IE 11+
562-
// IE 11 doesn't find elements on a `[name='']` query in some cases.
563-
// Adding a temporary attribute to the document before the selection works
564-
// around the issue.
565-
"\\[" + whitespace + "*name" + whitespace + "*=" +
566-
whitespace + "*(?:''|\"\")"
567-
);
568-
}
533+
var rbuggyQSA = isIE && new RegExp(
569534

570-
if ( !support.cssHas ) {
535+
// Support: IE 9 - 11+
536+
// IE's :disabled selector does not pick up the children of disabled fieldsets
537+
":enabled|:disabled|" +
571538

572-
// Our regular `try-catch` mechanism fails to detect natively-unsupported
573-
// pseudo-classes inside `:has()` (such as `:has(:contains("Foo"))`)
574-
// in browsers that parse the `:has()` argument as a forgiving selector list.
575-
// https://drafts.csswg.org/selectors/#relational now requires the argument
576-
// to be parsed unforgivingly, but browsers have not yet fully adjusted.
577-
rbuggyQSA.push( ":has" );
578-
}
539+
// Support: IE 11+
540+
// IE 11 doesn't find elements on a `[name='']` query in some cases.
541+
// Adding a temporary attribute to the document before the selection works
542+
// around the issue.
543+
"\\[" + whitespace + "*name" + whitespace + "*=" +
544+
whitespace + "*(?:''|\"\")"
579545

580-
rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) );
546+
);
581547

582548
var rtrimCSS = new RegExp(
583549
"^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$",

external/jquery-migrate-4.x/jquery-migrate.js

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Migrate - v4.0.0-beta.1 - 2025-08-11T21:16Z
2+
* jQuery Migrate - v4.0.1 - 2026-01-18T00:35Z
33
* Copyright OpenJS Foundation and other contributors
44
* Released under the MIT license
55
* https://jquery.com/license/
@@ -26,7 +26,7 @@
2626
} )( function( jQuery, window ) {
2727
"use strict";
2828

29-
jQuery.migrateVersion = "4.0.0-beta.1";
29+
jQuery.migrateVersion = "4.0.1";
3030

3131
// Returns 0 if v1 == v2, -1 if v1 < v2, 1 if v1 > v2
3232
function compareVersions( v1, v2 ) {
@@ -55,7 +55,7 @@ function jQueryVersionSince( version ) {
5555
var disabledPatches = Object.create( null );
5656

5757
// Don't apply patches for specified codes. Helpful for code bases
58-
// where some Migrate warnings have been addressed and it's desirable
58+
// where some Migrate warnings have been addressed, and it's desirable
5959
// to avoid needless patches or false positives.
6060
jQuery.migrateDisablePatches = function() {
6161
var i;
@@ -260,6 +260,10 @@ var arr = [],
260260
splice = arr.splice,
261261
class2type = {},
262262

263+
// Matches dashed string for camelizing
264+
rmsPrefix = /^-ms-/,
265+
rdashAlpha = /-([a-z])/g,
266+
263267
// Require that the "whitespace run" starts from a non-whitespace
264268
// to avoid O(N^2) behavior when the engine would try matching "\s+$" at each space position.
265269
rtrim = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
@@ -338,6 +342,26 @@ migratePatchAndWarnFunc( jQuery, "isWindow",
338342
"jQuery.isWindow() is removed"
339343
);
340344

345+
migratePatchAndWarnFunc( jQuery, "now", Date.now, "now",
346+
"jQuery.now() is removed; use Date.now()"
347+
);
348+
349+
// Used by camelCase as callback to replace()
350+
function fcamelCase( _all, letter ) {
351+
return letter.toUpperCase();
352+
}
353+
354+
migratePatchAndWarnFunc( jQuery, "camelCase",
355+
function( string ) {
356+
357+
// Convert dashed to camelCase; used by the css and data modules
358+
// Support: IE <=9 - 11, Edge 12 - 15
359+
// Microsoft forgot to hump their vendor prefix (trac-9572)
360+
return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
361+
}, "camelCase",
362+
"jQuery.camelCase() is removed"
363+
);
364+
341365
// Bind a function to a context, optionally partially applying any
342366
// arguments.
343367
// jQuery.proxy is deprecated to promote standards (specifically Function#bind)
@@ -652,7 +676,7 @@ migratePatchFunc( jQuery.fn, "toggleClass", function( state ) {
652676

653677
// If the element has a class name or if we're passed `false`,
654678
// then remove the whole classname (if there was one, the above saved it).
655-
// Otherwise bring back whatever was previously saved (if anything),
679+
// Otherwise, bring back whatever was previously saved (if anything),
656680
// falling back to the empty string if nothing was stored.
657681
if ( this.setAttribute ) {
658682
this.setAttribute( "class",

jtr-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test-urls:
3131

3232
runs:
3333
jquery:
34-
- 4.0.0-rc.1
34+
- 4.0.0
3535
- 3.7.1
3636
- 3.6.4
3737
- 2.2.4

tests/lib/qunit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ QUnit.config.urlConfig.push( {
2626
"3.5.0", "3.5.1",
2727
"3.6.0", "3.6.1", "3.6.2", "3.6.3", "3.6.4",
2828
"3.7.0", "3.7.1",
29-
"4.0.0-rc.1",
29+
"4.0.0",
3030
"3.x-git", "git", "custom"
3131
],
3232
tooltip: "Which jQuery Core version to test against"

tests/unit/subsuite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var versions = [
1212
"3.5.0", "3.5.1",
1313
"3.6.0", "3.6.1", "3.6.2", "3.6.3", "3.6.4",
1414
"3.7.0", "3.7.1",
15-
"4.0.0-rc.1",
15+
"4.0.0",
1616
"3.x-git", "git", "custom"
1717
],
1818
additionalTests = {

0 commit comments

Comments
 (0)