@cj-tech-master/excelts 9.5.7 → 9.5.8

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,14 +1,24 @@
1
1
  import type { WorksheetState } from "../../../types.js";
2
2
  import { BaseXform } from "../base-xform.js";
3
3
  interface SheetModel {
4
- id: number;
4
+ id: number | undefined;
5
5
  name: string;
6
6
  state: WorksheetState;
7
- rId: string;
7
+ rId: string | undefined;
8
8
  }
9
9
  declare class WorksheetXform extends BaseXform {
10
+ relationshipsPrefixes: readonly string[];
10
11
  render(xmlStream: any, model: SheetModel): void;
11
12
  parseOpen(node: any): boolean;
13
+ /**
14
+ * Locate the relationship id on a `<sheet>` element. Tries every
15
+ * prefix the workbook root bound to the relationships namespace,
16
+ * then any prefix the `<sheet>` element itself rebinds locally.
17
+ * Returns `undefined` if no relationship id is present — callers
18
+ * (the workbook reconciler) will treat such a `<sheet>` as a
19
+ * half-broken declaration that can't be bound to a worksheet part.
20
+ */
21
+ private _extractRelId;
12
22
  parseText(): void;
13
23
  parseClose(): boolean;
14
24
  }
@@ -5,10 +5,17 @@ declare class WorkbookXform extends BaseXform {
5
5
  map: {
6
6
  [key: string]: any;
7
7
  };
8
+ /**
9
+ * The `<sheet>` xform shared with the `sheets` ListXform. Held as a
10
+ * field so `parseOpen` can pass workbook-level state (the prefixes
11
+ * bound to the OOXML relationships namespace) into it.
12
+ */
13
+ private readonly _sheetXform;
8
14
  constructor();
9
15
  prepare(model: any): void;
10
16
  render(xmlStream: any, model: any): void;
11
17
  parseOpen(node: any): boolean;
18
+ private static _findRelationshipsPrefixes;
12
19
  parseText(text: string): void;
13
20
  parseClose(name: string): boolean;
14
21
  reconcile(model: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cj-tech-master/excelts",
3
- "version": "9.5.7",
3
+ "version": "9.5.8",
4
4
  "description": "Zero-dependency TypeScript toolkit — Excel (XLSX), PDF, CSV, Markdown, XML, ZIP/TAR, and streaming.",
5
5
  "keywords": [
6
6
  "archive",
@@ -300,26 +300,26 @@
300
300
  "access": "public"
301
301
  },
302
302
  "devDependencies": {
303
- "@rspack/core": "^2.0.2",
304
- "@types/node": "^25.7.0",
305
- "@typescript/native-preview": "^7.0.0-dev.20260511.1",
306
- "@vitest/browser": "^4.1.6",
307
- "@vitest/browser-playwright": "^4.1.6",
308
- "@vitest/ui": "^4.1.6",
303
+ "@rspack/core": "^2.0.4",
304
+ "@types/node": "^25.9.1",
305
+ "@typescript/native-preview": "^7.0.0-dev.20260521.1",
306
+ "@vitest/browser": "^4.1.7",
307
+ "@vitest/browser-playwright": "^4.1.7",
308
+ "@vitest/ui": "^4.1.7",
309
309
  "concurrently": "^9.2.1",
310
310
  "cross-env": "^10.1.0",
311
311
  "esbuild": "^0.28.0",
312
- "fast-xml-parser": "^5.7.3",
312
+ "fast-xml-parser": "^5.8.0",
313
313
  "husky": "^9.1.7",
314
- "oxfmt": "^0.49.0",
315
- "oxlint": "^1.64.0",
314
+ "oxfmt": "^0.51.0",
315
+ "oxlint": "^1.66.0",
316
316
  "oxlint-tsgolint": "latest",
317
317
  "playwright": "^1.60.0",
318
318
  "rimraf": "^6.1.3",
319
- "rolldown": "^1.0.0",
319
+ "rolldown": "^1.0.2",
320
320
  "rollup-plugin-visualizer": "^7.0.1",
321
321
  "typescript": "^6.0.3",
322
- "vitest": "^4.1.6"
322
+ "vitest": "^4.1.7"
323
323
  },
324
324
  "browserslist": [
325
325
  "chrome >= 89",