@antelopejs/redis 1.1.0 → 1.1.2-next.84.g2449977

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,10 +1,15 @@
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.
@@ -38,7 +43,7 @@ export default defineConfig({
38
43
  source: {
39
44
  type: "package",
40
45
  package: "@antelopejs/redis",
41
- version: "^1.0.3",
46
+ version: "~1.1.1",
42
47
  },
43
48
  config: {
44
49
  url: "redis://localhost:6379",
@@ -89,11 +94,11 @@ const greeting = await client.get("greeting");
89
94
 
90
95
  <!-- antelopejs-docs-compat:start -->
91
96
 
92
- | Package | Supported | Tested with |
93
- | --------------------------------------- | ---------------- | ----------- |
94
- | `@antelopejs/interface-core` | `>=0.2.4 <1.0.0` | `0.2.4` |
95
- | `@antelopejs/interface-redis` | `>=0.0.9 <1.0.0` | `0.0.9` |
96
- | `@antelopejs/interface-redis-scheduler` | `>=0.0.8 <1.0.0` | `0.0.8` |
97
+ | Package | Supported | Tested with |
98
+ | --------------------------------------- | ----------------- | ----------- |
99
+ | `@antelopejs/interface-core` | `>=0.5.1 <0.6.0` | `0.5.1` |
100
+ | `@antelopejs/interface-redis` | `>=0.0.10 <0.1.0` | `0.0.10` |
101
+ | `@antelopejs/interface-redis-scheduler` | `>=0.0.12 <0.1.0` | `0.0.12` |
97
102
 
98
103
  <!-- antelopejs-docs-compat:end -->
99
104
 
@@ -112,6 +117,24 @@ pnpm test # build, then ajs module test with ioredis-mock
112
117
 
113
118
  The tests need no Redis server. Read the [contribution guidelines](CONTRIBUTING.md) before you open a pull request.
114
119
 
120
+ ## Part of AntelopeJS
121
+
122
+ 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.
123
+
124
+ <!-- antelopejs-framework-modules:start -->
125
+
126
+ | Area | Contracts | Providers |
127
+ | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
128
+ | 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) |
129
+ | Auth | [`interface-auth`](https://github.com/AntelopeJS/interface-auth) | [`auth-jwt`](https://github.com/AntelopeJS/auth-jwt) |
130
+ | 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) |
131
+ | Redis | [`interface-redis`](https://github.com/AntelopeJS/interface-redis) · [`interface-redis-scheduler`](https://github.com/AntelopeJS/interface-redis-scheduler) | **`redis`** |
132
+ | Email | [`interface-email`](https://github.com/AntelopeJS/interface-email) | [`nodemailer`](https://github.com/AntelopeJS/nodemailer) · [`brevo`](https://github.com/AntelopeJS/brevo) |
133
+ | 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) |
134
+ | 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) |
135
+
136
+ <!-- antelopejs-framework-modules:end -->
137
+
115
138
  ## License
116
139
 
117
140
  [Apache-2.0](LICENSE)
package/dist/index.js CHANGED
@@ -47,15 +47,27 @@ function construct(config) {
47
47
  redisConfig = config;
48
48
  }
49
49
  function destroy() { }
50
+ let startedClient;
50
51
  async function start() {
51
52
  const client = await createRedisClient(redisConfig);
52
53
  if (redisConfig.useMock || redisConfig.lazyConnect) {
53
- await client.connect();
54
+ try {
55
+ await client.connect();
56
+ }
57
+ catch (error) {
58
+ client.disconnect();
59
+ throw error;
60
+ }
54
61
  }
62
+ startedClient = client;
55
63
  interface_redis_1.internal.SetClient(client);
56
64
  }
57
65
  async function stop() {
58
- const client = await interface_redis_1.internal.client;
66
+ const client = startedClient;
67
+ if (!client) {
68
+ return;
69
+ }
70
+ startedClient = undefined;
59
71
  await client.quit();
60
72
  void interface_redis_1.internal.UnsetClient();
61
73
  }
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;AAElC,sBAMC;AAED,oBAIC;AA3BD,sDAAmD;AACnD,iEAAuD;AAOvD,IAAI,WAAwB,CAAC;AAC7B,SAAgB,SAAS,CAAC,MAAmB;IAC3C,WAAW,GAAG,MAAM,CAAC;AACvB,CAAC;AAED,SAAgB,OA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AAC;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,86 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ const node_assert_1 = __importDefault(require("node:assert"));
40
+ const net = __importStar(require("node:net"));
41
+ const index_1 = require("../index");
42
+ const TEST_HOST = "127.0.0.1";
43
+ const TEST_PORT = 26390;
44
+ const STOP_DEADLINE_MS = 1000;
45
+ const RECONNECT_WINDOW_MS = 500;
46
+ function settlesWithin(promise, ms) {
47
+ return Promise.race([
48
+ promise.then(() => true, () => true),
49
+ new Promise((resolve) => setTimeout(() => resolve(false), ms)),
50
+ ]);
51
+ }
52
+ function delay(ms) {
53
+ return new Promise((resolve) => setTimeout(resolve, ms));
54
+ }
55
+ describe("A module whose start failed", () => {
56
+ let server;
57
+ let connections = 0;
58
+ const url = `redis://${TEST_HOST}:${TEST_PORT}`;
59
+ before(async () => {
60
+ await (0, index_1.stop)();
61
+ server = net.createServer((socket) => {
62
+ connections += 1;
63
+ socket.destroy();
64
+ });
65
+ await new Promise((resolve) => server.listen(TEST_PORT, TEST_HOST, resolve));
66
+ });
67
+ after(async () => {
68
+ await new Promise((resolve) => server.close(resolve));
69
+ (0, index_1.construct)({ useMock: true });
70
+ await (0, index_1.start)();
71
+ });
72
+ it("rejects start and settles stop", async () => {
73
+ (0, index_1.construct)({ url, lazyConnect: true, maxRetriesPerRequest: 0 });
74
+ await node_assert_1.default.rejects((0, index_1.start)());
75
+ node_assert_1.default.strictEqual(await settlesWithin((0, index_1.stop)(), STOP_DEADLINE_MS), true);
76
+ });
77
+ it("stops reconnecting once start rejects", async () => {
78
+ (0, index_1.construct)({ url, lazyConnect: true, maxRetriesPerRequest: 0 });
79
+ await node_assert_1.default.rejects((0, index_1.start)());
80
+ const afterReject = connections;
81
+ await delay(RECONNECT_WINDOW_MS);
82
+ node_assert_1.default.strictEqual(connections, afterReject);
83
+ await (0, index_1.stop)();
84
+ });
85
+ });
86
+ //# sourceMappingURL=failed-start.test.js.map
@@ -0,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@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/redis",
3
- "version": "1.1.0",
3
+ "version": "1.1.2-next.84.g2449977",
4
4
  "description": "Redis module for AntelopeJS, implementing the Redis and Redis Scheduler interfaces with ioredis",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -33,11 +33,11 @@
33
33
  "lint:fix": "oxlint --fix",
34
34
  "lint": "oxlint",
35
35
  "prepack": "pnpm run build",
36
- "release": "pnpm run lint && pnpm run test && pnpm run prepack && release-it",
36
+ "release": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run prepack && release-it",
37
37
  "test": "pnpm run build && ajs module test .",
38
38
  "format:check": "oxfmt --check .",
39
39
  "knip": "knip",
40
- "prepare": "if git rev-parse --is-inside-work-tree >/dev/null 2>&1 && command -v lefthook >/dev/null 2>&1; then lefthook install; fi",
40
+ "prepare": "if [ -e .git ] && command -v git >/dev/null 2>&1 && command -v lefthook >/dev/null 2>&1 && GIT_DIR=.git GIT_WORK_TREE=. git rev-parse --git-dir >/dev/null 2>&1; then GIT_DIR=.git GIT_WORK_TREE=. lefthook install; fi",
41
41
  "checks": "antelopejs-checks",
42
42
  "size": "antelopejs-check-size",
43
43
  "sync": "antelopejs-sync",
@@ -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.16.0",
58
- "@antelopejs/tooling-configs": "^0.2.17",
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",