Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .changeset/error-cells.md

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# xls-reader

## 0.5.0

### Minor Changes

- [#42](https://github.com/zanlucathiago/xls-reader/pull/42) [`8249bd0`](https://github.com/zanlucathiago/xls-reader/commit/8249bd003bbc9cc767ede1e23a7dba4fae5408e9) Thanks [@zanlucathiago](https://github.com/zanlucathiago)! - Return Excel error cells as a typed `CellError` instead of collapsing them to
`null`. A cell holding `#DIV/0!`, `#N/A`, `#REF!`, `#VALUE!`, `#NAME?`, `#NUM!`,
or `#NULL!` (whether a literal error or a formula's cached error result) now comes
back as `new CellError(code)` — distinct from a blank cell (`null`) and from a
text cell that happens to contain that string. Check `cell instanceof CellError`
and read `cell.code`; in JSON it serializes to `{ "code": "#DIV/0!" }`. Exports
the new `CellError` class and `ExcelErrorCode` type.

Behavior change: error cells were previously `null`. If you relied on that, treat
a `CellError` as empty explicitly.

## 0.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xls-reader",
"version": "0.4.0",
"version": "0.5.0",
"description": "Zero-dependency .xls (BIFF8 / Excel 97-2003) reader for Node and the browser — a lightweight SheetJS alternative that returns each worksheet as typed cells.",
"keywords": [
"xls",
Expand Down