service-bridge 1.8.5-dev.47 → 1.8.5-dev.49

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.
Files changed (2) hide show
  1. package/dist/index.js +0 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2317,9 +2317,6 @@ function servicebridge(url, serviceKey, opts = {}) {
2317
2317
  async serve(opts2 = {}) {
2318
2318
  if (workerServer)
2319
2319
  throw new Error("serve() already called");
2320
- if (fnHandlers.size === 0 && eventHandlers.size === 0) {
2321
- throw new Error("No handlers registered. Call handleRpc() or handleEvent() before serve().");
2322
- }
2323
2320
  if (opts2.maxInFlight != null && (!Number.isInteger(opts2.maxInFlight) || opts2.maxInFlight < 1)) {
2324
2321
  throw new Error("serve() maxInFlight must be a positive integer");
2325
2322
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "service-bridge",
3
- "version": "1.8.5-dev.47",
3
+ "version": "1.8.5-dev.49",
4
4
  "type": "module",
5
5
  "description": "ServiceBridge SDK for Node.js — one self-hosted runtime for RPC, events, workflows, and jobs without a service mesh or sidecars. Direct gRPC between workers; durable events, jobs, tracing, auto mTLS. One Go runtime + PostgreSQL.",
6
6
  "keywords": [