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
Copy file name to clipboardExpand all lines: warnings.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ To allow developers to identify and fix compatibility issues when migrating olde
8
8
9
9
The production (compressed) version of the plugin does not generate warnings. To continue using jQuery code that has compatibility issues without making any changes and without console messages, simply include the production version in the file rather than the development version. See the [README](README.md) for download instructions.
10
10
11
-
All messages generated by this plugin start with the text "JQMIGRATE" for easy identification. The warning messages, causes, and remediation instructions are listed below.
11
+
All messages generated by this plugin start with the text "JQMIGRATE" for easy identification. The warning messages, causes, and remediation instructions are listed below. Items listed as **deprecated and removed** must be changed before the code will work properly without the Migrate plugin. Items listed as only **deprecated** are still supported by the current version but no longer considered a good practice, and may be removed in the future.
12
12
13
13
### JQMIGRATE: Migrate is installed, version X
14
14
### JQMIGRATE: Migrate is installed with logging active, version X
@@ -67,13 +67,13 @@ This is _not_ a warning, but a console log message the plugin shows when it firs
67
67
68
68
**Solution**: In most cases it is sufficient to change all occurrences of `.pipe()` to `.then()`. Ensure that you aren't relying on context/state propagation (e.g., using `this`) or synchronous callback invocation, which were dropped from `.then()` for Promises/A+ interoperability as of jQuery 3.0.
69
69
70
-
### JQMIGRATE: jQuery.fn.andSelf() replaced by jQuery.fn.addBack()
70
+
### JQMIGRATE: jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()
71
71
72
72
**Cause**: The `.andSelf()` method has been renamed to `.addBack()` as of jQuery 1.9 to better reflect its purpose of adding back the previous set of results. The old alias was removed in jQuery 3.0.
73
73
74
74
**Solution**: Replace any use of `.andSelf()` with `.addBack()`.
75
75
76
-
### JQMIGRATE: jQuery.fn.size() is deprecated; use the .length property
76
+
### JQMIGRATE: jQuery.fn.size() is deprecated and removed, use the .length property
77
77
78
78
**Cause**: The `.size()` method returns the number of elements in the current jQuery object, but duplicates the more-efficient `.length` property which provides the same functionality. As of jQuery 1.9 the `.length` property is the preferred way to retrieve this value. jQuery 3.0 no longer contains the `.size()` method.
79
79
@@ -167,8 +167,8 @@ See jQuery-ui [commit](https://github.com/jquery/jquery-ui/commit/c0093b599fcd58
167
167
168
168
**Solution**: Replace all uses of `jQuery.unique` with `jQuery.uniqueSort` which is the same function with a better name.
169
169
170
-
### JQMIGRATE: jQuery.expr[':'] is jQuery.expr.pseudos
171
-
### JQMIGRATE: jQuery.expr.filters is now jQuery.expr.pseudos
170
+
### JQMIGRATE: jQuery.expr[':'] is deprecated, use jQuery.expr.pseudos
171
+
### JQMIGRATE: jQuery.expr.filters is deprecated, use jQuery.expr.pseudos
172
172
173
173
**Cause:** The standard way to add new custom selectors through jQuery is `jQuery.expr.pseudos`. These two other aliases are deprecated, although they still work as of jQuery 3.0.
0 commit comments