@imqueue/rpc 3.7.0 → 3.7.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +127 -1
  2. package/README.md +6 -2
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -4,9 +4,34 @@ Notable changes to `@imqueue/rpc`. Entries start at 3.3.1 — the first release
4
4
  whose behavior changes needed a written record; earlier history is in the git
5
5
  log.
6
6
 
7
+ A released version absent from this file changed no behavior — it was a
8
+ documentation or CI-only release. Dependency bumps do get an entry, because a
9
+ raised `@imqueue/core` floor is how most fixes in the transport reach a service.
10
+
7
11
  This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
12
 
9
- ## [Unreleased]
13
+ ## [3.7.1] - 2026-08-22
14
+
15
+ ### Changed
16
+
17
+ - Raised the `@imqueue/core` dependency to `^3.4.2`. Recorded because this file's
18
+ rule is that dependency bumps get an entry — but unlike the previous floor
19
+ raise, this one carries nothing from the transport: `3.4.1` and `3.4.2` were a
20
+ documentation and packaging pair, a licence badge that linked through the
21
+ long-dead `rawgit.com` and a `repository.url` that used `git://`, which stopped
22
+ resolving when GitHub retired its git daemon. A reader comparing floors should
23
+ know this one moves no behavior.
24
+
25
+ ### Fixed
26
+
27
+ - `repository.url` read `git@github.com/imqueue/rpc.git` — no colon after the
28
+ host, so it was not a valid SSH URL or a valid URL of any other kind. npm
29
+ normalised it on publish to `git+ssh://git@github.com/imqueue/rpc.git`, which
30
+ resolves only for someone holding a key on the account, while npm renders this
31
+ field as the package's Repository link for anonymous readers. It is now
32
+ `git+https://github.com/imqueue/rpc.git`.
33
+
34
+ ## [3.7.0] - 2026-08-20
10
35
 
11
36
  ### Added
12
37
 
@@ -40,6 +65,107 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
40
65
  is resolved, `doNotThrow`, the re-thrown value and the fact that a throwing
41
66
  logger replaces the original error.
42
67
 
68
+ - Raised the `@imqueue/core` dependency to `^3.4.0`, which reports the
69
+ transport's previously silent failures through the configured logger — among
70
+ them a reply that could not be written back to the caller's queue, which is
71
+ why this package adds no reporting of its own there.
72
+
73
+ ## [3.6.1] - 2026-08-18
74
+
75
+ ### Changed
76
+
77
+ - Raised the `@imqueue/core` dependency to `^3.3.3`, which stops a starting
78
+ queue overwriting the server-global `notify-keyspace-events` configuration.
79
+
80
+ ## [3.6.0] - 2026-08-18
81
+
82
+ ### Fixed
83
+
84
+ - **A `@lock()`'d call could resolve waiters with another call's result, and one
85
+ waiter's timeout rejected all of them.** `IMQLock.deadlockTimeout` rejected
86
+ through `release()`, which does two things a timeout has no business doing: it
87
+ deleted the holder's lock while the holder was still running, and it drained
88
+ the whole queue.
89
+
90
+ The first let a later call acquire the freed key and run alongside the original
91
+ holder — and when that holder finally finished, its release landed on the *new*
92
+ holder's lock, resolving waiters with a result computed for a call they had
93
+ nothing to do with and freeing a lock still in use, letting a third call in
94
+ behind it. Silently wrong values, under exactly the overlapping load that
95
+ coalescing `@lock()` exists to collapse. The second meant a call that arrived
96
+ a moment ago died for an older call's patience.
97
+
98
+ Locks now carry a token. `release()` takes it as an optional fourth argument
99
+ and is ignored when a different call owns the key; an unowned key is not a
100
+ conflict, so a straggler can still satisfy waiters nobody else will. `lock()`
101
+ reads the token and passes it, so every decorator user is covered with no code
102
+ change, and a release without a token behaves exactly as before. The timer now
103
+ splices out its own task and rejects only that waiter, while still freeing the
104
+ key — a holder that never releases would otherwise poison it for the life of
105
+ the process.
106
+
107
+ ## [3.5.4] - 2026-08-09
108
+
109
+ ### Fixed
110
+
111
+ - **Tracing hooks installed on the default options could patch a copy nothing
112
+ ever called.** `DEFAULT_IMQ_SERVICE_OPTIONS` and `DEFAULT_IMQ_CLIENT_OPTIONS`
113
+ were plain module-scope objects, so a process that evaluated this module twice
114
+ held two copies — which is what a loader handling ESM and CJS through separate
115
+ pipelines does: under `tsx`, `require('@imqueue/rpc')` and
116
+ `import('@imqueue/rpc')` return distinct instances.
117
+
118
+ Anything that installs behavior by mutating those objects then patched a copy
119
+ the application never calls. `@imqueue/opentelemetry` attaches its
120
+ `beforeCall`/`afterCall`/`wrapCall` hooks that way, and produced no spans at
121
+ all under such a loader — with no error, since the patch itself succeeded.
122
+
123
+ Both are now keyed on `Symbol.for`, making them singletons per process rather
124
+ than per module evaluation, so a mutation through any instance is visible to
125
+ all. This also removes the "duplicate installs at different tree depths"
126
+ caveat the instrumentation documents.
127
+
128
+ ## [3.5.3] - 2026-08-04
129
+
130
+ ### Changed
131
+
132
+ - Raised the `@imqueue/core` dependency to `^3.3.2`.
133
+
134
+ ## [3.5.2] - 2026-08-01
135
+
136
+ ### Changed
137
+
138
+ - Raised the `@imqueue/core` dependency to `^3.3.0`, which keeps safe-delivery
139
+ lease recovery and the cleanup sweep alive after a transient sweep failure,
140
+ and drops the unresolvable `./debug` export subpath.
141
+
142
+ ## [3.5.0] - 2026-07-28
143
+
144
+ ### Fixed
145
+
146
+ - **A concrete service subclass that exposed nothing of its own answered
147
+ nothing.** `getClassMethods()` looked its class up in the description registry
148
+ by name and dereferenced `classInfo.inherits` with no guard, but `@expose()`
149
+ registers only the class that *declares* a method — so such a subclass had no
150
+ registry entry at all and `describe()` threw a `TypeError` on it.
151
+
152
+ The failure was silent and total: `processRequest()` calls `describe()` on
153
+ every request and the constructor's `.catch` sends the rejection to the logger,
154
+ so the service returned no error response and no rejection. Callers hung until
155
+ their own `callTimeout`, which is unset by default.
156
+
157
+ Guarding the lookup alone would have traded the hang for a different wrong
158
+ answer — the walk follows the registry's `inherits` links, so it would have
159
+ stopped at the gap and lost every ancestor's exposed methods, denying all calls
160
+ with `IMQ_RPC_NO_ACCESS`. The function now walks the runtime prototype chain,
161
+ which has no gaps, applying each link root-first so a subclass method still
162
+ overrides a same-named parent one. `getClassMethods` is module-private, so the
163
+ signature change is not an API change.
164
+
165
+ - **The metrics endpoint advertised `plain/text`**, which is not a valid MIME
166
+ type, so scrapers keying on content type saw an unknown one. It is now
167
+ `text/plain`.
168
+
43
169
  ## [3.4.4] - 2026-07-26
