| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Close gh-5218
|
|
|
| |
Close gh-5180
|
|
|
|
|
|
|
|
|
|
|
| |
The previous details were showing their age, e.g. mentions about browsers
not supporting ES2015. The story with ES modules is more complex as it's also
about loaders but to keep the README simple, let's just make it more up to date
with typical usage.
Closes gh-5108
(cherry picked from commit edccabf10d37b57cbd4eeebc44f3acb67cb2739c)
|
|
|
|
|
|
|
|
| |
Webpack has migrated to https://webpack.js.org/ since version 2.
Closes gh-5037
(cherry picked from commit 01819bc3bcc44282e5bb9301c3478d837d1e5152)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Closes gh-5071
Fixes gh-5069
Ref gh-5046
(partially cherry picked from commit fae5fee8b435cc20352d28b0a384b9784b1ad9ed)
|
| |
|
|
|
|
| |
- Not meant to be used like that anymore
|
| |
|
|
|
|
|
|
|
|
|
| |
The default branch was updated, this updates the remaining occurrences in code
& comments.
Closes gh-4838
(cherry picked from commit 8ae477a432f0924cd4bd3bdeaef2c4c15e483a8f)
|
|
|
|
|
|
|
|
| |
Closes gh-4696
Ref jquery/eslint-config-jquery#15
Ref jquery/eslint-config-jquery#16
(cherry picked from commit ef4d6ca6c3a1b276fedc27b1f3a18823276f01a3)
|
|
|
|
|
|
| |
Closes gh-4686
(cherry picked from commit 1a7332ce83cdee7d6cd9d45c2a4b83067f53f14b)
|
|
|
|
|
|
| |
Closes gh-4684
(cherry picked from commit a62309e01b3c76d2b73560ca666c454b7bbfcb77)
|
|
|
|
|
|
| |
Closes gh-4673
(cherry picked from commit 73415da25d964ee31ec1804d55f5af0199a1378e)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use a dist README fixture kept in the jQuery repository instead of modifying
an existing one. This makes the jQuery repository the single source of truth
when it comes to jQuery releases and it makes it easier to make changes to
README without worrying how it will affect older jQuery lines.
The commit also ES6ifies build/release.js & build/release/dist.js
Closes gh-4614
(cherry picked from commit 358b769a00c3a09a8ec621b8dcb2d5e31b7da69a)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 4.0 (#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`
It also adds separate Travis jobs for the no-deprecated & slim builds.
Apart from that, add intuitive names to Travis jobs. Otherwise it's hard to see
at a glance that a particular job is running on Firefox ESR, for example.
Ref gh-4577
Ref gh-4596
Closes gh-4600
|
|
|
|
|
|
| |
Closes gh-4578
(cherry-picked from 9b9ed469b43e9fa6e2c752444470ae4c87d03d57)
|
|
|
|
|
|
|
|
|
|
|
| |
So far, only browser-based JS files were required to be in strict mode (in the
function form). This commit adds such a requirement to Node.js scripts where
the global form is preferred. All Node.js scripts in sloppy mode were
converted to strict mode.
Closes gh-4499
(cherry picked from commit bbad821c399da92995a11b88d6684970479d4a9b)
|
|
|
|
|
|
|
|
|
|
| |
Without this change passing `--dry-run` to jquery-release still pushes to the
jquery-dist repository which is dangerous as one can assume `--dry-run` to be
safe from external side effects.
Close gh-4498
(cherry picked from commit d7d0b52bda74486f2351baa9d03ca4534de0d733)
|
|
|
|
|
|
|
|
|
|
|
| |
File `src/core.js` has started erroneously being copied to `dist/` in gh-2981.
Fixes gh-4489
Closes gh-4492
Ref gh-2979
Ref gh-2981
(cherry picked from commit 9a4d980639dd804ad320685a25b8ff4572e3f595)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
(cherry-picked from 438b1a3e8a52d3e4efd8aba45498477038849c97)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous regex caused the final jQuery binary to have syntax errors for
var-modules with names starting with "return". For example, the following module
wouldn't work when the file is named `returnTrue.js`:
```js
define( function() {
"use strict";
return function returnTrue() {
return true;
};
} );
```
Closes gh-4389
(cherry picked from commit 9ec09c3b4aa5182c2a8b8f51afb861b685a4003c)
|
|
|
|
|
|
| |
It was needed when QUnit 1.x one used but we've since upgraded to QUnit 2.x.
Closes gh-4312
Ref gh-4307
|
|
|
|
|
|
| |
The default reporter is very verbose as it prints all the test names it
encounters. We already use the dot reporter for Karma tests.
Closes gh-4313
|
|
|
|
|
|
|
|
|
|
|
| |
So far, we've been testing that jQuery element iteration works with polyfilled
Symbol & transpiled for-of via a Node test with jsdom with the Symbol global
removed. Unfortunately, jsdom now requires Symbol to be present for its internal
functionality so such a test is no longer possible. Instead, it's been migrated
to an iframe test with transpiled JavaScript.
This PR also enables us to use ECMAScript 2017 or newer in Node.js code.
Closes gh-4305
|
|
|
| |
Close gh-3929
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Update QUnit to 1.23.1
- Remove unused dl#dl from test/index.html
- Remove unused map#imgmap from test/index.html
- Ensure all urls to data use baseURI
- Add the 'grunt karma:main' task
- customContextFile & customDebugFile
- Add 'npm run jenkins' script
Close gh-3744
Fixes gh-1999
|
|
|
|
|
|
| |
Without this patch Jenkins tests fail as jQuery job names there contain spaces,
e.g. "jQuery Core".
Closes gh-3821
|
|
|
|
|
|
|
| |
The promises-aplus-tests sets up a default 200 ms Mocha timeout. This makes
our tests randomly fail on Jenkins. 2 seconds will be safer.
Closes gh-3791
|
| |
|
|
|
|
| |
Fixes gh-3574
|
| |
|
| |
|
|
|
|
|
| |
Fixes gh-3237
Close gh-3533
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The code replacing @CODE in wrapper.js was written so that it expected
both the code and the next line to start in the first column. This commit
adjusts the regex so to get rid of that assumption and to work properly
regardless of number of lines with comments after this block.
While this is technically not necessary for our code, contributors sometimes
re-format the wrapper file in their pull requests and the error
messages they get don't tell them what's the real problem with their code.
Closes gh-3429
|
| |
|
|
|
|
|
| |
Fixes gh-3260
Closes gh-3321
|
|
|
|
|
|
|
|
| |
- For compability reasons, we had already added the global
in AMD mode, but without noConflict. This adds back noConflict
to AMD (which fixes noConflict mode in the tests).
Fixes gh-2930
|
|
|
|
|
|
|
| |
The new regex from after the switch from JSHint to ESLint wasn't catching
the ESLint pragma correctly.
Also, the spacing of the pragma comment was updated to match other comments.
|
|
|
|
|
|
| |
Use eslint pragmas, fix new errors, etc
Closes gh-3148
|
| |
|
| |
|
|
|
|
|
| |
Fixes gh-3094
Close gh-3116
|
|
|
|
| |
Fixes gh-2945
|
|
|
|
|
|
|
|
| |
Single- and no-argument calls act like Promise.resolve.
Multi-argument calls act like Promise.all.
Fixes gh-3029
Closes gh-3059
|
|
|
|
|
|
|
| |
The comment (& the JSHint pragma) doesn't make sense in the context of the
full built file.
Closes gh-3078
|
|
|
|
| |
Fixes gh-3077
|
|
|
|
|
|
|
| |
Employs strict mode to simplify Deferred callback context handling.
Fixes gh-3060
Closes gh-3061
|
|
|
|
|
|
|
|
|
| |
- Make jQuery.ready promise-compatible
- Gives up sync guarantee for post-ready callbacks
Fixes gh-1778
Fixes gh-1823
Close gh-2891
|
|
|
|
|
| |
Fixes gh-2890
Closes gh-2988
|
|
|
|
|
| |
Fixes gh-2979
Close gh-2981
|