From ebdd818163a06455d52c949c6be33ed9424e971f Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Mon, 19 Oct 2026 15:46:29 -0400 Subject: [PATCH] refactor(build)!: remove deprecated vtk-lite alias BREAKING CHANGE: vtk-lite.js is no longer produced. Use vtk.js for script URLs, copied assets, and imports instead. --- BREAKING_CHANGES.md | 1 + Utilities/build/vtk-plugins.mjs | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/BREAKING_CHANGES.md b/BREAKING_CHANGES.md index 6aaac730201..eea0954c81b 100644 --- a/BREAKING_CHANGES.md +++ b/BREAKING_CHANGES.md @@ -1,5 +1,6 @@ ## From 37.x to 38 +- **`vtk-lite.js` removed.** Use `vtk.js` for script/CDN URLs and copied assets. Replace `vtk.js/vtk-lite.js` imports or requires with `vtk.js/vtk.js` or the package entry. Both files have contained the full UMD bundle since 36. - **TypeScript declarations**: expanded coverage and corrected types may expose build errors. Remove conflicting local declaration shims and fix code rejected by the new types. - **TypeScript libraries**: typed-array factories now declare BigInt support. Add `ES2020.BigInt` if your `lib` list does not include `ES2020` or later. Your `target` can stay unchanged. - **Accessor types**: `setXFrom` methods and setters that return no value now declare `void`. Getter types include `null` or `undefined` where applicable. diff --git a/Utilities/build/vtk-plugins.mjs b/Utilities/build/vtk-plugins.mjs index ad672f3acde..93c1cad61c3 100644 --- a/Utilities/build/vtk-plugins.mjs +++ b/Utilities/build/vtk-plugins.mjs @@ -226,12 +226,6 @@ export function copyUmdAssetsPlugin({ umdOutputDir, projectRoot }) { delete pkg.type; delete pkg.types; }); - - // vtk-lite.js is a deprecated alias of vtk.js; see BREAKING_CHANGES.md. - const vtkBundle = path.join(umdOutputDir, 'vtk.js'); - if (fs.existsSync(vtkBundle)) { - fs.copyFileSync(vtkBundle, path.join(umdOutputDir, 'vtk-lite.js')); - } }, }; }