Skip to content

Commit cbc2bc1

Browse files
authored
Docs: add version support section to README
- also switch header format to be more consistent with our other markdown files Closes jquerygh-5565
1 parent d74fc26 commit cbc2bc1

File tree

1 file changed

+53
-56
lines changed

1 file changed

+53
-56
lines changed

README.md

+53-56
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
1-
[jQuery](https://jquery.com/) — New Wave JavaScript
2-
==================================================
1+
# [jQuery](https://jquery.com/) — New Wave JavaScript
32

43
Meetings are currently held on the [matrix.org platform](https://matrix.to/#/#jquery_meeting:gitter.im).
54

65
Meeting minutes can be found at [meetings.jquery.org](https://meetings.jquery.org/category/core/).
76

8-
Contribution Guides
9-
--------------------------------------
7+
The latest version of jQuery is available at [https://jquery.com/download/](https://jquery.com/download/).
8+
9+
## Version support
10+
11+
| Version | Branch | Status |
12+
| ------- | ---------- | -------- |
13+
| 4.x | main | Beta |
14+
| 3.x | 3.x-stable | Active |
15+
| 2.x | 2.x-stable | Inactive |
16+
| 1.x | 1.x-stable | Inactive |
17+
18+
Once 4.0.0 final is released, the 3.x branch will continue to receive updates for a limited time. The 2.x and 1.x branches are no longer supported.
19+
20+
Commercial support for inactive versions is available from [HeroDevs](https://herodevs.com/nes).
21+
22+
Learn more about our [version support](https://jquery.com/support/).
23+
24+
## Contribution Guides
1025

1126
In the spirit of open source software development, jQuery always encourages community code contribution. To help you get started and before you jump into writing code, be sure to read these important contribution guidelines thoroughly:
1227

@@ -20,16 +35,12 @@ GitHub issues/PRs are usually referenced via `gh-NUMBER`, where `NUMBER` is the
2035

2136
jQuery has used a different bug tracker - based on Trac - in the past, available under [bugs.jquery.com](https://bugs.jquery.com/). It is being kept in read only mode so that referring to past discussions is possible. When jQuery source references one of those issues, it uses the pattern `trac-NUMBER`, where `NUMBER` is the numerical ID of the issue. You can find such an issue under `https://bugs.jquery.com/ticket/NUMBER`.
2237

23-
24-
Environments in which to use jQuery
25-
--------------------------------------
38+
## Environments in which to use jQuery
2639

2740
- [Browser support](https://jquery.com/browser-support/)
2841
- jQuery also supports Node, browser extensions, and other non-browser environments.
2942

30-
31-
What you need to build your own jQuery
32-
--------------------------------------
43+
## What you need to build your own jQuery
3344

3445
To build jQuery, you need to have the latest Node.js/npm and git 1.7 or later. Earlier versions might work, but are not supported.
3546

@@ -41,9 +52,7 @@ and `brew install node` to install Node.js.
4152
Linux/BSD users should use their appropriate package managers to install git and Node.js, or build from source
4253
if you swing that way. Easy-peasy.
4354

44-
45-
How to build your own jQuery
46-
----------------------------
55+
## How to build your own jQuery
4756

4857
First, [clone the jQuery git repo](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository).
4958

@@ -94,7 +103,7 @@ Some example modules that can be excluded or included are:
94103
- **ajax/script**: The `<script>` AJAX transport only; used to retrieve scripts.
95104
- **ajax/jsonp**: The JSONP AJAX transport only; depends on the ajax/script transport.
96105
- **css**: The `.css()` method. Also removes **all** modules depending on css (including **effects**, **dimensions**, and **offset**).
97-
- **css/showHide**: Non-animated `.show()`, `.hide()` and `.toggle()`; can be excluded if you use classes or explicit `.css()` calls to set the `display` property. Also removes the **effects** module.
106+
- **css/showHide**: Non-animated `.show()`, `.hide()` and `.toggle()`; can be excluded if you use classes or explicit `.css()` calls to set the `display` property. Also removes the **effects** module.
98107
- **deprecated**: Methods documented as deprecated but not yet removed.
99108
- **dimensions**: The `.width()` and `.height()` methods, including `inner-` and `outer-` variations.
100109
- **effects**: The `.animate()` method and its shorthands such as `.slideUp()` or `.hide("slow")`.
@@ -193,8 +202,7 @@ npm run build -- --filename=jquery.slim.module.js --slim --esm
193202

194203
*Non-official custom builds are not regularly tested. Use them at your own risk.*
195204

196-
Running the Unit Tests
197-
--------------------------------------
205+
## Running the Unit Tests
198206

199207
Make sure you have the necessary dependencies:
200208

@@ -208,22 +216,18 @@ Start `npm start` to auto-build jQuery as you work:
208216
npm start
209217
```
210218

211-
212219
Run the unit tests with a local server that supports PHP. Ensure that you run the site from the root directory, not the "test" directory. No database is required. Pre-configured php local servers are available for Windows and Mac. Here are some options:
213220

214221
- Windows: [WAMP download](https://www.wampserver.com/en/)
215222
- Mac: [MAMP download](https://www.mamp.info/en/downloads/)
216223
- Linux: [Setting up LAMP](https://www.linux.com/training-tutorials/easy-lamp-server-installation/)
217224
- [Mongoose (most platforms)](https://code.google.com/p/mongoose/)
218225

219-
220-
221-
Essential Git
222-
-------------
226+
## Essential Git
223227

224228
As the source code is handled by the Git version control system, it's useful to know some features used.
225229

226-
### Cleaning ###
230+
### Cleaning
227231

228232
If you want to purge your working directory back to the status of upstream, the following commands can be used (remember everything you've worked on is gone after these):
229233

@@ -232,47 +236,45 @@ git reset --hard upstream/main
232236
git clean -fdx
233237
```
234238

235-
### Rebasing ###
239+
### Rebasing
236240

237241
For feature/topic branches, you should always use the `--rebase` flag to `git pull`, or if you are usually handling many temporary "to be in a github pull request" branches, run the following to automate this:
238242

239243
```bash
240244
git config branch.autosetuprebase local
241245
```
246+
242247
(see `man git-config` for more information)
243248

244-
### Handling merge conflicts ###
249+
### Handling merge conflicts
245250

246251
If you're getting merge conflicts when merging, instead of editing the conflicted files manually, you can use the feature
247252
`git mergetool`. Even though the default tool `xxdiff` looks awful/old, it's rather useful.
248253

249254
The following are some commands that can be used there:
250255

251-
* `Ctrl + Alt + M` - automerge as much as possible
252-
* `b` - jump to next merge conflict
253-
* `s` - change the order of the conflicted lines
254-
* `u` - undo a merge
255-
* `left mouse button` - mark a block to be the winner
256-
* `middle mouse button` - mark a line to be the winner
257-
* `Ctrl + S` - save
258-
* `Ctrl + Q` - quit
256+
- `Ctrl + Alt + M` - automerge as much as possible
257+
- `b` - jump to next merge conflict
258+
- `s` - change the order of the conflicted lines
259+
- `u` - undo a merge
260+
- `left mouse button` - mark a block to be the winner
261+
- `middle mouse button` - mark a line to be the winner
262+
- `Ctrl + S` - save
263+
- `Ctrl + Q` - quit
259264

260-
[QUnit](https://api.qunitjs.com) Reference
261-
-----------------
265+
## [QUnit](https://api.qunitjs.com) Reference
262266

263-
### Test methods ###
267+
### Test methods
264268

265269
```js
266270
expect( numAssertions );
267271
stop();
268272
start();
269273
```
270274

271-
272275
*Note*: QUnit's eventual addition of an argument to stop/start is ignored in this test suite so that start and stop can be passed as callbacks without worrying about their parameters.
273276

274-
### Test assertions ###
275-
277+
### Test assertions
276278

277279
```js
278280
ok( value, [message] );
@@ -285,11 +287,11 @@ notStrictEqual( actual, expected, [message] );
285287
throws( block, [expected], [message] );
286288
```
287289

290+
## Test Suite Convenience Methods Reference
288291

289-
Test Suite Convenience Methods Reference (See [test/data/testinit.js](https://github.com/jquery/jquery/blob/main/test/data/testinit.js))
290-
------------------------------
292+
See [test/data/testinit.js](https://github.com/jquery/jquery/blob/main/test/data/testinit.js).
291293

292-
### Returns an array of elements with the given IDs ###
294+
### Returns an array of elements with the given IDs
293295

294296
```js
295297
q( ... );
@@ -298,12 +300,12 @@ q( ... );
298300
Example:
299301

300302
```js
301-
q("main", "foo", "bar");
303+
q( "main", "foo", "bar" );
302304

303305
=> [ div#main, span#foo, input#bar ]
304306
```
305307

306-
### Asserts that a selection matches the given IDs ###
308+
### Asserts that a selection matches the given IDs
307309

308310
```js
309311
t( testName, selector, [ "array", "of", "ids" ] );
@@ -315,21 +317,19 @@ Example:
315317
t("Check for something", "//[a]", ["foo", "bar"]);
316318
```
317319

318-
319-
320-
### Fires a native DOM event without going through jQuery ###
320+
### Fires a native DOM event without going through jQuery
321321

322322
```js
323-
fireNative( node, eventType )
323+
fireNative( node, eventType );
324324
```
325325

326326
Example:
327327

328328
```js
329-
fireNative( jQuery("#elem")[0], "click" );
329+
fireNative( jQuery( "#elem" )[ 0 ], "click" );
330330
```
331331

332-
### Add random number to url to stop caching ###
332+
### Add random number to url to stop caching
333333

334334
```js
335335
url( "some/url" );
@@ -338,18 +338,17 @@ url( "some/url" );
338338
Example:
339339

340340
```js
341-
url("index.html");
341+
url( "index.html" );
342342

343343
=> "data/index.html?10538358428943"
344344

345345

346-
url("mock.php?foo=bar");
346+
url( "mock.php?foo=bar" );
347347

348348
=> "data/mock.php?foo=bar&10538358345554"
349349
```
350350

351-
352-
### Run tests in an iframe ###
351+
### Run tests in an iframe
353352

354353
Some tests may require a document other than the standard test fixture, and
355354
these can be run in a separate iframe. The actual test code and assertions
@@ -376,9 +375,7 @@ for this test, followed by the global `jQuery`, `window`, and `document` from
376375
the iframe. If the iframe code passes any arguments to `startIframeTest`,
377376
they follow the `document` argument.
378377

379-
380-
Questions?
381-
----------
378+
## Questions?
382379

383380
If you have any questions, please feel free to ask on the
384381
[Developing jQuery Core forum](https://forum.jquery.com/developing-jquery-core) or in #jquery on [libera](https://web.libera.chat/).

0 commit comments

Comments
 (0)