Socket
Socket
Sign inDemoInstall

jquery

Package Overview
Dependencies
0
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.6.0 to 3.6.1

src/css/var/rcustomProp.js

4

AUTHORS.txt

@@ -332,1 +332,5 @@ John Resig <jeresig@gmail.com>

Dallas Fraser <dallas.fraser.waterloo@gmail.com>
fecore1 <89127124+fecore1@users.noreply.github.com>
ygj6 <7699524+ygj6@users.noreply.github.com>
Simon Legner <Simon.Legner@gmail.com>
Vladimir Sitnikov <sitnikov.vladimir@gmail.com>

31

package.json

@@ -5,3 +5,3 @@ {

"description": "JavaScript library for DOM operations",
"version": "3.6.0",
"version": "3.6.1",
"main": "dist/jquery.js",

@@ -11,3 +11,3 @@ "homepage": "https://jquery.com",

"name": "OpenJS Foundation and other contributors",
"url": "https://github.com/jquery/jquery/blob/3.6.0/AUTHORS.txt"
"url": "https://github.com/jquery/jquery/blob/3.6.1/AUTHORS.txt"
},

@@ -31,8 +31,9 @@ "repository": {

"@babel/plugin-transform-for-of": "7.2.0",
"colors": "1.4.0",
"commitplease": "3.2.0",
"core-js": "2.6.5",
"eslint-config-jquery": "3.0.0",
"grunt": "1.3.0",
"grunt": "1.4.1",
"grunt-babel": "8.0.0",
"grunt-cli": "1.3.2",
"grunt-cli": "1.4.3",
"grunt-compare-size": "0.4.2",

@@ -43,17 +44,17 @@ "grunt-contrib-uglify": "3.4.0",

"grunt-git-authors": "3.2.0",
"grunt-jsonlint": "1.1.0",
"grunt-karma": "4.0.0",
"grunt-jsonlint": "2.1.2",
"grunt-karma": "4.0.2",
"grunt-newer": "1.3.0",
"grunt-npmcopy": "0.2.0",
"gzip-js": "0.3.2",
"husky": "1.3.1",
"insight": "0.10.1",
"jsdom": "13.2.0",
"karma": "5.2.3",
"karma-browserstack-launcher": "1.4.0",
"karma-chrome-launcher": "2.2.0",
"karma-firefox-launcher": "1.1.0",
"husky": "4.2.5",
"insight": "0.10.3",
"jsdom": "19.0.0",
"karma": "^6.3.17",
"karma-browserstack-launcher": "1.6.0",
"karma-chrome-launcher": "3.1.1",
"karma-firefox-launcher": "2.1.2",
"karma-ie-launcher": "1.0.0",
"karma-jsdom-launcher": "8.0.2",
"karma-qunit": "3.0.0",
"karma-jsdom-launcher": "12.0.0",
"karma-qunit": "4.1.2",
"load-grunt-tasks": "5.1.0",

@@ -60,0 +61,0 @@ "native-promise-only": "0.8.1",

@@ -8,3 +8,3 @@ # jQuery

If upgrading, please see the [blog post for 3.6.0](https://blog.jquery.com/2021/03/02/jquery-3-6-0-released/). This includes notable differences from the previous version and a more readable changelog.
If upgrading, please see the [blog post for 3.6.1](https://blog.jquery.com/2022/08/26/jquery-3-6-1-maintenance-release/). This includes notable differences from the previous version and a more readable changelog.

@@ -20,3 +20,3 @@ ## Including jQuery

```html
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.1.min.js"></script>
```

@@ -34,3 +34,3 @@

There are several ways to use [Browserify](http://browserify.org/) and [Webpack](https://webpack.github.io/). For more information on using these tools, please refer to the corresponding project's documentation. In the script, including jQuery will usually look like this...
There are several ways to use [Browserify](http://browserify.org/) and [Webpack](https://webpack.js.org/). For more information on using these tools, please refer to the corresponding project's documentation. In the script, including jQuery will usually look like this...

@@ -37,0 +37,0 @@ ```js

@@ -25,3 +25,3 @@ define( [

// #7653, #8125, #8152: local protocol detection
// trac-7653, trac-8125, trac-8152: local protocol detection
rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,

@@ -49,3 +49,3 @@ rnoContent = /^(?:GET|HEAD)$/,

// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
// Avoid comment-prolog char sequence (trac-10098); must appease lint and evade compression
allTypes = "*/".concat( "*" ),

@@ -121,3 +121,3 @@

// that takes "flat" options (not to be deep extended)
// Fixes #9887
// Fixes trac-9887
function ajaxExtend( target, src ) {

@@ -533,3 +533,3 @@ var key, deep,

// Add protocol if not provided (prefilters might expect it)
// Handle falsy url in the settings object (#10093: consistency with old signature)
// Handle falsy url in the settings object (trac-10093: consistency with old signature)
// We also use the url parameter if available

@@ -539,3 +539,3 @@ s.url = ( ( url || s.url || location.href ) + "" )

// Alias method option to type as per ticket #12004
// Alias method option to type as per ticket trac-12004
s.type = options.method || options.type || s.method || s.type;

@@ -583,3 +583,3 @@

// We can fire global events as of now if asked to
// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (trac-15118)
fireGlobals = jQuery.event && s.global;

@@ -613,3 +613,3 @@

// #9682: remove data so that it's not used in an eventual retry
// trac-9682: remove data so that it's not used in an eventual retry
delete s.data;

@@ -616,0 +616,0 @@ }

@@ -21,3 +21,3 @@ define( [

// Support: IE <=9 only
// #1450: sometimes IE returns 1223 when it should be 204
// trac-1450: sometimes IE returns 1223 when it should be 204
1223: 204

@@ -94,3 +94,3 @@ },

// File: protocol always yields status 0; see #8605, #14207
// File: protocol always yields status 0; see trac-8605, trac-14207
xhr.status,

@@ -156,3 +156,3 @@ xhr.statusText

// #14683: Only rethrow if this hasn't been notified as an error yet
// trac-14683: Only rethrow if this hasn't been notified as an error yet
if ( callback ) {

@@ -159,0 +159,0 @@ throw e;

@@ -28,4 +28,3 @@ define( [

addClass: function( value ) {
var classes, elem, cur, curValue, clazz, j, finalValue,
i = 0;
var classNames, cur, curValue, className, i, finalValue;

@@ -38,14 +37,14 @@ if ( isFunction( value ) ) {

classes = classesToArray( value );
classNames = classesToArray( value );
if ( classes.length ) {
while ( ( elem = this[ i++ ] ) ) {
curValue = getClass( elem );
cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
if ( classNames.length ) {
return this.each( function() {
curValue = getClass( this );
cur = this.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
if ( cur ) {
j = 0;
while ( ( clazz = classes[ j++ ] ) ) {
if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
cur += clazz + " ";
for ( i = 0; i < classNames.length; i++ ) {
className = classNames[ i ];
if ( cur.indexOf( " " + className + " " ) < 0 ) {
cur += className + " ";
}

@@ -57,6 +56,6 @@ }

if ( curValue !== finalValue ) {
elem.setAttribute( "class", finalValue );
this.setAttribute( "class", finalValue );
}
}
}
} );
}

@@ -68,4 +67,3 @@

removeClass: function( value ) {
var classes, elem, cur, curValue, clazz, j, finalValue,
i = 0;
var classNames, cur, curValue, className, i, finalValue;

@@ -82,18 +80,18 @@ if ( isFunction( value ) ) {

classes = classesToArray( value );
classNames = classesToArray( value );
if ( classes.length ) {
while ( ( elem = this[ i++ ] ) ) {
curValue = getClass( elem );
if ( classNames.length ) {
return this.each( function() {
curValue = getClass( this );
// This expression is here for better compressibility (see addClass)
cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
cur = this.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
if ( cur ) {
j = 0;
while ( ( clazz = classes[ j++ ] ) ) {
for ( i = 0; i < classNames.length; i++ ) {
className = classNames[ i ];
// Remove *all* instances
while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
cur = cur.replace( " " + clazz + " ", " " );
while ( cur.indexOf( " " + className + " " ) > -1 ) {
cur = cur.replace( " " + className + " ", " " );
}

@@ -105,6 +103,6 @@ }

if ( curValue !== finalValue ) {
elem.setAttribute( "class", finalValue );
this.setAttribute( "class", finalValue );
}
}
}
} );
}

@@ -116,9 +114,6 @@

toggleClass: function( value, stateVal ) {
var type = typeof value,
var classNames, className, i, self,
type = typeof value,
isValidValue = type === "string" || Array.isArray( value );
if ( typeof stateVal === "boolean" && isValidValue ) {
return stateVal ? this.addClass( value ) : this.removeClass( value );
}
if ( isFunction( value ) ) {

@@ -133,13 +128,16 @@ return this.each( function( i ) {

if ( typeof stateVal === "boolean" && isValidValue ) {
return stateVal ? this.addClass( value ) : this.removeClass( value );
}
classNames = classesToArray( value );
return this.each( function() {
var className, i, self, classNames;
if ( isValidValue ) {
// Toggle individual class names
i = 0;
self = jQuery( this );
classNames = classesToArray( value );
while ( ( className = classNames[ i++ ] ) ) {
for ( i = 0; i < classNames.length; i++ ) {
className = classNames[ i ];

@@ -146,0 +144,0 @@ // Check each className given, space separated list

@@ -65,4 +65,3 @@ define( [

// correct value when it hasn't been explicitly set
// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
// Use proper attribute retrieval(#12072)
// Use proper attribute retrieval (trac-12072)
var tabindex = jQuery.find.attr( elem, "tabindex" );

@@ -69,0 +68,0 @@

@@ -94,3 +94,3 @@ define( [

// Support: IE <=10 - 11 only
// option.text throws exceptions (#14686, #14858)
// option.text throws exceptions (trac-14686, trac-14858)
// Strip and collapse whitespace

@@ -122,3 +122,3 @@ // https://html.spec.whatwg.org/#strip-and-collapse-whitespace

// Support: IE <=9 only
// IE8-9 doesn't update selected after form reset (#2551)
// IE8-9 doesn't update selected after form reset (trac-2551)
if ( ( option.selected || i === index ) &&

@@ -125,0 +125,0 @@

@@ -29,3 +29,3 @@ /* global Symbol */

var
version = "3.6.0",
version = "3.6.1",

@@ -32,0 +32,0 @@ // Define a local copy of jQuery

@@ -16,3 +16,3 @@ define( [], function() {

// Support: IE <=9 - 11, Edge 12 - 15
// Microsoft forgot to hump their vendor prefix (#9572)
// Microsoft forgot to hump their vendor prefix (trac-9572)
function camelCase( string ) {

@@ -19,0 +19,0 @@ return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );

@@ -17,4 +17,4 @@ // Initialize a jQuery object

// A simple way to check for HTML strings
// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
// Strict HTML recognition (#11290: must start with <)
// Prioritize #id over <tag> to avoid XSS via location.hash (trac-9521)
// Strict HTML recognition (trac-11290: must start with <)
// Shortcut simple #id case for speed

@@ -21,0 +21,0 @@ rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,

@@ -33,3 +33,3 @@ define( [

// A counter to track how many items to wait for before
// the ready event fires. See #6781
// the ready event fires. See trac-6781
readyWait: 1,

@@ -36,0 +36,0 @@

@@ -34,3 +34,3 @@ define( [

// A counter to track how many items to wait for before
// the ready event fires. See #6781
// the ready event fires. See trac-6781
readyWait: 1,

@@ -37,0 +37,0 @@

@@ -8,2 +8,3 @@ define( [

"./css/var/rnumnonpx",
"./css/var/rcustomProp",
"./css/var/cssExpand",

@@ -21,4 +22,5 @@ "./css/var/getStyles",

"./selector" // contains
], function( jQuery, access, camelCase, nodeName, rcssNum, rnumnonpx, cssExpand,
getStyles, swap, curCSS, adjustCSS, addGetHookIf, support, finalPropName ) {
], function( jQuery, access, camelCase, nodeName, rcssNum, rnumnonpx,
rcustomProp, cssExpand, getStyles, swap, curCSS, adjustCSS, addGetHookIf,
support, finalPropName ) {

@@ -33,3 +35,2 @@ "use strict";

rdisplayswap = /^(none|table(?!-c[ea]).+)/,
rcustomProp = /^--/,
cssShow = { position: "absolute", visibility: "hidden", display: "block" },

@@ -270,11 +271,11 @@ cssNormalTransform = {

// Convert "+=" or "-=" to relative numbers (#7345)
// Convert "+=" or "-=" to relative numbers (trac-7345)
if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
value = adjustCSS( elem, name, ret );
// Fixes bug #9237
// Fixes bug trac-9237
type = "number";
}
// Make sure that null and NaN values aren't set (#7116)
// Make sure that null and NaN values aren't set (trac-7116)
if ( value == null || value !== value ) {

@@ -281,0 +282,0 @@ return;

@@ -7,4 +7,7 @@ define( [

"./var/getStyles",
"./var/rcustomProp",
"../var/rtrimCSS",
"./support"
], function( jQuery, isAttached, rboxStyle, rnumnonpx, getStyles, support ) {
], function( jQuery, isAttached, rboxStyle, rnumnonpx, getStyles,
rcustomProp, rtrimCSS, support ) {

@@ -15,2 +18,3 @@ "use strict";

var width, minWidth, maxWidth, ret,
isCustomProp = rcustomProp.test( name ),

@@ -26,7 +30,18 @@ // Support: Firefox 51+

// getPropertyValue is needed for:
// .css('filter') (IE 9 only, #12537)
// .css('--customProperty) (#3144)
// .css('filter') (IE 9 only, trac-12537)
// .css('--customProperty) (gh-3144)
if ( computed ) {
ret = computed.getPropertyValue( name ) || computed[ name ];
// trim whitespace for custom property (issue gh-4926)
if ( isCustomProp ) {
// rtrim treats U+000D CARRIAGE RETURN and U+000C FORM FEED
// as whitespace while CSS does not, but this is not a problem
// because CSS preprocessing replaces them with U+000A LINE FEED
// (which *is* CSS whitespace)
// https://www.w3.org/TR/css-syntax-3/#input-preprocessing
ret = ret.replace( rtrimCSS, "$1" );
}
if ( ret === "" && !isAttached( elem ) ) {

@@ -33,0 +48,0 @@ ret = jQuery.style( elem, name );

@@ -73,3 +73,3 @@ define( [

// Support: IE <=9 - 11 only
// Style of cloned element affects source element cloned (#8908)
// Style of cloned element affects source element cloned (trac-8908)
div.style.backgroundClip = "content-box";

@@ -76,0 +76,0 @@ div.cloneNode( true ).style.backgroundClip = "";

@@ -6,3 +6,3 @@ define( function() {

// Support: IE <=11 only, Firefox <=30 (#15098, #14150)
// Support: IE <=11 only, Firefox <=30 (trac-15098, trac-14150)
// IE throws on elements created in popups

@@ -9,0 +9,0 @@ // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"

@@ -112,3 +112,3 @@ define( [

// Support: IE 11 only
// The attrs elements can be null (#14894)
// The attrs elements can be null (trac-14894)
if ( attrs[ i ] ) {

@@ -115,0 +115,0 @@ name = attrs[ i ].name;

@@ -28,3 +28,3 @@ define( [

// We can accept data for non-element nodes in modern browsers,
// but we should not, see #8335.
// but we should not, see trac-8335.
// Always return an empty object.

@@ -31,0 +31,0 @@ if ( acceptData( owner ) ) {

@@ -18,3 +18,5 @@ define( [

// Make sure we trim BOM and NBSP
var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
// Require that the "whitespace run" starts from a non-whitespace
// to avoid O(N^2) behavior when the engine would try matching "\s+$" at each space position.
var rtrim = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;

@@ -86,4 +88,4 @@ // Bind a function to a context, optionally partially applying any

"" :
( text + "" ).replace( rtrim, "" );
( text + "" ).replace( rtrim, "$1" );
};
} );

@@ -313,3 +313,3 @@ define( [

// Support: Android 2.3 only
// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (trac-12497)
temp = remaining / animation.duration || 0,

@@ -316,0 +316,0 @@ percent = 1 - temp,

@@ -396,4 +396,4 @@ define( [

// Don't check non-elements (#13208)
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
// Don't check non-elements (trac-13208)
// Don't process clicks on disabled elements (trac-6911, trac-8165, trac-11382, trac-11764)
if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {

@@ -405,3 +405,3 @@ matchedHandlers = [];

// Don't conflict with Object.prototype properties (#13203)
// Don't conflict with Object.prototype properties (trac-13203)
sel = handleObj.selector + " ";

@@ -660,3 +660,3 @@

// Support: Safari <=6 - 7 only
// Target should not be a text node (#504, #13143)
// Target should not be a text node (trac-504, trac-13143)
this.target = ( src.target && src.target.nodeType === 3 ) ?

@@ -784,6 +784,6 @@ src.target.parentNode :

// Suppress native focus or blur as it's already being fired
// in leverageNative.
_default: function() {
return true;
// Suppress native focus or blur if we're currently inside
// a leveraged native-event stack
_default: function( event ) {
return dataPriv.get( event.target, type );
},

@@ -790,0 +790,0 @@

@@ -78,4 +78,4 @@ define( [

// Determine event propagation path in advance, per W3C events spec (#9951)
// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
// Determine event propagation path in advance, per W3C events spec (trac-9951)
// Bubble up to document, then to window; watch for a global ownerDocument var (trac-9724)
if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {

@@ -132,3 +132,3 @@

// Call a native DOM method on the target with the same name as the event.
// Don't do default actions on window, that's where global variables be (#6170)
// Don't do default actions on window, that's where global variables be (trac-6170)
if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {

@@ -135,0 +135,0 @@

@@ -28,4 +28,4 @@ define( [

// Expose jQuery and $ identifiers, even in AMD
// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
// and CommonJS for browser emulators (#13566)
// (trac-7102#comment:10, https://github.com/jquery/jquery/pull/557)
// and CommonJS for browser emulators (trac-13566)
if ( typeof noGlobal === "undefined" ) {

@@ -32,0 +32,0 @@ window.jQuery = window.$ = jQuery;

@@ -43,4 +43,5 @@ define( [

rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
rcleanScript = /^\s*<!\[CDATA\[|\]\]>\s*$/g;
// Prefer a tbody over its parent table for containing new rows

@@ -158,3 +159,3 @@ function manipulationTarget( elem, content ) {

// instead of the first because it can end up
// being emptied incorrectly in certain situations (#8070).
// being emptied incorrectly in certain situations (trac-8070).
for ( ; i < l; i++ ) {

@@ -200,2 +201,8 @@ node = fragment;

} else {
// Unwrap a CDATA section containing script contents. This shouldn't be
// needed as in XML documents they're already not visible when
// inspecting element contents and in HTML documents they have no
// meaning but we're preserving that logic for backwards compatibility.
// This will be removed completely in 4.0. See gh-4904.
DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc );

@@ -202,0 +209,0 @@ }

@@ -11,3 +11,3 @@ define( [

// Make this explicit, since user can override this through ajaxSetup (#11264)
// Make this explicit, since user can override this through ajaxSetup (trac-11264)
type: "GET",

@@ -14,0 +14,0 @@ dataType: "script",

@@ -61,3 +61,3 @@ define( [

// Ensure the created nodes are orphaned (#12392)
// Ensure the created nodes are orphaned (trac-12392)
tmp.textContent = "";

@@ -64,0 +64,0 @@ }

@@ -11,3 +11,3 @@ define( [

// Support: IE <=9 - 11 only
// Use typeof to avoid zero-argument method invocation on host objects (#15151)
// Use typeof to avoid zero-argument method invocation on host objects (trac-15151)
var ret;

@@ -14,0 +14,0 @@

@@ -14,5 +14,5 @@ define( [

// Support: Android 4.0 - 4.3 only
// Check state lost if the name is set (#11217)
// Check state lost if the name is set (trac-11217)
// Support: Windows Web Apps (WWA)
// `name` and `type` must use .setAttribute for WWA (#14901)
// `name` and `type` must use .setAttribute for WWA (trac-14901)
input.setAttribute( "type", "radio" );

@@ -19,0 +19,0 @@ input.setAttribute( "checked", "checked" );

@@ -7,3 +7,3 @@ define( [

// We have to close these tags to support XHTML (#13200)
// We have to close these tags to support XHTML (trac-13200)
var wrapMap = {

@@ -10,0 +10,0 @@

@@ -10,3 +10,2 @@ define( [

// Based off of the plugin by Clint Helfers, with permission.
// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
jQuery.fn.delay = function( time, type ) {

@@ -13,0 +12,0 @@ time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;

@@ -233,3 +233,3 @@ define( [

// Don't get fooled by Object.prototype properties (jQuery #13807)
// Don't get fooled by Object.prototype properties (jQuery trac-13807)
value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?

@@ -236,0 +236,0 @@ fn( elem, name, jQuery.isXMLDoc( elem ) ) :

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc