@toa.io/atomicity 1.0.0-alpha.292 → 1.0.0-alpha.299
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 +19 -0
- package/package.json +5 -5
- package/src/connection.js +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-alpha.299](https://github.com/toa-io/toa/compare/v1.0.0-alpha.298...v1.0.0-alpha.299) (2026-09-10)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* report configuration and discover lifecycle at trace ([e713bf9](https://github.com/toa-io/toa/commit/e713bf99a0f6306c655f733b4209923841f88392))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **core:** an outbox that owns no lane says so ([1ad693c](https://github.com/toa-io/toa/commit/1ad693cf5e2a6e2451e23e8c6d07831957ca150b))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.0.0-alpha.293](https://github.com/toa-io/toa/compare/v1.0.0-alpha.292...v1.0.0-alpha.293) (2026-09-07)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @toa.io/atomicity
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [1.0.0-alpha.292](https://github.com/toa-io/toa/compare/v1.0.0-alpha.291...v1.0.0-alpha.292) (2026-09-07)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @toa.io/atomicity
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/atomicity",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.299",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Toa Atomicity Connector",
|
|
6
6
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@sesamecare-oss/redlock": "1.4.0",
|
|
21
|
-
"@toa.io/core": "1.0.0-alpha.
|
|
21
|
+
"@toa.io/core": "1.0.0-alpha.299",
|
|
22
22
|
"@toa.io/generic": "1.0.0-alpha.292",
|
|
23
23
|
"ioredis": "6.0.0",
|
|
24
|
-
"n-and-i": "0.3.
|
|
25
|
-
"openspan": "1.0.0-alpha.
|
|
24
|
+
"n-and-i": "0.3.4",
|
|
25
|
+
"openspan": "1.0.0-alpha.293"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "2ba95b16f2cf06f82d6ff8d436761e843e5e4b43"
|
|
31
31
|
}
|
package/src/connection.js
CHANGED
|
@@ -31,10 +31,7 @@ export class Connection extends Connector {
|
|
|
31
31
|
const urls = resolve()
|
|
32
32
|
|
|
33
33
|
if (urls.length === 0) {
|
|
34
|
-
console.warn(
|
|
35
|
-
'Atomicity is not configured, so nothing is owned and nothing is metered. ' +
|
|
36
|
-
'Set TOA_ATOMICITY_REDIS.'
|
|
37
|
-
)
|
|
34
|
+
console.warn('Atomicity is not configured. Set TOA_ATOMICITY_REDIS.')
|
|
38
35
|
|
|
39
36
|
return
|
|
40
37
|
}
|
|
@@ -59,7 +56,7 @@ export class Connection extends Connector {
|
|
|
59
56
|
for (const client of this.#clients)
|
|
60
57
|
// ioredis leaves `message` empty on a refused connection, where the code is the whole story
|
|
61
58
|
client.on('error', (error) =>
|
|
62
|
-
console.warn('Atomicity is unreachable
|
|
59
|
+
console.warn('Atomicity is unreachable', {
|
|
63
60
|
host: client.options.host,
|
|
64
61
|
error: error.code ?? error.message
|
|
65
62
|
})
|