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

[cli] Allows warnings for ls --update-required to show for deprecated versions #12856

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

trek
Copy link
Contributor

@trek trek commented Jan 14, 2025

Currently we only show a warning if a runtime version's discontinueDate has passed, but customers should be able to run this before that date to see what they need to change. Setting the date for the soon-to-be removed node@16 to the date from the changelog

Copy link

changeset-bot bot commented Jan 14, 2025

🦋 Changeset detected

Latest commit: 0ee456f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@vercel/build-utils Patch
vercel Minor
@vercel/client Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/node Patch
@vercel/static-build Patch
@vercel-internals/types Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

nodeVersion.discontinueDate &&
nodeVersion.discontinueDate.valueOf() > Date.now()
nodeVersion.deprecationDate &&
nodeVersion.deprecationDate.valueOf() > Date.now()
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (blocking): check both dates

I think we want to check for either date being in the past. Or, we should add deprecationDate to all currently discontinued versions.

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