Repository navigation
Re-take the entitlement-key reader from upstream 7.0.0 (HF-307) - #1844
Conversation
…6.1.0 The reader in hyperformula/src/license/handsontable-license-key-parser/ is now upstream's vendor/entitlement-key-reader at tag 6.1.0. Between 5.1.1 and 6.1.0 only README.md changed in that directory, so the reader code, the one declared TypeScript 4.0 cast and HyperFormula's behaviour stay the same. The pin in upstream.json and the table in PROVENANCE.md name the new tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperformula-docs | dab07b9 | Commit Preview URL Branch Preview URL |
Nov 23 2026, 04:54 PM |
Performance comparison of head (dab07b9) vs base (bd3687b) |
Tobiadefami
left a comment
There was a problem hiding this comment.
hyperformula-tests/unit/license/state-table/README.md:72
Non-blocking: after this merges, mint-license-fixtures.script.js still pins EXPECTED_TAG = '5.1.1', so it refuses to run against the reader we vendor (state-table README steps 3–7 pair the two). Could you link a follow-up task for the remint and the RETOKEN removal under "Out of scope and follow-ups", so it doesn't get lost?
There was a problem hiding this comment.
Tip
Low risk: Only the vendored README, the pin metadata in upstream.json, and PROVENANCE.md change; no reader code, build, or runtime path is touched, so license validation behavior is unchanged.
Full review: no issues found.
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).
Upstream 6.2.0-6.4.0 add the LISTED_CAPABILITIES_FLAG and BADGE_FLAG constants, export them, and document them; the reader's behaviour is unchanged. HyperFormula has always gated on its tokens and has no badge, so it uses neither. The one declared divergence in extractKeyData.ts still applies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tobiadefami
left a comment
There was a problem hiding this comment.
The re-take itself looks good: it only adds two constants the engine doesn't read, plus upstream's docs, and the license specs pass unchanged.
One blocking point: the description is missing the template's ### AI assistance section. Please add it, and I'll approve right away.
Upstream 7.0.0 renames the "Powered by" bar flag from `badge` to `attribution-bar`, and its exported constant from BADGE_FLAG to ATTRIBUTION_BAR_FLAG, in constants.ts, index.ts, the types.ts comment, README.md and AGENTS.md. Nothing else in the reader changes: it verifies and reads every key as before, and keeps any flag it does not know. HyperFormula has no bar and never imported the constant, so its behaviour is unchanged. The one declared divergence in extractKeyData.ts still applies. 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 #1844 +/- ##
========================================
Coverage 97.72% 97.72%
========================================
Files 212 212
Lines 18596 18596
Branches 4384 4351 -33
========================================
Hits 18173 18173
+ Misses 423 415 -8
- Partials 0 8 +8 🚀 New features to boost your workflow:
|
Context
The PR re-takes the vendored entitlement-key reader from upstream tag 7.0.0.
driftcheck fails ondevelop, where every file still matches the pinned tag 5.1.1, and upstream has released newer tags since, up to 7.0.0.hyperformula/src/license/handsontable-license-key-parser/):README.md,AGENTS.md,constants.ts,grants.ts,index.ts,types.ts: upstream's files at 7.0.0. Between 6.4.0 and 7.0.0 upstream renamed the "Powered by" bar flag frombadgetoattribution-bar, and its exported constant fromBADGE_FLAGtoATTRIBUTION_BAR_FLAG, in the code, atypes.tscomment and both docs. Between 6.1.0 and 6.4.0 it added theLISTED_CAPABILITIES_FLAGandBADGE_FLAGconstants, exported them and documented them; between 5.1.1 and 6.1.0 onlyREADME.mdchanged. Againstdevelop, the net effect is two new exported constants,LISTED_CAPABILITIES_FLAGandATTRIBUTION_BAR_FLAG, and their docs.upstream.json: the pin names tag 7.0.0 and its commit.PROVENANCE.md: the table names the new tag.listed-capabilities, and it has no "Powered by" bar. No HyperFormula code imports the renamed constant.Upstream's 7.0.0 is a major release because the flag is renamed in its key generator and in the reader's exported constant. It does not change the payload format, the checksum, the prose digest, or the reader's rules. Its 6.0.0 major release changed the key generator (prose templates, record fields, default schema), not the reader or the payload format.
How did you test your changes?
node hyperformula/script/check-license-key-parser-drift.js: 13 filesokat 7.0.0, exit 0. With one byte added toconstants.ts, it reports the difference and exits 1.tsc --noEmit: exit 0. With upstream's uncast line inextractKeyData.ts, it fails withTS2769, so the declared cast stays.developbranch ofhyperformula-tests, unchanged: 21 of 21 suites, 422 of 422 tests pass. No paired tests branch: the reader's behaviour did not change.develop.AI assistance
Claude Code made the re-take: it copied upstream's 7.0.0 files, updated
upstream.jsonandPROVENANCE.md, and wrote this description. All three non-merge commits on this branch carry its co-author line.Compatibility with Excel and Google Sheets
Not applicable.
Public API changes
None.
Out of scope and follow-ups
hyperformula-testswere minted with license-key 5.1.1. They read the same with this reader, but their header says 5.1.1 is the version HyperFormula vendors.fun:*andfeat:*tokens. The 6.x generator accepts them. Reminting is a separate change.Types of changes
Related issues
Checklist
dev-docs/pages this change affects – or none needed it.🤖 Generated with Claude Code