Skip to content

Conversation

outslept
Copy link
Contributor

@outslept outslept commented Aug 2, 2025

Summary

This resolves various Node.js version-related TODOs that are now safe to fix since the minimum supported Node.js version is 18.14.0.


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

image

@outslept outslept requested a review from a team as a code owner August 2, 2025 04:33
} catch (_error) {
try {
return resolvePathFollowSymlinks(`${moduleName}/package.json`, baseDirs)
} catch (error_) {
Copy link
Contributor

Choose a reason for hiding this comment

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

After your changes, we no longer need to catch the first error, and we can rename the second caught error now that there aren't two to manage:

Suggested change
} catch (error_) {
} catch {
...
} catch (error) {
return await resolvePackageFallback(..., error)

@mrstork mrstork changed the title chore: resolve Node.js version TODOs fix: remove code supporting older versions of Node Aug 6, 2025
@outslept outslept requested a review from mrstork August 6, 2025 15:20
@mrstork mrstork merged commit d9f55d3 into netlify:main Aug 6, 2025
65 of 68 checks passed
@outslept outslept deleted the resolve-node-version-todos branch August 6, 2025 16:30
@serhalp serhalp mentioned this pull request Aug 8, 2025
This was referenced Sep 2, 2025
This was referenced Sep 24, 2025
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