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

feat(upgrade): print info links for Deno 2 RC releases #25225

Merged
merged 13 commits into from
Aug 30, 2024

Conversation

bartlomieju
Copy link
Member

In addition to printing a blog post information (if it's available), this will also
print a link to migration guide and the bug tracker.

@bartlomieju
Copy link
Member Author

Waiting on decision what's the blog post link before landing this one.

@bartlomieju bartlomieju added this to the 2.0.0-rc.1 milestone Aug 26, 2024
cli/tools/upgrade.rs Outdated Show resolved Hide resolved
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
&& new_semver.patch == 0
&& new_semver.pre.first() == Some(&"rc".to_string());

if is_deno_2_rc {
Copy link
Member

Choose a reason for hiding this comment

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

Probably in general when new_semver.major == 2 && (current_semver.pre.first() == Some(&"rc".to_string() || current_semver.major == 1)

That way 1.0 -> 2.0 (stable) upgrades will get this warning too.

Copy link
Member Author

Choose a reason for hiding this comment

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

I updated it to that migration guide is printed for upgrading to Deno 2 RC, or when switching from Deno 1 to Deno 2.
I kept the remaining logic the same.

Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

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

LGTM

@bartlomieju bartlomieju merged commit 768132b into denoland:main Aug 30, 2024
17 checks passed
@bartlomieju bartlomieju deleted the deno_upgrade_prompt branch August 30, 2024 00:32
lucacasonato pushed a commit that referenced this pull request Sep 4, 2024
In addition to printing a blog post information (if it's available),
this will also print a link to migration guide and the bug tracker.

---------

Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
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.

4 participants