@vllnt/typescript 2.0.0 → 2.0.1-canary.f2d6ca9

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.md CHANGED
@@ -4,6 +4,20 @@ All notable changes to this project are documented in this file. The format foll
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [2.0.1] - Unreleased
8
+
9
+ ### Changed
10
+
11
+ - Clarified standalone preset usage and release channels; retained `llms.txt` as the maintained LLM index and removed `llms-full.txt` from the repository and package contents.
12
+ - Corrected the documented Next.js and React integration versions and the development pnpm version.
13
+ - Stable releases are now published only from a `vX.Y.Z` tag on `main` that matches `package.json` and this changelog; canary releases still publish on every push to `main`. Workflows pin actions, avoid credential persistence, and narrow the secrets passed to the leak gate.
14
+ - Set the pnpm release-age policy in `pnpm-workspace.yaml`, moved to pnpm 11.28.8, and added low-memory development defaults.
15
+ - Upgraded the development lint configuration to `@vllnt/eslint-config` 2.0.0 and refreshed development and integration-test dependencies, with scoped overrides for patched releases of two transitive development dependencies (`handlebars`, `deepmerge-ts`).
16
+
17
+ ### Fixed
18
+
19
+ - `nodejs.json` and `react.json` no longer enable `incremental`. With it, a clean build that deleted only the output directory could reuse a leftover `.tsbuildinfo` and emit nothing, so a package could be published empty. JavaScript, declaration, and source-map output of a clean build is unchanged; only build caching changes, so this ships as a patch under the README's build-cache exception. Ordinary `tsc` and `tsc --project` builds using these presets are no longer incremental and no longer write a `.tsbuildinfo`; `tsc --build` and `composite` projects still write one. To restore caching for ordinary builds, set `incremental: true` in your project; setting only `tsBuildInfoFile` is not enough. `nextjs.json` keeps `incremental` because it does not emit.
20
+
7
21
  ## [2.0.0] - 2026-08-31
8
22
 
9
23
  ### Added
@@ -34,6 +48,7 @@ All notable changes to this project are documented in this file. The format foll
34
48
  - Added `base.json`, `nodejs.json`, `node-library.json`, `react.json`, and `nextjs.json` presets.
35
49
  - Documented Node.js 22+ and TypeScript 5+ expectations.
36
50
 
37
- [Unreleased]: https://github.com/vllnt/typescript/compare/v2.0.0...HEAD
51
+ [Unreleased]: https://github.com/vllnt/typescript/compare/v2.0.1...HEAD
52
+ [2.0.1]: https://github.com/vllnt/typescript/compare/v2.0.0...v2.0.1
38
53
  [2.0.0]: https://github.com/vllnt/typescript/compare/v1.0.0...v2.0.0
39
54
  [1.0.0]: https://github.com/vllnt/typescript/releases/tag/v1.0.0
package/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Shared TypeScript configurations for Node.js, libraries, React, and Next.js. Version 2 targets the native TypeScript 7 compiler while retaining a tested TypeScript 6 migration path.
4
4
 
5
+ Use these independently in any project; no vllnt monorepo or runtime dependency
6
+ is required. Extend a preset, then supply project-specific paths and ambient types.
7
+
5
8
  ## Install
6
9
 
7
10
  For TypeScript 7 projects:
