fork-version 1.4.91 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/README.md +71 -59
- package/dist/{chunk-3BQZUKK5.js → chunk-6F6V3HWV.js} +309 -294
- package/dist/chunk-6F6V3HWV.js.map +1 -0
- package/dist/{chunk-NOQPR45O.cjs → chunk-SAIF32GN.cjs} +308 -295
- package/dist/chunk-SAIF32GN.cjs.map +1 -0
- package/dist/cli.cjs +26 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +22 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -9
- package/dist/index.d.ts +19 -9
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +38 -26
- package/dist/chunk-3BQZUKK5.js.map +0 -1
- package/dist/chunk-NOQPR45O.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Fork Version
|
|
2
2
|
|
|
3
|
+
## 1.5.0 (2024-10-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add release as support ([9ed9c19](https://github.com/eglavin/fork-version/commit/9ed9c19d8b1b8bad94fe01a7eb7559af02f8084f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## 1.4.96 (2024-10-20)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Docs
|
|
15
|
+
|
|
16
|
+
* align cli helper text ([#73](https://github.com/eglavin/fork-version/issues/73)) ([ca13862](https://github.com/eglavin/fork-version/commit/ca1386244dc0ac4a9ed71904d4eaa1471d8d21a2))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## 1.4.95 (2024-10-06)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Chore
|
|
23
|
+
|
|
24
|
+
* bump dependencies ([#71](https://github.com/eglavin/fork-version/issues/71)) ([d2d046c](https://github.com/eglavin/fork-version/commit/d2d046ca22bf7f0a078e3f1d02a10d8b6e98b9b5))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 1.4.94 (2024-10-04)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Test
|
|
31
|
+
|
|
32
|
+
* improve versioning tests ([#68](https://github.com/eglavin/fork-version/issues/68)) ([635329c](https://github.com/eglavin/fork-version/commit/635329c6b9beb1929f5e03da6ecd76c340b7c406))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## 1.4.93 (2024-07-28)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Refactor
|
|
39
|
+
|
|
40
|
+
* extract types from schema + use js file to define schema ([#69](https://github.com/eglavin/fork-version/issues/69)) ([01fccbe](https://github.com/eglavin/fork-version/commit/01fccbe020a70d2c5f8c3c3b6c33da6cb9260ebd))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## 1.4.92 (2024-06-21)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Refactor
|
|
47
|
+
|
|
48
|
+
* add should ignore option to git class + remove dotgitignore ([#67](https://github.com/eglavin/fork-version/issues/67)) ([527b8a4](https://github.com/eglavin/fork-version/commit/527b8a4766e59a509794a0de5ad978f92e3226bf))
|
|
49
|
+
|
|
50
|
+
|
|
3
51
|
## 1.4.91 (2024-06-17)
|
|
4
52
|
|
|
5
53
|
|
package/README.md
CHANGED
|
@@ -85,48 +85,49 @@ Usage:
|
|
|
85
85
|
$ fork-version [options]
|
|
86
86
|
|
|
87
87
|
Commands:
|
|
88
|
-
--help
|
|
89
|
-
--version
|
|
90
|
-
--inspect-version
|
|
88
|
+
--help Show this help message.
|
|
89
|
+
--version Show the current version of Fork-Version.
|
|
90
|
+
--inspect-version If set, Fork-Version will print the current project version and exit.
|
|
91
91
|
|
|
92
92
|
Options:
|
|
93
|
-
--file, -F
|
|
94
|
-
--glob, -G
|
|
95
|
-
--path, -P
|
|
96
|
-
--changelog
|
|
97
|
-
--header
|
|
98
|
-
--tag-prefix
|
|
99
|
-
--pre-release
|
|
100
|
-
--pre-release-tag
|
|
101
|
-
--current-version
|
|
102
|
-
--next-version
|
|
93
|
+
--file, -F List of the files to be updated. [Default: ["bower.json", "deno.json", "jsr.json", "manifest.json", "npm-shrinkwrap.json", "package-lock.json", "package.json"]]
|
|
94
|
+
--glob, -G Glob pattern to match files to be updated.
|
|
95
|
+
--path, -P The path Fork-Version will run from. [Default: process.cwd()]
|
|
96
|
+
--changelog Name of the changelog file. [Default: "CHANGELOG.md"]
|
|
97
|
+
--header The header text for the changelog.
|
|
98
|
+
--tag-prefix Specify a prefix for the created tag. [Default: "v"]
|
|
99
|
+
--pre-release Mark this release as a pre-release.
|
|
100
|
+
--pre-release-tag Mark this release with a tagged pre-release. [Example: "alpha", "beta", "rc"]
|
|
101
|
+
--current-version If set, Fork-Version will use this version instead of trying to determine one.
|
|
102
|
+
--next-version If set, Fork-Version will attempt to update to this version, instead of incrementing using "conventional-commit".
|
|
103
|
+
--release-as Release as increments the version by the specified level. [Choices: "major", "minor", "patch"]
|
|
103
104
|
|
|
104
105
|
Flags:
|
|
105
|
-
--allow-multiple-versions
|
|
106
|
-
--commit-all
|
|
107
|
-
--changelog-all
|
|
108
|
-
--debug
|
|
109
|
-
--dry-run
|
|
110
|
-
--silent
|
|
111
|
-
--git-tag-fallback
|
|
112
|
-
--sign
|
|
113
|
-
--verify
|
|
106
|
+
--allow-multiple-versions Don't throw an error if multiple versions are found in the given files. [Default: true]
|
|
107
|
+
--commit-all Commit all changes, not just files updated by Fork-Version.
|
|
108
|
+
--changelog-all If this flag is set, all default commit types will be added to the changelog.
|
|
109
|
+
--debug Output debug information.
|
|
110
|
+
--dry-run No output will be written to disk or committed.
|
|
111
|
+
--silent Run without logging to the terminal.
|
|
112
|
+
--git-tag-fallback If unable to find a version in the given files, fallback and attempt to use the latest git tag. [Default: true]
|
|
113
|
+
--sign If true, git will sign the commit with the systems GPG key.
|
|
114
|
+
--verify If true, git will run user defined git hooks before committing.
|
|
114
115
|
|
|
115
116
|
To negate a flag you can prefix it with "no-", for example "--no-git-tag-fallback" will not fallback to the latest git tag.
|
|
116
117
|
|
|
117
118
|
Skip Steps:
|
|
118
|
-
--skip-bump
|
|
119
|
-
--skip-changelog
|
|
120
|
-
--skip-commit
|
|
121
|
-
--skip-tag
|
|
119
|
+
--skip-bump Skip the version bump step.
|
|
120
|
+
--skip-changelog Skip updating the changelog.
|
|
121
|
+
--skip-commit Skip committing the changes.
|
|
122
|
+
--skip-tag Skip tagging the commit.
|
|
122
123
|
|
|
123
124
|
Conventional Changelog Overrides:
|
|
124
|
-
--commit-url-format
|
|
125
|
-
--compare-url-format
|
|
126
|
-
--issue-url-format
|
|
127
|
-
--user-url-format
|
|
128
|
-
--release-commit-message-format
|
|
129
|
-
--release-message-suffix
|
|
125
|
+
--commit-url-format Override the default commit URL format.
|
|
126
|
+
--compare-url-format Override the default compare URL format.
|
|
127
|
+
--issue-url-format Override the default issue URL format.
|
|
128
|
+
--user-url-format Override the default user URL format.
|
|
129
|
+
--release-commit-message-format Override the default release commit message format.
|
|
130
|
+
--release-message-suffix Add a suffix to the end of the release message.
|
|
130
131
|
|
|
131
132
|
Examples:
|
|
132
133
|
$ fork-version
|
|
@@ -232,33 +233,34 @@ Alternatively you can define your config using a key in your `package.json` file
|
|
|
232
233
|
|
|
233
234
|
#### Config Properties
|
|
234
235
|
|
|
235
|
-
| Property | Type | Default | Description
|
|
236
|
-
| :---------------------------------------------------- | :--------------- | :---------------------- |
|
|
237
|
-
| inspectVersion | boolean | - | Print the current version and exits
|
|
238
|
-
| [files](#configfiles) | Array\<string> | `["package.json", ...]` | List of the files to be updated
|
|
239
|
-
| [glob](#configglob) | string | - | Glob pattern to match files to be updated
|
|
240
|
-
| path | string | `process.cwd()` | The path
|
|
241
|
-
| changelog | string | `CHANGELOG.md` | Name of the changelog file
|
|
242
|
-
| header | string | `# Changelog...` | The header text for the changelog
|
|
243
|
-
| [tagPrefix](#configtagprefix) | string | `v` | Prefix for the created tag
|
|
244
|
-
| [preRelease](#configprerelease) | string / boolean | - | Make a pre-release with optional label if given value is a string
|
|
245
|
-
| currentVersion | string | - | Use this version instead of trying to determine one
|
|
246
|
-
| nextVersion | string | - | Attempt to update to this version, instead of incrementing using "conventional-commit"
|
|
247
|
-
|
|
|
248
|
-
|
|
|
249
|
-
|
|
|
250
|
-
|
|
|
251
|
-
|
|
|
252
|
-
|
|
|
253
|
-
|
|
|
254
|
-
|
|
|
255
|
-
|
|
|
256
|
-
|
|
|
257
|
-
|
|
|
258
|
-
|
|
|
259
|
-
|
|
|
260
|
-
|
|
|
261
|
-
|
|
|
236
|
+
| Property | Type | Default | Description |
|
|
237
|
+
| :---------------------------------------------------- | :--------------- | :---------------------- | :------------------------------------------------------------------------------------------------------------------ |
|
|
238
|
+
| inspectVersion | boolean | - | Print the current version and exits |
|
|
239
|
+
| [files](#configfiles) | Array\<string> | `["package.json", ...]` | List of the files to be updated |
|
|
240
|
+
| [glob](#configglob) | string | - | Glob pattern to match files to be updated |
|
|
241
|
+
| path | string | `process.cwd()` | The path Fork-Version will run from |
|
|
242
|
+
| changelog | string | `CHANGELOG.md` | Name of the changelog file |
|
|
243
|
+
| header | string | `# Changelog...` | The header text for the changelog |
|
|
244
|
+
| [tagPrefix](#configtagprefix) | string | `v` | Prefix for the created tag |
|
|
245
|
+
| [preRelease](#configprerelease) | string / boolean | - | Make a pre-release with optional label if given value is a string |
|
|
246
|
+
| currentVersion | string | - | Use this version instead of trying to determine one |
|
|
247
|
+
| nextVersion | string | - | Attempt to update to this version, instead of incrementing using "conventional-commit" |
|
|
248
|
+
| [releaseAs](#configreleaseas) | string | - | Release as increments the version by the specified level. Overrides the default behaviour of "conventional-commit". |
|
|
249
|
+
| allowMultipleVersions | boolean | true | Don't throw an error if multiple versions are found in the given files. |
|
|
250
|
+
| commitAll | boolean | false | Commit all changes, not just files updated by Fork-Version |
|
|
251
|
+
| changelogAll | boolean | false | If this flag is set, all default commit types will be added to the changelog, not just `feat` and `fix`. |
|
|
252
|
+
| debug | boolean | false | Output debug information |
|
|
253
|
+
| dryRun | boolean | false | No output will be written to disk or committed |
|
|
254
|
+
| silent | boolean | false | Run without logging to the terminal |
|
|
255
|
+
| gitTagFallback | boolean | true | If unable to find a version in the given files, fallback and attempt to use the latest git tag |
|
|
256
|
+
| sign | boolean | false | Sign the commit with the systems GPG key |
|
|
257
|
+
| verify | boolean | false | Run user defined git hooks before committing |
|
|
258
|
+
| skipBump | boolean | false | Skip the bump step |
|
|
259
|
+
| skipChangelog | boolean | false | Skip the changelog step |
|
|
260
|
+
| skipCommit | boolean | false | Skip the commit step |
|
|
261
|
+
| skipTag | boolean | false | Skip the tag step |
|
|
262
|
+
| [changelogPresetConfig](#configchangelogpresetconfig) | object | {} | Override defaults from the "conventional-changelog-conventionalcommits" preset configuration |
|
|
263
|
+
| releaseMessageSuffix | string | - | Add a suffix to the end of the release message |
|
|
262
264
|
|
|
263
265
|
##### config.files
|
|
264
266
|
|
|
@@ -323,6 +325,16 @@ Fork-Version uses [meow](https://github.com/sindresorhus/meow) to parse cli argu
|
|
|
323
325
|
| `fork-version --pre-release` | `1.2.3-0` |
|
|
324
326
|
| `fork-version --pre-release-tag alpha` | `1.2.3-alpha-0` |
|
|
325
327
|
|
|
328
|
+
##### config.releaseAs
|
|
329
|
+
|
|
330
|
+
Allows you to override the default versioning behaviour of Fork-Version and increment by the specified level. For example if the current version is `1.2.3` and you run Fork-Version with one of the following arguments, the version will be incremented as shown below.
|
|
331
|
+
|
|
332
|
+
| Example Value | Version Created |
|
|
333
|
+
|:--------------|:----------------|
|
|
334
|
+
| `major` | 2.0.0 |
|
|
335
|
+
| `minor` | 1.3.0 |
|
|
336
|
+
| `patch` | 1.2.4 |
|
|
337
|
+
|
|
326
338
|
##### config.changelogPresetConfig
|
|
327
339
|
|
|
328
340
|
Fork-Version uses the [conventional changelog config spec](https://github.com/conventional-changelog/conventional-changelog-config-spec). The following is an excerpt of the configurable options.
|