@imqueue/rpc 3.7.0 → 3.7.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +106 -1
  2. package/README.md +6 -2
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -4,9 +4,13 @@ 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.0] - 2026-08-20
10
14
 
11
15
  ### Added
12
16
 
@@ -40,6 +44,107 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
40
44
  is resolved, `doNotThrow`, the re-thrown value and the fact that a throwing
41
45
  logger replaces the original error.
42
46
 
47
+ - Raised the `@imqueue/core` dependency to `^3.4.0`, which reports the
48
+ transport's previously silent failures through the configured logger — among
49
+ them a reply that could not be written back to the caller's queue, which is
50
+ why this package adds no reporting of its own there.
51
+
52
+ ## [3.6.1] - 2026-08-18
53
+
54
+ ### Changed
55
+
56
+ - Raised the `@imqueue/core` dependency to `^3.3.3`, which stops a starting
57
+ queue overwriting the server-global `notify-keyspace-events` configuration.
58
+
59
+ ## [3.6.0] - 2026-08-18
60
+
61
+ ### Fixed
62
+
63
+ - **A `@lock()`'d call could resolve waiters with another call's result, and one
64
+ waiter's timeout rejected all of them.** `IMQLock.deadlockTimeout` rejected
65
+ through `release()`, which does two things a timeout has no business doing: it
66
+ deleted the holder's lock while the holder was still running, and it drained
67
+ the whole queue.
68
+
69
+ The first let a later call acquire the freed key and run alongside the original
70
+ holder — and when that holder finally finished, its release landed on the *new*
71
+ holder's lock, resolving waiters with a result computed for a call they had
72
+ nothing to do with and freeing a lock still in use, letting a third call in
73
+ behind it. Silently wrong values, under exactly the overlapping load that
74
+ coalescing `@lock()` exists to collapse. The second meant a call that arrived
75
+ a moment ago died for an older call's patience.
76
+
77
+ Locks now carry a token. `release()` takes it as an optional fourth argument
78
+ and is ignored when a different call owns the key; an unowned key is not a
79
+ conflict, so a straggler can still satisfy waiters nobody else will. `lock()`
80
+ reads the token and passes it, so every decorator user is covered with no code
81
+ change, and a release without a token behaves exactly as before. The timer now
82
+ splices out its own task and rejects only that waiter, while still freeing the
83
+ key — a holder that never releases would otherwise poison it for the life of
84
+ the process.
85
+
86
+ ## [3.5.4] - 2026-08-09
87
+
88
+ ### Fixed
89
+
90
+ - **Tracing hooks installed on the default options could patch a copy nothing
91
+ ever called.** `DEFAULT_IMQ_SERVICE_OPTIONS` and `DEFAULT_IMQ_CLIENT_OPTIONS`
92
+ were plain module-scope objects, so a process that evaluated this module twice
93
+ held two copies — which is what a loader handling ESM and CJS through separate
94
+ pipelines does: under `tsx`, `require('@imqueue/rpc')` and
95
+ `import('@imqueue/rpc')` return distinct instances.
96
+
97
+ Anything that installs behavior by mutating those objects then patched a copy
98
+ the application never calls. `@imqueue/opentelemetry` attaches its
99
+ `beforeCall`/`afterCall`/`wrapCall` hooks that way, and produced no spans at
100
+ all under such a loader — with no error, since the patch itself succeeded.
101
+
102
+ Both are now keyed on `Symbol.for`, making them singletons per process rather
103
+ than per module evaluation, so a mutation through any instance is visible to
104
+ all. This also removes the "duplicate installs at different tree depths"
105
+ caveat the instrumentation documents.
106
+
107
+ ## [3.5.3] - 2026-08-04
108
+
109
+ ### Changed
110
+
111
+ - Raised the `@imqueue/core` dependency to `^3.3.2`.
112
+
113
+ ## [3.5.2] - 2026-08-01
114
+
115
+ ### Changed
116
+
117
+ - Raised the `@imqueue/core` dependency to `^3.3.0`, which keeps safe-delivery
118
+ lease recovery and the cleanup sweep alive after a transient sweep failure,
119
+ and drops the unresolvable `./debug` export subpath.
120
+
121
+ ## [3.5.0] - 2026-07-28
122
+
123
+ ### Fixed
124
+
125
+ - **A concrete service subclass that exposed nothing of its own answered
126
+ nothing.** `getClassMethods()` looked its class up in the description registry
127
+ by name and dereferenced `classInfo.inherits` with no guard, but `@expose()`
128
+ registers only the class that *declares* a method — so such a subclass had no
129
+ registry entry at all and `describe()` threw a `TypeError` on it.
130
+
131
+ The failure was silent and total: `processRequest()` calls `describe()` on
132
+ every request and the constructor's `.catch` sends the rejection to the logger,
133
+ so the service returned no error response and no rejection. Callers hung until
134
+ their own `callTimeout`, which is unset by default.
135
+
136
+ Guarding the lookup alone would have traded the hang for a different wrong
137
+ answer — the walk follows the registry's `inherits` links, so it would have
138
+ stopped at the gap and lost every ancestor's exposed methods, denying all calls
139
+ with `IMQ_RPC_NO_ACCESS`. The function now walks the runtime prototype chain,
140
+ which has no gaps, applying each link root-first so a subclass method still
141
+ overrides a same-named parent one. `getClassMethods` is module-private, so the
142
+ signature change is not an API change.
143
+
144
+ - **The metrics endpoint advertised `plain/text`**, which is not a valid MIME
145
+ type, so scrapers keying on content type saw an unknown one. It is now
146
+ `text/plain`.
147
+
43
148
  ## [3.4.4] - 2026-07-26
44
149
 
45
150
  ### 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.1",
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
  },