Skip to content

Fix(semver): fix matching with pre-release version - #4412

Merged
Jarred-Sumner merged 1 commit into
oven-sh:mainfrom
Hanaasagi:fix-semver
Aug 31, 2023
Merged

Jarred-Sumner merged 1 commit into
oven-sh:mainfrom
Hanaasagi:fix-semver

Conversation

@Hanaasagi

Copy link
Copy Markdown
Contributor

What does this PR do?

Before this, we believed that the version range [6.3.0, 7.0.0] included version 7.0.0-rc-2. However, in npm, if a version with a pre-release tag is not explicitly specified in package.json, it is not allowed to match pre-release versions. This pr adds additional restrictions, close close #4398

Ref: https://github.com/npm/node-semver#prerelease-tags

How did you verify your code works?

I wrote automated tests

  • I checked the lifetime of memory allocated to verify it's (1) freed and (2) only freed when it should be
  • I or my editor ran zig fmt on the changed files
  • I included a test for the new code, or an existing test covers it
  • JSValue used outside outside of the stack is either wrapped in a JSC.Strong or is JSValueProtect'ed

@Jarred-Sumner Jarred-Sumner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thank you

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.

Used Caret Ranges, but installed the wrong version

2 participants