Skip to content

Commit

Permalink
release 5.22.1
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Nov 15, 2024
1 parent 1d77582 commit dc5adfb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change logs

## 2024.11.15 v5.22.1

1. fix bugs of `nextVersion`

## 2024.10.16 v5.22.0

1. new `isNumberBrowser` function, see: [isNumberBrowser](https://github.com/saqqdy/js-cool#isnumberbrowser)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "js-cool",
"description": "Collection of common JavaScript / TypeScript utilities",
"version": "5.22.0",
"version": "5.22.1",
"packageManager": "[email protected]",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
Expand Down
14 changes: 5 additions & 9 deletions src/nextVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,15 @@ function nextVersion(

switch (type) {
case 'major':
if (ver.minor || ver.patch) {
ver.major++
ver.minor = 0
ver.patch = 0
}
if (ver.minor || ver.patch || !ver.preid) ver.major++
ver.minor = 0
ver.patch = 0
ver.preid = ''
ver.release = undefined
break
case 'minor':
if (ver.patch) {
ver.minor++
ver.patch = 0
}
if (ver.patch || !ver.preid) ver.minor++
ver.patch = 0
ver.preid = ''
ver.release = undefined
break
Expand Down

0 comments on commit dc5adfb

Please sign in to comment.