javascript-excel 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/import.cjs +1 -1
- package/dist/import.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{pipeline-CMealW1i.js → pipeline-BNhGRJcx.js} +1 -1
- package/dist/{pipeline-Dc15gn1t.cjs → pipeline-DLYtAkPU.cjs} +1 -1
- package/dist/{read-CFQ09LlL.js → read-CFmZioBG.js} +300 -55
- package/dist/{read-DYDDLxUE.cjs → read-D5Gz4ph8.cjs} +300 -55
- package/dist/read.cjs +1 -1
- package/dist/read.d.cts +35 -1
- package/dist/read.d.ts +35 -1
- package/dist/read.js +1 -1
- package/dist/worker.cjs +2 -2
- package/dist/worker.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -179,7 +179,7 @@ const bytes = await excel.write(workbook, { signal: controller.signal, onProgres
|
|
|
179
179
|
- **Reader:** `.xlsx`, `.xlsm`, `.xltx` and `.xltm`, including ISO 29500 Strict files.
|
|
180
180
|
- Reads values, shared, inline and rich strings, and formula text with cached values (shared formulas expanded).
|
|
181
181
|
- Styles come back as shared frozen objects. Merges, column widths and row heights, views and panes, print setup, hyperlinks, defined names and document properties are read too.
|
|
182
|
-
- **Untrusted files:** bounded by limits on size, zip entries, compression ratio, XML depth and token length, cells and shared strings. A `DOCTYPE` is rejected, nothing is ever fetched or executed, and file content never becomes an object key.
|
|
182
|
+
- **Untrusted files:** bounded by limits on size, zip entries, compression ratio, XML depth and token length, sheets, cells and shared strings. A `DOCTYPE` is rejected, nothing is ever fetched or executed, and file content never becomes an object key.
|
|
183
183
|
- **Rejected formats:** `.xls`, `.xlsb`, `.ods` and encrypted files throw `UNSUPPORTED_FORMAT`.
|
|
184
184
|
- **CSV:** RFC 4180 parsing with delimiter detection, BOM and CRLF/LF/CR handling, lenient or strict modes, and optional type inference. `readCsv` decodes bytes in any `TextDecoder` encoding. Serializing gives you quoting, a BOM for Excel, ISO dates and a formula-injection guard, which is on by default.
|
|
185
185
|
- **Datasets:** `fromDataset` and `fromDatasets` support `key`, `path` and function accessors, grouped headers, number formats, widths and a totals row. `toDataset` reads a sheet back into `{ columns, data }`.
|
package/dist/import.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_pipeline = require("./pipeline-
|
|
2
|
+
const require_pipeline = require("./pipeline-DLYtAkPU.cjs");
|
|
3
3
|
const require_warnings = require("./warnings-CJPiDqei.cjs");
|
|
4
4
|
exports.applyMapping = require_pipeline.applyMapping;
|
|
5
5
|
exports.coerceColumns = require_pipeline.coerceColumns;
|
package/dist/import.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as mapColumns, c as parseNumber, i as applyMapping, n as coerceColumns, o as detectHeader, r as inferColumnTypes, s as parseDate, t as importDataset } from "./pipeline-
|
|
1
|
+
import { a as mapColumns, c as parseNumber, i as applyMapping, n as coerceColumns, o as detectHeader, r as inferColumnTypes, s as parseDate, t as importDataset } from "./pipeline-BNhGRJcx.js";
|
|
2
2
|
import { t as isDataLossWarning } from "./warnings-BPz1Ia3s.js";
|
|
3
3
|
export { applyMapping, coerceColumns, detectHeader, importDataset, inferColumnTypes, isDataLossWarning, mapColumns, parseDate, parseNumber };
|
package/dist/index.cjs
CHANGED
|
@@ -11,7 +11,7 @@ const require_numfmt = require("./numfmt-DwsnhZKe.cjs");
|
|
|
11
11
|
const require_address = require("./address-DZBHchLv.cjs");
|
|
12
12
|
// src/index.ts
|
|
13
13
|
/** Package version. Set from package.json by `npm run version-packages` (scripts/sync-version.mjs); a unit test checks it. */
|
|
14
|
-
const VERSION = "2.
|
|
14
|
+
const VERSION = "2.2.0";
|
|
15
15
|
exports.BUILTIN_NUM_FMTS = require_numfmt.BUILTIN_NUM_FMTS;
|
|
16
16
|
exports.CsvError = require_errors.CsvError;
|
|
17
17
|
exports.EnvironmentError = require_errors.EnvironmentError;
|
package/dist/index.d.cts
CHANGED
|
@@ -293,5 +293,5 @@ export declare function encodeRange(r: RangeAddress): string;
|
|
|
293
293
|
/** 'A1:C3' or 'A1' → range, normalised so start is top-left. */
|
|
294
294
|
export declare function decodeRange(ref: string): RangeAddress;
|
|
295
295
|
/** Package version. Set from package.json by `npm run version-packages` (scripts/sync-version.mjs); a unit test checks it. */
|
|
296
|
-
export declare const VERSION = "2.
|
|
296
|
+
export declare const VERSION = "2.2.0";
|
|
297
297
|
export { type AbortSignalLike, type Alignment, type AutoWidthOptions, type BinaryInput, type BlobLike, type BlobType, type Border, type BorderSide, type BorderStyle, type Cell, type CellAddress, type CellErrorValue, type CellInput, type CellTextOptions, type CellType, type CellValue, type Color, type ColorContext, type ColumnDef, type ColumnProps, type ColumnTotal, type ColumnWidth, type Dataset, type DatasetBlock, type DatasetOptions, type DatasetResult, type DateOptions, type DefinedName, type DocProperties, type DroppedWarnings, type ErrorCode, type ExcelErrorCode, type ExcelErrorOptions, type ExcelPartKind, type ExcelWarning, type ExcelWarningCode, type Fill, type Font, type GradientFill, type GroupColumn, type Hyperlink, type LeafColumn, type NumFmt, type PatternFill, type PatternType, type PrintSetup, type Progress, type RangeAddress, type RichText, type RichTextRun, type RowProps, type Sheet, type SheetNameProblem, type SheetView, type Style, type Theme, type ToDatasetOptions, type Workbook, type WriteOptions, XLSX_MIME, isDataLossWarning, toBlob, toUint8Array };
|
package/dist/index.d.ts
CHANGED
|
@@ -293,5 +293,5 @@ export declare function encodeRange(r: RangeAddress): string;
|
|
|
293
293
|
/** 'A1:C3' or 'A1' → range, normalised so start is top-left. */
|
|
294
294
|
export declare function decodeRange(ref: string): RangeAddress;
|
|
295
295
|
/** Package version. Set from package.json by `npm run version-packages` (scripts/sync-version.mjs); a unit test checks it. */
|
|
296
|
-
export declare const VERSION = "2.
|
|
296
|
+
export declare const VERSION = "2.2.0";
|
|
297
297
|
export { type AbortSignalLike, type Alignment, type AutoWidthOptions, type BinaryInput, type BlobLike, type BlobType, type Border, type BorderSide, type BorderStyle, type Cell, type CellAddress, type CellErrorValue, type CellInput, type CellTextOptions, type CellType, type CellValue, type Color, type ColorContext, type ColumnDef, type ColumnProps, type ColumnTotal, type ColumnWidth, type Dataset, type DatasetBlock, type DatasetOptions, type DatasetResult, type DateOptions, type DefinedName, type DocProperties, type DroppedWarnings, type ErrorCode, type ExcelErrorCode, type ExcelErrorOptions, type ExcelPartKind, type ExcelWarning, type ExcelWarningCode, type Fill, type Font, type GradientFill, type GroupColumn, type Hyperlink, type LeafColumn, type NumFmt, type PatternFill, type PatternType, type PrintSetup, type Progress, type RangeAddress, type RichText, type RichTextRun, type RowProps, type Sheet, type SheetNameProblem, type SheetView, type Style, type Theme, type ToDatasetOptions, type Workbook, type WriteOptions, XLSX_MIME, isDataLossWarning, toBlob, toUint8Array };
|
package/dist/index.js
CHANGED
|
@@ -10,5 +10,5 @@ import { n as isDateFormat, t as BUILTIN_NUM_FMTS } from "./numfmt-Ci_oW11p.js";
|
|
|
10
10
|
import { a as decodeRange, c as encodeRange, i as decodeCol, n as MAX_ROWS, o as encodeCell, r as decodeCell, s as encodeCol, t as MAX_COLS } from "./address-DUn7-5OS.js";
|
|
11
11
|
// src/index.ts
|
|
12
12
|
/** Package version. Set from package.json by `npm run version-packages` (scripts/sync-version.mjs); a unit test checks it. */
|
|
13
|
-
const VERSION = "2.
|
|
13
|
+
const VERSION = "2.2.0";
|
|
14
14
|
export { BUILTIN_NUM_FMTS, CsvError, EnvironmentError, ExcelError, FormatError, LimitError, MAX_COLS, MAX_ROWS, VERSION, ValidationError, XLSX_MIME, cellText, dateToSerial, decodeCell, decodeCol, decodeRange, encodeCell, encodeCol, encodeRange, fromDataset, fromDatasets, isDataLossWarning, isDateFormat, isExcelError, mergeStyles, resolveColor, sanitizeSheetName, serialToDate, toBlob, toDataset, toUint8Array, validateSheetName };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as readCsv } from "./csv-CrWF7JS1.js";
|
|
2
2
|
import { i as toDatasetDetailed } from "./dataset-BLo9CwB-.js";
|
|
3
3
|
import { a as LimitError, i as FormatError, o as ValidationError } from "./errors-CvGlfw0E.js";
|
|
4
|
-
import { i as readSheetNames, n as detectFormat, r as read } from "./read-
|
|
4
|
+
import { i as readSheetNames, n as detectFormat, r as read } from "./read-CFmZioBG.js";
|
|
5
5
|
import { a as toBytes, i as checkMaxWarnings, n as parseIsoDate } from "./infer-DcUyZ1T-.js";
|
|
6
6
|
import { a as decodeRange } from "./address-DUn7-5OS.js";
|
|
7
7
|
import { t as isoDate } from "./iso-date-CXnn-9mT.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_csv = require("./csv-DzGOFyHs.cjs");
|
|
2
2
|
const require_dataset = require("./dataset-DzoMeOG1.cjs");
|
|
3
3
|
const require_errors = require("./errors-DOPrrGS4.cjs");
|
|
4
|
-
const require_read = require("./read-
|
|
4
|
+
const require_read = require("./read-D5Gz4ph8.cjs");
|
|
5
5
|
const require_infer = require("./infer-BniOucP6.cjs");
|
|
6
6
|
const require_address = require("./address-DZBHchLv.cjs");
|
|
7
7
|
const require_iso_date = require("./iso-date-3TY1OlGd.cjs");
|