documonster 0.1.2 → 0.2.0

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * documonster v0.1.2
2
+ * documonster v0.2.0
3
3
  * Zero-dependency TypeScript toolkit for Excel, Word, PDF, CSV, Markdown, XML & ZIP — one API across Node.js, Bun & browsers.
4
4
  * (c) 2026 cjnoname
5
5
  * Released under the Apache-2.0 License
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * documonster v0.1.2
2
+ * documonster v0.2.0
3
3
  * Zero-dependency TypeScript toolkit for Excel, Word, PDF, CSV, Markdown, XML & ZIP — one API across Node.js, Bun & browsers.
4
4
  * (c) 2026 cjnoname
5
5
  * Released under the Apache-2.0 License
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * documonster v0.1.2
2
+ * documonster v0.2.0
3
3
  * Zero-dependency TypeScript toolkit for Excel, Word, PDF, CSV, Markdown, XML & ZIP — one API across Node.js, Bun & browsers.
4
4
  * (c) 2026 cjnoname
5
5
  * Released under the Apache-2.0 License
@@ -13,13 +13,19 @@ export interface DataValidationsData {
13
13
  }
14
14
  /** Create a data-validation registry, optionally seeded from a parsed model. */
15
15
  export declare function createDataValidations(model?: ValidationModel): DataValidationsData;
16
- /** Register a validation at an exact address. */
17
- export declare function dataValidationAdd(dv: DataValidationsData, address: string, validation: DataValidation): DataValidation;
16
+ /**
17
+ * Register a validation for a cell or A1 range.
18
+ *
19
+ * Whole-column (`"A:A"`) and whole-row (`"1:3"`) references are expanded to
20
+ * Excel's sheet limits. Ranges are stored as a single `range:` model entry so
21
+ * they serialise to one data-validation element instead of one per cell.
22
+ */
23
+ export declare function dataValidationAdd(dv: DataValidationsData, ref: string, validation: DataValidation): DataValidation;
18
24
  /**
19
25
  * Resolve the validation that applies to `address`: first an exact-address
20
26
  * match, then any `range:`-prefixed key whose decoded range contains it.
21
27
  */
22
28
  export declare function dataValidationFind(dv: DataValidationsData, address: string): DataValidation | undefined;
23
- /** Clear the validation registered at `address`. */
24
- export declare function dataValidationRemove(dv: DataValidationsData, address: string): void;
29
+ /** Clear the validation registered for a cell or A1 range. */
30
+ export declare function dataValidationRemove(dv: DataValidationsData, ref: string): void;
25
31
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "documonster",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Zero-dependency TypeScript toolkit for Excel, Word, PDF, CSV, Markdown, XML & ZIP — one API across Node.js, Bun & browsers.",
5
5
  "keywords": [
6
6
  "archive",