Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Core: Migrate from AMD to ES modules 🎉 | Michał Gołębiowski-Owczarek | 2019-11-18 | 1 | -8/+4 |
| | | | | | | | | | | | | | | | | | | | | | | Migrate all source AMD modules to ECMAScript modules. The final bundle is compiled by a custom build process that uses Rollup under the hood. Test files themselves are still loaded via RequireJS as that has to work in IE 11. Tests can now be run in "Load as modules" mode which replaces the previous "Load with AMD" option. That option of running tests doesn't work in IE and Edge as it requires support for dynamic imports. Some of the changes required by the migration: * check `typeof` of `noGlobal` instead of using the variable directly as it's not available when modules are used * change the nonce module to be an object as ECMASscript module exports are immutable * remove some unused exports * import `./core/parseHTML.js` directly in `jquery.js` so that it's not being cut out when the `ajax` module is excluded in a custom compilation Closes gh-4541 | ||||
* | Build: ESLint: forbid unused function parameters | Michał Gołębiowski-Owczarek | 2019-05-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | This commit requires all function parameters to be used, not just the last one. In cases where that's not possible as we need to match an external API, there's an escape hatch of prefixing an unused argument with `_`. This change makes it easier to catch unused AMD dependencies and unused parameters in internal functions the API of which we may change at will, among other things. Unused AMD dependencies have been removed as part of this commit. Closes gh-4381 | ||||
* | Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJS | Michał Gołębiowski-Owczarek | 2019-04-29 | 1 | -16/+13 |
| | | | | | | | | | | | Also, update support comments format to match format described in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197 with the change from: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-448998379 (open-ended ranges end with `+`). Fixes gh-3950 Fixes gh-4299 Closes gh-4347 | ||||
* | Core: deprecate jQuery.isFunction | Jason Bedard | 2018-01-15 | 1 | -10/+11 |
| | | | | Fixes gh-3609 | ||||
* | Deferred: fix memory leak of promise callbacks | Jason Bedard | 2017-06-20 | 1 | -1/+8 |
| | | | | Fixes gh-3606 Closes gh-3657 | ||||
* | Deferred: Stop inventing jQuery.when() resolution values | Richard Gibson | 2016-12-16 | 1 | -6/+8 |
| | | | | Fixes gh-3442 Closes gh-3445 | ||||
* | Build: ESLint details | Oleg Gaidarenko | 2016-06-11 | 1 | -1/+1 |
| | | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148 | ||||
* | Deferred: Propagate progress correctly from unwrapped promises | Michał Gołębiowski | 2016-06-09 | 1 | -1/+1 |
| | | | | | | | | | | | Progress parameters are now correctly propagated from a deferred to which another deferred resolved unwrapping it. Thanks to @gibson042 for the report and a clear description of the problem and the needed fix. Fixes gh-3062 Closes gh-3150 | ||||
* | Deferred: Make jQuery.when synchronous when possible | Richard Gibson | 2016-05-09 | 1 | -2/+7 |
| | | | | | | Closes gh-3102 Fixes gh-3100 Closes gh-3105 | ||||
* | Deferred: Separate the two paths in jQuery.when | Richard Gibson | 2016-05-02 | 1 | -45/+55 |
| | | | | | | | | Single- and no-argument calls act like Promise.resolve. Multi-argument calls act like Promise.all. Fixes gh-3029 Closes gh-3059 | ||||
* | Deferred: Provide explicit undefined context for jQuery.when raw casts | Richard Gibson | 2016-04-27 | 1 | -1/+4 |
| | | | | | Fixes gh-3082 Closes gh-3084 | ||||
* | Deferred: Remove default callback context | Richard Gibson | 2016-04-23 | 1 | -7/+7 |
| | | | | | | | Employs strict mode to simplify Deferred callback context handling. Fixes gh-3060 Closes gh-3061 | ||||
* | Docs: Fix various spelling errors | Josh Soref | 2016-01-13 | 1 | -1/+1 |
| | | | | Closes gh-2761 | ||||
* | Deferred: Warn on exceptions that are likely programming errors | Dave Methvin | 2016-01-13 | 1 | -1/+12 |
| | | | | | Fixes gh-2736 Closes gh-2737 | ||||
* | Deferred: Remove undocumented progress notifications in $.when | Dave Methvin | 2016-01-13 | 1 | -21/+18 |
| | | | | | Fixes gh-2710 Closes gh-2816 | ||||
* | Deferred: syncronize single and multiple target handling in $.when | Timmy Willison | 2015-11-13 | 1 | -11/+11 |
| | | | | | | Fixes gh-2546 Fixes gh-2018 Close gh-2707 | ||||
* | Build: Update jscs and lint files | Oleg Gaidarenko | 2015-09-07 | 1 | -24/+33 |
| | | | | Fixes gh-2056 | ||||
* | Deferred: add .catch handler | Timmy Willison | 2015-07-06 | 1 | -0/+3 |
| | | | | Fixes gh-2102 | ||||
* | Core: Switch from modules to just window.setTimeout etc. | Michał Gołębiowski | 2015-06-17 | 1 | -3/+2 |
| | | | | | | Using modules for window.setTimeout etc. made those functions cached and disabled Sinon mocking, making effects tests fail. Just writing window.setTimeout directly is smaller anyway. | ||||
* | Core: Use window.setTimeout & friends instead of global equivalents | Michał Gołębiowski | 2015-06-17 | 1 | -1/+2 |
| | | | | Fixes gh-2177 | ||||
* | Deferred: Always handle progress callbacks before done/fail | Richard Gibson | 2015-04-22 | 1 | -29/+32 |
| | | | | | | Fixes gh-2013 Fixes gh-2010 Closes gh-2210 | ||||
* | Deferred: Backwards-compatible standards interoperability | Richard Gibson | 2015-03-20 | 1 | -27/+221 |
| | | | | | Fixes gh-1722 Closes gh-1996 | ||||
* | Deferred: Fix $.when with resolved deferred and progress callbacks | Nicolas HENRY | 2014-12-25 | 1 | -2/+2 |
| | | | | | Fixes gh-1894 Closes gh-1915 | ||||
* | Build: update grunt-jscs-checker and pass with the new rules | Timmy Willison | 2014-07-17 | 1 | -3/+8 |
| | |||||
* | Support: clean up comments and Support notation | Dave Methvin | 2014-06-10 | 1 | -2/+2 |
| | | | | Closes gh-1577 | ||||
* | No ticket: fix code style inconsistencies. Closes gh-1361 | Oleg | 2013-09-13 | 1 | -1/+1 |
| | |||||
* | Always return jQuery in modules that can be included separately | Timmy Willison | 2013-09-08 | 1 | -0/+2 |
| | |||||
* | AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163. | Timmy Willison | 2013-08-15 | 1 | -2/+9 |
| | |||||
* | Removed an unneeded variable. Closes gh-1321. | terrycojones | 2013-08-08 | 1 | -3/+2 |
| | |||||
* | Eliminate redundancy of Deferred.then(). | nanto_vi | 2013-01-08 | 1 | -16/+11 |
| | |||||
* | Propagete context of returned deferred object in Deferred.then(). Fixes #13160 | nanto_vi | 2013-01-07 | 1 | -2/+4 |
| | |||||
* | Deferred: .resolve(), .reject() and .notify() now set the callback context ↵ | jaubourg | 2012-12-07 | 1 | -3/+6 |
| | | | | to the promise instance rather than the deferred instance ; .then() has also been amended. Fixes #11405. | ||||
* | deferred.promise(obj) should work with non-objects. Fixes #12521. Much ↵ | jaubourg | 2012-09-13 | 1 | -1/+1 |
| | | | | needed unit tests added! | ||||
* | Interim take on cross-module variables, closes gh-817. | Richard Gibson | 2012-06-15 | 1 | -5/+2 |
| | |||||
* | Strips IIFEs from modules; Always require built jQuery for tests. | Rick Waldron | 2012-06-04 | 1 | -5/+1 |
| | |||||
* | Preserves context objects when multiple Deferreds are passed to $.when(). ↵ | jaubourg | 2012-05-12 | 1 | -12/+16 |
| | | | | Context is an array containing the original contexts in order. When non-observable value is given, associated context is undefined. In case only a single non-observable value is given, context is the global object (thanks so much Function.prototype.apply!). Fixes #11749. | ||||
* | Fix #11736. Remove deprecated Deferred.isResolved/isRejected. | Dave Methvin | 2012-05-11 | 1 | -3/+0 |
| | |||||
* | Gains 1 more byte min/gz and reminds that isResolved and isRejected are ↵ | jaubourg | 2012-04-28 | 1 | -2/+2 |
| | | | | deprecated in the comments. | ||||
* | code compression | Richard Gibson | 2012-04-26 | 1 | -8/+11 |
| | |||||
* | Trims down deferred.js. The gist of it is from the magnificent @gibson042, I ↵ | jaubourg | 2012-04-25 | 1 | -89/+86 |
| | | | | just added some minor touches. | ||||
* | Remove moot second argument from `slice.call()` | Sindre Sorhus | 2012-04-04 | 1 | -3/+3 |
| | | | | The zeroes were added to fix http://bugs.jquery.com/ticket/4942 but those browsers are no longer supported. | ||||
* | Makes Deferred implementation truly Promise/A compliant. Unit tests amended. ↵ | jaubourg | 2012-04-02 | 1 | -8/+10 |
| | | | | Actually few changes required in jQuery's own source and we gained 8 bytes minified gzipped \o/. | ||||
* | Have Deferred.always return the object onto which it is currently attached ↵ | jaubourg | 2011-11-09 | 1 | -1/+2 |
| | | | | to enable true chainability. Fixes #10723. Unit tests added. | ||||
* | Core styleguide cleanup. Fixes #10586 | Rick Waldron | 2011-10-26 | 1 | -2/+2 |
| | |||||
* | Removes isPending and introduces state as a means to retrieve the ↵ | jaubourg | 2011-10-11 | 1 | -6/+12 |
| | | | | Deferred/Promise state. Unit tests amended. | ||||
* | isProgressing becomes isPending. Unit tests added. | jaubourg | 2011-10-04 | 1 | -1/+1 |
| | |||||
* | Trimmed down $.Callbacks and $.Deferred. | jaubourg | 2011-09-21 | 1 | -25/+24 |
| | |||||
* | $.Callbacks, $.Topic and notify/progress on $.Deferred. | jaubourg | 2011-09-19 | 1 | -146/+86 |
| | |||||
* | Fixes #9446. Context is properly propagated using pipe. If context was the ↵ | jaubourg | 2011-07-01 | 1 | -1/+1 |
| | | | | original deferred, then context is updated to next deferred in the chain. Unit tests added. | ||||
* | Revert "Add catch block to try/finally in deferred. Fixes #9033. Test case ↵ | timmywil | 2011-06-08 | 1 | -3/+2 |
| | | | | | | needed." Line of exception was lost when debugging. This reverts commit 0a80be67f4fe968d99777564a02aeddbde1fbf35. |