@procedures/peer 0.42.0 → 0.44.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @procedures/peer
2
2
 
3
+ ## 0.44.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 4dada47: The server, the host and each server transport take a logger (CLI-87). This change is additive. Thus it is a PATCH of the client group (decision D13).
8
+
9
+ - `@procedures/client` exports the type `Logger`: `log(level, message, fields)`, with the levels `debug`, `info`, `warn` and `error`. The `Logger` of `@mark1russell7/service` has the same shape.
10
+ - `Server`, `ProcedureServer`, `HttpServerTransport`, `WebSocketServerTransport` and `McpServerTransport` take the option `logger`. A transport without its own logger uses the logger of its server.
11
+ - The fields of each line hold its context: the transport, the procedure, the request ID and the error.
12
+ - `onError` of the server gets a third argument, `{ logger }`. When the server has a logger, the logger also gets the error.
13
+ - `createProcedureHost({ logger })` of `@procedures/peer` gives the logger to its server and to each face. `HostFaceContext.logger` gives it to a face factory.
14
+ - `writeLog()` writes one line to a logger, or to the console when there is no logger.
15
+ - Without a logger, the console output does not change.
16
+ - Updated dependencies [4dada47]
17
+ - Updated dependencies [19b7a25]
18
+ - @procedures/client@0.44.0
19
+
20
+ ## 0.43.0
21
+
22
+ ### Patch Changes
23
+
24
+ - @procedures/client@0.43.0
25
+
3
26
  ## 0.42.0
4
27
 
5
28
  ### Minor Changes