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

Bump xo from 0.56.0 to 0.57.0 #2951

Open
wants to merge 2 commits into
base: development-v6
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 10, 2024

Bumps xo from 0.56.0 to 0.57.0.

Release notes

Sourced from xo's releases.

v0.57.0

Breaking

  • Require Node.js 18 3b9d372

New rules

xojs/xo@v0.56.0...v0.57.0

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Feb 10, 2024
@dependabot dependabot bot requested a review from a team February 10, 2024 10:43
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/development-v6/xo-0.57.0 branch from 5035e8e to f4210bc Compare February 10, 2024 11:51
Bumps [xo](https://github.com/xojs/xo) from 0.56.0 to 0.57.0.
- [Release notes](https://github.com/xojs/xo/releases)
- [Commits](xojs/xo@v0.56.0...v0.57.0)

---
updated-dependencies:
- dependency-name: xo
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/development-v6/xo-0.57.0 branch from f4210bc to 0214785 Compare February 10, 2024 11:52
@yubiuser
Copy link
Member

It's failing here:

https://eslint.org/docs/latest/rules/prefer-object-has-own
https://eslint.org/docs/latest/rules/logical-assignment-operators

I kept the first, but disabled the second because I think it makes the code much harder to read (esp. if it is enforced on if statements)

Signed-off-by: Christian König <ckoenig@posteo.de>
@yubiuser
Copy link
Member

Re-requesting review due to the rule change.

Copy link
Member

@DL6ER DL6ER left a comment

Choose a reason for hiding this comment

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

I'm not sure this is a good change: Major browsers did not support the replacement in 2021/22 (Chrome as of 93 = August 2021, Firefox as of 92 = September 2021, Safari as of 15.4 = March 2022).

Yes, ancient browsers is not what we really want to support but I'm wondering if this would needlessly kill support especially for mobile devices that stopped receiving updates?

Object.hasOwn()
Screenshot from 2024-02-11 10-21-03

Object.hasOwnProperty()
Screenshot from 2024-02-11 10-21-32


I think this deserves some extra discussion, also whether we may want to officially define the minimum version we expect to work and use something like browser-detect to show a warning on the web interface in case we assume the browser is to old. This to avoid users simply seeing some features (or the entire site) broken without getting a clue that it is a simply my-browser-is-too-old issue.

@yubiuser
Copy link
Member

Interestingly, eslint-plugin-compat seems not to detect this property. I run npm xo on this branch but, included ie 11 and ff 91 in browserslist, but it did not complain.

  "browserslist": [
    "defaults",
    "ie 11",
    "firefox 91"
  ],
/workspaces/web $ npm run xo

> Pi-hole web interface@1.0.0 xo
> xo


  scripts/pi-hole/js/charts.js:122:22
  ⚠  122:22  Function has a complexity of 26. Maximum allowed is 20.               complexity

  scripts/pi-hole/js/ip-address-sorting.js:14:21
  ⚠   14:21  Method ip-address-pre has a complexity of 23. Maximum allowed is 20.  complexity

  scripts/pi-hole/js/search.js:43:11
  ⚠   43:11  Function has a complexity of 24. Maximum allowed is 20.               complexity

  scripts/pi-hole/js/settings-advanced.js:27:1
  ⚠   27:1   Function generateRow has a complexity of 26. Maximum allowed is 20.   complexity

  scripts/pi-hole/js/gravity.js:34:14
  ✖   34:14  ReadableStream is not supported in IE 11                              compat/compat
  ✖   49:28  TextDecoder.decode() is not supported in IE 11                        compat/compat
  ✖   49:28  TextDecoder is not supported in IE 11                                 compat/compat

  scripts/pi-hole/js/debug.js:39:16
  ✖   39:16  EventSource is not supported in IE 11                                 compat/compat

  scripts/pi-hole/js/settings-system.js:120:28
  ✖  120:28  Object.entries() is not supported in IE 11                            compat/compat

  scripts/pi-hole/js/utils.js:542:13
  ✖  542:13  String.fromCodePoint() is not supported in IE 11                      compat/compat
/workspaces/web $ npx browserslist
and_chr 121
and_ff 122
and_qq 13.1
and_uc 15.5
android 121
chrome 121
chrome 120
chrome 119
chrome 109
edge 121
edge 120
firefox 122
firefox 121
firefox 115
firefox 91
ie 11
ios_saf 17.3
ios_saf 17.2
ios_saf 17.1
ios_saf 16.6-16.7
ios_saf 16.3
ios_saf 16.1
ios_saf 15.6-15.8
kaios 3.0-3.1
kaios 2.5
op_mini all
op_mob 73
opera 106
opera 105
safari 17.3
safari 17.2
safari 17.1
safari 16.6
samsung 23
samsung 22

@yubiuser
Copy link
Member

We might include last 3 years into our browserslist
https://github.com/browserslist/browserslist?tab=readme-ov-file#full-list

Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 9, 2024

A newer version of xo exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants