-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update dependency eslint to v8.57.1 #43
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
base: main
Are you sure you want to change the base?
Conversation
fa339c8 to
d0bf342
Compare
df29248 to
3c05a5d
Compare
19fe64a to
3134ffc
Compare
f0f6358 to
9dcafb5
Compare
7283d23 to
ffdbae2
Compare
f2e42f6 to
2610c52
Compare
86582e9 to
8b10e8b
Compare
c669d7a to
9411cfd
Compare
b995e69 to
ecc01b5
Compare
6fc07d6 to
a024139
Compare
| let rejected = false; | ||
| let req; | ||
|
|
||
| if (lookup && utils.isAsyncFn(lookup)) { | ||
| lookup = callbackify$1(lookup, (entry) => { | ||
| if(utils.isString(entry)) { | ||
| entry = [entry, entry.indexOf('.') < 0 ? 6 : 4]; | ||
| } else if (!utils.isArray(entry)) { | ||
| throw new TypeError('lookup async function must return an array [ip: string, family: number]]') | ||
| } | ||
| return entry; | ||
| }); | ||
| if (lookup) { | ||
| const _lookup = callbackify$1(lookup, (value) => utils$1.isArray(value) ? value : [value]); | ||
| // hotfix to support opt.all option which is required for node 20.x | ||
| lookup = (hostname, opt, cb) => { | ||
| _lookup(hostname, opt, (err, arg0, arg1) => { | ||
| const addresses = utils$1.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)]; | ||
|
|
||
| opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: In the DNS lookup callback, a failure err is not checked before processing address arguments. This causes a TypeError when buildAddressEntry is called with undefined values, masking the original DNS error.
Severity: CRITICAL | Confidence: High
🔍 Detailed Analysis
When the DNS lookup function fails, its callback is invoked with an err object, while the address arguments arg0 and arg1 are undefined. The current code does not check for this err and proceeds to call buildAddressEntry(undefined, undefined). This triggers a TypeError: address must be a string inside the resolveFamily function, which is called by buildAddressEntry. This new error masks the original, more informative DNS error (e.g., ENOTFOUND), complicating debugging and causing the action to fail with a misleading message.
💡 Suggested Fix
In the _lookup callback, add a check for the err object. If err is not null, call the final callback cb with the error immediately and bypass the logic that processes the address arguments. For example: if (err) { return cb(err); }.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: dist/index.js#L8941-L8951
Potential issue: When the DNS `lookup` function fails, its callback is invoked with an
`err` object, while the address arguments `arg0` and `arg1` are `undefined`. The current
code does not check for this `err` and proceeds to call `buildAddressEntry(undefined,
undefined)`. This triggers a `TypeError: address must be a string` inside the
`resolveFamily` function, which is called by `buildAddressEntry`. This new error masks
the original, more informative DNS error (e.g., `ENOTFOUND`), complicating debugging and
causing the action to fail with a misleading message.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 8074440
This PR contains the following updates:
8.54.0→8.57.1Release Notes
eslint/eslint (eslint)
v8.57.1Compare Source
Bug Fixes
a19072ffix: add logic to handle fixTypes in the lintText() method (#18900) (Francesco Trotta)04c7188fix: Don't lint same file multiple times (#18899) (Francesco Trotta)87ec3c4fix: do not throw when defining a global named__defineSetter__(#18898) (Francesco Trotta)60a1267fix: Provide helpful error message for nullish configs (#18889) (Milos Djermanovic)a0dea8efix: allownamein global ignores, fix--no-ignorefor non-global (#18875) (Milos Djermanovic)3836bb4fix: do not crash on error infs.walkfilter (#18886) (Milos Djermanovic)2dec349fix: skip processor code blocks that match only universal patterns (#18880) (Milos Djermanovic)Documentation
6a5add4docs: v8.x Add EOL banner (#18744) (Amaresh S M)b034575docs: v8.x add version support page to the dropdown (#18731) (Amaresh S M)760ef7ddocs: v8.x add version support page in the side navbar (#18740) (Amaresh S M)428b7eadocs: Add Powered by Algolia label to the search (#18658) (Amaresh S M)c68c07fdocs: version selectors synchronization (#18265) (Milos Djermanovic)Build Related
35d366abuild: Support updates to previous major versions (#18870) (Milos Djermanovic)Chores
140ec45chore: upgrade @eslint/js@8.57.1 (#18913) (Milos Djermanovic)bcdfc04chore: package.json update for @eslint/js release (Jenkins)3f6ce8dchore: pin vite-plugin-commonjs@0.10.1 (#18910) (Milos Djermanovic)9f07549chore: ignore/docs/v8.xin link checker (#18660) (Milos Djermanovic)v8.57.0Compare Source
Features
1120b9bfeat: Add loadESLint() API method for v8 (#18098) (Nicholas C. Zakas)dca7d0ffeat: Enableeslint.config.mjsandeslint.config.cjs(#18066) (Nitin Kumar)Bug Fixes
2196d97fix: handle absolute file paths inFlatRuleTester(#18064) (Nitin Kumar)69dd1d1fix: Ensure config keys are printed for config errors (#18067) (Nitin Kumar)9852a31fix: deep merge behavior in flat config (#18065) (Nitin Kumar)4c7e9b0fix: allow circular references in config (#18056) (Milos Djermanovic)Documentation
84922d0docs: Show prerelease version in dropdown (#18139) (Nicholas C. Zakas)5b8c363docs: Switch to Ethical Ads (#18117) (Milos Djermanovic)77dbfd9docs: show NEXT in version selectors (#18052) (Milos Djermanovic)Chores
1813aecchore: upgrade @eslint/js@8.57.0 (#18143) (Milos Djermanovic)5c356bbchore: package.json update for @eslint/js release (Jenkins)f4a1fe2test: add more tests for ignoring files and directories (#18068) (Nitin Kumar)42c0aefci: Enable CI forv8.xbranch (#18047) (Milos Djermanovic)v8.56.0Compare Source
Features
0dd9704feat: Support custom severity when reporting unused disable directives (#17212) (Bryan Mishkin)31a7e3ffeat: fix no-restricted-properties false negatives with unknown objects (#17818) (Arka Pratim Chaudhuri)Bug Fixes
7d5e5f6fix:TypeError: fs.exists is not a functionon read-only file system (#17846) (Francesco Trotta)74739c8fix: suggestion with invalid syntax in no-promise-executor-return rule (#17812) (Bryan Mishkin)Documentation
9007719docs: update link in ways-to-extend.md (#17839) (Amel SELMANE)3a22236docs: Update README (GitHub Actions Bot)54c3ca6docs: fix migration-guide example (#17829) (Tanuj Kanti)4391b71docs: check config comments in rule examples (#17815) (Francesco Trotta)fd28363docs: remove mention about ESLint stylistic rules in readme (#17810) (Zwyx)48ed5a6docs: Update README (GitHub Actions Bot)Chores
ba6af85chore: upgrade @eslint/js@8.56.0 (#17864) (Milos Djermanovic)60a531achore: package.json update for @eslint/js release (Jenkins)ba87a06chore: update dependency markdownlint to ^0.32.0 (#17783) (renovate[bot])9271d10chore: add GitHub issue template for docs issues (#17845) (Josh Goldberg ✨)70a686bchore: Convert rule tests to FlatRuleTester (#17819) (Nicholas C. Zakas)f3a599dchore: upgrade eslint-plugin-unicorn to v49.0.0 (#17837) (唯然)905d4b7chore: upgrade eslint-plugin-eslint-plugin v5.2.1 (#17838) (唯然)4d7c3cechore: update eslint-plugin-n v16.4.0 (#17836) (唯然)fd0c60cci: unpin Node.js 21.2.0 (#17821) (Francesco Trotta)v8.55.0Compare Source
Features
8c9e6c1feat: importNamePattern option in no-restricted-imports (#17721) (Tanuj Kanti)Documentation
83ece2adocs: fix typo--rules->--rule(#17806) (OKURA Masafumi)fffca5cdocs: remove "Open in Playground" buttons for removed rules (#17791) (Francesco Trotta)a6d9442docs: fix correct/incorrect examples of rules (#17789) (Tanuj Kanti)383e999docs: update and fix examples forno-unused-vars(#17788) (Tanuj Kanti)5a8efd5docs: add specific stylistic rule for each deprecated rule (#17778) (Etienne)Chores
eb8950cchore: upgrade @eslint/js@8.55.0 (#17811) (Milos Djermanovic)93df384chore: package.json update for @eslint/js release (Jenkins)fe4b954chore: upgrade @eslint/eslintrc@2.1.4 (#17799) (Milos Djermanovic)bd8911dci: pin Node.js 21.2.0 (#17809) (Milos Djermanovic)b29a16bchore: fix severalclitests to run in the intended flat config mode (#17797) (Milos Djermanovic)de165c1chore: remove unused config-extends fixtures (#17781) (Milos Djermanovic)d4304b8chore: remove formatting/stylistic rules from new rule templates (#17780) (Francesco Trotta)21024fechore: check rule examples for syntax errors (#17718) (Francesco Trotta)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.