Skip to content

Conversation

@serhalp
Copy link
Member

@serhalp serhalp commented May 26, 2025

29fe1ee @netlify/functions

This was unintentionally(?) widened when porting this existing package into this monorepo.

See original: https://github.com/netlify/functions/blob/acc2879e1a9629d1e2c8acefa207ad594ef63d5e/package.json#L95.

This commit just reverts it back to what it was.

@netlify/blobs

The only package I left unchanged here is @netlify/blobs, because that's an existing public-facing package that would require a major bump and some thought to update.

Related note: I noticed we aren't testing in CI against node 14 and 16. Once this PR is merged, this will only be relevant for @netlify/blobs. If we decide we don't want to drop 14 and 16 there, we should add CI coverage just for that package somehow.

9940844 all other packages

I don't believe there's any reason to support 14 and 16 in any of these, and this would lead to many blocked dependency upgrades down the road. I assume this was just copypasta from elsewhere.

Doing this now before public launch avoids user-facing major releases across all these packages.

I might argue for dropping 18 entirely in these packages, as they're brand new packages we are launched post-node-18-EOL (Apr 30), but this may significantly reduce the users and sites that will be able to our use Vite plugin, so at the very least let's take some time to evaluate that. (A quick spot-check shows many major frameworks' latest releases still supporting some subset of 18.x versions.)

Note that Netlify CLI — an eventual consumer of some of these packages — currently requires >=18.14.0 (i.e. no problem with dropping 14 and 16 here), but should be dropping 18 entirely by the time it starts to pull these packages in (18 reached EOL a month ago and we are fine with being aggressive with these in CLI).

serhalp added 3 commits May 26, 2025 11:44
I don't believe there's any reason to support 14 and 16 in any of these, and this will
lead to many blocked dependency upgrades down the road.

Doing this now before public launch avoids user-facing major releases across all these
packages.

The only exception is `@netlify/blobs` (left unchanged here), because that's an existing
package that [would require a major
bump](https://github.com/netlify/blobs/blob/16973e4290e9d605792a3bd3774858e89eb33596/package.json#L7)
and some thought to update.

Note that Netlify CLI - an eventual consumer of some of these packages - currently
requires >=18.14.0 (so no problem with dropping 14 and 16), but should be dropping 18
entirely by the time it starts to pull these packages in (it reached EOL a month ago).
@serhalp serhalp changed the title build: fix engines.node build!: fix engines.node May 26, 2025
@serhalp serhalp marked this pull request as ready for review May 26, 2025 16:25
Comment on lines -50 to -52
- name: Install npm@7
run: npm install -g npm@7
if: ${{ matrix.node-version == '14.16.0' && !steps.release-check.outputs.IS_RELEASE }}
Copy link
Member Author

Choose a reason for hiding this comment

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

this was dead code

@serhalp serhalp requested a review from eduardoboucas May 26, 2025 18:58
@serhalp serhalp removed the request for review from eduardoboucas May 27, 2025 18:37
@serhalp serhalp requested review from a team as code owners May 27, 2025 18:37
@serhalp serhalp enabled auto-merge (squash) May 27, 2025 18:37
@serhalp serhalp merged commit 5604545 into main May 27, 2025
23 checks passed
@serhalp serhalp deleted the build/fix-node-engines branch May 27, 2025 18:54
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.

3 participants