@office-open/xlsx 0.10.10 → 0.10.12

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.
Files changed (2) hide show
  1. package/README.md +10 -10
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -71,7 +71,7 @@ Check the [demo folder](./demo) for working examples covering every feature.
71
71
 
72
72
  Performance comparison against [hucre](https://github.com/nicolo-ribaudo/hucre) (higher ops/s is better, Windows 11 / Node 24).
73
73
 
74
- **Default** = XML DEFLATE level 1 (SuperFast); media is split by type, matching MS Office Excel — already-compressed formats (PNG/JPEG/GIF) are STOREd, the rest (EMF/WMF/BMP/TIFF/…) use DEFLATE level 1 (verified on a real MS Office file). **All STORE** = no compression (`{ compression: { xml: 0, media: 0 } }`). **hucre** (async only) uses `CompressionStream("deflate-raw")` when available, falls back to STORE per-entry when compression doesn't reduce size.
74
+ **Default** = XML DEFLATE level 1 (SuperFast); media is split by type, matching MS Office Excel — already-compressed formats (PNG/JPEG/GIF) are STOREd, the rest (EMF/WMF/BMP/TIFF/…) use DEFLATE level 6 / Normal (verified on a real MS Office file). **All STORE** = no compression (`{ compression: { xml: 0, media: 0 } }`). **hucre** (async only) uses `CompressionStream("deflate-raw")` when available, falls back to STORE per-entry when compression doesn't reduce size.
75
75
 
76
76
  ```typescript
77
77
  // Default (matches MS Office)
@@ -82,25 +82,25 @@ await generateWorkbook(options, { compression: { xml: 0, media: 0 } });
82
82
 
83
83
  **Create + toBuffer (end-to-end)**
84
84
 
85
- | Scenario | Default sync | Default async | All STORE sync | All STORE async | hucre |
86
- | ---------------- | -----------: | ------------: | -------------: | --------------: | ----------: |
87
- | Simple (3 rows) | 2,354 ops/s | 1,285 ops/s | 21,893 ops/s | 23,617 ops/s | 927 ops/s |
88
- | Styled rows (20) | 2,287 ops/s | 1,237 ops/s | 19,237 ops/s | 19,173 ops/s | 906 ops/s |
89
- | Table (10x5) | 2,510 ops/s | 1,178 ops/s | 18,479 ops/s | 17,921 ops/s | 1,191 ops/s |
85
+ | Scenario | Default sync | Default async | All STORE sync | All STORE async | hucre |
86
+ | ---------------- | -----------: | ------------: | -------------: | --------------: | --------: |
87
+ | Simple (3 rows) | 2,040 ops/s | 1,096 ops/s | 21,165 ops/s | 21,851 ops/s | 854 ops/s |
88
+ | Styled rows (20) | 1,894 ops/s | 1,107 ops/s | 18,327 ops/s | 18,581 ops/s | 815 ops/s |
89
+ | Table (10x5) | 2,017 ops/s | 1,148 ops/s | 17,836 ops/s | 16,761 ops/s | 865 ops/s |
90
90
 
91
91
  **Large Files — Create + toBuffer**
92
92
 
93
93
  | Scenario | Default sync | Default async | All STORE sync | All STORE async | hucre |
94
94
  | ----------------------------- | -----------: | ------------: | -------------: | --------------: | ---------: |
95
- | 2000 rows + 10 images | 110 ops/s | 115 ops/s | 137 ops/s | 133 ops/s | 43.7 ops/s |
96
- | 200x10 table | 849 ops/s | 630 ops/s | 1,278 ops/s | 1,219 ops/s | 265 ops/s |
97
- | 20 sheets × 100 rows + 20 img | 72.8 ops/s | 55.0 ops/s | 101 ops/s | 105 ops/s | 25.7 ops/s |
95
+ | 2000 rows + 10 images | 110 ops/s | 127 ops/s | 127 ops/s | 134 ops/s | 43.7 ops/s |
96
+ | 200x10 table | 821 ops/s | 610 ops/s | 1,253 ops/s | 1,172 ops/s | 251 ops/s |
97
+ | 20 sheets × 100 rows + 20 img | 73.8 ops/s | 56.9 ops/s | 96 ops/s | 99 ops/s | 22.8 ops/s |
98
98
 
99
99
  **Large Data — 100,000 rows × 20 columns (2M cells)**
100
100
 
101
101
  | Scenario | Default sync | Default async | All STORE sync | All STORE async | hucre |
102
102
  | --------- | -----------: | ------------: | -------------: | --------------: | ---------: |
103
- | 100k × 20 | 0.84 ops/s | 0.86 ops/s | 1.05 ops/s | 0.96 ops/s | 0.40 ops/s |
103
+ | 100k × 20 | 0.86 ops/s | 0.84 ops/s | 1.01 ops/s | 0.92 ops/s | 0.40 ops/s |
104
104
 
105
105
  ## License
106
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-open/xlsx",
3
- "version": "0.10.10",
3
+ "version": "0.10.12",
4
4
  "description": "Generate, parse, and patch .xlsx spreadsheets with a declarative TypeScript API",
5
5
  "keywords": [
6
6
  "excel",
@@ -48,8 +48,8 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@office-open/xml": "0.10.10",
52
- "@office-open/core": "0.10.10"
51
+ "@office-open/core": "0.10.12",
52
+ "@office-open/xml": "0.10.12"
53
53
  },
54
54
  "scripts": {
55
55
  "dev": "basis build --stub",