44
170
 
45
171
  ### Changed
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # I Message Queue RPC (@imqueue/rpc)
2
2
 
3
- [![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://rawgit.com/imqueue/rpc/master/LICENSE)
3
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/imqueue/rpc/build.yml)](https://github.com/imqueue/rpc/actions/workflows/build.yml)
4
+ [![npm version](https://img.shields.io/npm/v/@imqueue/rpc)](https://www.npmjs.com/package/@imqueue/rpc)
5
+ [![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://github.com/imqueue/rpc/blob/master/LICENSE)
4
6
 
5
7
  RPC-like client-service implementation over messaging queue. This module
6
8
  provides base set of abstract classes and decorators to build services and
@@ -14,7 +16,9 @@ on) and [@imqueue/cli](https://github.com/imqueue/cli) (scaffolding & client
14
16
  generation).
15
17
 
16
18
  **Using an AI assistant?** Point it at [imqueue.org/llms.txt](https://imqueue.org/llms.txt)
17
- for a machine-readable index of the docs, or see [AGENTS.md](./AGENTS.md).
19
+ for a machine-readable index of the docs, or see [AGENTS.md](./AGENTS.md). Current
20
+ version, licence and Node floor for every package:
21
+ [imqueue.org/status.json](https://imqueue.org/status.json).
18
22
 
19
23
  ## Why?
20
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imqueue/rpc",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "description": "Type-safe RPC framework for Node.js & TypeScript microservices over a Redis message queue — self-describing services generate their own strongly-typed clients (@imqueue framework)",
5
5
  "keywords": [
6
6
  "redis",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",
44
- "url": "git@github.com/imqueue/rpc.git"
44
+ "url": "git+https://github.com/imqueue/rpc.git"
45
45
  },
46
46
  "bugs": {
47
47
  "url": "https://github.com/imqueue/rpc/issues"
@@ -51,7 +51,7 @@
51
51
  "author": "imqueue.com <support@imqueue.com> (https://imqueue.com)",
52
52
  "license": "GPL-3.0-only",
53
53
  "dependencies": {
54
- "@imqueue/core": "^3.4.0",
54
+ "@imqueue/core": "^3.4.2",
55
55
  "acorn": "^8.17.0",
56
56
  "typescript": "^7.0.2"
57
57
  },