@justybase/spreadsheet-tasks 3.1.0 → 3.1.1

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
@@ -5,7 +5,13 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [Unreleased]
8
+ ## [3.1.1] - 2026-10-24
9
+
10
+ ### Changed
11
+
12
+ - The default ZIP compression level is 3 (was 6) for XLSX, XLSB and the
13
+ streaming updater. Level 6 made XLSB writes about 2.6x slower for an 8%
14
+ smaller file.
9
15
 
10
16
  ## [3.1.0] - 2026-10-24
11
17
 
package/README.md CHANGED
@@ -181,7 +181,7 @@ await writer.finalize();
181
181
 
182
182
  ### Compression Level
183
183
 
184
- XLSX and XLSB writers compress the package with zlib. The default is level 6; pass a
184
+ XLSX and XLSB writers compress the package with zlib. The default is level 3; pass a
185
185
  level from 0 (store) to 9 (smallest, slowest) to trade size for speed:
186
186
 
187
187
  ```typescript
@@ -256,7 +256,7 @@ declare class XlsbWriter {
256
256
  */
257
257
  /**
258
258
  * @param filePath Destination `.xlsb` path on disk.
259
- * @param options.compressionLevel Deflate level 0-9 (default 6).
259
+ * @param options.compressionLevel Deflate level 0-9 (default 3).
260
260
  */
261
261
  constructor(filePath: string, options?: {
262
262
  compressionLevel?: number;
@@ -348,7 +348,7 @@ declare class XlsxWriter {
348
348
  */
349
349
  /**
350
350
  * @param filePath Destination `.xlsx` path on disk.
351
- * @param options.compressionLevel Deflate level 0-9 (default 6).
351
+ * @param options.compressionLevel Deflate level 0-9 (default 3).
352
352
  */
353
353
  constructor(filePath: string, options?: {
354
354
  compressionLevel?: number;
package/dist/cjs/index.js CHANGED
@@ -327,7 +327,7 @@ function defaultColWidth(width, floor = false) {
327
327
  function cellRefAttr(col, prevCol, colRef, rowNum) {
328
328
  return col === prevCol + 1 ? "" : ` r="${colRef}${rowNum}"`;
329
329
  }
330
- var DEFAULT_COMPRESSION_LEVEL = 6;
330
+ var DEFAULT_COMPRESSION_LEVEL = 3;
331
331
  function assertCompressionLevel(level) {
332
332
  if (!Number.isInteger(level) || level < 0 || level > 9) {
333
333
  throw new RangeError(`compressionLevel must be an integer from 0 to 9, got ${level}`);
@@ -1553,7 +1553,7 @@ var XlsbWriter = class _XlsbWriter {
1553
1553
  */
1554
1554
  /**
1555
1555
  * @param filePath Destination `.xlsb` path on disk.
1556
- * @param options.compressionLevel Deflate level 0-9 (default 6).
1556
+ * @param options.compressionLevel Deflate level 0-9 (default 3).
1557
1557
  */
1558
1558
  constructor(filePath, options = {}) {
1559
1559
  this._outputError = null;
@@ -4031,7 +4031,7 @@ var XlsxWriter = class {
4031
4031
  */
4032
4032
  /**
4033
4033
  * @param filePath Destination `.xlsx` path on disk.
4034
- * @param options.compressionLevel Deflate level 0-9 (default 6).
4034
+ * @param options.compressionLevel Deflate level 0-9 (default 3).
4035
4035
  */
4036
4036
  constructor(filePath, options = {}) {
4037
4037
  this._outputError = null;