Build: Add jQuery 3.6.4, update Migrate to 3.4.1

Closes gh-2161
This commit is contained in:
Michał Gołębiowski-Owczarek 2023-05-10 10:54:31 +02:00 committed by GitHub
parent 546214e869
commit beeb410ccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11090 additions and 93 deletions

View File

@ -424,13 +424,16 @@ grunt.initConfig( {
"jquery-3.6.3/jquery.js": "jquery-3.6.3/dist/jquery.js", "jquery-3.6.3/jquery.js": "jquery-3.6.3/dist/jquery.js",
"jquery-3.6.3/LICENSE.txt": "jquery-3.6.3/LICENSE.txt", "jquery-3.6.3/LICENSE.txt": "jquery-3.6.3/LICENSE.txt",
"jquery-3.6.4/jquery.js": "jquery-3.6.4/dist/jquery.js",
"jquery-3.6.4/LICENSE.txt": "jquery-3.6.4/LICENSE.txt",
"jquery-migrate-1.4.1/jquery-migrate.js": "jquery-migrate-1.4.1/jquery-migrate.js":
"jquery-migrate-1.4.1/dist/jquery-migrate.js", "jquery-migrate-1.4.1/dist/jquery-migrate.js",
"jquery-migrate-1.4.1/LICENSE.txt": "jquery-migrate-1.4.1/LICENSE.txt", "jquery-migrate-1.4.1/LICENSE.txt": "jquery-migrate-1.4.1/LICENSE.txt",
"jquery-migrate-3.4.0/jquery-migrate.js": "jquery-migrate-3.4.1/jquery-migrate.js":
"jquery-migrate-3.4.0/dist/jquery-migrate.js", "jquery-migrate-3.4.1/dist/jquery-migrate.js",
"jquery-migrate-3.4.0/LICENSE.txt": "jquery-migrate-3.4.0/LICENSE.txt" "jquery-migrate-3.4.1/LICENSE.txt": "jquery-migrate-3.4.1/LICENSE.txt"
} }
} }
}, },

View File

@ -36,7 +36,7 @@
"jquery-1.12.2": "jquery#1.12.2", "jquery-1.12.2": "jquery#1.12.2",
"jquery-1.12.3": "jquery#1.12.3", "jquery-1.12.3": "jquery#1.12.3",
"jquery-1.12.4": "jquery#1.12.4", "jquery-1.12.4": "jquery#1.12.4",
"jquery-3.x": "jquery#3.6.3", "jquery-3.x": "jquery#3.6.4",
"jquery-2.0.0": "jquery#2.0.0", "jquery-2.0.0": "jquery#2.0.0",
"jquery-2.0.1": "jquery#2.0.1", "jquery-2.0.1": "jquery#2.0.1",
"jquery-2.0.2": "jquery#2.0.2", "jquery-2.0.2": "jquery#2.0.2",
@ -66,7 +66,8 @@
"jquery-3.6.1": "jquery#3.6.1", "jquery-3.6.1": "jquery#3.6.1",
"jquery-3.6.2": "jquery#3.6.2", "jquery-3.6.2": "jquery#3.6.2",
"jquery-3.6.3": "jquery#3.6.3", "jquery-3.6.3": "jquery#3.6.3",
"jquery-3.6.4": "jquery#3.6.4",
"jquery-migrate-1.4.1": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-1.4.1.tgz", "jquery-migrate-1.4.1": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-1.4.1.tgz",
"jquery-migrate-3.4.0": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-3.4.0.tgz" "jquery-migrate-3.4.1": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-3.4.1.tgz"
} }
} }

View File

