8000 Core: Prepare for Migrate 4.0.0 by mgol · Pull Request #555 · jquery/jquery-migrate · GitHub
[go: up one dir, main page]

Skip to content

Core: Prepare for Migrate 4.0.0 #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Core: Remove support for jQuery 3.x
  • Loading branch information
mgol committed Feb 2, 2025
commit e430322ba8c34b8ce56caf5b75c9586ab173afb7
84 changes: 0 additions & 84 deletions .github/workflows/browserstack-3.x.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Browserstack (Core git)
name: Browserstack

on:
push:
Expand Down Expand Up @@ -63,6 +63,6 @@ jobs:

- name: Test
run: |
npm run test:unit -- -v -c jtr-git.yml \
npm run test:unit -- -v -c jtr-ci.yml \
--browserstack "${{ matrix.BROWSER }}" \
--run-id ${{ github.run_id }} \
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ That way you can spot and fix what otherwise would have been errors, until you n

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

| jQuery version | jQuery Migrate version |
|----------------|-------------------------|
| 1.x | 1.x |
| 2.x | 1.x |
| 3.x | 3.x / 4.x<sup>[1]</sup> |
| 4.x | 3.x / 4.x<sup>[1]</sup> |

[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.
| jQuery version | jQuery Migrate version |
|----------------|------------------------|
| 1.x | 1.x |
| 2.x | 1.x |
| 3.x | 3.x |
| 4.x | 4.x |

Each jQuery Migrate version supports the same browsers that the jQuery version used with it.

## Usage

Expand Down
11 changes: 1 addition & 10 deletions build/tasks/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,10 @@ export async function minify( { dir, filename, version } ) {
{
compress: {
hoist_funs: false,
loops: false,

// Support: IE <11
// typeofs transformation is unsafe for IE9-10
// See https://github.com/mishoo/UglifyJS2/issues/2198
typeofs: false
loops: false
},
output: {
ascii_only: true,

// Support: Android 4.0 only, IE 9 only
// This is in lieu of setting ie for all of mangle, compress, and output
ie8: true,
preamble: banner
},
sourceMap: {
Expand Down
30 changes: 0 additions & 30 deletions jtr-3.x.yml

This file was deleted.

2 changes: 2 additions & 0 deletions jtr-git.yml → jtr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ runs:
- git.min
- git.slim
- git.slim.min
- 4.0.0-beta.2
- 4.0.0-beta.2.slim
plugin:
- dev
- min
Expand Down
15 changes: 2 additions & 13 deletions jtr-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,7 @@ flags:
- git.min
- git.slim
- git.slim.min
- 3.x-git
- 3.x-git.min
- 3.x-git.slim
- 3.x-git.slim.min
- 3.7.1
- 3.7.1.slim
- 3.6.4
- 3.5.1
- 3.4.1
- 3.3.1
- 3.2.1
- 3.1.1
- 3.0.0
- 4.0.0-beta.2
- 4.0.0-beta.2.slim

retries: 1
20 changes: 11 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test": "npm run test:node_smoke_tests && npm run test:browser"
},
"peerDependencies": {
"jquery": ">=3 <4"
"jquery": ">=4 <5"
},
"devDependencies": {
"chalk": "5.4.1",
Expand All @@ -45,7 +45,7 @@
"eslint-plugin-import": "2.29.1",
"globals": "15.3.0",
"husky": "9.0.11",
"jquery": "3.7.1",
"jquery": "4.0.0-beta.2",
"jquery-test-runner": "0.2.1",
"jsdom": "24.1.0",
"native-promise-only": "0.8.1",
Expand Down
Loading
0