Releases: tafia/calamine
v0.35.0 - 2026-5-10
Added
-
Added
has_1904_epoch()method to Xls/Xlsx/Xlsb structs to allow the user to
determine which date epoch is in use by Excel. PR #630. -
Made
RowDeserializerpublic to allow a customDeserializeSeed.
PR #635.
Changed
-
Added deserialization examples. PR #649.
-
Performance improvements:
Fixed
-
Fixed issue with redundant
<v>value in inlineStr XLSX cells. Issue #633. -
Fixed issue when processing XLSX files to ignore namespace prefix when reading
relation ids. Previously accepted onlyr:andrelationships:prefixes.
Issue #634. -
Fixed XLSX issue where rich text
<r>elements were ignored after initial
plain<t>elements. Issue #636. -
Fixed XLS issue where date format was ignored for formula values.
Issue #640. -
Fixed XLSX shared formula expansion corrupting function names. The
replace_cell_names()function treatedLOG10as a cell reference (column
LOG, row 10). Issue #644. -
Fixed XLSX
inlineStrissue for elements that contain CDATA. Issue #648. -
Fixed panic when parsing formulas in XLS BIFF5 workbooks.The
parse_formula
function decoded the non-3D PtgRef, PtgArea, PtgRefErr, and PtgAreaErr tokens
assuming BIFF8 sizes. PR #643. -
Fixed XLS panic with unsupported formula functions. Handle unsupported XLS
function ids as formula parse errors instead of indexing past the function
table. Issue #646.
What's Changed
- perf: optimise
<v>cell value parsing by @alexander-beedie in #622 - perf: optimise cell reference parsing by @alexander-beedie in #623
- Allow (and ignore) v nodes in an inlineStr cell. by @aquasync in #631
- lib: expose 1900/1904 epoch for xls/xlsx/xlsb files by @jmcnamara in #630
- Use namespace-aware XML parsing for workbook. by @aquasync in #632
- de: make RowDeserializer public to allow a custom DeserializeSeed by @jmcnamara in #635
- xlsx: fix ignoring rich text after initial plain by @aquasync in #637
- xls: fix date format ignored for formula values by @aquasync in #641
- xls: fix panic parsing formulas in BIFF5 workbooks by @mogery in #643
- xlsx: fix shared formula expansion corrupting function names by @cilladev in #645
- xlsx: fix inlineStr elements that contain CDATA by @jmcnamara in #650
- docs: add deserialize examples by @jmcnamara in #649
New Contributors
- @aquasync made their first contribution in #631
- @mogery made their first contribution in #643
- @cilladev made their first contribution in #645
Full Changelog: v0.34.0...v0.35.0
v0.34.0 - 2026-03-07
Changed
-
Updated benchmarking to uses the
criterion.rscrate. This removed the
requirement for using+nightlyforcargo bench. PR #620. -
Updated dependencies for release 0.34.0:
quick-xml: 0.38 -> 0.39. PR #617
-
Refactored CFB to resolve special case in the caller of
fn get_chain.
PR #615. -
Performance improvements:
Fixed
-
Fixed capitalized workbook/book stream handling in XLS files. PR #618.
-
Fixed issue where BIFF5
LblandExternSheetrecords were incorrectly
parsed as BIFF8. PR #613. -
Fixed VBA
check_variable_recordto handle optional records. PR #614. -
Fixed premature error when BIFF version is not Biff8 in XLS files. PR #619.
-
Fixed issue where XLSX cells with an empty
<v/>value returned a string with
index 0 instead of an Empty value. Issue #607. -
Fixed millisecond rounding issue where 1000 milliseconds weren't rounded up to
the next second. Issue #602, PR #605.
What's Changed
- ci: add wasm32-unknown-unknown compilation check by @Goldziher in #604
- datetime: fix millisecond rounding issue by @jmcnamara in #605
- perf: cache path and attr lookups, reuse buffers, minimise allocs by @alexander-beedie in #606
- perf: ensure
fast_float2used at all float-parsing call sites by @alexander-beedie in #608 - Fix: t=s cells with empty return strings[0] instead of Empty by @omarirfa in #610
- perf: optimise
xlssector chain reads by @alexander-beedie in #609 - fix(xls): do not prematurely error when biff != Biff8 by @sftse in #619
- deps: bump quick-xml from 0.38 to 0.39 by @jqnatividad in #617
New Contributors
- @Goldziher made their first contribution in #604
- @omarirfa made their first contribution in #610
Full Changelog: v0.33.0...v0.34.0
v0.33.0 - 2026-02-04
Added
- Added support for reading data from Pivot Tables, which involves reading data
from the internal Pivot Cache. PR #559.
Changed
-
Update dependencies for release 0.33.0:
zip: 4.2.0 -> 7.0.atoi_simd: 0.16 -> 0.17
Fixed
-
Fixed potential memory exhaustion issue in ODS files that could be triggered
via repeated empty rows/columns.The fix adds limits to prevent memory exhaustion from malicious ODS files that
declare billions of repeated cells viatable:number-rows-repeatedand
table:number-columns-repeated attributes.The change adds the following protection layers:
- Add cap for columns per row at
MAX_COLUMNS(16,384). - Add cap for total row repeats at
MAX_ROWS(1,048,576). - Add cap for total cells at
MAX_CELLS(100 million) inget_range().
These limits match XLSX's existing row/column limits and prevent a 7KB
malicious file from attempting to allocate memory for 17+ billion cells.When MAX_CELLS is exceeded, return
OdsError::CellLimitExceededinstead
of silently returning an empty range. This ensures callers are properly
informed of truncation rather than receiving silent data loss. - Add cap for columns per row at
-
Fixed an issue where XLSX files with tables that had the internal
insertRow
attribute set returned aDimensionsobject where the end row was less than
the start row. This caused an assert/panic when trying to create aRange
object to return the table range. Issue #589. -
Fixed an issue with XLSX files where worksheet tables used the unusual, but
valid, absolute reference system like"/xl/tables/table1.xml"instead of the
common Excel generated relative system"../tables/table1.xml". Issue #587.
What's Changed
- xlsx: fix two table issues by @jmcnamara in #588
- ods: fix DoS via repeated rows/columns (issue #594) by @withzombies in #596
- feat: reading PivotTable (PivotCache) by @siqpush in #559
New Contributors
- @withzombies made their first contribution in #596
- @siqpush made their first contribution in #559
Full Changelog: v0.32.0...v0.33.0
v0.32.0 - 2025-11-20
Changed
-
Refactored VBA reading functions to be on-demand for better performance.
-
Simplified
vba_project()function return type fromOption<Result<T>>to
Result<Option<T>>for more idiomatic error handling. This is a breaking
change.
Fixed
-
Fixed out-of-memory vulnerabilities in XLS file parsing by bounding
allocations. -
Fixed and extended support for XLSX shared formulas with handling of ranges,
absolute references, and column/row ranges in XLSX files. -
Fixed XLSX issue with missing shared string sub-elements. Also improved error
messages for shared string parsing issues. -
Fixed acceptance of XLS
XLUnicodeRichExtendedStringrecords without reserved
tags. -
Fixed various edge cases in XLS handling that could lead to parsing errors.
What's Changed
- typos: update list for latest version by @jmcnamara in #569
- Accept XLUnicodeRichExtendedString without reserved tag by @sftse in #571
- Oom alloc by @sftse in #575
- chore: applied some minor clippy lint suggestions by @jqnatividad in #578
- Fix issue with empty si element in xlsx shared string element by @jmcnamara in #576
- Delay reading of vba project by @sftse in #574
- Fix dragged formula multiple axes by @louisdewar in #566
- Fix absolute shared formulas by @louisdewar in #568
- refactor: dont need ref and ref mut by @sftse in #580
- XLSX: support replacing row/column ranges by @louisdewar in #582
New Contributors
- @louisdewar made their first contribution in #566
Full Changelog: v0.31.0...v0.32.0
v0.31.0 - 2025-09-27
Changed
-
Upgraded
quick-xmlto v0.38. This was a significant change inquick-xml
relative to v0.37 and required changes incalamineto entity handling. It
also fixes EOL handling which may lead to regressions incalamine
applications if they expected to see"\r\n"in strings instead of the
correct (for XML and Excel)"\n".For most users these will be inconsequential changes but please take note
before upgrading production code. -
Renamed the
"dates"feature flag to"chrono"since there is now some
native date handling features without"chrono". The"chrono"flag is more
specific and accurate. The"dates"flag is still supported as before for
backward compatibility.This change also made some datatype methods related to date/times available in
the"default"feature set. They were previously hidden unnecessarily behind
the "dates/"chrono" flag.
Added
- Added a conversion function to
ExcelDateTimeto convert the inner serial
Excel datetime to standard year, month, date, hour, minute, second and
millisecond components. Works for 1900 and 1904 epochs.
Fixed
-
Fixed issue where Excel xlsx shared formula failed if it contained Unicode
characters. Issue #553. -
Fixed issue where Excel XML escapes in strings weren't unescaped. For example
"_x000D_" -> "\r". Issue #469.
What's Changed
- fix: xlsx cell name handling for non-ASCII characters by @hayandev in #552
- xls: add simple Debug trait for Record struct by @jmcnamara in #554
- clippy: fix clippy warnings by @jmcnamara in #555
- clippy: ensure clippy is installed in github action by @jmcnamara in #564
- xml: make parsing changes for quick-xml v0.38 by @jmcnamara in #561
- datetime: add native conversion from excel datetime by @jmcnamara in #546
New Contributors
Full Changelog: v0.30.1...v0.31.0
v0.30.1 - 2025-09-06
Added
- Added
DebugandClonetoTablefor easier debugging. PR #547.
Fixed
- Fixed issue Issue #548 for xls files where the
SSTrecord had an incorrect
number of unique strings.
What's Changed
- feat:
#[derive(Debug, Clone)]onTableby @lukapeschke in #547 - xls: fix issue with incorrect SST record by @jmcnamara in #549
Full Changelog: v0.30.0...v0.30.1
v0.30.0 - 2025-08-07
Changed
-
Unpinned the
zip.rsdependency from v4.2.0 to allow cargo to choose the
correct version for the user's rustc version.The Rust MSRV was bumped to v1.75.0 (which it should have been for for
zip.rscompatibility in previous releases).See the discussion at Issue #527.
What's Changed
- small language changes to README.md by @mhogervo in #537
- Fix typos and add typos GH Actions workflow to prevent future typos by @jqnatividad in #539
- unpin zip and using MSRV-aware in CI by @Dirreke in #542
New Contributors
Full Changelog: v0.29.0...v0.30.0
v0.29.0 - 2025-07-17
Added
- Add additional documentation and examples for the
Range,Cell,XlsxError
andTablestructs, andXlsxTable and Merge methods. Issue #459
Changed
-
Pin zip.rs to v4.2.0.
The current latest release of
zip.rs, v4.3.0, requires a MSRV of v1.85.0.
This release pinszip.rsto v4.2.0 to allow users to maintain a MSRV of
v1.73.0 for at least one more release. It is likely thatcalaminev0.30.0 or
later will move back to the latestzip.rsv4.x and require rustc v1.85.0.
Fixed
- Fixed issue where XLSX files had Windows style directory separators for
internal paths instead of the required Unix style separators. Issue #530. - Fixed several XLS parsing issues which could lead to out-of-memory errors. PR
#525. - Fixed numeric underflow in
Xlsx::from_sparse()and also ensured that the
associatedRangeof cells would be in row-column order. PR #524.
What's Changed
- Fix wrong comment by @YichiZhang0613 in #518
- docs: fixes and additions by @jmcnamara in #519
- Refactors by @sftse in #520
- Add GitHub issue templates by @jmcnamara in #523
- Numeric underflow by @sftse in #524
- More OOM fixes by @sftse in #525
- Some Changelog improvements by @jmcnamara in #522
- Pin zip.rs to v4.2.0 (for now) by @jmcnamara in #532
- Add tests and fixes for issues with Excel packaging part names by @jmcnamara in #531
- Documentation updates by @jmcnamara in #526
- docs: add documentation to the example files by @jmcnamara in #534
New Contributors
- @YichiZhang0613 made their first contribution in #518
- @jmcnamara made their first contribution in #519
Full Changelog: v0.28.0...v0.29.0
v0.28.0 - 2025-06-19
v0.27.0 - 2025-04-22
Added
- (xls): add one more
Errorvariant related to formatting.
Changed
- Bump dependencies.
Fixed
- (xls): Invalid formats parsing.
- Always parse string cell as string.
- Pin zip crate to 2.5.
- (xlsx): check 'closing' tag name with more prefixes.
What's Changed
- README.md: (misc) Fix example by @simnalamburt in #475
- build(deps): bump quick-xml to 0.36 by @PrettyWood in #473
- fix: always parse a string cell as string by @PrettyWood in #472
- perf: accelerated datatype conversion by @jqnatividad in #482
- Bump to quick-xml 0.37 by @jqnatividad in #477
- Pin zip crate to 2.5.* by @prophittcorey in #497
- read_string: fix comparison with 'closing' tag name by @falconandy in #490
- Malformed format by @sftse in #479
New Contributors
- @simnalamburt made their first contribution in #475
- @falconandy made their first contribution in #490
Full Changelog: v0.26.1...v0.27.0