Skip to content

Commit

Permalink
Merge pull request #303 from gstrauss/upd-semver
Browse files Browse the repository at this point in the history
upgrade semver and better use of semver
  • Loading branch information
gstrauss authored Dec 10, 2024
2 parents f33a4ac + 550a4d9 commit 68ec23d
Show file tree
Hide file tree
Showing 9 changed files with 219 additions and 116 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ There are two places that need to be updated in order to add support for a new p

All of the templates are written in javascript. The configuration generator supports the following additional helpers:

- `minpatchver(minimum_ver, cur_ver)` - `true` if `cur_ver` is greater than or equal to `minimum_ver`, AND both versions are the same minor version, e.g. `2.4`
- `minpatchver(minimum_ver, cur_ver)` - `true` if `cur_ver` is greater than or equal to `minimum_ver`, AND both versions are the same major/minor version, e.g. `2.4`
- `minpatchver("2.4.3", form.serverVersion)`
- `minver(minimum_ver, cur_ver)` - `true` if `cur_ver` is greater than or equal to `minimum_ver`
- `minver("1.9.5", form.serverVersion)`
- `sameminorver(version, otherVersion)` - returns `true` if `version` and `otherVersion` are of the same minor version, e.g. `2.4`
- `sameminorver("2.4.0", form.serverVersion)`

### Template variables

Expand Down
235 changes: 190 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"bootstrap.native": "^5.1.1",
"clipboard": "^2.0.11",
"semver": "^6.3.1"
"semver": "^7.6.3"
},
"devDependencies": {
"@babel/core": "^7.26.0",
Expand Down
Loading

0 comments on commit 68ec23d

Please sign in to comment.