@pellux/goodvibes-transport-http 0.35.0 → 0.37.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.
- package/README.md +9 -7
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,13 +4,15 @@ Public GoodVibes HTTP transport package for JSON requests, auth headers, retry/b
|
|
|
4
4
|
|
|
5
5
|
Most applications should install `@pellux/goodvibes-sdk` and import `@pellux/goodvibes-sdk/transport-http`. Install this package directly when you only need the HTTP transport subset.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
- HTTP transport
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
7
|
+
Key exports:
|
|
8
|
+
- Contract routes: `invokeContractRoute`, `openContractRouteStream`, `requireContractRoute`.
|
|
9
|
+
- HTTP transport: `createHttpTransport`, `createFetch`, `requestJsonRaw`, `createJsonRequestInit`.
|
|
10
|
+
- Idempotency: `generateIdempotencyKey`.
|
|
11
|
+
- Retry / backoff: `DEFAULT_HTTP_RETRY_POLICY`, `resolveHttpRetryPolicy`, `computeBackoffDelay`, `normalizeBackoffPolicy`, `sleepWithSignal`.
|
|
12
|
+
- SSE streaming: `openServerSentEventStream`, `openRawServerSentEventStream`.
|
|
13
|
+
- Auth / headers: `normalizeAuthToken`, `resolveAuthToken`, `mergeHeaders`.
|
|
14
|
+
- Paths: `buildUrl`, `normalizeBaseUrl`, `createTransportPaths`.
|
|
15
|
+
- Middleware: `TransportMiddleware` / `TransportContext` types (compose chains with `composeMiddleware` from `transport-core`).
|
|
14
16
|
|
|
15
17
|
Use this surface when you need lower-level HTTP/SSE control or when you are building a custom GoodVibes client on top of the synced contracts.
|
|
16
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pellux/goodvibes-transport-http",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"bun": "1.3.10",
|
|
6
6
|
"node": ">=22.0.0"
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"transport"
|
|
82
82
|
],
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@pellux/goodvibes-contracts": "0.
|
|
85
|
-
"@pellux/goodvibes-errors": "0.
|
|
86
|
-
"@pellux/goodvibes-transport-core": "0.
|
|
84
|
+
"@pellux/goodvibes-contracts": "0.37.0",
|
|
85
|
+
"@pellux/goodvibes-errors": "0.37.0",
|
|
86
|
+
"@pellux/goodvibes-transport-core": "0.37.0",
|
|
87
87
|
"zod": "^4.3.6"
|
|
88
88
|
},
|
|
89
89
|
"publishConfig": {
|