@replit/river 0.6.0 → 0.6.1

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/README.md CHANGED
@@ -5,4 +5,13 @@ It's like tRPC but...
5
5
  - with JSON Schema Support
6
6
  - with full-duplex streaming
7
7
  - with support for service multiplexing
8
+ - with Result types and error handling
8
9
  - over WebSockets
10
+
11
+ ## Developing
12
+
13
+ - `npm i` -- install dependencies
14
+ - `npm check` -- lint
15
+ - `npm format` -- format
16
+ - `npm test` -- run tests
17
+ - `npm publish` -- cut a new release (should bump version in package.json first)
@@ -39,9 +39,9 @@ export const createClient = (transport) => _createRecursiveProxy(async (opts) =>
39
39
  const [input] = opts.args;
40
40
  const streamId = nanoid();
41
41
  function belongsToSameStream(msg) {
42
- return (msg.streamId === streamId &&
43
- msg.serviceName === serviceName &&
44
- msg.procedureName === procName);
42
+ return (msg.serviceName === serviceName &&
43
+ msg.procedureName === procName &&
44
+ (msg.streamId === streamId || msg.streamId === 'global'));
45
45
  }
46
46
  if (input === undefined) {
47
47
  // stream case (stream methods are called with zero arguments)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@replit/river",
3
3
  "sideEffects": false,
4
4
  "description": "It's like tRPC but... with JSON Schema Support, duplex streaming and support for service multiplexing. Transport agnostic!",
5
- "version": "0.6.0",
5
+ "version": "0.6.1",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": "./dist/router/index.js",