aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
Commit message (Collapse)AuthorAgeFilesLines
* Build: Make Karma work in ES modules modeMichał Gołębiowski-Owczarek2019-12-161-1/+3
| | | | | | Also, run such a suite in CI to make sure modules are working as expected when used directly. Closes gh-4550
* Build: Auto-convert sources to AMDMichał Gołębiowski-Owczarek2019-12-091-1/+2
| | | | | | | | | | | | | | | jQuery source has been migrated in gh-4541 from AMD to ES modules. To maintain support for consumers of our AMD modules, this commits adds a task transpiling the ES modules sources in `src/` to AMD in `amd/`. A "Load with AMD" checkbox was also restored to the QUnit setup. Note that, contrary to jQuery 3.x, AMD files need to be generated via `grunt amd` or `grunt` as sources are not authored in ECMAScript modules. To achieve a similar no-compile experience during jQuery 4.x testing, use the new "Load as modules" checkbox which works in all supported browsers except for IE & Edge (the legacy, EdgeHTML-based one). Ref gh-4541 Closes gh-4554
* Build: Fix the Windows buildMichał Gołębiowski-Owczarek2019-12-021-1/+0
| | | | | | | This commit gets rid of rollup-plugin-hypothetical in favor of a simpler inline Rollup plugin that fits our need and is compatible with Windows. Fixes gh-4548 Closes gh-4549
* Build: Require extensions for ES6 imports, prevent import cyclesMichał Gołębiowski-Owczarek2019-11-251-0/+1
| | | | | | | | | | | | | | | | jQuery source is now authored in ECMAScript modules. Native browser support for them requires full file names including extensions. Rollup works even if import paths don't specify extensions, though, so one import slipped through without such an extension, breaking native browser import of src/jquery.js. A new ESLint rule using eslint-plugin-import prevents us from regressing on that front. Also, eslint-plugin-import's no-cycle rule is used to avoid import cycles. Closes gh-4544 Ref gh-4541 Ref 075320149ae30a5c593c06b2fb015bdf033e0acf
* Core: Migrate from AMD to ES modules 🎉Michał Gołębiowski-Owczarek2019-11-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | 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: Remove the external directory, read from node_modules directlyMichał Gołębiowski-Owczarek2019-08-261-1/+0
| | | | | | Now that Sizzle is gone & we use npm, we can read from node_modules directly and skip the setup that copies some files to the external directory. Closes gh-4466
* Selector: Inline Sizzle into the selector moduleMichał Gołębiowski-Owczarek2019-07-291-1/+0
| | | | | | | | | | | | | | | | | | This commit removes Sizzle from jQuery, inlining its code & removing obsolete workarounds where applicable. The selector-native module has been removed. Further work on the selector module may decrease the size enough that it will no longer be necessary. If it turns out it's still useful, we'll reinstate it but the code will look different anyway as we'll want to share as much code as possible with the existing selector module. The Sizzle AUTHORS.txt file has been merged with the jQuery one - people are sorted by their first contributions to either of the two repositories. The commit reduces the gzipped jQuery size by 1460 bytes compared to master. Closes gh-4395
* Build: ESLint: forbid unused function parametersMichał Gołębiowski-Owczarek2019-05-131-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
* Build: Update Sizzle from 2.3.3 to 2.3.4Michał Gołębiowski-Owczarek2019-04-091-1/+1
| | | | | | Fixes gh-1756 Fixes gh-4170 Fixes gh-4249 Closes gh-4345
* Build: Update the master version to 4.0.0-preMichał Gołębiowski-Owczarek2019-04-081-1/+1
|
* Tests: Fix the core-js polyfill inclusion methodMichał Gołębiowski-Owczarek2019-04-041-1/+1
| | | | | | | | core-js 3 no longer includes a built file in the bundle but core-js-bundle does. Closes gh-4342 Ref gh-4341
* Build: Update Sinon from 2.3.7 to 7.3.1, other updatesMichał Gołębiowski-Owczarek2019-04-041-8/+8
| | | Closes gh-4341
* Build: Run the basic test suite in jsdomMichał Gołębiowski-Owczarek2019-03-111-0/+1
| | | | | | The basic test suite is now run in jsdom on all supported Node.js versions (8, 10 & 11 as of now). Closes gh-4310
* Build: Update QUnit from 1.23.1 to 2.9.2Michał Gołębiowski-Owczarek2019-03-041-4/+3
| | | Closes gh-4307
* Build: Update jsdom; migrate a test with Symbol polyfill to an iframe testMichał Gołębiowski-Owczarek2019-03-041-1/+1
| | | | | | | | | | | 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
* Build: Update most dependenciesabnud12019-02-191-16/+20
| | | | | | | | | | | | | | | | The only packages not fully updated are: - qunitjs & karma-qunit as that's a QUnit 2.x update that will require some changes and we'll do that later - jsdom as we need to first rewrite the test with the Symbol polyfill - newer jsdom versions don't work with such a hacked Symbol instance - sinon as the v2 -> v7 upgrade requires to update our unit tests - uglify-js & grunt-contrib-uglify as latest uglify-js versions slightly worsen the minified gzipped size Closes gh-4227 Closes gh-4228 Closes gh-4230 Closes gh-4232
* Tests: add IE launcher for debugging IE11 on WindowsTimmy Willison2018-11-271-0/+1
|
* Update node dependencies (sans jsdom, qunit, and sinon)Timmy Willison2018-06-201-15/+15
| | | Close gh-4098
* Build: Seasonal update of uglify and its optionsOleg Gaydarenko2018-03-051-1/+1
| | | | | | | | raw gz Compared to last run = = dist/jquery.js -294 -88 dist/jquery.min.js Closes gh-3994
* Build: Updating the master version to 3.3.2-pre.Timmy Willison2018-01-201-1/+1
|
* Build: Updating the master version to 3.3.1-pre.Timmy Willison2018-01-191-1/+1
|
* Release: update version to 3.3.0-preTimmy Willison2018-01-191-1/+1
|
* Build: Fix UglifyJS output in Android 4.0; update uglifyTimmy Willison2018-01-081-1/+1
| | | | | | | - Thanks to @mgol for first pass Fixes gh-3743 Close gh-3920
* Build: Only run browser tests in one Node version on TravisMichał Gołębiowski-Owczarek2018-01-031-2/+4
| | | | Ref gh-3744 Closes gh-3894
* Tests: Add support for running unit tests via grunt with karmaTimo Tijhof2017-12-181-4/+12
| | | | | | | | | | | | | - 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
* Build: Drop cross-spawn, use child_process.spawn shell optionMichał Gołębiowski-Owczarek2017-09-251-1/+0
|
* Build: Update to Babel 7, use for-of plugin instead of preset-es2015Henry Zhu2017-09-251-2/+3
| | | Closes gh-3786
* Build: fix uglify options for uglify updateTimmy Willison2017-07-101-1/+2
| | | | | | | - Uses new typeofs option for compression - See https://github.com/mishoo/UglifyJS2/issues/2198 Close gh-3710
* Build: Update sinon, husky, and qunitjsTimmy Willison2017-07-101-3/+3
|
* Build: update node dependencies; commit package-lock.jsonCDAGaming2017-06-261-17/+17
| | | | | - Also ignore yarn.lock Close gh-3669
* Build: Updating the master version to 3.2.2-pre.Timmy Willison2017-03-201-1/+1
|
* Revert "Build: Updating the master version to 3.2.2-pre."Timmy Willison2017-03-201-1/+1
| | | | This reverts commit 066bd8681c4a8ba2de707d59ee3a8df771804970.
* Build: Updating the master version to 3.2.2-pre.Timmy Willison2017-03-201-1/+1
|
* Build: Updating the master version to 3.2.1-pre.Timmy Willison2017-03-161-1/+1
|
* Release: update version to 3.2.0-preTimmy Willison2017-03-151-1/+1
|
* Build: fix markerPattern and ticketPattern regexes in package.jsonAlexander Lisianoi2017-01-091-2/+2
| | | | | | | Commit messages used to fail the style check if they contained a word starting with "ref", like reformat or reference, in their message body. Close gh-3437 Ref jzaefferer/commitplease#91
* Build: jQuery Foundation -> JS FoundationTimmy Willison2016-12-051-1/+1
| | | | Close gh-3414
* Build: Updating the master version to 3.1.2-pre.Timmy Willison2016-09-221-1/+1
|
* Build: Update promises-aplus-tests for compat with Node 7Michał Gołębiowski2016-09-121-1/+1
| | | | | | The older promises-aplus-tests was relying on old Mocha that, in turn, used an obsolete graceful-fs version that is not guaranteed to work fine with the upcoming Node 7 and later.
* Build: Update Sizzle to 2.3.3Richard Gibson2016-08-081-1/+1
| | | | Fixes gh-3263
* Build: Update Sizzle to 2.3.2Richard Gibson2016-08-081-1/+1
|
* Build: Update Sizzle to 2.3.1Richard Gibson2016-08-081-1/+1
| | | | Fixes gh-3224
* Build: Simplify Gruntfile constructionsOleg Gaidarenko2016-08-021-2/+2
| | | | Fixes gh-3246
* Build: use commitplease via husky, prohibit #NNNN github-style ticketsAlexander Lisianoi2016-07-251-3/+7
| | | | Closes gh-3176
* Build: Update eslint config and fix associated errorsOleg Gaidarenko2016-07-151-1/+1
|
* Build: Upgrade ESLint to 3.x againMichał Gołębiowski2016-07-131-1/+1
| | | | | | ESLint is now skipped in Node older than 4.x so we're safe. Refs gh-3222
* Build: Don't use ESLint 3.xOleg Gaidarenko2016-07-091-1/+1
| | | | Since it is not supported by older node versions :/
* Build: More ESLint related changesOleg Gaidarenko2016-07-091-1/+1
|
* Build: Updating the master version to 3.1.1-pre.Timmy Willison2016-07-071-1/+1
|
* Build: Updating the master version to 3.1.0-pre.Timmy Willison2016-07-071-1/+1
|