@hile/micro-dynamic-configs 4.0.0 → 4.0.2
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/AI.md +6 -0
- package/README.md +2 -0
- package/package.json +3 -3
package/AI.md
CHANGED
|
@@ -132,6 +132,7 @@ Use the message packages for request/response messaging over WebSocket, process
|
|
|
132
132
|
- Do not use `stream()` for normal single-result calls.
|
|
133
133
|
- Do not rely on message IDs for business idempotency. They are transport IDs.
|
|
134
134
|
- Do not bypass `defineMessage()` for file-loaded handlers.
|
|
135
|
+
- Do not pass zero, fractional, non-finite, or oversized message timeouts. Explicit timeout values must be safe integers from `1` through `2_147_483_647` milliseconds.
|
|
135
136
|
|
|
136
137
|
## Install
|
|
137
138
|
|
|
@@ -162,7 +163,11 @@ import { MessageWorkerThread } from '@hile/message-worker-thread'
|
|
|
162
163
|
- `MessageLoader` maps `*.msg.*` files to routes using `@hile/loader`.
|
|
163
164
|
- `MessageLoader.dispatch(path, data, extras?)` invokes the matched handler.
|
|
164
165
|
- `MessageModem._send()` returns a `Promise`.
|
|
166
|
+
- `MessageModem._send()` and `_push()` use a `30_000` ms timeout when none is provided. An explicit timeout must be a safe integer from `1` through `2_147_483_647`; invalid values throw `TypeError` before a message is sent.
|
|
165
167
|
- `MessageModem._stream()` returns a Node `Readable` in object mode.
|
|
168
|
+
- Stream `timeout` and `idleTimeout` values use the same `1` through `2_147_483_647` ms range. The stream `window` must be a safe integer from `1` through `64` and defaults to `1`.
|
|
169
|
+
- Each modem schedules request, total-stream, and idle-stream deadlines through one internal deadline scheduler. This reduces active Node.js timers without changing timeout, cancellation, ordering, or error semantics.
|
|
170
|
+
- `@hile/message-ws` keeps public `decodeMessageFrame()` payloads isolated from caller-owned input by default. Its owned WebSocket `RawData` path uses a zero-copy binary Flight payload view internally.
|
|
166
171
|
- A stream request requires `exec()` to return an async iterable.
|
|
167
172
|
- `Application.call(namespace, url, data, options?)` returns a promise.
|
|
168
173
|
- `Application.stream(namespace, url, data, options?)` returns a readable stream.
|
|
@@ -182,6 +187,7 @@ import { MessageWorkerThread } from '@hile/message-worker-thread'
|
|
|
182
187
|
- Message files default-export `defineMessage(...)`.
|
|
183
188
|
- RPC callers use `await app.call(...)`.
|
|
184
189
|
- Streaming handlers are async generators.
|
|
190
|
+
- Custom modem timeout values use the documented safe-integer range.
|
|
185
191
|
- Registry is started before application nodes need discovery.
|
|
186
192
|
- Micro apps use stable namespaces and advertise reachable hosts.
|
|
187
193
|
|
package/README.md
CHANGED
|
@@ -69,6 +69,7 @@ const result = await app.call('example.service', '/ping', { hello: 'world' })
|
|
|
69
69
|
- Do not use `stream()` for normal single-result calls.
|
|
70
70
|
- Do not rely on message IDs for business idempotency. They are transport IDs.
|
|
71
71
|
- Do not bypass `defineMessage()` for file-loaded handlers.
|
|
72
|
+
- Do not pass zero, fractional, non-finite, or oversized message timeouts. Explicit timeout values must be safe integers from `1` through `2_147_483_647` milliseconds.
|
|
72
73
|
|
|
73
74
|
- Appending a secondary response getter to `client.request('/x', data)`
|
|
74
75
|
- Returning a plain object from a handler called through `stream()`.
|
|
@@ -80,6 +81,7 @@ const result = await app.call('example.service', '/ping', { hello: 'world' })
|
|
|
80
81
|
- Message files default-export `defineMessage(...)`.
|
|
81
82
|
- RPC callers use `await app.call(...)`.
|
|
82
83
|
- Streaming handlers are async generators.
|
|
84
|
+
- Custom modem timeout values use the documented safe-integer range.
|
|
83
85
|
- Registry is started before application nodes need discovery.
|
|
84
86
|
- Micro apps use stable namespaces and advertise reachable hosts.
|
|
85
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hile/micro-dynamic-configs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@hile/ioredis": "^4.0.0",
|
|
27
|
-
"@hile/micro": "^4.0.
|
|
27
|
+
"@hile/micro": "^4.0.2",
|
|
28
28
|
"ioredis": "^5.11.0",
|
|
29
29
|
"zod": "^4.4.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "46d7bcfc78a914aa2af8cd96e41b08511f5af38e"
|
|
32
32
|
}
|