🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@connectrpc/connect

Package Overview
Dependencies
Maintainers
5
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@connectrpc/connect - npm Package Compare versions

Comparing version
2.1.0
to
2.1.1
+1
-1
dist/cjs/callback-client.d.ts

@@ -15,3 +15,3 @@ import type { DescService, MessageInitShape, MessageShape, DescMethodServerStreaming, DescMethodUnary } from "@bufbuild/protobuf";

* If a call is cancelled by an AbortController or by the returned
* cancel-function, ConnectErrors with the code Canceled are
* cancel function, ConnectErrors with the code Canceled are
* silently discarded.

@@ -18,0 +18,0 @@ *

@@ -12,3 +12,3 @@ /**

/**
* Canceled, usually be the user
* Canceled, usually by the user
*/

@@ -15,0 +15,0 @@ Canceled = 1,

@@ -29,3 +29,3 @@ "use strict";

/**
* Canceled, usually be the user
* Canceled, usually by the user
*/

@@ -32,0 +32,0 @@ Code[Code["Canceled"] = 1] = "Canceled";

@@ -52,3 +52,3 @@ import { Code } from "./code.js";

* raise an error with details, and it is up to the protocol implementation
* to encode and send the details along with error.
* to encode and send the details along with the error.
*/

@@ -55,0 +55,0 @@ constructor(message: string, code?: Code, metadata?: HeadersInit, outgoingDetails?: OutgoingDetail[], cause?: unknown);

@@ -39,3 +39,3 @@ "use strict";

* raise an error with details, and it is up to the protocol implementation
* to encode and send the details along with error.
* to encode and send the details along with the error.
*/

@@ -42,0 +42,0 @@ constructor(message, code = code_js_1.Code.Unknown, metadata, outgoingDetails, cause) {

@@ -101,3 +101,3 @@ import type { MessageInitShape, DescMessage, DescService, DescMethod, MessageShape, DescMethodBiDiStreaming, DescMethodClientStreaming, DescMethodServerStreaming, DescMethodUnary } from "@bufbuild/protobuf";

/**
* UnaryImp is the signature of the implementation of a unary RPC.
* UnaryImpl is the signature of the implementation of a unary RPC.
*/

@@ -104,0 +104,0 @@ export type UnaryImpl<I extends DescMessage, O extends DescMessage> = (request: MessageShape<I>, context: HandlerContext) => Promise<MessageInitShape<O>> | MessageInitShape<O>;

@@ -43,3 +43,3 @@ "use strict";

// See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents
result.set(headers_js_1.headerUserAgent, "connect-es/2.1.0");
result.set(headers_js_1.headerUserAgent, "connect-es/2.1.1");
}

@@ -46,0 +46,0 @@ return result;

@@ -35,3 +35,3 @@ "use strict";

// See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents
const userAgent = (_b = (_a = result.get(headers_js_1.headerUserAgent)) !== null && _a !== void 0 ? _a : result.get(headers_js_1.headerXUserAgent)) !== null && _b !== void 0 ? _b : "connect-es/2.1.0";
const userAgent = (_b = (_a = result.get(headers_js_1.headerUserAgent)) !== null && _a !== void 0 ? _a : result.get(headers_js_1.headerXUserAgent)) !== null && _b !== void 0 ? _b : "connect-es/2.1.1";
result.set(headers_js_1.headerXUserAgent, userAgent);

@@ -38,0 +38,0 @@ if (setUserAgent) {

@@ -32,3 +32,3 @@ "use strict";

// See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents
result.set(headers_js_1.headerUserAgent, "connect-es/2.1.0");
result.set(headers_js_1.headerUserAgent, "connect-es/2.1.1");
}

