aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
Commit message (Collapse)AuthorAgeFilesLines
* Core: Simplify code post browser support reductionMichał Gołębiowski-Owczarek2023-09-201-1/+1
| | | | | | | | | | | | | | | | | Summary of the changes: * Core: Simplify code post browser support reduction * Tests: Remove legacy jQuery.cache & oldIE leftovers * Tests: Reformat JavaScript in delegatetest.html * Docs: "jQuery Foundation Projects" -> "jQuery Projects" * Tests: Drop an unused localfile.html file (modern browsers don't support the `file:` protocol this way, there's no point in keeping the file around) * Effects: Remove a redundant `!fn` check (`fn || !fn && easing` is equivalent to `fn || easing`; simplify the code) * CSS: Explain the fallback to direct object access in curCSS better * Tests: Deduplicate `jQuery.parseHTML` test titles * Dimensions: Add a test for fractional values * Tests: Fix a buggy WebKit regex Closes gh-5296
* Core: Move the factory to separate exportsMichał Gołębiowski-Owczarek2023-09-191-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since versions 1.11.0/2.1.0, jQuery has used a module wrapper with one strange addition - in CommonJS environments, if a global `window` with a `document` was not present, jQuery exported a factory accepting a `window` implementation and returning jQuery. This approach created a number of problems: 1. Properly typing jQuery would be a nightmare as the exported value depends on the environment. In practice, typing definitions ignored the factory case. 2. Since we now use named exports for the jQuery module version, it felt weird to have `jQuery` and `$` pointing to the factory instead of real jQuery. Instead, for jQuery 4.0 we leverage the just added `exports` field in `package.json` to expose completely separate factory entry points: one for the full build, one for the slim one. Exports definitions for `./factory` & `./factory-slim` are simpler than for `.` and `./slim` - this is because it's a new entry point, we only expose a named export and so there's no issue with just pointing Node.js to the CommonJS version (we cannot use the module version for `import` from Node.js to avoid double package hazard). The factory entry points are also not meant for the Web browser which always has a proper `window` - and they'd be unfit for an inclusion in a regular script tag anyway. Because of that, we also don't generate minified versions of these entry points. The factory files are not pushed to the CDN since they are mostly aimed at Node.js. Closes gh-5293
* Build: migrate most grunt tasks off of gruntTimmy Willison2023-09-181-93/+55
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Build: Add `exports` to package.json, export slim & esm buildsMichał Gołębiowski-Owczarek2023-07-101-1/+25
| | | | | | | | | | | | | | | | | | | | Summary of the changes: * define the `exports` field in `package.json`; `jQuery` & `$` are also exported as named exports in ESM builds now * declare `"type": "module"` globally except for the `build` folder * add the `--esm` option to `grunt custom`, generating jQuery as an ECMAScript module into the `dist-module` folder * expand `node_smoke_tests` to test the slim & ESM builds and their various combinations; also, test both jQuery loaded via a path to the file as well as from module specifiers that should be parsed via the `exports` feature * add details about ESM usage to the release package README * run `compare_size` on all built minified files; don't run it anymore on unminified files where they don't provide lots of value * remove the remove_map_comment task; SWC doesn't insert the `//# sourceMappingURL=` pragma by default so there's nothing to strip Fixes gh-4592 Closes gh-5255
* Docs: remove stale gitter badge from readmeTimmy Willison2023-06-231-1/+3
| | | Close gh-5273
* Selector: Re-introduce selector-native.jsMichał Gołębiowski-Owczarek2022-11-211-0/+6
| | | | | | | | | | | | | | | | | | | | | Re-introduce the `selector-native` similar to the one on the `3.x-stable` branch. One difference is since the `main` branch inlined Sizzle, some selector utils can be shared between the main `selector` module and `selector-native`. The main `selector` module can be disabled in favor of `selector-native` via: grunt custom:-selector Other changes: * Tests: Fix Safari detection - Chrome Headless has a different user agent than Safari and a browser check in selector tests didn't take that into account. * Tests: Run selector-native tests in `npm test` * Selector: Fix querying on document fragments Ref gh-4395 Closes gh-5085
* Docs: Remove stale badge from READMETimmy Willison2022-10-241-2/+0
| | | Close gh-5148
* Docs: Replace `#NUMBER` Trac issue references with `trac-NUMBER`Michał Gołębiowski-Owczarek2022-01-041-0/+6
| | | | | | | | | | | | | 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
* Docs: update irc to Libera and fix LAMP dead linkfecore12021-09-051-2/+2
|
* Build: Rename master to main across the repositoryMichał Gołębiowski-Owczarek2021-02-051-2/+2
| | | | | | The default branch was updated, this updates the remaining occurrences in code & comments. Closes gh-4838
* Docs: Remove a mention of the event/alias.js module from READMEMichał Gołębiowski-Owczarek2020-01-271-1/+1
| | | | | | | The file contents now lie in deprecated/event.js so the README reference is no longer correct. Ref gh-4572 Closes gh-4599
* Ajax: Deprecate AJAX event aliases, inline event/alias into deprecatedMichał Gołębiowski-Owczarek2020-01-211-3/+2
| | | | | | | | A new `src/deprecated` directory makes it possible to exclude some deprecated APIs from a custom build when their respective "parent" module is excluded without keeping that module outside of the `src/deprecated` directory or the `src/deprecated.js` file. Closes gh-4572
* Build: Create a `grunt custom:slim` alias for the Slim build (#4578)Michał Gołębiowski-Owczarek2020-01-071-0/+5
| | | Closes gh-4578
* Docs: direct users to GitHub docs for cloning the repoTimmy Willison2019-12-161-6/+2
| | | | Ref gh-4556 Close gh-4571
* Docs: Change OS X to macOS in READMEChristian Oliff2019-12-031-1/+1
| | | | | macOS has been around for long enough to update the naming here. Closes gh-4552
* Docs: Convert link to Homebrew from HTTP to HTTPSChristian Oliff2019-10-071-1/+1
| | | | | `http://brew.sh/` -> `https://brew.sh/` Closes gh-4501
* Selector: Inline Sizzle into the selector moduleMichał Gołębiowski-Owczarek2019-07-291-7/+1
| | | | | | | | | | | | | | | | | | 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
* Event: Stop shimming focusin & focusout eventsMichał Gołębiowski-Owczarek2019-04-291-2/+1
| | | | | | | | | | | Latest versions of all browsers now implement focusin & focusout natively and they all converged on a common event order so it doesn't make much sense for us to normalize it to a different order anymore. Note that it means we no longer guarantee that focusin fires before focus and focusout before blur. Fixes gh-4300 Closes gh-4362
* Update README.mdTimmy Willison2019-04-021-1/+1
|
* Docs: add gitter badge to README.mdTimmy Willison2018-07-271-0/+2
| | | Close gh-4138
* README: Add FOSSA license scan status badgeKris Borchers2018-05-151-0/+2
|
* Tests: Add support for running unit tests via grunt with karmaTimo Tijhof2017-12-181-5/+5
| | | | | | | | | | | | | - 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
* Tests: Refactor testIframe() to make it DRYer and more consistentDave Methvin2016-04-111-11/+19
| | | | | Ref gh-3040 Closes gh-3049
* Tests: Make iframe tests wait after checking isReadyDave Methvin2016-04-111-20/+13
| | | | Ref gh-3040
* Docs: use https where possibleBernhard M. Wiedemann2016-01-271-1/+1
| | | | Close gh-2875
* Docs: remove compat referencesTimmy Willison2016-01-141-4/+2
|
* Docs: Updated links to https where they are supported.Jon Dufresne2016-01-131-10/+10
| | | | Close gh-2746
* Event: Separate trigger/simulate into its own moduleDave Methvin2015-11-061-0/+2
| | | | | | | | Fixes gh-1864 Closes gh-2692 This also pulls the focusin/out special event into its own module, since that depends on simulate(). NB: The ajax module triggers events pretty heavily.
* CSS: Make show/hide/toggle methods a moduleDave Methvin2015-10-181-1/+2
| | | | | | | | Unit test changes some uses of .show() and .hide() to .css( "display", ... ), there was already an implicit assumption in several of the existing tests. Fixes gh-2193 Close gh-2648
* Tests:Docs: Fix various typosGary Ye2015-10-121-1/+1
| | | | | | | | | | | | * Changes "baar" to "bar" when used with "foo" in readme and comments of js files * mousenter -> mouseenter Thanks @garysye, @KimTaehee Closes gh-2613 Closes gh-2601
* Docs: remove redundant instruction from the readmeOleg Gaidarenko2015-05-291-1/+1
| | | | | | Thanks @elas7 Fixes gh-2359
* Docs: Add info about Sizzle not being excludable on the compat branchMichał Gołębiowski2015-03-301-0/+2
| | | | | | | | Most people just read the README that's displayed to them on GitHub which is the one for the master branch. Let's include the info about Sizzle not being excludable there. Fixes gh-2184
* Docs: Fix README uppercaseDave Methvin2015-01-091-1/+1
|
* Docs: Clarify custom build instructionsDave Methvin2015-01-061-3/+3
| | | | Closes gh-1854
* Misc: Mac OS is now OS X, thanks @xfqDave Methvin2015-01-061-1/+1
| | | | Closes gh-1970
* README: update the Homebrew site addressMichał Gołębiowski2015-01-031-1/+1
| | | | | | Thanks @xfq Closes gh-1971
* README: various text fixesOleg Gaidarenko2014-12-151-6/+6
| | | | | | | | Thank you @essamjoubori, @bcbcb, @namlede Closes gh-1926 Closes gh-1927 Closes gh-1928
* README: Add selector-native.js link. Thanks @randsonjs!Dave Methvin2014-12-031-1/+1
| | | | Closes gh-1715
* Docs: correct grunt command in README.mdOleg Gaidarenko2014-11-101-1/+1
| | | | Fixes gh-1850
* Misc: Adjust comments & docs to dropping IE<8 in jQuery CompatMichał Gołębiowski2014-11-041-1/+1
|
* Docs: 1.x-master branch -> compat branch; 2.x branch -> master branchTimmy Willison2014-11-031-2/+2
|
* README: Update the description of the deprecated moduleMichał Gołębiowski2014-10-301-1/+1
| | | | .andSelf is now gone.
* Readme: Fix minor style issues. Thanks @MightyBranch!Dave Methvin2014-10-061-1/+1
|
* README: Improve build instructionsOleg Gaidarenko2014-09-261-4/+3
| | | | | | Thanks @NickStefan Closes gh-1663
* Readme: Fix punctuation in tileupisfree2014-07-121-1/+1
| | | | Closes gh-1607
* Readme: Fix subsection titles and grammar, thanks @robgraeberDave Methvin2014-03-161-6/+6
| | | | Fixes gh-1540
* Readme: updating QUnit informationLeonardo Balter2014-03-131-1/+1
| | | | | | updates QUnit reference site and method naming. Closes gh-1493
* Docs: Change raises to throws in README test assertionsMichał Gołębiowski2014-02-051-1/+1
|
* README: Add jQuery environment notesTimmy Willison2014-01-061-0/+7
|
* Doc: Update links and simplify build instructionsOleg2013-12-311-6/+6
|