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
PR #1145 marked all positional selectors as deprecated & removed their usage from API pages for non-deprecated APIs. The only exceptions are :even & :odd selectors as there are no tiny equivalents in jQuery APIs.
We could define an .even()/.odd() API. This is the implementation that adds +25 bytes: mgol/jquery@f454097
That said, such an API would be jQuery 3.5.0+ (unless Migrate polyfills it for earlier versions as well) only and we'd have to release that 3.5.0 before 4.0.0. Something to consider.
If that's decided against then we need to rewrite existing examples using :odd/:even to use something else.
I think I'm slightly in favor of introducing these two new methods as that'd close the gap from POS selectors & it'd simplify the migration. But let's talk about it. cc @jquery/core
The text was updated successfully, but these errors were encountered:
PR #1145 marked all positional selectors as deprecated & removed their usage from API pages for non-deprecated APIs. The only exceptions are
:even
&:odd
selectors as there are no tiny equivalents in jQuery APIs.We could define an
.even()
/.odd()
API. This is the implementation that adds +25 bytes: mgol/jquery@f454097That said, such an API would be jQuery
3.5.0+
(unless Migrate polyfills it for earlier versions as well) only and we'd have to release that3.5.0
before4.0.0
. Something to consider.If that's decided against then we need to rewrite existing examples using
:odd
/:even
to use something else.I think I'm slightly in favor of introducing these two new methods as that'd close the gap from POS selectors & it'd simplify the migration. But let's talk about it. cc @jquery/core
The text was updated successfully, but these errors were encountered: