@orpc/standard-server-peer 0.0.0-next.518cbe1 → 0.0.0-next.55474d7
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 +4 -6
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -49,14 +49,12 @@ You can find the full documentation [here](https://orpc.unnoq.com).
|
|
|
49
49
|
- [@orpc/contract](https://www.npmjs.com/package/@orpc/contract): Build your API contract.
|
|
50
50
|
- [@orpc/server](https://www.npmjs.com/package/@orpc/server): Build your API or implement API contract.
|
|
51
51
|
- [@orpc/client](https://www.npmjs.com/package/@orpc/client): Consume your API on the client with type-safety.
|
|
52
|
-
- [@orpc/
|
|
52
|
+
- [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests.
|
|
53
|
+
- [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with [NestJS](https://nestjs.com/).
|
|
53
54
|
- [@orpc/react](https://www.npmjs.com/package/@orpc/react): Utilities for integrating oRPC with React and React Server Actions.
|
|
54
|
-
- [@orpc/
|
|
55
|
-
- [@orpc/vue-query](https://www.npmjs.com/package/@orpc/vue-query): Integration with [Vue Query](https://tanstack.com/query/latest/docs/framework/vue/overview).
|
|
56
|
-
- [@orpc/solid-query](https://www.npmjs.com/package/@orpc/solid-query): Integration with [Solid Query](https://tanstack.com/query/latest/docs/framework/solid/overview).
|
|
57
|
-
- [@orpc/svelte-query](https://www.npmjs.com/package/@orpc/svelte-query): Integration with [Svelte Query](https://tanstack.com/query/latest/docs/framework/svelte/overview).
|
|
55
|
+
- [@orpc/tanstack-query](https://www.npmjs.com/package/@orpc/tanstack-query): [TanStack Query](https://tanstack.com/query/latest) integration.
|
|
58
56
|
- [@orpc/vue-colada](https://www.npmjs.com/package/@orpc/vue-colada): Integration with [Pinia Colada](https://pinia-colada.esm.dev/).
|
|
59
|
-
- [@orpc/
|
|
57
|
+
- [@orpc/hey-api](https://www.npmjs.com/package/@orpc/hey-api): [Hey API](https://heyapi.dev/) integration.
|
|
60
58
|
- [@orpc/zod](https://www.npmjs.com/package/@orpc/zod): More schemas that [Zod](https://zod.dev/) doesn't support yet.
|
|
61
59
|
- [@orpc/valibot](https://www.npmjs.com/package/@orpc/valibot): OpenAPI spec generation from [Valibot](https://valibot.dev/).
|
|
62
60
|
- [@orpc/arktype](https://www.npmjs.com/package/@orpc/arktype): OpenAPI spec generation from [ArkType](https://arktype.io/).
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable, AsyncIdQueueCloseOptions as AsyncIdQueueCloseOptions$1, CreateAsyncIteratorObjectCleanupFn } from '@orpc/shared';
|
|
2
2
|
import { StandardRequest, StandardResponse, EventMeta, StandardHeaders } from '@orpc/standard-server';
|
|
3
3
|
|
|
4
|
-
type EncodedMessage = string | ArrayBufferLike
|
|
4
|
+
type EncodedMessage = string | ArrayBufferLike;
|
|
5
5
|
interface EncodedMessageSendFn {
|
|
6
6
|
(message: EncodedMessage): Promisable<void>;
|
|
7
7
|
}
|
|
@@ -63,7 +63,7 @@ declare function isEventIteratorHeaders(headers: StandardHeaders): boolean;
|
|
|
63
63
|
|
|
64
64
|
interface AsyncIdQueueCloseOptions {
|
|
65
65
|
id?: number;
|
|
66
|
-
reason?:
|
|
66
|
+
reason?: unknown;
|
|
67
67
|
}
|
|
68
68
|
declare class AsyncIdQueue<T> {
|
|
69
69
|
private readonly openIds;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable, AsyncIdQueueCloseOptions as AsyncIdQueueCloseOptions$1, CreateAsyncIteratorObjectCleanupFn } from '@orpc/shared';
|
|
2
2
|
import { StandardRequest, StandardResponse, EventMeta, StandardHeaders } from '@orpc/standard-server';
|
|
3
3
|
|
|
4
|
-
type EncodedMessage = string | ArrayBufferLike
|
|
4
|
+
type EncodedMessage = string | ArrayBufferLike;
|
|
5
5
|
interface EncodedMessageSendFn {
|
|
6
6
|
(message: EncodedMessage): Promisable<void>;
|
|
7
7
|
}
|
|
@@ -63,7 +63,7 @@ declare function isEventIteratorHeaders(headers: StandardHeaders): boolean;
|
|
|
63
63
|
|
|
64
64
|
interface AsyncIdQueueCloseOptions {
|
|
65
65
|
id?: number;
|
|
66
|
-
reason?:
|
|
66
|
+
reason?: unknown;
|
|
67
67
|
}
|
|
68
68
|
declare class AsyncIdQueue<T> {
|
|
69
69
|
private readonly openIds;
|
package/dist/index.mjs
CHANGED
|
@@ -172,7 +172,7 @@ async function encodeRawMessage(data, blobData) {
|
|
|
172
172
|
new TextEncoder().encode(json),
|
|
173
173
|
new Uint8Array([JSON_AND_BINARY_DELIMITER]),
|
|
174
174
|
blobData
|
|
175
|
-
]);
|
|
175
|
+
]).arrayBuffer();
|
|
176
176
|
}
|
|
177
177
|
async function decodeRawMessage(raw) {
|
|
178
178
|
if (typeof raw === "string") {
|
|
@@ -188,7 +188,7 @@ async function decodeRawMessage(raw) {
|
|
|
188
188
|
const blobData = buffer.slice(delimiterIndex + 1);
|
|
189
189
|
return {
|
|
190
190
|
json: JSON.parse(jsonPart),
|
|
191
|
-
blobData
|
|
191
|
+
blobData: blobData.buffer
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/standard-server-peer",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.55474d7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@orpc/shared": "0.0.0-next.
|
|
27
|
-
"@orpc/standard-server": "0.0.0-next.
|
|
26
|
+
"@orpc/shared": "0.0.0-next.55474d7",
|
|
27
|
+
"@orpc/standard-server": "0.0.0-next.55474d7"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "unbuild",
|