@@ -34,6 +37,8 @@ This is the [official side-by-side migration arrangement](https://devblogs.micro
34
37
  | `react.json` | Bundled React applications | Bundler | ES2022 | JavaScript, declarations, source maps |
35
38
  | `nextjs.json` | Next.js applications | Bundler | ES2022 | None |
36
39
 
40
+ Emitting presets do not enable `incremental`. Unless you opt in, a clean build emits every output even when a `.tsbuildinfo` file is left over. If you set `incremental: true`, delete the `.tsbuildinfo` file together with the output directory before a clean build. `nextjs.json` keeps `incremental` because it does not emit; if you override `noEmit`, also set `incremental: false`.
41
+
37
42
  ### Node.js application
38
43
 
39
44
  ```json
@@ -129,9 +134,9 @@ TypeScript 7 also removes ES5 targeting, legacy module formats and resolution, `
129
134
  | Node.js consumers | `>=22` |
130
135
  | TypeScript | `>=6.0.2 <8` |
131
136
  | Tested compilers | TypeScript 6 compatibility package and TypeScript 7.0.2 |
132
- | Next.js integration | 16.3.3 |
133
- | React integration | 19.2.8 |
134
- | Repository development | Node.js 22.13+, pnpm 11.24.0 |
137
+ | Next.js integration | 16.4.3 |
138
+ | React integration | 19.3.1 |
139
+ | Repository development | Node.js 22.13+, pnpm 11.28.8 |
135
140
 
136
141
  ## Development
137
142
 
@@ -148,7 +153,23 @@ The checks compile every preset with TypeScript 6 and 7, verify declaration emit
148
153
  - **Major:** raised TypeScript floor, stricter diagnostics, target/module/emit changes, or removed/renamed presets.
149
154
  - **Minor:** additive presets or backward-compatible options.
150
155
  - **Patch:** fixes, documentation, tests, or CI changes without consumer-visible behavior changes.
156
+ - **Build-cache exception:** a patch may remove a build-cache default, such as `incremental`, that makes builds emit wrong or missing output. JavaScript, declaration, and source-map output of a clean build and all diagnostics must stay the same. The changelog states the cache effect and how to opt back in. 2.0.1 uses this exception.
157
+
158
+ ## Documentation and support
159
+
160
+ - [LLM index](llms.txt) · [Changelog](CHANGELOG.md)
161
+ - [Contributing](CONTRIBUTING.md) · [Issues](https://github.com/vllnt/typescript/issues)
162
+ - [Security policy and private reporting](SECURITY.md)
163
+
164
+ npm `latest` is stable `2.0.0` at this audit. `@canary` selects moving prereleases;
165
+ pin and test them before adoption. The compatibility matrix above describes
166
+ this version's tested integrations, not a requirement to use every framework.
167
+
168
+ ## Author
169
+
170
+ Built by [bntvllnt](https://github.com/bntvllnt) · [bntvllnt.com](https://bntvllnt.com).
171
+ Part of [@vllnt](https://github.com/vllnt). [Sponsor the work](https://github.com/sponsors/bntvllnt).
151
172
 
152
173
  ## License
153
174
 
154
- MIT
175
+ [MIT](LICENSE)
package/llms.txt CHANGED
@@ -6,9 +6,12 @@
6
6
  - Repository: https://github.com/vllnt/typescript
7
7
  - Documentation: https://github.com/vllnt/typescript#readme
8
8
  - Changelog: https://github.com/vllnt/typescript/blob/main/CHANGELOG.md
9
- - Full reference: https://github.com/vllnt/typescript/blob/main/llms-full.txt
10
9
  - License: MIT
11
10
 
11
+ Install independently in any project; no vllnt monorepo is required. npm latest
12
+ is stable 2.0.0 at this audit; canary is a moving prerelease channel. Pin and test
13
+ prereleases. See [Contributing](CONTRIBUTING.md) and the [Security policy](SECURITY.md).
14
+
12
15
  ## Compatibility
13
16
 
14
17
  - Node.js consumers: 22 or newer
@@ -25,3 +28,4 @@
25
28
  - `@vllnt/typescript/nextjs.json`: no-emit Next.js applications
26
29
 
27
30
  Consumers should list required ambient packages in `types` and set `rootDir` in emitting projects.
31
+ Emitting presets do not enable `incremental`, so a clean build emits every output even when a `.tsbuildinfo` file is left over. Projects that set `incremental: true` should delete the `.tsbuildinfo` file with the output directory before a clean build.
package/nodejs.json CHANGED
@@ -8,7 +8,6 @@
8
8
  "moduleResolution": "NodeNext",
9
9
  "target": "ES2024",
10
10
  "declaration": true,
11
- "sourceMap": true,
12
- "incremental": true
11
+ "sourceMap": true
13
12
  }
14
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vllnt/typescript",
3
- "version": "2.0.0",
3
+ "version": "2.0.1-canary.f2d6ca9",
4
4
  "description": "Shared TypeScript configurations for vllnt projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -25,7 +25,7 @@
25
25
  "config",
26
26
  "shared-config"
27
27
  ],
28
- "packageManager": "pnpm@11.24.0",
28
+ "packageManager": "pnpm@11.28.8",
29
29
  "engines": {
30
30
  "node": ">=22"
31
31
  },
@@ -36,8 +36,7 @@
36
36
  "node-library.json",
37
37
  "react.json",
38
38
  "CHANGELOG.md",
39
- "llms.txt",
40
- "llms-full.txt"
39
+ "llms.txt"
41
40
  ],
42
41
  "exports": {
43
42
  "./base.json": "./base.json",
@@ -50,27 +49,27 @@
50
49
  "scripts": {
51
50
  "format": "prettier --write .",
52
51
  "format:check": "prettier --check .",
53
- "lint": "eslint .",
52
+ "lint": "pnpm check:agents && eslint --cache --cache-location node_modules/.cache/eslint/ .",
54
53
  "test": "vitest run",
55
54
  "test:coverage": "vitest run --coverage",
56
55
  "test:integration": "pnpm --dir tests/integration/react build && pnpm --dir tests/integration/nextjs build",
57
56
  "check": "pnpm format:check && pnpm lint && pnpm test:coverage && pnpm test:integration",
58
- "prepublishOnly": "pnpm check"
57
+ "check:agents": "node -e \"const f=require('node:fs');if(!f.existsSync('AGENTS.md')||f.existsSync('CLAUDE.md')||f.existsSync('.claude'))process.exit(1)\""
59
58
  },
60
59
  "peerDependencies": {
61
60
  "typescript": ">=6.0.2 <8"
62
61
  },
63
62
  "devDependencies": {
64
- "@types/node": "22.20.1",
65
- "@types/react": "19.2.18",
66
- "@types/react-dom": "19.2.5",
63
+ "@types/node": "22.20.5",
64
+ "@types/react": "19.3.0",
65
+ "@types/react-dom": "19.3.0",
67
66
  "@typescript/native": "npm:typescript@7.0.2",
68
- "@vitest/coverage-v8": "4.1.11",
69
- "@vllnt/eslint-config": "1.0.1",
67
+ "@vitest/coverage-v8": "5.0.5",
68
+ "@vllnt/eslint-config": "2.0.0",
70
69
  "eslint": "9.39.5",
71
- "prettier": "3.9.6",
70
+ "prettier": "3.9.10",
72
71
  "typescript": "npm:@typescript/typescript6@6.0.2",
73
- "vitest": "4.1.11"
72
+ "vitest": "5.0.5"
74
73
  },
75
74
  "publishConfig": {
76
75
  "access": "public",
package/react.json CHANGED
@@ -9,7 +9,6 @@
9
9
  "target": "ES2022",
10
10
  "jsx": "react-jsx",
11
11
  "declaration": true,
12
- "sourceMap": true,
13
- "incremental": true
12
+ "sourceMap": true
14
13
  }
15
14
  }
package/llms-full.txt DELETED
@@ -1,70 +0,0 @@
1
- # @vllnt/typescript full reference
2
-
3
- `@vllnt/typescript` publishes strict JSON compiler presets for Node.js 22+, npm libraries, React, and Next.js. Version 2 supports TypeScript `>=6.0.2 <8` and is validated with the TypeScript 6 compatibility package and native TypeScript 7.0.2.
4
-
5
- ## Installation
6
-
7
- TypeScript 7-only projects install:
8
-
9
- ```sh
10
- pnpm add --save-dev @vllnt/typescript@^2 typescript@^7
11
- ```
12
-
13
- Tools that still import the legacy compiler API use the official side-by-side arrangement:
14
-
15
- ```json
16
- {
17
- "devDependencies": {
18
- "@typescript/native": "npm:typescript@^7.0.2",
19
- "@vllnt/typescript": "^2.0.0",
20
- "typescript": "npm:@typescript/typescript6@^6.0.2"
21
- }
22
- }
23
- ```
24
-
25
- This exposes native TypeScript 7 as `tsc`, TypeScript 6 as `tsc6`, and TypeScript 6's JavaScript API through the `typescript` package name.
26
-
27
- ## Presets
28
-
29
- | Preset | Use case | Module resolution | Target | Emit |
30
- | --- | --- | --- | --- | --- |
31
- | `base.json` | Shared foundation | Inherited | Inherited | Inherited |
32
- | `nodejs.json` | Node.js applications | NodeNext | ES2024 | JavaScript, declarations, maps |
33
- | `node-library.json` | Publishable npm packages | NodeNext | ES2024 | JavaScript, declarations and maps |
34
- | `react.json` | Bundled React applications | Bundler | ES2022 | JavaScript, declarations, maps |
35
- | `nextjs.json` | Next.js applications | Bundler | ES2022 | None |
36
-
37
- ## Shared compiler contract
38
-
39
- All specialized presets inherit:
40
-
41
- - `strict: true`
42
- - `isolatedModules: true`
43
- - `noUncheckedIndexedAccess: true`
44
- - `noUncheckedSideEffectImports: true`
45
- - `forceConsistentCasingInFileNames: true`
46
- - `skipLibCheck: true`
47
- - `esModuleInterop: true`
48
- - `resolveJsonModule: true`
49
- - `stableTypeOrdering: true`
50
- - `libReplacement: false`
51
- - `types: []`
52
-
53
- Ambient types are opt-in. Consumers should add entries such as `node`, `react`, or `vitest/globals` to `types`. Emitting projects must set `rootDir` explicitly.
54
-
55
- ## Migration from version 1
56
-
57
- Version 2 drops TypeScript 5. Consumers must remove `baseUrl`, avoid legacy module formats and resolution, use explicit `rootDir` and `types`, and run Next.js 16.3 or newer for native TypeScript 7 builds. Keep the TypeScript 6 compatibility API installed while tools such as `typescript-eslint` need it.
58
-
59
- ## Package validation
60
-
61
- The repository compiles every preset with TypeScript 6 and 7, verifies strictness and declaration emit, installs the generated tarball into an isolated consumer, enforces its exact file surface, and builds real React/Vite and Next.js fixtures. The package has no runtime dependencies; TypeScript is a peer dependency.
62
-
63
- ## Resources
64
-
65
- - Main documentation: `README.md`
66
- - Release history: `CHANGELOG.md`
67
- - Contributions: `CONTRIBUTING.md`
68
- - Security policy: `SECURITY.md`
69
- - Repository: https://github.com/vllnt/typescript
70
- - License: MIT