-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versionstate:released-betaReleased as beta versionReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed
Description
New Issue Checklist
- Report security issues confidentially.
- Any contribution is under this license.
- Before posting search existing issues.
Issue Description
The post install script makes the installation fail if the min. Node version in package.json is higher than the environment Node version. However, it regex-parses the engine.node value instead of properly semver-parsing it to properly handle any possible semver notation.
Line 4 in 9282e34
| const minimum = parseFloat(pkg.engines.node.match(/\d+/g).join('.')); |
The current string is parsed incorrect so that the required min. Node version is 18.19:
Lines 141 to 143 in 9282e34
| "engines": { | |
| "node": "18 || 19 || 20 || 22" | |
| }, |
This also points to a larger issue with the Parse Server engine.node value, because only specifying the major version means that Parse Server is compatible with Node 18.0.0, which may not even be the case as it has never been tested with that exact version.
Environment
Server
- Parse Server version:
7.2.0
Metadata
Metadata
Assignees
Labels
state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versionstate:released-betaReleased as beta versionReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed