@williamthorsen/tsconfig 0.11.1 → 0.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/.meta/changelog.json +17 -0
- package/CHANGELOG.md +6 -0
- package/README.md +18 -12
- package/package.json +1 -1
- package/tsconfig.base.json +2 -1
package/.meta/changelog.json
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.12.0",
|
|
4
|
+
"date": "2026-10-18",
|
|
5
|
+
"sections": [
|
|
6
|
+
{
|
|
7
|
+
"title": "🎉 Features",
|
|
8
|
+
"audience": "all",
|
|
9
|
+
"items": [
|
|
10
|
+
{
|
|
11
|
+
"description": "Adds `ESNext.Array` to the `lib` in `tsconfig.base.json`, so that a call to `Array.fromAsync`, which `unicorn/prefer-array-from-async` recommends, typechecks without a local `lib` override. (#284)",
|
|
12
|
+
"hash": "2d85c299036a8dbd6b385a976398d477ee6c5b83",
|
|
13
|
+
"entry": 1
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
2
19
|
{
|
|
3
20
|
"version": "0.11.1",
|
|
4
21
|
"date": "2026-10-17",
|
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.12.0 — 2026-10-18
|
|
6
|
+
|
|
7
|
+
### 🎉 Features
|
|
8
|
+
|
|
9
|
+
- Adds `ESNext.Array` to the `lib` in `tsconfig.base.json`, so that a call to `Array.fromAsync`, which `unicorn/prefer-array-from-async` recommends, typechecks without a local `lib` override. (#284)
|
|
10
|
+
|
|
5
11
|
## 0.11.1 — 2026-10-17
|
|
6
12
|
|
|
7
13
|
### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -4,7 +4,13 @@
|
|
|
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
|
|
7
|
+
<!-- section:release-notes -->
|
|
8
|
+
## Release notes — v0.12.0 (2026-10-18)
|
|
9
|
+
|
|
10
|
+
### 🎉 Features
|
|
11
|
+
|
|
12
|
+
- Adds `ESNext.Array` to the `lib` in `tsconfig.base.json`, so that a call to `Array.fromAsync`, which `unicorn/prefer-array-from-async` recommends, typechecks without a local `lib` override. (#284)
|
|
13
|
+
<!-- /section:release-notes -->
|
|
8
14
|
|
|
9
15
|
## Installation
|
|
10
16
|
|
|
@@ -46,17 +52,17 @@ A package that extends a framework base such as `astro/tsconfigs/base` or `@tsco
|
|
|
46
52
|
|
|
47
53
|
Everything `@tsconfig/strictest` sets, plus the Node and build options it omits:
|
|
48
54
|
|
|
49
|
-
| Option | Value
|
|
50
|
-
| ---------------------------- |
|
|
51
|
-
| `allowImportingTsExtensions` | `true`
|
|
52
|
-
| `lib` | `["ES2025", "ESNext.Disposable"]` |
|
|
53
|
-
| `module` | `"NodeNext"`
|
|
54
|
-
| `moduleDetection` | `"force"`
|
|
55
|
-
| `noEmit` | `true`
|
|
56
|
-
| `removeComments` | `true`
|
|
57
|
-
| `target` | `"ES2025"`
|
|
58
|
-
|
|
59
|
-
`target` and `lib` are pinned to a Node 24 floor. `ESNext.Disposable` supplies the explicit-resource-management declarations (`using`, `Disposable`, `DisposableStack`),
|
|
55
|
+
| Option | Value |
|
|
56
|
+
| ---------------------------- | ------------------------------------------------- |
|
|
57
|
+
| `allowImportingTsExtensions` | `true` |
|
|
58
|
+
| `lib` | `["ES2025", "ESNext.Disposable", "ESNext.Array"]` |
|
|
59
|
+
| `module` | `"NodeNext"` |
|
|
60
|
+
| `moduleDetection` | `"force"` |
|
|
61
|
+
| `noEmit` | `true` |
|
|
62
|
+
| `removeComments` | `true` |
|
|
63
|
+
| `target` | `"ES2025"` |
|
|
64
|
+
|
|
65
|
+
`target` and `lib` are pinned to a Node 24 floor. `ESNext.Disposable` supplies the explicit-resource-management declarations (`using`, `Disposable`, `DisposableStack`), and `ESNext.Array` supplies `Array.fromAsync`; Node 24 implements both, but the numbered libs do not yet include them.
|
|
60
66
|
|
|
61
67
|
## What the consumer owns
|
|
62
68
|
|
package/package.json
CHANGED
package/tsconfig.base.json
CHANGED
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"rewriteRelativeImportExtensions": true,
|
|
34
34
|
// Without this, `lib` follows `target` into the `.full` variant, admitting DOM globals.
|
|
35
35
|
// `ESNext.Disposable` contains the explicit-resource-management declarations; no numbered lib has them.
|
|
36
|
-
|
|
36
|
+
// `ESNext.Array` contains `Array.fromAsync`, which Node 24 implements; no numbered lib has it.
|
|
37
|
+
"lib": ["ES2025", "ESNext.Disposable", "ESNext.Array"],
|
|
37
38
|
// Default is `ES2022` with `Bundler` resolution: wrong for published Node packages.
|
|
38
39
|
"module": "NodeNext",
|
|
39
40
|
// Files with no import or export would otherwise be scripts sharing global scope.
|