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 3.x
* Core: Remove patches for breaking changes in jQuery 3.0.0 or older
The `self-closed-tags` patch remains, despite being a breaking change in jQuery
3.5.0, not 4.0.0. There are a few reasons for that:
1. It's an exception that a breaking change arrived in a non-major version bump.
Some people may be upgrading from jQuery 3.4.0 or older and it's good to
make it work for them.
2. The patch is disabled by default, so the concern of people on newer jQuery
3.x upgrading to jQuery 4.x with Migrate 4.x getting patches restoring
behavior from an version older than the pre-upgrade one does not exist.
3. This was a pretty big break, it may help people update if we still support
it.
* Core: Don't reimplement deprecated but not removed APIs
This will save space and avoid potential divergence from Core.
Also, simplify the `deferred.pipe` patch.
* Core: Use `console.info` for deprecations without removals.
Also:
1. Group `warnings.md` by this type.
2. Rename `jQuery.migrateWarnings` to `jQuery.migrateMessages`.
3. Rename `jQuery.migrateDeduplicateWarnings` to
`jQuery.migrateDeduplicateMessages`.
4. Adding "info" versions of some internal APIs.
* Core: Update the package.json description
Indicate this version of Migrate helps with updating jQuery to 4.x, not 3.0+.
* Docs: Link to jQuery Browser Support page in README.md
Also, remove info about poor console support in IE 9; this version of Migrate
doesn't support it anyway.
Fixesgh-472Closesgh-555
Copy file name to clipboardexpand all lines: README.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -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
@@ -48,7 +48,7 @@ The production build is minified and does not generate console warnings. It will
48
48
49
49
## Debugging
50
50
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.
51
+
The development version of the plugin displays warnings in the browser console. Developers can also inspect the `jQuery.migrateMessages` array to see what error messages have been generated.
52
52
53
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).
54
54
@@ -57,17 +57,17 @@ All warnings generated by this plugin start with the string "JQMIGRATE". A list
57
57
58
58
This plugin adds some properties to the `jQuery` object that can be used to programmatically control and examine its behavior:
59
59
60
-
`jQuery.migrateWarnings`: This property is an array of string warning messages that have been generated by the code on the page, in the order they were generated. Messages appear in the array only once, even if the condition has occurred multiple times, unless `jQuery.migrateReset()` is called.
60
+
`jQuery.migrateMessages`: This property is an array of string warning messages that have been generated by the code on the page, in the order they were generated. Messages appear in the array only once, even if the condition has occurred multiple times, unless `jQuery.migrateReset()` is called.
61
61
62
-
`jQuery.migrateMute`: Set this property to `true` to prevent console warnings from being generated in the development version. The `jQuery.migrateWarnings` array is still maintained when this property is set, which allows programmatic inspection without console output.
62
+
`jQuery.migrateMute`: Set this property to `true` to prevent console warnings from being generated in the development version. The `jQuery.migrateMessages` array is still maintained when this property is set, which allows programmatic inspection without console output.
63
63
64
64
`jQuery.migrateTrace`: Set this property to `false` if you want warnings but do not want stack traces to appear on the console.
65
65
66
-
`jQuery.migrateReset()`: This method clears the `jQuery.migrateWarnings` array and "forgets" the list of messages that have been seen already.
66
+
`jQuery.migrateReset()`: This method clears the `jQuery.migrateMessages` array and "forgets" the list of messages that have been seen already.
67
67
68
68
`jQuery.migrateVersion`: This string property indicates the version of Migrate in use.
69
69
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.
70
+
`jQuery.migrateDeduplicateMessages`: 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
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.
0 commit comments