@corpdk/pub-sub 2026.10.0-alpha.1 → 2026.10.0-alpha.13
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 +25 -0
- package/package.json +14 -3
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @corpdk/pub-sub
|
|
2
|
+
|
|
3
|
+
Plugin-style GraphQL pub/sub factory for GraphQL Yoga: in-memory or Redis (`createAppPubSub<T>()`).
|
|
4
|
+
|
|
5
|
+
Used by DAL-automated data services for subscription topics. Redis wiring uses `@graphql-yoga/redis-event-target` and `ioredis`.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @corpdk/pub-sub
|
|
11
|
+
# or
|
|
12
|
+
npm install @corpdk/pub-sub
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Use the same CalVer as the rest of the DS automation npm set.
|
|
16
|
+
|
|
17
|
+
## Documentation
|
|
18
|
+
|
|
19
|
+
- [DS subscription SSE (Yoga)](https://github.com/CorpDK/coding-templates/blob/main/docs/developer/11-ds-subscription-sse.md)
|
|
20
|
+
- [Monorepo design — pub/sub](https://github.com/CorpDK/coding-templates/blob/main/docs/architecture/02-monorepo-design.md)
|
|
21
|
+
- Package source: [`libraries/pub-sub`](https://github.com/CorpDK/coding-templates/tree/main/libraries/pub-sub)
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
MIT — see the [repository LICENSE](https://github.com/CorpDK/coding-templates/blob/main/LICENSE).
|
package/package.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corpdk/pub-sub",
|
|
3
|
-
"version": "2026.10.0-alpha.
|
|
3
|
+
"version": "2026.10.0-alpha.13",
|
|
4
|
+
"description": "Plugin-style GraphQL pub/sub factory (in-memory or Redis)",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"publishConfig": {
|
|
6
7
|
"registry": "https://registry.npmjs.org/",
|
|
7
8
|
"access": "public"
|
|
8
9
|
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/CorpDK/coding-templates.git",
|
|
13
|
+
"directory": "libraries/pub-sub"
|
|
14
|
+
},
|
|
9
15
|
"files": [
|
|
10
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
11
18
|
],
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
12
20
|
"exports": {
|
|
13
21
|
".": {
|
|
14
22
|
"types": "./dist/index.d.ts",
|
|
@@ -21,10 +29,13 @@
|
|
|
21
29
|
"ioredis": "^5.10.1"
|
|
22
30
|
},
|
|
23
31
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^
|
|
32
|
+
"@types/node": "^24.0.0",
|
|
25
33
|
"typescript": "^6.0.2"
|
|
26
34
|
},
|
|
27
35
|
"license": "MIT",
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=24.0.0"
|
|
38
|
+
},
|
|
28
39
|
"scripts": {
|
|
29
40
|
"build": "tsc",
|
|
30
41
|
"lint": "eslint src/",
|