Skip to content
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

Core: Drop support for old jQuery or old browsers #2249

Merged
merged 9 commits into from May 15, 2024

Conversation

mgol
Copy link
Member

@mgol mgol commented May 11, 2024

Changes:

  • Drop support for jQuerys different than the latest for each major (also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4)
  • Drop support for IE & some other browsers
  • Sortable: Rename storedStylesheet to _storedStylesheet
  • Drop jquery-patch.js. Avoid patching jQuery. Instead:
    • use CSS.escape instead of jQuery.escapeSelector
    • use .filter() with a proper handler instead of .even()
  • Remove the deprecated ui/core.js file
  • Remove unused build/themes

@mgol mgol added this to the 1.14.0 milestone May 11, 2024
@mgol mgol requested a review from fnagel May 11, 2024 22:39
@mgol mgol self-assigned this May 11, 2024
@mgol mgol force-pushed the drop-old-browsers-jquery branch from eaa62e9 to a9aa0cd Compare May 11, 2024 23:22
@mgol mgol requested a review from timmywil May 13, 2024 16:18
ui/jquery-patch.js Outdated Show resolved Hide resolved
@mgol mgol force-pushed the drop-old-browsers-jquery branch 2 times, most recently from ea17854 to 01162fa Compare May 13, 2024 17:07
@mgol mgol requested a review from timmywil May 13, 2024 17:07
@mgol mgol force-pushed the drop-old-browsers-jquery branch 3 times, most recently from 8f53949 to 7f8d411 Compare May 13, 2024 22:45
<script src="../../ui/core.js"></script>
<script src="../../ui/widget.js"></script>
<script src="../../ui/mouse.js"></script>
<script src="../../ui/slider.js"></script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why doesn't this need to load JS anymore?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does still load JS. This was the old way of doing it that also included loading the deprecated core.js file that this PR removes.

This template actually used both ways of loading JS; it looks like a migration oversight. I checked that the demo still works fine after these removals.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending my question

mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4.

Closes jquerygh-2249
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
This follows the naming strategy for other internal properties.

Ref jquerygh-2249
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
Avoid relying on jQuery patches. Instead:
* use `CSS.escape` instead of `jQuery.escapeSelector`
* use `.filter()` with a proper handler instead of `.even()`

Keep `jquery-patch.js` for backwards compatibility, though.

Also, add tests for jquery-patch.

Ref jquerygh-2249
@mgol mgol force-pushed the drop-old-browsers-jquery branch from 7f8d411 to 837f62e Compare May 14, 2024 22:27
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
Also, fix checkboxradio visual tests.

Ref jquerygh-2249
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
mgol added a commit to mgol/jquery-ui that referenced this pull request May 14, 2024
@mgol mgol force-pushed the drop-old-browsers-jquery branch from 837f62e to ba4b0dc Compare May 14, 2024 22:34
@mgol mgol removed the Needs review label May 14, 2024
mgol added 9 commits May 15, 2024 00:38
Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4.

Closes jquerygh-2249
This follows the naming strategy for other internal properties.

Ref jquerygh-2249
Avoid relying on jQuery patches. Instead:
* use `CSS.escape` instead of `jQuery.escapeSelector`
* use `.filter()` with a proper handler instead of `.even()`

Keep `jquery-patch.js` for backwards compatibility, though.

Also, add tests for jquery-patch.

Ref jquerygh-2249
Also, fix checkboxradio visual tests.

Ref jquerygh-2249
@mgol mgol force-pushed the drop-old-browsers-jquery branch from ba4b0dc to 5f615c2 Compare May 14, 2024 22:39
@mgol mgol closed this in daa6fb5 May 15, 2024
@mgol mgol merged commit 5f615c2 into jquery:main May 15, 2024
21 checks passed
@mgol mgol deleted the drop-old-browsers-jquery branch May 15, 2024 12:10
@mgol
Copy link
Member Author

mgol commented May 15, 2024

Landed in daa6fb5...5f615c2.

Copy link
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 by reading

<script src="../../ui/core.js"></script>
<script src="../../ui/widget.js"></script>
<script src="../../ui/mouse.js"></script>
<script src="../../ui/slider.js"></script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants