Skip to content

docs(api): fix getAllSheetsSerialized/getRangeSerialized JSDoc for number cells (HF-219)#1693

Merged
sequba merged 2 commits into
developfrom
task/hf-219-getallsheets-serialized-docs
Jun 15, 2026
Merged

docs(api): fix getAllSheetsSerialized/getRangeSerialized JSDoc for number cells (HF-219)#1693
sequba merged 2 commits into
developfrom
task/hf-219-getallsheets-serialized-docs

Conversation

@marcin-kordas-hoc

@marcin-kordas-hoc marcin-kordas-hoc commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Fixes the getAllSheetsSerialized / getRangeSerialized JSDoc examples that wrongly implied numeric strings are serialized as numbers — serialization round-trips, preserving the exact input type. Mirrors #1654. Documentation-only (a single source file changed), so no CHANGELOG entry per the docs-only convention.


Note

Low Risk
Comment and example changes only; no runtime or serialization logic modified.

Overview
Documentation-only updates to JSDoc for getAllSheetsSerialized and getRangeSerialized in HyperFormula.ts.

The docs now state that non-formula cells keep the exact RawCellContent type they were set with (string '1' vs number 1), and the embedded examples were corrected so numeric literals are numbers in sample input/output instead of implying string digits are coerced to numbers on serialize.

Reviewed by Cursor Bugbot for commit 691b8b1. Bugbot is set up for automated code reviews on this repo. Configure here.

…r number cells (HF-219)

The JSDoc examples implied numeric strings are serialized as numbers
(e.g. input ['1', '2', '=A1+10'] producing [1, 2, '=A1+10']). In fact
serialization preserves the exact type each cell was set with: a string
'1' stays the string '1', and a number 1 stays the number 1. Fix the
getAllSheetsSerialized and getRangeSerialized examples and add a note
describing the type-preserving behavior. Docs-only; no CHANGELOG entry
per team rule.

Mirrors GitHub issue #1654.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

Deploy Preview for hyperformula-dev-docs ready!

Name Link
🔨 Latest commit 691b8b1
🔍 Latest deploy log https://app.netlify.com/projects/hyperformula-dev-docs/deploys/6a2fddbfc868be0008c78f96
😎 Deploy Preview https://deploy-preview-1693--hyperformula-dev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Performance comparison of head (691b8b1) vs base (d4195b5)

                                     testName |   base |   head | change
------------------------------------------------------------------------
                                      Sheet A | 492.78 | 499.54 | +1.37%
                                      Sheet B | 162.49 | 163.29 | +0.49%
                                      Sheet T | 146.19 | 144.38 | -1.24%
                                Column ranges | 474.12 |  477.7 | +0.76%
Sheet A:  change value, add/remove row/column |  15.83 |  16.03 | +1.26%
 Sheet B: change value, add/remove row/column | 136.09 | 138.57 | +1.82%
                   Column ranges - add column | 147.92 | 147.58 | -0.23%
                Column ranges - without batch | 453.07 | 442.28 | -2.38%
                        Column ranges - batch | 115.93 | 110.85 | -4.38%

@sequba sequba merged commit 72205bd into develop Jun 15, 2026
36 checks passed
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.16%. Comparing base (d4195b5) to head (691b8b1).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1693   +/-   ##
========================================
  Coverage    97.16%   97.16%           
========================================
  Files          176      176           
  Lines        15322    15322           
  Branches      3356     3387   +31     
========================================
  Hits         14887    14887           
- Misses         427      435    +8     
+ Partials         8        0    -8     
Files with missing lines Coverage Δ
src/HyperFormula.ts 99.73% <ø> (ø)

... and 5 files with indirect coverage changes

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

@sequba sequba deleted the task/hf-219-getallsheets-serialized-docs branch June 15, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants