mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Build: Add jQuery 3.6.0, update Migrate from 3.3.1 to 3.3.2
Closes gh-1948
This commit is contained in:
parent
834ee5f7cf
commit
e6592a8aff
@ -439,11 +439,14 @@ grunt.initConfig( {
|
||||
"jquery-3.5.1/jquery.js": "jquery-3.5.1/dist/jquery.js",
|
||||
"jquery-3.5.1/LICENSE.txt": "jquery-3.5.1/LICENSE.txt",
|
||||
|
||||
"jquery-3.6.0/jquery.js": "jquery-3.6.0/dist/jquery.js",
|
||||
"jquery-3.6.0/LICENSE.txt": "jquery-3.6.0/LICENSE.txt",
|
||||
|
||||
"jquery-migrate-1.4.1/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-3.3.1/jquery-migrate.js": "jquery-migrate-3.3.1/dist/jquery-migrate.js",
|
||||
"jquery-migrate-3.3.1/LICENSE.txt": "jquery-migrate-3.3.1/LICENSE.txt"
|
||||
"jquery-migrate-3.3.2/jquery-migrate.js": "jquery-migrate-3.3.2/dist/jquery-migrate.js",
|
||||
"jquery-migrate-3.3.2/LICENSE.txt": "jquery-migrate-3.3.2/LICENSE.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -66,7 +66,8 @@
|
||||
"jquery-3.4.1": "jquery#3.4.1",
|
||||
"jquery-3.5.0": "jquery#3.5.0",
|
||||
"jquery-3.5.1": "jquery#3.5.1",
|
||||
"jquery-3.6.0": "jquery#3.6.0",
|
||||
"jquery-migrate-1.4.1": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-1.4.1.tgz",
|
||||
"jquery-migrate-3.3.1": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-3.3.1.tgz"
|
||||
"jquery-migrate-3.3.2": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-3.3.2.tgz"
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ module.exports = function( grunt ) {
|
||||
var versions = {
|
||||
"git": "git",
|
||||
"3.x-git": "3.x-git",
|
||||
"3.6": "3.6.0",
|
||||
"3.5": "3.5.1",
|
||||
"3.4": "3.4.1",
|
||||
"3.3": "3.3.1",
|
||||
|
20
external/jquery-3.6.0/LICENSE.txt
vendored
Normal file
20
external/jquery-3.6.0/LICENSE.txt
vendored
Normal 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.
|
10881
external/jquery-3.6.0/jquery.js
vendored
Normal file
10881
external/jquery-3.6.0/jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* jQuery Migrate - v3.3.1 - 2020-06-25T01:07Z
|
||||
* jQuery Migrate - v3.3.2 - 2020-11-17T23:22Z
|
||||
* Copyright OpenJS Foundation and other contributors
|
||||
*/
|
||||
( function( factory ) {
|
||||
@ -24,7 +24,7 @@
|
||||
} )( function( jQuery, window ) {
|
||||
"use strict";
|
||||
|
||||
jQuery.migrateVersion = "3.3.1";
|
||||
jQuery.migrateVersion = "3.3.2";
|
||||
|
||||
// Returns 0 if v1 == v2, -1 if v1 < v2, 1 if v1 > v2
|
||||
function compareVersions( v1, v2 ) {
|
||||
@ -238,6 +238,10 @@ if ( jQueryVersionSince( "3.2.0" ) ) {
|
||||
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
|
||||
},
|
||||
"jQuery.nodeName is deprecated" );
|
||||
|
||||
migrateWarnFunc( jQuery, "isArray", Array.isArray,
|
||||
"jQuery.isArray is deprecated; use Array.isArray"
|
||||
);
|
||||
}
|
||||
|
||||
if ( jQueryVersionSince( "3.3.0" ) ) {
|
||||
@ -289,16 +293,13 @@ if ( jQueryVersionSince( "3.3.0" ) ) {
|
||||
},
|
||||
"jQuery.isWindow() is deprecated"
|
||||
);
|
||||
|
||||
migrateWarnFunc( jQuery, "isArray", Array.isArray,
|
||||
"jQuery.isArray is deprecated; use Array.isArray"
|
||||
);
|
||||
}
|
||||
|
||||
// Support jQuery slim which excludes the ajax module
|
||||
if ( jQuery.ajax ) {
|
||||
|
||||
var oldAjax = jQuery.ajax;
|
||||
var oldAjax = jQuery.ajax,
|
||||
rjsonp = /(=)\?(?=&|$)|\?\?/;
|
||||
|
||||
jQuery.ajax = function( ) {
|
||||
var jQXHR = oldAjax.apply( this, arguments );
|
||||
@ -316,6 +317,28 @@ jQuery.ajax = function( ) {
|
||||
return jQXHR;
|
||||
};
|
||||
|
||||
// Only trigger the logic in jQuery <4 as the JSON-to-JSONP auto-promotion
|
||||
// behavior is gone in jQuery 4.0 and as it has security implications, we don't
|
||||
// want to restore the legacy behavior.
|
||||
if ( !jQueryVersionSince( "4.0.0" ) ) {
|
||||
|
||||
// Register this prefilter before the jQuery one. Otherwise, a promoted
|
||||
// request is transformed into one with the script dataType and we can't
|
||||
// catch it anymore.
|
||||
jQuery.ajaxPrefilter( "+json", function( s ) {
|
||||
|
||||
// Warn if JSON-to-JSONP auto-promotion happens.
|
||||
if ( s.jsonp !== false && ( rjsonp.test( s.url ) ||
|
||||
typeof s.data === "string" &&
|
||||
( s.contentType || "" )
|
||||
.indexOf( "application/x-www-form-urlencoded" ) === 0 &&
|
||||
rjsonp.test( s.data )
|
||||
) ) {
|
||||
migrateWarn( "JSON-to-JSONP auto-promotion is deprecated" );
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var oldRemoveAttr = jQuery.fn.removeAttr,
|
||||
@ -475,6 +498,7 @@ jQuery.fn.css = function( name, value ) {
|
||||
jQuery.each( name, function( n, v ) {
|
||||
jQuery.fn.css.call( origThis, n, v );
|
||||
} );
|
||||
return this;
|
||||
}
|
||||
if ( typeof value === "number" ) {
|
||||
camelName = camelCase( name );
|
2
tests/lib/bootstrap.js
vendored
2
tests/lib/bootstrap.js
vendored
@ -123,7 +123,7 @@ function migrateUrl() {
|
||||
if ( jqueryVersion === "git" ) {
|
||||
url = "https://code.jquery.com/jquery-migrate-git";
|
||||
} else if ( jqueryVersion[ 0 ] === "3" ) {
|
||||
url = "../../../external/jquery-migrate-3.3.1/jquery-migrate";
|
||||
url = "../../../external/jquery-migrate-3.3.2/jquery-migrate";
|
||||
} else if ( jqueryVersion[ 0 ] === "1" || jqueryVersion[ 0 ] === "2" ) {
|
||||
url = "../../../external/jquery-migrate-1.4.1/jquery-migrate";
|
||||
} else if ( jqueryVersion === "custom" ) {
|
||||
|
@ -34,6 +34,7 @@ QUnit.config.urlConfig.push( {
|
||||
"3.3.0", "3.3.1",
|
||||
"3.4.0", "3.4.1",
|
||||
"3.5.0", "3.5.1",
|
||||
"3.6.0",
|
||||
"3.x-git", "git", "custom"
|
||||
],
|
||||
tooltip: "Which jQuery Core version to test against"
|
||||
|
@ -15,6 +15,7 @@ var versions = [
|
||||
"3.3.0", "3.3.1",
|
||||
"3.4.0", "3.4.1",
|
||||
"3.5.0", "3.5.1",
|
||||
"3.6.0",
|
||||
"3.x-git", "git", "custom"
|
||||
],
|
||||
additionalTests = {
|
||||
|
Loading…
Reference in New Issue
Block a user