styled-exceljs 0.21.1 → 0.21.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 +24 -0
- package/README.md +17 -6
- package/bower.json +1 -1
- package/dist/xlsx.core.min.js +18 -18
- package/dist/xlsx.core.min.map +1 -1
- package/dist/xlsx.extendscript.js +230 -106
- package/dist/xlsx.full.min.js +18 -18
- package/dist/xlsx.full.min.map +1 -1
- package/dist/xlsx.mini.min.js +10 -10
- package/dist/xlsx.mini.min.map +1 -1
- package/docs/visual-fidelity.md +4 -0
- package/docs/visual-fidelity.zh-CN.md +3 -0
- package/package.json +3 -2
- package/xlsx.js +230 -106
- package/xlsx.mjs +229 -105
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,35 @@ 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.3
|
|
8
|
+
|
|
9
|
+
* Store document-controlled worksheet names in own-property-only maps and
|
|
10
|
+
reject inherited lookups, preventing `__proto__` prototype pollution across
|
|
11
|
+
XLSX, XLS, XLML, ODS/FODS, Lotus, and workbook write paths
|
|
12
|
+
* Replace high-complexity XML tag stripping and AutoFilter matching with
|
|
13
|
+
linear-time parsers for untrusted workbook content
|
|
14
|
+
* Escape rich-text runs, HTML attributes, font CSS strings, and links at the
|
|
15
|
+
HTML output boundary; block unsafe link protocols by default
|
|
16
|
+
* Validate dense worksheet origins before array writes and cover the security
|
|
17
|
+
boundary with malicious file and HTML-output regression tests
|
|
18
|
+
|
|
7
19
|
* Sheet Visibility for ODS / FODS (h/t @edemaine)
|
|
8
20
|
* HTML DOM ingress support formulae (`data-f`)
|
|
9
21
|
* Proper handling of XLSX encoded entities (h/t @inreoh)
|
|
10
22
|
* Proper handling of invalid DIF sheets that match heuristics (h/t @lowkeyfish)
|
|
11
23
|
|
|
24
|
+
## v0.21.2
|
|
25
|
+
|
|
26
|
+
* Preserve TIFF drawing MIME metadata for XLSX images so browser renderers can
|
|
27
|
+
select an explicit decoder instead of receiving `application/octet-stream`
|
|
28
|
+
* Keep workbook column-width measurement stable across sheets and tolerate
|
|
29
|
+
missing Numbers format tables
|
|
30
|
+
|
|
31
|
+
中文摘要:
|
|
32
|
+
|
|
33
|
+
* XLSX 中的 TIFF 图片现在会保留 `image/tiff` 类型,便于浏览器渲染器按需解码
|
|
34
|
+
* 稳定多工作表列宽测量,并容错缺失的 Numbers 格式表
|
|
35
|
+
|
|
12
36
|
## v0.21.1
|
|
13
37
|
|
|
14
38
|
* Added browser-aware text measurement and `XLSX.utils.auto_fit_columns` for
|
package/README.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# [SheetJS](https://sheetjs.com)
|
|
2
2
|
|
|
3
|
+
## Fork Notice
|
|
4
|
+
|
|
5
|
+
`styled-exceljs` is a fork of the original SheetJS Community Edition source
|
|
6
|
+
code. This fork keeps the SheetJS-compatible workbook and worksheet model, then
|
|
7
|
+
adds browser-oriented visual fidelity extensions for styles, dimensions,
|
|
8
|
+
drawings, charts, merge validation, and HTML rendering.
|
|
9
|
+
|
|
10
|
+
中文说明:`styled-exceljs` 基于 SheetJS Community Edition 原始代码 fork
|
|
11
|
+
并继续增强,保持 SheetJS 兼容的数据模型,同时扩展样式、行列尺寸、图片绘图、
|
|
12
|
+
图表、合并校验和浏览器 HTML 渲染能力。
|
|
13
|
+
|
|
3
14
|
The SheetJS Community Edition offers battle-tested open-source solutions for
|
|
4
15
|
extracting useful data from almost any complex spreadsheet and generating new
|
|
5
16
|
spreadsheets that will work with legacy and modern software alike.
|
|
@@ -28,7 +39,7 @@ npm install styled-exceljs
|
|
|
28
39
|
```
|
|
29
40
|
|
|
30
41
|
This build extends the SheetJS worksheet model for browser-oriented rendering of
|
|
31
|
-
XLSX/XLS workbooks. The default read path
|
|
42
|
+
XLSX/XLS workbooks. The default read path stays lightweight and compatible.
|
|
32
43
|
Visual metadata is exposed when explicit options are enabled:
|
|
33
44
|
|
|
34
45
|
```js
|
|
@@ -65,10 +76,10 @@ The following public worksheet fields are populated when requested:
|
|
|
65
76
|
widths with wrap, overflow, shrink-to-fit, and merge-span handling.
|
|
66
77
|
|
|
67
78
|
`XLSX.utils.validate_merges(ws, opts)` validates merge ranges and reports
|
|
68
|
-
duplicate, overlapping,
|
|
69
|
-
`{WTF:true}` or reading with `{validateMerges:true}` throws on
|
|
79
|
+
duplicate, overlapping, malformed, or out-of-bounds ranges. Passing
|
|
80
|
+
`{WTF:true}` or reading with `{validateMerges:true}` throws on malformed merges.
|
|
70
81
|
|
|
71
|
-
See [
|
|
82
|
+
See the [visual fidelity guide](docs/visual-fidelity.md) for the full data
|
|
72
83
|
structure reference and release notes for unsupported fallback behavior.
|
|
73
84
|
|
|
74
85
|
## 中文说明
|
|
@@ -96,7 +107,7 @@ npm install styled-exceljs
|
|
|
96
107
|
收缩适应和合并跨度计算最优列宽。
|
|
97
108
|
|
|
98
109
|
完整中文数据结构、选项说明和渲染行为请参考
|
|
99
|
-
[
|
|
110
|
+
[中文视觉保真指南](docs/visual-fidelity.zh-CN.md)。
|
|
100
111
|
|
|
101
112
|
## Constellation
|
|
102
113
|
|
|
@@ -112,7 +123,7 @@ processing library
|
|
|
112
123
|
- [`codepage`](https://git.sheetjs.com/SheetJS/js-codepage): Legacy text
|
|
113
124
|
encodings for XLS and other legacy spreadsheet formats
|
|
114
125
|
|
|
115
|
-
- [
|
|
126
|
+
- [Stata file processor](packages/dta)
|
|
116
127
|
|
|
117
128
|
## License
|
|
118
129
|
|