@cj-tech-master/excelts 1.6.1 → 1.6.2-canary.20251223042142.4d33ec6
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 +0 -15
- package/README_zh.md +0 -15
- package/dist/browser/excelts.iife.js +1 -22
- package/dist/browser/excelts.iife.js.map +1 -1
- package/dist/browser/excelts.iife.min.js +1 -1
- package/dist/cjs/doc/worksheet.js +2 -21
- package/dist/cjs/stream/xlsx/hyperlink-reader.js +1 -1
- package/dist/cjs/stream/xlsx/workbook-reader.js +7 -4
- package/dist/cjs/stream/xlsx/workbook-writer.js +37 -23
- package/dist/cjs/stream/xlsx/worksheet-reader.js +12 -8
- package/dist/cjs/stream/xlsx/worksheet-writer.js +12 -6
- package/dist/esm/doc/worksheet.js +2 -21
- package/dist/esm/stream/xlsx/hyperlink-reader.js +1 -1
- package/dist/esm/stream/xlsx/workbook-reader.js +7 -4
- package/dist/esm/stream/xlsx/workbook-writer.js +37 -23
- package/dist/esm/stream/xlsx/worksheet-reader.js +12 -8
- package/dist/esm/stream/xlsx/worksheet-writer.js +12 -6
- package/dist/types/doc/worksheet.d.ts +6 -27
- package/dist/types/index.d.ts +3 -0
- package/dist/types/stream/xlsx/hyperlink-reader.d.ts +11 -11
- package/dist/types/stream/xlsx/workbook-reader.d.ts +125 -36
- package/dist/types/stream/xlsx/workbook-writer.d.ts +105 -22
- package/dist/types/stream/xlsx/worksheet-reader.d.ts +40 -22
- package/dist/types/stream/xlsx/worksheet-writer.d.ts +83 -49
- package/dist/types/types.d.ts +4 -16
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -218,18 +218,3 @@ This project is a fork of ExcelJS with modernization improvements. All credit fo
|
|
|
218
218
|
## Changelog
|
|
219
219
|
|
|
220
220
|
See [CHANGELOG.md](CHANGELOG.md) for detailed version history.
|
|
221
|
-
|
|
222
|
-
### 1.0.0 (2025-10-30)
|
|
223
|
-
|
|
224
|
-
🎉 **First Stable Release** - ExcelTS is now production-ready!
|
|
225
|
-
|
|
226
|
-
- Full TypeScript rewrite with strict typing
|
|
227
|
-
- All default exports converted to named exports
|
|
228
|
-
- Updated all dependencies to latest versions
|
|
229
|
-
- Migrated to Vitest for testing
|
|
230
|
-
- Switched to Rolldown for bundling
|
|
231
|
-
- Modern ES Module support
|
|
232
|
-
- Node 18+ support
|
|
233
|
-
- Enhanced type safety with proper access modifiers
|
|
234
|
-
- Browser testing support
|
|
235
|
-
- Performance optimizations
|
package/README_zh.md
CHANGED
|
@@ -219,18 +219,3 @@ MIT License
|
|
|
219
219
|
## 更新日志
|
|
220
220
|
|
|
221
221
|
详细版本历史请查看 [CHANGELOG.md](CHANGELOG.md)。
|
|
222
|
-
|
|
223
|
-
### 1.0.0 (2025-10-30)
|
|
224
|
-
|
|
225
|
-
🎉 **首个稳定版本发布** - ExcelTS 现已可用于生产环境!
|
|
226
|
-
|
|
227
|
-
- 完整的 TypeScript 重写,严格类型检查
|
|
228
|
-
- 所有默认导出转换为命名导出
|
|
229
|
-
- 所有依赖项更新到最新版本
|
|
230
|
-
- 迁移到 Vitest 进行测试
|
|
231
|
-
- 切换到 Rolldown 进行打包
|
|
232
|
-
- 现代 ES Module 支持
|
|
233
|
-
- Node 18+ 支持
|
|
234
|
-
- 使用适当的访问修饰符增强类型安全
|
|
235
|
-
- 浏览器测试支持
|
|
236
|
-
- 性能优化
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @cj-tech-master/excelts v1.6.
|
|
2
|
+
* @cj-tech-master/excelts v1.6.2-canary.20251223042142.4d33ec6
|
|
3
3
|
* TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.
|
|
4
4
|
* (c) 2025 cjnoname
|
|
5
5
|
* Released under the MIT License
|
|
@@ -26901,27 +26901,17 @@ var ExcelTS = (function(exports) {
|
|
|
26901
26901
|
});
|
|
26902
26902
|
return count;
|
|
26903
26903
|
}
|
|
26904
|
-
/**
|
|
26905
|
-
* Get or create row by 1-based index
|
|
26906
|
-
*/
|
|
26907
26904
|
getRow(r) {
|
|
26908
26905
|
let row = this._rows[r - 1];
|
|
26909
26906
|
if (!row) row = this._rows[r - 1] = new Row(this, r);
|
|
26910
26907
|
return row;
|
|
26911
26908
|
}
|
|
26912
|
-
/**
|
|
26913
|
-
* Get or create rows by 1-based index
|
|
26914
|
-
*/
|
|
26915
26909
|
getRows(start, length) {
|
|
26916
26910
|
if (length < 1) return;
|
|
26917
26911
|
const rows = [];
|
|
26918
26912
|
for (let i$1 = start; i$1 < start + length; i$1++) rows.push(this.getRow(i$1));
|
|
26919
26913
|
return rows;
|
|
26920
26914
|
}
|
|
26921
|
-
/**
|
|
26922
|
-
* Add a couple of Rows by key-value, after the last current row, using the column keys,
|
|
26923
|
-
* or add a row by contiguous Array (assign to columns A, B & C)
|
|
26924
|
-
*/
|
|
26925
26915
|
addRow(value, style = "n") {
|
|
26926
26916
|
const rowNo = this._nextRow;
|
|
26927
26917
|
const row = this.getRow(rowNo);
|
|
@@ -26929,9 +26919,6 @@ var ExcelTS = (function(exports) {
|
|
|
26929
26919
|
this._setStyleOption(rowNo, style[0] === "i" ? style : "n");
|
|
26930
26920
|
return row;
|
|
26931
26921
|
}
|
|
26932
|
-
/**
|
|
26933
|
-
* Add multiple rows by providing an array of arrays or key-value pairs
|
|
26934
|
-
*/
|
|
26935
26922
|
addRows(value, style = "n") {
|
|
26936
26923
|
const rows = [];
|
|
26937
26924
|
value.forEach((row) => {
|
|
@@ -26939,19 +26926,11 @@ var ExcelTS = (function(exports) {
|
|
|
26939
26926
|
});
|
|
26940
26927
|
return rows;
|
|
26941
26928
|
}
|
|
26942
|
-
/**
|
|
26943
|
-
* Insert a Row by key-value, at the position (shifting down all rows from position),
|
|
26944
|
-
* using the column keys, or add a row by contiguous Array (assign to columns A, B & C)
|
|
26945
|
-
*/
|
|
26946
26929
|
insertRow(pos, value, style = "n") {
|
|
26947
26930
|
this.spliceRows(pos, 0, value);
|
|
26948
26931
|
this._setStyleOption(pos, style);
|
|
26949
26932
|
return this.getRow(pos);
|
|
26950
26933
|
}
|
|
26951
|
-
/**
|
|
26952
|
-
* Insert multiple rows at position (shifting down all rows from position)
|
|
26953
|
-
* by providing an array of arrays or key-value pairs
|
|
26954
|
-
*/
|
|
26955
26934
|
insertRows(pos, values, style = "n") {
|
|
26956
26935
|
this.spliceRows(pos, 0, ...values);
|
|
26957
26936
|
if (style !== "n") {
|