Michał Gołębiowski-Owczarek
f75daab091
Core: Use named exports in src/
...
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
2023-09-12 02:27:19 +02:00
Michał Gołębiowski-Owczarek
5d5ea01511
Docs: Replace #NUMBER
Trac issue references with trac-NUMBER
...
The GitHub UI treats `#NUMBER` as referring to its own issues which is confusing
when in jQuery source it's usually referring to the old deprecated Trac instance
at https://bugs.jquery.com . This change replaces all such Trac references with
`trac-NUMBER`.
A few of the references came with the Sizzle integration and referred to the
Sizzle GitHub bug tracker. Those have been replaced with full links instead.
A new entry describing issue reference conventions has been added to README.
Closes gh-4993
2022-01-04 16:27:18 +01:00
Michał Gołębiowski-Owczarek
d0ce00cdfa
Core: Migrate from AMD to ES modules 🎉
...
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
2019-11-18 21:15:03 +01:00
Michał Gołębiowski-Owczarek
cf84696fd1
Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJS
...
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
2019-04-29 22:56:09 +02:00
Nilton Cesar
64a289286a
Core: make camelCase function available only for internal usage
...
Close gh-3604
Fixes gh-3384
2018-01-08 11:21:22 -05:00
Oleg Gaidarenko
e4fd41f8fa
Build: Update eslint config and fix associated errors
2016-07-15 21:42:25 +04:00
Michał Gołębiowski
305f193aa5
Build: Put all AMD modules in "src/" in strict mode
...
Fixes gh-3073
2016-04-25 20:25:08 +02:00
Michał Gołębiowski
693f1b537b
Docs: Update support comments related to IE
...
All support comments were checked for Edge applicability.
2016-03-30 11:21:36 +02:00
Michał Gołębiowski
93a8fa6bfc
Core: Deprecate jQuery.parseJSON
...
Fixes gh-2800
Closes gh-2948
2016-03-02 13:12:35 +01:00
Oleg Gaidarenko
10fdad742a
Build: Update jscs and lint files
...
Fixes gh-2056
2015-09-07 20:03:50 +03:00
Timmy Willison
0e790985a7
Data: always camelCase keys in .data()
...
- This effectively implements our "Embrace HTML5" option
- Related: http://goo.gl/GcQAtn
Fixes gh-2257
2015-05-04 10:27:30 -04:00
Richard Gibson
53aa87f3bf
Core: Standardize indexOf comparisons
...
not present: `< 0`
present: `> -1`
at index: `=== N`
Closes gh-1984
2015-01-10 23:47:01 -05:00
Mike Sidorov
6f65f5faf2
Data: shave off a couple of bytes
...
Closes gh-1931
2014-12-24 01:44:38 +03:00
Victor Homyakov
72c4a067a9
Data: speed up $.fn.data() for camel-cased key
...
Fixes gh-1941
Closes gh-1952
2014-12-24 01:34:40 +03:00
Timmy Willison
c869a1ef8a
Build: update grunt-jscs-checker and pass with the new rules
2014-07-17 10:25:59 -07:00
Dave Methvin
d837f119c3
Support: clean up comments and Support notation
...
Closes gh-1577
2014-06-10 23:28:14 -04:00
Dave Methvin
b8133e282c
Data: Work around IE11 bug with onpageshow attribute
...
Fixes #14894
2014-04-30 10:46:26 -04:00
Corey Frang
30eee925db
Fix #14101 : $().data() should be undefined, not null
2013-11-06 10:25:12 -05:00
Richard Gibson
ced9d155f0
Fix #14459 : Use jQuery.parseJSON instead of JSON.parse
2013-10-28 11:35:53 -04:00
Ronny Springer
083edd60a6
Ref 2263134b
: Better identify potential JSON. Close gh-1401.
2013-10-16 08:46:45 -04:00
Richard Gibson
f519539d3b
No ticket: Compress core and data modules
...
(cherry picked from commit b31bd4c05d
)
Conflicts:
src/core.js
src/data.js
2013-09-28 12:35:08 -04:00
Timmy Willison
99191a510e
Apply consistent ordering in all modules. -38 bytes. Order modules like functions > jQuery.extend > jQuery.fn.extend.
2013-09-09 13:54:46 -05:00
Timmy Willison
3b53b75160
Break jQuery.access out into its own module to separate it from core; Adjust CommonJS+AMD build support to include non-var dependencies. Convert modules with more than a few dependencies to use CJS+AMD syntax.
2013-09-09 11:34:23 -04:00
Timmy Willison
b534ee2ccf
Always return jQuery in modules that can be included separately
2013-09-08 21:25:27 -04:00
Timmy Willison
6318ae6ab9
AMD-ify jQuery sourcegit s! Woo! Fixes #14113 , #14163 .
2013-08-15 14:15:49 -04:00
Rick Waldron
147726af12
Fixes #14047 jQuery.data should not miss data-* w/ hyphenated property names
...
http://bugs.jquery.com/ticket/14047
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-06-24 12:23:12 -04:00
Rick Waldron
c1b8edfcc9
Optimize cleanData: allow direct access to data_priv for cleanup
2013-05-13 15:00:57 -04:00
Jason Bedard
5e42df0517
Use String.slice instead of String.substring in order to save a three bytes. Close gh-1261.
2013-05-08 19:56:13 +04:00
Rick Waldron
2406b5e290
Fixes #13850 . Better removal of hyphenated data property names.
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-05-02 16:35:22 -04:00
Corey Frang
55e319aa52
Fixes #13815 : Ensure each element has its own private data object - Tests by @rwldrn
2013-04-24 17:09:30 -04:00
Timmy Willison
0fa52c11cb
Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755 .
2013-04-09 11:59:31 -04:00
Rick Waldron
570ec3dec7
Add note about deprecation of _removeData and _data
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-08 15:39:20 -04:00
Rick Waldron
d7d6b7a5c7
Move Data.prototype.accept => Data.accepts
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-08 15:37:16 -04:00
Oleg Gaidarenko
e8731410a4
No ticket. Use data_priv methods instead of jQuery._removeData and jQuery._data; Remove needless, internal second argument of jQuery.cleanData. Closes gh-1234
2013-04-08 15:35:16 -04:00
Oleg Gaidarenko
1a3939659b
No ticket. Simplifies data methods and updates comments. Closes gh-1233
2013-04-08 15:31:47 -04:00
Oleg Gaidarenko
f61314ff5c
Fixes #8335 . Do not allow add data to non-elements (2.x). Closes gh-1232
2013-04-08 15:10:39 -04:00
Rick Waldron
73b315538f
Better approach the hasData side effects fix. Thanks gibson042
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-01 17:09:37 -04:00
Rick Waldron
332a490573
Avoid side-effects when calling jQuery.hasData
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-01 12:48:30 -04:00
stonelee
92b23673e6
No ticket: Move property descriptor assignment to save a byte. Close gh-1188.
2013-03-14 09:53:19 -04:00
Rick Waldron
692afbcc5f
Fixes #13551 . Guard against illegal data access by undefined elem-owner
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-03 19:40:33 -05:00
Rick Waldron
91824bd292
Simplify data-* attr lookup with camelKey
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-02 14:09:39 -05:00
Michał Gołębiowski
761b96c301
Fixes #13550 . .data should not miss attr() set data-* with hyphenated property names. Closes gh-1189
2013-03-02 13:04:48 -05:00
Rick Waldron
8f7218198d
Remove dup camelKey path
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-01 19:33:12 -05:00
Rick Waldron
3212a29369
Fixes #13548 . .data should not miss attr() set data-* with hyphenated property names
2013-03-01 19:02:57 -05:00
Richard Gibson
1b6be73721
No ticket: Squeeze data
2013-02-26 23:41:57 -05:00
Richard Gibson
85f1985f24
Fix #13494 : Fallback defineProperties to jQuery.extend. Close gh-1182.
...
Android<4 (ancient WebKit) doesn't have full ES5 support.
2013-02-26 22:38:06 -05:00
Richard Gibson
6d188186d4
No ticket: move jQuery.expando to core
2013-02-25 15:48:22 -05:00
Rick Waldron
93043d002a
Refactor: Data.prototype.access. Thanks to @RubyLouvre and @gibson042. Closes #1167
2013-02-13 12:14:20 -05:00
Rick Waldron
1d5d959ee0
Optimized Data rewrite
2013-02-11 12:39:44 -05:00
Richard Gibson
a5b456edff
Ref fd43865c
: restore correct logic
2013-02-04 09:35:33 -05:00