@naturalcycles/dev-lib 13.11.5 → 13.12.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/cfg/tsconfig.json CHANGED
@@ -10,8 +10,8 @@
10
10
  // "rootDir": "./src",
11
11
 
12
12
  // Target/module
13
- "target": "es2020",
14
- "lib": ["es2020"], // add "dom" if needed
13
+ "target": "es2021",
14
+ "lib": ["es2021"], // add "dom" if needed
15
15
  "module": "commonjs",
16
16
  "moduleResolution": "node",
17
17
 
@@ -77,7 +77,7 @@ async function runJest(opt = {}) {
77
77
  // We used to default to 2, but due to memory being an issue for Jest - now we default to 1,
78
78
  // as it's the most memory-efficient way
79
79
  // Since `workerIdleMemoryLimit` was introduced by default - we're changing default back to 2 workers
80
- maxWorkers || (maxWorkers = '--maxWorkers=2');
80
+ maxWorkers ||= '--maxWorkers=2';
81
81
  }
82
82
  // Running all tests - will use `--silent` to suppress console-logs, will also set process.env.JEST_SILENT=1
83
83
  if (CI || isRunningAllTests()) {
@@ -85,7 +85,7 @@ async function runJest(opt = {}) {
85
85
  }
86
86
  if (leaks) {
87
87
  args.push('--detectOpenHandles', '--detectLeaks');
88
- maxWorkers || (maxWorkers = '--maxWorkers=1');
88
+ maxWorkers ||= '--maxWorkers=1';
89
89
  }
90
90
  if (maxWorkers)
91
91
  args.push(maxWorkers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.11.5",
3
+ "version": "13.12.0",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -104,7 +104,7 @@
104
104
  "update-from-dev-lib": "dist/bin/update-from-dev-lib.js"
105
105
  },
106
106
  "engines": {
107
- "node": ">=14.15.0"
107
+ "node": ">=16.10.0"
108
108
  },
109
109
  "publishConfig": {
110
110
  "access": "public"