From 1a81642521ee869a5228168cb69fd16ec33563d7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2026 12:03:12 +0000 Subject: [PATCH] chore(release): new release --- .changeset/asset-imports-keep-graph.md | 5 -- .changeset/assets-named-by-typescript.md | 5 -- .changeset/cli-checks-one-run.md | 5 -- .changeset/document-making-it-faster.md | 5 -- .changeset/document-skip-lib-check.md | 5 -- .changeset/eslint-lints-once.md | 5 -- .changeset/first-edit-face.md | 5 -- .changeset/import-graph-resolution-cache.md | 5 -- .changeset/import-graph-typescript-7.md | 5 -- .changeset/module-collection-set.md | 5 -- .changeset/quiet-edits-reach-no-importers.md | 5 -- .../reads-across-files-for-every-check.md | 5 -- .../ts-declaration-diagnostics-affected.md | 5 -- .changeset/ts-keep-state-between-runs.md | 5 -- .../ts-share-program-across-compilers.md | 5 -- .changeset/ts-skip-unrelated-rebuild.md | 5 -- .changeset/typed-lint-cache-opt-in.md | 5 -- .changeset/typed-lint-results-between-runs.md | 5 -- .../typed-lint-what-a-change-reaches.md | 5 -- .changeset/typescript-7.md | 5 -- CHANGELOG.md | 46 +++++++++++++++++++ package.json | 2 +- 22 files changed, 47 insertions(+), 101 deletions(-) delete mode 100644 .changeset/asset-imports-keep-graph.md delete mode 100644 .changeset/assets-named-by-typescript.md delete mode 100644 .changeset/cli-checks-one-run.md delete mode 100644 .changeset/document-making-it-faster.md delete mode 100644 .changeset/document-skip-lib-check.md delete mode 100644 .changeset/eslint-lints-once.md delete mode 100644 .changeset/first-edit-face.md delete mode 100644 .changeset/import-graph-resolution-cache.md delete mode 100644 .changeset/import-graph-typescript-7.md delete mode 100644 .changeset/module-collection-set.md delete mode 100644 .changeset/quiet-edits-reach-no-importers.md delete mode 100644 .changeset/reads-across-files-for-every-check.md delete mode 100644 .changeset/ts-declaration-diagnostics-affected.md delete mode 100644 .changeset/ts-keep-state-between-runs.md delete mode 100644 .changeset/ts-share-program-across-compilers.md delete mode 100644 .changeset/ts-skip-unrelated-rebuild.md delete mode 100644 .changeset/typed-lint-cache-opt-in.md delete mode 100644 .changeset/typed-lint-results-between-runs.md delete mode 100644 .changeset/typed-lint-what-a-change-reaches.md delete mode 100644 .changeset/typescript-7.md diff --git a/.changeset/asset-imports-keep-graph.md b/.changeset/asset-imports-keep-graph.md deleted file mode 100644 index a2b10328..00000000 --- a/.changeset/asset-imports-keep-graph.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Keep linting again only what a change reaches in a project importing stylesheets, images or other assets: such an import, which TypeScript resolves to nothing, counted as an import yet to resolve and made every rebuild lint every file again. diff --git a/.changeset/assets-named-by-typescript.md b/.changeset/assets-named-by-typescript.md deleted file mode 100644 index e3163fc8..00000000 --- a/.changeset/assets-named-by-typescript.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Tell an asset import from a script one by the extensions TypeScript itself reads, rather than by a list of asset kinds: an import of any other kind of file (`./data.toml`, say) no longer makes every rebuild lint every file again. diff --git a/.changeset/cli-checks-one-run.md b/.changeset/cli-checks-one-run.md deleted file mode 100644 index fc723bb4..00000000 --- a/.changeset/cli-checks-one-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Hand Biome and oxlint every file at once when webpack is done building them, rather than in batches while it builds: each batch was a process of its own reading the configuration, and for Biome the project, again. diff --git a/.changeset/document-making-it-faster.md b/.changeset/document-making-it-faster.md deleted file mode 100644 index 20cb4dd0..00000000 --- a/.changeset/document-making-it-faster.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Document what settings outside the plugin make it faster: `skipLibCheck`, ESLint's `cacheStrategy: "content"` where CI restores the cache, and `NODE_COMPILE_CACHE`. diff --git a/.changeset/document-skip-lib-check.md b/.changeset/document-skip-lib-check.md deleted file mode 100644 index 75d7b234..00000000 --- a/.changeset/document-skip-lib-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Document `skipLibCheck` for the TypeScript check, which `fork-ts-checker-webpack-plugin` turns on whatever the config file says. diff --git a/.changeset/eslint-lints-once.md b/.changeset/eslint-lints-once.md deleted file mode 100644 index 103b00be..00000000 --- a/.changeset/eslint-lints-once.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Hand ESLint every file at once when it threads the lint itself, rather than in batches while webpack builds: each batch started ESLint's workers and loaded the configuration and its plugins again. A new adapter hook, `lintsOnce(options)`, says so for any check. diff --git a/.changeset/first-edit-face.md b/.changeset/first-edit-face.md deleted file mode 100644 index 09fd9bbe..00000000 --- a/.changeset/first-edit-face.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Leave the importers of a file be on its first edit in a watch too when what it shows them does not change, rather than only from its second edit on: what each file held is kept once the first build of the watch is over. In a project whose `tsconfig.json` sets `allowJs`, or a `rootDir` a file is outside of, what a TypeScript file shows its importers could not be read at all, so every edit linted every file importing it again; it is now read without the project's own compiler options. Over three hundred modules under typed linting, the first edit of a function's body took a rebuild from 2.0–2.2 s to 0.27–0.35 s. diff --git a/.changeset/import-graph-resolution-cache.md b/.changeset/import-graph-resolution-cache.md deleted file mode 100644 index 21c150db..00000000 --- a/.changeset/import-graph-resolution-cache.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Resolve the imports of every file in a pass of the import graph through one module resolution cache per set of compiler options, rather than looking up the same package or shared module again for every file importing it. diff --git a/.changeset/import-graph-typescript-7.md b/.changeset/import-graph-typescript-7.md deleted file mode 100644 index 1aeb19e0..00000000 --- a/.changeset/import-graph-typescript-7.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Lint every file again, rather than fail, where a project's TypeScript is the native TypeScript 7, which has no API to read what a file imports through: a check reading across files failed with `Cannot read properties of undefined (reading 'readFile')`. diff --git a/.changeset/module-collection-set.md b/.changeset/module-collection-set.md deleted file mode 100644 index e7efbb92..00000000 --- a/.changeset/module-collection-set.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Tell a module's file already listed for a check by a set rather than by searching the list, which made collecting files quadratic in the number of modules: 7 s of a 17 s build of 20,000 modules with three checks. diff --git a/.changeset/quiet-edits-reach-no-importers.md b/.changeset/quiet-edits-reach-no-importers.md deleted file mode 100644 index d7e67eaf..00000000 --- a/.changeset/quiet-edits-reach-no-importers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": minor ---- - -Lint again the importers of a file changed while webpack watches only when what it shows them changes — the declarations it emits and what it imports — rather than on every edit, such as one to the body of a function or a comment. diff --git a/.changeset/reads-across-files-for-every-check.md b/.changeset/reads-across-files-for-every-check.md deleted file mode 100644 index 30b5d9fd..00000000 --- a/.changeset/reads-across-files-for-every-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": minor ---- - -Lint again every file a change reaches for any check whose results can turn on other files, not only ESLint's typed linting: oxlint with type-aware rules or the import plugin, and Biome, whose project rules read other files. The import graph moves into the plugin, and a new shared `readsAcrossFiles` option answers for any check, including one of your own. diff --git a/.changeset/ts-declaration-diagnostics-affected.md b/.changeset/ts-declaration-diagnostics-affected.md deleted file mode 100644 index 6879cdb1..00000000 --- a/.changeset/ts-declaration-diagnostics-affected.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Work out the declaration diagnostics of a TypeScript rebuild only for the files a change reached, rather than emitting the declarations of the whole program each time. diff --git a/.changeset/ts-keep-state-between-runs.md b/.changeset/ts-keep-state-between-runs.md deleted file mode 100644 index 4631c237..00000000 --- a/.changeset/ts-keep-state-between-runs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": minor ---- - -Keep what the TypeScript check found between runs in the cache, as a `.tsbuildinfo` for each config file that the next run starts from, so that a second `webpack` run or a restarted dev server checks only what changed since. `cache: false` turns it off. diff --git a/.changeset/ts-share-program-across-compilers.md b/.changeset/ts-share-program-across-compilers.md deleted file mode 100644 index 912b9bd8..00000000 --- a/.changeset/ts-share-program-across-compilers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": minor ---- - -Share the TypeScript check's worker, and the program it holds, between the compilers of a `MultiCompiler` whose TypeScript checks are configured alike. Before, each compiler built and kept its own program. Over 600 files, two compilers building one after the other went through a watch with one rebuild in 5.6–5.8 s, 9.8–10.4 CPU-seconds and 467–483 MB, against 9.7–10.3 s, 18.7–20.0 CPU-seconds and 803–853 MB. Under TypeScript 7 the native compiler's process is shared the same way. diff --git a/.changeset/ts-skip-unrelated-rebuild.md b/.changeset/ts-skip-unrelated-rebuild.md deleted file mode 100644 index a0fcd65c..00000000 --- a/.changeset/ts-skip-unrelated-rebuild.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Report what the TypeScript check found last time on a watch rebuild that changed nothing the program reads or would pick up, such as a stylesheet, rather than parsing the config file and building the program again to learn that. diff --git a/.changeset/typed-lint-cache-opt-in.md b/.changeset/typed-lint-cache-opt-in.md deleted file mode 100644 index 5c46e191..00000000 --- a/.changeset/typed-lint-cache-opt-in.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": minor ---- - -Keep ESLint's cache for typed linting when `cache: true` is written down and no TypeScript is installed to follow imports with, trading results in files whose imports changed for speed, as `eslint-webpack-plugin` does. diff --git a/.changeset/typed-lint-results-between-runs.md b/.changeset/typed-lint-results-between-runs.md deleted file mode 100644 index deefba5b..00000000 --- a/.changeset/typed-lint-results-between-runs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": patch ---- - -Keep the results of typed linting between runs, against everything each file imports rather than in ESLint's cache, so that a second `webpack` run lints only the files a change reaches instead of all of them again. diff --git a/.changeset/typed-lint-what-a-change-reaches.md b/.changeset/typed-lint-what-a-change-reaches.md deleted file mode 100644 index fd5b5670..00000000 --- a/.changeset/typed-lint-what-a-change-reaches.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": minor ---- - -Lint again only the files a change reaches under typed linting — the ones that changed and every file importing them, read with the project's own TypeScript — rather than every file the check covers. diff --git a/.changeset/typescript-7.md b/.changeset/typescript-7.md deleted file mode 100644 index 5f1d9e12..00000000 --- a/.changeset/typescript-7.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"diagnostics-webpack-plugin": minor ---- - -Support TypeScript 7 in the TypeScript check, from 7.1. TypeScript 7 has no compiler API in JavaScript, so the check failed to load it at all. The check now runs the native compiler through the API TypeScript ships, `typescript/async`, in a process of its own that stays open while webpack watches and is told which files webpack saw change, and prints diagnostics with TypeScript's own formatter. `build`, a writing `mode`, and compiler options written in the plugin are reported as unsupported under TypeScript 7. TypeScript 7.0, which shipped that API only as an unstable preview, is reported as having no API to check with. Over 600 files, a one-shot build took 1.2–1.3 s on TypeScript 7.1, against 3.8 s on TypeScript 6 without its saved state. diff --git a/CHANGELOG.md b/CHANGELOG.md index e84b8936..25cfc920 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,51 @@ # Changelog +## 1.1.0 + +### Minor Changes + +- Lint again the importers of a file changed while webpack watches only when what it shows them changes — the declarations it emits and what it imports — rather than on every edit, such as one to the body of a function or a comment. (by [@alexander-akait](https://github.com/alexander-akait) in [#381](https://github.com/webpack/diagnostics-webpack-plugin/pull/381)) + +- Lint again every file a change reaches for any check whose results can turn on other files, not only ESLint's typed linting: oxlint with type-aware rules or the import plugin, and Biome, whose project rules read other files. The import graph moves into the plugin, and a new shared `readsAcrossFiles` option answers for any check, including one of your own. (by [@alexander-akait](https://github.com/alexander-akait) in [#373](https://github.com/webpack/diagnostics-webpack-plugin/pull/373)) + +- Keep what the TypeScript check found between runs in the cache, as a `.tsbuildinfo` for each config file that the next run starts from, so that a second `webpack` run or a restarted dev server checks only what changed since. `cache: false` turns it off. (by [@alexander-akait](https://github.com/alexander-akait) in [#383](https://github.com/webpack/diagnostics-webpack-plugin/pull/383)) + +- Share the TypeScript check's worker, and the program it holds, between the compilers of a `MultiCompiler` whose TypeScript checks are configured alike. Before, each compiler built and kept its own program. Over 600 files, two compilers building one after the other went through a watch with one rebuild in 5.6–5.8 s, 9.8–10.4 CPU-seconds and 467–483 MB, against 9.7–10.3 s, 18.7–20.0 CPU-seconds and 803–853 MB. Under TypeScript 7 the native compiler's process is shared the same way. (by [@alexander-akait](https://github.com/alexander-akait) in [#392](https://github.com/webpack/diagnostics-webpack-plugin/pull/392)) + +- Keep ESLint's cache for typed linting when `cache: true` is written down and no TypeScript is installed to follow imports with, trading results in files whose imports changed for speed, as `eslint-webpack-plugin` does. (by [@alexander-akait](https://github.com/alexander-akait) in [#369](https://github.com/webpack/diagnostics-webpack-plugin/pull/369)) + +- Lint again only the files a change reaches under typed linting — the ones that changed and every file importing them, read with the project's own TypeScript — rather than every file the check covers. (by [@alexander-akait](https://github.com/alexander-akait) in [#370](https://github.com/webpack/diagnostics-webpack-plugin/pull/370)) + +- Support TypeScript 7 in the TypeScript check, from 7.1. TypeScript 7 has no compiler API in JavaScript, so the check failed to load it at all. The check now runs the native compiler through the API TypeScript ships, `typescript/async`, in a process of its own that stays open while webpack watches and is told which files webpack saw change, and prints diagnostics with TypeScript's own formatter. `build`, a writing `mode`, and compiler options written in the plugin are reported as unsupported under TypeScript 7. TypeScript 7.0, which shipped that API only as an unstable preview, is reported as having no API to check with. Over 600 files, a one-shot build took 1.2–1.3 s on TypeScript 7.1, against 3.8 s on TypeScript 6 without its saved state. (by [@alexander-akait](https://github.com/alexander-akait) in [#392](https://github.com/webpack/diagnostics-webpack-plugin/pull/392)) + +### Patch Changes + +- Keep linting again only what a change reaches in a project importing stylesheets, images or other assets: such an import, which TypeScript resolves to nothing, counted as an import yet to resolve and made every rebuild lint every file again. (by [@alexander-akait](https://github.com/alexander-akait) in [#382](https://github.com/webpack/diagnostics-webpack-plugin/pull/382)) + +- Tell an asset import from a script one by the extensions TypeScript itself reads, rather than by a list of asset kinds: an import of any other kind of file (`./data.toml`, say) no longer makes every rebuild lint every file again. (by [@alexander-akait](https://github.com/alexander-akait) in [#392](https://github.com/webpack/diagnostics-webpack-plugin/pull/392)) + +- Hand Biome and oxlint every file at once when webpack is done building them, rather than in batches while it builds: each batch was a process of its own reading the configuration, and for Biome the project, again. (by [@alexander-akait](https://github.com/alexander-akait) in [#392](https://github.com/webpack/diagnostics-webpack-plugin/pull/392)) + +- Document what settings outside the plugin make it faster: `skipLibCheck`, ESLint's `cacheStrategy: "content"` where CI restores the cache, and `NODE_COMPILE_CACHE`. (by [@alexander-akait](https://github.com/alexander-akait) in [#388](https://github.com/webpack/diagnostics-webpack-plugin/pull/388)) + +- Document `skipLibCheck` for the TypeScript check, which `fork-ts-checker-webpack-plugin` turns on whatever the config file says. (by [@alexander-akait](https://github.com/alexander-akait) in [#368](https://github.com/webpack/diagnostics-webpack-plugin/pull/368)) + +- Hand ESLint every file at once when it threads the lint itself, rather than in batches while webpack builds: each batch started ESLint's workers and loaded the configuration and its plugins again. A new adapter hook, `lintsOnce(options)`, says so for any check. (by [@alexander-akait](https://github.com/alexander-akait) in [#377](https://github.com/webpack/diagnostics-webpack-plugin/pull/377)) + +- Leave the importers of a file be on its first edit in a watch too when what it shows them does not change, rather than only from its second edit on: what each file held is kept once the first build of the watch is over. In a project whose `tsconfig.json` sets `allowJs`, or a `rootDir` a file is outside of, what a TypeScript file shows its importers could not be read at all, so every edit linted every file importing it again; it is now read without the project's own compiler options. Over three hundred modules under typed linting, the first edit of a function's body took a rebuild from 2.0–2.2 s to 0.27–0.35 s. (by [@alexander-akait](https://github.com/alexander-akait) in [#393](https://github.com/webpack/diagnostics-webpack-plugin/pull/393)) + +- Resolve the imports of every file in a pass of the import graph through one module resolution cache per set of compiler options, rather than looking up the same package or shared module again for every file importing it. (by [@alexander-akait](https://github.com/alexander-akait) in [#385](https://github.com/webpack/diagnostics-webpack-plugin/pull/385)) + +- Lint every file again, rather than fail, where a project's TypeScript is the native TypeScript 7, which has no API to read what a file imports through: a check reading across files failed with `Cannot read properties of undefined (reading 'readFile')`. (by [@alexander-akait](https://github.com/alexander-akait) in [#392](https://github.com/webpack/diagnostics-webpack-plugin/pull/392)) + +- Tell a module's file already listed for a check by a set rather than by searching the list, which made collecting files quadratic in the number of modules: 7 s of a 17 s build of 20,000 modules with three checks. (by [@alexander-akait](https://github.com/alexander-akait) in [#376](https://github.com/webpack/diagnostics-webpack-plugin/pull/376)) + +- Work out the declaration diagnostics of a TypeScript rebuild only for the files a change reached, rather than emitting the declarations of the whole program each time. (by [@alexander-akait](https://github.com/alexander-akait) in [#378](https://github.com/webpack/diagnostics-webpack-plugin/pull/378)) + +- Report what the TypeScript check found last time on a watch rebuild that changed nothing the program reads or would pick up, such as a stylesheet, rather than parsing the config file and building the program again to learn that. (by [@alexander-akait](https://github.com/alexander-akait) in [#379](https://github.com/webpack/diagnostics-webpack-plugin/pull/379)) + +- Keep the results of typed linting between runs, against everything each file imports rather than in ESLint's cache, so that a second `webpack` run lints only the files a change reaches instead of all of them again. (by [@alexander-akait](https://github.com/alexander-akait) in [#375](https://github.com/webpack/diagnostics-webpack-plugin/pull/375)) + ## 1.0.2 ### Patch Changes diff --git a/package.json b/package.json index 3f6b45c1..7440d256 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "diagnostics-webpack-plugin", - "version": "1.0.2", + "version": "1.1.0", "description": "Runs linters, type checkers and other diagnostic tools over your sources during the webpack build", "keywords": [ "diagnostics",