Skip to content

TMP release merge preview - #1926

Open
sequba wants to merge 94 commits into
masterfrom
release/4.0.0
Open

sequba wants to merge 94 commits into
masterfrom
release/4.0.0

Conversation

@sequba

@sequba sequba commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Context

How did you test your changes?

Types of changes

  • Breaking change (a fix or a feature because of which an existing functionality doesn't work as expected anymore)
  • 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. Fixes #...

Checklist:

  • I have reviewed the guidelines about Contributing to HyperFormula and I confirm that my code follows the code style of this project.
  • I have signed the Contributor License Agreement.
  • My change is compliant with the OpenDocument standard.
  • My change is compatible with Microsoft Excel.
  • My change is compatible with Google Sheets.
  • I described my changes in the CHANGELOG.md file.
  • My changes require a documentation update.
  • My changes require a migration guide.

sequba and others added 30 commits October 9, 2026 12:05
…1781)

### Context
`EDATE` clamps the day of the shifted date so it does not exceed the
length of the target month, but the clamp used a static month-length
table in which February always has 28 days. Any result that landed in
February of a leap year was therefore one day short:

| Formula | Before | After (matches OpenDocument 6.10.8, Excel, Google
Sheets) |
|---|---|---|
| `=EDATE(DATE(2028, 1, 31), 1)` | 2028-02-28 | 2028-02-29 |
| `=EDATE(DATE(2028, 3, 31), -1)` | 2028-02-28 | 2028-02-29 |
| `=EDATE(DATE(2028, 1, 29), 1)` | 2028-02-28 | 2028-02-29 |
| `=EDATE(DATE(2000, 1, 31), 1)` | 2000-02-28 | 2000-02-29 |
| `=EDATE(DATE(2100, 1, 31), 1)` | 2100-02-28 | 2100-02-28 (unchanged) |
| `=EOMONTH(DATE(2028, 1, 31), 1)` | 2028-02-29 | 2028-02-29 (unchanged)
|

The fix moves `truncateDayInMonth` from a module-level function onto
`DateTimeHelper`, where it can call the existing leap-aware
`daysInMonth()`. That helper already honours the `leapYear1900` option,
so with that option on, `=EDATE(DATE(1900, 1, 31), 1)` now returns 29
February 1900 (serial `60` with `nullDate` 1899-12-31), the same result
`EOMONTH` already gave for that month. This is HyperFormula's own
`leapYear1900` model, not Excel behaviour: Excel keeps the 1900 leap day
only in its serial-to-date mapping (`DAY(60)` is 29) and its month
arithmetic treats February 1900 as 28 days, so Excel returns 28 February
(serial `59`) for both functions. The difference is now recorded in
`docs/guide/list-of-differences.md`, covering `EDATE` and `EOMONTH`.
`EOMONTH` already used `daysInMonth()` through `endOfMonth()` and is
unchanged. The removed function was not exported from the package entry
point, so there is no public API change.

### How did you test your changes?
- New specs in the paired `hyperformula-tests` branch
(`fix/edate-leap-year-february`): handsontable/hyperformula-tests#67.
They cover forward and backward shifts into a leap-year February, the
29th and 30th day boundaries, the 400-year and 100-year rules, a leap
day shifted into a non-leap year, and both `leapYear1900` settings. Six
of the nine fail on `develop` and all pass with this change.
- `function-edate`, `function-eomonth`, and `date` specs: 67 passed.
- `npm run lint`: 0 errors, no new warnings. `npm run verify:typings`:
clean.
- Verified the table above by evaluating the formulas against the
patched `src/` with `ts-node`.

### Types of changes
- [ ] Breaking change (a fix or a feature because of which an existing
functionality doesn't work as expected anymore)
- [ ] New feature or improvement (a non-breaking change that adds
functionality)
- [x] 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. No tracked issue; found while comparing `EDATE` output against other
spreadsheet implementations.

### Checklist:
- [x] I have reviewed the guidelines about [Contributing to
HyperFormula](https://hyperformula.handsontable.com/docs/guide/contributing.html)
and I confirm that my code follows the code style of this project.
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] My change is compliant with the
[OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html)
standard.
- [x] My change is compatible with Microsoft Excel.
- [x] My change is compatible with Google Sheets.
- [x] I described my changes in the
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md)
file.
- [x] My changes require a documentation update.
- [ ] My changes require a migration guide.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Localized date arithmetic bug fix with no public API change; behavior
change only for EDATE results landing in leap-year February (and 1900
when leapYear1900 is true).
> 
> **Overview**
> Fixes **`EDATE`** so month shifts that land in a leap-year February
clamp to **29 days** instead of always using 28 (e.g. `=EDATE(DATE(2028,
1, 31), 1)` → `2028-02-29`).
> 
> **`truncateDayInMonth`** moves from a module helper onto
**`DateTimeHelper`** and uses leap-aware **`daysInMonth()`** (including
**`leapYear1900`**) instead of a static February length. **`EDATE`** in
`DateTimePlugin` calls the instance method; **`EOMONTH`** is unchanged.
> 
> Docs: **CHANGELOG** entry and a **list-of-differences** row for
February 1900 **`EDATE`/`EOMONTH`** vs Excel/Google Sheets when
**`leapYear1900`** is enabled.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
09df598. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Krzysztof Budnik <571316+budnix@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
> ### Status (2026-10-15)
> - **Code change: done.** One commit (`fa035e0`).
> - **Also needed:** two manual steps in the repository settings,
outside the code. See "To finish this PR" below.

### Context

The documentation is served by the `hyperformula-docs` Cloudflare Worker
at `https://handsontable.com/docs/hyperformula/`. Cloudflare Workers
Builds deploys it from `master` (see `docs/README.md`, "Deployment").
The move to that address shipped in #1821 (`master`) and #1822
(`develop`).

The old **Publish** workflow (`.github/workflows/publish.yml`, job
`publish-docs`) still ran on every push to `master`:
- it built the docs with `npm run docs:build`;
- it pushed `docs/.vuepress/dist` to the `gh-pages` branch with
`peaceiris/actions-gh-pages` and the CNAME
`hyperformula.handsontable.com`.

That copy is no longer used, so GitHub Pages is being dropped. The job
last ran on `187dfa1` (the #1821 merge) and published the new
`/docs/hyperformula/` layout to `gh-pages`.

### What changes

- **`.github/workflows/publish.yml` removed.** It held only the
`publish-docs` job. This also drops the workflow's `contents: write` and
`pages: write` permissions and the `peaceiris/actions-gh-pages` action.
- **`.github/workflows/build-docs.yml`:** the job id changes from
`publish-docs` to `build-docs`, to match its `name:`. The job publishes
nothing. The status check name comes from `name:`, so it stays
`build-docs (22, ubuntu-latest)`, and branch protection rules that
require it are unaffected.
- **Release checklist** (`script/release/release.sh` and its copy in
`script/release/release-README.md`): the manual step "Check that the
docs workflow deployed the documentation to gh-pages" becomes a check
that Workers Builds deployed the docs from `master` to
`https://handsontable.com/docs/hyperformula/`.

The `build-docs` workflow is unchanged. It still builds the docs on
every PR and on `master`, `develop` and `release/**`.

### To finish this PR

1. **Review and merge into `develop`.** CI should be green; the change
touches no library code.
2. **Turn off GitHub Pages:** in the repository settings, under
**Settings > Pages**, set **Source** to none / unpublish the site. This
needs repository admin rights.
   - Before you do it, check that nothing still needs the Pages site.
- `hyperformula.handsontable.com/docs/*` is served by the
`hyperformula-website` Worker and the docs Worker, not by GitHub Pages.
- Confirm in **Settings > Pages** which custom domain, if any, Pages
still has, and that DNS for it doesn't point at GitHub Pages.
3. **Delete the `gh-pages` branch** once Pages is off (`git push origin
--delete gh-pages`). It is only build output, and keeping it invites
confusion.
4. **When this reaches `master`** (the next release, or merged as part
of a hotfix), the Publish workflow stops running there. Until then,
every push to `master` still publishes to `gh-pages`. That is harmless
once Pages is off.

### How did you test your changes?

- `grep -rniE "gh-pages|actions-gh-pages|publish-docs|publish\.yml"`
over the repository, excluding `node_modules`, finds nothing after the
change.
- `bash -n script/release/release.sh` passes.
- Not run: the release script itself. The change only edits text in its
final checklist heredoc.

### Types of changes
- [ ] Breaking change (a fix or a feature because of which an existing
functionality doesn't work as expected anymore)
- [ ] 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)
- [x] Change to the documentation

### Related issues:
1. #1810: the docs move to handsontable.com, released through #1821 and
#1822. It listed this workflow as a leftover.

### Checklist:
- [x] I have reviewed the guidelines about [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html)
and I confirm that my code follows the code style of this project.
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] My change is compliant with the
[OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html)
standard.
- [ ] My change is compatible with Microsoft Excel.
- [ ] My change is compatible with Google Sheets.
- [ ] I described my changes in the
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md)
file. (Not needed: CI and release tooling only.)
- [ ] My changes require a documentation update.
- [ ] My changes require a migration guide.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_0137eVKg5r4aRcgL5MKhqKx7

