Skip to content

Re-take the entitlement-key reader from upstream 7.0.0 (HF-307) - #1844

Merged
marcin-kordas-hoc merged 8 commits into
developfrom
hf-307-license-key-6-1-0
Nov 23, 2026
Merged

marcin-kordas-hoc merged 8 commits into
developfrom
hf-307-license-key-6-1-0

Conversation

@marcin-kordas-hoc

@marcin-kordas-hoc marcin-kordas-hoc commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Context

The PR re-takes the vendored entitlement-key reader from upstream tag 7.0.0.

  • Why: the drift check fails on develop, where every file still matches the pinned tag 5.1.1, and upstream has released newer tags since, up to 7.0.0.
  • What changed (in 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 from badge to attribution-bar, and its exported constant from BADGE_FLAG to ATTRIBUTION_BAR_FLAG, in the code, a types.ts comment and both docs. Between 6.1.0 and 6.4.0 it added the LISTED_CAPABILITIES_FLAG and BADGE_FLAG constants, exported them and documented them; between 5.1.1 and 6.1.0 only README.md changed. Against develop, the net effect is two new exported constants, LISTED_CAPABILITIES_FLAG and ATTRIBUTION_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.
  • Result: the copy is upstream's directory at 7.0.0, byte for byte, with the one declared TypeScript 4.0 cast, which still applies and is still needed. The reader reads every key as before; it keeps a flag it does not know, so a key that carries the old string still reads. HyperFormula uses neither flag: it has always gated on its tokens, which upstream's README names as the case that ignores 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 files ok at 7.0.0, exit 0. With one byte added to constants.ts, it reports the difference and exits 1.
  • tsc --noEmit: exit 0. With upstream's uncast line in extractKeyData.ts, it fails with TS2769, so the declared cast stays.
  • The license specs from the develop branch of hyperformula-tests, unchanged: 21 of 21 suites, 422 of 422 tests pass. No paired tests branch: the reader's behaviour did not change.
  • Full Jest suite: run by CI on this head, after merging develop.
  • ESLint: the directory is excluded from ESLint, as before (upstream style).

AI assistance

Claude Code made the re-take: it copied upstream's 7.0.0 files, updated upstream.json and PROVENANCE.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

  • The license test fixtures in hyperformula-tests were 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.
  • The fixture README says to drop the token stand-ins and remint once the generator accepts fun:* and feat:* tokens. The 6.x generator accepts them. Reminting is a separate change.

Types of changes

  • Breaking change (existing functionality no longer works as before) – agreed with the maintainers
  • New feature or improvement (a non-breaking change that adds functionality)
  • Bug fix (a non-breaking change that fixes an issue)
  • Additional language file, or a change to an existing language file (translations)
  • Change to the documentation

Related issues

  1. HF-307

Checklist

🤖 Generated with Claude Code

…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>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Performance comparison of head (dab07b9) vs base (bd3687b)

                                     testName |   base |   head |  change
-------------------------------------------------------------------------
                                      Sheet A | 281.68 |  286.2 |  +1.60%
                                      Sheet B |  95.56 |  96.76 |  +1.26%
                                      Sheet T |  81.63 |  83.82 |  +2.68%
                                Column ranges | 313.91 | 309.35 |  -1.45%
                                Sorted lookup | 9326.7 | 9618.9 |  +3.13%
Sheet A:  change value, add/remove row/column |   9.14 |  10.27 | +12.36%
 Sheet B: change value, add/remove row/column |   80.3 |  82.17 |  +2.33%
                   Column ranges - add column |  83.87 |  87.49 |  +4.32%
                Column ranges - without batch | 274.94 | 274.82 |  -0.04%
                        Column ranges - batch |  73.69 |  65.13 | -11.62%

@Tobiadefami Tobiadefami left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@handsontable-pr-review handsontable-pr-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

marcin-kordas-hoc and others added 2 commits November 23, 2026 04:55
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>
@marcin-kordas-hoc marcin-kordas-hoc changed the title Re-take the entitlement-key reader from upstream 6.1.0 (HF-307) Re-take the entitlement-key reader from upstream 6.4.0 (HF-307) Nov 23, 2026

@Tobiadefami Tobiadefami left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@marcin-kordas-hoc
marcin-kordas-hoc enabled auto-merge (squash) November 23, 2026 14:38
marcin-kordas-hoc and others added 2 commits November 23, 2026 15:45
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>
@marcin-kordas-hoc marcin-kordas-hoc changed the title Re-take the entitlement-key reader from upstream 6.4.0 (HF-307) Re-take the entitlement-key reader from upstream 7.0.0 (HF-307) Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.72%. Comparing base (bd3687b) to head (dab07b9).

Additional details and impacted files

Impacted file tree graph

@@           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     

see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@marcin-kordas-hoc
marcin-kordas-hoc merged commit d56fd5d into develop Nov 23, 2026
37 checks passed
@marcin-kordas-hoc
marcin-kordas-hoc deleted the hf-307-license-key-6-1-0 branch November 23, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants