fix(runtime): sync CDN CSS version#64
Merged
demtario merged 1 commit intoJul 17, 2026
Merged
Conversation
budnix
approved these changes
Jul 17, 2026
demtario
merged commit Jul 17, 2026
2a515e1
into
feature/DEV-2099_Versioned-docs-examples
2 checks passed
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.
Summary
Task: https://app.clickup.com/t/9015210959/DEV-2103
Test plan
pnpm testpnpm --filter @handsontable/demo-runtime typecheckpnpm --filter @handsontable/demo-editor-shell typecheckpnpm --filter @handsontable/demo-authoring typecheckPR intentionally merged into another feature branch, to not break production logic with partial changes.
Note
Low Risk
Localized, pure string rewrite on demo file maps with tests; no auth or persistence changes beyond keeping preview assets in sync.
Overview
Fixes a version-switch bug where npm deps were repinned but baked unpkg CSS in HTML stayed on the old semver, so previews could load mismatched JS and styles.
Adds
applyHandsontableCss, which rewritesunpkg.com/handsontable@…/dist/handsontable.full.min.cssin/index.htmlor/src/index.htmlto match the selected version. It is a no-op for pkg.pr.new builds (not on unpkg) and returns the input unchanged when there is nothing to rewrite.The transform is chained after
applyHandsontableVersionin authoring (versionuseEffect, including HTML in the “no change” check), SandpackRuntime, and ContainerRuntime, and is exported from@handsontable/demo-runtime.runner/pipeline/version.test.mjscovers root vssrc/HTML and the no-op cases.Reviewed by Cursor Bugbot for commit da85cf2. Bugbot is set up for automated code reviews on this repo. Configure here.