styled-exceljs 0.21.4 → 0.21.6
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 +16 -0
- package/README.md +49 -0
- package/bower.json +2 -2
- package/dist/xlsx.core.min.js +18 -18
- package/dist/xlsx.core.min.map +1 -1
- package/dist/xlsx.extendscript.js +18 -8
- package/dist/xlsx.full.min.js +19 -19
- package/dist/xlsx.full.min.map +1 -1
- package/dist/xlsx.mini.min.js +11 -11
- package/dist/xlsx.mini.min.map +1 -1
- package/package.json +6 -4
- package/xlsx.js +18 -8
- package/xlsx.mjs +18 -8
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ 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.6
|
|
8
|
+
|
|
9
|
+
* Publish the maintained fork metadata and current test commands with the parser
|
|
10
|
+
* Rebuild browser distributions from the same source as the CJS and ESM entries
|
|
11
|
+
* Preserve verified CI tarballs for exact-byte comparison before publication
|
|
12
|
+
|
|
13
|
+
## v0.21.5
|
|
14
|
+
|
|
15
|
+
* Ignore unused MiniFAT pointers only when no live stream needs their data;
|
|
16
|
+
preserve the unchanged FAT-backed Workbook stream and all cell values
|
|
17
|
+
* Reject missing required MiniFAT/root streams with explicit CFB errors instead
|
|
18
|
+
of a metadata `name` assignment crash or an empty replacement stream
|
|
19
|
+
* Refresh legacy column-width assertions for the stable MDW=7 fallback introduced
|
|
20
|
+
in 0.21.4; retain each format's native character or pixel units without changing
|
|
21
|
+
parser measurements to satisfy old expectations
|
|
22
|
+
|
|
7
23
|
## v0.21.4
|
|
8
24
|
|
|
9
25
|
* Restore applied OOXML table styles, including totals rows, banding, first and
|
package/README.md
CHANGED
|
@@ -22,6 +22,34 @@ port calculations to web apps; automate common spreadsheet tasks, and much more!
|
|
|
22
22
|
|
|
23
23
|
## Documentation
|
|
24
24
|
|
|
25
|
+
### Maintainer releases
|
|
26
|
+
|
|
27
|
+
`publish.yml` checks out the exact stable release tag, runs the security,
|
|
28
|
+
table-style and CFB regressions, builds the package, and publishes with npm
|
|
29
|
+
provenance. The npm trusted publisher must bind `styled-exceljs` to
|
|
30
|
+
`flyfish-dev/styled-exceljs` and `publish.yml`; the workflow itself does not
|
|
31
|
+
create that npm permission. Original SheetJS authorship and licensing remain
|
|
32
|
+
unchanged.
|
|
33
|
+
|
|
34
|
+
Manual dispatch defaults to a dry run. Reruns skip an existing version only
|
|
35
|
+
when its registry SHA-512 matches the packed bytes. Authentication failures,
|
|
36
|
+
different bytes and uncertain writes stop instead of being silently retried.
|
|
37
|
+
|
|
38
|
+
The maintained CI matrix uses Node 22/24/26, Bun and Deno 2. Node 24 runs the
|
|
39
|
+
full official corpus in both CJS and ESM; the other runtimes run the core
|
|
40
|
+
corpus. A runtime assertion prevents a Bun/Deno command from silently falling
|
|
41
|
+
back to Node. The test archive is pinned to SHA-256
|
|
42
|
+
`a786d4f1a80adf9447997b6f3b30b2593c776c27e0b075e3971627c17205f220`
|
|
43
|
+
and cached once before the matrix. Moving external SVN checkouts and obsolete
|
|
44
|
+
Node 0.x/io.js/Deno 1 harnesses are no longer release gates. Historical engine
|
|
45
|
+
metadata is not evidence of a fresh test on those retired runtimes.
|
|
46
|
+
|
|
47
|
+
To repeat the full corpus locally after installing the verified archive and
|
|
48
|
+
building the source, run `FMTS=full STYLED_TEST_RUNTIME=node npm run test:corpus`.
|
|
49
|
+
Pending tests remain visible and are not counted as passing.
|
|
50
|
+
|
|
51
|
+
### Usage documentation
|
|
52
|
+
|
|
25
53
|
- [API and Usage Documentation](https://docs.sheetjs.com)
|
|
26
54
|
|
|
27
55
|
- [Downloadable Scripts and Modules](https://cdn.sheetjs.com)
|
|
@@ -109,6 +137,27 @@ npm install styled-exceljs
|
|
|
109
137
|
完整中文数据结构、选项说明和渲染行为请参考
|
|
110
138
|
[中文视觉保真指南](docs/visual-fidelity.zh-CN.md)。
|
|
111
139
|
|
|
140
|
+
## Regression tests
|
|
141
|
+
|
|
142
|
+
Run `npm test` with the official SheetJS fixture corpus in the ignored
|
|
143
|
+
`test_files/` directory. The Makefile's source is
|
|
144
|
+
[test_files.zip](https://test-files.sheetjs.com/test_files.zip). The 2024-07-17
|
|
145
|
+
archive used for the 0.21.5 candidate has SHA-256
|
|
146
|
+
`a786d4f1a80adf9447997b6f3b30b2593c776c27e0b075e3971627c17205f220`.
|
|
147
|
+
Do not commit the corpus or private customer files.
|
|
148
|
+
|
|
149
|
+
The candidate run passed 74,699 tests with four pending tests. Four legacy
|
|
150
|
+
column-width assertions also failed on unchanged 0.21.4: they assumed MDW=6
|
|
151
|
+
instead of that version's stable MDW=7 fallback. The updated assertions keep
|
|
152
|
+
native XLS/XLSX widths distinct from XLML pixel widths and SYLK character widths;
|
|
153
|
+
the parser's measured values are unchanged. MiniFAT tests cover the failure
|
|
154
|
+
mechanism with generated files, not the unavailable private reporter file.
|
|
155
|
+
|
|
156
|
+
回归测试需要官方语料;语料和客户文件不能提交。0.21.5 候选版全量测试为
|
|
157
|
+
74,699 项通过、4 项待启用。四项旧列宽断言在未修改的 0.21.4 上同样失败,
|
|
158
|
+
本次只更新断言以符合该版已有的 MDW=7 行为,不修改解析结果来迎合测试。
|
|
159
|
+
MiniFAT 合成文件证明了故障机制,不代表已验证尚未提供的私有原文件。
|
|
160
|
+
|
|
112
161
|
## Constellation
|
|
113
162
|
|
|
114
163
|
- <https://oss.sheetjs.com/notes/>: File Format Notes
|