@dokebi/sse 0.0.0-stage → 0.4.0
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/AI.md +148 -0
- package/LICENSE +21 -0
- package/README.md +87 -2
- package/dist/browser/sse-client.js +201 -0
- package/dist/client/index.d.ts +90 -0
- package/dist/client/index.js +353 -0
- package/dist/client/react.d.ts +18 -0
- package/dist/client/react.js +96 -0
- package/dist/client/vue.d.ts +15 -0
- package/dist/client/vue.js +64 -0
- package/dist/errors.d.ts +14 -0
- package/dist/errors.js +36 -0
- package/dist/gateway.d.ts +41 -0
- package/dist/gateway.js +739 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -0
- package/dist/install.d.ts +18 -0
- package/dist/install.js +26 -0
- package/dist/options.d.ts +42 -0
- package/dist/options.js +51 -0
- package/dist/plugin.d.ts +6 -0
- package/dist/plugin.js +98 -0
- package/dist/transport.d.ts +13 -0
- package/dist/transport.js +45 -0
- package/dist/types.d.ts +144 -0
- package/dist/types.js +4 -0
- package/dist/wire.d.ts +17 -0
- package/dist/wire.js +44 -0
- package/options.schema.json +86 -0
- package/package.json +123 -4
package/package.json
CHANGED
|
@@ -1,6 +1,125 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dokebi/sse",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Server-sent events for @dokebi/web: authenticated streams, rooms, cross-worker fan-out over @dokebi/event-bus, and a browser client",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"dokebi",
|
|
7
|
+
"dokebi-plugin",
|
|
8
|
+
"web",
|
|
9
|
+
"sse",
|
|
10
|
+
"realtime"
|
|
11
|
+
],
|
|
12
|
+
"private": false,
|
|
13
|
+
"type": "module",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./client": {
|
|
23
|
+
"types": "./dist/client/index.d.ts",
|
|
24
|
+
"import": "./dist/client/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./client/vue": {
|
|
27
|
+
"types": "./dist/client/vue.d.ts",
|
|
28
|
+
"import": "./dist/client/vue.js"
|
|
29
|
+
},
|
|
30
|
+
"./client/react": {
|
|
31
|
+
"types": "./dist/client/react.d.ts",
|
|
32
|
+
"import": "./dist/client/react.js"
|
|
33
|
+
},
|
|
34
|
+
"./client/bundle": "./dist/browser/sse-client.js"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist",
|
|
38
|
+
"options.schema.json",
|
|
39
|
+
"README.md",
|
|
40
|
+
"AI.md",
|
|
41
|
+
"LICENSE"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=24.0.0"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json && tsc -p tsconfig.browser.json && vite build -c vite.client.config.ts --logLevel warn && node -e \"import('./dist/options.js').then(async (m) => { const { renderOptionsSchema } = await import('@dokebi/core'); process.stdout.write(renderOptionsSchema(m.options)); })\" > options.schema.json",
|
|
48
|
+
"typecheck": "tsc -p tsconfig.test.json --noEmit",
|
|
49
|
+
"test": "node -e \"require('node:fs').rmSync('.tmp/tests',{recursive:true,force:true})\" && tsc -p tsconfig.test.json && node --experimental-eventsource --test \".tmp/tests/tests/*.test.js\""
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@dokebi/core": "^0.4.0",
|
|
53
|
+
"@dokebi/web": "^0.4.0",
|
|
54
|
+
"@dokebi/event-bus": "^0.4.0",
|
|
55
|
+
"fastify": "^5.12.7",
|
|
56
|
+
"react": ">=18",
|
|
57
|
+
"vue": "^3.3.0"
|
|
58
|
+
},
|
|
59
|
+
"peerDependenciesMeta": {
|
|
60
|
+
"@dokebi/event-bus": {
|
|
61
|
+
"optional": true
|
|
62
|
+
},
|
|
63
|
+
"react": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"vue": {
|
|
67
|
+
"optional": true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@dokebi/cluster": "0.4.0",
|
|
72
|
+
"@dokebi/config": "0.4.0",
|
|
73
|
+
"@dokebi/event-bus": "0.4.0",
|
|
74
|
+
"@dokebi/health": "0.4.0",
|
|
75
|
+
"@dokebi/nats": "0.4.0",
|
|
76
|
+
"@dokebi/web": "0.4.0",
|
|
77
|
+
"react": "19.3.0",
|
|
78
|
+
"react-test-renderer": "19.3.0",
|
|
79
|
+
"vite": "8.3.4",
|
|
80
|
+
"vue": "3.5.44"
|
|
81
|
+
},
|
|
82
|
+
"dokebi": {
|
|
83
|
+
"schemaVersion": 2,
|
|
84
|
+
"id": "dokebi-sse",
|
|
85
|
+
"core": "^0.4.0",
|
|
86
|
+
"dependencies": [
|
|
87
|
+
{
|
|
88
|
+
"name": "dokebi-web",
|
|
89
|
+
"version": "^0.4.0"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "dokebi-event-bus",
|
|
93
|
+
"version": "^0.4.0",
|
|
94
|
+
"optional": true
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "dokebi-health",
|
|
98
|
+
"version": "^0.4.0",
|
|
99
|
+
"optional": true
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"contributes": [
|
|
103
|
+
"dokebi-web:realtime"
|
|
104
|
+
],
|
|
105
|
+
"installModule": "dist/install.js",
|
|
106
|
+
"optionsSchema": "options.schema.json",
|
|
107
|
+
"documentation": "AI.md"
|
|
108
|
+
},
|
|
109
|
+
"dokebiCatalog": {
|
|
110
|
+
"kind": "plugin",
|
|
111
|
+
"summary": "Server-sent events (SSE) streams and rooms, delivery across workers, and a browser client",
|
|
112
|
+
"maturity": "preview",
|
|
113
|
+
"provides": [
|
|
114
|
+
"realtime.sse"
|
|
115
|
+
],
|
|
116
|
+
"doesNot": [
|
|
117
|
+
"No ACK, redelivery or retention (at most once)"
|
|
118
|
+
],
|
|
119
|
+
"recipes": []
|
|
120
|
+
},
|
|
121
|
+
"publishConfig": {
|
|
122
|
+
"access": "public",
|
|
123
|
+
"registry": "https://registry.npmjs.org/"
|
|
124
|
+
}
|
|
125
|
+
}
|