@williamthorsen/tsconfig 0.11.0 → 0.11.1

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.
@@ -1,4 +1,21 @@
1
1
  [
2
+ {
3
+ "version": "0.11.1",
4
+ "date": "2026-10-17",
5
+ "sections": [
6
+ {
7
+ "title": "♻️ Refactoring",
8
+ "audience": "dev",
9
+ "items": [
10
+ {
11
+ "description": "Returns the single value directly from `flatMap` callbacks in the readiness predicates and kits of `@williamthorsen/tsconfig` and `@williamthorsen/eslint-config-typescript`, rather than wrapping it in a one-element array. (#273)",
12
+ "hash": "1041ba308e4415a8f7a0ebd80d3aad743a848fe1",
13
+ "entry": 4
14
+ }
15
+ ]
16
+ }
17
+ ]
18
+ },
2
19
  {
3
20
  "version": "0.11.0",
4
21
  "date": "2026-10-16",
@@ -1,6 +1,6 @@
1
1
  /** @noformat -- @generated. Do not edit. Compiled by rdy. */
2
2
  /* eslint-disable */
3
- export const __readyupVersion = "0.41.0";
3
+ export const __readyupVersion = "0.41.1";
4
4
 
5
5
 
6
6
  // .readyup/kits/default.ts
@@ -62,7 +62,7 @@ function readDeclaredEsYear(compilerOptions) {
62
62
  if (targetYear !== void 0) return targetYear;
63
63
  const libYears = toStringArray(compilerOptions["lib"]).flatMap((entry) => {
64
64
  const year = parseEsYear(entry);
65
- return year === void 0 ? [] : [year];
65
+ return year === void 0 ? [] : year;
66
66
  });
67
67
  return libYears.toSorted().at(-1);
68
68
  }
@@ -97,7 +97,7 @@ function findEscapingPathsInField(entries, field, judgedDir) {
97
97
  const declaredDir = dirname(declaring.path);
98
98
  return declared.filter((value) => typeof value === "string").flatMap((value) => {
99
99
  const outward = findOutwardPath(value, declaredDir, judgedDir);
100
- return outward === void 0 ? [] : [{ declaredIn: declaring.path, field, path: outward }];
100
+ return outward === void 0 ? [] : { declaredIn: declaring.path, field, path: outward };
101
101
  });
102
102
  }
103
103
  function findOutwardPath(value, declaredDir, judgedDir) {
@@ -155,7 +155,7 @@ function classifyNodeEsYear(major, esYearForMajor) {
155
155
  function findLowestNodeMajor(floors) {
156
156
  const majors = floors.flatMap((floor) => {
157
157
  const major = readNodeMajor(floor);
158
- return major === void 0 ? [] : [major];
158
+ return major === void 0 ? [] : major;
159
159
  });
160
160
  return majors.length === 0 ? void 0 : Math.min(...majors);
161
161
  }
@@ -306,7 +306,7 @@ function listDeclaredNodeFloors() {
306
306
  const manifest = readJsonFile(resolveDirPath(dir, "package.json"));
307
307
  if (manifest === void 0) return [];
308
308
  const floor = readEnginesNodeFloor(manifest);
309
- return floor.kind === "found" ? [floor.floor] : [];
309
+ return floor.kind === "found" ? floor.floor : [];
310
310
  });
311
311
  if (engineFloors.length > 0) return engineFloors;
312
312
  const toolVersionsFloor = readToolVersionsNode();
@@ -325,7 +325,7 @@ function nodeFloorSupportsBaseEsYear() {
325
325
  function noEscapingPaths() {
326
326
  const judged = findTsconfigs().flatMap((path) => {
327
327
  const chain = readChain(path);
328
- return chain === void 0 ? [] : [{ escapes: findEscapingPaths(chain.entries), path }];
328
+ return chain === void 0 ? [] : { escapes: findEscapingPaths(chain.entries), path };
329
329
  });
330
330
  const offenders = judged.filter((judgedConfig) => judgedConfig.escapes.length > 0);
331
331
  const progress = {
@@ -33,7 +33,7 @@
33
33
  "esbuildVersion": "0.28.2",
34
34
  "inputs": [
35
35
  {
36
- "hash": "e8776bde",
36
+ "hash": "76ef7a7e",
37
37
  "kind": "module",
38
38
  "path": "kits/default.ts"
39
39
  },
@@ -48,12 +48,12 @@
48
48
  "path": "../src/readiness/classifyChain.ts"
49
49
  },
50
50
  {
51
- "hash": "4861e1ce",
51
+ "hash": "a640083e",
52
52
  "kind": "module",
53
53
  "path": "../src/readiness/es-year.ts"
54
54
  },
55
55
  {
56
- "hash": "7e81b592",
56
+ "hash": "cba222cb",
57
57
  "kind": "module",
58
58
  "path": "../src/readiness/findEscapingPaths.ts"
59
59
  },
@@ -68,17 +68,17 @@
68
68
  "path": "../src/readiness/listSearchDirs.ts"
69
69
  },
70
70
  {
71
- "hash": "ecb17b24",
71
+ "hash": "82ff91b4",
72
72
  "kind": "module",
73
73
  "path": "../src/readiness/node-floor.ts"
74
74
  }
75
75
  ],
76
76
  "name": "default",
77
77
  "path": "kits/default.js",
78
- "readyupVersion": "0.41.0",
78
+ "readyupVersion": "0.41.1",
79
79
  "source": "kits/default.ts",
80
- "sourceHash": "e8776bde",
81
- "targetHash": "2748686b"
80
+ "sourceHash": "76ef7a7e",
81
+ "targetHash": "c3b50bc8"
82
82
  }
83
83
  ]
84
84
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.11.1 — 2026-10-17
6
+
7
+ ### ♻️ Refactoring
8
+
9
+ - Returns the single value directly from `flatMap` callbacks in the readiness predicates and kits of `@williamthorsen/tsconfig` and `@williamthorsen/eslint-config-typescript`, rather than wrapping it in a one-element array. (#273)
10
+
5
11
  ## 0.11.0 — 2026-10-16
6
12
 
7
13
  ### 🎉 Features
package/README.md CHANGED
@@ -4,13 +4,7 @@
4
4
 
5
5
  Shared TypeScript base config for Node-only projects. Inlines the settings of [`@tsconfig/strictest`](https://www.npmjs.com/package/@tsconfig/strictest) and adds the Node and build options that it leaves out, so a consuming repo declares only what is genuinely its own.
6
6
 
7
- <!-- section:release-notes -->
8
- ## Release notes — v0.11.0 (2026-10-16)
9
-
10
- ### 🎉 Features
11
-
12
- - Ships `CHANGELOG.md` and the machine-readable `.meta/changelog.json` in the tarball of each published package, so that consumers receive the release history with the package. (#267)
13
- <!-- /section:release-notes -->
7
+ <!-- section:release-notes --><!-- /section:release-notes -->
14
8
 
15
9
  ## Installation
16
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/tsconfig",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Shared TypeScript base config for Node-only projects",
5
5
  "keywords": [
6
6
  "tsconfig",
@@ -33,7 +33,7 @@
33
33
  "devDependencies": {
34
34
  "@tsconfig/strictest": "2.0.8",
35
35
  "esbuild": "0.28.2",
36
- "readyup": "0.41.0",
36
+ "readyup": "0.41.1",
37
37
  "vitest": "4.1.11"
38
38
  },
39
39
  "peerDependencies": {