Skip to content

Commit 8a0d6b4

Browse files
committed
Core: Remove support for jQuery 3.x
1 parent b830568 commit 8a0d6b4

30 files changed

+4069
-3701
lines changed

.github/workflows/browserstack-3.x.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.github/workflows/browserstack-git.yml renamed to .github/workflows/browserstack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Browserstack (Core git)
1+
name: Browserstack
22

33
on:
44
push:
@@ -63,6 +63,6 @@ jobs:
6363

6464
- name: Test
6565
run: |
66-
npm run test:unit -- -v -c jtr-git.yml \
66+
npm run test:unit -- -v -c jtr-ci.yml \
6767
--browserstack "${{ matrix.BROWSER }}" \
6868
--run-id ${{ github.run_id }} \

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ That way you can spot and fix what otherwise would have been errors, until you n
1111

1212
The following table indicates which jQuery Migrate versions can be used with which jQuery versions:
1313

14-
| jQuery version | jQuery Migrate version |
15-
|----------------|-------------------------|
16-
| 1.x | 1.x |
17-
| 2.x | 1.x |
18-
| 3.x | 3.x / 4.x<sup>[1]</sup> |
19-
| 4.x | 3.x / 4.x<sup>[1]</sup> |
20-
21-
[1] NOTE: jQuery Migrate 4.x only supports the same browser as jQuery 4.x does. If you need to support Edge Legacy, Internet Explorer 9-10 or iOS 7+ (and not just 3 latest versions), use jQuery Migrate 3.x.
14+
| jQuery version | jQuery Migrate version |
15+
|----------------|------------------------|
16+
| 1.x | 1.x |
17+
| 2.x | 1.x |
18+
| 3.x | 3.x |
19+
| 4.x | 4.x |
20+
21+
Each jQuery Migrate version supports the same browsers that the jQuery version used with it.
2222

2323
## Usage
2424

build/tasks/minify.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,10 @@ export async function minify( { dir, filename, version } ) {
3434
{
3535
compress: {
3636
hoist_funs: false,
37-
loops: false,
38-
39-
// Support: IE <11
40-
// typeofs transformation is unsafe for IE9-10
41-
// See https://github.com/mishoo/UglifyJS2/issues/2198
42-
typeofs: false
37+
loops: false
4338
},
4439
output: {
4540
ascii_only: true,
46-
47-
// Support: Android 4.0 only, IE 9 only
48-
// This is in lieu of setting ie for all of mangle, compress, and output
49-
ie8: true,
5041
preamble: banner
5142
},
5243
sourceMap: {

jtr-3.x.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

jtr-git.yml renamed to jtr-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ runs:
66
- git.min
77
- git.slim
88
- git.slim.min
9+
- 4.0.0-beta.2
10+
- 4.0.0-beta.2.slim
911
plugin:
1012
- dev
1113
- min

jtr-local.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,7 @@ flags:
66
- git.min
77
- git.slim
88
- git.slim.min
9-
- 3.x-git
10-
- 3.x-git.min
11-
- 3.x-git.slim
12-
- 3.x-git.slim.min
13-
- 3.7.1
14-
- 3.7.1.slim
15-
- 3.6.4
16-
- 3.5.1
17-
- 3.4.1
18-
- 3.3.1
19-
- 3.2.1
20-
- 3.1.1
21-
- 3.0.0
9+
- 4.0.0-beta.2
10+
- 4.0.0-beta.2.slim
2211

2312
retries: 1

package-lock.json

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test": "npm run test:node_smoke_tests && npm run test:browser"
3535
},
3636
"peerDependencies": {
37-
"jquery": ">=3 <4"
37+
"jquery": ">=4 <5"
3838
},
3939
"devDependencies": {
4040
"chalk": "5.4.1",
@@ -45,7 +45,7 @@
4545
"eslint-plugin-import": "2.29.1",
4646
"globals": "15.3.0",
4747
"husky": "9.0.11",
48-
"jquery": "3.7.1",
48+
"jquery": "4.0.0-beta.2",
4949
"jquery-test-runner": "0.2.1",
5050
"jsdom": "24.1.0",
5151
"native-promise-only": "0.8.1",

0 commit comments

Comments
 (0)