aboutsummaryrefslogtreecommitdiffstats
path: root/src/serialize.js
Commit message (Collapse)AuthorAgeFilesLines
* Core: Use named exports in `src/`Michał Gołębiowski-Owczarek2023-09-121-4/+4
| | | | | | | | | 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
* Build: Correct code indentations based on jQuery Style GuideWonseop Kim2020-05-051-4/+2
| | | | | | | | 1. Correct code indentations based on jQuery Style Guide (contribute.jquery.org/style-guide/js/#spacing). 2. Add rules to "src/.eslintrc.json" to enable "enforcing consistent indentation", with minimal changes to the current code. Closes gh-4672
* Core: Migrate from AMD to ES modules 🎉Michał Gołębiowski-Owczarek2019-11-181-11/+7
| | | | | | | | | | | | | | | | | | | | | | 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 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
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-291-3/+2
| | | | | | | | | | | 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
* Event: Leverage native events for focus/blur/click; propagate additional dataRichard Gibson2019-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | Summary of the changes/fixes: 1. Trigger checkbox and radio click events identically (cherry-picked from b442abacbb8464f0165059e8da734e3143d0721f that was reverted before). 2. Manually trigger a native event before checkbox/radio handlers. 3. Add test coverage for triggering namespaced native-backed events. 4. Propagate extra parameters passed when triggering the click event to the handlers. 5. Intercept and preserve namespaced native-backed events. 6. Leverage native events for focus and blur. 7. Accept that focusin handlers may fire more than once for now. Fixes gh-1741 Fixes gh-3423 Fixes gh-3751 Fixes gh-4139 Closes gh-4279 Ref gh-1367 Ref gh-3494
* Serialize: jQuery.param: return empty string when given null/undefinedTimmy Willison2018-06-201-0/+4
| | | | Fixes gh-2633 Close gh-4108
* Core: deprecate jQuery.typeJason Bedard2018-01-161-2/+3
| | | | | Fixes gh-3605 Close gh-3895
* Core: deprecate jQuery.isFunctionJason Bedard2018-01-151-2/+3
| | | | Fixes gh-3609
* Revert "Event: Trigger checkbox and radio click events identically"Timmy Willison2017-03-201-1/+1
| | | | This reverts commit b442abacbb8464f0165059e8da734e3143d0721f.
* Event: Trigger checkbox and radio click events identicallyAlex Padilla2017-01-191-1/+1
| | | | | Fixes gh-3423 Closes gh-3494
* Core: Deprecate jQuery.isArrayManoj Kumar2016-11-301-3/+3
| | | | | Fixes gh-2961 Closes gh-3278
* Build: Update eslint config and fix associated errorsOleg Gaidarenko2016-07-151-7/+11
|
* Serialize: .param - don't use ajaxSettings.traditionalAlexander K2016-04-271-5/+0
| | | | | Ref gh-3023 Closes gh-3030
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-251-0/+2
| | | | Fixes gh-3073
* Serialize: Reduce sizeRichard Gibson2016-04-051-7/+8
| | | | Ref 9fdbdd393a0f0ebdcd837cf102878c8b45860c3b
* Serialize: Treat literal and function-returned null/undefined the sameJoe Trumbull2016-04-051-1/+4
| | | | | | Fixes gh-3005 Closes gh-3007
* Ajax: Only form-encode requests with a bodyDave Methvin2015-11-021-2/+2
| | | | | Fixes #2658 Closes #2671
* Serialize: Fix object detectionMichał Gołębiowski2015-09-071-1/+1
| | | | | | | | | jQuery.type doesn't just return "null" for null but also e.g. "array" for arrays instead of object so it's not really a typeof analogue. My suggestion was stupid. Sorry. Refs 3d7ce0a65f0707ff01a851822e57ba80adcff075
* Serialize: Handle arrays with null valuesDaniel Nill2015-09-071-1/+1
| | | | Closes gh-2436
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-13/+22
| | | | Fixes gh-2056
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-1/+6
|
* Correct code style in comment lineOleg2013-09-131-1/+1
|
* No ticket: fix code style inconsistencies. Closes gh-1361Oleg2013-09-131-5/+6
|
* Separate jQuery.fn.init into its own module (for lighter core dependencies ↵Timmy Willison2013-09-091-0/+1
| | | | across all modules)
* Apply consistent ordering in all modules. -38 bytes. Order modules like ↵Timmy Willison2013-09-091-53/+53
| | | | functions > jQuery.extend > jQuery.fn.extend.
* Always return jQuery in modules that can be included separatelyTimmy Willison2013-09-081-0/+2
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-3/+11
|
* Ignore file inputs when serializing forms. File input serialization is ↵Timmy Willison2013-01-231-1/+1
| | | | handled by plugins. Fixes #13306.
* Fix #12959: Optimize library-wide patternsRichard Gibson2012-11-271-3/+2
|
* Fix #12134. Make .serialize() HTML5-compliant; provide a propHook for shimming.Dave Methvin2012-11-251-13/+12
|
* no ticket: remove and enforce unused vars in jshintMike Sherov2012-10-171-1/+1
|
* Extracts the serialization code from the ajax module so that alternative ↵jaubourg2012-07-131-0/+101
ajax implementations can use it without the need for the whole ajax module to be included in the build.