Repository navigation
fix: rebuild stale dist bundles and deprecate UMD/CDN usage - #672
Merged
Merged
Conversation
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
oliverlaz
requested review from
JimmyPettersson85,
MartinCupela and
itsmeadi
as code owners
November 10, 2026 10:57
Contributor
|
Size Change: +17.8 kB (+16.27%) Total Size: 127 kB 📦 View Changed
|
JimmyPettersson85
approved these changes
Nov 10, 2026
- remove stale dist/js_min/getstream.js.LICENSE.txt (no longer emitted) - stage dist/ explicitly in the release workflow so newly emitted files aren't dropped by `git commit -a` - fix the deprecation banner link (README has no #installation anchor) - clarify in README that the UMD bundle is still published but deprecated
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The UMD browser bundles in
dist/(dist/js/getstream.js,dist/js_min/getstream.js) haven't been rebuilt since 8.4.0. They still embedPACKAGE_VERSION8.4.0and inline axios 1.6.1. Meanwhilepackage.json/yarn.lockare on axios 1.20.0, sonpm auditand other dependency scanners can't see the old copy. Every release since 8.4.1 has shipped these stale bundles to npm and jsDelivr.Related: #671
Root cause
dist/is committed to git, and the only automated rebuild was the npmversionlifecycle script (yarn run dist && yarn run build && git add dist). When releases moved to GitHub Actions (#504), the workflows started runningnpm run changelogandnpm publish, and neither triggersversion. After that,dist/only got refreshed when someone ranyarn distby hand in a feature PR. The last time was #587 (Nov 2023).Changes
dist/. The bundles now embed getstream 8.15.0 and axios 1.20.0.dist/js_min/getstream.js.LICENSE.txt. The current build doesn't create this file and the minified bundle no longer references it.initiate_release.ymlnow runsyarn run distright afternpm run changelog, so every release PR carries rebuilt bundles with the new version. It also runsgit add distbeforegit commit -am, so new files a build creates underdist/aren't left out.preversion/version/postversionscripts./*! … DEPRECATED … */banner linking to the README. It's added after minification, so terser doesn't move it into aLICENSE.txt.Notes
dist/js/getstream.jsdiff is large because the bundle is about two years of dependency updates behind.??) from axios. All browser targets in.babelrc(Chrome ≥ 80, Firefox ≥ 74, Safari ≥ 13.4) support it.