From 40b0072904e6effad7599c97308e6f5b50f578ea Mon Sep 17 00:00:00 2001 From: Pierre-Anthony Lemieux Date: Sun, 4 Oct 2026 16:37:51 -0700 Subject: [PATCH] Add back missing bundles for 1.1.5 compatibility --- README.md | 3 +++ rollup.config.js | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/README.md b/README.md index 0db93f73..9140ae2d 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,9 @@ The `dist` directory contains the following build artifacts: * `imsc.debug.js`: Non-minified UMD build. * `imsc.min.js`: Minified UMD build. +* **deprecated** `imsc.all.debug.js` and `imsc.all.min.js`: Identical to + `imsc.debug.js` and `imsc.min.js`, only for compatibility with imscJS 1.x and + subject to removal in a future release. * `main/`: ES modules and TypeScript type declarations, used when the library is imported as an NPM package. ## Releases diff --git a/rollup.config.js b/rollup.config.js index 8adc92ea..d2886781 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -3,6 +3,8 @@ import nodeResolve from "@rollup/plugin-node-resolve"; import terser from "@rollup/plugin-terser"; import nodePolyfill from "rollup-plugin-polyfill-node"; +const DEPRECATED_BUNDLE_BANNER = "/*! DEPRECATED: this bundle is subject to removal in a future release; use imsc.debug.js or imsc.min.js instead. */"; + export default [ { input: "dist/main/main.js", @@ -27,6 +29,20 @@ export default [ name: "imsc", sourcemap: true, plugins: [terser()], + }, { + /* DEPRECATED: imscJS 1.x bundle names, retained for backward compatibility and subject to removal in a future release */ + file: "dist/imsc.all.debug.js", + format: "umd", + name: "imsc", + sourcemap: true, + banner: DEPRECATED_BUNDLE_BANNER, + }, { + file: "dist/imsc.all.min.js", + format: "umd", + name: "imsc", + sourcemap: true, + banner: DEPRECATED_BUNDLE_BANNER, + plugins: [terser()], }], }, ];