@superdoc/sdk 2.15.0-next.6 → 2.15.0-next.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.
package/README.md CHANGED
@@ -25,6 +25,18 @@ await document.close();
25
25
  await client.dispose();
26
26
  ```
27
27
 
28
+ ## Client lifetime
29
+
30
+ One client owns one SuperDoc host process. `connect()` starts it once; every
31
+ `open()` adds a document session inside that process, and every method on a
32
+ document handle is a single request to it. Create the client once per service
33
+ (or per collaboration room), keep document handles open for the whole workflow,
34
+ and call `dispose()` only when the service shuts down. Creating a client per
35
+ operation pays process start, engine load, and (for collaboration documents)
36
+ room sync on every call. To cut round trips further, batch related edits with
37
+ `document.mutations.apply()` or arbitrary operations with
38
+ `document.plan.execute()`.
39
+
28
40
  For token-authenticated Hocuspocus or y-websocket rooms, pass the credential as
29
41
  an option on that document's open request:
30
42
 
@@ -3,6 +3,6 @@
3
3
  // AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
4
4
  // Source of truth: package.json. Regenerated on every SDK build so the
5
5
  // SDK retains its own version identity when bundled into another package.
6
- const SDK_VERSION = '2.15.0-next.6';
6
+ const SDK_VERSION = '2.15.0-next.8';
7
7
 
8
8
  exports.SDK_VERSION = SDK_VERSION;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.15.0-next.6";
1
+ export declare const SDK_VERSION = "2.15.0-next.8";
@@ -1,4 +1,4 @@
1
1
  // AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
2
2
  // Source of truth: package.json. Regenerated on every SDK build so the
3
3
  // SDK retains its own version identity when bundled into another package.
4
- export const SDK_VERSION = '2.15.0-next.6';
4
+ export const SDK_VERSION = '2.15.0-next.8';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/sdk",
3
- "version": "2.15.0-next.6",
3
+ "version": "2.15.0-next.8",
4
4
  "description": "Node SDK for SuperDoc, wrapping the SuperDoc CLI to read and edit .docx files from JavaScript and TypeScript.",
5
5
  "private": false,
6
6
  "license": "AGPL-3.0",
@@ -38,11 +38,11 @@
38
38
  "typescript": "^5.9.2"
39
39
  },
40
40
  "optionalDependencies": {
41
- "@superdoc/sdk-darwin-arm64": "2.15.0-next.6",
42
- "@superdoc/sdk-darwin-x64": "2.15.0-next.6",
43
- "@superdoc/sdk-linux-x64": "2.15.0-next.6",
44
- "@superdoc/sdk-linux-arm64": "2.15.0-next.6",
45
- "@superdoc/sdk-windows-x64": "2.15.0-next.6"
41
+ "@superdoc/sdk-darwin-arm64": "2.15.0-next.8",
42
+ "@superdoc/sdk-darwin-x64": "2.15.0-next.8",
43
+ "@superdoc/sdk-linux-x64": "2.15.0-next.8",
44
+ "@superdoc/sdk-linux-arm64": "2.15.0-next.8",
45
+ "@superdoc/sdk-windows-x64": "2.15.0-next.8"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"