Skip to content

Expose gRPC compression options#2144

Open
Sushisource wants to merge 1 commit into
mainfrom
core-compression-options
Open

Expose gRPC compression options#2144
Sushisource wants to merge 1 commit into
mainfrom
core-compression-options

Conversation

@Sushisource

@Sushisource Sushisource commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

  • expose gRPC compression as explicit discriminated option variants on NativeConnection
  • keep gzip as the default while allowing grpcCompression: { codec: 'none' } to opt out
  • model the public/native types so future variants can add variant-specific fields, e.g. { codec: 'zstd', level: 3 }, without adding level to gzip

Testing

  • pnpm exec prettier --write packages/worker/src/connection-options.ts packages/core-bridge/ts/native.ts
  • pnpm -C packages/worker run build
  • pnpm -C packages/test run build:ts
  • pnpm -C packages/test exec ava ./lib/test-native-connection.js --match='NativeConnection: gRPC compression*'

@Sushisource Sushisource force-pushed the core-compression-options branch from f74327f to 3a14d07 Compare June 26, 2026 22:16
@Sushisource Sushisource marked this pull request as ready for review June 26, 2026 22:19
@Sushisource Sushisource requested a review from a team as a code owner June 26, 2026 22:19
@Sushisource Sushisource force-pushed the core-compression-options branch from 3a14d07 to 5aadf0c Compare June 26, 2026 22:34
@Sushisource Sushisource force-pushed the core-compression-options branch from 5aadf0c to 5358fd5 Compare June 26, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant