Comparing version 2.1.0-beta2 to 2.1.0-beta3
@@ -17,3 +17,3 @@ Authors ordered by first contribution. | ||
Ed Engelhardt <edengelhardt@gmail.com> | ||
Sean Catchpole <sean@sunsean.com> | ||
Sean Catchpole <littlecooldude@gmail.com> | ||
Paul Mclanahan <pmclanahan@gmail.com> | ||
@@ -58,5 +58,8 @@ David Serduke <davidserduke@gmail.com> | ||
J. Ryan Stinnett <jryans@gmail.com> | ||
unknown <Igen005@.upcorp.ad.uprr.com> | ||
temp01 <temp01irc@gmail.com> | ||
Heungsub Lee <h@subl.ee> | ||
Colin Snover <github.com@zetafleet.com> | ||
Ryan W Tenney <ryan@10e.us> | ||
Pinhook <contact@pinhooklabs.com> | ||
Ron Otten <r.j.g.otten@gmail.com> | ||
@@ -68,3 +71,3 @@ Jephte Clain <Jephte.Clain@univ-reunion.fr> | ||
Henri Wiechers <hwiechers@gmail.com> | ||
Russell Holbrook <russellholbrook@gmail.com> | ||
Russell Holbrook <russell.holbrook@patch.com> | ||
Julian Aubourg <aubourg.julian@gmail.com> | ||
@@ -82,2 +85,3 @@ Gianni Alessandro Chiappetta <gianni@runlevel6.org> | ||
Corey Frang <gnarf37@gmail.com> | ||
Digitalxero <digitalxero> | ||
Anton Kovalyov <anton@kovalyov.net> | ||
@@ -100,3 +104,4 @@ David Murdoch <david@davidmurdoch.com> | ||
Sahab Yazdani <sahab.yazdani+github@gmail.com> | ||
Scott Hughes <shughes@atlassian.com> | ||
avaly <github-com@agachi.name> | ||
Scott Hughes <hi@scott-hughes.me> | ||
Mike Sherov <mike.sherov@gmail.com> | ||
@@ -113,2 +118,3 @@ Greg Hazel <ghazel@gmail.com> | ||
Matt Mueller <mattmuelle@gmail.com> | ||
Justin <drakefjustin@gmail.com> | ||
Daniel Herman <daniel.c.herman@gmail.com> | ||
@@ -118,2 +124,3 @@ Oleg Gaidarenko <markelog@gmail.com> | ||
Rafaël Blais Masson <rafbmasson@gmail.com> | ||
cmc3cn <59194618@qq.com> | ||
Joe Presbrey <presbrey@gmail.com> | ||
@@ -124,4 +131,5 @@ Sindre Sorhus <sindresorhus@gmail.com> | ||
Andrew E Monat <amonat@gmail.com> | ||
Oskari <admin@o-programs.com> | ||
Joao Henrique de Andrade Bruni <joaohbruni@yahoo.com.br> | ||
Dominik D. Geyer <dominik.geyer@gmail.com> | ||
tsinha <tsinha@Anthonys-MacBook-Pro.local> | ||
Matt Farmer <matt@frmr.me> | ||
@@ -143,42 +151,58 @@ Trey Hunner <treyhunner@gmail.com> | ||
Wesley Walser <waw325@gmail.com> | ||
Michael Pennisi <mike@mikepennisi.com> | ||
Mike Pennisi <mike@mikepennisi.com> | ||
Markus Staab <markus.staab@redaxo.de> | ||
Dave Riddle <david@joyvuu.com> | ||
Callum Macrae <callum@lynxphp.com> | ||
Benjamin Truyman <bentruyman@gmail.com> | ||
James Huston <james@jameshuston.net> | ||
Erick Ruiz de Chávez <erickrdch@gmail.com> | ||
David Bonner <dbonner@cogolabs.com> | ||
Akintayo Akinwunmi <aakinwunmi@judge.com> | ||
MORGAN <morgan@morgangraphics.com> | ||
Ismail Khair <ismail.khair@gmail.com> | ||
Carl Danley <carldanley@gmail.com> | ||
Michael Petrovich <michael.c.petrovich@gmail.com> | ||
Callum Macrae <callum@lynxphp.com> | ||
David Bonner <dbonner@cogolabs.com> | ||
Erick Ruiz de Chávez <erickrdch@gmail.com> | ||
Akintayo Akinwunmi <aakinwunmi@judge.com> | ||
Dave Riddle <david@joyvuu.com> | ||
Mike Petrovich <michael.c.petrovich@gmail.com> | ||
Greg Lavallee <greglavallee@wapolabs.com> | ||
Daniel Gálvez <dgalvez@editablething.com> | ||
Sai Lung Wong <sai.wong@huffingtonpost.com> | ||
Tom H Fuertes <tomfuertes@gmail.com> | ||
Tom H Fuertes <TomFuertes@gmail.com> | ||
Roland Eckl <eckl.roland@googlemail.com> | ||
Jay Merrifield <fracmak@gmail.com> | ||
Allen J Schmidt Jr <cobrasoft@gmail.com> | ||
Jonathan Sampson <jjdsampson@gmail.com> | ||
Marcel Greter <marcel.greter@ocbnet.ch> | ||
Matthias Jäggli <matthias.jaeggli@gmail.com> | ||
David Fox <dfoxinator@gmail.com> | ||
Yiming He <yiminghe@gmail.com> | ||
Devin Cooper <cooper.semantics@gmail.com> | ||
Paul Ramos <paul.b.ramos@gmail.com> | ||
Rod Vagg <rod@vagg.org> | ||
Bennett Sorbo <bsorbo@gmail.com> | ||
Sebastian Burkhard <sebi.burkhard@gmail.com> | ||
Zachary Adam Kaplan <razic@viralkitty.com> | ||
nanto_vi <nanto@moon.email.ne.jp> | ||
nanto <nanto@moon.email.ne.jp> | ||
Danil Somsikov <danilasomsikov@gmail.com> | ||
Ryunosuke SATO <tricknotes.rs@gmail.com> | ||
Jean Boussier <jean.boussier@gmail.com> | ||
Adam Coulombe <me@adam.co> | ||
Andrew Plummer <plummer.andrew@gmail.com> | ||
Mark Raddatz <mraddatz@gmail.com> | ||
Isaac Z. Schlueter <i@izs.me> | ||
Karl Sieburg <ksieburg@yahoo.com> | ||
Pascal Borreli <pascal@borreli.com> | ||
Nguyen Phuc Lam <ruado1987@gmail.com> | ||
Dmitry Gusev <dmitry.gusev@gmail.com> | ||
Michał Gołębiowski <m.goleb@gmail.com> | ||
Li Xudong <istonelee@gmail.com> | ||
Steven Benner <admin@stevenbenner.com> | ||
Li Xudong <istonelee@gmail.com> | ||
Tom H Fuertes <tomfuertes@gmail.com> | ||
Renato Oliveira dos Santos <ros3@cin.ufpe.br> | ||
ros3cin <ros3@cin.ufpe.br> | ||
Jason Bedard <jason+jquery@jbedard.ca> | ||
Kyle Robinson Young <kyle@dontkry.com> | ||
Chris Talkington <chris@talkingtontech.com> | ||
Eddie Monge <eddie@eddiemonge.com> | ||
Terry Jones <terry@jon.es> | ||
Jason Merino <jasonmerino@gmail.com> | ||
Terry Jones <terry@jon.es> | ||
Jeremy Dunck <jdunck@gmail.com> | ||
@@ -188,3 +212,14 @@ Chris Price <price.c@gmail.com> | ||
Amey Sakhadeo <me@ameyms.com> | ||
Noah Hamann <njhamann@gmail.com> | ||
Mike Sidorov <mikes.ekb@gmail.com> | ||
Anthony Ryan <anthonyryan1@gmail.com> | ||
Dominik D. Geyer <dominik.geyer@gmail.com> | ||
George Kats <katsgeorgeek@gmail.com> | ||
Lihan Li <frankieteardrop@gmail.com> | ||
Ronny Springer <springer.ronny@gmail.com> | ||
Chris Antaki <ChrisAntaki@gmail.com> | ||
Marian Sollmann <marian.sollmann@cargomedia.ch> | ||
njhamann <njhamann@gmail.com> | ||
Ilya Kantor <iliakan@gmail.com> | ||
hongymagic <d.hong@me.com> | ||
John Paul <john@johnkpaul.com> | ||
Jakob Stoeck <jakob@pokermania.de> |
{ | ||
"name": "jquery", | ||
"version": "2.1.0-beta2", | ||
"version": "2.1.0-beta3", | ||
"ignore": [ | ||
@@ -16,20 +16,9 @@ "**/.*", | ||
"dependencies": { | ||
"sizzle": "1.10.13" | ||
"sizzle": "1.10.15" | ||
}, | ||
"devDependencies": { | ||
"requirejs": "~2.1.8", | ||
"qunit": "~1.12.0" | ||
"qunit": "~1.12.0", | ||
"sinon": "~1.7.3" | ||
}, | ||
"exportsOverride": { | ||
"sizzle": { | ||
"sizzle": "." | ||
}, | ||
"requirejs": { | ||
"requirejs": "require.js" | ||
}, | ||
"qunit": { | ||
"qunit": "qunit" | ||
} | ||
}, | ||
"keywords": [ | ||
@@ -36,0 +25,0 @@ "jquery", |
@@ -62,3 +62,3 @@ # Contributing to jQuery | ||
See: [jQuery Core Style Guide](http://docs.jquery.com/JQuery_Core_Style_Guidelines) | ||
See: [jQuery's Style Guides](http://contribute.jquery.org/style-guide/) | ||
@@ -65,0 +65,0 @@ ## Tips For Bug Patching |
@@ -5,7 +5,8 @@ { | ||
"description": "JavaScript library for DOM operations", | ||
"version": "2.1.0-beta2", | ||
"version": "2.1.0-beta3", | ||
"main": "dist/jquery.js", | ||
"homepage": "http://jquery.com", | ||
"author": { | ||
"name": "jQuery Foundation and other contributors", | ||
"url": "https://github.com/jquery/jquery/blob/master/AUTHORS.txt" | ||
"url": "https://github.com/jquery/jquery/blob/2.1.0-beta3/AUTHORS.txt" | ||
}, | ||
@@ -27,3 +28,3 @@ "repository": { | ||
"type": "MIT", | ||
"url": "https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt" | ||
"url": "https://github.com/jquery/jquery/blob/2.1.0-beta3/MIT-LICENSE.txt" | ||
} | ||
@@ -33,19 +34,24 @@ ], | ||
"devDependencies": { | ||
"archiver": "~0.4.10", | ||
"grunt": "~0.4.1", | ||
"grunt-bower-task": "~0.3.2", | ||
"grunt-cli": "~0.1.11", | ||
"grunt-compare-size": "~0.4.0", | ||
"grunt-contrib-jshint": "~0.7.0", | ||
"grunt-contrib-uglify": "~0.2.7", | ||
"grunt-contrib-watch": "~0.5.3", | ||
"grunt-git-authors": "~1.2.0", | ||
"grunt-jscs-checker": "~0.2.3", | ||
"grunt-jsonlint": "~1.0.1", | ||
"archiver": "0.4.10", | ||
"gzip-js": "0.3.2", | ||
"load-grunt-tasks": "~0.2.0", | ||
"testswarm": "~1.1.0", | ||
"requirejs": "~2.1.9", | ||
"which": "~1.0.5" | ||
"testswarm": "1.1.0", | ||
"load-grunt-tasks": "0.2.0", | ||
"requirejs": "2.1.9", | ||
"shelljs": "0.2.6", | ||
"grunt": "0.4.2", | ||
"grunt-cli": "0.1.11", | ||
"grunt-contrib-jshint": "0.7.2", | ||
"grunt-contrib-uglify": "0.2.7", | ||
"grunt-contrib-watch": "0.5.3", | ||
"grunt-bowercopy": "0.4.1", | ||
"grunt-compare-size": "0.4.0", | ||
"grunt-git-authors": "1.2.0", | ||
"grunt-jscs-checker": "0.2.6", | ||
"grunt-jsonlint": "1.0.4" | ||
}, | ||
"scripts": { | ||
"build": "npm install && grunt", | ||
"start": "grunt watch", | ||
"test": "grunt" | ||
} | ||
} |
@@ -59,3 +59,3 @@ [jQuery](http://jquery.com/) - New Wave JavaScript | ||
There are many other tasks avaliable for jQuery Core: | ||
There are many other tasks available for jQuery Core: | ||
``` | ||
@@ -87,5 +87,6 @@ grunt -help | ||
- **wrap**: The `.wrap()`, `.wrapAll()`, `.wrapInner()`, and `.unwrap()` methods. | ||
- **exports/amd**: Exclude the AMD definition. | ||
- **core/ready**: Exclude the ready module if you place your scripts at the end of the body. Any ready callbacks bound with `jQuery()` will simply be called immediately. However, `jQuery(document).ready()` will not be a function and `.on("ready", ...)` or similar will not be triggered. | ||
- **deferred**: Exclude jQuery.Deferred. This also removes jQuery.Callbacks. *Note* that modules that depend on jQuery.Deferred(AJAX, effects, core/ready) will not be removed and will still expect jQuery.Deferred to be there. Include your own jQuery.Deferred implementation or exclude those modules as well (`grunt custom:-deferred,-ajax,-effects,-core/ready`). | ||
- **exports/global**: Exclude the attachment of global jQuery variables ($ and jQuery) to the window. | ||
- **exports/amd**: Exclude the AMD definition. | ||
@@ -100,2 +101,18 @@ As a special case, you may also replace Sizzle by using a special flag `grunt custom:-sizzle`. | ||
##### AMD name | ||
As an option, you can set the module name for jQuery's AMD definition. By default, it is set to "jquery", which plays nicely with plugins and third-party libraries, but there may be cases where you'd like to change this. Simply set the `"amd"` option: | ||
```bash | ||
grunt custom --amd="custom-name" | ||
``` | ||
Or, to define anonymously, set the name to an empty string. | ||
```bash | ||
grunt custom --amd="" | ||
``` | ||
#### Custom Build Examples | ||
To create a custom build of the latest stable version, first check out the version: | ||
@@ -113,3 +130,3 @@ | ||
Create the custom build, use the `grunt custom` option, listing the modules to be excluded. Examples: | ||
Create the custom build using the `grunt custom` option, listing the modules to be excluded. | ||
@@ -116,0 +133,0 @@ Exclude all **ajax** functionality: |
@@ -8,10 +8,2 @@ define([ | ||
jQuery.ajaxSettings.xhr = function() { | ||
// Support: IE9+ | ||
// IE can't get local files with standard XHR, only ActiveX | ||
if ( this.isLocal ) { | ||
try { | ||
return new ActiveXObject( "Microsoft.XMLHTTP" ); | ||
} catch( e ) {} | ||
} | ||
try { | ||
@@ -18,0 +10,0 @@ return new XMLHttpRequest(); |
@@ -14,5 +14,5 @@ define([ | ||
var classes, elem, cur, clazz, j, finalValue, | ||
proceed = typeof value === "string" && value, | ||
i = 0, | ||
len = this.length, | ||
proceed = typeof value === "string" && value; | ||
len = this.length; | ||
@@ -58,5 +58,5 @@ if ( jQuery.isFunction( value ) ) { | ||
var classes, elem, cur, clazz, j, finalValue, | ||
proceed = arguments.length === 0 || typeof value === "string" && value, | ||
i = 0, | ||
len = this.length, | ||
proceed = arguments.length === 0 || typeof value === "string" && value; | ||
len = this.length; | ||
@@ -63,0 +63,0 @@ if ( jQuery.isFunction( value ) ) { |
@@ -18,8 +18,2 @@ define([ | ||
// Map over jQuery in case of overwrite | ||
_jQuery = window.jQuery, | ||
// Map over the $ in case of overwrite | ||
_$ = window.$, | ||
version = "@VERSION", | ||
@@ -206,14 +200,2 @@ | ||
noConflict: function( deep ) { | ||
if ( window.$ === jQuery ) { | ||
window.$ = _$; | ||
} | ||
if ( deep && window.jQuery === jQuery ) { | ||
window.jQuery = _jQuery; | ||
} | ||
return jQuery; | ||
}, | ||
// See test/unit/core.js for details concerning isFunction. | ||
@@ -220,0 +202,0 @@ // Since version 1.3, DOM methods and functions like alert |
@@ -9,3 +9,3 @@ define([ | ||
var i = 0, | ||
length = elems.length, | ||
len = elems.length, | ||
bulk = key == null; | ||
@@ -44,3 +44,3 @@ | ||
if ( fn ) { | ||
for ( ; i < length; i++ ) { | ||
for ( ; i < len; i++ ) { | ||
fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); | ||
@@ -57,3 +57,3 @@ } | ||
fn.call( elems ) : | ||
length ? fn( elems[0], key ) : emptyGet; | ||
len ? fn( elems[0], key ) : emptyGet; | ||
}; | ||
@@ -60,0 +60,0 @@ |
@@ -85,4 +85,4 @@ define([ | ||
var which, | ||
attrs = { height: type }, | ||
i = 0; | ||
i = 0, | ||
attrs = { height: type }; | ||
@@ -594,4 +594,4 @@ // if we include width, step value is 1 to do all cssExpand values, | ||
var timer, | ||
timers = jQuery.timers, | ||
i = 0; | ||
i = 0, | ||
timers = jQuery.timers; | ||
@@ -598,0 +598,0 @@ fxNow = jQuery.now(); |
@@ -15,18 +15,22 @@ /*! | ||
(function( window, factory ) { | ||
(function( global, factory ) { | ||
if ( typeof module === "object" && typeof module.exports === "object" ) { | ||
// Expose a jQuery-making factory as module.exports in loaders that implement the Node | ||
// module pattern (including browserify). | ||
// This accentuates the need for a real window in the environment | ||
// For CommonJS and CommonJS-like environments where a proper window is present, | ||
// execute the factory and get jQuery | ||
// For environments that do not inherently posses a window with a document | ||
// (such as Node.js), expose a jQuery-making factory as module.exports | ||
// This accentuates the need for the creation of a real window | ||
// e.g. var jQuery = require("jquery")(window); | ||
module.exports = function( w ) { | ||
w = w || window; | ||
if ( !w.document ) { | ||
throw new Error("jQuery requires a window with a document"); | ||
} | ||
return factory( w ); | ||
}; | ||
// See ticket #14549 for more info | ||
module.exports = global.document ? | ||
factory( global ) : | ||
function( w ) { | ||
if ( !w.document ) { | ||
throw new Error( "jQuery requires a window with a document" ); | ||
} | ||
return factory( w ); | ||
}; | ||
} else { | ||
factory( window ); | ||
factory( global ); | ||
} | ||
@@ -33,0 +37,0 @@ |
@@ -30,10 +30,8 @@ define([ | ||
"./deprecated", | ||
"./exports/amd" | ||
"./exports/amd", | ||
"./exports/global" | ||
], function( jQuery ) { | ||
// Expose jQuery and $ identifiers, even in | ||
// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557) | ||
// and CommonJS for browser emulators (#13566) | ||
return (window.jQuery = window.$ = jQuery); | ||
return jQuery; | ||
}); |
@@ -120,3 +120,3 @@ define([ | ||
// Fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent | ||
// Fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent | ||
if ( jQuery.css( elem, "position" ) === "fixed" ) { | ||
@@ -123,0 +123,0 @@ // We assume that getBoundingClientRect is available when computed position is fixed |
@@ -56,10 +56,10 @@ define([ | ||
find: function( selector ) { | ||
var i, | ||
var i = 0, | ||
len = this.length, | ||
ret = [], | ||
self = this, | ||
len = self.length; | ||
self = this; | ||
if ( typeof selector !== "string" ) { | ||
return this.pushStack( jQuery( selector ).filter(function() { | ||
for ( i = 0; i < len; i++ ) { | ||
for ( ; i < len; i++ ) { | ||
if ( jQuery.contains( self[ i ], this ) ) { | ||
@@ -72,3 +72,4 @@ return true; | ||
for ( i = 0; i < len; i++ ) { | ||
i = 0; | ||
for ( ; i < len; i++ ) { | ||
jQuery.find( selector, self[ i ], ret ); | ||
@@ -75,0 +76,0 @@ } |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1145558
366
0
25642