xls-reader 0.1.2 → 0.1.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # xls-reader
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#30](https://github.com/zanlucathiago/xls-reader/pull/30) [`333f275`](https://github.com/zanlucathiago/xls-reader/commit/333f275aaad387bb550d7bc29074a6d342026f4f) Thanks [@zanlucathiago](https://github.com/zanlucathiago)! - Harden the parser against malformed and malicious `.xls` input. Fuzzing surfaced
8
+ inputs that could crash the process with a raw `RangeError` or exhaust memory
9
+ (OOM) instead of failing with `XlsError`; all now fail cleanly:
10
+
11
+ - Validate the CFB sector/mini-sector power-of-two shift (only 512/4096/64 are
12
+ legal) — an out-of-range shift produced a negative or huge sector size.
13
+ - Guard the DIFAT chain walk against self-loops that grew the FAT unbounded.
14
+ - Reject a negative/non-integer read offset in the byte reader.
15
+ - Enforce the BIFF8 sheet limits (65536 rows × 256 columns) so a corrupt cell
16
+ column can't size the dense grid into a hundreds-of-megabytes allocation.
17
+
18
+ Adds a seeded fuzz suite and deterministic regression vectors. No API change.
19
+
20
+ - [#28](https://github.com/zanlucathiago/xls-reader/pull/28) [`9e773c3`](https://github.com/zanlucathiago/xls-reader/commit/9e773c37571b605361b03056253249567e212c55) Thanks [@zanlucathiago](https://github.com/zanlucathiago)! - Build with tsdown (rolldown) instead of tsup, which is no longer maintained. No
21
+ API change and no runtime dependencies — the public `import`/`require` entry
22
+ points resolve exactly as before via the `exports` map. Internally the ESM
23
+ output is now `index.mjs` (was `index.js`); the CJS build is unchanged. This also
24
+ drops the `ignoreDeprecations` TypeScript workaround that tsup required.
25
+
3
26
  ## 0.1.2
4
27
 
5
28
  ### Patch Changes
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
  </p>
16
16
 
17
17
  <p align="center">
18
- <strong>English</strong> · <a href="./README.pt-BR.md">Português (BR)</a>
18
+ <a href="https://zanlucathiago.github.io/xls-reader/demo.html"><strong>Live demo</strong></a> · <a href="https://zanlucathiago.github.io/xls-reader/">Website</a> · <strong>English</strong> · <a href="./README.pt-BR.md">Português (BR)</a>
19
19
  </p>
20
20
 
21
21
  Runs in Node and the browser — it only needs `Uint8Array` / `DataView`. It ships
package/README.pt-BR.md CHANGED
@@ -15,7 +15,7 @@
15
15
  </p>
16
16
 
17
17
  <p align="center">
18
- <a href="./README.md">English</a> · <strong>Português (BR)</strong>
18
+ <a href="https://zanlucathiago.github.io/xls-reader/demo.html"><strong>Demo ao vivo</strong></a> · <a href="https://zanlucathiago.github.io/xls-reader/">Website</a> · <a href="./README.md">English</a> · <strong>Português (BR)</strong>
19
19
  </p>
20
20
 
21
21
  Roda no Node e no navegador — só precisa de `Uint8Array` / `DataView`. São