@vllnt/typescript 2.0.0 → 2.0.1-canary.c9d3f8e

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,18 @@ 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
+ The presets are unchanged from 2.0.0.
10
+
11
+ ### Changed
12
+
13
+ - 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.
14
+ - Corrected the documented Next.js and React integration versions and the development pnpm version.
15
+ - 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.
16
+ - Set the pnpm release-age policy in `pnpm-workspace.yaml`, moved to pnpm 11.28.8, and added low-memory development defaults.
17
+ - 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`).
18
+
7
19
  ## [2.0.0] - 2026-08-31
8
20
 
9
21
  ### Added
@@ -34,6 +46,7 @@ All notable changes to this project are documented in this file. The format foll
34
46
  - Added `base.json`, `nodejs.json`, `node-library.json`, `react.json`, and `nextjs.json` presets.
35
47
  - Documented Node.js 22+ and TypeScript 5+ expectations.
36
48
 
37
- [Unreleased]: https://github.com/vllnt/typescript/compare/v2.0.0...HEAD
49
+ [Unreleased]: https://github.com/vllnt/typescript/compare/v2.0.1...HEAD
50
+ [2.0.1]: https://github.com/vllnt/typescript/compare/v2.0.0...v2.0.1
38
51
  [2.0.0]: https://github.com/vllnt/typescript/compare/v1.0.0...v2.0.0
39
52
  [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:
@@ -129,9 +132,9 @@ TypeScript 7 also removes ES5 targeting, legacy module formats and resolution, `
129
132
  | Node.js consumers | `>=22` |
130
133
  | TypeScript | `>=6.0.2 <8` |
131
134
  | 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 |
135
+ | Next.js integration | 16.4.3 |
136
+ | React integration | 19.3.1 |
137
+ | Repository development | Node.js 22.13+, pnpm 11.28.8 |
135
138
 
136
139
  ## Development
137
140
 
@@ -149,6 +152,21 @@ The checks compile every preset with TypeScript 6 and 7, verify declaration emit
149
152
  - **Minor:** additive presets or backward-compatible options.
150
153
  - **Patch:** fixes, documentation, tests, or CI changes without consumer-visible behavior changes.
151
154
 
155
+ ## Documentation and support
156
+
157
+ - [LLM index](llms.txt) · [Changelog](CHANGELOG.md)
158
+ - [Contributing](CONTRIBUTING.md) · [Issues](https://github.com/vllnt/typescript/issues)
159
+ - [Security policy and private reporting](SECURITY.md)
160
+
161
+ npm `latest` is stable `2.0.0` at this audit. `@canary` selects moving prereleases;
162
+ pin and test them before adoption. The compatibility matrix above describes
163
+ this version's tested integrations, not a requirement to use every framework.
164
+
165
+ ## Author
166
+
167
+ Built by [bntvllnt](https://github.com/bntvllnt) · [bntvllnt.com](https://bntvllnt.com).
168
+ Part of [@vllnt](https://github.com/vllnt). [Sponsor the work](https://github.com/sponsors/bntvllnt).
169
+
152
170
  ## License
153
171
 
154
- MIT
172
+ [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
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.c9d3f8e",
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/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