wisdom 14.4.0 → 15.0.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 CHANGED
@@ -1,3 +1,22 @@
1
+ 2024.02.02, v15.0.0
2
+
3
+ feature:
4
+ - 59801a9 wisdom: drop support of node < 18
5
+ - e76e10d wisdom: read-pkg-up v11.0.0
6
+ - 511151c wisdom: putout v35.0.4
7
+ - 1311f35 wisdom: mock-import v4.0.3
8
+ - 8536dee wisdom: madrun v10.0.1
9
+ - 5ea4d87 wisdom: eslint-plugin-putout v22.3.1
10
+ - 21e3e15 wisdom: escover v4.1.0
11
+ - 66c92d0 wisdom: c8 v9.1.0
12
+ - 16564d1 wisdom: supertape v10.0.0
13
+ - f2ff2e8 wisdom: redrun v11.0.1
14
+
15
+ 2023.10.31, v14.4.1
16
+
17
+ fix:
18
+ - 73354a7 lint
19
+
1
20
  2023.10.31, v14.4.0
2
21
 
3
22
  feature:
package/bin/wisdom.js CHANGED
@@ -14,9 +14,8 @@ if (arg === '--dry-run') {
14
14
  option = '--dry-run';
15
15
  }
16
16
 
17
- if (!arg) {
17
+ if (!arg)
18
18
  arg = await choose();
19
- }
20
19
 
21
20
  if (/^(-v|--v)$/.test(arg)) {
22
21
  version();
package/lib/markdown.js CHANGED
@@ -3,4 +3,3 @@ export function markdown(str) {
3
3
  .replace(/\bfix\b:/g, '## 🐞 fix\n')
4
4
  .replace(/\bfeature\b:/g, '## 🔥 feature\n');
5
5
  }
6
-
package/lib/prompts.js CHANGED
@@ -1,16 +1,17 @@
1
1
  import enquirer from 'enquirer';
2
- import actions from 'enquirer/lib/combos.js';
3
2
  import tryToCatch from 'try-to-catch';
4
3
  import {choose as chooseCLI} from '@putout/cli-choose';
5
4
 
6
- const {Select, Confirm} = enquirer;
5
+ const {Confirm} = enquirer;
7
6
 
8
7
  export const choose = async () => {
9
- return chooseCLI('What type of changes are you goint to publish 🎁 ?', [
8
+ const choices = [
10
9
  'patch',
11
10
  'minor',
12
11
  'major',
13
- ]);
12
+ ];
13
+
14
+ return await chooseCLI('What type of changes are you goint to publish 🎁 ?', choices);
14
15
  };
15
16
 
16
17
  export const ask = async (name, version) => {
package/lib/wisdom.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import path from 'node:path';
2
- import {EventEmitter} from 'events';
2
+ import {EventEmitter} from 'node:events';
3
3
  import changelog from 'changelog-io';
4
4
  import rendy from 'rendy';
5
5
  import minor from 'minor';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wisdom",
3
- "version": "14.4.0",
3
+ "version": "15.0.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "configurable publish releases to github and npm",
6
6
  "homepage": "http://github.com/coderaiser/wisdom",
@@ -42,9 +42,9 @@
42
42
  "jessy": "^3.0.0",
43
43
  "minor": "^1.2.0",
44
44
  "prepend": "^1.0.1",
45
- "read-pkg-up": "^10.0.0",
45
+ "read-pkg-up": "^11.0.0",
46
46
  "readjson": "^2.2.2",
47
- "redrun": "^10.0.0",
47
+ "redrun": "^11.0.1",
48
48
  "rendy": "^4.1.3",
49
49
  "try-catch": "^3.0.0",
50
50
  "try-to-catch": "^3.0.0",
@@ -52,18 +52,18 @@
52
52
  },
53
53
  "license": "MIT",
54
54
  "engines": {
55
- "node": ">=16"
55
+ "node": ">=18"
56
56
  },
57
57
  "devDependencies": {
58
- "c8": "^8.0.1",
59
- "escover": "^3.5.2",
58
+ "c8": "^9.1.0",
59
+ "escover": "^4.1.0",
60
60
  "eslint": "^8.1.0",
61
61
  "eslint-plugin-n": "^16.0.1",
62
- "eslint-plugin-putout": "^20.0.0",
63
- "madrun": "^9.0.2",
64
- "mock-import": "^3.0.2",
62
+ "eslint-plugin-putout": "^22.3.1",
63
+ "madrun": "^10.0.1",
64
+ "mock-import": "^4.0.3",
65
65
  "montag": "^1.2.1",
66
- "putout": "^32.2.0",
67
- "supertape": "^8.3.0"
66
+ "putout": "^35.0.4",
67
+ "supertape": "^10.0.0"
68
68
  }
69
69
  }