@agntcy/slim-bindings 3.4.0 → 3.5.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.
Files changed (2) hide show
  1. package/index.d.ts +15 -1
  2. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -5,12 +5,26 @@
5
5
  * Type definitions for @agntcy/slim-bindings.
6
6
  * Full types are in types/ (generated from bindings before publish).
7
7
  *
8
+ * The bindings span two UniFFI namespaces, and both are surfaced here:
9
+ * - ./types/slim_bindings — core API (App, Name, SessionType, ...)
10
+ * - ./types/slim_rpc — SLIMRPC (Channel, Server, RpcError, ContextLike, ...)
11
+ * This mirrors the runtime: ./named-exports.js (scripts/gen-named-exports.mjs)
12
+ * re-exports value exports from both, and the default export is the whole
13
+ * platform-binding namespace (see binding.js).
14
+ *
8
15
  * Both import styles are supported:
9
16
  * - named: `import { Channel, RpcError } from '@agntcy/slim-bindings';`
10
17
  * (runtime values come from ./named-exports.js; types from here)
11
18
  * - default: `import slimBindings from '@agntcy/slim-bindings';`
12
19
  * then access the API off it (`slimBindings.SessionType`).
20
+ *
21
+ * Each namespace's own `default` export (its UniFFI init/converters object) is
22
+ * omitted from the default-export type: on the runtime namespace, `default` is
23
+ * the generated index's `{ slim_bindings, slim_rpc }`, not either of those.
13
24
  */
14
25
  export * from './types/slim_bindings';
15
- import * as slimBindings from './types/slim_bindings';
26
+ export * from './types/slim_rpc';
27
+ import * as slimCore from './types/slim_bindings';
28
+ import * as slimRpc from './types/slim_rpc';
29
+ declare const slimBindings: Omit<typeof slimCore & typeof slimRpc, 'default'>;
16
30
  export default slimBindings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agntcy/slim-bindings",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "SLIM Node.js bindings using UniFFI",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -42,14 +42,14 @@
42
42
  "@ubjs/node": "0.31.0-3"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@agntcy/slim-bindings-darwin-arm64": "3.4.0",
46
- "@agntcy/slim-bindings-darwin-x64": "3.4.0",
47
- "@agntcy/slim-bindings-linux-arm64-gnu": "3.4.0",
48
- "@agntcy/slim-bindings-linux-arm64-musl": "3.4.0",
49
- "@agntcy/slim-bindings-linux-x64-gnu": "3.4.0",
50
- "@agntcy/slim-bindings-linux-x64-musl": "3.4.0",
51
- "@agntcy/slim-bindings-win32-arm64-msvc": "3.4.0",
52
- "@agntcy/slim-bindings-win32-x64-msvc": "3.4.0"
45
+ "@agntcy/slim-bindings-darwin-arm64": "3.5.0",
46
+ "@agntcy/slim-bindings-darwin-x64": "3.5.0",
47
+ "@agntcy/slim-bindings-linux-arm64-gnu": "3.5.0",
48
+ "@agntcy/slim-bindings-linux-arm64-musl": "3.5.0",
49
+ "@agntcy/slim-bindings-linux-x64-gnu": "3.5.0",
50
+ "@agntcy/slim-bindings-linux-x64-musl": "3.5.0",
51
+ "@agntcy/slim-bindings-win32-arm64-msvc": "3.5.0",
52
+ "@agntcy/slim-bindings-win32-x64-msvc": "3.5.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^24.19.1",