@particle-academy/holy-sheet 2.10.1 → 2.10.2

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/dist/index.d.cts CHANGED
@@ -264,7 +264,7 @@ interface SetMetaOp {
264
264
  }
265
265
 
266
266
  /** This package's own version, pinned to package.json by `version.test.ts`. */
267
- declare const VERSION = "2.10.1";
267
+ declare const VERSION = "2.10.2";
268
268
  type Any$6 = any;
269
269
  /**
270
270
  * Agent — the structured-tool surface for Holy Sheet. Mirrors PHP `Agent`.
@@ -342,7 +342,7 @@ type Any$5 = any;
342
342
  * over `Agent`. Provided for parity / DI ergonomics; most callers use `Agent`.
343
343
  */
344
344
  declare class HolySheet {
345
- static readonly VERSION = "2.10.1";
345
+ static readonly VERSION = "2.10.2";
346
346
  validate(schema: Any$5): ValidationError[];
347
347
  toBytes(schema: Any$5): Uint8Array;
348
348
  write(schema: Any$5, path: string): Promise<WriteResult>;
@@ -357,6 +357,11 @@ declare class HolySheet {
357
357
  static version(): string;
358
358
  }
359
359
 
360
+ /** Bounded archive/security refusal; contains no document names or content. */
361
+ declare class ArchiveRefused extends Error {
362
+ readonly reason: string;
363
+ constructor(reason: string);
364
+ }
360
365
  /** Thrown when a Holy Sheet schema fails validation. Mirrors PHP `SchemaException`. */
361
366
  declare class SchemaException extends Error {
362
367
  readonly errors: ValidationError[];
@@ -382,6 +387,14 @@ declare class UnsupportedFormatException extends Error {
382
387
  static unknownPackage(path: string | null, mimetype: string | null): UnsupportedFormatException;
383
388
  }
384
389
 
390
+ interface ArchiveLimits {
391
+ maxArchiveBytes?: number;
392
+ maxEntries?: number;
393
+ maxPartBytes?: number;
394
+ maxExpandedBytes?: number;
395
+ maxCompressionRatio?: number;
396
+ }
397
+
385
398
  type Any$4 = any;
386
399
  /** Hand-rolled schema validator. Mirrors PHP `Schema\Validator`. */
387
400
  declare class Validator {
@@ -909,6 +922,7 @@ interface ZipFile {
909
922
  }
910
923
  declare function zipSync(files: ZipFile[]): Uint8Array;
911
924
 
912
- declare function unzipSync(data: Uint8Array): Record<string, Uint8Array>;
925
+ /** STORE/DEFLATE reader with metadata, CRC, duplicate and expansion checks. */
926
+ declare function unzipSync(data: Uint8Array, limits?: ArchiveLimits): Record<string, Uint8Array>;
913
927
 
914
- export { type AddSheetOp, Agent, type AggOp, ArrayBuilder, type BuilderOptions, CellAddress, type CellData, type CellFormatInput, type CellPrimitive, type ChartSchema, type ClearCellOp, type ColumnSchema, type ColumnType, type CommentInput, CsvBuilder, type DeleteColumnsOp, type DeleteRowsOp, type DisplayFormat, FormatSniffer, FormulaLinter, type FormulaProblem, HolySheet, type HolySheetSchema, Inference, type InsertColumnsOp, type InsertRowsOp, type MoveSheetOp, Normalizer, OdsReader, type RemoveSheetOp, type RenameSheetOp, type RepairResult, Repairer, type ReplaceSheetOp, type RowCell, SchemaException, type SetCellOp, type SetColumnWidthsOp, type SetFrozenOp, type SetMergedRegionsOp, type SetMetaOp, type SetRangeOp, type SetWorkbookOp, SheetDiff, type SheetOp, SheetOpSchema, type SheetOpType, SheetReducer, type SheetSchema, type SpreadsheetFormat, Theme, type ThemeKey, UnsupportedFormatException, VERSION, type ValidationError, Validator, type WriteResult, XlsxReader, XlsxWriter, type ZipFile, unzipSync, zipSync };
928
+ export { type AddSheetOp, Agent, type AggOp, type ArchiveLimits, ArchiveRefused, ArrayBuilder, type BuilderOptions, CellAddress, type CellData, type CellFormatInput, type CellPrimitive, type ChartSchema, type ClearCellOp, type ColumnSchema, type ColumnType, type CommentInput, CsvBuilder, type DeleteColumnsOp, type DeleteRowsOp, type DisplayFormat, FormatSniffer, FormulaLinter, type FormulaProblem, HolySheet, type HolySheetSchema, Inference, type InsertColumnsOp, type InsertRowsOp, type MoveSheetOp, Normalizer, OdsReader, type RemoveSheetOp, type RenameSheetOp, type RepairResult, Repairer, type ReplaceSheetOp, type RowCell, SchemaException, type SetCellOp, type SetColumnWidthsOp, type SetFrozenOp, type SetMergedRegionsOp, type SetMetaOp, type SetRangeOp, type SetWorkbookOp, SheetDiff, type SheetOp, SheetOpSchema, type SheetOpType, SheetReducer, type SheetSchema, type SpreadsheetFormat, Theme, type ThemeKey, UnsupportedFormatException, VERSION, type ValidationError, Validator, type WriteResult, XlsxReader, XlsxWriter, type ZipFile, unzipSync, zipSync };
package/dist/index.d.ts CHANGED
@@ -264,7 +264,7 @@ interface SetMetaOp {
264
264
  }
265
265
 
266
266
  /** This package's own version, pinned to package.json by `version.test.ts`. */
267
- declare const VERSION = "2.10.1";
267
+ declare const VERSION = "2.10.2";
268
268
  type Any$6 = any;
269
269
  /**
270
270
  * Agent — the structured-tool surface for Holy Sheet. Mirrors PHP `Agent`.
@@ -342,7 +342,7 @@ type Any$5 = any;
342
342
  * over `Agent`. Provided for parity / DI ergonomics; most callers use `Agent`.
343
343
  */
344
344
  declare class HolySheet {
345
- static readonly VERSION = "2.10.1";
345
+ static readonly VERSION = "2.10.2";
346
346
  validate(schema: Any$5): ValidationError[];
347
347
  toBytes(schema: Any$5): Uint8Array;
348
348
  write(schema: Any$5, path: string): Promise<WriteResult>;
@@ -357,6 +357,11 @@ declare class HolySheet {
357
357
  static version(): string;
358
358
  }
359
359
 
360
+ /** Bounded archive/security refusal; contains no document names or content. */
361
+ declare class ArchiveRefused extends Error {
362
+ readonly reason: string;
363
+ constructor(reason: string);
364
+ }
360
365
  /** Thrown when a Holy Sheet schema fails validation. Mirrors PHP `SchemaException`. */
361
366
  declare class SchemaException extends Error {
362
367
  readonly errors: ValidationError[];
@@ -382,6 +387,14 @@ declare class UnsupportedFormatException extends Error {
382
387
  static unknownPackage(path: string | null, mimetype: string | null): UnsupportedFormatException;
383
388
  }
384
389
 
390
+ interface ArchiveLimits {
391
+ maxArchiveBytes?: number;
392
+ maxEntries?: number;
393
+ maxPartBytes?: number;
394
+ maxExpandedBytes?: number;
395
+ maxCompressionRatio?: number;
396
+ }
397
+
385
398
  type Any$4 = any;
386
399
  /** Hand-rolled schema validator. Mirrors PHP `Schema\Validator`. */
387
400
  declare class Validator {
@@ -909,6 +922,7 @@ interface ZipFile {
909
922
  }
910
923
  declare function zipSync(files: ZipFile[]): Uint8Array;
911
924
 
912
- declare function unzipSync(data: Uint8Array): Record<string, Uint8Array>;
925
+ /** STORE/DEFLATE reader with metadata, CRC, duplicate and expansion checks. */
926
+ declare function unzipSync(data: Uint8Array, limits?: ArchiveLimits): Record<string, Uint8Array>;
913
927
 
914
- export { type AddSheetOp, Agent, type AggOp, ArrayBuilder, type BuilderOptions, CellAddress, type CellData, type CellFormatInput, type CellPrimitive, type ChartSchema, type ClearCellOp, type ColumnSchema, type ColumnType, type CommentInput, CsvBuilder, type DeleteColumnsOp, type DeleteRowsOp, type DisplayFormat, FormatSniffer, FormulaLinter, type FormulaProblem, HolySheet, type HolySheetSchema, Inference, type InsertColumnsOp, type InsertRowsOp, type MoveSheetOp, Normalizer, OdsReader, type RemoveSheetOp, type RenameSheetOp, type RepairResult, Repairer, type ReplaceSheetOp, type RowCell, SchemaException, type SetCellOp, type SetColumnWidthsOp, type SetFrozenOp, type SetMergedRegionsOp, type SetMetaOp, type SetRangeOp, type SetWorkbookOp, SheetDiff, type SheetOp, SheetOpSchema, type SheetOpType, SheetReducer, type SheetSchema, type SpreadsheetFormat, Theme, type ThemeKey, UnsupportedFormatException, VERSION, type ValidationError, Validator, type WriteResult, XlsxReader, XlsxWriter, type ZipFile, unzipSync, zipSync };
928
+ export { type AddSheetOp, Agent, type AggOp, type ArchiveLimits, ArchiveRefused, ArrayBuilder, type BuilderOptions, CellAddress, type CellData, type CellFormatInput, type CellPrimitive, type ChartSchema, type ClearCellOp, type ColumnSchema, type ColumnType, type CommentInput, CsvBuilder, type DeleteColumnsOp, type DeleteRowsOp, type DisplayFormat, FormatSniffer, FormulaLinter, type FormulaProblem, HolySheet, type HolySheetSchema, Inference, type InsertColumnsOp, type InsertRowsOp, type MoveSheetOp, Normalizer, OdsReader, type RemoveSheetOp, type RenameSheetOp, type RepairResult, Repairer, type ReplaceSheetOp, type RowCell, SchemaException, type SetCellOp, type SetColumnWidthsOp, type SetFrozenOp, type SetMergedRegionsOp, type SetMetaOp, type SetRangeOp, type SetWorkbookOp, SheetDiff, type SheetOp, SheetOpSchema, type SheetOpType, SheetReducer, type SheetSchema, type SpreadsheetFormat, Theme, type ThemeKey, UnsupportedFormatException, VERSION, type ValidationError, Validator, type WriteResult, XlsxReader, XlsxWriter, type ZipFile, unzipSync, zipSync };