| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Closes gh-5501
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Updated tasks include:
- lint
- npmcopy
- build, minify, and process for distribution.
- new custom build command using yargs
- compare size of minified/gzip built files
- pretest scripts, including qunit-fixture, babel transpilation, and npmcopy
- node smoke tests
- promises aplus tests
- new watch task using `rollup.watch` directly
Also:
- upgraded husky and added the new lint command
- updated lint config to use new "flat" config format. See https://eslint.org/docs/latest/use/configure/configuration-files-new
- Temporarily disabled one lint rule until flat config is supported by eslint-plugin-import. See https://github.com/import-js/eslint-plugin-import/issues/2556
- committed package-lock.json
- updated all test scripts to use the new build
- added an express test server that uses middleware-mockserver (this can be used to run tests without karma)
- build-all-variants is now build:all
Close gh-5318
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
So far, `jQuery.Deferred.exceptionHook` used to log error message and stack
separately. However, that breaks browser applying source maps against the stack
trace - most browsers require logging an error instance. This change makes us
do exactly that.
One drawback of the change is that in IE 11 previously stack was printed
directly and now just the error summary; to get to the actual stack
trace, three clicks are required. This seems to be a low price to pay
for having source maps work in all the other browsers, though.
Safari with the new change requires one click to get to the stack trace
which sounds manageable.
Fixes gh-3179
Closes gh-5192
Ref https://crbug.com/622227
|
|
|
|
|
|
|
|
|
|
| |
Introduces a new test API, `includesModule`. The method returns whether
a particular module like "ajax" or "deprecated" is included in the current
jQuery build; it handles the slim build as well. The util was created so that
we don't treat presence of particular APIs to decide whether to run a test as
then if we accidentally remove an API, the tests would still not fail.
Fixes gh-5069
Closes gh-5046
|
|
|
|
|
|
|
|
|
|
|
| |
This commit fixes unit tests for the following builds:
1. The no-deprecated build: `custom:-deprecated`
2. The current slim build: `custom:-ajax,-effects`
3. The future (#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`
It also adds separate Travis jobs for the no-deprecated & slim builds.
Closes gh-4577
|
|
|
|
|
|
|
| |
Also, update some tests to IE-sniff when deciding whether
to skip a test.
Fixes gh-4386
Closes gh-4387
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Also, run `grunt npmcopy` to sync the "external" directory with dependencies
from package.json. For example, the Sinon library version didn't match.
Ref gh-4234
Closes gh-4297
|
|
|
| |
Closes gh-3967
|
|
|
|
|
| |
Fixes gh-3605
Close gh-3895
|
|
|
|
| |
Fixes gh-3609
|
|
|
|
|
|
| |
Ref gh-3597
Fixes gh-3600
Fixes gh-3596
Closes gh-3617
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Ref gh-2736
The exception stack has the name of the immediately outer function where the
exception occurred, which can be very handy for tracing errors. Since we already
have the exception object we might as well use it.
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
The changes follow the spec proposed in:
https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
|
|
|
|
|
|
|
|
| |
Some Chrome versions newer than 30 but older than 42 display the "undefined is
not a function" error, not mentioning the function name. This has been fixed
in Chrome 42. Relax two tests to allow for this divergence in older Chromoiums.
This affects our Android 5.0 & Yandex.Browser testing.
|
|
|
|
|
| |
Fixes gh-2736
Closes gh-2737
|
|
|
|
|
| |
Fixes gh-2710
Closes gh-2816
|
|
|
|
|
|
| |
Fixes gh-2546
Fixes gh-2018
Close gh-2707
|
|
|
|
|
|
|
|
| |
* Remove QUnit jshint globals
* Extend QUnit.assert methods
* Use assert.async instead of start/stop/done
Ref b930d14ce64937e9478405eee2828d4da091d2cb
|
|
|
|
| |
Fixes gh-2056
|
|
|
|
|
|
|
|
|
|
|
|
| |
http://qunitjs.com/upgrade-guide-2.x/
For most of the boring work was used
https://github.com/apsdehal/qunit-migrate package
However, it can't update local qunit helpers, plus in some places
old QUnit.asyncTest signature is still used
Fixes gh-2540
|
|
|
|
|
|
|
|
|
|
|
| |
Android 2.3 chokes on unquoted reserved words being used as property names
which was making Deferred tests not run.
Acknowledge the sad fact that Android 2.3 is not ES5-compliant browser
and enable the "es3" option in JSHint config.
Fixes gh-2478
Closes gh-2481
|
|
|
|
| |
Fixes gh-2102
|
|
|
|
|
|
| |
Fixes gh-2013
Fixes gh-2010
Closes gh-2210
|
|
|
|
|
| |
Fixes gh-1722
Closes gh-1996
|
|
|
|
|
| |
Fixes gh-1894
Closes gh-1915
|
| |
|
|
|
|
| |
in tests. Fixes #13755.
|
| |
|
|
|
|
| |
to the promise instance rather than the deferred instance ; .then() has also been amended. Fixes #11405.
|
|
|
|
| |
Close jquery/2012-dev-summit/#56
|
|
|
|
| |
needed unit tests added!
|
|
|
|
|
|
| |
Conflicts:
test/unit/effects.js
test/unit/offset.js
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
|
|
|
| |
deprecated in QUnit.
|
|
|
|
| |
Deferred/Promise state. Unit tests amended.
|
| |
|
| |
|