@syncmatters/connector-sdk 1.0.11 → 1.0.12

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.
@@ -102,9 +102,10 @@ Frequently used:
102
102
  values before comparing (pairs with `matchRules`).
103
103
  - `xmlParse({ source: { string | fileProvider, encoding? } })` — preferred full-document XML
104
104
  parse. Deprecated: `xmlParse({ string })` (still supported).
105
- - `xmlParse({ source, emit })` — stream matching elements as xml2js-shaped chunks (XPath
105
+ - `xmlParse({ source, emit, skip? })` — stream matching elements as xml2js-shaped chunks (XPath
106
106
  subset: `//Name`, `/A/B/C`, `A/B`; prefixes ignored). Use for large documents; iterate
107
- with `for await…of` (do not `await` the call itself).
107
+ with `for await…of` (do not `await` the call itself). Optional `skip` uses the same subset
108
+ to drop unread subtrees (e.g. `skip: ["//Annotation"]`) before they are recorded.
108
109
  - `kvStore()` — scratch key-value collections for cross-page state (05) or import staging (06).
109
110
  - `fileProvider({ string | buffer | file: { path, deleteOnClose } })` — wrap content as a
110
111
  `FileProvider` (13); `tempFile`/`tempDir` for staging.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncmatters/connector-sdk",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "TypeScript type definitions for the SyncMatters connector SDK (types only - connectors execute on the SyncMatters platform)",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -12,9 +12,9 @@
12
12
  "license": "MIT",
13
13
  "author": "SyncMatters",
14
14
  "homepage": "https://syncmatters.com",
15
- "typesContentHash": "7acede6f1dec917ea321ed2af103576725fe0d3c6844d242ec7d98d226988809",
15
+ "typesContentHash": "fe69e2a25155db8cffec62e1bca9cf3e975e8dfe66c8e55fadbe84dd02d62438",
16
16
  "dependencies": {
17
17
  "@types/node": "*",
18
- "@syncmatters/script-api": "^1.0.12"
18
+ "@syncmatters/script-api": "^1.0.14"
19
19
  }
20
20
  }