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

Improve Node.js version management with semver library #1

Open
nerdchanii opened this issue Apr 24, 2023 · 0 comments
Open

Improve Node.js version management with semver library #1

nerdchanii opened this issue Apr 24, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request refactor

Comments

@nerdchanii
Copy link
Owner

Description

  • Improve version number management

Note

The current logic for managing the version field in the package.json file is unstable and error-prone. The logic struggles to guarantee the integrity of the version number, which makes it difficult to ensure the reliability of downloading tarballs or parsing dependencies in the package.json file.

To address this issue, we plan to introduce the node_semver library to manage the version field in a more secure and simplified way. With the node_semver library, we can parse and compare version numbers more reliably and avoid any potential issues with the current version management logic.

We will modify the PackageJson struct to use the Version struct from the node_semver library for the version field. This change will improve the overall reliability of the package manager and make it easier to maintain the package.json file.

@nerdchanii nerdchanii added the enhancement New feature or request label Apr 24, 2023
@nerdchanii nerdchanii self-assigned this Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor
Projects
None yet
Development

No branches or pull requests

1 participant