From bff486a78c4a0fa2f13b8e3450283f0eb80f2703 Mon Sep 17 00:00:00 2001 From: Oliver Lazoroski Date: Tue, 10 Nov 2026 11:56:50 +0100 Subject: [PATCH 1/2] fix: rebuild stale dist bundles and deprecate UMD/CDN usage The UMD bundles in dist/ had not been rebuilt since 8.4.0 and still inlined axios 1.6.1. The CI release flow (#504) bypassed the npm `version` script, which was the only thing that regenerated dist/. - rebuild dist/ (getstream 8.15.0, axios 1.20.0) - run `yarn run dist` in the initiate release workflow so every release PR carries fresh bundles - drop the unused preversion/version/postversion scripts - mark CDN / direct-download usage as deprecated in the README and add a deprecation banner to the UMD bundles --- .github/workflows/initiate_release.yml | 1 + README.md | 8 +- dist/js/getstream.js | 12168 +++++++++++++---------- dist/js_min/getstream.js | 9 +- dist/js_min/getstream.js.LICENSE.txt | 7 +- package.json | 5 +- webpack.config.js | 10 + 7 files changed, 6873 insertions(+), 5335 deletions(-) diff --git a/.github/workflows/initiate_release.yml b/.github/workflows/initiate_release.yml index ec49fad7..c048528d 100644 --- a/.github/workflows/initiate_release.yml +++ b/.github/workflows/initiate_release.yml @@ -46,6 +46,7 @@ jobs: VERSION: ${{ github.event.inputs.version }} run: | npm run changelog + yarn run dist git config --global user.name 'github-actions' git config --global user.email 'release@getstream.io' git checkout -q -b "release-$VERSION" diff --git a/README.md b/README.md index 47f3ac6e..dbf028fe 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,9 @@ or if you are using yarn yarn add getstream ``` -### Using JS deliver +### Using JS deliver (deprecated) + +> :warning: **Deprecated:** loading the UMD bundle with a ` @@ -66,7 +68,9 @@ yarn add getstream ``` -### Install by downloading the JS file +### Install by downloading the JS file (deprecated) + +> :warning: **Deprecated:** see the note above, use the npm package instead. [JS](https://raw.githubusercontent.com/GetStream/stream-js/main/dist/js/getstream.js) / [Minified JS](https://raw.githubusercontent.com/GetStream/stream-js/main/dist/js_min/getstream.js) diff --git a/dist/js/getstream.js b/dist/js/getstream.js index 75f32393..8f8a400d 100644 --- a/dist/js/getstream.js +++ b/dist/js/getstream.js @@ -1,3 +1,9 @@ +/*! + * getstream v8.15.0 + * DEPRECATED: loading this UMD bundle via diff --git a/dist/js/getstream.js b/dist/js/getstream.js index 8f8a400d..1d30813e 100644 --- a/dist/js/getstream.js +++ b/dist/js/getstream.js @@ -2,7 +2,7 @@ * getstream v8.15.0 * DEPRECATED: loading this UMD bundle via