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

Build: Add jtr-based tests in GitHub Actions, migrate to ESLint flat config #247

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

mgol
Copy link
Member

@mgol mgol commented Mar 13, 2025

Changes:

  • Migrate from Karma to jquery-test-runner
  • Add tests on real browsers
  • Run tests on GitHub Actions
  • Migrate ESLint from v7 to v9 with a flat config
  • Switch from UglifyJS to SWC, enforce ES 5
  • Add .editorconfig & .gitattributes files
  • Update .gitignore to include more patterns from jQuery Core

I'm considering further changes for the future, like:

  • Not committing the minified file anymore, only for tags
  • Aligning browser support with jQuery 4
  • Droping lots of legacy workarounds

We could then release such a smaller version as 4.0.0. I just wanted to add some real CI on real browsers first.

I know we discussed potentially deprecating this plugin and just telling people to use the wheel event directly. The problem is the wheel event may report deltas in pixels, lines or pages. Chrome may report pixels or pages, Firefox can report all three depending on input devices. This plugin can be useful to get some pixel-based normalization; as long as browsers don't provide that out of the box, I see some value in this plugin. There are some discussions about always exposing pixels, perhaps in addition to other modes, in w3c/uievents#181, but so far the discussion has stalled.

That said, I had a look at jQuery UI and it only cares about the wheel direction and only in one place so I don't see why UI needs to depend on this plugin anymore.

@mgol mgol added Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels Mar 13, 2025
@mgol mgol self-assigned this Mar 13, 2025
@mgol mgol requested a review from timmywil March 13, 2025 13:47
@timmywil
Copy link
Member

Could you add a .editorconfig as well?

…config

Changes:
* Migrate from Karma to jquery-test-runner
* Add tests on real browsers
* Run tests on GitHub Actions
* Migrate ESLint from v7 to v9 with a flat config
* Switch from UglifyJS to SWC, enforce ES 5
* Add `.editorconfig` & `.gitattributes` files
* Update `.gitignore` to include more patterns from jQuery Core
@mgol
Copy link
Member Author

mgol commented Mar 13, 2025

Could you add a .editorconfig as well?

@timmywil done; I also added .gitattributes from Core and updated .gitignore to match it better.

@mgol mgol added this to the 3.2.0 milestone Mar 13, 2025
@mgol mgol removed Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels Mar 13, 2025
@mgol mgol merged commit 6ba9bb2 into jquery:main Mar 13, 2025
1 check passed
@mgol mgol deleted the refactor branch March 13, 2025 15:54
mgol added a commit that referenced this pull request Mar 13, 2025
…config

Changes:
* Migrate from Karma to jquery-test-runner
* Add tests on real browsers
* Run tests on GitHub Actions
* Migrate ESLint from v7 to v9 with a flat config
* Switch from UglifyJS to SWC, enforce ES 5
* Add `.editorconfig` & `.gitattributes` files
* Update `.gitignore` to include more patterns from jQuery Core

Closes gh-247
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants