| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
The `default` export is treated differently across tooling when transpiled
to CommonJS - tools differ on whether `module.exports` represents the full
module object or just its default export. Switch `src/` modules to named
exports for tooling consistency.
Fixes gh-5262
Closes gh-5292
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename `jQuery.Deferred.getStackHook` to `jQuery.Deferred.getErrorHook`
to indicate passing an error instance is usually a better choice - it
works with source maps while a raw stack generally does not.
In jQuery `3.7.0`, we'll keep both names, marking the old one as
deprecated. In jQuery `4.0.0` we'll just keep the new one. This
change implements the `4.0.0` version; PR gh-5212 implements
the `3.7.0` one.
Fixes gh-5201
Closes gh-5211
Ref gh-5212
|
|
|
| |
Closes gh-4828
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Fixes gh-3609
|
|
|
|
| |
Fixes gh-3606
Closes gh-3657
|
|
|
|
| |
Fixes gh-3442
Closes gh-3445
|
|
|
|
|
|
| |
Use eslint pragmas, fix new errors, etc
Closes gh-3148
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Closes gh-3102
Fixes gh-3100
Closes gh-3105
|
|
|
|
|
|
|
|
| |
Single- and no-argument calls act like Promise.resolve.
Multi-argument calls act like Promise.all.
Fixes gh-3029
Closes gh-3059
|
|
|
|
|
| |
Fixes gh-3082
Closes gh-3084
|
|
|
|
|
|
|
| |
Employs strict mode to simplify Deferred callback context handling.
Fixes gh-3060
Closes gh-3061
|
|
|
|
| |
Closes gh-2761
|
|
|
|
|
| |
Fixes gh-2736
Closes gh-2737
|
|
|
|
|
| |
Fixes gh-2710
Closes gh-2816
|
|
|
|
|
|
| |
Fixes gh-2546
Fixes gh-2018
Close gh-2707
|
|
|
|
| |
Fixes gh-2056
|
|
|
|
| |
Fixes gh-2102
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fixes gh-2177
|
|
|
|
|
|
| |
Fixes gh-2013
Fixes gh-2010
Closes gh-2210
|
|
|
|
|
| |
Fixes gh-1722
Closes gh-1996
|
|
|
|
|
| |
Fixes gh-1894
Closes gh-1915
|
| |
|
|
|
|
| |
Closes gh-1577
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
to the promise instance rather than the deferred instance ; .then() has also been amended. Fixes #11405.
|
|
|
|
| |
needed unit tests added!
|
| |
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
deprecated in the comments.
|
| |
|
|
|
|
| |
just added some minor touches.
|
|
|
|
| |
The zeroes were added to fix http://bugs.jquery.com/ticket/4942 but those browsers are no longer supported.
|
|
|
|
| |
Actually few changes required in jQuery's own source and we gained 8 bytes minified gzipped \o/.
|
|
|
|
| |
to enable true chainability. Fixes #10723. Unit tests added.
|
| |
|
|
|
|
| |
Deferred/Promise state. Unit tests amended.
|
| |
|
| |
|