styled-exceljs 0.21.2 → 0.21.4

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
@@ -4,6 +4,30 @@ This log is intended to keep track of backwards-incompatible changes, including
4
4
  but not limited to API changes and file location changes. Minor behavioral
5
5
  changes may not be included if they are not expected to break existing code.
6
6
 
7
+ ## v0.21.4
8
+
9
+ * Restore applied OOXML table styles, including totals rows, banding, first and
10
+ last column emphasis, and differential-format overrides
11
+ * Preserve XLS/XLSX column-width and pixel conversions with the Office-compatible
12
+ fallback metric; ambiguous stored widths no longer rescale a worksheet
13
+ * Keep tolerant reads and writes compatible with legacy out-of-range merges;
14
+ `validateMerges:true` retains explicit strict validation
15
+ * Normalize CRLF and CR comment newlines in safe HTML output, and retain the
16
+ established empty-sheet fallback when a workbook lists a missing worksheet
17
+ * Refresh generated distributions and the audited development toolchain
18
+
19
+ ## v0.21.3
20
+
21
+ * Store document-controlled worksheet names in own-property-only maps and
22
+ reject inherited lookups, preventing `__proto__` prototype pollution across
23
+ XLSX, XLS, XLML, ODS/FODS, Lotus, and workbook write paths
24
+ * Replace high-complexity XML tag stripping and AutoFilter matching with
25
+ linear-time parsers for untrusted workbook content
26
+ * Escape rich-text runs, HTML attributes, font CSS strings, and links at the
27
+ HTML output boundary; block unsafe link protocols by default
28
+ * Validate dense worksheet origins before array writes and cover the security
29
+ boundary with malicious file and HTML-output regression tests
30
+
7
31
  * Sheet Visibility for ODS / FODS (h/t @edemaine)
8
32
  * HTML DOM ingress support formulae (`data-f`)
9
33
  * Proper handling of XLSX encoded entities (h/t @inreoh)
package/README.md CHANGED
@@ -39,7 +39,7 @@ npm install styled-exceljs
39
39
  ```
40
40
 
41
41
  This build extends the SheetJS worksheet model for browser-oriented rendering of
42
- XLSX/XLS workbooks. The default read path remains lightweight and compatible.
42
+ XLSX/XLS workbooks. The default read path stays lightweight and compatible.
43
43
  Visual metadata is exposed when explicit options are enabled:
44
44
 
45
45
  ```js
@@ -76,10 +76,10 @@ The following public worksheet fields are populated when requested:
76
76
  widths with wrap, overflow, shrink-to-fit, and merge-span handling.
77
77
 
78
78
  `XLSX.utils.validate_merges(ws, opts)` validates merge ranges and reports
79
- duplicate, overlapping, invalid, or out-of-bounds ranges. Passing
80
- `{WTF:true}` or reading with `{validateMerges:true}` throws on invalid merges.
79
+ duplicate, overlapping, malformed, or out-of-bounds ranges. Passing
80
+ `{WTF:true}` or reading with `{validateMerges:true}` throws on malformed merges.
81
81
 
82
- See [docs/visual-fidelity.md](docs/visual-fidelity.md) for the full data
82
+ See the [visual fidelity guide](docs/visual-fidelity.md) for the full data
83
83
  structure reference and release notes for unsupported fallback behavior.
84
84
 
85
85
  ## 中文说明
@@ -107,7 +107,7 @@ npm install styled-exceljs
107
107
  收缩适应和合并跨度计算最优列宽。
108
108
 
109
109
  完整中文数据结构、选项说明和渲染行为请参考
110
- [docs/visual-fidelity.zh-CN.md](docs/visual-fidelity.zh-CN.md)。
110
+ [中文视觉保真指南](docs/visual-fidelity.zh-CN.md)。
111
111
 
112
112
  ## Constellation
113
113
 
@@ -123,7 +123,7 @@ processing library
123
123
  - [`codepage`](https://git.sheetjs.com/SheetJS/js-codepage): Legacy text
124
124
  encodings for XLS and other legacy spreadsheet formats
125
125
 
126
- - [`dta`](packages/dta): Stata DTA file processor
126
+ - [Stata file processor](packages/dta)
127
127
 
128
128
  ## License
129
129
 
package/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-xlsx",
3
- "version": "0.21.2",
3
+ "version": "0.21.3",
4
4
  "homepage": "https://github.com/SheetJS/js-xlsx",
5
5
  "main": ["xlsx.js"],
6
6
  "ignore": [