grpc-dc 0.31.0 → 0.32.6

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/index.js CHANGED
@@ -26,6 +26,10 @@ export { createGrpcDcBridge, createGrpcDcServerBridge } from "./src/wasm_bridge.
26
26
  // modules (node:dgram via webrtc/js/direct.js) and this index
27
27
  // is also loaded in browsers. Import it directly:
28
28
  // import { directClientEndpoint } from "grpc-dc/webrtc_direct";
29
+ // The generated HTTP/2 client transport (src/http2.js, calls
30
+ // official gRPC servers directly) is Node-only for the same
31
+ // reason (node:http2). Import it directly:
32
+ // import { http2Channel } from "grpc-dc/http2";
29
33
 
30
34
  import { Channel } from "./src/channel.js";
31
35
  import { Endpoint } from "./src/endpoint.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grpc-dc",
3
- "version": "0.31.0",
3
+ "version": "0.32.6",
4
4
  "description": "gRPC in the browser over WebRTC DataChannels: dependency-free generated gRPC clients & servers for JavaScript — no grpc-web proxy, no external runtime",
5
5
  "keywords": [
6
6
  "grpc",
@@ -28,13 +28,40 @@
28
28
  "default": "./index.js"
29
29
  },
30
30
  "./wire_gen.js": "./wire_gen.js",
31
- "./webrtc_direct": "./src/webrtc_direct.js"
31
+ "./webrtc_direct": "./src/webrtc_direct.js",
32
+ "./http2": "./src/http2.js"
33
+ },
34
+ "bin": {
35
+ "protoc-gen-grpc-dc-js": "plugin/protoc-gen-grpc-dc-js.mjs",
36
+ "protoc-gen-grpc-dc-c": "plugin/protoc-gen-grpc-dc-c.mjs",
37
+ "protoc-gen-grpc-dc-go": "plugin/protoc-gen-grpc-dc-go.mjs",
38
+ "protoc-gen-grpc-dc-python": "plugin/protoc-gen-grpc-dc-python.mjs",
39
+ "protoc-gen-grpc-dc-rust": "plugin/protoc-gen-grpc-dc-rust.mjs",
40
+ "protoc-gen-grpc-dc-java": "plugin/protoc-gen-grpc-dc-java.mjs",
41
+ "protoc-gen-grpc-dc-csharp": "plugin/protoc-gen-grpc-dc-csharp.mjs",
42
+ "protoc-gen-grpc-dc-cpp": "plugin/protoc-gen-grpc-dc-cpp.mjs",
43
+ "protoc-gen-grpc-dc-swift": "plugin/protoc-gen-grpc-dc-swift.mjs",
44
+ "protoc-gen-grpc-dc-kotlin": "plugin/protoc-gen-grpc-dc-kotlin.mjs",
45
+ "protoc-gen-grpc-dc-dart": "plugin/protoc-gen-grpc-dc-dart.mjs",
46
+ "protoc-gen-grpc-dc-zig": "plugin/protoc-gen-grpc-dc-zig.mjs",
47
+ "protoc-gen-grpc-dc-lua": "plugin/protoc-gen-grpc-dc-lua.mjs",
48
+ "protoc-gen-grpc-dc-ruby": "plugin/protoc-gen-grpc-dc-ruby.mjs",
49
+ "protoc-gen-grpc-dc-php": "plugin/protoc-gen-grpc-dc-php.mjs",
50
+ "protoc-gen-grpc-dc-scala": "plugin/protoc-gen-grpc-dc-scala.mjs",
51
+ "protoc-gen-grpc-dc-wasm-go": "plugin/protoc-gen-grpc-dc-wasm-go.mjs",
52
+ "protoc-gen-grpc-dc-wasm-zig": "plugin/protoc-gen-grpc-dc-wasm-zig.mjs",
53
+ "protoc-gen-grpc-dc-wasm-cpp": "plugin/protoc-gen-grpc-dc-wasm-cpp.mjs",
54
+ "protoc-gen-grpc-dc-wasm-swift": "plugin/protoc-gen-grpc-dc-wasm-swift.mjs",
55
+ "protoc-gen-grpc-dc-wasm-kotlin": "plugin/protoc-gen-grpc-dc-wasm-kotlin.mjs",
56
+ "protoc-gen-grpc-dc-wasm-scala": "plugin/protoc-gen-grpc-dc-wasm-scala.mjs",
57
+ "protoc-gen-grpc-dc-kotlin-native": "plugin/protoc-gen-grpc-dc-kotlin-native.mjs"
32
58
  },
33
59
  "files": [
34
60
  "index.js",
35
61
  "index.d.ts",
36
62
  "wire_gen.js",
37
- "src"
63
+ "src",
64
+ "plugin"
38
65
  ],
39
66
  "scripts": {
40
67
  "test": "node --test test/*.test.js"