Skip to content

Main v1.39.0#174

Merged
Dargon789 merged 153 commits intochangeset-release/master-v1.39.0from
main-v1.39.0
Mar 2, 2026
Merged

Main v1.39.0#174
Dargon789 merged 153 commits intochangeset-release/master-v1.39.0from
main-v1.39.0

Conversation

@Dargon789
Copy link
Owner

No description provided.

nzhl and others added 30 commits November 18, 2022 01:11
Because GitHub actions approval button is missing
This reverts commit f5f2ca2.
we can revert the yarn changes and do it in a different PR
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Dargon789 and others added 16 commits March 2, 2026 05:30
* feat: support to install the latest version

* chore: test & fmt & clippy

* docs: update command docs

* docs: update command docs

* Create warm-rice-appear.md

* Update change set to be a minor release

As this is a new feature

* chore: update workflow to install pnpm

* Remove `feat:` from changeset

Because GitHub actions approval button is missing

* run pnpm like other tasks

* Revert "run pnpm like other tasks"

This reverts commit f5f2ca2.
we can revert the yarn changes and do it in a different PR

* revert the changes in .github/workflows

* feat: add remote version sorting and filtering

* use `UserVersion` for filtering

* add additional lts filter

* refactor: use `Vec::retain` instead of filtering and collecting

* fix docstring for sort option

* change docstring for filter argument

* refactor vec filtering

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>

* refactor to use `sort_by_key` and `reverse`

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>

* add latest flag

* make filter an option as well

* move sort into command as it is presentational

* fix getting latest version

* refactors

* update docs/commands.md

* sort upon installation

* fix clippy

* don't mention rust structs in the cli docs

* test more stuff in archiving

* fnm env --global: considering if this is a good idea

technically i think that i can just mutate the 'default' alias instead. because now that i think about it,
it makes 0 sense to set current to 'default' every time a new shell is opened. so current _is_ default.

* chore(deps): update rust crate embed-resource to v2.5.2

* fix(deps): update rust crate tar to v0.4.44

* fix(deps): update rust crate thiserror to v1.0.69

* chore(deps): update clap-rs

* chore(deps): update rust crate chrono to v0.4.44

* chore(deps): update all dev dependencies

---------

Co-authored-by: Fred <nzhlfred@gmail.com>
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…dates (#146)

Bumps the npm_and_yarn group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@babel/helpers](https://github.com/babel/babel/tree/HEAD/packages/babel-helpers) | `7.26.0` | `7.28.6` |
| [brace-expansion](https://github.com/juliangruber/brace-expansion) | `1.1.11` | `1.1.12` |
| [js-yaml](https://github.com/nodeca/js-yaml) | `3.14.1` | `3.14.2` |
| [lodash](https://github.com/lodash/lodash) | `4.17.21` | `4.17.23` |
| [minimatch](https://github.com/isaacs/minimatch) | `3.1.2` | `3.1.5` |



Updates `@babel/helpers` from 7.26.0 to 7.28.6
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.28.6/packages/babel-helpers)

Updates `brace-expansion` from 1.1.11 to 1.1.12
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@1.1.11...v1.1.12)

Updates `js-yaml` from 3.14.1 to 3.14.2
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](nodeca/js-yaml@3.14.1...3.14.2)

Updates `lodash` from 4.17.21 to 4.17.23
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.21...4.17.23)

Updates `minimatch` from 3.1.2 to 3.1.5
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](isaacs/minimatch@v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: "@babel/helpers"
  dependency-version: 7.28.6
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: js-yaml
  dependency-version: 3.14.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
* Create cyan-eagles-drop.md

Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>

* Update .changeset/cyan-eagles-drop.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>

---------

Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fnm Ready Ready Preview, Comment Mar 2, 2026 6:37am

@snyk-io
Copy link

snyk-io bot commented Mar 2, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
🔚 Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Sorry @Dargon789, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces significant updates across the project, focusing on core dependency upgrades, refining command-line interface functionalities, and laying the groundwork for a new project website. Key changes include a new global Node.js version management option, more robust symlink operations, and a simplification of the installation process. These changes aim to improve the tool's reliability, maintainability, and user experience.

Highlights

  • Major Rust Dependency Updates: Numerous Rust crates, including chrono, clap, duct, libc, os_pipe, shared_child, syn, tar, and thiserror, were upgraded to their latest versions, enhancing stability and performance.
  • New Global Version Management for fnm env: The fnm env command now includes a --global option, allowing users to configure a single Node.js version to be used globally across all shell sessions, providing an alternative to the per-shell multishell solution.
  • Robust Symlink Handling: A new two_phase_symlink mechanism was introduced to safely create and replace symlinks, preventing potential race conditions during Node.js version switching in fnm env and fnm use commands.
  • Simplified fnm install Command: The install command has been streamlined by removing the --progress and --use flags, and its internal logic for executing hooks, enabling corepack, and tagging aliases has been removed, focusing its responsibility solely on installing Node.js versions.
  • Enhanced Remote Version Listing: The fnm list-remote command now supports improved sorting and filtering of remote Node.js versions, and its internal error handling for remote listing has been simplified.
  • New Project Website Infrastructure: A new site directory was added, setting up a Next.js application with associated configuration files, indicating the development of a new project website or documentation portal.
  • Semver Crate Migration: The project migrated its internal version parsing and handling from the node_semver crate to the standard semver crate, improving consistency and reducing dependency complexity.
Changelog
  • .changeset/fifty-emus-type.md
    • Added remote version sorting and filtering capabilities.
  • .changeset/moody-fans-shake.md
    • Updated non-major Rust dependencies.
  • .changeset/tame-bobcats-mate.md
    • Added support to install the latest Node.js version.
  • .changeset/warm-rice-appear.md
    • Implemented support for fnm install --latest to install the latest Node.js version.
  • .changeset/wet-donkeys-jump.md
    • Updated development dependencies.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/rust.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@Dargon789
Copy link
Owner Author

@Mergifyio update

@Dargon789
Copy link
Owner Author

@Mergifyio refresh

@mergify
Copy link

mergify bot commented Mar 2, 2026

update

☑️ Nothing to do, the required conditions are not met

Details
  • #commits-behind > 0 [📌 update requirement]
  • -closed [📌 update requirement]
  • -conflict [📌 update requirement]
  • queue-position = -1 [📌 update requirement]

@mergify
Copy link

mergify bot commented Mar 2, 2026

refresh

✅ Pull request refreshed

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces dependency updates, refactoring, and new features, such as a new website and the --global flag for the env command. However, a medium-severity vulnerability was identified in the zip extraction logic, where file permissions from the archive are applied without respecting the system's umask, potentially leading to insecure file permissions in shared environments. Additionally, critical issues include the removal of version sorting in remote_node_index.rs which could affect "latest" version resolution, flawed logic for the --latest flag in ls-remote, and a significant feature regression due to the removal of SemverRange support.

I am having trouble creating individual review comments. Click here to see my feedback.

src/remote_node_index.rs (77-79)

critical

The list function no longer sorts the returned versions. The previous implementation sorted the versions, which is crucial because the remote index.json is not guaranteed to be sorted. Other parts of the application, such as the install command's logic for the latest version, rely on this list being sorted to correctly identify the latest version. Without sorting, it might pick an incorrect version. Please reintroduce the sorting to prevent this bug.

    let mut value: Vec<IndexedNodeVersion> = resp.json()?;
    value.sort_by_key(|v| v.version.clone());
    Ok(value)

src/user_version.rs (5-9)

critical

The SemverRange variant has been removed from the UserVersion enum. This removes support for specifying versions using semver ranges (e.g., ^14.0.0, ~12.2.1), which is a significant feature regression. Was this removal intentional? If not, it should be restored to maintain backward compatibility and feature parity. The semver crate provides VersionReq for this purpose, which could replace the node_semver::Range.

src/commands/ls_remote.rs (59-66)

high

The current logic for handling the --latest flag is incorrect. It sorts the versions in ascending order and then truncates the list to the first element, which results in returning the oldest matching version, not the latest. To fix this, you should sort the versions, then reverse the order if sorting descending, and only then truncate the list if --latest is specified.

        all_versions.sort_by_key(|v| v.version.clone());
        if let SortingMethod::Descending = self.sort {
            all_versions.reverse();
        }
        if self.latest {
            all_versions.truncate(1);
        }

docs/commands.md (431)

medium

The help section for the help command is empty. It would be beneficial to include a brief description of what the command does, similar to the other commands in this document.

Print this message or the help of the given subcommand(s)

site/app/page.tsx (3-14)

medium

The component uses inline styles. While this is acceptable for a very simple component, it's generally better to use CSS Modules or a CSS-in-JS library for styling in Next.js/React applications. This improves maintainability, allows for pseudo-classes and media queries, and avoids mixing styling concerns with component logic.

src/archive/tar.rs (43)

medium

The dbg! macro is used here for debugging. It should be removed from the test code before merging to avoid polluting test output. This also applies to line 62.

src/archive/tar.rs (62)

medium

The dbg! macro is used here for debugging. It should be removed from the test code before merging to avoid polluting test output.

@Dargon789 Dargon789 merged commit b8ed8b2 into changeset-release/master-v1.39.0 Mar 2, 2026
9 of 13 checks passed
@Dargon789 Dargon789 deleted the main-v1.39.0 branch March 2, 2026 06:49
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