Repository navigation
Conversation
The live examples loaded the unpinned `hyperformula` package, which jsDelivr resolves to whatever it last cached as `latest` (up to 12 hours on the CDN, 7 days in a browser). After 4.0.0 shipped, the 4.0.0 pages kept running 3.5.0, which has no license-check skip for handsontable.com, so every example threw. The URL is now pinned to the engine version the docs are built from, read from `hyperformula/package.json`, which `code-freeze` already bumps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Note
Medium risk: Changes what engine URL every live example on the production docs site loads; a wrong pin breaks all interactive examples site-wide, but it is documentation-site config, not engine runtime code.
Full review: 1 potential issue(s).
Want a deeper review? Comment /review improve on its own line: a full review of the latest commit with an extra fix-oriented pass (about 2x the cost).
Pinning the CDN URL to the package.json version broke every live example in release-branch builds during a code freeze, because that version is not on npm until publish. Only a production build whose version is on npm now loads the engine from jsDelivr. Every other build, and a production build made before the publish (release.sh pushes master first), serves the engine it was built with from hyperformula/dist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1952 +/- ##
===========================================
+ Coverage 97.76% 97.78% +0.01%
===========================================
Files 212 212
Lines 19312 19316 +4
Branches 4561 4597 +36
===========================================
+ Hits 18881 18888 +7
+ Misses 423 420 -3
Partials 8 8 🚀 New features to boost your workflow:
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperformula-docs | 7bceb8c | Commit Preview URL Branch Preview URL |
Dec 03 2026, 08:13 AM |
Performance comparison of head (7bceb8c) vs base (f59b0fa) |
This branch has not been deployed
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.
Context
The live examples in the docs loaded
https://cdn.jsdelivr.net/npm/hyperformula/dist/...with no version. jsDelivr resolves a bare package name to whatever it last cached aslatest: up to 12 hours on the CDN (s-maxage=43200) and 7 days in a browser (max-age=604800). After 4.0.0 was published, the 4.0.0 pages kept loading 3.5.0 (x-jsd-version: 3.5.0). 3.5.0 has no license-check skip for handsontable.com, so every example threwLicense key is missing. Feature crud is not available.A manual jsDelivr purge fixed production for now. This change stops it from happening again.Where the live examples load the engine from is now decided in
docs/src/engine-scripts.mjs:master) loadshyperformula@<version>from jsDelivr, for the engine,enUS.jsandfrFR.js. The version is the one the docs are built from (DOCS_DATA.version, fromhyperformula/package.json), andnpm run release -- code-freezealready bumps it in step 3. So the release script moves the pin with every release, and there is no second copy of the version to keep in sync.astro dev) serves the engine it was built with, fromhyperformula/dist, under<base>engine/. During a code freeze the release branch carries a version that is not on npm yet. Those builds now run the new examples against the new engine; before, they ran them against the previous release.release.sh publishpushesmaster(step 5) beforenpm publish(step 7). Without this check the build started by that push would point every example at a version jsDelivr can't serve, for as long as the publish takes, or for good if it never happens. The cost is that that one deploy self-hosts until the next deploy. It runs the same engine either way.Alternatives rejected:
hyperformula@4(a major range): still cached for days after a minor release.How did you test your changes?
npx astro buildindocs/passes (229 pages), and the log shows[engine-assets] Copied the engine from .../hyperformula/dist.npx astro previewof that build:guide/demo.htmlloads/docs/hyperformula/engine/{hyperformula.full.min.js,languages/enUS.js,languages/frFR.js}, and all 3 return 200.resolveUsesCdn+engineScripts, called fromnode:master+4.0.0giveshttps://cdn.jsdelivr.net/npm/hyperformula@4.0.0/dist/....master+ an unpublished version gives/docs/hyperformula/engine/..., with a warning.developand unset branch give/docs/hyperformula/engine/....httpserver: it servesengine/languages/frFR.js?v=1with 200 andtext/javascript. It passesengine/../package.jsonand other paths on (404).curlreturns 200 for the 3 pinnedhyperformula@4.0.0jsDelivr URLs. I loadedhyperformula@4.0.0on the live demo page and=A1*3evaluates to6with no license error.npm run lintandnpm run docs:lintpass.AI assistance
Claude Code wrote the config change, the docs edits and this description.
Compatibility with Excel and Google Sheets
Not applicable.
Public API changes
None.
Out of scope and follow-ups
momentstays unpinned. It is not ours, and its releases don't break the examples.npm run docs:deploy:cffrom a laptop) has noWORKERS_CI_BRANCH, so it self-hosts the localhyperformula/dist. Every page in such a deploy comes from the local tree anyway, so this adds no new risk. A guard on manual production deploys would be a separate change.Types of changes
Related issues
None.
Checklist
dev-docs/pages this change affects – or none needed it.🤖 Generated with Claude Code