@@ -35,0 +35,0 @@ if (timeoutMs !== undefined) {

@@ -17,3 +17,3 @@ import type { MethodImpl, ServiceImpl } from "./implementation.js";

*
* The pass this function to adapters and plugins, for example
* Then pass this function to adapters and plugins, for example
* from @connectrpc/connect-node, or from @connectrpc/connect-fastify.

@@ -20,0 +20,0 @@ */

@@ -15,3 +15,3 @@ import type { DescService, MessageInitShape, MessageShape, DescMethodServerStreaming, DescMethodUnary } from "@bufbuild/protobuf";

* If a call is cancelled by an AbortController or by the returned
* cancel-function, ConnectErrors with the code Canceled are
* cancel function, ConnectErrors with the code Canceled are
* silently discarded.

@@ -18,0 +18,0 @@ *

@@ -12,3 +12,3 @@ /**

/**
* Canceled, usually be the user
* Canceled, usually by the user
*/

@@ -15,0 +15,0 @@ Canceled = 1,

@@ -26,3 +26,3 @@ // Copyright 2021-2025 The Connect Authors

/**
* Canceled, usually be the user
* Canceled, usually by the user
*/

@@ -29,0 +29,0 @@ Code[Code["Canceled"] = 1] = "Canceled";

@@ -52,3 +52,3 @@ import { Code } from "./code.js";

* raise an error with details, and it is up to the protocol implementation
* to encode and send the details along with error.
* to encode and send the details along with the error.
*/

@@ -55,0 +55,0 @@ constructor(message: string, code?: Code, metadata?: HeadersInit, outgoingDetails?: OutgoingDetail[], cause?: unknown);

@@ -36,3 +36,3 @@ // Copyright 2021-2025 The Connect Authors

* raise an error with details, and it is up to the protocol implementation
* to encode and send the details along with error.
* to encode and send the details along with the error.
*/

@@ -39,0 +39,0 @@ constructor(message, code = Code.Unknown, metadata, outgoingDetails, cause) {

@@ -101,3 +101,3 @@ import type { MessageInitShape, DescMessage, DescService, DescMethod, MessageShape, DescMethodBiDiStreaming, DescMethodClientStreaming, DescMethodServerStreaming, DescMethodUnary } from "@bufbuild/protobuf";

/**
* UnaryImp is the signature of the implementation of a unary RPC.
* UnaryImpl is the signature of the implementation of a unary RPC.
*/

@@ -104,0 +104,0 @@ export type UnaryImpl<I extends DescMessage, O extends DescMessage> = (request: MessageShape<I>, context: HandlerContext) => Promise<MessageInitShape<O>> | MessageInitShape<O>;

@@ -39,3 +39,3 @@ // Copyright 2021-2025 The Connect Authors

// See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents
result.set(headerUserAgent, "connect-es/2.1.0");
result.set(headerUserAgent, "connect-es/2.1.1");
}

@@ -42,0 +42,0 @@ return result;

@@ -31,3 +31,3 @@ // Copyright 2021-2025 The Connect Authors

// See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents
const userAgent = (_b = (_a = result.get(headerUserAgent)) !== null && _a !== void 0 ? _a : result.get(headerXUserAgent)) !== null && _b !== void 0 ? _b : "connect-es/2.1.0";
const userAgent = (_b = (_a = result.get(headerUserAgent)) !== null && _a !== void 0 ? _a : result.get(headerXUserAgent)) !== null && _b !== void 0 ? _b : "connect-es/2.1.1";
result.set(headerXUserAgent, userAgent);

@@ -34,0 +34,0 @@ if (setUserAgent) {

@@ -28,3 +28,3 @@ // Copyright 2021-2025 The Connect Authors

// See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents
result.set(headerUserAgent, "connect-es/2.1.0");
result.set(headerUserAgent, "connect-es/2.1.1");
}

@@ -31,0 +31,0 @@ if (timeoutMs !== undefined) {

@@ -17,3 +17,3 @@ import type { MethodImpl, ServiceImpl } from "./implementation.js";

*
* The pass this function to adapters and plugins, for example
* Then pass this function to adapters and plugins, for example
* from @connectrpc/connect-node, or from @connectrpc/connect-fastify.

@@ -20,0 +20,0 @@ */

{
"name": "@connectrpc/connect",
"version": "2.1.0",
"version": "2.1.1",
"description": "Type-safe APIs with Protobuf and TypeScript.",

@@ -62,7 +62,7 @@ "license": "Apache-2.0",

"devDependencies": {
"@bufbuild/buf": "^1.56.0",
"@bufbuild/protoc-gen-es": "^2.7.0",
"@types/jasmine": "^5.1.8",
"jasmine": "^5.9.0"
"@bufbuild/buf": "^1.59.0",
"@bufbuild/protoc-gen-es": "^2.10.0",
"@types/jasmine": "^5.1.12",
"jasmine": "^5.12.0"
}
}

@@ -5,3 +5,3 @@ # @connectrpc/connect

[@connectrpc/connect](https://www.npmjs.com/package/@connectrpc/connect) brings them to TypeScript,
the web browser, and to Node.js.
web browsers, and Node.js.

@@ -41,7 +41,7 @@ With Connect, you define your schema first:

optimized for the web. This gives you unparalleled interoperability with
full-stack type-safety.
full-stack type safety.
## Get started on the web
Follow our [10 minute tutorial](https://connectrpc.com/docs/web/getting-started) where
Follow our [10-minute tutorial](https://connectrpc.com/docs/web/getting-started) where
we use [Vite](https://vitejs.dev/) and [React](https://reactjs.org/) to create a

@@ -58,3 +58,3 @@ web interface for ELIZA.

Follow our [10 minute tutorial](https://connectrpc.com/docs/node/getting-started)
Follow our [10-minute tutorial](https://connectrpc.com/docs/node/getting-started)
to spin up a service in Node.js, and call it from the web, and from a gRPC client

@@ -61,0 +61,0 @@ in your terminal.