---
_Generated by [Claude
Code](https://claude.ai/code/session_0137eVKg5r4aRcgL5MKhqKx7)_

Co-authored-by: Claude <noreply@anthropic.com>
…he release script (#1826)

### Context
After `npm publish`, `release.sh publish` waits for the new version to
become visible on the registry before step 8, which runs `npm update
hyperformula` in the demos repo and therefore needs the new version to
be live. The wait gave up after 60 seconds, but npm now processes
packages after upload ("Your package is being processed and may take a
few minutes to become available"). During the 3.5.0 release the version
took about 4 minutes to appear, so the script stopped with an error even
though the publish had succeeded, and had to be re-run to finish the
remaining steps.

Changes:
- `wait_for_npm` now waits up to 10 minutes instead of 60 seconds.
- The progress line prints every 15 seconds instead of every 5, to keep
the output readable over the longer wait.
- `release-README.md` updated to match.

The wait stays right after the publish: moving it later would let step 8
run `npm update` before the new version is visible, which silently keeps
the old version in the demos' lock files.

### How did you test your changes?
- `bash -n script/release/release.sh` (syntax check).
- Not exercised against a real publish yet; the change only alters the
timeout and the print interval of an existing loop.

### Types of changes
- [ ] Breaking change (a fix or a feature because of which an existing
functionality doesn't work as expected anymore
- [x] 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. None

### Checklist:
- [x] I have reviewed the guidelines about [Contributing to
HyperFormula](https://hyperformula.handsontable.com/docs/guide/contributing.html)
and I confirm that my code follows the code style of this project.
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] My change is compliant with the
[OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html)
standard.
- [ ] My change is compatible with Microsoft Excel.
- [ ] My change is compatible with Google Sheets.
- [ ] I described my changes in the
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md)
file.
- [ ] My changes require a documentation update.
- [ ] My changes require a migration guide.

No changelog entry: this changes internal release tooling only, not the
published library.

Made with [Cursor](https://cursor.com)
EOF
)

Co-authored-by: Cursor <cursoragent@cursor.com>
### ClickUp
[DEV-3385](https://app.clickup.com/t/123kvxecum1)

### Context
The PR adds a short message after `npm i hyperformula` that points AI
assistants to the SKILLS file.

- **Why:** people who install the package do not learn that the SKILLS
file exists.
- **What changed:**
- `script/postinstall-skills-message.js` (new): prints `▲ HyperFormula
<version>` and a link to the skills page. It uses colors and a clickable
link where the terminal supports them, and plain text with the full URL
elsewhere. It stays silent when `npm install` runs inside this repo.
- `package.json`: new `postinstall` script. `package-lock.json`: the
matching `hasInstallScript` flag.
  - `.npmignore`: lets the script into the published package.
- `script/check-publish-package.js`: the release check now requires the
script in the package.
  - `CHANGELOG.md`: entry under Unreleased.
- **Result:** users who install HyperFormula see the message wherever
their package manager shows dependency script output.

| Package manager | Message visible |
| --- | --- |
| npm with `--foreground-scripts`, pnpm 9 | Yes |
| pnpm 10 after the script is approved | Yes |
| npm default, pnpm 10 default, Yarn 1, Yarn 4 | No. The install
succeeds. |

**Open question:** some security audits flag any `postinstall` script in
a dependency. This needs a decision before merge.

### How did you test your changes?
- `npm pack --dry-run` lists the script.
- Installed the packed package into a clean project with npm, pnpm 9,
pnpm 10, Yarn 1, and Yarn 4. The table above shows the results.
- Ran a full `npm install` in this repo: 2534 packages, exit code 0, no
message.
- Checked the output with colors, with `NO_COLOR=1`, piped, and in a
terminal without clickable links.
- Ran the script with `package.json` missing: no output, exit code 0.

### Types of changes
- [ ] Breaking change (a fix or a feature because of which an existing
functionality doesn't work as expected anymore)
- [x] 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:
No GitHub issue. The ClickUp task is linked at the top.

### Checklist:
<!--- Go through the points below, and put an `x` in each box that
applies. -->
<!--- If you're unsure about any of these, contact us. We're always glad
to help! -->
- [ ] I have reviewed the guidelines about [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html)
and I confirm that my code follows the code style of this project.
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] My change is compliant with the
[OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html)
standard.
- [ ] My change is compatible with Microsoft Excel.
- [ ] My change is compatible with Google Sheets.
- [x] I described my changes in the
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md)
file.
- [ ] My changes require a documentation update.
- [ ] My changes require a migration guide.

The OpenDocument, Excel, and Google Sheets items do not apply: no
formula behavior changes.

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…r documentation (#1757)

### Context

HF-359. Turns the repository into a monorepo, and replaces the single
always-loaded `DEV_DOCS.md` with a documentation system that survives
having more than one package in the tree.

```
hyperformula/      the engine (published)   — src/, test/, its toolchain, dev-docs/, script/
hyperformula-ui/   placeholder              — a group of UI packages, imported nested, preserving history
docs/              the portal               — its own package, installs on its own
script/            release/ and the licence gate — the only scripts that span the repo
dev-docs/          repository-wide standards and process
```

**`hyperformula/src/` is a move.** All 201 source files are renames: 200
byte-identical, and `FunctionDescription.ts` with a two-line fix to a
path named in a comment. The only other files there are 14 new
`AGENTS.md` and `CLAUDE.md` files for coding agents. git records the
moves as renames throughout, so history follows. The published package's
name, version, entry points and `exports` map are unchanged, and the
publish-package check confirms the tarball contents. Files `develop`
added since — `hyperformula/src/license/` among them — were merged
straight into the new layout (see *Merged with `develop`* below).

## The monorepo

- **npm workspaces**, with a private root carrying fan-out scripts.
**Each directory lints itself**: `hyperformula/` and `docs/` carry their
own `.eslintrc.js` and `.eslintignore`, and the root `lint` fans out
with `--workspaces --if-present`, so a package with its own linter or
TypeScript version brings its own. `docs:lint` covers the portal's code
— `.vuepress/` (un-ignored: ESLint skips dot-folders by default, so
before this it checked `worker/index.js` alone, as the root lint on
`develop` never reached `.vuepress/` either) and `worker/` — and not the
Markdown content or `examples/`.
- **`docs/` left the workspace — because its toolchain is legacy, not
because it is large.** VuePress 1.x, webpack 4 and
`--openssl-legacy-provider` must never be hoisted into the shared
install, where the engine had already come to resolve an undeclared
`fs-extra` from the portal's tree. `npm run docs:install` installs it;
CI installs it before building the portal. The leak ran the other way
too, so `docs/package.json` now declares everything the portal imports —
`chevrotain`, and the engine's ESLint plugins that the examples' lint
config extends — instead of borrowing the engine's hoisted copies. The
UI, larger but current, will join the workspace. The portal's `build`
script ends with `prepare-cf-assets.js`, so the build-docs CI job
composes `_headers` and `_redirects` on every PR instead of only Workers
Builds at deploy time; `build:cf` adds only the install and a clean
output directory.
- **The portal owns its deployment**: `wrangler.jsonc` and `worker/`
moved under `docs/`, and the asset directory is now `./.vuepress/dist`.
- **The UI versions on its own until it is mature, then joins the
engine's version.** It releases on its own `0.x` line with its own
changelog until the team judges it ready; the versions then join, and
from there every published package releases together on one version from
the root `CHANGELOG.md`. Joining later only needs version numbers to go
up; splitting a shared version once users depend on it is the
irreversible direction.
- **The private test suite stays branch-matched**; only its checkout
path moved. Its 501 spec files needed no edit — they import the engine
relatively, and because `src/` and `test/` moved *together*, the depth
from a spec to the package root is unchanged.

### Everything lives with what owns it

| | Repository level | Package level |
|---|---|---|
| `dev-docs/` | definition of done, code style, testing standards,
documentation rules, build and release, pull requests, worktrees, agent
setup | `hyperformula/dev-docs/` — architecture, parser, interpreter,
dependency graph, function catalogue, i18n, performance, its suites, its
build |
| `script/` | `release/`, `check-licenses.mjs` | `hyperformula/script/`
— build checks; `docs/script/` — the generator and the Worker assets |

Three `dev-docs` pages were genuinely mixed and were **split, not
moved**: `TESTING` (what a change must prove stays; the suites go down),
`BUILD` (workspace, deploy and release stay; the intermediate build and
packaging go down), and `CODE-STYLE` (style stays; the hot-path table
becomes `hyperformula/dev-docs/PERFORMANCE.md`).

The `script/` split was decided by the callers rather than by judgement:
every script had exactly one caller and the caller named its owner.
Thirteen call sites stopped reaching across a package boundary.

Root `examples/` is **deleted** — four PNGs were byte-identical
duplicates of files in `docs/.vuepress/public/`, which is what the site
actually serves, and the four CSVs were referenced nowhere.

## The documentation

`DEV_DOCS.md` said "start by reading entire DEV_DOCS.md". Every agent
working anywhere loaded the docs-portal conventions, the i18n sources
and the function-catalogue rules before it could look at a parser bug.
Three layers replace it:

| Layer | Answers | Loaded |
|---|---|---|
| `AGENTS.md` | *What is this directory, and where do I look next?* |
Always, within its subtree |
| `dev-docs/` | *How does this work and why?* | On demand |
| `.claude/skills/` | *How do I do task X?* | On skill trigger |

**`dev-docs/` is the single source of truth**, and nothing outside it
restates what is in it: every `AGENTS.md`, `README.md` and `SKILL.md`
carries only what is so specific to its own directory that it would be
useless elsewhere, and links for the rest.

| | Before | After |
|---|---|---|
| Always-loaded `AGENTS.md` | ~610 lines | **142 lines** across 12 files
|
| Skills | ~1100 lines | **200 lines** across 9 |

Twelve `AGENTS.md` files, each with a `CLAUDE.md` symlink so Claude Code
and Cursor read one source. A thirteenth, in the vendored license-key
reader, comes from upstream and has no symlink: nothing may be added to
that directory. Nine skills, none scoped by a `paths` glob, each a
reading list plus ordered links into the `dev-docs/` sections that own
the rules — no skill restates one. `.claude/settings.json` enables
`typescript-lsp` repository-wide and denies agent reads of build
artifacts — but not of generated *documentation*, which is meant to be
read. `.worktreeinclude` records what must never be copied into a
worktree and why. `.ai/` holds one sentence pointing at `dev-docs/`, for
agents that look there by habit.

`DOCS_CONTENT_GUIDE.md` moved in as `dev-docs/DOCS-CONTENT-GUIDE.md`.

## Merged with `develop`

`develop` up to `e7e4aae14` (3.5.0, license-key entitlement gating, the
docs move to `handsontable.com/docs/hyperformula/`) is merged in
`c1d3234d4`, into the monorepo layout rather than the old one:

- New engine sources land under `hyperformula/src/`. The license-key
drift check moves to `hyperformula/script/`, with its npm script in
`hyperformula/package.json`; `vendored-parser.yml`, `codecov.yml` and
`hyperformula/.eslintignore` point at the new paths.
- `develop`'s README changes go to `hyperformula/README.md`, the package
README. The docs base, build output, Worker and Cloudflare asset script
take the new `/docs/hyperformula/` base, with paths relative to `docs/`.
- `release.sh` keeps working on `hyperformula/package.json` and rewrites
the demo link in `hyperformula/README.md`. `develop`'s `check:licenses`
exclusion bump is dropped: `script/check-licenses.mjs` checks
dependencies, not the package itself, so there is no version to follow.
- `develop`'s additions to `DEV_DOCS.md` move into
`hyperformula/dev-docs/`: a new `LICENSING.md`, and additions to
`I18N.md` and `ARCHITECTURE.md`. The function checklist in
`INTERPRETER.md` gains the license capability table, so it lists six
places now.

`develop`'s postinstall message (#1829) is merged in `f9e16fab0`. The
script, its `postinstall` entry, the `.npmignore` exception and the
publish-check entry all live in `hyperformula/`, not the private root.
Its "silent inside this repository" check compared `INIT_CWD` with the
package folder only, but a root `npm ci` sets `INIT_CWD` to the
workspace root. It now stays silent whenever the path from `INIT_CWD` to
the package has no `node_modules` segment. Checked for the root,
`hyperformula/` and a subfolder (silent), and for npm and pnpm user
layouts (message shown). A root `npm ci` prints nothing, and
`verify:publish-package` is OK.

After the merge: `npm run compile` and `npm run lint` clean (0 errors);
`npm run test:jest` **520 suites, 6742 passed**, 3 skipped; `npm run
bundle-all` with `Publish package check: OK`; the full `docs:build:cf`
chain builds and copies `_headers` and `_redirects`; `wrangler deploy
--dry-run` bundles the Worker; `npm run check:licenses` OK on a clean
`npm ci`. `test:browser` was not re-run. After declaring the portal's
dependencies, a clean `docs:install`, `docs:lint` and `docs:build` pass.

## How did you test your changes?

| Command | Result |
|---|---|
| `npm ci` | Clean; the workspace resolves |
| `npm run lint` | **0 errors**, 54011 warnings — the exact pre-move
baseline |
| `npm run test:jest` | **502 suites, 6232 passed**, 3 skipped, 0 failed
|
| `npm run test:ci -- --coverage` | **97.42%**, written to
`hyperformula/coverage` |
| `npm run test:browser` | **12464 assertions** across headless Chrome
and Firefox, exit 0 |
| `npm run verify:typings` | `tsc --noEmit` clean |
| `npm run bundle-all` | Every bundle, and **`Publish package check:
OK`** |
| `npm run check:licenses` | 3 production dependencies, and it **fails**
when the allowlist is tightened |
| `npm run release code-freeze …` (dry run) | Correct version, dates and
changelog section |
| `npm run docs:generate-function-docs` | 564 lines, 13 category
sections |
| `npm --prefix docs run build:cf` | **217 pages**, sitemap, `_headers`
and `_redirects` copied |

Every relative Markdown link in `AGENTS.md`, both `dev-docs/` levels,
the skills and the READMEs was resolved against the filesystem. All
resolve.

## What the reviews found

Four rounds, 58 findings. The ones worth knowing about:

**Flag arguments were being swallowed.** Every delegating root script
dropped them, so `npm run test:ci -- --coverage` reached the workspace
as bare `jest --forceExit` and CI had been uploading nothing to Codecov
while staying green. Demonstrated with `npm run test:jest --
--listTests`, which ran all 6232 tests instead of listing them.

**The release script was never adapted.** It read and wrote
`./package.json` — now the private root manifest with no `version` — and
published from the root, where npm refuses a private package. Two dry
runs surfaced two further paths no review had caught. A reviewer found a
third: the resume check read a top-level `version` the workspace lock
file no longer has, so every resumed code freeze reinstalled from
scratch; it now reads `packages["hyperformula"].version`.

**`check:licenses` was checking nothing.** `license-checker` reads
`<start>/node_modules`, and npm hoists, so from `hyperformula/` it saw
an empty tree and from the root a manifest with no dependencies — zero
packages either way, passing vacuously. Replaced with
`script/check-licenses.mjs`, driven by `npm ls --omit=dev`.

**The portal was publishing internal agent instructions.** VuePress
sweeps every markdown file under `docs/`, so `docs/AGENTS.md` and its
symlink were being built into `/AGENTS.html` and an identical
`/CLAUDE.html`, sitemap and search index included.

**`npm run test:browser` exited non-zero after passing.** The cause was
`client.clearContext: false` in the Karma base config, and it reproduced
on the pre-move tree. `concurrency: 1` was the obvious first guess and
is wrong — it doubles wall-clock time and makes the failure
deterministic rather than removing it.

**An audit traced the deleted `DEV_DOCS.md` into the new tree.** Almost
nothing was lost; what it found was new prose that had invented things.
`dev-docs/README.md` stated a link convention that every one of the 33
links in the directory violated, and `I18N.md` claimed argument
separators are part of the language package when they are
`ConfigParams`. A second pass, after the merge with `develop`, checked
every claim in `develop`'s `DEV_DOCS.md` and `AGENTS.md` against the new
tree and found four with no new home, now restored: the custom functions
guide as the reference for implementing a built-in, why arity drift
needs no build guard, a link to the READMEs, and "read the repository,
not the web", which is back in the always-loaded `AGENTS.md`.

**A code review of the whole branch** led to: one `.nvmrc`, at the root,
instead of three copies; the code freeze deleting
`hyperformula/node_modules` as well as the root one before a lock-free
reinstall; every skill routing to `dev-docs/` instead of restating it,
with what only a skill said moved to the page that owns it (including a
new `hyperformula/dev-docs/REVIEWING.md` and a review section in
`PULL-REQUESTS.md`); `hyperformula/dev-docs/TESTING.md` telling anyone
with a pre-move clone of the private suite to delete the leftover root
`test/`, which nothing ignores any more and which makes the release
script refuse to start; the `docs:code-examples:*` aliases forwarded
from the root again; `AGENTS.md` and `CLAUDE.md` excluded from the
portal and from context7 at every depth; and the root's `typescript`,
`@types/node`, `cross-env` and `rimraf` dropped, since only the engine
uses them. One finding was not taken: passing the production set to
`license-checker --packages` was measured to make no difference (0.61s
against 0.62s), because it filters the output, not the scan.

One finding was **rejected on measurement** — a claimed ESLint timeout
risk, measured at 0.91s and 1.06s.

## Two pre-existing problems this uncovered

**The source language packs have never been linted.** The old ignore
list carried a bare `languages` entry meant for the build output. An
unanchored pattern matches a directory of that name at *any* depth, so
it also excluded `src/i18n/languages/` — and the `sort-keys` override
targeting exactly those files has never run. Anchoring the build-output
entry exposed **881 violations** across 19 translation files. Confirmed
against the pre-move tree, where ESLint reports `File ignored because of
a matching ignore pattern`.

They are excluded again in `.eslintignore`, deliberately and with a
comment, so this branch keeps the exact pre-move lint baseline. Sorting
19 translation files is a change of its own — and reordering translation
entries is what the i18n guidance tells contributors not to do casually.

**`npm run test:compatibility` was broken for everyone**, pointing at a
path in neither repository. Fixed here, since the branch had to touch it
anyway.

## Not done, on purpose

**CI path filtering.** A naive `paths:` filter on a workflow that branch
protection lists as a required check leaves it permanently pending and
makes pull requests unmergeable. Doing it safely needs the
required-checks list, which lives in repository settings, plus the
`dorny/paths-filter`-and-single-gate shape. The CI *paths* are all
updated; only the filtering is outstanding.

**Importing `hyperformula-ui`** — left for the teammate who owns the
formula-builder move. It will be **nested**: that repository moves under
`hyperformula-ui/` with its own layout and history intact, so the
directory becomes a group of packages, with their demos and end-to-end
suite, rather than one package. Nothing from it is in the `workspaces`
array until then: npm silently ignores an entry with no `package.json`,
and npm cannot nest workspace roots, so the root will list the UI's
member globs directly. What the import has to do (dependency specs, the
lint boundary, root scripts, release) is listed in
`dev-docs/STRUCTURE.md`.

Both are recorded in `dev-docs/STRUCTURE.md` under "What the move still
owes", so they survive the pull request.

### Types of changes

- [ ] Breaking change (a fix or a feature because of which an existing
functionality doesn't work as expected anymore)
- [x] 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)
- [x] Change to the documentation

Repository structure and tooling. The published package is unchanged.

### Related issues:
1. HF-359

### Checklist:
- [x] I have reviewed the guidelines about [Contributing to
HyperFormula](https://hyperformula.handsontable.com/docs/guide/contributing.html)
and I confirm that my code follows the code style of this project.
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] My change is compliant with the
[OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html)
standard. — not applicable; no engine behaviour changes.
- [x] My change is compatible with Microsoft Excel. — not applicable; no
engine behaviour changes.
- [x] My change is compatible with Google Sheets. — not applicable; no
engine behaviour changes.
- [ ] I described my changes in the
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md)
file. — **intentionally not done.** Nothing user-facing changed; the
published package is identical.
- [x] My changes require a documentation update. — `dev-docs/` at both
levels, `docs/README.md` and the public building guide are updated here.
- [ ] My changes require a migration guide.

### Companion pull request

handsontable/hyperformula-tests#51 gives the private test suite an
`AGENTS.md` pointing here, and corrects three claims in its `README.md`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
### Context
Reviews depend on standards that are not written down. This PR writes
them down. Review-only rules go in a new page,
`dev-docs/CODE-REVIEW.md`. Every other rule goes on the `dev-docs/` page
that owns its topic, and `CODE-REVIEW.md` links to it instead of
repeating it. `dev-docs/PULL-REQUESTS.md` is merged into
`dev-docs/DEFINITION-OF-DONE.md`.

- **New pages:** `dev-docs/CODE-REVIEW.md`,
`dev-docs/SENSITIVE-INFORMATION.md`,
`hyperformula/dev-docs/EXCEL-COMPATIBILITY.md`,
`hyperformula/dev-docs/PUBLIC-API.md`.
- **Deleted:** `dev-docs/PULL-REQUESTS.md`. Its content moved to
`DEFINITION-OF-DONE.md` (branch naming, order of operations, pre-flight
gate, template, scope) and to `CODE-REVIEW.md` (review order, reporting
findings). Every link to it was retargeted.
- **Moved:** the sensitive-information rules, from `AGENTS.md` to
`dev-docs/SENSITIVE-INFORMATION.md`, written for people as well as
agents. `AGENTS.md` keeps the heading and links to the page.
- **Extended:** `DEFINITION-OF-DONE.md` (developer docs item, spec
traceability, follow-up tasks, less obvious breaking changes,
deprecations), `CODE-STYLE.md` (new Design section, dead code, silent
failures, comments), `TESTING.md`, `DOC-STANDARDS.md`,
`DOCS-CONTENT-GUIDE.md`, `BUILD.md` (new Scripts and CI, and
Dependencies sections), and the engine pages (`INTERPRETER.md`,
`PARSER.md`, `I18N.md`, `LICENSING.md`, `PERFORMANCE.md` with a new
"Weighing a speed-up" section, engine `TESTING.md`, `REVIEWING.md`).
- **Removed rule:** arity drift in `FUNCTION-CATALOGUE.md`. "Two ways to
get this wrong" is now "No catalogue entry".
- **Skills:** `hyperformula-code-review` routes to `CODE-REVIEW.md` and
gains a "You report; the developer decides" step. `pr-creation` and
`changelog-creation` route to `DEFINITION-OF-DONE.md` and
`SENSITIVE-INFORMATION.md`.
- **Template:** `.github/pull_request_template.md` is rewritten around
evidence: the formulas checked against Excel and Google Sheets, public
API changes, and out of scope and follow-ups. Its checklist points to
the Definition of Done.
- **`AGENTS.md`:** three new entries in "Common ways agents fail":
leftover files, unrequested work, agent chatter.

Where a rule named an API, option or script, it was checked against
`hyperformula/src/` and `package.json`, and generalised where it did not
fit. For example, the "first two rows of a range" performance example no
longer names `ARRAY_CONSTRAIN`, because that function reads the whole
range.

### How did you test your changes?
- A link checker over every `*.md` in `dev-docs/`,
`hyperformula/dev-docs/`, `.claude/skills/`, plus `AGENTS.md`,
`hyperformula/AGENTS.md` and the PR template. It checks that each target
file exists and each `#anchor` matches a heading slug. Result: 38 files,
287 relative links, no failures.
- `grep -rn "PULL-REQUESTS" . --exclude-dir=node_modules
--exclude-dir=.git` returns nothing.
- A grep of the diff for PR numbers, ticket IDs and personal names finds
only the `HF-123` example in `SENSITIVE-INFORMATION.md`.
- Each new rule was grepped across `dev-docs/` and
`hyperformula/dev-docs/` to confirm it has one home.
- `npm run lint`: 0 errors.

### Compatibility with Excel and Google Sheets
Not applicable. This changes documentation only.

### Public API changes
None.

### Out of scope and follow-ups
- `script/release/release-README.md` already links a private document
from its intro and from "Adding a command later", and names it in that
section. Those lines predate this branch. This PR adds one sentence to
that section and leaves the existing lines alone.
- Some duplicates predate this branch and are left as they are: the
migration-guide rule appears in both `DOC-STANDARDS.md` and
`DEFINITION-OF-DONE.md`, and the list-of-differences rule appears in
both `INTERPRETER.md` and `FUNCTION-CATALOGUE.md`.

### 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)
- [x] Change to the documentation

### Related issues
1. HF-359

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
### Context

Brings the formula builder's core into the monorepo as the
`hyperformula-ui` package, ready to publish to npm. Grid integrations
are not part of it: Handsontable ships its own as a built-in plugin, and
adapters for other grids are examples maintained outside this
repository.

What came over, from the formula-builder repository at `e85b52b`:

```
hyperformula-ui/
  packages/core/       the package, published as hyperformula-ui (was @hfe/core)
  demo/js/basic/       the editor-only demo page, with demo/shared/
  e2e/                 its Playwright smoke check
  scripts/  tsconfig.*.json  rspack.base.mjs  vitest.base.ts  biome.json
  dev-docs/            the architecture and spec, plus new pages
```

The adapter packages, the other demos and their e2e specs stayed behind,
since they need the adapters.

Decisions:

- **One snapshot, no history.** `develop` squash-merges, so keeping
history would need a merge-commit exception for this PR and an audit of
every private commit before it went public. The formula-builder
repository keeps the full history.
- **pnpm to npm, done here.** `catalog:` and `workspace:*` became plain
ranges, and every pnpm command became an npm one. Each UI package
declares TypeScript 5 and Biome itself, because npm hoists the engine's
TypeScript 4 to the root. Biome is pinned to 2.4.16, the version
formula-builder ran: 2.5 adds rules that fail on the imported tests.
- **Name and licence.** The package is `hyperformula-ui`,
`GPL-3.0-only`. `prepack` copies the root `LICENSE.txt` in, as it does
for the engine. The peer range is `hyperformula ^3.0.0`, as in
formula-builder and the Handsontable plugin: every engine call is
feature-detected, and before 3.4.0 autocomplete lists names without
descriptions.
- **Conventions stay inside `hyperformula-ui/`.** Biome, no inline
comments, and the `.hfe-*`/`--hfe-*` prefix are written down in
`hyperformula-ui/dev-docs/CODE-STYLE.md`. The CSS names are unchanged,
so the Handsontable plugin's e2e selectors keep working.
- **No translations.** Function names come from the engine's language
packs.
- **Workspace by path.** `--workspace=hyperformula-ui` also matches
workspaces by folder, so every script and doc names
`hyperformula-ui/packages/core`. The licence gate lists workspaces by
path and drops each one from its own report by package name.
- **The engine is resolved from the workspace.** The core does not
import it. The demo does, so the e2e job runs `bundle-all` first.
- **Source under a private export condition.** formula-builder exported
`src/index.ts` under `development`, which webpack and Vite enable by
default in dev mode, so a webpack 5 dev build of a project using the
package failed with `Can't resolve './formulaBuilder'`. The condition is
now `hyperformula-ui-source`, which only this repository's tsconfig and
demo enable. It comes before `types`, because TypeScript takes the first
match. With the packed tarball, webpack dev and production builds of a
consumer project both pass.
- **Declarations work under `node16`/`nodenext`.** `tsc` emits
extensionless relative imports. A `nodenext` consumer then got TS2834
or, under `skipLibCheck`, `any` for every export.
`scripts/addDeclarationExtensions.mjs` now adds `.js` to them after the
build, and a new `check:types` step runs `attw` on the packed package in
CI.
- **Agent skills, in this repository's format.** formula-builder's
skills restated rules and assumed pnpm and adapters, so they did not
come over; their content is in `hyperformula-ui/dev-docs/`. A new
`hyperformula-ui-dev` skill routes there.
`hyperformula-ui/dev-docs/REVIEWING.md` carries formula-builder's
reviewer checks, and `hyperformula-code-review` now sends UI diffs to
it.
- **Three regexes made linear.** CodeQL flagged three polynomial regexes
in the imported code: in `parseCellInput`, in `fillColor`, and in the
lexer's handling of unterminated strings. All three were real; on 40,000
to 80,000 characters of crafted text they took 0.3 to 2.6 s.
`parseCellInput` and `fillColor` now accept the same strings in linear
time. The lexer gives the same tokens except in one case: a backslash
right before a line break inside an unterminated string, where a later
quote used to start a closed string and is now an error. New tests pin
the results, that case included.
- **No HTML sinks.** formula-builder built its icons with `innerHTML`,
which throws under a host's Trusted Types policy
(`require-trusted-types-for 'script'`), so no grid would render. Icons
are now data in `ui/icons.ts`, built with `createElementNS`; nothing in
`src/` writes `innerHTML`, `outerHTML` or `insertAdjacentHTML`. A test
makes the `innerHTML` setter throw and checks icons still build.
- **Function help links are checked.** A custom function's `docUrl`
reaches `href` only with an `http:` or `https:` protocol, so a
`javascript:` URL is never rendered.
- **The formula bar fits its cell.** From review, so the Handsontable
plugin can drop its overrides:
- The editor's height cap never exceeds the clipping ancestor's
`clientHeight`.
- The bar shows its mount before attaching the editor, so the cap lands
before `focus()` can scroll an ancestor.
- The bar's vertical padding moves onto the overlay and textarea, so the
idle view and a one-line capped editor are both 28px.
- A bar-initiated edit opens on the first line, with the caret at the
end.
- The bar editor's scrollbar is `auto`, through the new
`--hfe-scrollbar-width` and `--hfe-formula-bar-scrollbar-width` tokens.
- **Host icons.** A new `icons` option takes element factories that
replace the four built-in glyphs; there are no markup strings, so no
HTML sink.

Root changes:
- `workspaces` gains the UI's members.
- New root scripts: `typecheck` (fan-out), `build:ui`, `dev:ui`,
`test:ui`, `test:e2e`. `test` now also runs `test:ui`.
- A new workflow, `hyperformula-ui.yml`, runs two jobs: `verify` (build,
stale-stylesheet and stale-`DOCS.md` checks, lint, typecheck, unit
tests, `npm pack --dry-run`, `attw`) and `e2e`.
- `release.sh` also deletes the UI workspaces' `node_modules` before
regenerating the lockfile. `DEFINITION-OF-DONE.md` lists the UI's gate.
- Biome is a single hoisted copy in the lockfile.
- `dev-docs/STRUCTURE.md` records the import as done and lists what
changed from the plan; `BUILD.md`, `CODE-STYLE.md`, `CODE-REVIEW.md`,
`AGENT-TOOLING.md` and the dev-docs index link to the UI's pages.

Publishing is a separate, manual step after this merges:
`hyperformula-ui/dev-docs/RELEASE.md`.

### How did you test your changes?

Run from a clean worktree after `npm ci`:

| Command | Result |
|---|---|
| `npm ci` | Clean install; no package the engine resolves changed
version in the lockfile |
| `npm run build:ui`, then `git diff --exit-code --
'hyperformula-ui/**/cssText.ts'` | Builds; stylesheet unchanged |
| `npm run lint` | Engine 0 errors; UI packages clean |
| `npm run test:ui` | 88 files, 1083 tests passed |
| `npm run bundle-all`, then `npm run typecheck` | Engine bundles OK;
every UI package typechecks, before the core is built |
| `npm run test:e2e` | 1 passed, before the core is built (run with the
container's preinstalled Chromium) |
| `npm pack --dry-run --workspace=hyperformula-ui/packages/core` |
`LICENSE.txt`, `README.md`, `DOCS.md`, `package.json`, `dist/` without
its `.tsbuildinfo`, `src/`; 288 files |
| `npm run check:types --workspace=hyperformula-ui/packages/core` |
`attw`: `node16 (from ESM)` and `bundler` green |
| `npm run check:licenses` | OK, 3 production dependencies |
| `npm run test:jest` | Smoke tests only, 4 passed; the private suite
was not available here. The engine's source is unchanged |

Then I installed the packed tarball and `hyperformula@^3.4.0` in an
empty project:
- `import { FormulaBuilder } from "hyperformula-ui"` typechecks under
strict TypeScript 5, and the module loads in Node.
- webpack 5 builds it in both development and production mode. Before
the condition rename, the development build failed.

I also linked the built package into a `module: nodenext` project,
without `skipLibCheck`. There, `const x: number = FormulaBuilder` now
fails with TS2322, the expected error. Before the declaration fix, the
same project got TS2834 on every import in `dist/index.d.ts`.

For the regex fixes, I timed each function on crafted input of 40,000 to
80,000 characters, before and after:

| Function | Before | After |
|---|---|---|
| lexer | 2574 ms | 73 ms |
| `parseCellInput` | 1814 ms | 0 ms |
| `fillColor` | 337 ms | 0 ms |

For the release steps, `npm version 0.1.0-next.0
--workspace=hyperformula-ui/packages/core --no-git-tag-version` followed
by `npm install` installs cleanly, now that the demo depends on `"*"`. I
reverted both afterwards.

For the formula bar, I measured a bar-hosted editor in Chromium before
and after, with a five-line formula:

| Case | Before | After |
|---|---|---|
| `--hfe-editor-max-lines: 1`: idle view / capped editor height | 20px /
20px in a 28px cell | 28px / 28px |
| Same: first line shown on open | no, scrolled to the last line | yes |
| 29px `overflow-x: auto` slot: editor height / slot scroll | 99px /
75px | 28px / 0px |

Every relative Markdown link and anchor in the changed files resolves.

### Compatibility with Excel and Google Sheets

Not applicable. The engine does not change.

### Public API changes

None in `hyperformula`. Adds a new package, `hyperformula-ui`, with its
own API, listed in `hyperformula-ui/packages/core/DOCS.md`.

### Out of scope and follow-ups

- **Publishing to npm.** Done by hand after merge, following
`hyperformula-ui/dev-docs/RELEASE.md`. After that, `@hfe/core` becomes
`hyperformula-ui` in the Handsontable plugin PR
(handsontable/handsontable#13172) and in the adapter examples.
- **Public docs pages** ("UI Components" in `docs/`). A separate task.
- **CI path filtering.** Still owed, as `dev-docs/STRUCTURE.md` records.
- **License Compliance (FOSSA)** passes after 2 issues were ignored in
the FOSSA dashboard:
- `hyperformula` (`GPL-3.0-only`) is our own engine, which workspace
packages now depend on.
- `node-forge` (`BSD-3-Clause OR GPL-2.0`, which FOSSA reads as GPL-2.0)
is reached only through `@rspack/cli`'s dev server, which the build
never runs; we elect BSD-3-Clause.

  Neither ships in the `hyperformula-ui` tarball.
- **One CodeQL alert left open**, on `lexer/matchers.ts`. Its real case
is fixed. Its thread explains why the rest is a false positive, for a
maintainer to dismiss.

### Types of changes
- [ ] Breaking change (existing functionality no longer works as before)
– agreed with the maintainers
- [x] 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)
- [x] Change to the documentation

### Related issues
1. HF-359

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only). The entry is in
`hyperformula-ui/CHANGELOG.md`; the engine's changelog is unchanged.
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe

---------

Co-authored-by: Claude <noreply@anthropic.com>
…releases (#1833)

### Context

`hyperformula-ui/dev-docs/RELEASE.md`, merged in #1832, lists one set of
steps and ends with "add the organization as the package's owner",
without saying which organization or how. It also mixes steps that
happen once with steps that happen every time, and assumes the first
version is the prerelease `0.1.0-next.0`.

This PR restructures the page:

- **A table at the top** says which sections to follow for the first
release and which for every later one.
- **Before every release:** `npm login`, `npm whoami`, and checking that
the account may publish. That check is `npm org ls handsoncode
<username>` before the first release and `npm access list collaborators
hyperformula-ui` after it. It also says to pass `--otp=<code>` on
accounts with two-factor authentication.
- **The first release:** publishes `0.3.5` under `latest`. Before
publishing, it checks with `npm view` that the name is still free. After
publishing, it finds the `handsoncode` team that maintains
`hyperformula` with `npm team ls` and `npm access list packages`, grants
it `read-write` with `npm access grant`, and checks the result.
- **Release steps**, for every release: the same build, check, version,
changelog, tag, pack, publish and push steps as before. The version and
dist-tag now come from two shell variables, `VERSION` and `TAG`, so one
set of commands covers both a stable release (`latest`) and a prerelease
(`next`). This replaces the separate "A stable release" section. The
licence copy and the tarball check are merged into one step, so it stays
nine steps.
- **Versions and tags:** the first version is `0.3.5`. Stable versions
go under `latest`, prereleases such as `0.4.0-next.0` under `next`. The
`handsoncode` organization maintains the package, as it does
`hyperformula`.

### How did you test your changes?

- Checked that the name and its look-alikes are free on npm: `npm view
hyperformula-ui`, `hyperformulaui`, `hyper-formula-ui`,
`hyperformula_ui` and `hyperformula.ui` all return 404.
- Read from the registry that `handsoncode` already has write access to
`hyperformula` and `handsontable`.
- Checked the three in-page anchors against the headings.
- `git grep` finds no other page referring to the old `0.1.0-next.0`
example or to a section that was removed.
- I could not run `npm team ls`, `npm access` or `npm publish`: they
need a logged-in npm account, which this environment doesn't have.

### Compatibility with Excel and Google Sheets

Not applicable. Documentation only.

### Public API changes

None.

### Out of scope and follow-ups

- The release itself, done by hand by a maintainer following this page.
- After publishing, `@hfe/core` becomes `hyperformula-ui` in the
Handsontable plugin PR (handsontable/handsontable#13172).

### 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)
- [x] Change to the documentation

### Related issues
1. HF-359

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only). None is needed:
documentation only.
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

---
_Generated by [Claude
Code](https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe)_

Co-authored-by: Claude <noreply@anthropic.com>
### Context
The `hyperformula-ui` package changes its licence from GPL-3.0-only to
MIT. The engine, `hyperformula`, keeps its GPL-3.0-only and commercial
licensing unchanged.

Until now the package's `prepack` copied the root `LICENSE.txt` (the
engine's GPL licence) into the package and `postpack` removed it. That
copy no longer fits, because the two packages now have different
licences. The package now keeps its own MIT `LICENSE.txt` under version
control in `hyperformula-ui/packages/core/`. npm includes `LICENSE*`
files in the tarball automatically, so the copy scripts are removed.

Changes:
- `hyperformula-ui/packages/core/package.json` and `package-lock.json`:
`license` is `MIT`. The `copy-root-files`, `prepack` and `postpack`
scripts are removed.
- `hyperformula-ui/packages/core/LICENSE.txt`: new, the MIT licence,
with the same copyright holder as the root licence.
- `hyperformula-ui/.gitignore`: the package's `LICENSE.txt` is no longer
ignored.
- `hyperformula-ui/packages/core/README.md` and the root `README.md`:
the licence sections name the right licence for each package.
- `hyperformula-ui/dev-docs/RELEASE.md`: the steps that copied and
removed the licence are gone.
- `dev-docs/STRUCTURE.md`: the decision about UI licensing records MIT
and the package's own licence file.
- `script/check-licenses.mjs`: a comment no longer says every workspace
package is GPL.

### How did you test your changes?
- `npm pack --dry-run --ignore-scripts
--workspace=hyperformula-ui/packages/core`: the tarball contains
`LICENSE.txt` (the MIT text), `README.md`, `DOCS.md` and `package.json`,
with no copy step.
- `npm install --package-lock-only --ignore-scripts`: the lockfile stays
consistent with the one-line `license` change.
- `node script/check-licenses.mjs`: OK, 3 production dependencies, all
permissively licensed.
- `npm run lint --workspace=hyperformula-ui/packages/core`: no issues.
- `npm run build:ui`, `npm run typecheck`, `npm run test:ui`: all green,
88 test files, 1083 tests.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None. The published package's licence changes from GPL-3.0-only to MIT
from the next release. Versions up to and including 0.3.5 stay as they
were published.

### Out of scope and follow-ups
- The engine's licence and its `prepack` copy of the root `LICENSE.txt`
and `CHANGELOG.md` are unchanged.

### Types of changes
- [ ] Breaking change (existing functionality no longer works as before)
– agreed with the maintainers
- [x] 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)
- [x] Change to the documentation

### Related issues
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> No runtime or public API changes; only licence metadata, packaging
scripts, and documentation, with the engine’s GPL licensing untouched.
> 
> **Overview**
> **Re-licenses the published `hyperformula-ui` npm package from
GPL-3.0-only to MIT**, while the `hyperformula` engine stays
GPL-3.0-only (plus commercial terms).
> 
> The UI package now ships a **version-controlled MIT `LICENSE.txt`**
under `hyperformula-ui/packages/core/` instead of copying the root GPL
file at pack time. **`copy-root-files`, `prepack`, and `postpack` are
removed** from `hyperformula-ui/packages/core/package.json` because npm
includes `LICENSE*` in the tarball automatically.
> 
> Docs and process are aligned: root and package READMEs split licences
by package, `dev-docs/STRUCTURE.md` records MIT for the UI,
`hyperformula-ui/CHANGELOG.md` notes the change, and
**`hyperformula-ui/dev-docs/RELEASE.md` drops manual licence
copy/cleanup steps**. `hyperformula-ui/.gitignore` no longer ignores the
package licence file; `package-lock.json` and
`script/check-licenses.mjs` reflect the metadata-only tweak (comment
only in the checker).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
d76f612. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
FOSSA scans every npm workspace in the repository, including
`hyperformula-ui/demo/*` and `hyperformula-ui/e2e`. These are private
and never published, so their dependencies should not appear in the
licence report.

This PR adds a root `.fossa.yml` (config version 3) that excludes both
paths. It covers every current and future package under
`hyperformula-ui/demo/`. The file is also listed in the repository tree
in `dev-docs/STRUCTURE.md`.

### How did you test your changes?
- Parsed `.fossa.yml` with a YAML parser: `{'version': 3, 'paths':
{'exclude': ['./hyperformula-ui/demo', './hyperformula-ui/e2e']}}`.
- Not run through the FOSSA CLI locally. The next FOSSA scan of this
branch confirms that the demo and e2e projects are gone from the report.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### Out of scope and follow-ups
None.

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

Tooling only.

### Related issues
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

---
_Generated by [Claude
Code](https://claude.ai/code/session_019pqwFoGwfqPLkQgvxKXzdb)_

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> <sup>[Cursor Bugbot](https://cursor.com/bugbot) is generating a
summary for commit acc4417. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Claude <noreply@anthropic.com>
…rmula builder review (#1839)

### Context

The PR fixes the `hyperformula-ui` issues found while reviewing the
Handsontable formula builder (handsontable/handsontable#13172).

- **Why:** each one leaves a visible defect in a host grid or forces the
host into a workaround.
- **What changed:** one commit per fix, all in `hyperformula-ui/`.

| Issue | Now |
|---|---|
| Idle formula bar colors references differently from the editor after a
named expression | Same named-expression step as the editor; redraws
when names change |
| A removed named expression stays colored after `undo()`, `redo()`,
`changeNamedExpression()`, `removeSheet()` | Cache also cleared on
`valuesUpdated`, `sheetRemoved` and every `setValue` |
| `destroy()` throws after the host destroyed the engine, leaking DOM
and styles | Builder and editor run every teardown step; first error
rethrown |
| No way to place popups in a shadow root or iframe | `rootDocument` and
`portalParent` options; listeners (scroll in a shadow root included),
hit tests and focus checks follow the element's own document |
| A missing or invalid container selector throws from the constructor;
selectors miss a shadow-root grid | Warns once and uses the default
placement; selectors also resolve in the grid's shadow root |
| Address box reports success when the grid cannot select the cell |
`setActiveCell`/`setSelection` may return `false`; announced as "Cannot
select B7", not as invalid |
| A long run of `'` tokenizes in quadratic time | One linear pass, same
tokens |
| An engine without the editor's `sheetId` makes every keystroke throw |
Treated as a sheet with no local names and no dimensions |
| Error value and error popup title use different fonts | Both read
`--hfe-error-font-family`, falling back to `--hfe-font-family` where the
error renders |
| Ctrl/Cmd+Enter only inserts a newline | Calls optional
`adapter.commitFill` or `onCommitFill`; Alt+Enter inserts a newline |
| Reference colors fail 4.5:1, and some pairs look alike | All clear
4.5:1; every pair at least 10 apart (OKLab ΔE×100) |
| `color-scheme` set on every element through `[class*=hfe-]` | Not set
at all: every element inherits the host page's scheme |
| Labels and announcements are English only | `phrases` option, English
defaults in `DEFAULT_PHRASES` |

- **Result:** the Handsontable plugin drops its style overrides and
gains translations, shadow-root support and fill commit (paired commits
on #13172).

### How did you test your changes?

Every fix has a test that fails without it.

| Command | Result |
|---|---|
| `npm run build:ui` | Builds |
| `npm run typecheck` (after `npm run bundle-all`) | Passes |
| `npm run lint` | 0 errors |
| `npm run test:ui` | 1147 tests passed |
| `npm run test:e2e` | 1 passed |
| Handsontable plugin against this build: unit tests, Playwright
`formula-builder` specs, axe scan | 486 (with i18n), 53 and 9 passed |

Checked in Chromium on the Handsontable demo against 0.3.5: error-title
font, `color-scheme` with the OS in the other scheme, Ctrl/Cmd+Enter
fill, undo of a named expression, a reference drag in a shadow root, the
error popup in an iframe.

### Compatibility with Excel and Google Sheets

Not applicable. The change is in the formula editor UI and cannot affect
calculation results.

### Public API changes

All in `hyperformula-ui`:

- `FormulaBuilderOptions`: `rootDocument`, `portalParent`.
- `FormulaEditorOptions` (and `FormulaBuilderOptions`):
`onCommitFill(value)`, `phrases`; `FormulaEditor.phrases`.
- `IGridAdapter`: optional `commitFill(value)`; `setActiveCell` and
`setSelection` return `boolean | void`.
- `HyperFormulaLike`: `on`/`off` for `sheetRemoved`.
- New exports: `Phrases` (includes `cellUnavailable`),
`DEFAULT_PHRASES`, `StyleRoot`, `AddressBoxNavigation`.
- `FormulaBarCellOptions.tokenPostProcess` and `phrases`,
`FormulaBarCell.refresh()`, `FormulaBarAddressBoxOptions.phrases` and
`onUnavailableTarget`; its navigation callbacks may return
`"unavailable"`.
- `StyleInjector.inject(root?)` / `release(root?)`; `LiveRegion` accepts
a `ShadowRoot`.
- CSS: `--hfe-error-font-family`; new `--hfe-ref-1..8` defaults.

Not breaking, though some defaults change (reference colors, the error
cell's font, the `color-scheme` scope, no constructor throw). The
package is 0.x and no released consumer depends on these defaults. The
changelog says how to keep each old default.

### Out of scope and follow-ups

None. Keeping all fixes in one PR was agreed by the PR author. The
popups staying over frozen panes is recorded as the intended behavior in
`dev-docs/SPEC.md`.

The License Compliance (FOSSA) check also fails on #1838 and #1841; it
is not related to this change.

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

### Related issues
1. DEV-3554

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Touches core editing, adapter contracts, and DOM/event wiring across
iframes and shadow roots; behavior changes (fill commit, ref picking,
destroy) affect all grid hosts but are additive or bug fixes with
documented API extensions.
> 
> **Overview**
> **hyperformula-ui** gains host-aware embedding (`rootDocument`,
`portalParent`), i18n (`phrases` / `DEFAULT_PHRASES`), and several
editor/adapter fixes aimed at Handsontable integration.
> 
> **Embedding & DOM:** Popups, live region, and styles can target an
iframe document or shadow root; `DomRangePicker`, `ErrorPopup`, and
editor scroll/resize listeners use the element's window/document,
`composedPath()` for hits, and `deepActiveElement` instead of global
`document`. Style injection is ref-counted per `StyleRoot`. Missing
constructor container selectors warn and fall back; `attach*` still
throws.
> 
> **Editing behavior:** Grid picks replace the whole cell/range
reference under the caret; Ctrl/Cmd+Enter commits via optional
`commitFill` / `onCommitFill` (Alt+Enter for newline). Address box
honors `setActiveCell`/`setSelection` returning `false` with
`"unavailable"` announcements. Named-expression coloring stays in sync
(cache invalidation on more HF events, bar idle view uses
`tokenPostProcess` + `refresh()`). `destroy()` runs all teardown steps
via `runAll` even if HF is already gone.
> 
> **Theming & perf:** Reference colors and error font
(`--hfe-error-font-family`) updated; package no longer forces
`color-scheme`. Lexer uses linear `buildQuotedSheetEnds` for quoted
sheet names; missing `sheetId` no longer throws on every keystroke.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
8839a57. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Kuba Sekowski <jakub.sekowski@handsontable.com>
… (DEV-3385) (#1846)

### Context
Reverts #1829. npm does not run or display a `postinstall` message the
way the change assumed, and the same approach was investigated and
dropped for Handsontable. The SKILLS file itself is untouched.

Resolved by hand because the monorepo move changed the paths: the root
`package.json` is kept as on `develop`, and the `postinstall` script is
removed from `hyperformula/package.json`.

### How has this been tested?
`grep -rn postinstall-skills` over the repository returns nothing. No
code paths changed besides removing the script. CI runs on this PR.

### Types of changes
- [x] Breaking change (a revert of an unreleased addition)

### Related issue(s):
1. DEV-3385

### Checklist:
- [x] I have reviewed the guidelines about [Contributing to
Handsontable](https://github.com/handsontable/hyperformula/blob/develop/CONTRIBUTING.md)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Packaging and install-time messaging only; no calculation engine or
public API behavior changes.
> 
> **Overview**
> Reverts the unreleased **postinstall** hook that printed a terminal
message after `npm i hyperformula` pointing AI assistants to the
Handsontable SKILLS documentation. npm does not reliably run or show
that message (same approach was dropped for Handsontable), so the
feature is removed entirely rather than fixed.
> 
> The change deletes
`hyperformula/script/postinstall-skills-message.js`, drops the
`postinstall` script from `hyperformula/package.json`, stops
whitelisting that file in `.npmignore` and `check-publish-package.js`,
and removes the matching **[Unreleased]** changelog entry.
**STRUCTURE.md** no longer documents the script. The SKILLS content
itself is unchanged.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
724e144. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
)

### Context

This moves the HyperFormula docs from VuePress 1.x to Astro Starlight,
using the same theme and styles as the Handsontable docs.

VuePress 1 is end-of-life, only builds with webpack 4 and
`--openssl-legacy-provider`, and it's the reason `docs/` has to stay out
of the npm workspace. The Handsontable docs already moved to Starlight,
so this also gets both portals looking the same on handsontable.com.

This replaces #1686 and #1791, my earlier attempts at the same
migration. They were started before the monorepo restructure in #1757
moved most of the files they touched, so instead of fighting the
conflicts I rebuilt it on current `develop` with a much smaller
footprint:

- The guides stay in `docs/guide/` and the API reference in `docs/api/`.
Astro reads them where they are, so nothing that points at a guide path
had to change.
- Every URL stays the same. Pages still build to
`guide/basic-usage.html`, and names with dots like
`guide/migration-from-2.x-to-3.0.html` keep them, so the Worker,
`_headers` and inbound links don't need to change. The only addresses
that moved are the API overview, which is now `api.html`, the sitemap,
which is now `sitemap-index.xml`, and the old `api-ref-readme` page. All
three redirect in `docs/cf/_redirects`.
- The page edits are syntax only. Titles moved into frontmatter, `:::
tip` became `:::tip`, `::: warning` became `:::caution`, and live
examples open with `:::example{#id}`. Links, the `{{ $page.* }}` values
and the examples are handled by a Markdown plugin at build time, so the
pages themselves didn't need rewriting.

Everything the VuePress site did still works: the live examples with
Open in StackBlitz, the `.md` copy of every page, `llms-full.txt`, View
as Markdown, the coding agent wizard, search over the `tags`
frontmatter, the API sidebar listing each page's sections, and the
analytics and error reporting scripts in the head. The one thing I
dropped is the "Help us improve this page" link. It opened edits against
`master`, but the docs are edited on `develop`.

The look comes straight from the Handsontable docs. Every stylesheet in
`docs/src/styles/` except `custom.css` and `hyperformula.css` is an
exact copy of `docs/src/styles` in handsontable/handsontable at
`e2726d5`, so they can be refreshed by copying them again. The header,
sidebar, page title, contents sidebar, footer and Support menu are
adapted from their components, minus the framework switcher, versions
menu and docs assistant, which we don't need. Their header script was
written for Starlight 0.41, so I updated the mobile sidebar toggle for
the popover menu in 0.42. `hyperformula.css` has the few fixes their
styles needed on our pages. The Support menu links to the HyperFormula
forum category and the Slack Community, using the same addresses as
handsontable.com. The live examples' stylesheets are written for a light
page and StackBlitz opens them as they are, so in dark mode the site
swaps their fixed colors for the theme's.

A couple of things that are good to know when reviewing:

- Astro 7 uses Sätteri instead of remark for Markdown, so
`docs/src/markdown-plugins.mjs` is a Sätteri plugin. It's the same mdast
nodes though, so it reads a lot like a remark plugin.
- Heading anchors now come from `github-slugger`, which handles dots,
slashes, `&`, quotes and leading digits differently than VuePress did.
That changes 58 guide anchors, for example every release-notes version
(`#_3-5-0` is `#350` now) and `#moment-js-integration` (now
`#momentjs-integration`). So links from blog posts and issues don't
break, `legacyAnchorsPlugin` in `docs/src/markdown-plugins.mjs` puts the
old id on the same heading as an empty `<span>`, and both scroll to it.
I checked it against a VuePress build of `develop`, and every old
heading anchor lands on the same heading. API anchors like
`#buildfromarray` didn't change. I also updated the two internal links
that used the old form.

It's easier to review one commit at a time. The first five are the
migration itself: move the shared files out of `.vuepress`, convert the
syntax, add Astro, remove VuePress, and update `dev-docs`. The rest are
the theme and fixes on top.

### How did you test your changes?

I built the branch next to a VuePress build of the same `develop` commit
and compared the two.

- `npm run docs:install`, `docs:lint`, `docs:build` and `docs:build:cf`
all pass from clean installs, and CI runs the same steps.
- The output file list matches, except for the three redirected
addresses above. The `.md` copies of the guides are byte-identical.
- Every internal link resolves, checked the same way the Worker resolves
URLs. There are 43 broken `#static-…` anchors coming from the TypeDoc
output, but VuePress has 44 of the same ones, so that's not new.
- I loaded every page at 375, 800 and 1440 px and checked for horizontal
scrolling, leftover syntax and tables without the scroll wrapper. No
issues.
- All 12 live examples run with no console errors.
- On the Workers Builds preview, every page in the sitemap and its `.md`
copy returns 200, and the old `/docs/*` addresses still redirect to
handsontable.com.

Astro 7 needs Node 22.22 or newer. CI and Workers Builds both pick up a
new enough 22.x from the root `.nvmrc`, and both built this branch.

### Compatibility with Excel and Google Sheets

Not applicable.

### Public API changes

None.

### Out of scope and follow-ups

- The Workers Builds settings don't need to change. The build and deploy
commands are the same, and the asset directory comes from
`docs/wrangler.jsonc`.
- `docs/` stays outside the npm workspace for now. The legacy toolchain
reason is gone, but joining the workspace should be its own PR.
- Aside titles are hidden, same as on the current site and the
Handsontable docs.
- Search ranks API pages above the matching guide for some queries. If
you search "named expressions", the API classes come up before the
guide. That's worth tuning separately.
- A page address without `.html` 404s when the page name has a dot, like
`guide/migration-from-2.x-to-3.0`. That's how the Worker behaves today
too, so I didn't change it here.

### 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)
- [x] Change to the documentation

### Related issues
1. Supersedes #1686 and #1791.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Full replacement of the production docs build and deploy artifact
paths; correctness depends on URL redirects, Worker routing, and
Cloudflare build settings staying aligned with the new output layout.
> 
> **Overview**
> Replaces the HyperFormula documentation site builder: **VuePress 1.x
and `docs/.vuepress/` are removed** in favor of **Astro + Starlight**,
with configuration in `astro.config.mjs`, plugins and UI overrides under
`docs/src/`, and static deploy rules in `docs/cf/`.
> 
> **Build and repo wiring** now treat the portal output as `docs/dist/`
(not `.vuepress/dist`), ignore `.astro/`, and point lint, agent deny
lists, and dev-docs at the new layout. The built-in-functions generator
**slugifies categories with `github-slugger`** instead of VuePress
shared-utils.
> 
> **Guide content** is updated for Starlight: `title` in frontmatter (no
body `#` titles), `:::tip` / `:::caution` asides, `:::example{#id}` for
live demos, plain Markdown links instead of `$withBase`, and small
link/anchor fixes where heading ids changed (legacy ids are preserved
via a markdown plugin per the PR description).
> 
> **Behavior the old site had** is reimplemented on Astro: md companions
and `llms-full.txt`, search (Pagefind on full build), API sidebar
grouping, analytics/Sentry head tags, and Cloudflare **redirects** for
`api.html`, sitemap, and removed pages—while keeping familiar `.html`
page URLs for the Worker.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
17f0b67. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
With `evaluateNullToZero` on, a formula that reads an empty cell returns
`0`, but the empty cell itself, read through the API, returned `null`.
So `getSheetValues()` on `[[null, '=A1']]` gave `[[null, 0]]`.

The Exporter now returns `0` for an empty cell when the option is on.
`getCellValue()`, `getSheetValues()`, `getAllSheetsValues()`,
`getRangeValues()` and the changes passed to the `valuesUpdated` event
now agree with what formulas see. With the option off, which is the
default, nothing changes.

Two consequences with the option on:
- `getSheetValues()` fills each row with `0` up to the sheet's width,
instead of ending the row at its last non-empty cell.
`buildFromArray([[1], [1, 2, 3]])` reads back as `[[1, 0, 0], [1, 2,
3]]`.
- `getCellValue()` returns `0` for any address outside the used area.

`ISBLANK` still returns `TRUE` for an empty cell, and
`getCellSerialized()` still returns `null`.

The JSDoc of `evaluateNullToZero` now says that empty cells read through
the API return `0`.

### How did you test your changes?
- Paired branch `spike/hf270-null-to-zero` in `hyperformula-tests`
(hyperformula-tests#39). The 22 tests in
`unit/CellValueExporter.spec.ts` and `unit/null-compatibility.spec.ts`
pass. With the `Exporter.ts` change reverted, 7 of them fail.
- The values above come from a script run against this branch and
against `develop`.

### Compatibility with Excel and Google Sheets
Not applicable. Formula results do not change; only values read through
the API do. For reference, Excel Online gives `0` for `=Z9` and `TRUE`
for `=ISBLANK(Z9)` when `Z9` is empty. With the option on, HyperFormula
now gives the same values for those formulas and for the empty cell read
through the API.

### Public API changes
With `evaluateNullToZero: true`, `getCellValue()`, `getSheetValues()`,
`getAllSheetsValues()`, `getRangeValues()`, `calculateFormula()` and the
`valuesUpdated` changes return `0` instead of `null` for an empty cell.
The default behaviour is unchanged.

### Out of scope and follow-ups
None.

### 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)
- [x] 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-270

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Behaviour change only when evaluateNullToZero is enabled; default
config is unchanged and formula results are unaffected.
> 
> **Overview**
> With **`evaluateNullToZero: true`**, formulas already treated empty
references as `0`, but **`getCellValue()`**, **`getSheetValues()`**, and
other value-export paths still returned **`null`** for bare empty cells.
**`Exporter.exportValue()`** now maps **`EmptyValue`** to **`0`** when
the option is enabled, so API reads and **`valuesUpdated`** payloads
match formula evaluation.
> 
> **`evaluateNullToZero`** JSDoc and **CHANGELOG** document this
behaviour. With the option off (default), nothing changes. **`ISBLANK`**
still sees empty cells as blank, and **`getCellSerialized()`** still
returns **`null`**.
> 
> When the option is on, sheet value exports can pad rows with **`0`**
up to the sheet width, and **`getCellValue()`** outside the used area
returns **`0`** instead of **`null`**.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
51b0079. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
### Context

Adds `LINEST(known_y, [known_x], [const], [stats])` for simple and
multiple linear regression, including an optional intercept and the
complete five-row statistics result. Supports row and column layouts,
omitted predictors, redundant predictors, and array expressions.

Uses pivoted Householder QR and triangular solves for coefficient
uncertainties. Standard errors accumulate scaled magnitudes with
`Math.hypot`, avoiding overflow or underflow from intermediate squares
when the final uncertainty is representable. Includes localized function
names, catalogue metadata, JSDoc, documentation, and a changelog entry.

### Compatibility limits

- Output dimensions are fixed before evaluation. `stats` must be
constant; references or calculated expressions return `#VALUE!`. Input
expressions that change the predicted predictor count also return
`#VALUE!`. Referenced `const` values can recalculate normally.
- Numerical differences remain for nearly dependent predictors,
effectively perfect fits, and extreme input scales. The implementation
does not emulate observed Excel failures at extreme scales. Other
intermediate calculations can still overflow or underflow; these limits
are documented.

### How did you test your changes?

Compared complete result matrices and error types against Excel Online
observations. Added regression coverage for finite coefficient/intercept
uncertainties at extreme scales and comparisons that cannot accept zero
for tiny nonzero results.

Validation: 124 focused LINEST tests passed; the full Jest suite passed
(503 suites, 6,357 tests); Chrome 153 and Firefox 155 each passed 6,357
tests. Three existing tests are skipped in each full suite. Compile,
function documentation generation, full lint (zero errors), and the
LINEST benchmark passed. The repository-wide performance checks also
passed.

Related task: HF-221.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> New array-returning statistical code with strict sizing rules and
numerically sensitive QR logic; behavior is additive but regressions in
array sizing or stats output would affect spreadsheets using LINEST.
> 
> **Overview**
> Adds **`LINEST`** for simple and multiple linear regression, including
optional intercept (`const`) and the full five-row statistics block when
`stats` is enabled.
> 
> Implementation lives in a new **`RegressionPlugin`** backed by pivoted
Householder QR in **`LinearRegression.ts`**, with parse-time
**`linestArraySize`** so spill width/height are fixed before evaluation.
**`stats` must be a constant** (literals, `TRUE()`/`FALSE()`, etc.);
cell references or computed booleans return **`#VALUE!`** with dedicated
error messages. Result width follows predictor layout (paired, column,
or row predictors); mismatches between predicted and actual predictor
count also yield **`#VALUE!`**.
> 
> Also registers **`LINEST`** in the license capability list, function
catalogue metadata, localized names across language packs, changelog
entry, and docs covering known limitations and numerical differences vs
Excel.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
cbebf1d. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
`hyperformula/dev-docs/EXCEL-COMPATIBILITY.md` ([Verifying expected
values](https://github.com/handsontable/hyperformula/blob/develop/hyperformula/dev-docs/EXCEL-COMPATIBILITY.md#verifying-expected-values))
already requires every expected value in a test to be verified in real
Excel. `dev-docs/CODE-REVIEW.md` doesn't apply that rule to the values a
reviewer proposes. A review that suggests a test case with an unmeasured
expected value asks the author to lock in whatever that value is, and it
may be a divergence from Excel.

Two sources of such values look trustworthy and aren't:

- **Excel's documentation.** It says which cases matter, but the result
it states can differ from what Excel returns.
- **HyperFormula's own output.** It shows what the code does, which is
what the review is checking.

This PR adds two sentences:

1. **Principles, "Review against a source of truth":** Excel's
documentation tells you what to check, not the result; measure any
result it states before relying on it.
2. **Reporting findings, new bullet "Expected values come from Excel":**
a finding that proposes a test case gives its expected value only if
that value was measured in Excel. Otherwise it asks for the case to be
measured and tested, and doesn't state a value.

### How did you test your changes?
- The new link resolves from `dev-docs/`:
`../hyperformula/dev-docs/EXCEL-COMPATIBILITY.md` exists on `develop`
and has `## Verifying expected values`.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### Out of scope and follow-ups
None.

### 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)
- [x] Change to the documentation

`dev-docs/` only; no changelog entry.

### Related issues
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only change to internal review process; no runtime, API,
or test behaviour changes.
> 
> **Overview**
> Aligns **code review guidance** with the existing Excel verification
rule in `EXCEL-COMPATIBILITY.md`, so reviewers do not propose test
expected values from docs or HyperFormula output alone.
> 
> Under **Principles**, the “Review against a source of truth” bullet
now clarifies that Excel’s documentation defines *what* to check, not
the numeric result—any stated result must be measured in Excel first.
> 
> Under **Reporting findings**, a new **Expected values come from
Excel** bullet requires that review comments proposing Excel-comparable
test cases only include an expected value if it was measured in Excel
(with a link to [Verifying expected
values](../hyperformula/dev-docs/EXCEL-COMPATIBILITY.md#verifying-expected-values));
otherwise the review should ask for measurement without asserting a
value. Non-Excel behaviour still uses the spec or documentation as the
source of truth.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
c44b195. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: marcin-kordas-hoc <marcin.kordas@handsontable.com>
### Context

Task: HF-310.

Approximate lookups handled values of a different type than the lookup
value inconsistently: the result depended on whether the lookup went
through linear search, binary search, or the column index, and on
whether it received a cell range, a single cell, or an inline/computed
array.

This PR introduces an internal `ApproximateMatchPolicy` that every
search path applies the same way:

- **`MATCH`, `VLOOKUP`, `HLOOKUP` use `sameType`.** Candidates whose
type differs from the lookup value are skipped, in both linear and
binary search. In binary search they are skipped during the descent
itself (the same mechanism HF-223 uses for empty cells), not only
rejected at the landing cell, so a stray text cell inside a sorted
numeric column can no longer steer the search.
- **`XLOOKUP` uses `totalOrder`.** Cross-type candidates are ordered
numbers < text < logical values < errors and can be returned as the
next-smaller/next-larger match.

The split follows Microsoft Excel, verified in Excel Online:

| Formula | Excel |
|---|---|
| `=XLOOKUP("a", {10;20}, {"x";"y"}, "NF", -1, 1)` | `"y"` (also with
`search_mode` 2) |
| `=MATCH("a", {10;20}, 1)` | `#N/A` |
| `=MATCH(25, A1:A21, 1)`, A1:A21 = 1..10, `"x"`, 12..21 | `21` (same
for the inline-array form) |
| `=MATCH(15, A1:A21, 1)`, same data | `15` (with either
`useColumnIndex` setting in HyperFormula) |

User-visible changes:

- Approximate `XLOOKUP` now returns cross-type candidates where it
previously ignored them in some search modes.
- Approximate `MATCH` no longer returns cross-type candidates for
non-range arrays (e.g. `=MATCH("a", TRANSPOSE(A1:B1), 1)` goes from `2`
to `#N/A`) or single-cell ranges.
- Approximate `MATCH`/`VLOOKUP`/`HLOOKUP` over a sorted cell range
ignore a cross-type cell inside the range instead of being misdirected
by it.

`SearchOptions.approximateMatchPolicy` is **optional and defaults to
`'sameType'`**, so custom function plugins that call
`this.columnSearch.find(...)` keep compiling, and the behaviour when the
option is omitted is defined rather than accidental.

Performance: binary search stays O(log n) unless the descent probes a
skipped cell (empty, or cross-type under `sameType`); only then does it
fall back to the existing O(n) compaction. `test:performance` results
are below.

### How did you test your changes?

- Paired tests: handsontable/hyperformula-tests#49.
- 15 of the new tests fail on `develop` and pass on this branch,
including two Excel-verified total-order cases (an error ranks above
every value; an empty string counts as text).
- 4 tests cover the cross-type cell inside a sorted range (MATCH with
range vs inline array and both `useColumnIndex` settings, VLOOKUP); they
fail without the binary-search change.
- A custom-plugin test calls `this.columnSearch.find` without
`approximateMatchPolicy` and checks that the `sameType` default applies
on both the linear and the binary path.
- `list-of-differences.md`: the Excel column was verified in Excel
Online and the Google Sheets column directly in Google Sheets.
Approximate `XLOOKUP` (linear and binary) returns `"NF"` for a text key
over numbers and for a numeric key over text, and `=MATCH("a", A1:A2,
1)` over numbers returns `#N/A`.
- Full engine + paired suite: 502 suites, 6259 tests passing. `tsc
--noEmit` and lint (0 errors) pass.
- `test:performance` (basic + CRUD benchmarks), this branch vs. the
previous head: every benchmark within ±6% (run-to-run noise), and
*Sorted lookup* 13510 ms → 13367 ms (−1.1%).

### Types of changes

- [ ] Breaking change (a fix or a feature because of which an existing
functionality doesn't work as expected anymore)
- [ ] New feature or improvement (a non-breaking change that adds
functionality)
- [x] Bug fix (a non-breaking change that fixes an issue)
- [ ] Additional language file, or a change to an existing language file
(translations)
- [x] Change to the documentation

### Related issues:

- HF-310
- Tests: handsontable/hyperformula-tests#49

### Checklist:

- [x] I have reviewed the guidelines about [Contributing to
HyperFormula](https://hyperformula.handsontable.com/guide/contributing.html)
and I confirm that my code follows the code style of this project.
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] My change is compliant with the
[OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html)
standard.
- [x] My change is compatible with Microsoft Excel.
- [ ] My change is compatible with Google Sheets.
- [x] I described my changes in the
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md)
file.
- [x] My changes require a documentation update.
- [ ] My changes require a migration guide.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes core lookup semantics for MATCH/VLOOKUP/HLOOKUP/XLOOKUP across
all search implementations; formulas that relied on the old inconsistent
cross-type behavior will return different results, though the new
behavior matches Excel.
> 
> **Overview**
> Fixes inconsistent approximate lookup behavior when the lookup value
and search-range cells have different types (linear vs binary vs column
index, ranges vs inline arrays).
> 
> Adds an internal **`ApproximateMatchPolicy`** on `SearchOptions`
(defaults to **`sameType`**). **`MATCH`**, **`VLOOKUP`**, and
**`HLOOKUP`** skip cross-type candidates in linear and binary search;
binary search treats them like empty cells during the descent so a stray
value cannot mis-route the search. **`XLOOKUP`** uses **`totalOrder`**
so approximate matches can pick cross-type bounds using Excel’s
number/text/boolean ordering.
> 
> Linear approximate search no longer seeds bounds with ±Infinity; it
tracks the best eligible index instead. **`ColumnIndex.find`** forwards
full search options to the binary fallback. **CHANGELOG** and
**`list-of-differences.md`** document Excel-aligned behavior.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
a54f7db. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
Adds two text functions, `CONCAT` and `VALUETOTEXT`.

- `CONCAT(text1, [text2], ...)` joins the text of all arguments, reading
every range row by row. Numbers are written to 15 significant digits, in
plain decimal notation while that takes at most 20 digits and in
scientific notation otherwise (`1E-20`, `1.5E+21`), booleans as `TRUE`
or `FALSE`, blank cells as nothing. An error in an argument that is not
a range, a single-cell reference included, is returned first; otherwise
the first error inside the ranges, in argument order. A result longer
than 32767 characters is `#VALUE!`.
- `VALUETOTEXT(value, [format])` writes a value as text. Format 0
(default) is the concise form; format 1 is the strict form, which puts
text in quotes and doubles the quotes inside it. Errors are written as
their name, not propagated. The format is rounded down to an integer,
and anything other than 0 or 1 is `#VALUE!` with a message, so `-0.5` is
`#VALUE!` and `1.9` is the strict form.
- Implemented in `TextPlugin`, with the catalogue entries, every
language file, the license capability table and a changelog entry.
- Translations come from Microsoft's localized function pages. Each name
was confirmed on the function's own page; where the list and the page
disagree, or the name would duplicate another function in the same
language (pl and da `CONCAT`), the English name is kept. `enGB`, `enUS`
and `idID` keep the English names.

### How did you test your changes?
- Paired branch `feat/hf-concat-valuetotext` in `hyperformula-tests`:
`unit/interpreter/function-concat.spec.ts` and
`unit/interpreter/function-valuetotext.spec.ts` (144 tests).
- Full Jest run with the paired suite attached: 522 suites, 6886 tests
passed, 3 skipped.
- ESLint on the changed `.ts` files (engine and paired tests): 0 errors;
the full lint runs in CI.

### Compatibility with Excel and Google Sheets
94 formulas were evaluated in Excel Online through a Microsoft Graph
session. The account uses a Polish locale, so results that contain
booleans or decimals come back as `PRAWDA` or `1,5`: those 19 formulas
are asserted in en-US form (`TRUE`, `1.5`) in the tests and left out of
the live comparison. The other 75 were compared live with HyperFormula:
61 identical, 11 different, 3 not evaluable (calls with a wrong number
of arguments, which Excel rejects when the formula is entered).

The 11 differences:

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
| `=VALUETOTEXT(A1:B2)` and other multi-cell ranges (6 formulas) |
spills one text per cell, an error as its name (`#SPILL!` when the cells
it spills into are taken) | not checked | `#VALUE!` with the array
arithmetic mode disabled (the default); listed in
`docs/guide/list-of-differences.md` |
| `=CONCAT(REPT("a",20000),REPT("b",20000))` | `#CALC!` | not checked |
`#VALUE!`, because HyperFormula has no `#CALC!`; listed in the same file
|
| a text literal with a doubled quote, `"say ""hi"""` (2 formulas) |
accepted | not checked | parsing error; the same texts are tested
through cell values |
| the number literal `1E+21` | accepted | not checked | parsing error
(`1e+21` is accepted); #1835, not merged yet, accepts the uppercase
exponent |
| `=VALUETOTEXT(D2,1)` where `D2` holds an empty string | measuring
artifact: the oracle writes an empty string as a blank cell | not
checked | `""`; the blank-cell case is tested with a blank cell |

`docs/guide/list-of-differences.md` also lists the order in which
`CONCAT` returns errors: for `=CONCAT(F1:G1, E1)` with `E1` = `#DIV/0!`
and `F1` = `#N/A`, Excel takes errors in references in argument order
after errors in computed arguments and returns `#N/A`; HyperFormula
returns the single-cell reference's error first, `#DIV/0!`.

Measured on 2026-11-03 in the same account, and listed in
`docs/guide/list-of-differences.md`:
- Excel treats a `VALUETOTEXT` format up to about 1e-7 below a whole
number as that number (`=VALUETOTEXT("a",0.99999999)` is the strict
form); HyperFormula rounds it down.
- `CONCATENATE`, `TEXTJOIN` and `&` write up to 17 significant digits
(`=CONCATENATE(1/3)` is `0.3333333333333333`); Excel writes 15 in all of
them, as `CONCAT` and `VALUETOTEXT` do here.
- Booleans are written as `TRUE` and `FALSE` in every language; Polish
Excel writes `PRAWDA` in all five conversions.

Measured separately in Excel Online: `=VALUETOTEXT(1,"")` and
`=VALUETOTEXT("a","")` are `#VALUE!`, as in HyperFormula, while
`=VALUETOTEXT(1,0)` is `1` in both, so an empty text is not read as
format 0.

### Public API changes
None. Two new built-in functions, `CONCAT` and `VALUETOTEXT`.

### Out of scope and follow-ups
- Switching `CONCATENATE`, `TEXTJOIN` and `&` to the 15-digit conversion
is a separate change: the same coercion converts every string argument.
- The parser rejects a text literal with a doubled quote inside it
(`="say ""hi"""` is a parsing error). This pull request does not change
the parser.
- The uppercase exponent literal (`1E+21`) is accepted by #1835, which
is not merged yet.

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

### Related issues
1. HF-464 (`CONCAT`)
2. HF-462 (`VALUETOTEXT`)

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Non-breaking addition of two text functions with localized names and
documented Excel parity differences; no API or security-sensitive
changes.
> 
> **Overview**
> Adds **CONCAT** and **VALUETOTEXT** as built-in text functions in
`TextPlugin`, wired through function metadata, license gating
(`UNGROUPED_FUNCTIONS`), localized names in all language packs, and an
Unreleased changelog entry.
> 
> **CONCAT** walks each argument row-by-row (ranges/arrays included),
converts scalars via a new **`coerceScalarToText`** helper (15
significant digits for numbers, `TRUE`/`FALSE` for booleans), enforces
Excel’s 32,767-character limit as `#VALUE!`, and applies a specific
error precedence for single-cell refs vs range errors.
> 
> **VALUETOTEXT** returns concise (0) or strict quoted (1) text,
surfaces errors as text instead of propagating them, and validates the
format argument with floor rounding (empty format → `#VALUE!`).
> 
> `docs/guide/list-of-differences.md` documents intentional gaps vs
Excel/Google (spill behavior, `#CALC!` vs `#VALUE!`, format tolerance,
digit counts on older join functions, boolean locale, CONCAT error
order).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
6dfd129. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
### Context

The PR adds a security policy, so people know how to report a
vulnerability privately.

- **Why:** The repository has no `SECURITY.md`, and the docs name no
security contact. A researcher's only option is a public issue, which
discloses the problem before a fix exists.
- **What changed:**
- `SECURITY.md` (new): report to security@handsontable.com, what to
include, disclosure after a fixed release, and which versions get fixes.
- `docs/guide/contact.md`: a "Report a security vulnerability" section
that links the policy. The file also gains a final newline.
- **Result:** GitHub shows a "Security policy" link on the repository,
and the Contact page names the reporting channel.

#### Rationale

A vulnerability in a released version has to reach the team privately
and be fixed before anyone discloses it. Without a policy, a researcher
can only open a public issue, which discloses the problem to everyone at
once. The company IT Security Repository sets the rules this file
supports:

> "Zero-days are fixed before disclosure; the public GitHub issue comes
after a fix exists."
> — [9. SDLC Security
Control](https://app.clickup.com/9015210959/docs/8cnjcyf-35415/8cnjcyf-49475),
Vulnerability and patch management SLA

> "Defined procedure for security vulnerabilities and regressions:
immediate internal communication in Slack on a dedicated thread; impact
and urgency assessment; a GitHub issue for transparency except for
zero-days; remediation per the SLA above; documented lessons learned."
> — [9. SDLC Security
Control](https://app.clickup.com/9015210959/docs/8cnjcyf-35415/8cnjcyf-49475),
Incident response

> "A pentester or external researcher reporting a finding."
> — [6. Security
Incidents](https://app.clickup.com/9015210959/docs/8cnjcyf-35415/8cnjcyf-49415),
What counts as an incident

A report to security@handsontable.com reaches the team that runs that
incident process. The address is the one the Handsontable docs already
publish for security reports.

### How did you test your changes?

Not run locally: the edits were made in the GitHub web editor. The docs
build in CI covers the Markdown.

### Compatibility with Excel and Google Sheets

Not applicable.

### Public API changes

None.

### Out of scope and follow-ups

- Turning on GitHub private vulnerability reporting (a repository
setting) as a second channel.

### 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)
- [x] Change to the documentation

### Related issues
None.

### Checklist
- [ ] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a CHANGELOG.md entry – or none is needed (docs, tests or
tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01KD7f9X9Hm2z4bZzpssoqcP

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only changes with no runtime, API, or security-logic
modifications.
> 
> **Overview**
> Adds a **GitHub security policy** so researchers can report issues
privately instead of opening public GitHub threads.
> 
> **`SECURITY.md`** directs reports to **security@handsontable.com**,
lists what to include (version, repro, impact), states acknowledgment
and **disclosure only after a fixed release**, and notes that fixes ship
in new HyperFormula releases.
> 
> The **Contact** guide gains a **Report a security vulnerability**
section that repeats the private channel and links to the policy, so the
docs match what GitHub surfaces as the repo security policy.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
02785cb. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context

The PR adds CodeQL to the security tools listed on the Quality &
Security docs page.

- **Why:** `.github/workflows/codeql.yml` runs CodeQL static analysis
(`security-and-quality` queries), but the page names only Fossa,
Dependabot and Snyk. The page understated the checks the project runs.
- **What changed:**
- `docs/guide/quality.md`: one new bullet under Security. It says CodeQL
runs on every pull request, on every push to the main branches, and
weekly, matching the workflow triggers.
- **Result:** The public page lists every security scanner that runs in
CI.

#### Rationale

What the project publishes about its security controls must match what
actually runs, because clients and auditors read this page when they
assess HyperFormula. CodeQL runs in CI, but neither this page nor the
company's internal security documentation says so:

> "Note: we run no dedicated SAST tool — SCA finds known vulnerabilities
in dependencies, not flaws in our own code."
> — [9. SDLC Security
Control](https://app.clickup.com/9015210959/docs/8cnjcyf-35415/8cnjcyf-49475),
Testing

`codeql.yml` contradicts that note: it runs the `security-and-quality`
queries over the project's own source, which is static application
security testing. The Statement of Applicability requires the
documentation to match the controls it lists:

> "Any change to a control's status must be evidenced by the document or
task named against it."
> — [18. Statement of Applicability
(SoA)](https://app.clickup.com/9015210959/docs/8cnjcyf-35415/8cnjcyf-49735),
Risk treatment and review

An auditor who compares the docs with CI would record the gap as a
finding. This PR fixes the public page. The internal SDLC page and the
Statement of Applicability are corrected through the security team's own
change process.

### How did you test your changes?

Not run locally: the edit was made in the GitHub web editor. The docs
build in CI covers the Markdown.

### Compatibility with Excel and Google Sheets

Not applicable.

### Public API changes

None.

### Out of scope and follow-ups

- The internal security documentation that says no static analysis tool
runs is updated separately.

### 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)
- [x] Change to the documentation

### Related issues
None.

### Checklist
- [ ] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a CHANGELOG.md entry – or none is needed (docs, tests or
tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01KD7f9X9Hm2z4bZzpssoqcP

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only change with no code, API, or runtime impact.
> 
> **Overview**
> Updates the **Quality & Security** guide so the Security section
matches CI: it adds a bullet for **static code analysis with GitHub
CodeQL**, noting it runs on every pull request, on pushes to the main
branches, and on a weekly schedule.
> 
> The page previously listed Fossa, Dependabot, and Snyk but omitted
CodeQL, which understates the automated checks the repo runs.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
9304004. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context

The PR adds a place to declare AI-generated code: a section in the PR
template, and the rules for AI-assisted changes in `dev-docs/`.

- **Why:** The team uses Claude Code, Cursor and Copilot, and agents
push their own branches. Reviewers can't tell which parts of a PR a tool
wrote, so they can't give those parts the scrutiny they need, such as a
licence check for copied code.
- **What changed:**
- `.github/pull_request_template.md`: new **AI assistance** section
after "How did you test your changes?". It asks for the tool and the
parts it wrote, or "None".
- `dev-docs/DEFINITION-OF-DONE.md`: new **AI-assisted changes** section.
It defines "substantial" and the checks before review: approved tools on
a company account, nothing sensitive in prompts, licence checked, every
line understood.
- `dev-docs/CODE-REVIEW.md`: one checklist item for reviewers, next to
the existing agent-mistakes item.
  - `dev-docs/README.md`: index row pointing to the new section.
- **Result:** Every PR states whether AI wrote part of it, and both
authors and reviewers have one page that says what that means for the
review.

### How did you test your changes?

Not run locally: the edits were made in the GitHub web editor. I checked
the link targets: `AGENTS.md#common-ways-agents-fail` and `SECURITY.md`
exist on `develop`, and `#ai-assisted-changes` matches the new heading.

### AI assistance

Claude Code wrote all four edits and this description.

### Compatibility with Excel and Google Sheets

Not applicable.

### Public API changes

None.

### Out of scope and follow-ups

- `AGENTS.md` is not changed: agents fill in the template, and the
template comment links the new section.

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

Developer documentation and the PR template only; nothing in `docs/`
changes.

### Related issues
None.

### Checklist
- [ ] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a CHANGELOG.md entry – or none is needed (docs, tests or
tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01KD7f9X9Hm2z4bZzpssoqcP

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Process and developer-documentation updates only; no engine, API, or
runtime behavior changes.
> 
> **Overview**
> **Pull requests must now declare when AI wrote a substantial part of
the change**, so reviewers know which sections need extra scrutiny
(including licence checks).
> 
> The GitHub **pull request template** gains an **AI assistance**
section (tool name, what it wrote, or "None"), with a pointer to the new
dev-docs rules. **`dev-docs/DEFINITION-OF-DONE.md`** adds **AI-assisted
changes**: what counts as substantial, and pre-review requirements
(approved company tools, no sensitive prompts, licence compatibility,
understanding every line). **`dev-docs/CODE-REVIEW.md`** adds a matching
reviewer checklist item alongside the existing agent-mistakes check.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
daac140. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Kuba Sekowski <sequba@users.noreply.github.com>
### Context

The PR updates every GitHub Action in CI to its current release, pins
each one to a full commit SHA, and adds Dependabot to keep them current.

- **Why:** Most workflows pinned actions from 2019–2020 (`checkout`
v2.0.0, `setup-node` v1.4.4, `codecov-action` v1.0.13,
`sticky-pull-request-comment` v1.6.0). Those versions run on retired
Node runtimes and miss years of fixes. The CodeQL workflows used movable
tags (`@v2`, `@v3`, `@v4`), so whoever controls the tag controls code
that runs with `security-events: write`. Nothing proposed updates,
because the repository had no `dependabot.yml`.
- **What changed:**
- `.github/dependabot.yml` (new): weekly updates for GitHub Actions
(grouped into one PR) and npm (at most 5 open PRs).
- 9 workflow files: each `uses:` points to a full SHA with the version
in a comment: `checkout` v7.0.1, `setup-node` v7.1.0, `codecov-action`
v7.1.1, `codeql-action` v4.39.2, `sticky-pull-request-comment` v3.0.5.
- `test.yml`: the Codecov token moves from `env` to the `token` input,
as the current action expects.
- `codeql.yml`: drops the unused workflow-level `pull-requests: write`
permission.
- **Result:** No action runs from a movable tag, and Dependabot raises a
PR when a pinned action or an npm dependency has a new release.

#### Rationale

CI runners and dependencies need the same patching as the code they
build. A pinned action that never moves stops receiving security fixes,
and a tag-referenced action can change under the project without review.
Pinning by SHA makes every change to CI code a reviewed PR, and
Dependabot raises those PRs as soon as a new release exists.

### How did you test your changes?

Not run locally: the edits were made in the GitHub web editor. The
workflows on this PR are the test. Check that every job passes,
including CodeQL, Performance and the Codecov upload.

Major-version jumps a reviewer should know about:

| Action | From | To | What changed in between |
|---|---|---|---|
| `actions/checkout` | v2.0.0 / v2.3.4 / unlabeled SHA | v7.0.1 | Node
24 runtime; credentials kept in a separate file |
| `actions/setup-node` | v1.4.4 | v7.1.0 | Node 24 runtime; automatic
npm caching when `package.json` has a `packageManager` field |
| `codecov/codecov-action` | v1.0.13 | v7.1.1 | Uses the Codecov CLI;
token passed as an input |
| `marocchino/sticky-pull-request-comment` | v1.6.0 | v3.0.5 | Skips the
comment when the body is empty |
| `github/codeql-action` | `@v2` / `@v3` tags | v4.39.2 | Node 24
runtime |

### Compatibility with Excel and Google Sheets

Not applicable.

### Public API changes

None.

### Out of scope and follow-ups

- `codeql.yml` and `codeql-advanced.yml` both analyze JavaScript on
every PR. One of them can probably go.
- Turning on Dependabot alerts and security updates in Settings → Code
security.

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

CI configuration only.

### Related issues
None.

### Checklist
- [ ] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a CHANGELOG.md entry – or none is needed (docs, tests or
tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01KD7f9X9Hm2z4bZzpssoqcP

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Large major-version CI action upgrades and CodeQL pin changes affect
security scanning and secret-handling paths, though application code is
untouched.
> 
> **Overview**
> Adds **`.github/dependabot.yml`** so GitHub Actions (weekly, one
grouped PR) and npm dependencies (weekly, max 5 open PRs) stay current
while workflows keep full commit SHA pins.
> 
> Across **nine workflow files**, every third-party `uses:` reference is
bumped to current releases and pinned by SHA with a version comment—
notably **`actions/checkout`** v7.0.1, **`actions/setup-node`** v7.1.0,
**`codecov/codecov-action`** v7.1.1, **`github/codeql-action`** v4.39.2
(replacing movable `@v2`/`@v3`/`@v4` tags), and
**`marocchino/sticky-pull-request-comment`** v3.0.5 on the performance
workflow.
> 
> **`test.yml`** passes the Codecov secret via the action’s `token`
input instead of `env`. **`codeql.yml`** drops unused workflow-level
`pull-requests: write` permission while job-level scan permissions stay
the same.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
02c724d. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
Formulas with consecutive percent operators, such as `=5%%`, failed to
parse ("Redundant input, expecting EOF but found: %"), while `=(5%)%`
worked. Excel accepts consecutive `%` and divides by 100 for each one.
The `rightUnaryOpAtomicExpression` rule now accepts zero or more `%`
after an operand and nests one percent node per operator, so `=5%%`
returns `0.0005`. Each operator keeps its own leading whitespace, and
operator precedence does not change.

### How did you test your changes?
Paired tests: hyperformula-tests#65, branch `fix/HF-268`. They cover
evaluation (precedence, references, named expressions, coercion, errors,
arrays), the parsed AST, the round trip through the unparser with
whitespace and in Polish, and the malformed `=%%` and `=5%%2`. With the
parser change reverted, 21 of them fail. CI on this commit: Jest 520
suites, 6,764 tests passed, 3 skipped; Chrome and Firefox 6,751 tests
each.

### Compatibility with Excel and Google Sheets
Excel values measured in Microsoft Excel Online. Google Sheets not
checked.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
| `=5%%` | 0.0005 | not checked | 0.0005 |
| `=5%%%` | 0.000005 | not checked | 0.000005 |
| `=5%%+1` | 1.0005 | not checked | 1.0005 |
| `=2*5%%` | 0.001 | not checked | 0.001 |
| `=5%%^2` | 0.00000025 | not checked | 0.00000025 |
| `=-5%%` | -0.0005 | not checked | -0.0005 |
| `=SUM(2,3)%%` | 0.0005 | not checked | 0.0005 |
| `="5"%%` | 0.0005 | not checked | 0.0005 |
| `="oops"%%` | #VALUE! | not checked | #VALUE! |
| `=#DIV/0!%%` | #DIV/0! | not checked | #DIV/0! |
| `=SUM({5,100}%%)` with `useArrayArithmetic: true` | 0.0105 | not
checked | 0.0105 |
| `=%%`, `=5%%2` | rejected as invalid | not checked | parsing error |

### Public API changes
None.

### Out of scope and follow-ups
None.

### 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)
- [x] Bug fix (a non-breaking change that fixes an issue)
- [ ] Additional language file, or a change to an existing language file
(translations)
- [x] Change to the documentation

### Related issues
1. HF-268
2. Tests: handsontable/hyperformula-tests#65

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Localized parser change for postfix percent chaining; no public API
changes and existing single-% behavior is preserved via the same AST
builder.
> 
> **Overview**
> Fixes formulas like **`=5%%`** that previously failed to parse with
redundant-input errors while **`=(5%)%`** worked. The
**`rightUnaryOpAtomicExpression`** parser rule now accepts **zero or
more** `%` tokens after an atomic operand and builds nested percent AST
nodes (each still divides by 100), so **`=5%%`** evaluates to
**`0.0005`** and **`=5%%%`** to **`0.000005`**, matching Excel. Operator
precedence and per-**`%`** leading whitespace are unchanged.
> 
> **CHANGELOG** and the unary-operators guide now document consecutive
**`%`** behavior.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
c9c02f6. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Kuba Sekowski <jakub.sekowski@handsontable.com>
### Context

An array formula whose result is a whole column or a whole row, such as
`=SORT(Data!A:A)` or `=FILTER(Data!A:A, Data!A:A>0)`, only fits at the
matching sheet edge. Placed anywhere else, it has no room to spill.

Before this PR, the error depended on how the formula reached the cell:

| How the formula is entered | Result |
|---|---|
| `buildFromSheets` / `buildFromArray` | `#SPILL!` "No space for array
result." |
| `setCellContents` | `#ERROR!` "Parsing error. Invalid range size." |

The second result is misleading: the formula parses fine.

Cause: `DependencyGraph.exchangeOrAddFormulaVertex` builds the result
area with `AbsoluteCellRange.spanFrom`, which throws when an unbounded
area can't be placed. The catch in `Operations.setCellContent` (added in
#1311 to stop the runtime exception from #1267) stores that throw as a
parsing error. The build path uses `spanFromOrUndef` in
`setAddressMappingForArrayVertex` and reaches the normal space check,
which returns `#SPILL!`.

This PR makes `exchangeOrAddFormulaVertex` use `spanFromOrUndef` and
skip the result-area mapping when the area can't be placed, like the
build path. It also marks the vertex as no-space (`setNoSpace`) right
away. That puts it in the state the build path reaches after evaluation:
a one-cell `#SPILL!` array. Without that step, clearing or overwriting
the cell while evaluation is suspended (`suspendEvaluation` or `batch`)
would call `getRange` on the unbounded vertex and crash. The formula is
stored and evaluates to `#SPILL!`. Arrays that can be placed, and
non-array formulas, are unchanged.

`#SPILL!` is also what Excel shows for a whole-column result that can't
fit (measured in Excel Online for `TAKE` and `DROP` whole-column results
placed below the first row).

#1311 changed a runtime exception into a cell error, and that still
holds. Only the error changes, to the `#SPILL!` the build path already
returns.

### How did you test your changes?

- Tests: handsontable/hyperformula-tests#73.
- The two `setCellContents` tests in `ranges.spec.ts` that expected
`#ERROR!` "Invalid range size" for `=A:A+B1` and `=A:A+1:1` now expect
`#SPILL!`, matching the build-path tests next to them.
- New tests for FILTER and SORT over a whole column entered below the
first row:
    - the result is `#SPILL!`, and the formula is stored;
    - no cells below are reserved;
    - undo restores the previous value, and redo returns `#SPILL!`;
- clearing it while evaluation is suspended, and overwriting it inside a
`batch`, both work;
- it is `#SPILL!` after evaluation resumes, and stays `#SPILL!` when its
source changes;
- control: the same function over a bounded range still spills normally.
- On `develop`, 7 of those tests fail: every test that expects
`#SPILL!`. With this PR, all 19 tests in `ranges.spec.ts` pass. With
only the first commit (no `setNoSpace`), the suspended-clear and `batch`
tests crash. That is the case Cursor Bugbot reported on this PR.
- An additional script compared engines built both ways through the same
9 steps (initial, edit another cell, insert rows, remove rows, undo,
redo, move the formula to A1, clear, undo the clear) for FILTER and SORT
over a whole column. It also covered `DROP` and `TAKE` whole-column
results, run on the #1796 branch. With this fix, the two paths returned
identical results at all 54 steps. Before it, every step that left the
formula below the first row differed.
- Full Jest suite: 502/502 suites, 6,244 tests passed, 3 skipped. `tsc
--noEmit` passes, and lint reports no new warnings in
`DependencyGraph.ts`.

### Types of changes

- [ ] Breaking change (a fix or a feature because of which an existing
functionality doesn't work as expected anymore)
- [ ] New feature or improvement (a non-breaking change that adds
functionality)
- [x] 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. Follow-up to #1311 / #1267.
2. Found while reviewing #1796, which adds `DROP`. `DROP` and `TAKE`
(#1722) go through the same path.
3. Tests: handsontable/hyperformula-tests#73

### Checklist:
- [x] I have reviewed the guidelines about [Contributing to
HyperFormula](https://hyperformula.handsontable.com/docs/guide/contributing.html)
and I confirm that my code follows the code style of this project.
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] My change is compliant with the
[OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html)
standard.
- [x] My change is compatible with Microsoft Excel.
- [ ] My change is compatible with Google Sheets.
- [x] I described my changes in the
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md)
file.
- [ ] My changes require a documentation update.
- [ ] My changes require a migration guide.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Touches array-formula graph setup on every `setCellContents` edit;
behavior change for callers that relied on the old `#ERROR!` message,
but bounded arrays and non-array formulas are unchanged.
> 
> **Overview**
> **`setCellContents`** now reports **`#SPILL!`** (not **`#ERROR!` /
"Invalid range size"**) when an array formula’s whole-column or
whole-row result cannot fit at the entry cell—e.g. **`=SORT(A:A)`**
below row 1—matching **`buildFromSheets`** and Excel.
> 
> In **`DependencyGraph.exchangeOrAddFormulaVertex`**, the spill area is
computed with **`spanFromOrUndef`** instead of **`spanFrom`**, so an
unplaceable unbounded result no longer throws and gets misclassified as
a parse error. When no range can be placed, array vertices are marked
**`setNoSpace()`** immediately and spill mapping is skipped, avoiding
crashes when clearing or overwriting the cell during
**`suspendEvaluation`** or **`batch`**.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
5b19c60. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
The PR fixes number literals with an uppercase exponent marker, such as
`=1E5` or `=1E-3`, which were a parse error.

- **Why:** the lowercase form `=1e5` already parses, and Excel accepts
the uppercase form (table below).
- **What changed:** `hyperformula/src/parser/LexerConfig.ts`: the
number-literal pattern is case-insensitive, so the exponent marker
matches `e` or `E`.
- **Result:** `=1E5` returns `100000` instead of a parse error.

### How did you test your changes?
- Paired branch `fix/hf-553-uppercase-exponent` in `hyperformula-tests`:
`unit/parser/decimal.spec.ts` has one case per literal (`=1E1`, `=1E+1`,
`=1E-1`, `=1.5E2`, `=.5E1`, `=2E0+1e0`), the formula read back through
`getCellFormula()` (`=1E5` reads back as `=100000`, like `=1e5`), a
comma decimal separator (`=1,5E2` with `decimalSeparator: ','`), and
exponents without digits (`=1E`, `=1E+`), which stay parsing errors.
With `LexerConfig.ts` from `develop`, 8 of the 11 cases in that file
fail; the other 3 are the existing case with lowercase exponents and the
two malformed-input cases, which are parsing errors either way.
- Full Jest run with the paired suite attached, on this branch after
merging `develop`: 523 suites, 7058 tests passed, 3 skipped.
- ESLint on the changed `.ts` files (engine and paired tests): 0 errors;
the full lint runs in CI.

### AI assistance
Claude Code wrote the lexer change, the paired tests, the CHANGELOG
entry and this description; every commit on both branches, other than
merges, carries its co-author line.

### Compatibility with Excel and Google Sheets
Checked in Excel Online: 37 formulas with number literals, 28 identical.
Of the other 9, five are malformed literals (`=1E`, `=1E+`, `=1EE5`,
`=1E5E5`, `=1E 5`) that Excel refuses to enter and HyperFormula reads as
parse errors; `=TYPE(1E5)` and `=ERROR.TYPE(1E5)` call functions this
branch does not have; `=2E-308` and `=E5` give `null` where Excel gives
0, as `=2e-308` and an empty cell already do on `develop`.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
| `=1E5` | `100000` | not checked | `100000` (was a parse error) |
| `=1E-3` | `0.001` | not checked | `0.001` (was a parse error) |
| `=1.5E2` | `150` | not checked | `150` (was a parse error) |

### Public API changes
None.

### Out of scope and follow-ups
- HF-575: number literals hash differently in the token cache and the
AST cache, so pasting a formula with `1E5`, or adding a sheet-scoped
name it uses, throws `There is no AST with such key in the cache`; `1e5`
and `100000.0` already do on `develop`.
- HF-576: complex-number strings accept only a lowercase exponent, so
`=IMREAL("1E2+3i")` is `#NUM!`, where Excel returns 100.

### 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)
- [x] 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-553

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)



<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Single lexer regex flag change in the formula parser with no API or
security impact.
> 
> **Overview**
> Fixes formula parsing so **scientific notation can use an uppercase
`E`**, matching Excel and the behavior already supported for lowercase
`e`.
> 
> The change is a one-line update in `LexerConfig.ts`: the
`NumberLiteral` lexer regex now uses the **`i` (case-insensitive)
flag**, so literals like `=1E5`, `=1E-3`, and `=1.5E2` tokenize and
evaluate instead of failing with a parse error. Malformed exponents
(e.g. `=1E` without digits) remain errors. **CHANGELOG** documents the
fix; there is no public API change.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
eee0828. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context

`hyperformula/src/AbsoluteCellRange.ts` has no JSDoc on most of its
classes and methods. `dev-docs/CODE-STYLE.md` asks for JSDoc on all
classes and functions, and ESLint reports each missing block as a
`jsdoc/require-jsdoc` warning. This pull request adds JSDoc to every
helper, class, constructor, getter and method in that file, including
the overrides in `AbsoluteColumnRange` and `AbsoluteRowRange`.

The diff only adds comment lines. No code line changes, so the compiled
output and the typings' signatures are the same as on `develop`. The
TypeDoc configuration used for the API reference does not exclude this
file, so these descriptions also appear in the generated reference.

It is scoped to one file so that it does not conflict with other open
work.

### How did you test your changes?

ESLint on the file (`npx eslint --ext .ts src/AbsoluteCellRange.ts` in
`hyperformula/`):

| | Warnings | Errors |
|---|---|---|
| `develop` | 69 (all `jsdoc/require-jsdoc`) | 0 |
| this branch | 0 | 0 |

The other `jsdoc/*` rules (parameter names, types, `@returns`,
`@yields`) report nothing on the new blocks either.

`npx tsc --noEmit` passes. The full Jest suite, run with the private
suite from `hyperformula-tests` `develop` (no paired branch, because no
test changes), reports 520 of 520 suites passed (6742 tests passed, 3
skipped).

### Compatibility with Excel and Google Sheets

Not applicable: comments only, no change to calculation results.

### Public API changes

None. The classes in this file are not re-exported from
`hyperformula/src/index.ts`, and no signature changes.

### Out of scope and follow-ups

Other files still miss JSDoc; this pull request does not touch them.

### 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)
- [x] Change to the documentation

### Related issues
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
marcin-kordas-hoc and others added 23 commits November 23, 2026 21:43
… HF-424, HF-425, HF-428) (#1818)

### Context

Adds four statistical functions: `PERCENTRANK.INC` (with its
`PERCENTRANK` alias), `MODE.MULT`, `FREQUENCY` and `PROB`.

- `PERCENTRANK.INC(array, x, [significance])` returns the rank of `x` as
a fraction from 0 to 1, interpolating between neighbours, truncated to
`significance` digits (3 by default, also when the argument is empty).
The rank is rounded to 15 significant digits before the truncation, so
3.9 in 1 to 11 at 8 digits is 0.29. `x` outside the data is `#N/A`;
`significance` is truncated to an integer and must be at least 1
(otherwise `#NUM!`).
- `MODE.MULT(number1, ...)` returns a column with every most frequent
value, in order of first occurrence, `#N/A` when no value repeats, and
`#VALUE!` for an empty argument.
- `FREQUENCY(data_array, bins_array)` returns a column with the count of
values up to each bin and one more row for the values above the last
bin. Text and blank cells are ignored; an empty argument is `#VALUE!`.
- `PROB(x_range, prob_range, lower_limit, [upper_limit])` returns the
probability that a value lies between the limits; an empty `upper_limit`
counts as omitted. Only the sum of the probabilities is checked, so a
single one can be 0, negative or above 1. The sum, added without
rounding error and added in floating point in cell order, must be 1 when
rounded to 15 significant digits (otherwise `#NUM!`): `{0.01,0.29,0.7}`
is accepted, `{0.5,0.499999999999999}` and `{0.5,0.500000000000006}` are
rejected, and so is `{1,1E+20,-1E+20}`, which cancels out. Ranges of
different sizes give `#N/A`.
- Implemented in `PercentilePlugin` and `StatisticalAggregationPlugin`,
with `ArraySizePredictor.isSizeKnownBeforeEvaluation` for the result
size, metadata, translations, the license capability table entries, a
line in `docs/guide/known-limitations.md`, a row in
`docs/guide/list-of-differences.md`, a paragraph on result size methods
in `hyperformula/dev-docs/INTERPRETER.md`, and a CHANGELOG entry.

`MODE.MULT` and `FREQUENCY` reserve their result area before evaluation:
half as many rows as values passed to `MODE.MULT` (rounded down, at
least one), and one row per cell of `bins_array` plus one for
`FREQUENCY`. Rows the result does not fill stay empty, and a value in
any reserved cell gives `#SPILL!`. When an argument of `MODE.MULT` or
the `bins_array` of `FREQUENCY` has no fixed size before evaluation (a
whole-column or whole-row range, a named expression, or a function whose
result size depends on cell values, such as `SEQUENCE(A1)`), the formula
takes one cell, so a larger result is `#VALUE!`. Both are in the line
added to the known limitations.

Translations: each localized name was checked on Microsoft's page for
the function in that language
(`support.microsoft.com/<locale>/excel/functions/<function>`): the name
is in the page's title or heading and in its syntax line. The Dutch page
names `FREQUENCY` `INTERVAL`, which HyperFormula's `INTERVAL` already
uses in `nlNL`, so the English name is kept there. On the Swedish pages
of `PERCENTRANK.INC` and `PERCENTRANK`, one of title and heading shows
the English name, while the other and the syntax show `PROCENTRANG.INK`
and `PROCENTRANG`. The Czech pages keep the English names for
`PERCENTRANK.INC`, `PERCENTRANK`, `MODE.MULT` and `PROB`, and so does
`csCZ`; `enGB` and `idID` keep the English names, which their Microsoft
pages also use.

### How did you test your changes?

Paired tests: handsontable/hyperformula-tests#94, branch
`feat/hf-stats2-percentrank-inc-modemult-frequency-prob`. The four specs
share their helpers in `unit/testUtils.ts`, and each case is its own
test with one assertion.

- The four specs: 302 tests, all green on this head, including
`MODE.MULT` over 300000 values, the measured probability sums and one
German-name test per function. Against `develop`, the `PERCENTRANK.INC`
spec fails all 67 tests, `MODE.MULT` 62 of 64 and `FREQUENCY` 83 of 85
(the cases that pass check that a cell stays empty, which also holds
when the function is missing), and the `PROB` spec does not compile,
because `ErrorMessage.ProbabilitySum` is new.
- Full Jest on this head: 527 suites, 7350 tests passed, 3 skipped (at
dcbf74a with tests d773f42, before the develop merge).
- Revert checks: putting back the `>= 1` condition of `PROB` fails 6
tests; reading an empty `upper_limit` as 0 fails 1; dropping the
empty-argument default of `PERCENTRANK.INC` fails 2, the empty-argument
check of `MODE.MULT` 3 and of `FREQUENCY` 2, and keeping the predicted
size for an empty argument 2; the old truncation fails 3, a cap at 15
decimal places 1.

### AI assistance
Claude Code wrote the four functions, the metadata, translations and
license entries, the guide and dev-docs lines, the CHANGELOG entry, the
paired tests and this description. 12 of the 13 non-merge commits on
this branch and all 12 on the tests branch carry its co-author line.

### Compatibility with Excel and Google Sheets

Measured in Excel Online (Polish workbook, its decimal comma written as
a dot) on 2026-11-09, 57 formulas, and earlier 122, 26 and 66 formulas;
HyperFormula on this head. Google Sheets was not checked.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
| `=PROB({1,2,3},{0.01,0.29,0.7},1)` | `0.01` | Not checked | `0.01` |
| `=PROB({1,2,3},{0.5,0.0999999999999999,0.4},1)` | `0.5` | Not checked
| `0.5` |
| `=PROB({1,2},{0.5,0.499999999999999},1)` | `#NUM!` | Not checked |
`#NUM!` |
| `=PROB({1,2},{0.5,0.500000000000004},1)` | `0.5` | Not checked | `0.5`
|
| `=PROB({1,2,3,4},{0.4,0.3,0.2,0.1},2,)` | `0.3` | Not checked | `0.3`
|
| `=PERCENTRANK.INC({1,2,3,4,5,6,7,8,9,10,11},3.9,8)` | `0.29` | Not
checked | `0.29` |
| `=PERCENTRANK.INC({0,1},0.2999999999,1)` | `0.2` | Not checked | `0.2`
|
| `=PERCENTRANK.INC({1,2,3,4,5,6},2.5,)` | `0.3` | Not checked | `0.3` |
| `=ROWS(MODE.MULT(1,1,,))` | `#VALUE!` | Not checked | `#VALUE!` |
| `=ROWS(FREQUENCY({1,2,3},))` | `#VALUE!` | Not checked | `#VALUE!` |

Of the 57 formulas measured on 2026-11-09, 52 give the same result in
HyperFormula at dcbf74a. The other 5: 3 write `1E+20` or `1E-7` in the
formula, which the parser rejected before the merge with `develop`
(uppercase exponents, #1835); one is the 16-digit literal below; and
`=0.4999999999999995=0.5` is `TRUE` here because of the comparison
tolerance, `FALSE` in Excel. 5 more on 2026-11-10: an empty argument of
`FREQUENCY` or `MODE.MULT` is one `#VALUE!` cell, as here.

Earlier runs: of 122 formulas, 118 identical and 4 not evaluable (a
wrong number of arguments, which Excel rejects on entry). Of the 66
measured on 2026-11-02, the 20 that differ are 13 `#VALUE!` for an
argument without a fixed size, 2 `#SPILL!` for a value in a reserved row
that the result does not fill, 4 `PROB` calls with `1E+20` written in
the formula, which this branch's parser rejects (the same values in
cells give `#NUM!`, as in Excel), and 1 `IF(TRUE,…)` with a bare `TRUE`,
which HyperFormula reads as a name. For `PROB`, Excel returns 1 for
`{0,1}` and 1.5 for `{-0.5,1.5}`, skips a pair with text, a blank or a
boolean, and neither checks nor adds that pair's probability;
HyperFormula does the same.

`=PROB({1,2},{0.5,0.4999999999999995},1)` is `#NUM!` in Excel and `0.5`
here: Excel keeps the first 15 significant digits of a typed number
(`=0.4999999999999995=0.499999999999999` is `TRUE` there), so its sum is
below 1. `list-of-differences.md` has the row.

### Public API changes

New functions `PERCENTRANK.INC`, `PERCENTRANK`, `MODE.MULT`, `FREQUENCY`
and `PROB`.

### Out of scope and follow-ups

- The reserved result area of `MODE.MULT` and `FREQUENCY` and the single
cell for an argument without a fixed size, in the known limitations.

### Types of changes

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

### Related issues

1. HF-421, HF-424, HF-425, HF-428.

### Checklist

- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Touches core array spill sizing (`ArraySizePredictor`) and adds
numerical edge-case logic for PROB and multi-row statistical results;
regressions could affect spill errors or Excel parity outside the new
functions.
> 
> **Overview**
> Adds **PERCENTRANK.INC** (and `PERCENTRANK` alias), **MODE.MULT**,
**FREQUENCY**, and **PROB** with Excel-oriented behavior, metadata,
i18n, license entries, and changelog/docs updates.
> 
> **PERCENTRANK.INC** in `PercentilePlugin` ranks a value within a
sorted numeric range with inclusive interpolation and **truncates** (not
rounds) to the optional `significance` digits.
> 
> **MODE.MULT** and **FREQUENCY** in `StatisticalAggregationPlugin`
return spilling column arrays; each defines a `sizeOfResultArrayMethod`
that reserves output rows at parse time.
**`ArraySizePredictor.isSizeKnownBeforeEvaluation`** is new so sizing
can fail (`ArraySize.error()`) when arguments are dynamic (named
expressions, `SEQUENCE(A1)`, whole columns/rows)—documented as known
limitations with `#VALUE!` / `#SPILL!` behavior.
> 
> **PROB** sums paired `x_range`/`prob_range` probabilities with
compensated double-double arithmetic and rejects sums that are not 1 at
15 significant digits in both compensated and plain floating-point
order; mismatched range sizes use `#N/A`, bad sums use new
**`ProbabilitySum`** (`#NUM!`). A **list-of-differences** row notes
HyperFormula keeps full precision on typed literals vs Excel’s 15-digit
truncation for a borderline `PROB` example.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
dcbf74a. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: marcin-kordas-hoc <marcin-kordas-hoc@users.noreply.github.com>
…eys (HF-361) (#1907)

### Context
Follow-up to #1768 (HF-361). With array arithmetic on, `XLOOKUP` over an
array of keys dropped its `if_not_found` argument as the returned
argument, so `INDEX` of its result was read as a value. With `A2`
holding `=""`, `=SUM(INDEX(XLOOKUP({5,6},D1:D3,A1:A3,A2),1,1))` returned
`#VALUE!`; Excel returns 0, because every key is missing and each
element comes from the `if_not_found` reference.

This PR keeps `if_not_found` as the returned argument when every lookup
of an array of keys returned it. If at least one key is found, this PR
records no returned argument, as before. That path cannot be observed
yet, because such a call throws with array arithmetic on (see Out of
scope). Excel decides per element: an element taken from `if_not_found`
stays a reference (`{2,5}`, column 2: 0) and an element found in
`return_array` is a value (`{1,2}`, column 2: `#VALUE!`). A literal `""`
as `if_not_found` still gives `#VALUE!`. The change is in
`LookupPlugin.xlookup` and the `SelectedArgument` doc comment.

### How did you test your changes?
Paired branch `fix/hf-361-xlookup-array` in `hyperformula-tests`: three
cases in `function-sum.spec.ts`: the all-missing keys, the literal `""`
control, and `#N/A` without `if_not_found`.
- `function-sum.spec.ts` with this branch and the paired branch: 62
passed, 62 total.
- Full Jest at this commit with the paired branch, after merging
develop: 569 suites passed, 14885 tests passed, 3 skipped. `tsc` and
`eslint`: exit 0.
- Mutation: with develop's `LookupPlugin.ts`, the new test fails (1
failed, 61 passed, 62 total in the SUM spec).
- Not covered by a failing test: a mutant that never forgets the
selected argument survives, because every array of keys with a found key
throws, on develop and on this branch (see below).

### AI assistance
Claude Code wrote the change and the paired tests and ran the mutation
and the Jest runs. The Excel values come from a measured run, not from
the model.

### Compatibility with Excel and Google Sheets
Excel Online, 20 Nov 2026, all controls passed. `A1:A3` = 1, `=""`, 3;
`D1:D3` = 1, 2, 3. HyperFormula with `useArrayArithmetic: true`.

| Formula | Excel | Google Sheets | HyperFormula (develop) |
HyperFormula (this PR) |
|---|---|---|---|---|
| `=SUM(INDEX(XLOOKUP({5,6},D1:D3,A1:A3,A2),1,1))` | 0 | Not checked |
`#VALUE!` | 0 |
| `=SUM(INDEX(XLOOKUP({5,6},D1:D3,A1:A3,A2),1,2))` | 0 | Not checked |
`#VALUE!` | 0 |
| `=SUM(INDEX(XLOOKUP({5;6},D1:D3,A1:A3,A2),2,1))` | 0 | Not checked |
`#VALUE!` | 0 |
| `=SUM(INDEX(XLOOKUP({5,6},D1:D3,A1:A3,A2),1,1),5)` | 5 | Not checked |
`#VALUE!` | 5 |
| `=SUM(INDEX(XLOOKUP({5,6},D1:D3,A1:A3,""),1,1))` | `#VALUE!` | Not
checked | `#VALUE!` | `#VALUE!` |

`ISREF` on the same `INDEX` result is TRUE in Excel and FALSE in
HyperFormula before and after this PR; `ISREF` is not changed here.

### Public API changes
None.

### Out of scope and follow-ups
- On develop, with `useArrayArithmetic: true`, `XLOOKUP` over an array
of keys throws `Function returning array cannot be vectorized.` as soon
as one key is found, for example `=XLOOKUP({1,2},D1:D3,A1:A3)`. This PR
does not touch it, so the mixed-key cases (`{2,5}`, `{1,2}`) have no
HyperFormula test yet. It needs its own task.
- Once the throw is fixed, the all-or-nothing rule here would give
`#VALUE!` for `{2,5}`, column 2, where Excel gives 0, so per-element
tracking is a follow-up (an inference from the diff, not measured).
- `ISREF` of an `INDEX` result (see above).

### Types of changes
- [x] Bug fix (a non-breaking change that fixes an issue)

### Related issues
1. HF-361, follows #1768.

### Checklist
- [ ] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] I read my own diff end to end before requesting a review.
- [x] No CHANGELOG entry: the unreleased `Fixed` entry of #1768 already
covers `XLOOKUP` returning a reference to numeric aggregations, and this
PR corrects the same unreleased behaviour.
- [x] No documentation change: no public behaviour outside #1768's
unreleased entry.
- [x] Not a breaking change.
- [x] No `dev-docs/` page is affected.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: marcin-kordas-hoc <marcin-kordas-hoc@users.noreply.github.com>
#1912)

### Context
AI coding agents (Claude Code, Cursor, Copilot, ChatGPT search and
others) now read our docs often. They look for `llms.txt` first, often
fetch only part of a large file, read one section at a time, and
sometimes don't follow a redirect to another host. This is one of six
PRs that close the gaps a review of the published docs and the `develop`
preview found against these habits. Task: [IT-474 Improve readability of
the docs by AI agents](https://app.clickup.com/t/86c8dty70).

### Problem
The built-in functions page is a large table of 467 functions. How
functions differ from Excel and Google Sheets is documented on a
separate page, but the functions page doesn't link to it. An agent that
reads the table can't tell that some functions behave differently.

### Changes
`docs/guide/built-in-functions.tmpl.md`: adds a short paragraph near the
top. It links to `list-of-differences.md` and to
`known-limitations.md#nuances-of-the-implemented-functions`. The
template is the source: `built-in-functions.md` is generated from it and
isn't committed.

### Why this way
One paragraph at the top reaches every reader and agent. A link from
each table row would need the generator and the differences page to
share anchors, which is a bigger change for later.

### Related PRs and merge order
- The six PRs for IT-474:
- [`llms.txt` for the
docs](#1909)
- [self-contained
sections](#1910)
- [coding-agent
guide](#1911)
- [functions page links the
differences](#1912)
(this PR)
- [per-page meta
descriptions](#1913)
- [`robots.txt` and `llms.txt` on the HyperFormula host
(handsontable.com-v3)](handsontable/handsontable.com-v3#285)
- PRs 1909–1913 (`hyperformula`) don't depend on each other. They reach
production with the next docs release from `develop`.
- #1910 and #1913 both edit `docs/guide/basic-operations.md`, in
different places. Whichever is merged second may need a rebase; there is
no real conflict.
-
[handsontable.com-v3#285](handsontable/handsontable.com-v3#285)
serves a new `llms.txt` on `hyperformula.handsontable.com` that links to
`https://handsontable.com/docs/hyperformula/llms.txt`, which #1909
creates. Merge and deploy handsontable.com-v3#285 only after #1909 is
live in production. Merged earlier, everything else works but that one
link returns 404.
- After handsontable.com-v3#285 is deployed, the
`handsontable/hyperformula-website` Worker no longer serves anything.
Retiring it is a separate step, not part of these PRs.

### How did you test your changes?
- `npm run docs:build` passed (228 pages). It runs
`docs:generate-function-docs` as its first step.
- The paragraph is in the generated `guide/built-in-functions.html`, and
not in the `develop` build.
- Its two links go to `guide/list-of-differences.html`, which exists,
and to
`guide/known-limitations.html#nuances-of-the-implemented-functions`,
whose anchor exists.
- The engine's lint and Jest suites weren't run: the change touches only
the page template.

### Out of scope and follow-ups
- A link from each function's row to its entry on the differences page.
It needs anchors shared between the generator and that page.

### AI assistance
Claude Code (Claude Opus 5.5) wrote this change and this description,
from a patch prepared earlier. I reviewed them.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### 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)
- [x] Change to the documentation

### Related issues
1. IT-474 (internal task, linked above). No public issue.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2). (Not applicable:
internal team.)
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…T-474) (#1911)

### Context
AI coding agents (Claude Code, Cursor, Copilot, ChatGPT search and
others) now read our docs often. They look for `llms.txt` first, often
fetch only part of a large file, read one section at a time, and
sometimes don't follow a redirect to another host. This is one of six
PRs that close the gaps a review of the published docs and the `develop`
preview found against these habits. Task: [IT-474 Improve readability of
the docs by AI agents](https://app.clickup.com/t/86c8dty70).

### Problem
In `docs/guide/setup-coding-agent.md`:
- The page recommends adding a line to `AGENTS.md`, but doesn't give the
line.
- The page doesn't say how to check that the setup works.

### Changes
In `docs/guide/setup-coding-agent.md`:
- Replaces the one-sentence rules-file advice with a section, "Add
HyperFormula to your rules file", that has a block to paste into
`AGENTS.md` or `CLAUDE.md`. The block gives the docs URLs
(`llms-full.txt`, per-page `.md`, API reference) and tells the agent to
read them before it writes HyperFormula code. It also has two rules:
create instances with `buildEmpty`, `buildFromArray` or
`buildFromSheets` and not with `new HyperFormula()`, and check that a
function is in the built-in functions list before using it.
- Adds a section, "Check that the setup works": `/plugin` for the skill,
`/mcp` for the MCP server, and a test question with an expected answer.

### Why this way
- People copy a ready block far more often than they turn a description
into one.
- The test question has one checkable answer (`caseSensitive`, default
`false`), so a user can tell whether the agent read the docs or guessed.

### Deviation from the original plan
The prepared patch also removed the interactive wizard
(`<hf-coding-agent-wizard>`) and its intro sentence, on the assumption
that the Astro build renders nothing for it. That assumption is wrong.
`docs/src/components/MarkdownContent.astro` loads
`docs/src/scripts/coding-agent-wizard.mjs`, and on `develop` the page
shows the "Which coding agent do you use?" picker with four buttons. The
wizard is kept, so this PR only adds content.

### Related PRs and merge order
- The six PRs for IT-474:
- [`llms.txt` for the
docs](#1909)
- [self-contained
sections](#1910)
- [coding-agent
guide](#1911) (this PR)
- [functions page links the
differences](#1912)
- [per-page meta
descriptions](#1913)
- [`robots.txt` and `llms.txt` on the HyperFormula host
(handsontable.com-v3)](handsontable/handsontable.com-v3#285)
- PRs 1909–1913 (`hyperformula`) don't depend on each other. They reach
production with the next docs release from `develop`.
- #1910 and #1913 both edit `docs/guide/basic-operations.md`, in
different places. Whichever is merged second may need a rebase; there is
no real conflict.
-
[handsontable.com-v3#285](handsontable/handsontable.com-v3#285)
serves a new `llms.txt` on `hyperformula.handsontable.com` that links to
`https://handsontable.com/docs/hyperformula/llms.txt`, which #1909
creates. Merge and deploy handsontable.com-v3#285 only after #1909 is
live in production. Merged earlier, everything else works but that one
link returns 404.
- After handsontable.com-v3#285 is deployed, the
`handsontable/hyperformula-website` Worker no longer serves anything.
Retiring it is a separate step, not part of these PRs.

### How did you test your changes?
- `npm run docs:build` passed (228 pages). The built page has the wizard
tag, the "Add HyperFormula to your rules file" section, and the "Check
that the setup works" section. The `.md` companion has the full rules
block.
- I opened the page on the local docs server for `develop`: the wizard
renders and its four choice buttons work.
- The rules are true for the current API: `HyperFormula`'s constructor
is `protected` (`hyperformula/src/HyperFormula.ts:134`), and instances
come from the static `buildEmpty`, `buildFromArray` and
`buildFromSheets` methods.
- The test question's answer is right: `caseSensitive` exists in
`ConfigParams` and defaults to `false` in `hyperformula/src/Config.ts`.
- `handsontable-skills` is the marketplace plugin's name in
`handsontable/handsontable-skills/.claude-plugin/marketplace.json`, and
the skill's path is `skills/hyperformula/SKILL.md`, which matches the
manual-install check.
- The engine's lint and Jest suites weren't run: the change touches only
one guide page.

### Out of scope and follow-ups
None.

### AI assistance
Claude Code (Claude Opus 5.5) wrote this change and this description,
from a patch prepared earlier. I reviewed them.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### 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)
- [x] Change to the documentation

### Related issues
1. IT-474 (internal task, linked above). No public issue.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2). (Not applicable:
internal team.)
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
AI coding agents (Claude Code, Cursor, Copilot, ChatGPT search and
others) now read our docs often. They look for `llms.txt` first, often
fetch only part of a large file, read one section at a time, and
sometimes don't follow a redirect to another host. This is one of six
PRs that close the gaps a review of the published docs and the `develop`
preview found against these habits. Task: [IT-474 Improve readability of
the docs by AI agents](https://app.clickup.com/t/86c8dty70).

### Problem
Agents and search snippets read one section at a time, so a section must
make sense without the text above it. Two sections don't:
- Basic operations, "isItPossibleTo* methods": the section says "the
above-mentioned operations".
- Known limitations, SORT: the section mentions the `caseSensitive` and
`accentSensitive` options, but doesn't say what they do or what their
defaults are.

### Changes
- `docs/guide/basic-operations.md`: names example operations
(`addSheet`, `removeRows`, `moveCells`) instead of "the above-mentioned
operations".
- `docs/guide/known-limitations.md`: links both options to the
`ConfigParams` reference, says both default to `false`, and says what
that means for sorting: `"a"`, `"A"` and `"á"` sort as equal.

### Why this way
This is the smallest wording change that makes each section stand on its
own. No content was moved.

### Related PRs and merge order
- The six PRs for IT-474:
- [`llms.txt` for the
docs](#1909)
- [self-contained
sections](#1910) (this
PR)
- [coding-agent
guide](#1911)
- [functions page links the
differences](#1912)
- [per-page meta
descriptions](#1913)
- [`robots.txt` and `llms.txt` on the HyperFormula host
(handsontable.com-v3)](handsontable/handsontable.com-v3#285)
- PRs 1909–1913 (`hyperformula`) don't depend on each other. They reach
production with the next docs release from `develop`.
- #1910 and #1913 both edit `docs/guide/basic-operations.md`, in
different places. Whichever is merged second may need a rebase; there is
no real conflict.
-
[handsontable.com-v3#285](handsontable/handsontable.com-v3#285)
serves a new `llms.txt` on `hyperformula.handsontable.com` that links to
`https://handsontable.com/docs/hyperformula/llms.txt`, which #1909
creates. Merge and deploy handsontable.com-v3#285 only after #1909 is
live in production. Merged earlier, everything else works but that one
link returns 404.
- After handsontable.com-v3#285 is deployed, the
`handsontable/hyperformula-website` Worker no longer serves anything.
Retiring it is a separate step, not part of these PRs.

### How did you test your changes?
- The patch for this change didn't apply because its hunk line numbers
were wrong, so I made the same edits by hand. The wording is the
patch's, unchanged.
- `npm run docs:build` passed (228 pages).
- In the built `guide/known-limitations.html`, the links go to
`api/interfaces/configparams.html#casesensitive` and `#accentsensitive`.
Both anchors exist in the built `configparams.html`.
- The built `guide/basic-operations.html` has the new sentence, and
"above-mentioned" is gone.
- `hyperformula/src/Config.ts` sets `caseSensitive: false` and
`accentSensitive: false` in its defaults.
- I checked the sorting claim on the built engine with default config:
`="á"="A"` and `="A"="a"` return `TRUE`. `=SORT({"b";"á";"A";"a"})`
returns `á, A, a, b`, and `=SORT({"a";"á";"A"})` keeps `a, á, A`, so
equal values keep their input order. With `accentSensitive: true`,
`="á"="a"` returns `FALSE`.
- The engine's lint and Jest suites weren't run: the change touches only
two guide pages.

### Out of scope and follow-ups
None.

### AI assistance
Claude Code (Claude Opus 5.5) wrote this change and this description,
from a patch prepared earlier. I reviewed them.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### 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)
- [x] Change to the documentation

### Related issues
1. IT-474 (internal task, linked above). No public issue.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2). (Not applicable:
internal team.)
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
AI coding agents (Claude Code, Cursor, Copilot, ChatGPT search and
others) now read our docs often. They look for `llms.txt` first, often
fetch only the first ~100 KB of a file, read one section at a time, and
sometimes don't follow a redirect to another host. This is one of six
PRs that close the gaps a review of the published docs and the `develop`
preview found against these habits. Task: [IT-474 Improve readability of
the docs by AI agents](https://app.clickup.com/t/86c8dty70).

### Problem
- `https://handsontable.com/docs/hyperformula/llms.txt` returns an
error, so agents that look for `llms.txt` at the docs root find nothing.
- The only agent file is `llms-full.txt`, which is 1.67 MB. An agent
that fetches only part of a file gets the first 10 or so pages and none
of the rest.

### Changes
- `docs/src/md-companions/index.mjs`: the build now also writes
`llms.txt` next to `llms-full.txt`, served at
`/docs/hyperformula/llms.txt`. It contains:
  - a short summary of HyperFormula and a link to `llms-full.txt`;
  - the home page;
- "AI and agent resources": the Docs MCP server, the AI Docs Assistant,
the coding-agent guide, and the agent skills;
- "Guides" (57 pages) and "API reference" (169 pages): one link per
page, to its `.md` companion, titled with the page title;
- "Source and licensing": GitHub, npm, the license key guide, pricing,
and contact sales.
- `docs/README.md`: describes `llms.txt` next to `llms-full.txt`.
`dev-docs/DOC-STANDARDS.md` requires this README update for changes to
the `.md` companions and `llms-full.txt`.

### Why this way
- `llms.txt` is the standard index agents read first
([llmstxt.org](https://llmstxt.org/)).
- Linking to each page's `.md` companion lets an agent fetch only the
pages it needs.
- The page list is generated in the same loop as `llms-full.txt`, from
the same sources, so it can't fall out of date.
- The resource and licensing links used to be in the hand-written
`llms.txt` on `hyperformula.handsontable.com` (the old
`hyperformula-website` Worker). They're kept here so that file can be
retired.
- As before, nothing is written to the domain root `/llms.txt`, which
belongs to handsontable.com.

### Related PRs and merge order
- The six PRs for IT-474:
- [`llms.txt` for the
docs](#1909) (this PR)
- [self-contained
sections](#1910)
- [coding-agent
guide](#1911)
- [functions page links the
differences](#1912)
- [per-page meta
descriptions](#1913)
- [`robots.txt` and `llms.txt` on the HyperFormula host
(handsontable.com-v3)](handsontable/handsontable.com-v3#285)
- PRs 1909–1913 (`hyperformula`) don't depend on each other. They reach
production with the next docs release from `develop`.
- #1910 and #1913 both edit `docs/guide/basic-operations.md`, in
different places. Whichever is merged second may need a rebase; there is
no real conflict.
-
[handsontable.com-v3#285](handsontable/handsontable.com-v3#285)
serves a new `llms.txt` on `hyperformula.handsontable.com` that links to
`https://handsontable.com/docs/hyperformula/llms.txt`, which #1909
creates. Merge and deploy handsontable.com-v3#285 only after #1909 is
live in production. Merged earlier, everything else works but that one
link returns 404.
- After handsontable.com-v3#285 is deployed, the
`handsontable/hyperformula-website` Worker no longer serves anything.
Retiring it is a separate step, not part of these PRs.

### How did you test your changes?
- Ran `npm run docs:build` on this branch and on `develop` (in a
separate worktree). Both passed: 228 pages built.
- `llms.txt` is next to `llms-full.txt` in
`docs/dist/docs/hyperformula/`. No `llms.txt` was written outside the
base path.
- A script checked every link in `llms.txt`: 237 links in total, 230 of
them to the docs. Each docs link ends in `.md` (except the
`llms-full.txt` link) and points to a file the build wrote: 0 missing, 0
not `.md`.
- `llms-full.txt` is unchanged. A diff against the `develop` build
differs only in the three Stackblitz links' `?v=` build timestamp, which
changes on every build.
- `llms.txt` is 23.8 KB.
- `npm run docs:lint` passed.
- The first 30 lines of the generated `llms.txt`:

```md
# HyperFormula

> HyperFormula is a headless spreadsheet calculation engine for JavaScript and TypeScript.
> It parses and evaluates Excel-compatible formulas, with no UI.

Full documentation as a single Markdown file: https://handsontable.com/docs/hyperformula/llms-full.txt

- [Welcome](https://handsontable.com/docs/hyperformula/index.md)

## AI and agent resources

- [Docs MCP server](https://docs-assistant.handsontable.com/mcp): first-party MCP server (streamable HTTP) with search over the HyperFormula and Handsontable docs, API reference, release notes and GitHub issues
- [AI Docs Assistant](https://handsontable.com/docs/javascript-data-grid/ai-docs-assistant/): answers questions about HyperFormula and Handsontable, with citations from the docs
- [Set up your coding agent](https://handsontable.com/docs/hyperformula/guide/setup-coding-agent.md): skills, MCP and rules-file setup for Claude Code, Cursor, Copilot and other agents
- [Agent skills](https://github.com/handsontable/handsontable-skills): official Claude Code skills for HyperFormula and Handsontable

## Guides

- [Advanced usage](https://handsontable.com/docs/hyperformula/guide/advanced-usage.md)
- [HyperFormula AI SDK for Vercel](https://handsontable.com/docs/hyperformula/guide/ai-sdk.md)
- [Array formulas](https://handsontable.com/docs/hyperformula/guide/arrays.md)
- [Basic operations](https://handsontable.com/docs/hyperformula/guide/basic-operations.md)
- [Basic usage](https://handsontable.com/docs/hyperformula/guide/basic-usage.md)
- [Batch operations](https://handsontable.com/docs/hyperformula/guide/batch-operations.md)
- [Branding](https://handsontable.com/docs/hyperformula/guide/branding.md)
- [Building](https://handsontable.com/docs/hyperformula/guide/building.md)
- [Built-in functions](https://handsontable.com/docs/hyperformula/guide/built-in-functions.md)
- [Cell references](https://handsontable.com/docs/hyperformula/guide/cell-references.md)
- [Client-side installation](https://handsontable.com/docs/hyperformula/guide/client-side-installation.md)
- [Clipboard operations](https://handsontable.com/docs/hyperformula/guide/clipboard-operations.md)
```

The engine's lint and Jest suites weren't run: the change touches only
the docs portal.

### AI assistance
Claude Code (Claude Opus 5.5) wrote the code change, the README update,
and this description, from a patch prepared earlier. I reviewed them.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### Out of scope and follow-ups
- Serving `llms.txt` on `hyperformula.handsontable.com` is in
`handsontable.com-v3` (see Related PRs).
- Retiring the `hyperformula-website` Worker is a separate step after
that PR is deployed.

### 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)
- [x] Change to the documentation

### Related issues
1. IT-474 (internal task, linked above). No public issue.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2). (Not applicable:
internal team.)
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…HF-423, HF-422, HF-426) (#1800)

### Context
The PR adds the statistical functions `KURT`, `MODE.SNGL` with its alias
`MODE`, `PERCENTRANK.EXC` and `TRIMMEAN`, and fixes a stack overflow
that `KURT` shares with ten existing functions.

- **Why:** HyperFormula has none of the four functions, so these
formulas give `#NAME?`. And `AVEDEV`, `DEVSQ`, `GCD`, `GEOMEAN`,
`HARMEAN`, `LCM`, `MEDIAN`, `NPV`, `SKEW` and `SKEW.P` throw
`RangeError: Maximum call stack size exceeded` for a range of about
125,000 cells or more, so the whole engine fails to build.
- **What changed:**
- `StatisticalAggregationPlugin.ts`: `KURT`, `MODE.SNGL` (alias `MODE`)
and `TRIMMEAN`.
- `KURT(number1, ...)`: sample excess kurtosis; `#DIV/0!` with fewer
than 4 numbers or when all are equal.
- `MODE.SNGL(number1, ...)`: the most frequent number, the first one on
a tie; `#N/A` when nothing repeats. Text and booleans are ignored; an
empty argument, or a reference to an empty cell passed as an argument,
is `#VALUE!`, as in Excel.
- `TRIMMEAN(array, percent)`: the mean without the given fraction of
values, split between both ends. An error in the range is returned
before `percent` is checked, as in Excel.
- `PercentilePlugin.ts`: `PERCENTRANK.EXC(array, x, [significance])`,
the rank of `x` between 0 and 1, exclusive, interpolated between
neighbours. An empty `significance` takes the default of 3. Errors come
in Excel's order: an error in the range, then `x` outside the values
(`#N/A`), then `significance` (`#NUM!`).
- `ArithmeticHelper.ts`: `manyToNumbers` appends the values of a range
in a loop instead of `push(...arr)`, which passed every value as a call
argument and exceeded the call stack.
  - `error-message.ts`: one message for `KURT` with too few values.
- `categories/statistical.ts`, `functionCapabilities.ts` and 17 language
files: catalogue entries, license capability entries and names.
- `list-of-differences.md`: a row for `TRIMMEAN` with numeric text as
`percent`.
- `CHANGELOG.md`: one `Added` entry for the four functions and one
`Fixed` entry for the ten.
- **Result:** the four functions and `MODE` evaluate in every language
pack except `ruRU`, where the parser accepts no Cyrillic function name
(`=СУММ(1,2)` is a parsing error on `develop` as well), and the eleven
functions read a range of 150,000 values.

`KURT` follows Excel's floating-point arithmetic: it uses the plain mean
and standard deviation, not the compensated sums of `DEVSQ`, `VAR.S` and
`STDEV.S`, so it gives Excel's result where rounding decides it.
`=KURT(A1:A6)` over six cells of 0.1 is -3.33333333333333 in Excel and
in HyperFormula, and `KURT` of 1, 2, 3 and 5 scaled by 1e155 or by
1e-170 is `#DIV/0!` in both. Excel's `DEVSQ` of the six cells is
1.15555796663234E-33, where HyperFormula's `DEVSQ` returns 0.

Translations come from the Excel 2013 function translation table listed
in `hyperformula/dev-docs/I18N.md`, except two in `ptPT`. The table
lists European Portuguese names, while the `ptPT` pack uses the
Brazilian ones (`SOMASE`, `MODO`), so `MODE.SNGL` is `MODO.ÚNICO` and
`PERCENTRANK.EXC` is `ORDEM.PORCENTUAL.EXC`, as on Microsoft's pt-BR
function pages. Apart from those two, the function pages were not
checked one by one. `idID`, which the table does not cover, keeps the
English names, and so does any name that would duplicate another
function in the same language.

### How did you test your changes?
Paired tests: `feat/hf-stats-kurt-mode-trimmean-percentrank-exc` in
`hyperformula-tests` (handsontable/hyperformula-tests#86).

- `npx jest` on the 4 new specs: 206 passed, one assertion per case.
With the error-order and empty-argument changes reverted, 13 of them
fail; with the five translated names they call misspelled, the 5
language cases fail; with the two `ptPT` names back to the European
ones, the 2 `ptPT` cases fail. `PERCENTRANK.EXC` rounds the scaled
quotient to 15 significant digits before the truncation; without that,
the 4 cases whose result is exactly a truncation step fail, and with the
earlier fixed `1e-9` the 2 at significance 9 fail
(`=PERCENTRANK.EXC({1,2},1.2,9)` gave 0.399999999; Excel gives 0.4 at
significance 3 to 15).
- A case with a 150,000-value range in the specs of `KURT` and the ten
fixed functions, against values computed independently: all 11 pass;
with `push(...arr)` restored, all 11 fail with `RangeError`.
- On `develop`, `buildFromArray` throws for each of the ten functions
over 160,000 cells; the smallest range that throws holds between 124,348
and 124,652 values (Node 24).
- Differential against this branch before the review changes, on 936
formulas (the edge cases below and `SEQUENCE` sweeps of the functions
that read through `manyToNumbers`): no result turns from a number into
an error except `=MODE.SNGL(1,1,)` and `=MODE.SNGL(1,1,E9)`, which are
now `#VALUE!` as in Excel.
- Full `npx jest` with the paired tests at this head: 527 suites passed;
7308 tests passed, 3 skipped. `tsc --noEmit`: 0 errors. `npx eslint` on
the changed `.ts` files: 0 errors.

### AI assistance
Claude Code (Claude Opus and Claude Sonnet) wrote the code, the tests
and the documentation changes in this pull request and in
hyperformula-tests#86. Every commit on both branches, other than merges,
carries its co-author line.

### Compatibility with Excel and Google Sheets
Measured in Excel Online. Numbers are compared with a relative tolerance
of 1e-9, because HyperFormula rounds results to about 11 significant
digits. Google Sheets was not checked.

- 76 formulas that call the four functions, from the review of this PR:
66 give Excel's result. The 10 others are in the classes listed below,
except `=TRIMMEAN({1,2,3},"0.5")`, which is `#VALUE!` in Excel and 2
here.
- 784 edge cases (empty, text, boolean, error, magnitude, array and
range inputs for each argument): 100 differ, all in input classes that
existing functions such as `SKEW`, `DEVSQ`, `MEDIAN` and
`PERCENTILE.INC` share, measured the same way:
- 24: a range or computed array where one number is expected, with array
arithmetic off (Excel intersects or spills);
- 20: text before an error argument (Excel returns `#VALUE!`,
HyperFormula the error);
- 12: uppercase exponents such as `1E5`, which do not parse before
#1835; 12 more are `1e308` formulas that Excel does not accept;
- 9: `""` as a number (Excel `#VALUE!`, HyperFormula 0); 8: a 1x1 text
array (Excel ignores it, HyperFormula `#VALUE!`);
- 7: a reference to an empty cell passed as an argument (`KURT` counts
it as 0 where Excel skips it, and `MODE.SNGL` returns the error of a
later argument where Excel returns `#VALUE!`);
- 6: a single value where a range is expected; 1: `significance` of
`1e21` (Excel `#DIV/0!`; at this head HyperFormula also returns
`#DIV/0!`, for any `significance` of 309 or more); 1: a result below
`1e-298` (HF-555, #1837).
- Found in review, not in the edge set: a reference to a cell holding
text, `TRUE` or numeric text passed as its own argument. With A1:D1 = 1,
2, 3, 10, `=KURT(A1:D1,E1)` gives `#VALUE!`, 4.0280698323 and
1.7837435675 for E1 = `x`, `TRUE` and `="5"`, where Excel skips the cell
and gives 3.228 for all three. `SKEW` does the same on `develop`.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
| `=KURT(1,2,3,10)` | 3.228 | Not checked | 3.228 |
| `=KURT(A1:A6)`, six cells of 0.1 | -3.33333333333333 | Not checked |
-3.3333333333 |
| `=MODE.SNGL(3,3,1,1)` | 3 | Not checked | 3 |
| `=MODE.SNGL(0,,1)` | `#VALUE!` | Not checked | `#VALUE!` |
| `=PERCENTRANK.EXC({1,2,3},2,)` | 0.5 | Not checked | 0.5 |
| `=PERCENTRANK.EXC(A1:C1,2,0)`, A1:C1 = 1, `=1/0`, 3 | `#DIV/0!` | Not
checked | `#DIV/0!` |
| `=PERCENTRANK.EXC({2},2,0)` | 1 | Not checked | 1 |
| `=TRIMMEAN(A1:C1,2)`, A1:C1 = 1, `=1/0`, 3 | `#DIV/0!` | Not checked |
`#DIV/0!` |
| `=TRIMMEAN(A1:K1,0.5)`, 11 values | 3.71428571428571 | Not checked |
3.7142857143 |

### Public API changes
None. Five new built-in function names (four functions and the `MODE`
alias).

### Out of scope and follow-ups
- The input classes listed under Compatibility apply to the existing
functions as well; changing them is an engine-wide change, not part of
this PR.
- `=TRIMMEAN({1,2,3},"0.5")`: Excel rejects numeric text as `percent`;
HyperFormula reads it as 0.5.
- `GEOMEAN` over 160,000 values no longer throws but returns `#NUM!`,
because the product of the values overflows.
- `IMSUM` and `IMPRODUCT` read ranges through
`coerceComplexExactRanges`, which still uses `push(...arr)`, and
`TEXTJOIN` spreads its texts the same way: `=IMSUM(A1:D40000)` and
`=TEXTJOIN("",TRUE(),A1:D40000)` throw `RangeError` on `develop` and
here.
- `SKEW` and `SKEW.P` return 0 when the variance overflows, for example
over 1e155, 2e155, 3e155 and 5e155, where `KURT` and Excel return
`#DIV/0!`.

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

### Related issues
1. HF-427 (`KURT`), HF-423 (`MODE.SNGL`), HF-422 (`PERCENTRANK.EXC`),
HF-426 (`TRIMMEAN`)

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> New formula behavior plus a core range-coercion change affects many
statistical functions on very large inputs; scope is broad but behavior
is additive with a targeted performance/stability fix.
> 
> **Overview**
> Adds four Excel-style statistical functions—**`KURT`**,
**`MODE.SNGL`** (with **`MODE`** alias), **`PERCENTRANK.EXC`**, and
**`TRIMMEAN`**—in the statistical plugins, with catalogue entries,
license capabilities, and translations across language packs.
> 
> **`PERCENTRANK.EXC`** ranks a value in a range (exclusive method,
optional decimal truncation) with Excel-like error ordering.
**`TRIMMEAN`** averages a range after trimming ends by percent.
**`KURT`** and **`MODE.SNGL`** follow the usual aggregation patterns
(minimum sample size, tie/frequency rules).
> 
> **`ArithmeticHelper`** no longer uses `push(...arr)` when flattening
large ranges; it appends in a loop instead, fixing **stack overflows**
when building formulas over ~125k cells for these functions and several
existing ones (`AVEDEV`, `DEVSQ`, `GCD`, `GEOMEAN`, `HARMEAN`, `LCM`,
`MEDIAN`, `NPV`, `SKEW`, `SKEW.P`).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
847f4ff. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
### 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
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: marcin-kordas-hoc <marcin-kordas-hoc@users.noreply.github.com>
…Format/TEXT (HF-287) (#1716)

### Context

`TEXT` and the built-in number formatter understood only a plain mask of
digit placeholders with an optional decimal part. Other masks leaked
their tail into the result: `TEXT(1234.5,"#,##0.00")` returned
`1235,##0.00`. Thousands grouping (`#,##0`) and sections
(`positive;negative;zero`) were ignored, and a mask was always read with
`.` as the decimal point.

This PR extends the formatter in place rather than rewriting its
grammar:

- the mask is read with `decimalSeparator` as the decimal point and
`thousandSeparator` as the grouping character. The result uses the same
characters, as Excel does with the workbook locale. With an empty
`thousandSeparator`, `,` groups when the decimal point is `.` (the
default config); with a `,` decimal point, nothing groups;
- the number-format regular expression is built from those two
separators. No group in it is followed by `*` or `+`, so it cannot
backtrack catastrophically;
- the formatter splits the mask into sections, picks one by the sign of
the value, and groups the integer digits. A section with no digit
placeholder is literal text. A backslash escape renders the escaped
character (`0\x` gives `5x`);
- values of 1e21 and above get 15 significant digits and zeros. Values
below 1e-6 get no exponent notation (`0.0000001`, not `1e-7.0000000`).
More than 100 decimal places pad with zeros instead of throwing a
`RangeError`;
- a mask with an unclosed `[` or `"`, a `[` followed by `]` or `\`, or a
lone backslash at its end returns `#VALUE!`;
- color tags such as `[Red]` are stripped after the `stringifyCurrency`
callback and before date and time formatting, so
`TEXT(1,"[Red]dd-mm-yyyy")` returns `31-12-1899` instead of
`[Re31]31-12-1899`.

This is a breaking change, planned for 4.0. Formulas and callbacks that
worked before give different results:

- With `decimalSeparator: ','` and a `thousandSeparator` other than `.`,
write `"0,00"`: `TEXT(1,5;"0,00")` returns `1,50` instead of `2,00`, and
`TEXT(1,5;"0.00")` returns `2.00` instead of `1.50`.
- A rejected mask (see above) returns `#VALUE!` instead of text:
`TEXT(5,"0[")` returns `#VALUE!` instead of `5[`.
- Custom `stringifyDateTime` and `stringifyDuration` callbacks get the
mask without color tags. They are not called for a rejected mask.
- On the default config:
  - `TEXT(5,"0,000")` returns `0,005` instead of `5,000`;
  - `TEXT(0.5,"#.00")` returns `.50` instead of `0.50`;
  - `TEXT(0,"#")` returns an empty string instead of `0`.

The migration guide (`docs/guide/migration-from-3.x-to-4.0.md`) has a
`TEXT` section with each change; for the mask changes it shows how to
keep the old result. The four CHANGELOG entries for them carry the
`**Breaking change**:` prefix. The compatibility, currency and
known-limitations guides and the `decimalSeparator` and
`thousandSeparator` JSDoc describe the new reading.

### How did you test your changes?

Paired tests: handsontable/hyperformula-tests#27, branch
`feat/hf-287-numberformat-sections`, head 0e7a059. All results below are
at 9684f26 with that head.

- `unit/format/format-number-sections.spec.ts` in hyperformula-tests:
170 tests, all green.
- `unit/interpreter/function-text.spec.ts` in hyperformula-tests: three
existing assertions change on the default config:
`TEXT(12.45,"$###,##0.00")` from `$12,##0.00` to `$12.45`, and the two
`$#.00` cases from `$0.50` to `$.50`.
- Both specs together: 215 tests green. Full Jest: 570 suites, 15055
tests passed, 3 skipped.
- Revert checks on `format-number-sections.spec.ts`:

| Change to `format.ts` | Failing tests |
|---|---|
| Ignore the configured separators (always `.` decimal, `,` grouping) |
12 |
| Write a separator before the first group (`i >= 0` in
`insertGrouping`) | 5 |
| Drop the trailing-backslash check | 6 |
| Pass more than 100 places to `toFixed` | 4 |
| Write the minus when every rendered digit is zero | 5 |

### AI assistance
Claude Code wrote the formatter changes in `format.ts` and `parser.ts`,
the guide and JSDoc edits, the migration guide, the CHANGELOG entries,
the paired tests and this description. Every commit on both branches,
other than merges, carries its co-author line.

### Compatibility with Excel and Google Sheets

HyperFormula: measured at 9684f26 on the default config. Excel: the
first five rows are expected results, not re-measured. The other rows
were measured in Excel Online in a pl-PL workbook (decimal `,`, grouping
space), with masks typed in the pl-PL spelling. Rows 6 to 12 are shown
in the en-US spelling. The four signed-zero rows (2026-11-23) keep the
pl-PL spelling, and their HyperFormula column uses `decimalSeparator:
','`, `thousandSeparator: ' '` and `functionArgSeparator: ';'`. Google
Sheets was not checked.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
| `=TEXT(1234.5,"#,##0.00")` | `1,234.50` | Not checked | `1,234.50` |
| `=TEXT(-1234.5,"#,##0.00;-#,##0.00")` | `-1,234.50` | Not checked |
`-1,234.50` |
| `=TEXT(-1234.5,"$#,##0.00;-$#,##0.00")` | `-$1,234.50` | Not checked |
`-$1,234.50` |
| `=TEXT(1234.567,"$#,##0.00")` | `$1,234.57` | Not checked |
`$1,234.57` |
| `=TEXT(-5,"000.00")` | `-005.00` | Not checked | `-005.00` |
| `=TEXT(1234567890123460000000,"0")` | `1234567890123460000000` | Not
checked | `1234567890123460000000` |
| `=TEXT(0.0000001,"0.0000000")` | `0.0000001` | Not checked |
`0.0000001` |
| `=TEXT(1234.5,"#,##0\x")` | `1,235x` | Not checked | `1,235x` |
| `=TEXT(123456,"#,##0")` | `123,456` | Not checked | `123,456` |
| `=TEXT(5,A1)`, A1 = `0\` | `#VALUE!` | Not checked | `#VALUE!` |
| `=TEXT(1,"0."&REPT("0",101))` | `1.` and 101 zeros | Not checked |
`1.` and 101 zeros |
| `=TEXT(1,"[Red")` | `#VALUE!` | Not checked | `#VALUE!` |
| `=TEXT(-0,4;"0")` (pl-PL spelling, 2026-11-23) | `0` | Not checked |
`0` |
| `=TEXT(-0,004;"0,00")` (pl-PL spelling, 2026-11-23) | `0,00` | Not
checked | `0,00` |
| `=TEXT(-0,4;"# ##0")` (pl-PL spelling, 2026-11-23) | `0` | Not checked
| `0` |
| `=TEXT(-0,6;"0")` (pl-PL spelling, 2026-11-23, control) | `-1` | Not
checked | `-1` |

Known differences, listed in `known-limitations.md`:

- A `.` or `,` in the mask that is neither configured separator is text:
with `decimalSeparator: ','` and an empty or space `thousandSeparator`,
`TEXT(1,5;"0.00")` returns `2.00`, where Excel in a pl-PL workbook
returns `#VALUE!` for that mask.
- The formatter does not implement percent scaling (`0.00%` returns
`0.50%` for 0.5), scaling by a trailing grouping character (`0,,`), the
`?` placeholder, scientific notation (`0.00E+00`), `[condition]`
comparators, masks with more than one group of digit placeholders
(`(000) 000-0000`), masks that start with the decimal point (`.00`), the
`_` padding code or the `@` text placeholder.

### Public API changes

None in signatures. Behaviour:

- `decimalSeparator` and `thousandSeparator` now set the characters
`TEXT` reads in a mask and writes in the result. On `develop` they
affected neither. Their JSDoc says so.
- Custom `stringifyDateTime` and `stringifyDuration` callbacks receive
the format without color tags, and are not called for a mask that `TEXT`
rejects with `#VALUE!`. Their JSDoc says so.

All of these are breaking; the migration guide covers them.

### Out of scope and follow-ups

- The formats listed under known differences above. No follow-up task
yet.
- A mask that starts with the decimal point reads the decimals as the
integer part (`TEXT(0.5,".00")` gives `.01`), as on `develop`. Follow-up
task not created yet.
- An LCID tag with a `0` in it is read as a placeholder:
`TEXT(1234.5,"[$€-407] #,##0.00")` gives `[$€-412357] #,##0.00`, as on
`develop`. Follow-up task not created yet.
- Quoted text is still read as format code. A backslash inside it is
resolved (`"a\b"0` gives `ab5`, Excel `a\b5`), and an exact color tag
inside it is removed (`0"[Red]"` gives `5`). A backslash before a quote
inside quoted text keeps the quote open, so with `"a\"0;neg` in a cell,
`TEXT(-5, A1)` gives `-a"0;neg`. #1868, stacked on this PR, makes quoted
text literal.
- Below 1e21 the formatter keeps up to 17 significant digits where Excel
shows 15 (`TEXT(123456789012345678,"0")` gives `123456789012345680`,
Excel `123456789012346000`).

### Types of changes

- [x] 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)
- [x] Change to the documentation

### Related issues

1. HF-287. Public issue: #1145, which asked for `$#,##0.00` in `TEXT`.

### Checklist

- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [x] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Kuba Sekowski <jakub.sekowski@handsontable.com>
Co-authored-by: marcin-kordas-hoc <marcin-kordas-hoc@users.noreply.github.com>
### Context

This PR adds two Excel functions for securities that pay interest at
maturity: `PRICEMAT` (the price per $100 face
value) and `YIELDMAT` (the annual yield).

Behavior, checked against Excel:

- **Formulas.** With `A` the days from `issue` to `settlement`, `DIM`
from `issue` to `maturity`, `DSM` from
  `settlement` to `maturity` and `B` the days in the year:
`PRICEMAT = (100 + DIM/B × rate × 100) / (1 + DSM/B × yld) − A/B × rate
× 100`, and `YIELDMAT` is its closed-form
inverse, `(T1 − T2) / T2 × (B / DSM)` with `T1 = 1 + DIM/B × rate` and
`T2 = pr/100 + A/B × rate`. Microsoft's
`YIELDMAT` page gives no formula; this one reproduces Excel's results,
and Excel's round trips between the two
functions, to the 15th significant digit. Negative prices and yields are
returned, as in Excel.
- **Day counts.** `A` and `DIM` are counted under `basis` (US 30/360,
actual/actual, actual/360, actual/365, European
30/360). `DSM` is `DIM − A`: under US 30/360 that can differ from a
count started at `settlement` (settlement 30
January, maturity 31 January, issue 1 January: `DSM` is 1, not 0), and
Excel uses the difference. Under
actual/actual, one `B` serves all three ratios: the year length of the
`issue`-to-`settlement` span, as YEARFRAC
computes it. Bases 0, 2 and 4 use 360 days and basis 3 uses 365, also
over several years.
- **Validation order**, as in Excel: `basis` first, then `settlement`,
`maturity`, `issue`, `rate` and `yld`/`pr`
(each: an error is passed on, an empty argument is `#N/A`, text, a
boolean or the empty text is `#VALUE!`, a date
out of range is `#NUM!`), then the `#NUM!` checks. Unlike #1799's
functions, an error or invalid value in `basis`
  wins over every other argument.
- **`#NUM!`:** `issue` on or after `settlement` (the dates are compared,
not the 30/360 counts: issue 30 January,
settlement 31 January is valid with `A` = 0), `settlement` on or after
`maturity`, a negative `rate` (0 is valid), a
negative `yld` for `PRICEMAT` (0 is valid), `pr` of 0 or less for
`YIELDMAT`, `basis` below 0 or from 5.
- **Zero days from settlement to maturity.** `DSM` can be 0 under bases
0 and 4 (settlement 30 January, maturity 31
January). `PRICEMAT` returns its value. `YIELDMAT` divides by `DSM` and
returns `#DIV/0!`, the error Excel reports
for it; Excel shows 0 in the cell, so this is added to the list of
differences.
- **Coercion**, as in #1799: booleans and the empty text give `#VALUE!`;
a blank cell is 0; numeric, percent,
currency and date text are accepted (date text per the `dateFormats`
config). Dates and `basis` are truncated, but a
negative fraction such as −0.5 is `#NUM!`. An empty or omitted `basis`
is 0. Array constants are lifted with
  `useArrayArithmetic: true`.
- Dates before 1 March 1900: HyperFormula's date serials differ from
Excel's there, as for every date function.

Note: Microsoft's pages for these functions are wrong or silent in
places, and this implementation follows Excel:

- The dates and `basis` are truncated to integers, but negative
fractions are not truncated to 0: a date or `basis`
  of −0.5 gives `#NUM!`.
- An invalid date is not always `#VALUE!`: only text, booleans and the
empty text give `#VALUE!`; numbers outside the
  date range give `#NUM!`.
- The pages do not mention that `issue` must be before `settlement`;
Excel returns `#NUM!` otherwise.
- The examples show the results as currency (`PRICEMAT`) and as a
percentage (`YIELDMAT`); Excel returns plain
  numbers in General cells. These functions set no number format.

### Implementation

- The functions live in `SecuritiesPlugin`, next to #1799's securities
functions: two methods and one private runner,
`interestAtMaturity`, that validates the arguments in Excel's order,
counts `A` and `DIM` with two
`dayCountByBasis` calls (which also give `B`), and passes `A`, `DIM`,
`DSM = DIM − A` and `B` to each function's
  formula. Constant time.
- Reused from #1799 without changes: `DateTimeHelper.dayCountByBasis`,
`strictNumber`, `coerceToSecurityDate`,
`coerceToDayCountBasis` and `isArgumentEmpty`. Nothing is added to
`DateTimeHelper`.
- No new error types or messages: `YIELDMAT`'s zero-day case is a plain
`#DIV/0!`, like most of the engine's.
- Catalogue entries in `categories/financial.ts`, and names in all
language packs, read from Microsoft Excel Online
in each language. `csCZ` and `idID` keep the English names, as Excel
does.
- Both functions are added to `UNGROUPED_FUNCTIONS` in
`functionCapabilities.ts`, like #1799's.
- A row in `list-of-differences.md`:

| Function | Example | HyperFormula | Google Sheets | Microsoft Excel |
  |---|---|--:|--:|--:|
| YIELDMAT | =YIELDMAT(DATE(2008,1,30), DATE(2008,1,31), DATE(2008,1,1),
0.0625, 100.0123, 4) | DIV/0 | NUM | 0.0000 |

- Changelog entry under Added.

### How did you test your changes?

- **Expected values come from Microsoft Excel Online (en-US).** Each
test is one measured case: the formula in the
test is the formula measured in Excel, on the same fixture layout, so
any case can be re-checked by entering it in
Excel. Cases cover the docs examples, every basis, the order of the
three dates, 30/360 zero-day spans, February
and month ends, multi-year spans that pin the actual/actual year length,
coercion of every argument, empty
arguments, error precedence (one and two errors, out-of-range values
against text, date order against text), round
trips between the two functions, arrays and nesting, and argument
counts. Values are compared at the 15th
significant digit with `smartRounding: false`. Config-dependent cases
pass their config:
`dateFormats: ['MM/DD/YYYY', 'YYYY-MM-DD']` for text dates,
`useArrayArithmetic: true` for array constants, and
`leapYear1900: true` with `nullDate` 1899-12-31 for eight cases with
dates before 1 March 1900, which then match
Excel. Three cases that cross Excel's 29 February 1900 pin
HyperFormula's results.
- **725 new tests** in hyperformula-tests: `function-pricemat` 351,
`function-yieldmat` 374.
- All new tests failed before the engine change (the functions were
unknown, `#NAME?`).
- **Full Jest suite** with the private tests, after merging the current
`develop`: 571 suites, 15,607 passed, 3 skipped (pre-existing).
- **Mutation check:** `PRICEMAT` without the negative-`yld` check fails
3 tests; `YIELDMAT` without the zero-day
check fails 4; counting `DSM` from `settlement` instead of `DIM − A`
fails 16.
- `npm run lint` (0 errors, no new warnings in `src/`), `npm run
verify:typings`,
  `npm run docs:generate-function-docs`, `git diff --check`.

### AI assistance

Claude Code wrote the code, tests and docs. I reviewed it.

### Compatibility with Excel and Google Sheets

Excel: Microsoft Excel Online (en-US). Google Sheets: checked only for
the case in the list of differences.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
|
`=PRICEMAT(DATE(2008,2,15),DATE(2008,4,13),DATE(2007,11,11),0.061,0.061,0)`
(docs example) | 99.9844988755569 | – | 99.9844988755569 |
|
`=PRICEMAT(DATE(2008,2,15),DATE(2008,4,13),DATE(2007,11,11),0.061,0.061,1)`
| 99.9845977645695 | – | 99.9845977645695 |
|
`=PRICEMAT(DATE(2008,2,15),DATE(2008,4,13),DATE(2007,11,11),0.061,-0.01,0)`
| `#NUM!` | – | `#NUM!` |
|
`=YIELDMAT(DATE(2008,3,15),DATE(2008,11,3),DATE(2007,11,8),0.0625,100.0123,0)`
(docs example) | 0.0609543336915387 | – | 0.0609543336915387 |
|
`=YIELDMAT(DATE(2008,3,15),DATE(2008,11,3),DATE(2007,11,8),0.0625,100.0123,1)`
| 0.0609666856464936 | – | 0.0609666856464936 |
|
`=YIELDMAT(DATE(2008,1,30),DATE(2008,1,31),DATE(2008,1,1),0.0625,100.0123,4)`
| 0 | `#NUM!` | `#DIV/0!` |

HyperFormula matches Excel at the 15th significant digit on every
measured case except the last row, where `DSM` is 0: Excel shows 0 in
the cell, and HyperFormula returns `#DIV/0!`. That case is in the list
of differences. Dates before 1 March 1900 differ as for every date
function.

### Public API changes

None. Two new built-in functions.

### Out of scope and follow-ups

The other securities functions (`ACCRINT`, `PRICE`, `YIELD` and the
odd-period ones) come in their own PRs.

### Types of changes

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

### Related issues

1. HF-451 (`PRICEMAT`, `YIELDMAT`).
2. Tests: handsontable/hyperformula-tests#88

### Checklist

- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> New financial calculation surface with intricate day-count and
date-order rules; behavior is localized to new plugin and a small
YEARFRAC refactor, but incorrect formulas would affect spreadsheet
results.
> 
> **Overview**
> Adds **Excel-compatible securities functions** for discounted and
maturity-interest instruments, centralized in a new
**`SecuritiesPlugin`**.
> 
> The plugin implements **ACCRINTM**, **DISC**, **INTRATE**,
**PRICEDISC**, **RECEIVED**, **YIELDDISC**, **PRICEMAT**, and
**YIELDMAT**, with Excel-style argument validation, day-count **basis**
(0–4), and shared helpers for dates and numeric coercion. **`PRICEMAT`**
/ **`YIELDMAT`** use an `interestAtMaturity` path (issue → settlement →
maturity day counts, including **DSM = DIM − A** for 30/360).
**`YEARFRAC`** now delegates to **`DateTimeHelper.dayCountByBasis`**
instead of inlined basis logic.
> 
> Supporting updates: financial function catalogue entries, localized
names across language packs, **`UNGROUPED_FUNCTIONS`** license entries,
changelog and **list-of-differences** (notably **YIELDMAT** `#DIV/0!` vs
Excel’s `0` in a zero-DSM case).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
af55ace. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…1759)

### Context
`docs/guide/performance.md` covers `useColumnIndex`, address-mapping
policies, lazy-transformation cleanup and suspending recalculation, but
not how to load the data. That choice comes first: with sheets that
reference each other, loading them one at a time costs time that grows
with every sheet added.

This PR adds a "Loading multiple sheets" section to that page:

- **Build once.** One `buildFromSheets` call instead of an `addSheet` +
`setSheetContent` loop. Each `setSheetContent` recalculates the loaded
cells that depend on the sheet it fills, so the work grows with each
step, and `addSheet` recalculates again when loaded formulas already
point at the new sheet.
- **Order of loading.** Since 3.1.1, a formula that references a sheet
not added yet evaluates to `#REF!` and is repaired when that sheet is
added, with no re-parse. The per-sheet cost grows with how much of the
loaded data depends on sheets not loaded yet: dependency order stays
close to `buildFromSheets`, reverse order does not, and
`buildFromSheets` is the choice that does not depend on the order.
- **One engine, not one per sheet.** A formula cannot reference a sheet
in another instance; it gets `#REF!`.
- **Passing the engine to other libraries.** A built instance helps only
if the library reads the sheets from it; a library that writes each
sheet's data again recalculates the cells that depend on every sheet it
rewrites, which can cost more than a dependency-ordered load.

The section also says that reads throw while evaluation is suspended,
and links to batch operations.

### How did you test your changes?
- Ran both code samples against this branch: `Sheet1!B1` is `10`;
`Hub!A1` is `#REF!`, then `1` after `addSheet('Later')`, then `42` after
`setSheetContent`.
- Checked the other statements the same way: a read inside `batch()` and
after `suspendEvaluation()` throws `EvaluationSuspendedError`, and a
reference to a sheet held by another instance returns `#REF!`.
- Placeholder sheets: `SheetMapping.ts` has no placeholder handling at
tag `3.1.0` and has it at `3.1.1`.
- Benchmark on the released 3.4.0: 500 sheets of 10 rows by 60 columns
with 49,450 cross-sheet references, 5 interleaved runs per mode, every
run gated on 4,945 resolved references. Median total: 168,085 ms for the
per-sheet loop, 1,183 ms for one `buildFromSheets` call (142 times
faster).
- Registering all sheet names first: 78,721 ms against 169,447 ms for
the naive loop (one 500-sheet run each).
- Load order on this branch after merging `develop`: 150 sheets of 10
rows by 40 columns, each cell reading the same cell of the previous
sheet, 3 interleaved runs per mode, every run checked on the last cell.
Median: 509 ms for `buildFromSheets`, 585 ms for the per-sheet loop in
dependency order, 611 ms with one formula on the second sheet reading
the last one, 31,494 ms in reverse order, and 7,715 ms for a
`setSheetContent` of every sheet after `buildFromSheets`.
- Handsontable's Formulas plugin, on its `develop` branch: a grid
created with its own data on an existing sheet writes that data with
`setSheetContent`.
- The page keeps 10 search tags, the limit in
`dev-docs/DOCS-CONTENT-GUIDE.md`.

### AI assistance
Claude Code wrote the guide section, the benchmarks and this
description. All 8 non-merge commits on this branch carry its co-author
line.

### Compatibility with Excel and Google Sheets
Not applicable: documentation only, no calculation results change.

### Public API changes
None.

### Out of scope and follow-ups
None.

### 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)
- [x] Change to the documentation

### Related issues
1. HF-360

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only change; no runtime, API, or calculation behavior
changes.
> 
> **Overview**
> Adds a **Loading multiple sheets** section to the performance guide,
plus `buildFromSheets` and `addSheet` search tags.
> 
> It recommends building with **`buildFromSheets`** instead of repeated
**`addSheet` / `setSheetContent`**, explains why incremental loading and
load order affect recalculation cost, and covers runtime loading via
**batches** and suspended evaluation. Subsections also warn against
**multiple engine instances** for cross-sheet formulas and note when
**pre-built instances** help or hurt when passed to other libraries.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
ba5c8f1. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
### Context
Docs links shared on LinkedIn, Slack, and X show a blank preview card.
Starlight emits `og:title`, `og:description`, and
`twitter:card=summary_large_image`, but no image. The live VuePress site
has the same gap: it emits no `og:` tags at all.

This adds `og:image`, its width, height, and alt, plus `twitter:image`
and `twitter:image:alt`, to the Starlight `head`. A `SOCIAL_IMAGE`
constant in `docs/astro.config.mjs` holds the URL, size, and alt text in
one place, and `docs/README.md` ("Social preview image") documents how
to change it. They point at the handsontable.com default card
(`https://handsontable.com/og/default.png`, 1200x630, live now), which
carries the HyperFormula mark. A dedicated HyperFormula docs card would
look better, but none exists. Swapping one in later means changing one
URL. The URL is absolute because crawlers don't resolve relative
`og:image` paths.

The same fix for the Handsontable DataGrid docs:
handsontable/handsontable#14451.

### How did you test your changes?
- `node --check docs/astro.config.mjs` and `eslint astro.config.mjs`
pass.
- `curl -I https://handsontable.com/og/default.png` returns 200
`image/png`.
- On the branch preview, `guide/basic-usage.html` renders all five new
tags next to Starlight's own `og:` and `twitter:card` tags.
- Still to do after release: LinkedIn Post Inspector should show the
card for a docs URL.

### AI assistance
Claude Code wrote the change and this description.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### Out of scope and follow-ups
- No per-page images. Every page gets the same card.
- No automated check. The docs have no test runner, and the image is
hosted on handsontable.com, so a size check would need the network.
Adding one would mean a CI change. The README says to confirm the tags
on the branch preview after changing them.
- The live site stays on VuePress (`master`) until the Starlight docs
are released. No VuePress fix is included.

### Types of changes
- [x] Change to the documentation

### Checklist
- [x] I read my own diff end to end before requesting a review.
- [x] No changelog entry is needed (docs only).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
Starlight takes a page's meta description and the `og:description` used
in link previews from the `description` frontmatter field. Only 1 of the
57 guide pages had one. All the others fell back to the site-wide
"HyperFormula is a high-performance calculation engine…" line, so every
search result and shared link described the page the same way.

This adds a one-sentence `description` to the 56 guide pages that lacked
one, as `dev-docs/DOCS-CONTENT-GUIDE.md` asks ("a one-sentence
`description` that names the concept"). Each one is written from the
page's own content. They run 47 to 130 characters, so search results
don't cut them short. `built-in-functions.tmpl.md` gets its description
in the template, which the generator copies into
`built-in-functions.md`.

This complements the `og:image` change in #1915. Neither depends on the
other.

### How did you test your changes?
- Every one of the 57 guide frontmatter blocks parses with js-yaml and
has a string `title` and `description`.
- Each claim was checked against the page body (for example, the
currency page covers input recognition and `TEXT` output, and the error
examples are ones the page lists).
- Still to do: on the docs preview, a guide page's `<meta
name="description">` and `og:description` should show its own sentence.

### AI assistance
Claude Code wrote the descriptions and this description. A human should
read the list.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### Out of scope and follow-ups
- The API reference pages under `docs/api/` are generated and keep the
site-wide description.
- No title or body changes.

### Types of changes
- [x] Change to the documentation

### Checklist
- [x] I read my own diff end to end before requesting a review.
- [x] No changelog entry is needed (docs only).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
The 4.0.0 license entry in `CHANGELOG.md` links `LICENSE.txt` with a
relative path. The code freeze copies the changelog section word for
word into `docs/guide/release-notes.md`, and `publish` uses it as the
GitHub release body. In both places the relative link points to a file
that does not exist there.

This PR replaces it with
`https://github.com/handsontable/hyperformula/blob/develop/LICENSE.txt`,
the URL that `docs/index.md`, `docs/guide/licensing.md` and
`hyperformula/README.md` already use.

### How did you test your changes?
Checked the diff: one link on `CHANGELOG.md:12` changes, nothing else.
Lint and Jest were not run, because the change touches no code.

### AI assistance
Claude Code made the edit and wrote this description.

### Compatibility with Excel and Google Sheets
Not applicable.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
|   |   |   |   |

### Public API changes
None.

### Out of scope and follow-ups
Lines 16-23 of `CHANGELOG.md` link the migration guide on the old
`hyperformula.handsontable.com` host. They are fixed separately, in
#1918.

### 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)
- [x] Change to the documentation

### Related issues
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…1918)

### Context
In the 4.0.0 section of `CHANGELOG.md`, eight entries link the 3.x to
4.0 migration guide on the old host,
`hyperformula.handsontable.com/docs/guide/`. The docs are now served
from `handsontable.com/docs/hyperformula/` (`base` in
`docs/build.config.js`), and the old host only redirects. The #1905
entry already uses the new host.

The code freeze copies this section into `docs/guide/release-notes.md`
and the GitHub release body, so all nine links now point at
`https://handsontable.com/docs/hyperformula/guide/migration-from-3.x-to-4.0.html`.
Links in already-released sections are left as they were.

### How did you test your changes?
Checked the diff: eight URLs change, nothing else. In the `[Unreleased]`
section, all nine migration-guide links now use the same URL and none
use the old host. Lint and Jest were not run, because the change touches
no code.

### AI assistance
Claude Code made the edit and wrote this description.

### Compatibility with Excel and Google Sheets
Not applicable.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
|   |   |   |   |

### Public API changes
None.

### Out of scope and follow-ups
The relative `LICENSE.txt` link in the same section is fixed separately,
in #1917.

### 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)
- [x] Change to the documentation

### Related issues
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
`hyperformula-ui` declares `hyperformula` as `^3.0.0` (optional peer)
and `^3.4.0` (dev dependency, `demo/js`, `demo/shared`). Neither accepts
4.0.0. That causes two problems for the HyperFormula 4.0.0 release:

1. **Inside the repository.** Code-freeze step 4 sets the engine to
4.0.0, deletes `package-lock.json` and runs `npm i`. With the old
ranges, npm installs `hyperformula@3.5.0` from the registry into
`hyperformula-ui/packages/core`, `demo/js` and `demo/shared`, instead of
linking the local engine. So the freeze would build and test the UI
against 3.5.0, not against the engine being released.
2. **For users.** Installing `hyperformula@4.0.0` next to the published
`hyperformula-ui@0.3.7` fails with `ERESOLVE`, because the optional peer
conflicts with `^3.0.0`.

This PR widens the ranges to:
- `>=3.0.0` for the peer dependency
- `>=3.4.0` for the dev and demo dependencies, which keeps their
existing minimum

It also updates the package README, which said "any 3.x version".

An open upper bound promises compatibility with future engine majors
before they exist. The alternative was `^3.0.0 || ^4.0.0`, which needs
another edit at 5.0. The editor duck-types the engine
(`HyperFormulaLike`) and feature-detects every call, so it has no
compile-time tie to a major version.

The registry problem (2) is only fixed once a `hyperformula-ui` release
with this range is published. That release should go out with
HyperFormula 4.0.0, or before it.

### How did you test your changes?
I ran everything against `develop` with the engine's version set to
4.0.0 locally (not committed), to match the state after the freeze:

- **Freeze lockfile simulation.** I copied the workspace `package.json`
files to a scratch directory, set the engine to 4.0.0 and ran `npm
install --package-lock-only` from an empty lock:
- Old ranges: `hyperformula-ui/packages/core`, `demo/js` and
`demo/shared` each get `node_modules/hyperformula` 3.5.0 from the
registry.
- New ranges: the only entry is `node_modules/hyperformula` with `link:
true` to the workspace.
- **In place.** `npm install`, then `npm ls hyperformula` shows every UI
workspace deduped to `hyperformula@4.0.0 -> ./hyperformula`, with no
nested copies.
- **UI gate.** `npm run build` (engine; bundle and publish-package
checks OK), `npm run build:ui`, `npm run typecheck`, `npm run lint`,
`npm run test:ui` (90 files, 1178 tests passed) and `npm run test:e2e`
(1 passed) all pass.
- **Packed tarballs.** `npm pack` for `hyperformula@4.0.0` and
`hyperformula-ui`, then `attw --pack --profile node16`: node16 (ESM) and
bundler are green, which is what `hyperformula-ui/dev-docs/RELEASE.md`
requires. Installing both tarballs into an empty project succeeds with
no peer warning. As a control, installing `hyperformula@4.0.0` with the
published `hyperformula-ui@0.3.7` fails with `ERESOLVE`.
- **Real-engine integration.** The UI unit tests mock the engine, so I
ran a scratch Vitest file (not committed) that drives `EngineBridge`
against the real 4.0.0 engine with the internal test key. It checks:
- the function catalog, signatures and prefix filtering for functions
new in 4.0 (`TAKE`, `CHOOSECOLS`, `PRICEMAT`, `LINEST` and others)
  - the renamed Polish name `O.CZAS.TRWANIA`
  - formatting and error-popup text for `#CALC!` and `#REF!`
  - `TEXT` with the new grouping rules
  - `valuesUpdated` capture and named-expression resolution
  - the lexer reading `#CALC!` as an error literal
- an engine with no license key, where the bridge does not throw and
cells show `#LIC!`

  All 8 cases pass.

### AI assistance
Claude Code made the change, ran the checks and wrote this description.

### Compatibility with Excel and Google Sheets
Not applicable.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
|   |   |   |   |

### Public API changes
None to the API. The `hyperformula` peer dependency range of
`hyperformula-ui` changes from `^3.0.0` to `>=3.0.0`.

### Out of scope and follow-ups
- Publishing a `hyperformula-ui` release with this range, by hand, as
`hyperformula-ui/dev-docs/RELEASE.md` describes.
- The e2e suite has one test that runs the real engine, and the unit
tests mock it. A committed integration test against the real engine
would catch engine changes that affect the editor.

### Types of changes
- [ ] Breaking change (existing functionality no longer works as before)
– agreed with the maintainers
- [x] 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
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
#1738 changed what the HyperFormula API returns for an empty cell when
`evaluateNullToZero` is on: `0` instead of `null`. It was filed as a bug
fix, under Fixed, with no migration note. But it changes what existing
calls return for existing input, which `dev-docs/DEFINITION-OF-DONE.md`
counts as a breaking change. Code that finds empty cells with `===
null`, or reads the rows of `getSheetValues()` by length, behaves
differently after the upgrade. The maintainers decided to treat it as
breaking in 4.0.0.

This PR:
- moves the #1738 entry from Fixed to Changed, marks it **Breaking
change**, adds the row padding and the `valuesUpdated` change, and links
the migration guide
- adds an "Empty cells with `evaluateNullToZero`" section to
`docs/guide/migration-from-3.x-to-4.0.md`, with a 3.x/4.0 table, what
stays the same, and how to update code (`isCellEmpty()` instead of `===
null`)

The engine is not changed.

### How did you test your changes?
- Ran the same calls against `hyperformula@3.5.0` from npm and against a
build of `develop`, with `evaluateNullToZero` on and off. Every 3.x and
4.0 value in the guide's table comes from those runs: `getCellValue()`
(an empty cell and an address outside the used area),
`getSheetValues()`, `getAllSheetsValues()`, `getRangeValues()`,
`calculateFormula('=A1:C1', 0)`, and the `newValue` of a cleared cell in
both the returned changes and `valuesUpdated`. Also checked what stays
the same: `getCellSerialized()`, `isCellEmpty()`, `getCellType()`,
`ISBLANK()`, and a formula reading the empty cell. With the option off,
both versions return the same values.
- `npm run docs:lint` passes, and `npm run docs:build` completes with
229 pages.
- Checked that the API anchors the section links to (`#iscellempty`,
`#getcellserialized`, `#evaluatenulltozero`) exist in the generated API
reference.

### AI assistance
Claude Code made the changes, ran the checks and wrote this description.

### Compatibility with Excel and Google Sheets
Not applicable. Formula results do not change.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
|   |   |   |   |

### Public API changes
None in this PR. It documents the change #1738 already made: with
`evaluateNullToZero: true`, the methods that export cell values return
`0` instead of `null` for an empty cell.

### Out of scope and follow-ups
None.

### 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)
- [x] Change to the documentation

### Related issues
1. HF-270

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [x] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
From 4.0.0, the engine checks the license key off handsontable.com.
StackBlitz runs off that domain, so every "Open in StackBlitz" example
showed `#LIC!` or a license notice. The linked multi-file demos also
pointed to GPL 3.5.x code with the `gpl-v3` key.

This PR does it the way the Handsontable DataGrid docs do:

- Every live example gets DataGrid's "Source code" toggle. It shows the
JavaScript (with a TypeScript switch), HTML and CSS tabs below the
preview.
- `interactive-example.css` and `public/example-tabs.js` are verbatim
copies from the Handsontable docs. The class names (`hot-example-*`) are
DataGrid's, as for the other copied stylesheets.
- The "Open in StackBlitz" form is removed, with `sandboxCode()`,
`SANDBOX_LICENSE_NOTICE` and the `.hf-example__stackblitz` styles.
- The `custom-functions` demo is now a live example in its guide. It has
both `GREET` and `DOUBLE_RANGE`, and uses the placeholder key.
- The mortgage-calculator and framework demo links now say "…on GitHub",
on the docs home page and in `hyperformula/README.md`. They point to
`hyperformula-demos/tree/4.0.x`, and so does `read-excel-file`. They
return 404 until that branch exists; the release creates it. The Vue 2
link stays on `2.5.x`.
- The license behavior is unchanged: the domain skip, the preview-key
opt-in, and the build and deploy checks.

Deviations from DataGrid:
- No "Edit in sandbox" button. HyperFormula has no sandbox runner.
- No loading shimmer. DataGrid's runner removes it after mounting;
HyperFormula's examples run inline, with no runner.
- The outer element also has `hf-example`, which the existing dark-mode
rules for example content use.
- `--sl-color-focus-ring` is defined in `hyperformula.css`. DataGrid
defines it in a newer `variables.css` than the copy here.

One change the toggle needed: the lines only the page needs are now a
comment.
- They stand in for imports, which the page can't run. For example,
`const frFR = HyperFormula.languages.frFR`.
- They used to sit between `skip-in-sandbox` markers and redeclare the
imported names. Then `tsc` dropped those imports from the `.js`, so the
JavaScript tab of `clipboard-operations`, `i18n` and
`localizing-functions` used names it never imported.
- Now they sit in a `/* start:skip-in-source` … `end:skip-in-source */`
comment. The page un-comments it, and the "Source code" tabs drop it.
- The example files are valid modules, and `tsc` keeps every import with
the generator unchanged. Regenerating changed only the import and marker
lines of those 3 examples.

`dev-docs/DOCS-CONTENT-GUIDE.md` now describes the toggle, the markers
and GitHub demo links instead of StackBlitz.
`hyperformula/dev-docs/LICENSING.md` and
`script/release/release-README.md` no longer mention StackBlitz.

### How did you test your changes?
- `git grep -i stackblitz -- docs hyperformula/README.md` finds nothing.
- `npm run docs:lint` passes.
- `npm run docs:build` passes, and
`script/check-no-preview-license-key.mjs` passes on that build.
- `DOCS_TEST_LICENSE_KEY=true npm run docs:build` writes the key into 13
live examples: the 12 before plus custom-functions. The build's own
check passes, so the key appears only in example scripts, never in the
"Source code" tabs. `check-no-preview-license-key.mjs` then refuses that
build, as `deploy:cf` should.
- I ran the custom-functions script with the test key injected the way a
preview build does, against a build of `develop` in happy-dom. Before
"Run calculations", the table shows the formulas. After it, the table
shows `👋 Hello, Anthony!` and the others, and `DOUBLE_RANGE` spills `2,
4, 6, 8`. No license warning appears.
- In the dev server, in Chrome, I checked the toggle on the
custom-functions and basic-usage pages:
- Clicking it sets `aria-expanded` to `true`, unhides
`#hot-code-example1`, adds `is-open` and rotates the chevron.
- The tabs are JavaScript ▾ (JavaScript/TypeScript), HTML and CSS, as in
DataGrid.
  - The code shows the placeholder key.
  - The GitHub icon links `docs/examples/<name>` on `develop`.
- Tab from the example's button reaches "Source code" with the inset
focus ring, and Enter opens it.
- I compared it side by side with the DataGrid column-menu page: same
toolbar, icons, tab bar and accent border. Screenshots, HyperFormula and
DataGrid, closed and open, are attached below. On localhost, the preview
is empty: there the CDN engine needs a key, and the dev server never
injects one.

### AI assistance
Claude Code made the changes, ran the checks and wrote this description.

### Compatibility with Excel and Google Sheets
Not applicable.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
|   |   |   |   |

### Public API changes
None.

### Out of scope and follow-ups
- The `4.0.x` branch of `hyperformula-demos` is created separately.

### 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)
- [x] Change to the documentation

### Related issues
1. HF-628

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

### Screenshots
<!-- HyperFormula closed / open, DataGrid closed / open -->

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
The `#CALC!` entry in `CHANGELOG.md` and the `#CALC!` table in the 3.x
to 4.0 migration guide both said `CONCAT` returned `#VALUE!` in 3.x for
a result longer than 32,767 characters. But `CONCAT` is new in 4.0
(#1816), and 3.5.0 returns `#NAME?` for it. Only `TEXTJOIN` changes from
`#VALUE!` to `#CALC!`.

This PR:
- rewords the `#CALC!` breaking entry so that only `TEXTJOIN` changes
from `#VALUE!`
- adds to the `CONCAT` Added entry that it returns `#CALC!` for a result
longer than 32,767 characters
- removes the `CONCAT` row from the migration guide's table, and adds a
sentence under it saying that `CONCAT`, new in 4.0, also returns
`#CALC!` there

The change is docs only. The engine is not changed.

### How did you test your changes?
- On a build of `develop`, with the internal test key,
`=CONCAT(REPT("a",20000),REPT("a",20000))` and the same `TEXTJOIN`
formula both return `#CALC!`.
- On published 3.5.0, the `CONCAT` formula returns `#NAME?`, and
`TEXTJOIN` returns `#VALUE!`. This comes from today's code-freeze audit.
- No other page claims a 3.x result for `CONCAT`.
- `npm run docs:lint` passes.

### AI assistance
Claude Code made the change, ran the checks and wrote this description.

### Compatibility with Excel and Google Sheets
Not applicable. Formula results do not change.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
|   |   |   |   |

### Public API changes
None.

### Out of scope and follow-ups
None.

### 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)
- [x] Change to the documentation

### Related issues
1. #1647

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
In the 4.0.0 section of `CHANGELOG.md`, the #1885 license entry was the
only breaking change with no link to the migration guide. The guide
covers the license change in its first section, "The `gpl-v3` license
key no longer works". The code freeze copies this section into the
release notes and the GitHub release, so the link reaches readers there
too.

This PR adds "See the [migration
guide](https://handsontable.com/docs/hyperformula/guide/migration-from-3.x-to-4.0.html)."
to that entry, with the same wording and URL as the other breaking
entries.

### How did you test your changes?
Checked the diff: one sentence is added to `CHANGELOG.md:12`, and
nothing else changes. Every breaking entry in the unreleased section now
links the migration guide. Lint and tests were not run, because no code
changed.

### AI assistance
Claude Code made the edit and wrote this description.

### Compatibility with Excel and Google Sheets
Not applicable.

| Formula | Excel | Google Sheets | HyperFormula |
|---|---|---|---|
|   |   |   |   |

### Public API changes
None.

### Out of scope and follow-ups
None.

### 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)
- [x] Change to the documentation

### Related issues
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The root package-lock hoists a newer TypeScript than the engine's own, and
ts-loader, ts-jest and @typescript-eslint picked it up. Karma and Jest now
pass the engine's copy as the compiler, and the ESLint config aliases the
hoisted copy to it in the require cache, since @typescript-eslint has no
compiler option.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ctory (#1925)

### Context
The `Build docs` workflow and the `hyperformula-docs` Workers Build fail
on `release/4.0.0` in `typedoc:build-api`:

```
Error: Cannot find module 'typedoc-plugin-markdown/dist/theme'
```

The `package-lock.json` regenerated for the 4.0.0 release hoists
`typescript` 4.9.5 to the root `node_modules`. `typedoc` 0.19.2 and
`typedoc-plugin-markdown` 2.4.2 now sit in `hyperformula/node_modules`
next to the engine's `typescript` 4.0.8, instead of the root.
`docs/typedoc-theme/theme.js` used a plain `require()`, which searches
from `docs/typedoc-theme/` upward and never reaches
`hyperformula/node_modules`.

The theme now resolves the plugin with `require.resolve(..., { paths:
[<repo>/hyperformula] })`, so it finds the engine's copy wherever npm
installs it. That is what the comment in the file already required: the
engine's plugin, not a portal copy.

Alternative rejected: changing the lockfile layout back. The next
regeneration would break it again.

### How did you test your changes?
- `npm run typedoc:build-api` on `release/4.0.0`: fails with the error
above.
- The same command with this change: `Loaded plugin
typedoc-plugin-markdown`, `Using TypeScript 4.0.8`, `Documentation
generated at docs/api`.
- The full portal build and the Workers Build are left to CI on this PR.

No paired branch in `hyperformula-tests`: no test change.

### AI assistance
Claude Code diagnosed the failure and wrote the change and this
description.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### Out of scope and follow-ups
None.

### 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)
- [x] 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
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

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

Warning

High risk: This is a major-release merge whose own release notes document license-key enforcement on every function call, breaking changes to INDEX/FILTER/TEXT and value-export APIs (core runtime paths), plus the docs-portal rebuild and deploy/license-key tooling shown in this slice.

Full review: 15 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).

Comment on lines +541 to +542
setOverlay(false);
setToc(false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Init calls setOverlay/setToc(false), stealing focus on every page load

Medium severity

The close paths of setOverlay (line 383: menuBtn?.focus()) and setToc (line 406: tocToggle?.focus()) unconditionally move focus. The initial-state block calls setOverlay(false) and setToc(false) on every initMobileNav run — i.e. on every page load and every astro:page-load navigation. On mobile this yanks focus to the ToC toggle button on each navigation, so screen-reader users hear the button announced and keyboard users see it focused on every page, instead of focus staying on the document. The focus-restore calls should only run when a panel was actually open (e.g. guard on the previous open state).

Suggestion: Only call menuBtn?.focus()/tocToggle?.focus() when the panel is transitioning from open to closed, not on the initial false call.

Comment on lines +20 to +70
function rebaseRootLinks(md, base) {
const prefix = (base || '/').replace(/\/$/, '');
if (!prefix) return md;
// Fence-aware: never touch link-shaped text inside fenced code blocks.
const out = [];
let inFence = false;
let marker = '';
for (const line of md.split('\n')) {
const t = line.trim();
const fm = t.match(/^(```+|~~~+)/);
if (fm && (!inFence || (fm[1][0] === marker[0] && fm[1].length >= marker.length))) {
if (!inFence) { inFence = true; marker = fm[1]; } else { inFence = false; }
out.push(line);
continue;
}
out.push(inFence ? line : line.replace(/(\]\()\/(?!\/)/g, `$1${prefix}/`));
}
return out.join('\n');
}

/**
* Resolve every Markdown link in a page to an ABSOLUTE URL, relative to that
* page's own URL. Needed only for `llms-full.txt`: it aggregates all pages into
* one file at a single URL, so page-relative links (`](basic-usage.md)`,
* `](../api/x.md)`) would otherwise resolve against the corpus URL and 404.
* Per-page `.md` companions keep relative links (they resolve within the
* companion tree). Fence-aware; leaves absolute/protocol/anchor links alone.
* @param {string} md
* @param {string} pageUrl absolute URL of the page this content came from
* @returns {string}
*/
function absolutizeLinks(md, pageUrl) {
const out = [];
let inFence = false;
let marker = '';
for (const line of md.split('\n')) {
const t = line.trim();
const fm = t.match(/^(```+|~~~+)/);
if (fm && (!inFence || (fm[1][0] === marker[0] && fm[1].length >= marker.length))) {
if (!inFence) { inFence = true; marker = fm[1]; } else { inFence = false; }
out.push(line);
continue;
}
if (inFence) { out.push(line); continue; }
out.push(line.replace(/\]\(([^)\s]+)\)/g, (m, target) => {
if (/^(https?:|mailto:|#)/i.test(target) || target.startsWith('//')) return m;
try { return `](${new URL(target, pageUrl).href})`; } catch (_) { return m; }
}));
}
return out.join('\n');
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Companions never rewrite README.md links to index.md, so they 404

Medium severity

The HTML pipeline (resolveUrl in markdown-plugins.mjs) maps links like ../api/README.md to the page built from that source, and mdCompanions writes the companion for api/README.md to api/index.md. But the raw .md companions keep the original relative link, and neither rebaseRootLinks (root-relative links only) nor absolutizeLinks (which just resolves the target against the page URL) rewrites README.md to index.md. A companion link ../api/README.md therefore resolves to /docs/hyperformula/api/README.md, which is not written to dist, and the same broken absolute URL is baked into llms-full.txt. The markdown-plugins.mjs header explicitly documents ../api/README.md as a link pattern that occurs in the pages.

Suggestion: In rebaseRootLinks/absolutizeLinks (or before them), rewrite link targets ending in (^|/)README.md to $1index.md, mirroring the outFile rename at line 122.

Comment on lines +78 to +105
copyButton?.addEventListener('click', async () => {
let copyButtonClass: 'copied' | 'error' = 'copied';

try {
copyButton.disabled = true;

const res = await fetch(copyButton.dataset.path!);
if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
await navigator.clipboard.writeText(await res.text());
if (copyStatus) copyStatus.textContent = 'Markdown copied to clipboard';
} catch (error) {
console.error(error);
copyButtonClass = 'error';
if (copyStatus) copyStatus.textContent = 'Failed to copy Markdown';
} finally {
copyButton.classList.add(copyButtonClass);
copyButton.disabled = false;

setTimeout(() => {
copyButton.classList.remove(copyButtonClass);
if (copyStatus) copyStatus.textContent = '';
}, 3000);
}
});

document.getElementById('print-page')?.addEventListener('click', () => {
window.print();
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy Markdown / Print listeners lost after client-side navigation

Medium severity

The script binds click handlers directly to #copy-markdown and #print-page at module-evaluation time. Astro bundled component scripts execute only once per site load; with the ClientRouter/view transitions this repo explicitly supports (Header.astro re-binds via astro:page-load, and DocsAssistantWidget comments note 'PageSidebar can swap too'), the sidebar DOM is replaced on navigation and the new buttons get no listeners. After navigating between docs pages, Copy Markdown and Print this page silently do nothing. The widget's ToC button works around this with document-level delegation; these buttons need the same treatment (or astro:page-load rebinding).

Suggestion: Bind via document-level event delegation on .toc-action-link ids, or re-run the binding inside an astro:page-load listener as Header.astro does.

Comment thread docs/src/page-id.mjs
Comment on lines +35 to +38
export function markdownPath(entry) {
return entry.id !== '404' && entry.filePath?.endsWith('.md')
? entry.filePath.replace(/(^|\/)README\.md$/, '$1index.md')
: undefined;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

markdownPath builds href from entry.filePath, which is an absolute path

Medium severity

markdownPath returns entry.filePath (with only a README.md→index.md rename) and PageTitle.astro interpolates it directly after BASE_URL, expecting a path relative to the docs root. In Astro 5's content layer the glob loader stores filePath as the absolute on-disk path, so the "View as Markdown" href becomes something like /docs/hyperformula//home/runner/work/repo/docs/guide/basic-usage.md, which 404s on every page (PageSidebar.astro's copy has the same problem). If the intent is a base-relative path, it must be derived from entry.id (plus .md, with the README→index rename) rather than from filePath.

Suggestion: Return ${entry.id === 'index' ? 'index' : entry.id}.md-style base-relative path (applying the README→index.md mapping to the id), or strip the docs-root prefix from entry.filePath before use.

Comment on lines +113 to +129
if (movesAlongRows) {
while (row + delta >= 0 && row + delta <= maxRow && hasData(row + delta, col)) {
row += delta;
}

if (row === from.row) {
row = Math.min(Math.max(row + delta, 0), maxRow);
}
} else {
while (col + delta >= 0 && col + delta <= maxCol && hasData(row, col + delta)) {
col += delta;
}

if (col === from.col) {
col = Math.min(Math.max(col + delta, 0), maxCol);
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

findDataEdge never skips empty cells, breaking Ctrl+Arrow jump semantics

Medium severity

The helper is documented as "ctrl+arrow-style navigation", but the while loop only advances while the immediately adjacent cell has data. When the starting cell is empty, or when there is a gap between the current data block and the next one, the loop never executes and the row === from.row / col === from.col fallback moves exactly one cell. Excel and Google Sheets jump to the next non-empty cell in these cases, so any adapter using this shared helper to implement GridNavigation.getDataEdge lands the point-mode Ctrl/Cmd+Arrow cursor one cell away instead of on the target cell — a common scenario (empty cell next to a data block, or gaps between blocks).

Suggestion: When the first step lands on an empty cell (or the start cell itself is empty), continue scanning in direction until a cell with data is found, falling back to the grid edge when none exists, matching Excel's Ctrl+Arrow behavior.

Comment on lines +27 to +32
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d # https://github.com/actions/setup-node/releases/tag/v1.4.4
with:
node-version: ${{ matrix.node-version }}

- name: Checkout main repository
uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 # https://github.com/actions/checkout/releases/tag/v2.0.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

New workflow pins ancient action SHAs the same PR upgrades elsewhere

Low severity

This newly added workflow pins actions/setup-node to the SHA commented as v1.4.4 and actions/checkout to the SHA commented as v2.0.0 (2020-era versions), while every other workflow in this same pull request is upgraded to setup-node v7.1.0 and checkout v7.0.1. The old setup-node predates Node 22 support and the old checkout runs on a long-deprecated Node runtime, so this job is the most likely one to break on runner updates, and the repository's own dependabot.yml comment states actions stay pinned to current SHAs. The same stale pins repeat in the e2e job at lines 72 and 77.

Suggestion: Pin the four steps in this workflow to the same SHAs used in the other workflows: actions/setup-node@​949feb2413d6458794dcd2491c4babbbce0c15c1 and actions/checkout@​3d3c42e5aac5ba805825da76410c181273ba90b1.

javascript: 'js', jsx: 'js', node: 'js',
typescript: 'ts', tsx: 'ts',
shell: 'bash', sh: 'bash', zsh: 'bash',
yml: 'json',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

yml is mapped to the json grammar

Low severity

normalizeLang maps yml to json, so yml code blocks in assistant replies are tokenized with the JSON grammar, producing wrong highlighting, while yaml (unmapped) falls back to plain text. Map yml (and yaml) to a YAML grammar if one is added to SHIKI_LANGS, or let both fall back to text.

Suggestion: Remove the yml: 'json' entry so unsupported languages fall back to 'text', or add a proper yaml entry.

this.addressBox.destroy();
this.formulaCell.destroy();
this.container.classList.remove(CN.formulaBar);
this.container.removeAttribute("dir");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

destroy() unconditionally strips the container's dir attribute

Low severity

The constructor only sets dir when options.direction === "rtl" is passed, but destroy() calls this.container.removeAttribute("dir") unconditionally. If the host had set its own dir="rtl" (or "ltr") on the bar container without using the direction option, tearing the bar down silently removes the host's attribute and breaks the host's layout direction after the bar is destroyed or re-attached. The class removal above it is correctly guarded by sharedClassName !== undefined; the dir removal should be guarded the same way (only remove when the bar itself set it).

Suggestion: Track whether the constructor set dir (i.e. direction === "rtl") and only call removeAttribute("dir") in that case.

Comment thread docs/astro.config.mjs
alt: 'HyperFormula',
replacesTitle: true,
},
favicon: '/favicon/favicon-32x32.png',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Favicon path not prefixed with the site base path

Low severity

The Starlight favicon option is set to '/favicon/favicon-32x32.png', an absolute path from the site root, while every other favicon/asset link in the same head configuration (lines 144-147) is correctly prefixed with ${base} ('/docs/hyperformula/'). Starlight emits the favicon href verbatim, so the deployed site (served under /docs/hyperformula/) requests https://handsontable.com/favicon/favicon-32x32.png, where no asset exists, and the favicon 404s on every page. This also breaks local builds that use a non-root DOCS_BASE.

Suggestion: Use favicon: ${base}favicon/favicon-32x32.png`` (or a base-relative path) so it matches the apple-touch-icon/icon links already in head.

Comment on lines +224 to +226
} finally {
reader.releaseLock();
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

readSSE releases the reader lock without cancelling the stream

Low severity

When the consumer breaks out of the for await loop on message_end (or the generator returns on abort), the finally block only calls reader.releaseLock(). The underlying response body stream is never cancelled, so the HTTP/SSE connection stays open and the browser keeps buffering it until the server closes or the object is collected. Call reader.cancel() (or res.body.cancel() in sendInternal) before/instead of releasing the lock so the connection is closed promptly after a finished turn.

Suggestion: In the finally block use reader.cancel().catch(() => {}) before releaseLock(), or cancel the stream where the loop breaks.

sequba and others added 2 commits November 26, 2026 15:52
### Context
The "Source code" toggle added in #1921 has a JavaScript/TypeScript
switch. Each example's `.ts` file is the source, and the `.js` is
generated from it. But none of the 13 `.ts` examples has a type
annotation, interface or cast. Ignoring whitespace, the two files differ
by 0 to 12 lines per example, and those lines are only Prettier line
wrapping. The switch showed the same code twice.

This PR removes TypeScript from the files an example shows
(`SOURCE_FILES` in `docs/src/markdown-plugins.mjs`). With one script,
`public/example-tabs.js` renders a plain **JavaScript** tab instead of
the language dropdown. `example-tabs.js` is a verbatim copy from the
Handsontable DataGrid docs and stays unchanged.

- The `.ts` file is still required for every example, because it is the
source of the `.js`. The build still fails if an example doesn't include
one.
- `dev-docs/DOCS-CONTENT-GUIDE.md` now says the toggle shows the
JavaScript, HTML and CSS.

Alternative rejected: adding types to all 13 examples, so the TypeScript
tab is worth showing. That is a larger change, and it can bring the
switch back later.

### How did you test your changes?
- `npx astro build` in `docs/` succeeds: 229 pages built.
- I didn't inspect the built example pages. The preview build on this PR
shows the result.

### AI assistance
Claude Code found the cause and wrote the change and this description.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### Out of scope and follow-ups
Adding real TypeScript types to the examples, and bringing the switch
back afterward, is not part of this PR.

### 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)
- [x] Change to the documentation

### Related issues
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
### Context
The `dist/` bundles contain code from npm packages whose licenses
require their notice in every copy:

| Package | License | In which bundles |
|---|---|---|
| `core-js` 3.51.0 | MIT | all (Babel's `useBuiltIns: 'usage'`
polyfills) |
| `webpack` 4.47.0 | MIT | all (`webpack/buildin` module shims) |
| `chevrotain` 6.5.0 | Apache-2.0 | `.full` bundles |
| `regexp-to-ast` 0.4.0 | MIT | `.full` bundles |
| `tiny-emitter` 2.1.0 | MIT | `.full` bundles |

Until now, the banner held only HyperFormula's own `LICENSE.txt`. A
bundle loaded on its own, for example from a CDN, carried none of these
notices. People who install from npm get the packages' own `LICENSE`
files in `node_modules`, but the bundles don't. The vendored `bessel`
and `jStat` code already keeps its `@license` header.

The `BannerPlugin` in `.config/webpack/base.js` now takes a function.
For each chunk, it collects the npm packages its modules come from and
appends each package's name, version, license and license file text.
They're read from the installed package at build time, so a new or
updated dependency is covered without a code change. A bundled package
without a license file fails the build instead of shipping without a
notice.

Alternative rejected: a hand-written list of notices, which falls out of
date when a dependency changes. A plugin such as
`license-webpack-plugin` would add a dependency for about 60 lines of
code.

`hyperformula/dev-docs/BUILD.md` gets a section on the banner, including
the constraint that `script/check-file.js` expects exactly two
`@license` comments per bundle.

### How did you test your changes?
- I built `development` and `production` with `webpack ./lib/index.js
--output-path <scratch>` (same env as `bundle:development` /
`bundle:production`). Each banner lists `core-js` and `webpack`, and the
`.full` banners also list `chevrotain`, `regexp-to-ast` and
`tiny-emitter`. The `.min.js` files keep the banner, because it's a
`/*!` comment.
- `node script/check-file.js` passes for all four bundles. The base
bundles were run with `NODE_PATH` set to the repo's `node_modules`,
because `chevrotain` is external and the scratch folder can't resolve
it. The check runs the engine and asserts two `@license` comments.
- `karma start --browsers ChromeHeadless` (the browser suite builds with
this config): 16,255 passed, 49 skipped. Firefox can't start in my local
environment, so I didn't run it.

No paired branch in `hyperformula-tests`: no test change.

### AI assistance
Claude Code audited the shipped licenses and wrote the change, the
dev-docs section and this description.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### Out of scope and follow-ups
- The `hyperformula-ui` bundle wasn't audited for notices. It is
MIT-licensed and has no runtime dependencies.
- The `languages/` bundles don't use this banner. They contain no npm
package code.

### 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)
- [x] 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
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

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

Note

Medium risk: Changes the webpack banner generation for every shipped dist bundle; a defect here corrupts or breaks all release artifacts, but it is build tooling and any hard failure surfaces at build time.

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

Comment on lines +73 to +80
return `${name} ${version} (${license})\n\n${fs.readFileSync(path.join(directory, licenseFile), 'utf8').trim()}`;
}).sort();

if (notices.length === 0) {
return '';
}

return `\n\n---\n\nThis file includes the following third-party packages:\n\n${notices.join('\n\n---\n\n')}`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

License file text embedded in banner without escaping can break the bundle

Medium severity

thirdPartyNotices concatenates arbitrary third-party license file contents into the BannerPlugin banner, which webpack wraps in a /*! ... */ comment. If any bundled dependency's license file ever contains */ (some packages ship license/header files that do), the comment terminates early and the remaining license text is injected as raw code into every dist bundle, including the .min.js files. The same applies to the documented invariant that the banner must not contain the word @license (check-file.js expects exactly two occurrences): a dependency license file containing an @license JSDoc tag would break the verify step with no hint as to why. The build reads whatever the installed packages ship, so this is uncontrolled input.

Suggestion: Sanitize each notice before embedding: strip or replace */ (e.g. with *\/) and @license occurrences, or fail with a clear error naming the offending file.

### Context
The 4.0.0 section had several entries per change and entries for
internal changes. This PR cuts it from 54 entries to 47.

Merged:
- The license change (#1885) and the invalid `gpl-v3` key (#1905) are
now one breaking-change entry.
- The four `TEXT` mask entries (#1716) are now two short ones: one for
`TEXT`, one for `stringifyDateTime` and `stringifyDuration`. The details
stay in the migration guide.
- The `maxParserCacheSize` option and the parser cache growth fix
(#1635) are now one entry under Added.

Removed, because they aren't changes users act on:
- The license check skip on handsontable.com (#1905).
- The new license console messages (#1905).
- The third-party license notices in the bundles (#1928).

### How did you test your changes?
I read the rendered section. Every remaining entry keeps its link.

### AI assistance
Claude Code made the edits, as the maintainer directed, and wrote this
description.

### Compatibility with Excel and Google Sheets
Not applicable.

### Public API changes
None.

### Out of scope and follow-ups
None.

### 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)
- [x] Change to the documentation

### Related issues
None.

### Checklist
- [x] My pull request meets the [Definition of
Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md).
External contributors: see also [Contributing to
HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html).
- [x] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [x] I read my own diff end to end before requesting a review.
- [x] I added a
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md)
entry, written by [the changelog
rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog)
– or none is needed (docs, tests or tooling only).
- [x] I updated the documentation and JSDoc to match the change.
- [ ] Breaking change only: I added a section to the migration guide.
- [x] I updated the `dev-docs/` pages this change affects – or none
needed it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.75%. Comparing base (eff7928) to head (9f4d31b).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1926      +/-   ##
==========================================
+ Coverage   97.28%   97.75%   +0.47%     
==========================================
  Files         207      212       +5     
  Lines       16218    18817    +2599     
  Branches     3588     4436     +848     
==========================================
+ Hits        15777    18394    +2617     
+ Misses        433      415      -18     
  Partials        8        8              

see 419 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.

@cloudflare-workers-and-pages

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 9f4d31b Commit Preview URL

Branch Preview URL
Nov 26 2026, 03:25 PM

This branch has not been deployed

No deployments
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.

8 participants