Skip to content

Commit 70ccf85

Browse files
committed
Core: Remove support for jQuery 3.x
1 parent 758a93f commit 70ccf85

32 files changed

+4064
-3704
lines changed

.github/workflows/browser-tests.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ jobs:
4848
npm run test:unit -- -b ${{ matrix.BROWSER }} -h \
4949
--jquery-migrate ${{ matrix.MIGRATE_VERSION }} \
5050
--jquery git --jquery git.min --jquery git.slim --jquery git.slim.min \
51-
--jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min \
52-
--jquery 3.7.1 --jquery 3.7.1.slim \
53-
--jquery 3.6.4 --jquery 3.5.1 --jquery 3.4.1 \
54-
--jquery 3.3.1 --jquery 3.2.1 --jquery 3.1.1 --jquery 3.0.0 \
5551
--retries 1
5652
5753
ie:
@@ -85,10 +81,6 @@ jobs:
8581
npm run test:ie -- ^
8682
--jquery-migrate ${{ env.MIGRATE_VERSION }} ^
8783
--jquery git --jquery git.min --jquery git.slim --jquery git.slim.min ^
88-
--jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min ^
89-
--jquery 3.7.1 --jquery 3.7.1.slim ^
90-
--jquery 3.6.4 --jquery 3.5.1 --jquery 3.4.1 ^
91-
--jquery 3.3.1 --jquery 3.2.1 --jquery 3.1.1 --jquery 3.0.0 ^
9284
--retries 1
9385
9486
safari:
@@ -121,8 +113,4 @@ jobs:
121113
npm run test:safari -- \
122114
--jquery-migrate ${{ env.MIGRATE_VERSION }} \
123115
--jquery git --jquery git.min --jquery git.slim --jquery git.slim.min \
124-
--jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min \
125-
--jquery 3.7.1 --jquery 3.7.1.slim \
126-
--jquery 3.6.4 --jquery 3.5.1 --jquery 3.4.1 \
127-
--jquery 3.3.1 --jquery 3.2.1 --jquery 3.1.1 --jquery 3.0.0 \
128116
--retries 1

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

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

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

Lines changed: 1 addition & 1 deletion
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:

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: {

package-lock.json

Lines changed: 7 additions & 6 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
"@types/selenium-webdriver": "4.1.22",
@@ -52,7 +52,7 @@
5252
"express-body-parser-error-handler": "1.0.7",
5353
"globals": "15.3.0",
5454
"husky": "9.0.11",
55-
"jquery": "3.7.1",
55+
"jquery": "4.0.0-beta.2",
5656
"jsdom": "24.1.0",
5757
"native-promise-only": "0.8.1",
5858
"qunit": "2.21.0",

0 commit comments

Comments
 (0)