Repository navigation
HF-359: Import the formula builder core as hyperformula-ui - #1832
Conversation
Imported from the formula-builder repository at commit e85b52b, without its history. Copied unchanged: the core package, the shared build, test and lint configuration it reaches through ../../, the editor-only demo with its shared helpers, and the Playwright suite that drives it. Adapters, the other demos and the pnpm workspace files stay behind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
Only the core package came over, so the grid demos and their checks have nothing to run against. The demo keeps the editor-only `basic` page, and the Playwright suite keeps its one check: typing `=1+2` shows `3`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
The repository runs one package manager. `catalog:` and `workspace:*` specifications become plain version ranges, and the generator scripts and the Playwright web server call npm instead of pnpm. Each package declares its own TypeScript 5, because npm hoists the engine's 4.x to the root, and its own Biome, which the formula-builder root used to supply. The API docs generator loads TypeScript from the package it documents, for the same reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
The package takes the name it will be published under, and its manifest gains the licence, repository, peer range and pack steps a public package needs: - the root LICENSE.txt is copied in by prepack and removed by postpack, the way the engine does it; - the hyperformula peer range is ^3.4.0, the first version with the function metadata methods the editor calls; - each package lints itself with Biome, pinned to the 2.4.16 that formula-builder ran, and the core also lints the shared configuration; - generated banners name the workspace by path, because --workspace=hyperformula-ui also matches workspaces by folder, not only the package of that name. The demo imports the renamed package, and the core gets a README for npm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
The root lists the UI's members directly: npm does not nest workspace roots, so hyperformula-ui/ is a folder of workspaces rather than one. - `lint` already fans out to every workspace, so it now also runs Biome over the UI; a new `typecheck` fans out the same way. - `build:ui`, `dev:ui`, `test:ui` and `test:e2e` run the UI's scripts, and `test` includes the UI's unit tests. - The licence gate checks the production dependencies of hyperformula-ui too. Workspaces are listed by path, and each one is excluded from its own report by its package name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
Two jobs, in their own workflow: - verify builds the package, fails if the generated stylesheet differs from the committed one, lints, typechecks, runs the unit tests and dry-runs the tarball; - e2e builds the engine, which the demo resolves from this workspace, then lints and typechecks the demo and the suite and runs Playwright. No path filter: a filtered workflow that becomes a required check stays pending forever on pull requests that do not touch its paths. The tarball dry run showed the README linking to DOCS.md, which the package did not ship, so `files` now includes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
The UI's internals move into hyperformula-ui/dev-docs/, next to the engine's own: the architecture and the spec come from the imported package, and the conventions, the testing notes, the keyboard matrix and the task map come from formula-builder's agent skills, which did not come over. They are adapted to this repository: npm commands, the hyperformula-ui name, the one demo, and no adapters in the tree. New pages: the code style that applies inside hyperformula-ui/ only, and the manual release procedure for the package. The folder gets a README, an AGENTS.md and its own CHANGELOG. At the root, STRUCTURE.md describes the imported layout and the decisions taken on the way in, and drops the import from what the move still owes. BUILD.md, CODE-STYLE.md and the dev-docs index point at the UI's pages, and agents are kept out of the UI's build output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
| export function matchSticky(pattern: RegExp, text: string, pos: number): RegExpExecArray | null { | ||
| pattern.lastIndex = pos; | ||
|
|
||
| return pattern.exec(text); |
There was a problem hiding this comment.
The string case in this alert was real. a4e81e3 fixes it in the lexer: after one unterminated string, the lexer stopped rescanning from every later quote, and an 80,000-character input went from 2574 ms to 73 ms. The tokens are unchanged, and a new test in tests/lexer/lexer.test.ts pins them.
The rest of the alert stays because CodeQL treats matchSticky as a scan over every start position. Every pattern passed to it has the y flag, so one exec tries only lastIndex, and the lexer calls it once per position and then moves past the match. Timed on a4e81e3, with CodeQL's own input shapes, at 20,000 and then 80,000 repetitions:
| Input | 20k | 80k |
|---|---|---|
"\a + \"\a × n |
70 ms | 190 ms |
A × n |
0 ms | 1 ms |
0 × n |
0 ms | 0 ms |
' + '& × n |
42 ms | 102 ms |
_ × n |
0 ms | 0 ms |
4× the input takes about 2.5–3× the time, so all of these are linear. I'm leaving this thread open: a false-positive dismissal is a call for a maintainer with code-scanning access.
Generated by Claude Code
There was a problem hiding this comment.
A correction to my reply above, thanks to Adrian's review. The tokens are unchanged except in one case: a backslash right before a line break inside an unterminated string. RE_STRING's . does not match a line break, so in ="a\⏎"b" a later quote used to start a closed string. It's now an error, and ef76392 pins that in a test. The timings and the false-positive reasoning above still hold.
Generated by Claude Code
CodeQL flagged them as polynomial on uncontrolled input, and each one was: on 40,000 to 80,000 characters of crafted text they took 0.3 to 2.6 seconds. - parseCellInput: `\d+\.?\d*` can split a run of digits many ways; `\d+(?:\.\d*)?` accepts the same strings in one. - fillColor: the lazy hue group and `\s*` before the alpha both matched spaces. The group now runs up to the slash and is trimmed, as before. - The lexer rescanned to the end of the text from every quote after an unterminated string. When a string fails to close from one quote, it fails from every later quote too, since each of those sits inside the first scan as an escaped quote, so the lexer now stops trying. The tokens and results are unchanged; new tests pin them, and passed before the change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
|
License Compliance (FOSSA) reports "2 issues found" on 62f8af5. The check passed on #1757's head, so this PR introduces them. I can't see which packages FOSSA flags: its dashboard isn't reachable from my environment. Someone with FOSSA access needs to look. Every package this PR adds is a development dependency. The published
If FOSSA flags Generated by Claude Code |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperformula-docs | 34d6ef9 | Commit Preview URL Branch Preview URL |
Oct 21 2026, 10:23 AM |
The package exported src/index.ts under the `development` condition. webpack and Vite enable that condition by default in dev mode, so another project's dev build loaded the TypeScript source: webpack 5 failed with "Can't resolve './formulaBuilder'". The condition is now `hyperformula-ui-source`, which only this repository's tsconfig and demo enable. Consumers always get dist/; the demo and the end-to-end suite still run against the source without a build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
formula-builder's agent skills did not come over with the import. Their rules now live in hyperformula-ui/dev-docs/; this adds the pieces that route agents to them, in this repository's format. - hyperformula-ui-dev: the entry-point skill for work in hyperformula-ui/, so agents load the UI's conventions rather than the engine's. - hyperformula-ui/dev-docs/REVIEWING.md: what to check in a UI change, carrying over formula-builder's reviewer agent. That means the core's invariants, plus the public surface outside TypeScript: the CSS names, the peer range and the exports map. - hyperformula-code-review routes a review to the REVIEWING.md and CODE-STYLE.md of the part of the repository the diff touches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
Performance comparison of head (34d6ef9) vs base (dd3e92b) |
adrianspdev
left a comment
There was a problem hiding this comment.
Verified locally on 365e835d8 after a fresh npm ci: build, stylesheet and DOCS.md regenerate clean, Biome clean in all four UI workspaces, typecheck fan-out passes without a UI dist/, 1072 unit tests pass, tarball and licence gate as described, all Markdown links resolve, no engine package changed version in the lockfile.
Two checks stay red and need a maintainer: CodeQL alert #82 is a false positive to dismiss (the timings in the existing thread hold up; I reproduced them), and FOSSA needs someone with dashboard access.
Comments below are small; none blocks on the author's side.
Reviewed with Claude Code
- The tarball no longer ships dist/.tsbuildinfo, the incremental build cache tsc writes next to the declarations. - CI fails on a stale DOCS.md, the same way as on a stale stylesheet. - rspack.base.mjs drops its tsx option, which only the React adapters used. - The core's README says hyperformula is an optional peer, and what is off without it. - @hfe-demo/shared exports datasets.ts plainly. Its source condition pointed at the same file as the default, and nothing imported its shared.css export; the demo serves that file through a symlink. - A test pins the one input whose tokens the unterminated-string change did alter: a backslash before a line break. `.` does not match a line break, so a later quote can start a closed string there; it is now an error, as the quotes after any other unterminated string are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
adrianspdev
left a comment
There was a problem hiding this comment.
Second pass, from integrating this head into the Handsontable plugin and walking the editor-only demo and the plugin's formula bar by hand in Chromium, WebKit and Firefox. One blocking item: the package's single innerHTML sink breaks grid construction under a Trusted Types policy, which Handsontable supports and tests. The rest are design and demo points.
For a maintainer, not the author: CodeQL alert #82 on lexer/matchers.ts:26 is a false positive, the timings in its thread hold up, and it needs dismissing. FOSSA is green on this head.
Reviewed with Claude Code
| }); | ||
| } | ||
|
|
||
| export const portfolioMeta: ScenarioMeta = { |
There was a problem hiding this comment.
nit: 288 lines, and the one remaining demo imports two functions from this file. The five scenario datasets from here down, the e2e framework-by-adapter matrix in e2e/tests/_shared/, and the shared tsconfig.*.json, rspack.base.mjs and vitest.base.ts all serve a single package now. Trim them to what the demo uses, or name the planned packages in dev-docs/STRUCTURE.md so the generality has a reason on record.
There was a problem hiding this comment.
acf31eb trims datasets.ts to what the demo uses: the sample sheet, the named expressions, buildHyperFormula, formatResult and evaluateFormula. The scenario datasets are gone. The e2e matrix was already cut to the one js/basic route in the trim commit.
I've kept the shared configuration:
tsconfig.base.jsonis extended by all four workspaces.rspack.base.mjs,vitest.base.tsandtsconfig.package.jsonserve only the core today. Folding them into it would change paths that its scripts andSPEC.mdrely on, for no behaviour gain.
No further UI packages are planned on record, so I haven't named any in STRUCTURE.md. If you'd rather fold the core-only files into packages/core/, say so and I'll do it.
Generated by Claude Code
- Icons are built with createElementNS from data in ui/icons.ts instead of being parsed from markup through innerHTML, the package's only HTML sink. Under a host's Trusted Types policy that assignment throws, so a Handsontable grid with the plugin did not render at all. The unused SELECT_ARROW_ICON goes. - The function help popup renders the "Learn more" link only for http and https URLs. A custom function's docUrl could carry any scheme, javascript: included. - The demo evaluates the editor's engine form, so a formula with a // comment computes instead of showing an error, and prints errors in spreadsheet spelling (#DIV/0!), from DetailedCellError.value. - The demo's datasets file keeps only what the demo uses, and the demo's helper folder is renamed from shared/ to helpers/, apart from the @hfe-demo/shared package. - TESTING.md describes the suite as it is: a file per module or per behaviour. CODE-STYLE.md and REVIEWING.md record the no-HTML-sink rule and the URL check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
Haxikowy
left a comment
There was a problem hiding this comment.
Three points with no line in the diff:
script/release/release.sh:659deletes only the root andhyperformula/node_modulesbefore regenerating the lockfile, so stalehyperformula-ui/**/node_modulesget written into the engine's release lockfile. Step 5'snpm run testnow also runstest:ui, while the comment at :666 still says lint, unit and browser tests.dev-docs/DEFINITION-OF-DONE.md:30-35lists only engine checks, but the newhyperformula-ui-devskill sends UI work there. Add a line forbuild:ui,typecheckandtest:ui.npm dedupe --dry-runhoists@biomejs/biome@2.4.16to the root and removes four 48 MB copies from the lockfile.
- Editor size: the height cap never exceeds the clipping ancestor's clientHeight, so an ancestor that scrolls the editor up cannot grow it. The bar shows its mount before attaching the editor, so the first cap lands before focus() can scroll an ancestor to the caret. - Formula bar: the vertical padding moves from the formula cell onto the overlay and textarea, and the cell loses its end padding. The idle view and a one-line capped editor are now the same height, and the capped scroll port spans the whole cell. - A bar-initiated edit opens scrolled to the first line, with the caret at the end, matching the idle view (FormulaEditor.scrollToStart). - New --hfe-scrollbar-width token (default thin) for the capped editor and popup lists; the bar editor uses --hfe-formula-bar-scrollbar-width (default auto). - New icons option (IconsOptions, keyed by IconName) on FormulaBuilder and FormulaEditor: element factories that replace the close, externalLink, namedExpression and function glyphs. No markup strings, so no HTML sink. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
…ery consumer - exports: the hyperformula-ui-source condition comes before types, since TypeScript takes the first match; this repository's typecheck now reads src/ under the condition, as SPEC.md says. - Declarations: scripts/addDeclarationExtensions.mjs adds .js to relative imports in the emitted .d.ts files, so node16/nodenext consumers resolve them instead of failing with TS2834 or, under skipLibCheck, typing every export as any. A new check:types script runs attw on the packed package, and the verify job runs it. - Peer range back to hyperformula ^3.0.0: the catalog already falls back on engines without getAvailableFunctions, and Handsontable allows ^3.0.0. - The demo depends on hyperformula-ui "*", so a version bump in the release steps does not break npm install. - DOCS.md ships in the tarball, so its links to ARCHITECTURE.md and the demo are absolute GitHub URLs. - Biome is hoisted to one root copy in the lockfile; no other package moves. - release.sh also deletes the hyperformula-ui workspaces' node_modules before regenerating the lockfile, and describes what npm run test runs. - DEFINITION-OF-DONE.md lists the hyperformula-ui gate. ARCHITECTURE.md, SPEC.md and KEYBOARD-SHORTCUTS.md describe the grid adapters as external examples, and RELEASE.md runs check:types before publishing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe
|
@Haxikowy, here is how 34d6ef9 handles the three points in your review summary:
Generated by Claude Code |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1832 +/- ##
========================================
Coverage 97.28% 97.28%
========================================
Files 207 207
Lines 16218 16218
Branches 3556 3588 +32
========================================
Hits 15777 15777
Misses 433 433
Partials 8 8 🚀 New features to boost your workflow:
|
…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
Brings the formula builder's core into the monorepo as the
hyperformula-uipackage, 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:The adapter packages, the other demos and their e2e specs stayed behind, since they need the adapters.
Decisions:
developsquash-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.catalog:andworkspace:*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.hyperformula-ui,GPL-3.0-only.prepackcopies the rootLICENSE.txtin, as it does for the engine. The peer range ishyperformula ^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.hyperformula-ui/. Biome, no inline comments, and the.hfe-*/--hfe-*prefix are written down inhyperformula-ui/dev-docs/CODE-STYLE.md. The CSS names are unchanged, so the Handsontable plugin's e2e selectors keep working.--workspace=hyperformula-uialso matches workspaces by folder, so every script and doc nameshyperformula-ui/packages/core. The licence gate lists workspaces by path and drops each one from its own report by package name.bundle-allfirst.src/index.tsunderdevelopment, which webpack and Vite enable by default in dev mode, so a webpack 5 dev build of a project using the package failed withCan't resolve './formulaBuilder'. The condition is nowhyperformula-ui-source, which only this repository's tsconfig and demo enable. It comes beforetypes, because TypeScript takes the first match. With the packed tarball, webpack dev and production builds of a consumer project both pass.node16/nodenext.tscemits extensionless relative imports. Anodenextconsumer then got TS2834 or, underskipLibCheck,anyfor every export.scripts/addDeclarationExtensions.mjsnow adds.jsto them after the build, and a newcheck:typesstep runsattwon the packed package in CI.hyperformula-ui/dev-docs/. A newhyperformula-ui-devskill routes there.hyperformula-ui/dev-docs/REVIEWING.mdcarries formula-builder's reviewer checks, andhyperformula-code-reviewnow sends UI diffs to it.parseCellInput, infillColor, 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.parseCellInputandfillColornow 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.innerHTML, which throws under a host's Trusted Types policy (require-trusted-types-for 'script'), so no grid would render. Icons are now data inui/icons.ts, built withcreateElementNS; nothing insrc/writesinnerHTML,outerHTMLorinsertAdjacentHTML. A test makes theinnerHTMLsetter throw and checks icons still build.docUrlreacheshrefonly with anhttp:orhttps:protocol, so ajavascript:URL is never rendered.clientHeight.focus()can scroll an ancestor.auto, through the new--hfe-scrollbar-widthand--hfe-formula-bar-scrollbar-widthtokens.iconsoption takes element factories that replace the four built-in glyphs; there are no markup strings, so no HTML sink.Root changes:
workspacesgains the UI's members.typecheck(fan-out),build:ui,dev:ui,test:ui,test:e2e.testnow also runstest:ui.hyperformula-ui.yml, runs two jobs:verify(build, stale-stylesheet and stale-DOCS.mdchecks, lint, typecheck, unit tests,npm pack --dry-run,attw) ande2e.release.shalso deletes the UI workspaces'node_modulesbefore regenerating the lockfile.DEFINITION-OF-DONE.mdlists the UI's gate.dev-docs/STRUCTURE.mdrecords the import as done and lists what changed from the plan;BUILD.md,CODE-STYLE.md,CODE-REVIEW.md,AGENT-TOOLING.mdand 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:npm cinpm run build:ui, thengit diff --exit-code -- 'hyperformula-ui/**/cssText.ts'npm run lintnpm run test:uinpm run bundle-all, thennpm run typechecknpm run test:e2enpm pack --dry-run --workspace=hyperformula-ui/packages/coreLICENSE.txt,README.md,DOCS.md,package.json,dist/without its.tsbuildinfo,src/; 288 filesnpm run check:types --workspace=hyperformula-ui/packages/coreattw:node16 (from ESM)andbundlergreennpm run check:licensesnpm run test:jestThen I installed the packed tarball and
hyperformula@^3.4.0in an empty project:import { FormulaBuilder } from "hyperformula-ui"typechecks under strict TypeScript 5, and the module loads in Node.I also linked the built package into a
module: nodenextproject, withoutskipLibCheck. There,const x: number = FormulaBuildernow fails with TS2322, the expected error. Before the declaration fix, the same project got TS2834 on every import indist/index.d.ts.For the regex fixes, I timed each function on crafted input of 40,000 to 80,000 characters, before and after:
parseCellInputfillColorFor the release steps,
npm version 0.1.0-next.0 --workspace=hyperformula-ui/packages/core --no-git-tag-versionfollowed bynpm installinstalls 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:
--hfe-editor-max-lines: 1: idle view / capped editor heightoverflow-x: autoslot: editor height / slot scrollEvery 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 inhyperformula-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/corebecomeshyperformula-uiin the Handsontable plugin PR (HOT-15500: Add the FormulaBuilder plugin built on hyperformula-ui 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.mdrecords.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-uitarball.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
Related issues
Checklist
hyperformula-ui/CHANGELOG.md; the engine's changelog is unchanged.dev-docs/pages this change affects – or none needed it.🤖 Generated with Claude Code
https://claude.ai/code/session_013iRJc4HBUpeRFDy1TxBzWe