@ -5,7 +5,7 @@ module.exports = function( grunt ) {
var versions = { var versions = {
"git": "git", "git": "git",
"3.x-git": "3.x-git", "3.x-git": "3.x-git",
"3.6": "3.6.3", "3.6": "3.6.4",
"3.5": "3.5.1", "3.5": "3.5.1",
"3.4": "3.4.1", "3.4": "3.4.1",
"3.3": "3.3.1", "3.3": "3.3.1",

20
external/jquery-3.6.4/LICENSE.txt vendored Normal file
View File

@ -0,0 +1,20 @@
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

10965
external/jquery-3.6.4/jquery.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery Migrate - v3.4.0 - 2022-03-24T16:30Z * jQuery Migrate - v3.4.1 - 2023-02-23T15:31Z
* Copyright OpenJS Foundation and other contributors * Copyright OpenJS Foundation and other contributors
*/ */
( function( factory ) { ( function( factory ) {
@ -24,7 +24,7 @@
} )( function( jQuery, window ) { } )( function( jQuery, window ) {
"use strict"; "use strict";
jQuery.migrateVersion = "3.4.0"; jQuery.migrateVersion = "3.4.1";
// Returns 0 if v1 == v2, -1 if v1 < v2, 1 if v1 > v2 // Returns 0 if v1 == v2, -1 if v1 < v2, 1 if v1 > v2
function compareVersions( v1, v2 ) { function compareVersions( v1, v2 ) {
@ -91,9 +91,10 @@ jQuery.migrateIsPatchEnabled = function( patchCode ) {
return; return;
} }
// Need jQuery 3.0.0+ and no older Migrate loaded // Need jQuery 3.x-4.x and no older Migrate loaded
if ( !jQuery || !jQueryVersionSince( "3.0.0" ) ) { if ( !jQuery || !jQueryVersionSince( "3.0.0" ) ||
window.console.log( "JQMIGRATE: jQuery 3.0.0+ REQUIRED" ); jQueryVersionSince( "5.0.0" ) ) {
window.console.log( "JQMIGRATE: jQuery 3.x-4.x REQUIRED" );
} }
if ( jQuery.migrateWarnings ) { if ( jQuery.migrateWarnings ) {
window.console.log( "JQMIGRATE: Migrate plugin loaded multiple times" ); window.console.log( "JQMIGRATE: Migrate plugin loaded multiple times" );
@ -206,9 +207,9 @@ var findProp,
rattrHashTest = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/, rattrHashTest = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,
rattrHashGlob = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g, rattrHashGlob = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,
// Support: Android <=4.0 only // Require that the "whitespace run" starts from a non-whitespace
// Make sure we trim BOM and NBSP // to avoid O(N^2) behavior when the engine would try matching "\s+$" at each space position.
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; rtrim = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
migratePatchFunc( jQuery.fn, "init", function( arg1 ) { migratePatchFunc( jQuery.fn, "init", function( arg1 ) {
var args = Array.prototype.slice.call( arguments ); var args = Array.prototype.slice.call( arguments );
@ -300,7 +301,7 @@ if ( jQueryVersionSince( "3.1.1" ) ) {
migratePatchAndWarnFunc( jQuery, "trim", function( text ) { migratePatchAndWarnFunc( jQuery, "trim", function( text ) {
return text == null ? return text == null ?
"" : "" :
( text + "" ).replace( rtrim, "" ); ( text + "" ).replace( rtrim, "$1" );
}, "trim", }, "trim",
"jQuery.trim is deprecated; use String.prototype.trim" ); "jQuery.trim is deprecated; use String.prototype.trim" );
} }
@ -419,10 +420,24 @@ var oldRemoveAttr = jQuery.fn.removeAttr,
rmatchNonSpace = /\S+/g; rmatchNonSpace = /\S+/g;
migratePatchFunc( jQuery.fn, "removeAttr", function( name ) { migratePatchFunc( jQuery.fn, "removeAttr", function( name ) {
var self = this; var self = this,
patchNeeded = false;
jQuery.each( name.match( rmatchNonSpace ), function( _i, attr ) { jQuery.each( name.match( rmatchNonSpace ), function( _i, attr ) {
if ( jQuery.expr.match.bool.test( attr ) ) { if ( jQuery.expr.match.bool.test( attr ) ) {
// Only warn if at least a single node had the property set to
// something else than `false`. Otherwise, this Migrate patch
// doesn't influence the behavior and there's no need to set or warn.
self.each( function() {
if ( jQuery( this ).prop( attr ) !== false ) {
patchNeeded = true;
return false;
}
} );
}
if ( patchNeeded ) {
migrateWarn( "removeAttr-bool", migrateWarn( "removeAttr-bool",
"jQuery.fn.removeAttr no longer sets boolean properties: " + attr ); "jQuery.fn.removeAttr no longer sets boolean properties: " + attr );
self.prop( attr, false ); self.prop( attr, false );
@ -470,7 +485,7 @@ function camelCase( string ) {
} ); } );
} }
var origFnCss, var origFnCss, internalCssNumber,
internalSwapCall = false, internalSwapCall = false,
ralphaStart = /^[a-z]/, ralphaStart = /^[a-z]/,
@ -552,8 +567,11 @@ if ( jQueryVersionSince( "3.4.0" ) && typeof Proxy !== "undefined" ) {
// https://github.com/jquery/jquery/blob/3.6.0/src/css.js#L212-L233 // https://github.com/jquery/jquery/blob/3.6.0/src/css.js#L212-L233
// This way, number values for the CSS properties below won't start triggering // This way, number values for the CSS properties below won't start triggering
// Migrate warnings when jQuery gets updated to >=4.0.0 (gh-438). // Migrate warnings when jQuery gets updated to >=4.0.0 (gh-438).
if ( jQueryVersionSince( "4.0.0" ) && typeof Proxy !== "undefined" ) { if ( jQueryVersionSince( "4.0.0" ) ) {
jQuery.cssNumber = new Proxy( {
// We need to keep this as a local variable as we need it internally
// in a `jQuery.fn.css` patch and this usage shouldn't warn.
internalCssNumber = {
animationIterationCount: true, animationIterationCount: true,
columnCount: true, columnCount: true,
fillOpacity: true, fillOpacity: true,
@ -574,16 +592,31 @@ if ( jQueryVersionSince( "4.0.0" ) && typeof Proxy !== "undefined" ) {
widows: true, widows: true,
zIndex: true, zIndex: true,
zoom: true zoom: true
}, { };
get: function() {
migrateWarn( "css-number", "jQuery.cssNumber is deprecated" ); if ( typeof Proxy !== "undefined" ) {
return Reflect.get.apply( this, arguments ); jQuery.cssNumber = new Proxy( internalCssNumber, {
}, get: function() {
set: function() { migrateWarn( "css-number", "jQuery.cssNumber is deprecated" );
migrateWarn( "css-number", "jQuery.cssNumber is deprecated" ); return Reflect.get.apply( this, arguments );
return Reflect.set.apply( this, arguments ); },
} set: function() {
} ); migrateWarn( "css-number", "jQuery.cssNumber is deprecated" );
return Reflect.set.apply( this, arguments );
}
} );
} else {
// Support: IE 9-11+
// IE doesn't support proxies, but we still want to restore the legacy
// jQuery.cssNumber there.
jQuery.cssNumber = internalCssNumber;
}
} else {
// Make `internalCssNumber` defined for jQuery <4 as well as it's needed
// in the `jQuery.fn.css` patch below.
internalCssNumber = jQuery.cssNumber;
} }
function isAutoPx( prop ) { function isAutoPx( prop ) {
@ -610,7 +643,10 @@ migratePatchFunc( jQuery.fn, "css", function( name, value ) {
if ( typeof value === "number" ) { if ( typeof value === "number" ) {
camelName = camelCase( name ); camelName = camelCase( name );
if ( !isAutoPx( camelName ) && !jQuery.cssNumber[ camelName ] ) {
// Use `internalCssNumber` to avoid triggering our warnings in this
// internal check.
if ( !isAutoPx( camelName ) && !internalCssNumber[ camelName ] ) {
migrateWarn( "css-number", migrateWarn( "css-number",
"Number-typed values are deprecated for jQuery.fn.css( \"" + "Number-typed values are deprecated for jQuery.fn.css( \"" +
name + "\", value )" ); name + "\", value )" );

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery JavaScript Library v3.6.3 * jQuery JavaScript Library v3.6.4
* https://jquery.com/ * https://jquery.com/
* *
* Includes Sizzle.js * Includes Sizzle.js
@ -9,7 +9,7 @@
* Released under the MIT license * Released under the MIT license
* https://jquery.org/license * https://jquery.org/license
* *
* Date: 2022-12-20T21:28Z * Date: 2023-03-08T15:28Z
*/ */
( function( global, factory ) { ( function( global, factory ) {
@ -151,7 +151,7 @@ function toType( obj ) {
var var
version = "3.6.3", version = "3.6.4",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
@ -522,14 +522,14 @@ function isArrayLike( obj ) {
} }
var Sizzle = var Sizzle =
/*! /*!
* Sizzle CSS Selector Engine v2.3.9 * Sizzle CSS Selector Engine v2.3.10
* https://sizzlejs.com/ * https://sizzlejs.com/
* *
* Copyright JS Foundation and other contributors * Copyright JS Foundation and other contributors
* Released under the MIT license * Released under the MIT license
* https://js.foundation/ * https://js.foundation/
* *
* Date: 2022-12-19 * Date: 2023-02-14
*/ */
( function( window ) { ( function( window ) {
var i, var i,
@ -633,7 +633,7 @@ var i,
whitespace + "+$", "g" ), whitespace + "+$", "g" ),
rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + rleadingCombinator = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace +
"*" ), "*" ),
rdescend = new RegExp( whitespace + "|>" ), rdescend = new RegExp( whitespace + "|>" ),
@ -850,7 +850,7 @@ function Sizzle( selector, context, results, seed ) {
// as such selectors are not recognized by querySelectorAll. // as such selectors are not recognized by querySelectorAll.
// Thanks to Andrew Dupont for this technique. // Thanks to Andrew Dupont for this technique.
if ( nodeType === 1 && if ( nodeType === 1 &&
( rdescend.test( selector ) || rcombinators.test( selector ) ) ) { ( rdescend.test( selector ) || rleadingCombinator.test( selector ) ) ) {
// Expand context for sibling selectors // Expand context for sibling selectors
newContext = rsibling.test( selector ) && testContext( context.parentNode ) || newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
@ -879,27 +879,6 @@ function Sizzle( selector, context, results, seed ) {
} }
try { try {
// `qSA` may not throw for unrecognized parts using forgiving parsing:
// https://drafts.csswg.org/selectors/#forgiving-selector
// like the `:has()` pseudo-class:
// https://drafts.csswg.org/selectors/#relational
// `CSS.supports` is still expected to return `false` then:
// https://drafts.csswg.org/css-conditional-4/#typedef-supports-selector-fn
// https://drafts.csswg.org/css-conditional-4/#dfn-support-selector
if ( support.cssSupportsSelector &&
// eslint-disable-next-line no-undef
!CSS.supports( "selector(:is(" + newSelector + "))" ) ) {
// Support: IE 11+
// Throw to get to the same code path as an error directly in qSA.
// Note: once we only support browser supporting
// `CSS.supports('selector(...)')`, we can most likely drop
// the `try-catch`. IE doesn't implement the API.
throw new Error();
}
push.apply( results, push.apply( results,
newContext.querySelectorAll( newSelector ) newContext.querySelectorAll( newSelector )
); );
@ -1195,29 +1174,22 @@ setDocument = Sizzle.setDocument = function( node ) {
!el.querySelectorAll( ":scope fieldset div" ).length; !el.querySelectorAll( ":scope fieldset div" ).length;
} ); } );
// Support: Chrome 105+, Firefox 104+, Safari 15.4+ // Support: Chrome 105 - 110+, Safari 15.4 - 16.3+
// Make sure forgiving mode is not used in `CSS.supports( "selector(...)" )`. // Make sure the the `:has()` argument is parsed unforgivingly.
// // We include `*` in the test to detect buggy implementations that are
// `:is()` uses a forgiving selector list as an argument and is widely // _selectively_ forgiving (specifically when the list includes at least
// implemented, so it's a good one to test against. // one valid selector).
support.cssSupportsSelector = assert( function() { // Note that we treat complete lack of support for `:has()` as if it were
/* eslint-disable no-undef */ // spec-compliant support, which is fine because use of `:has()` in such
// environments will fail in the qSA path and fall back to jQuery traversal
return CSS.supports( "selector(*)" ) && // anyway.
support.cssHas = assert( function() {
// Support: Firefox 78-81 only try {
// In old Firefox, `:is()` didn't use forgiving parsing. In that case, document.querySelector( ":has(*,:jqfake)" );
// fail this test as there's no selector to test against that. return false;
// `CSS.supports` uses unforgiving parsing } catch ( e ) {
document.querySelectorAll( ":is(:jqfake)" ) && return true;
}
// `*` is needed as Safari & newer Chrome implemented something in between
// for `:has()` - it throws in `qSA` if it only contains an unsupported
// argument but multiple ones, one of which is supported, are fine.
// We want to play safe in case `:is()` gets the same treatment.
!CSS.supports( "selector(:is(*,:jqfake))" );
/* eslint-enable */
} ); } );
/* Attributes /* Attributes
@ -1486,14 +1458,14 @@ setDocument = Sizzle.setDocument = function( node ) {
} ); } );
} }
if ( !support.cssSupportsSelector ) { if ( !support.cssHas ) {
// Support: Chrome 105+, Safari 15.4+ // Support: Chrome 105 - 110+, Safari 15.4 - 16.3+
// `:has()` uses a forgiving selector list as an argument so our regular // Our regular `try-catch` mechanism fails to detect natively-unsupported
// `try-catch` mechanism fails to catch `:has()` with arguments not supported // pseudo-classes inside `:has()` (such as `:has(:contains("Foo"))`)
// natively like `:has(:contains("Foo"))`. Where supported & spec-compliant, // in browsers that parse the `:has()` argument as a forgiving selector list.
// we now use `CSS.supports("selector(:is(SELECTOR_TO_BE_TESTED))")`, but // https://drafts.csswg.org/selectors/#relational now requires the argument
// outside that we mark `:has` as buggy. // to be parsed unforgivingly, but browsers have not yet fully adjusted.
rbuggyQSA.push( ":has" ); rbuggyQSA.push( ":has" );
} }
@ -2406,7 +2378,7 @@ tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
matched = false; matched = false;
// Combinators // Combinators
if ( ( match = rcombinators.exec( soFar ) ) ) { if ( ( match = rleadingCombinator.exec( soFar ) ) ) {
matched = match.shift(); matched = match.shift();
tokens.push( { tokens.push( {
value: matched, value: matched,

View File

@ -1,7 +1,7 @@
( function() { ( function() {
"use strict"; "use strict";
var DEFAULT_JQUERY_VERSION = "3.6.3"; var DEFAULT_JQUERY_VERSION = "3.6.4";
requirejs.config( { requirejs.config( {
paths: { paths: {
@ -123,7 +123,7 @@ function migrateUrl() {
if ( jqueryVersion === "git" ) { if ( jqueryVersion === "git" ) {
url = "https://releases.jquery.com/git/jquery-migrate-git"; url = "https://releases.jquery.com/git/jquery-migrate-git";
} else if ( jqueryVersion[ 0 ] === "3" ) { } else if ( jqueryVersion[ 0 ] === "3" ) {
url = "../../../external/jquery-migrate-3.4.0/jquery-migrate"; url = "../../../external/jquery-migrate-3.4.1/jquery-migrate";
} else if ( jqueryVersion[ 0 ] === "1" || jqueryVersion[ 0 ] === "2" ) { } else if ( jqueryVersion[ 0 ] === "1" || jqueryVersion[ 0 ] === "2" ) {
url = "../../../external/jquery-migrate-1.4.1/jquery-migrate"; url = "../../../external/jquery-migrate-1.4.1/jquery-migrate";
} else if ( jqueryVersion === "custom" ) { } else if ( jqueryVersion === "custom" ) {

View File

@ -29,7 +29,7 @@ QUnit.config.urlConfig.push( {
"3.3.0", "3.3.1", "3.3.0", "3.3.1",
"3.4.0", "3.4.1", "3.4.0", "3.4.1",
"3.5.0", "3.5.1", "3.5.0", "3.5.1",
"3.6.0", "3.6.1", "3.6.2", "3.6.3", "3.6.0", "3.6.1", "3.6.2", "3.6.3", "3.6.4",
"3.x-git", "git", "custom" "3.x-git", "git", "custom"
], ],
tooltip: "Which jQuery Core version to test against" tooltip: "Which jQuery Core version to test against"

View File

@ -16,7 +16,7 @@ var versions = [
"3.3.0", "3.3.1", "3.3.0", "3.3.1",
"3.4.0", "3.4.1", "3.4.0", "3.4.1",
"3.5.0", "3.5.1", "3.5.0", "3.5.1",
"3.6.0", "3.6.1", "3.6.2", "3.6.3", "3.6.0", "3.6.1", "3.6.2", "3.6.3", "3.6.4",
"3.x-git", "git", "custom" "3.x-git", "git", "custom"
], ],
additionalTests = { additionalTests = {