@antelopejs/redis 1.1.1 → 1.1.2-next.87.g2c81038

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/README.md CHANGED
@@ -1,16 +1,19 @@
1
- # `@antelopejs/redis`
1
+ <a href="https://github.com/AntelopeJS/antelopejs"><img data-illustration src="./.github/readme/strip.svg" width="100%" alt="PROVIDER · REDIS: part of AntelopeJS, hexagonal architecture beyond your own code. A glowing button reads Star AntelopeJS."></a>
2
2
 
3
3
  <div align="center">
4
- <a href="https://www.npmjs.com/package/@antelopejs/redis"><img data-illustration alt="npm" src="https://img.shields.io/npm/v/@antelopejs/redis?style=for-the-badge&labelColor=000000&color=000000"></a>
5
- <a href="./LICENSE"><img data-illustration alt="License" src="https://img.shields.io/npm/l/@antelopejs/redis?style=for-the-badge&labelColor=000000&color=000000"></a>
6
- <a href="https://discord.gg/g4pFt6eXqu"><img data-illustration alt="Discord" src="https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000"></a>
7
- <a href="https://interfaces.antelopejs.com/docs/redis/introduction"><img data-illustration alt="Documentation" src="https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000"></a>
4
+
5
+ # `@antelopejs/redis`
6
+
7
+ <a href="https://www.npmjs.com/package/@antelopejs/redis"><img data-illustration alt="npm" src="https://img.shields.io/npm/v/@antelopejs/redis?style=for-the-badge&labelColor=000000&color=000000"></a> <a href="./LICENSE"><img data-illustration alt="License" src="https://img.shields.io/npm/l/@antelopejs/redis?style=for-the-badge&labelColor=000000&color=000000"></a> <a href="https://discord.gg/g4pFt6eXqu"><img data-illustration alt="Discord" src="https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000"></a> <a href="https://interfaces.antelopejs.com/docs/redis/introduction"><img data-illustration alt="Documentation" src="https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000"></a> <a href="https://github.com/AntelopeJS/antelopejs"><img data-illustration alt="Star AntelopeJS" src="https://img.shields.io/github/stars/AntelopeJS/antelopejs?label=Star%20AntelopeJS&style=for-the-badge&labelColor=000000&color=000000&logo=github"></a>
8
+
9
+ **The Redis module of AntelopeJS. It connects one shared ioredis client and serves it to the Redis and Redis Scheduler interfaces.**
10
+
11
+ [Documentation](https://interfaces.antelopejs.com/docs/redis/introduction) · [Interfaces](#interfaces) · [All interfaces and providers](https://github.com/AntelopeJS/antelopejs#ecosystem)
12
+
8
13
  </div>
9
14
 
10
15
  The Redis module of AntelopeJS. It connects one shared [`ioredis`](https://github.com/redis/ioredis) client and serves it to the Redis and Redis Scheduler interfaces.
11
16
 
12
- Part of [AntelopeJS](https://github.com/AntelopeJS/antelopejs), the TypeScript framework where modules depend on contracts and the application chooses the provider. Built by the team behind [AntelopeJS DMS](https://github.com/AntelopeJS/dms).
13
-
14
17
  ## Interfaces
15
18
 
16
19
  | Interface | Documentation |
@@ -40,7 +43,7 @@ export default defineConfig({
40
43
  source: {
41
44
  type: "package",
42
45
  package: "@antelopejs/redis",
43
- version: "^1.0.3",
46
+ version: "~1.1.1",
44
47
  },
45
48
  config: {
46
49
  url: "redis://localhost:6379",
@@ -61,7 +64,7 @@ export default defineConfig({
61
64
  | `useMock` | Serves an in-memory [`ioredis-mock`](https://github.com/stipsan/ioredis-mock) client instead of connecting, and ignores every other key. For tests only. |
62
65
  | any other key | Passed to the client as [`ioredis` options](https://github.com/redis/ioredis#connect-to-redis), such as `host`, `port`, `password`, `db`, `tls` or `lazyConnect`. |
63
66
 
64
- The module creates the client when it starts, and quits it when it stops. With `lazyConnect: true`, the module waits for the connection before it serves the client.
67
+ The module creates the client when it starts, and quits it when it stops. With `lazyConnect: true`, the module waits for the connection before it serves the client. Every `error` event of that client, such as a refused connection or an `EPIPE` on shutdown, goes to the AntelopeJS logger as a warning on the `redis` channel.
65
68
 
66
69
  ## Quick start
67
70
 
@@ -79,7 +82,20 @@ await client.set("greeting", "hello", "EX", 60);
79
82
  const greeting = await client.get("greeting");
80
83
  ```
81
84
 
82
- `GetClient()` waits until the module has started and set its client. For distributed jobs, add `@antelopejs/interface-redis-scheduler` and read its [documentation](https://interfaces.antelopejs.com/docs/redis-scheduler/introduction).
85
+ `GetClient()` waits until the module has started and set its client. After the module stops, a new call waits again until the next start serves a new client, so a hot reload does not fail callers. A client you create with `client.duplicate()`, such as a pub/sub subscriber, has no `error` listener: add your own before you connect it, or ioredis prints its errors as unhandled error events.
86
+
87
+ ```typescript
88
+ import { Logging } from "@antelopejs/interface-core/logging";
89
+ import { GetClient } from "@antelopejs/interface-redis";
90
+
91
+ const Logger = new Logging.Channel("my-module");
92
+ const client = await GetClient();
93
+ const subscriber = client.duplicate({ lazyConnect: true });
94
+ subscriber.on("error", (error) => Logger.Warn(error));
95
+ await subscriber.connect();
96
+ ```
97
+
98
+ For distributed jobs, add `@antelopejs/interface-redis-scheduler` and read its [documentation](https://interfaces.antelopejs.com/docs/redis-scheduler/introduction).
83
99
 
84
100
  ## Documentation
85
101
 
@@ -91,11 +107,11 @@ const greeting = await client.get("greeting");
91
107
 
92
108
  <!-- antelopejs-docs-compat:start -->
93
109
 
94
- | Package | Supported | Tested with |
95
- | --------------------------------------- | ---------------- | ----------- |
96
- | `@antelopejs/interface-core` | `>=0.2.4 <1.0.0` | `0.4.0` |
97
- | `@antelopejs/interface-redis` | `>=0.0.9 <1.0.0` | `0.0.9` |
98
- | `@antelopejs/interface-redis-scheduler` | `>=0.0.8 <1.0.0` | `0.0.8` |
110
+ | Package | Supported | Tested with |
111
+ | --------------------------------------- | ----------------- | ----------- |
112
+ | `@antelopejs/interface-core` | `>=0.5.1 <0.6.0` | `0.5.1` |
113
+ | `@antelopejs/interface-redis` | `>=0.0.10 <0.1.0` | `0.0.10` |
114
+ | `@antelopejs/interface-redis-scheduler` | `>=0.0.12 <0.1.0` | `0.0.12` |
99
115
 
100
116
  <!-- antelopejs-docs-compat:end -->
101
117
 
@@ -114,6 +130,24 @@ pnpm test # build, then ajs module test with ioredis-mock
114
130
 
115
131
  The tests need no Redis server. Read the [contribution guidelines](CONTRIBUTING.md) before you open a pull request.
116
132
 
133
+ ## Part of AntelopeJS
134
+
135
+ This package belongs to [AntelopeJS](https://github.com/AntelopeJS/antelopejs), the TypeScript framework where modules depend on contracts and the application chooses the provider. The open-source back office [AntelopeJS DMS](https://github.com/AntelopeJS/dms) is built on it.
136
+
137
+ <!-- antelopejs-framework-modules:start -->
138
+
139
+ | Area | Contracts | Providers |
140
+ | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
141
+ | API | [`interface-api`](https://github.com/AntelopeJS/interface-api) · [`interface-api-util`](https://github.com/AntelopeJS/interface-api-util) · [`interface-data-api`](https://github.com/AntelopeJS/interface-data-api) | [`api`](https://github.com/AntelopeJS/api) |
142
+ | Auth | [`interface-auth`](https://github.com/AntelopeJS/interface-auth) | [`auth-jwt`](https://github.com/AntelopeJS/auth-jwt) |
143
+ | Database | [`interface-database`](https://github.com/AntelopeJS/interface-database) · [`interface-database-decorators`](https://github.com/AntelopeJS/interface-database-decorators) · [`interface-database-catalog`](https://github.com/AntelopeJS/interface-database-catalog) · [`interface-mongodb`](https://github.com/AntelopeJS/interface-mongodb) · [`interface-rethinkdb`](https://github.com/AntelopeJS/interface-rethinkdb) | [`postgres`](https://github.com/AntelopeJS/postgres) · [`mysql`](https://github.com/AntelopeJS/mysql) · [`mongodb`](https://github.com/AntelopeJS/mongodb) · [`rethinkdb`](https://github.com/AntelopeJS/rethinkdb) |
144
+ | Redis | [`interface-redis`](https://github.com/AntelopeJS/interface-redis) · [`interface-redis-scheduler`](https://github.com/AntelopeJS/interface-redis-scheduler) | **`redis`** |
145
+ | Email | [`interface-email`](https://github.com/AntelopeJS/interface-email) | [`nodemailer`](https://github.com/AntelopeJS/nodemailer) · [`brevo`](https://github.com/AntelopeJS/brevo) |
146
+ | File storage | [`interface-file-storage`](https://github.com/AntelopeJS/interface-file-storage) | [`file-storage-local`](https://github.com/AntelopeJS/file-storage-local) · [`file-storage-s3`](https://github.com/AntelopeJS/file-storage-s3) |
147
+ | Payments | [`interface-payment`](https://github.com/AntelopeJS/interface-payment) · [`interface-subscriptions`](https://github.com/AntelopeJS/interface-subscriptions) · [`interface-stripe`](https://github.com/AntelopeJS/interface-stripe) | [`stripe`](https://github.com/AntelopeJS/stripe) · [`mollie`](https://github.com/AntelopeJS/mollie) · [`checkout-com`](https://github.com/AntelopeJS/checkout-com) · [`payment-subscriptions`](https://github.com/AntelopeJS/payment-subscriptions) |
148
+
149
+ <!-- antelopejs-framework-modules:end -->
150
+
117
151
  ## License
118
152
 
119
153
  [Apache-2.0](LICENSE)
package/dist/index.js CHANGED
@@ -41,7 +41,9 @@ exports.destroy = destroy;
41
41
  exports.start = start;
42
42
  exports.stop = stop;
43
43
  const ioredis_1 = __importDefault(require("ioredis"));
44
+ const logging_1 = require("@antelopejs/interface-core/logging");
44
45
  const interface_redis_1 = require("@antelopejs/interface-redis");
46
+ const Logger = new logging_1.Logging.Channel("redis");
45
47
  let redisConfig;
46
48
  function construct(config) {
47
49
  redisConfig = config;
@@ -50,6 +52,7 @@ function destroy() { }
50
52
  let startedClient;
51
53
  async function start() {
52
54
  const client = await createRedisClient(redisConfig);
55
+ client.on("error", (error) => Logger.Warn(error));
53
56
  if (redisConfig.useMock || redisConfig.lazyConnect) {
54
57
  try {
55
58
  await client.connect();
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,8BAEC;AAED,0BAAkC;AAIlC,sBAYC;AAED,oBAQC;AAvCD,sDAAmD;AACnD,iEAAuD;AAOvD,IAAI,WAAwB,CAAC;AAC7B,SAAgB,SAAS,CAAC,MAAmB;IAC3C,WAAW,GA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AAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;IACT,CAAC;IACD,aAAa,GAAG,SAAS,CAAC;IAC1B,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IACpB,KAAK,0BAAQ,CAAC,WAAW,EAAE,CAAC;AAC9B,CAAC;AAED,KAAK,UAAU,iBAAiB,CAAC,MAAmB;IAClD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,wDAAa,cAAc,GAAC,CAAC;QAC5D,OAAO,IAAI,SAAS,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IACD,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC;IAC/C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,IAAI,iBAAK,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtC,OAAO,IAAI,iBAAK,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,IAAI,iBAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACjC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const node_assert_1 = __importDefault(require("node:assert"));
7
+ const logging_1 = require("@antelopejs/interface-core/logging");
8
+ const listener_1 = __importDefault(require("@antelopejs/interface-core/logging/listener"));
9
+ const interface_redis_1 = require("@antelopejs/interface-redis");
10
+ const index_1 = require("../index");
11
+ const CLOSED_PORT_URL = "redis://127.0.0.1:26391";
12
+ const PENDING_WINDOW_MS = 200;
13
+ function redisWarnings(logs) {
14
+ return logs
15
+ .filter((log) => log.channel === "redis" && log.levelId === logging_1.Logging.Level.WARN)
16
+ .flatMap((log) => log.args);
17
+ }
18
+ function settlesWithin(promise, ms) {
19
+ return Promise.race([
20
+ promise.then(() => true, () => true),
21
+ new Promise((resolve) => setTimeout(() => resolve(false), ms)),
22
+ ]);
23
+ }
24
+ describe("Client errors", () => {
25
+ const logs = [];
26
+ const collect = (log) => {
27
+ logs.push(log);
28
+ };
29
+ beforeEach(() => {
30
+ logs.length = 0;
31
+ listener_1.default.register(collect);
32
+ });
33
+ afterEach(async () => {
34
+ listener_1.default.unregister(collect);
35
+ await (0, index_1.stop)();
36
+ (0, index_1.construct)({ useMock: true });
37
+ await (0, index_1.start)();
38
+ });
39
+ it("forwards an error emitted by the served client to the redis channel", async () => {
40
+ const client = await (0, interface_redis_1.GetClient)();
41
+ const error = new Error("write EPIPE");
42
+ client.emit("error", error);
43
+ node_assert_1.default.deepStrictEqual(redisWarnings(logs), [error]);
44
+ });
45
+ it("forwards a refused connection of a real ioredis client to the redis channel", async () => {
46
+ await (0, index_1.stop)();
47
+ (0, index_1.construct)({
48
+ url: CLOSED_PORT_URL,
49
+ lazyConnect: true,
50
+ maxRetriesPerRequest: 0,
51
+ });
52
+ await node_assert_1.default.rejects((0, index_1.start)());
53
+ const codes = redisWarnings(logs).map((error) => error instanceof Error && "code" in error ? error.code : undefined);
54
+ (0, node_assert_1.default)(codes.includes("ECONNREFUSED"));
55
+ });
56
+ it("keeps GetClient pending after stop until the next start serves a new client", async () => {
57
+ const stopped = await (0, interface_redis_1.GetClient)();
58
+ await (0, index_1.stop)();
59
+ const next = (0, interface_redis_1.GetClient)();
60
+ node_assert_1.default.strictEqual(await settlesWithin(next, PENDING_WINDOW_MS), false);
61
+ (0, index_1.construct)({ useMock: true });
62
+ await (0, index_1.start)();
63
+ const served = await next;
64
+ node_assert_1.default.notStrictEqual(served, stopped);
65
+ node_assert_1.default.strictEqual(await served.ping(), "PONG");
66
+ });
67
+ });
68
+ //# sourceMappingURL=client-errors.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-errors.test.js","sourceRoot":"","sources":["../../src/test/client-errors.test.ts"],"names":[],"mappings":";;;;;AAAA,8DAAiC;AAEjC,gEAA6D;AAC7D,2FAEqD;AACrD,iEAAwD;AAExD,oCAAkD;AAElD,MAAM,eAAe,GAAG,yBAAyB,CAAC;AAClD,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAE9B,SAAS,aAAa,CAAC,IAAW;IAChC,OAAO,IAAI;SACR,MAAM,CACL,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,KAAK,OAAO,IAAI,GAAG,CAAC,OAAO,KAAK,iBAAO,CAAC,KAAK,CAAC,IAAI,CACvE;SACA,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,aAAa,CACpB,OAAyB,EACzB,EAAU;IAEV,OAAO,OAAO,CAAC,IAAI,CAAC;QAClB,OAAO,CAAC,IAAI,CACV,GAAG,EAAE,CAAC,IAAI,EACV,GAAG,EAAE,CAAC,IAAI,CACX;QACD,IAAI,OAAO,CAAU,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;KACxE,CAAC,CAAC;AACL,CAAC;AAED,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,MAAM,IAAI,GAAU,EAAE,CAAC;IACvB,MAAM,OAAO,GAAG,CAAC,GAAQ,EAAQ,EAAE;QACjC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC,CAAC;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,kBAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;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AAK,IAAI,EAAE;QAC3F,MAAM,OAAO,GAAG,MAAM,IAAA,2BAAS,GAAE,CAAC;QAClC,MAAM,IAAA,YAAI,GAAE,CAAC;QAEb,MAAM,IAAI,GAAG,IAAA,2BAAS,GAAE,CAAC;QACzB,qBAAM,CAAC,WAAW,CAAC,MAAM,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAAC,EAAE,KAAK,CAAC,CAAC;QAExE,IAAA,iBAAS,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAC7B,MAAM,IAAA,aAAK,GAAE,CAAC;QACd,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC;QAC1B,qBAAM,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACvC,qBAAM,CAAC,WAAW,CAAC,MAAM,MAAM,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/redis",
3
- "version": "1.1.1",
3
+ "version": "1.1.2-next.87.g2c81038",
4
4
  "description": "Redis module for AntelopeJS, implementing the Redis and Redis Scheduler interfaces with ioredis",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -47,15 +47,15 @@
47
47
  "suppressions:update": "antelopejs-suppressions --update"
48
48
  },
49
49
  "dependencies": {
50
- "@antelopejs/interface-core": ">=0.2.4 <1.0.0",
51
- "@antelopejs/interface-redis": ">=0.0.9 <1.0.0",
52
- "@antelopejs/interface-redis-scheduler": ">=0.0.8 <1.0.0",
50
+ "@antelopejs/interface-core": ">=0.5.1 <0.6.0",
51
+ "@antelopejs/interface-redis": ">=0.0.10 <0.1.0",
52
+ "@antelopejs/interface-redis-scheduler": ">=0.0.12 <0.1.0",
53
53
  "ioredis": "^5.10.1",
54
54
  "ioredis-mock": "^8.13.1"
55
55
  },
56
56
  "devDependencies": {
57
- "@antelopejs/core": "^1.21.0",
58
- "@antelopejs/tooling-configs": "^0.5.1",
57
+ "@antelopejs/core": "~1.23.3",
58
+ "@antelopejs/tooling-configs": ">=0.8.0 <0.9.0",
59
59
  "@types/chai": "^4.3.20",
60
60
  "@types/ioredis-mock": "^8.2.7",
61
61
  "@types/mocha": "^10.0.10",