pypi / connectrpc
connectrpc
What changed in connectrpc 0.9 to 0.13, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
19 breaking1 security12 new APIs and options2 performance7 behavior and defaults18 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initconnectrpc 0.1323 changes
Breaking changes 5
Expired client timeouts fail with deadline_exceeded.
Malformed messages from the peer are reported as invalid_argument.
Support for the end-of-life Python 3.10 is dropped.
The read_max_bytes limit is enforced on unary error responses as well.
Malformed timeout headers are rejected with invalid_argument.
Security 1
Invalid envelope flags are rejected before messages are decoded.
New APIs and options 2
A method's stream type is exposed on the request context.
The ASGI server supports trio for async services in addition to asyncio; client support is not included yet.
Behavior and default changes 3
The ASGI server adds timeout handling; async services enforce request timeouts instead of only propagating them.
Codec type variables now have defaults.
Single-message requests are sent as a sized body.
Fixes and other changes 12
Unknown Connect stream compression is rejected with unimplemented.
WSGI bounds the request body by CONTENT_LENGTH.
WSGI returns 415 for an unknown GET encoding.
Error bodies are written as UTF-8.
Errors occurring before a gRPC stream starts are sent as gRPC responses.
Parsing gRPC timeouts no longer loses precision.
Metadata interceptors are unwound after cancellation.
Python 3.15 is officially supported.
The proto plugin now handles services without methods.
Stream deadlines no longer cancel the caller between messages.
The wrapped generator is closed when a stream interceptor finishes.
Streams that end mid-message or without an end message are reported.
connectrpc 0.128 changes
Breaking changes 2
The JSON codec now accepts fields unknown to the schema by default; set ignore_unknown_fields=False to preserve the previous behavior.
The default incoming message size limit is now 4MB instead of unlimited; raise it for larger messages or set it to None to disable the limit.
New APIs and options 2
ResponseMetadata now exposes the HTTP status code.
A service descriptor is now exposed.
Performance 1
The streaming path avoids quadratic buffer copies.
Behavior and default changes 2
Metadata interceptors execute at the start of the chain, before the request is parsed.
Implemented protocols now use positional-only parameters.
Fixes and other changes 1
The message read limit is checked before compression and applied during decompression.
connectrpc 0.1111 changes
Breaking changes 8
ConnectError details now use a dedicated ErrorDetail class with type_name and message_bytes data and a value method, replacing direct google.protobuf Any values.
Use this compatibility codec when setting a JSON codec with google.protobuf messages.
Generated stubs now target protobuf-py messages by default instead of google.protobuf messages.
The generator is now written in Python; prebuilt binaries and a go run mechanism are no longer provided.
The async tri-state option is replaced by an io enum set to async or sync; it defaults to generating both.
Generated service handlers now emit RequestContext parameterized by their input and output types.
RequestContext attributes are properties rather than getter methods, so access headers as ctx.headers instead of ctx.headers().
ResponseMetadata attributes are properties rather than getter methods, so access headers as meta.headers instead of meta.headers().
New APIs and options 1
Set protobuf=google in plugin settings to generate stubs targeting existing google.protobuf messages through the compatibility shim.
Performance 1
Avoids unnecessary copies and reuses protocol singletons.
Fixes and other changes 1
Fixes relative path calculation for generated code, addressing an interop issue that likely prevented most usage.
connectrpc 0.106 changes
Breaking changes 1
The proto_json bool has been replaced by the codec parameter; binary protobuf remains the default.
New APIs and options 2
Code generation can now produce only async or only sync code.
A codec parameter accepts objects implementing the Codec protocol, allowing custom encoding strategies; use proto_json_codec() to opt into JSON encoding.
Behavior and default changes 1
Non-Connect handler exceptions are surfaced to the user.
Fixes and other changes 2
Content type parameters are ignored when matching content types.
GET request query parameters are reordered to match the spec and improve HTTP cache performance.
connectrpc 0.911 changes
Breaking changes 3
Client configuration now takes compression instances rather than compression-name strings.
The PyPI package is now named connectrpc; update dependency specifications from connect-python to continue receiving updates.
Configure a client to use gRPC with protocol=ProtocolType.GRPC instead of grpc=True.
New APIs and options 5
The Compression protocol is public, allowing developers to implement custom compression methods and configure defaults with custom parameters.
Error details now support debug information.
The release adds support for gRPC-Web.
Metadata interceptors' on_end method now accepts an Error | None argument.
Servers can be configured with supported compression methods instead of having them automatically inspected from application dependencies.
Behavior and default changes 1
Compression defaults now enable only gzip, matching other Connect implementations.
Fixes and other changes 2
GET parameters are now processed for empty request messages.
A server streaming handler is now cancelled when the client disconnects.