wisdom 16.0.6 → 17.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,12 @@
1
+ 2025.12.31, v17.0.0
2
+
3
+ feature:
4
+ - 2d013a0 wisdom: drop support of node < 22
5
+ - 3ca4f0c wisdom: try-to-catch v4.0.2
6
+ - 012b529 wisdom: try-catch v4.0.6
7
+ - d6c188e wisdom: putout v41.3.3
8
+ - a97e37b wisdom: get rid of mock-import
9
+
1
10
  2025.11.30, v16.0.6
2
11
 
3
12
  feature:
package/lib/prompts.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import enquirer from 'enquirer';
2
- import tryToCatch from 'try-to-catch';
2
+ import {tryToCatch} from 'try-to-catch';
3
3
  import {choose as chooseCLI} from '@putout/cli-choose';
4
4
 
5
5
  const {Confirm} = enquirer;
package/lib/release.js CHANGED
@@ -1,11 +1,11 @@
1
- import grizzly from 'grizzly';
2
- import tryToCatch from 'try-to-catch';
1
+ import _grizzly from 'grizzly';
2
+ import {tryToCatch} from 'try-to-catch';
3
3
  import {markdown} from './markdown.js';
4
4
 
5
5
  const isUndefined = (a) => typeof a === 'undefined';
6
6
  const rmScope = (a) => a.replace(/^@.*\//, '');
7
7
 
8
- export async function release({version, info, chlog, emitter, count}) {
8
+ export async function release({version, info, chlog, emitter, count, grizzly = _grizzly}) {
9
9
  if (!info.release && !isUndefined(info.release)) {
10
10
  emitter.emit('data', 'release: false\n');
11
11
  return;
@@ -59,6 +59,7 @@ export async function release({version, info, chlog, emitter, count}) {
59
59
  chlog,
60
60
  emitter,
61
61
  count,
62
+ grizzly,
62
63
  });
63
64
  }
64
65
 
@@ -5,7 +5,7 @@ import {statSync} from 'node:fs';
5
5
  import redrun from 'redrun';
6
6
  import envir from 'envir';
7
7
  import parentDirectories from 'parent-directories';
8
- import tryCatch from 'try-catch';
8
+ import {tryCatch} from 'try-catch';
9
9
  import getEnv from '../get-env.js';
10
10
 
11
11
  const {PATH} = process.env;
package/lib/runner.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {promisify} from 'node:util';
2
2
  import path from 'node:path';
3
3
  import {execSync} from 'node:child_process';
4
- import tryCatch from 'try-catch';
5
- import tryToCatch from 'try-to-catch';
4
+ import {tryCatch} from 'try-catch';
5
+ import {tryToCatch} from 'try-to-catch';
6
6
  import _prepend from 'prepend';
7
7
  import versionio from 'version-io';
8
8
  import changelog from 'changelog-io';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wisdom",
3
- "version": "16.0.6",
3
+ "version": "17.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",
@@ -47,23 +47,21 @@
47
47
  "readjson": "^2.2.2",
48
48
  "redrun": "^12.0.0",
49
49
  "rendy": "^4.1.3",
50
- "try-catch": "^3.0.0",
51
- "try-to-catch": "^3.0.0",
50
+ "try-catch": "^4.0.6",
51
+ "try-to-catch": "^4.0.2",
52
52
  "version-io": "^5.0.0"
53
53
  },
54
54
  "license": "MIT",
55
55
  "engines": {
56
- "node": ">=20"
56
+ "node": ">=22"
57
57
  },
58
58
  "devDependencies": {
59
59
  "c8": "^10.1.2",
60
- "escover": "^4.1.0",
61
60
  "eslint": "^9.35.0",
62
61
  "eslint-plugin-putout": "^29.0.0",
63
62
  "madrun": "^11.0.2",
64
- "mock-import": "^4.0.3",
65
63
  "montag": "^1.2.1",
66
- "putout": "^40.8.0",
64
+ "putout": "^41.3.3",
67
65
  "supertape": "^11.3.0"
68
66
  }
69
67
  }