You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes:
* Core: Remove support for jQuery 4.x
* Core: Don't reimplement deprecated but not removed APIs
This will save space and avoid potential divergence from Core.
To minimize risk, this only handles APIs still present in jQuery 4.x.
* Attributes: Update warnings.md to not mention jQuery 4.0
* Build: Rename more `main`s to `3.x-stable`s
* Event: Reimplement APIs deprecated in jQuery 3.0/3.1
This fixes tests with 3.0/3.1 slim builds.
* Tests: Test on jQuery 3.1.1.slim in non-BrowserStack browser tests
jQuery <3.2.0 doesn't include the deprecated module in the slim build so it
makes sense to test on one of these versions in slim mode even on PRs.
* Build: Stop testing on iOS 10
As of January 2025, iOS 10 is a tier 4 device on BrowserStack:
https://www.browserstack.com/device-tiers
That leads to devices with this iOS version often not being available and
failing our tests. Remove it from the test matrix. Also, add comments explaining
the status of tests on various iOS versions, including iOS 7 that we stopped
testing on a long time ago.
* Build: Update a vulnerable dependency
* Core: Update the package.json description
Indicate this version of Migrate helps with updating jQuery to 3.x, not 3.0+.
* Docs: Link to jQuery Browser Support page in README.md
Closesgh-554
Ref gh-555
Ref jquery/jquery#5606
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Make sure you have reproduced the bug with all browser extensions and add-ons di
47
47
48
48
### Try the latest version of jQuery Migrate
49
49
50
-
Bugs in old versions of jQuery Migrate may have already been fixed. In order to avoid reporting known issues, make sure you are always testing against the [latest build](https://releases.jquery.com/git/jquery-migrate-git.js). We cannot fix bugs in older released files, if a bug has been fixed in a subsequent version of jQuery Migrate the site should upgrade.
50
+
Bugs in old versions of jQuery Migrate may have already been fixed. In order to avoid reporting known issues, make sure you are always testing against the [latest build](https://releases.jquery.com/git/jquery-migrate-3.x-git.js). We cannot fix bugs in older released files, if a bug has been fixed in a subsequent version of jQuery Migrate the site should upgrade.
51
51
52
52
### Simplify the test case
53
53
@@ -78,16 +78,16 @@ Change directory to the newly created dir `jquery-migrate/`:
78
78
$ cd jquery-migrate
79
79
```
80
80
81
-
Add the jQuery Migrate `main` as a remote (e.g. `upstream`):
81
+
Add the jQuery Migrate `3.x-stable` as a remote (e.g. `upstream`):
#### NOTE: To upgrade to jQuery 3.0, you first need version 1.12.x or 2.2.x. If you're using an older version, first upgrade to one of these versions using [jQuery Migrate 1.x](https://github.com/jquery/jquery-migrate/tree/1.x-stable#readme), to resolve any compatibility issues. For more information about the changes made in jQuery 3.0, see the [upgrade guide](https://jquery.com/upgrade-guide/3.0/) and [blog post](https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/).
4
4
@@ -11,14 +11,14 @@ That way you can spot and fix what otherwise would have been errors, until you n
11
11
12
12
The following table indicates which jQuery Migrate versions can be used with which jQuery versions:
13
13
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>|
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
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.
21
+
Each jQuery Migrate version supports the same browsers that the jQuery version used with it. See the [jQuery Browser Support page](https://jquery.com/browser-support/) for more information.
22
22
23
23
## Usage
24
24
@@ -40,7 +40,7 @@ The production build is minified and does not generate console warnings. It will
40
40
| Debugging enabled | <palign="center">✓</p> ||
41
41
| Minified || <palign="center">✓</p> |
42
42
| Latest release (*may be hotlinked if desired*) |[jquery-migrate-3.5.2.js](https://code.jquery.com/jquery-migrate-3.5.2.js)|[jquery-migrate-3.5.2.min.js](https://code.jquery.com/jquery-migrate-3.5.2.min.js)|
\***Work-in-progress build:** Although this file represents the most recent updates to the plugin, it may not have been thoroughly tested. We do not recommend using this file on production sites since it may be unstable; use the released production version instead.
@@ -50,7 +50,7 @@ The production build is minified and does not generate console warnings. It will
50
50
51
51
The development version of the plugin displays warnings in the browser console. Older browsers such as IE9 doesn't support the console interface. No messages will be generated unless you include a debugging library such as [Firebug Lite](https://getfirebug.com/firebuglite) before including the jQuery Migrate plugin. Developers can also inspect the `jQuery.migrateWarnings` array to see what error messages have been generated.
52
52
53
-
All warnings generated by this plugin start with the string "JQMIGRATE". A list of the warnings you may see are in [warnings.md](https://github.com/jquery/jquery-migrate/blob/main/warnings.md).
53
+
All warnings generated by this plugin start with the string "JQMIGRATE". A list of the warnings you may see are in [warnings.md](https://github.com/jquery/jquery-migrate/blob/3.x-stable/warnings.md).
54
54
55
55
56
56
## Migrate Plugin API
@@ -69,7 +69,7 @@ This plugin adds some properties to the `jQuery` object that can be used to prog
69
69
70
70
`jQuery.migrateDeduplicateWarnings`: By default, Migrate only gives a specific warning once. If you set this property to `false` it will give a warning for every occurrence each time it happens. Note that this can generate a lot of output, for example when a warning occurs in a loop.
71
71
72
-
`jQuery.migrateDisablePatches`: Disables patches by their codes. You can find a code for each patch in square brackets in [warnings.md](https://github.com/jquery/jquery-migrate/blob/main/warnings.md). A limited number of warnings doesn't have codes defined and cannot be disabled. These are mostly setup issues like using an incorrect version of jQuery or loading Migrate multiple times.
72
+
`jQuery.migrateDisablePatches`: Disables patches by their codes. You can find a code for each patch in square brackets in [warnings.md](https://github.com/jquery/jquery-migrate/blob/3.x-stable/warnings.md). A limited number of warnings doesn't have codes defined and cannot be disabled. These are mostly setup issues like using an incorrect version of jQuery or loading Migrate multiple times.
73
73
74
74
`jQuery.migrateDisablePatches`: Disables patches by their codes.
0 commit comments