xlsx-kit@0.3.0
Minor Changes
-
#32
87a0051Thanks @baseballyama! - Breaking:iterRows/iterValues(inxlsx-kit/worksheet) now
iterate rectangularly over the populated bounding box rather than
skipping empty rows and gaps.iterRowsyields
(Cell | undefined)[](one entry per[minCol, maxCol]position);
iterValuesyieldsCellValue[]withnullfilling the gaps.Default extent switches from
MAX_ROW/MAX_COL(the 1M × 16K sheet
limit) togetMaxRow(ws)/getMaxCol(ws)(the populated bounding
box). TheIterRowsOptions.valuesOnlyflag is removed — it was already
unread.Migration:
- Aggregation callers that want populated rows only:
[...iterRows(ws)].filter((row) => row.some((c) => c !== undefined)). - Cell-by-cell streaming over populated cells only: keep using
iterCells
(unchanged).
Closes #24.
- Aggregation callers that want populated rows only:
-
#31
9297c46Thanks @baseballyama! - ExtendcellValueAsString(inxlsx-kit/cell) with optional
dateFormat/emptyTextoverrides and add a sibling
cellValueAsPrimitivethat maps aCellValueto the most natural JS
primitive (string | number | boolean | Date | null) without forcing a
single target type. Closes #25. -
#30
78d04fdThanks @baseballyama! - AddworkbookToBuffertoxlsx-kit/node. One-shot Node-flavored helper
that returns aBufferdirectly, paralleling the existingfromBuffer
source. Closes #28.