@vite-hub/realtime 0.0.4 → 0.3.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/README.md +94 -21
- package/dist/agent.d.ts +2 -0
- package/dist/agent.js +2 -0
- package/dist/bus-Bi-Ec414.js +476 -0
- package/dist/bus-protocol-wXkXW28q.d.ts +66 -0
- package/dist/bus.d.ts +85 -0
- package/dist/bus.js +2 -0
- package/dist/client/browser.js +53 -0
- package/dist/client.d.ts +67 -0
- package/dist/client.js +200 -0
- package/dist/conflict-Bg8vCisd.js +63 -0
- package/dist/conflict-CmZizTYl.d.ts +17 -0
- package/dist/document-DPaywuCO.d.ts +16 -0
- package/dist/document-DjBrcgpY.js +2041 -0
- package/dist/durability.d.ts +10 -0
- package/dist/durability.js +46 -0
- package/dist/editor-BM5-vHqf.js +147 -0
- package/dist/error-diagnostics-B_66irmt.js +141 -0
- package/dist/index.d.ts +22 -4
- package/dist/index.js +4 -6
- package/dist/internal/runtime/unavailable.d.ts +5 -0
- package/dist/internal/runtime/unavailable.js +8 -0
- package/dist/keepalive-BCs-uXp4.js +33 -0
- package/dist/layout-DNaxppTZ.js +34 -0
- package/dist/layout-fyQnhwCg.d.ts +18 -0
- package/dist/object-CzKyK0hX.js +145 -0
- package/dist/presence-Tuy1y_l9.js +53 -0
- package/dist/request-BUwa359H.d.ts +48 -0
- package/dist/request-CWaHqW3R.js +192 -0
- package/dist/server.d.ts +132 -27
- package/dist/server.js +2228 -506
- package/dist/types-1DVVG5ro.d.ts +319 -0
- package/dist/vite.d.ts +177 -6
- package/dist/vite.js +930 -55
- package/dist/vue.d.ts +69 -3807
- package/dist/vue.js +353 -65
- package/package.json +117 -36
- package/dist/editor-extensions-CZEzrJ-t.js +0 -4860
- package/dist/types-BSDtKw5d.d.ts +0 -42
package/package.json
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-hub/realtime",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Realtime document primitives and Vite integration for ViteHub.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"collaboration",
|
|
7
7
|
"h3",
|
|
8
|
+
"postgres",
|
|
8
9
|
"realtime",
|
|
10
|
+
"redis",
|
|
11
|
+
"typescript",
|
|
9
12
|
"vite",
|
|
10
13
|
"vitehub",
|
|
14
|
+
"websocket",
|
|
11
15
|
"yjs"
|
|
12
16
|
],
|
|
13
|
-
"homepage": "https://
|
|
17
|
+
"homepage": "https://vitehub.dev",
|
|
14
18
|
"bugs": "https://github.com/vite-hub/vitehub/issues",
|
|
15
19
|
"license": "Apache-2.0",
|
|
16
20
|
"author": "onmax <maximogarciamtnez@gmail.com>",
|
|
@@ -26,49 +30,126 @@
|
|
|
26
30
|
"type": "module",
|
|
27
31
|
"sideEffects": false,
|
|
28
32
|
"types": "./dist/index.d.ts",
|
|
33
|
+
"imports": {
|
|
34
|
+
"#vitehub/realtime/availability": {
|
|
35
|
+
"types": "./dist/internal/runtime/unavailable.d.ts",
|
|
36
|
+
"default": "./dist/internal/runtime/unavailable.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
29
39
|
"exports": {
|
|
30
|
-
".":
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./dist/index.d.ts",
|
|
42
|
+
"import": "./dist/index.js",
|
|
43
|
+
"default": "./dist/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./agent": {
|
|
46
|
+
"types": "./dist/agent.d.ts",
|
|
47
|
+
"import": "./dist/agent.js",
|
|
48
|
+
"default": "./dist/agent.js"
|
|
49
|
+
},
|
|
50
|
+
"./bus": {
|
|
51
|
+
"types": "./dist/bus.d.ts",
|
|
52
|
+
"import": "./dist/bus.js",
|
|
53
|
+
"default": "./dist/bus.js"
|
|
54
|
+
},
|
|
55
|
+
"./client": {
|
|
56
|
+
"types": "./dist/client.d.ts",
|
|
57
|
+
"import": "./dist/client.js",
|
|
58
|
+
"default": "./dist/client.js"
|
|
59
|
+
},
|
|
60
|
+
"./durability": {
|
|
61
|
+
"types": "./dist/durability.d.ts",
|
|
62
|
+
"import": "./dist/durability.js",
|
|
63
|
+
"default": "./dist/durability.js"
|
|
64
|
+
},
|
|
65
|
+
"./internal/runtime/unavailable": {
|
|
66
|
+
"types": "./dist/internal/runtime/unavailable.d.ts",
|
|
67
|
+
"import": "./dist/internal/runtime/unavailable.js",
|
|
68
|
+
"default": "./dist/internal/runtime/unavailable.js"
|
|
69
|
+
},
|
|
70
|
+
"./server": {
|
|
71
|
+
"types": "./dist/server.d.ts",
|
|
72
|
+
"import": "./dist/server.js",
|
|
73
|
+
"default": "./dist/server.js"
|
|
74
|
+
},
|
|
75
|
+
"./vite": {
|
|
76
|
+
"types": "./dist/vite.d.ts",
|
|
77
|
+
"import": "./dist/vite.js",
|
|
78
|
+
"default": "./dist/vite.js"
|
|
79
|
+
},
|
|
80
|
+
"./vue": {
|
|
81
|
+
"types": "./dist/vue.d.ts",
|
|
82
|
+
"import": "./dist/vue.js",
|
|
83
|
+
"default": "./dist/vue.js"
|
|
84
|
+
},
|
|
85
|
+
"./package.json": "./package.json",
|
|
86
|
+
"./client/browser.js": {
|
|
87
|
+
"types": "./dist/client.d.ts",
|
|
88
|
+
"default": "./dist/client/browser.js"
|
|
89
|
+
}
|
|
35
90
|
},
|
|
36
91
|
"dependencies": {
|
|
37
|
-
"@tiptap/
|
|
38
|
-
"@tiptap/
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"@tiptap/starter-kit": "^3.29.2",
|
|
45
|
-
"@tiptap/y-tiptap": "^3.0.8",
|
|
46
|
-
"@vite-hub/auth": "0.0.4",
|
|
47
|
-
"@vite-hub/workspace": "0.0.4",
|
|
48
|
-
"h3": "2.0.1-rc.25",
|
|
49
|
-
"lib0": "^0.2.114",
|
|
92
|
+
"@tiptap/extension-collaboration": "^3.31.4",
|
|
93
|
+
"@tiptap/y-tiptap": "^3.0.9",
|
|
94
|
+
"@vite-hub/auth": "0.3.0",
|
|
95
|
+
"@vite-hub/workspace": "0.3.0",
|
|
96
|
+
"h3": "^2.0.8",
|
|
97
|
+
"ioredis": "^5.11.1",
|
|
98
|
+
"lib0": "^0.2.119",
|
|
50
99
|
"marked": "17.0.6",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
100
|
+
"nostics": "1.4.0",
|
|
101
|
+
"postgres": "^3.4.9",
|
|
102
|
+
"prosemirror-model": "^1.25.12",
|
|
103
|
+
"prosemirror-state": "^1.4.4",
|
|
104
|
+
"prosemirror-transform": "^1.12.2",
|
|
105
|
+
"prosemirror-view": "^1.42.3",
|
|
106
|
+
"y-protocols": "^1.0.7",
|
|
107
|
+
"y-websocket": "^3.1.0",
|
|
108
|
+
"@vite-hub/runtime": "0.3.0"
|
|
55
109
|
},
|
|
56
110
|
"devDependencies": {
|
|
111
|
+
"@tiptap/core": "^3.31.4",
|
|
112
|
+
"@tiptap/extension-blockquote": "^3.31.4",
|
|
113
|
+
"@tiptap/extension-code": "^3.31.4",
|
|
114
|
+
"@tiptap/extension-document": "^3.31.4",
|
|
115
|
+
"@tiptap/extension-image": "^3.31.4",
|
|
116
|
+
"@tiptap/extension-table": "^3.31.4",
|
|
117
|
+
"@tiptap/markdown": "^3.31.4",
|
|
118
|
+
"@tiptap/pm": "^3.31.4",
|
|
119
|
+
"@tiptap/starter-kit": "^3.31.4",
|
|
57
120
|
"@types/json-schema": "^7.0.15",
|
|
58
|
-
"@types/node": "^24.
|
|
59
|
-
"
|
|
60
|
-
"
|
|
121
|
+
"@types/node": "^24.19.1",
|
|
122
|
+
"@vite-hub/database": "0.3.0",
|
|
123
|
+
"@vite-hub/internal": "0.0.1",
|
|
124
|
+
"happy-dom": "21.0.3",
|
|
125
|
+
"linkedom": "^0.18.13",
|
|
126
|
+
"nitro": "^3.0.261103-rc",
|
|
127
|
+
"publint": "^0.3.25",
|
|
61
128
|
"typescript": "^6.0.3",
|
|
62
|
-
"vite": "^8.
|
|
63
|
-
"vite-plus": "^0.
|
|
64
|
-
"vitest": "^4.1.
|
|
65
|
-
"vue": "
|
|
66
|
-
"
|
|
129
|
+
"vite": "^8.2.2",
|
|
130
|
+
"vite-plus": "^0.3.3",
|
|
131
|
+
"vitest": "^4.1.11",
|
|
132
|
+
"vue": "3.5.44",
|
|
133
|
+
"miniflare": "4.20260730.0",
|
|
134
|
+
"drizzle-orm": "1.0.0-rc.5",
|
|
135
|
+
"yjs": "^13.6.33"
|
|
67
136
|
},
|
|
68
137
|
"peerDependencies": {
|
|
138
|
+
"@tiptap/core": "^3.31.4",
|
|
139
|
+
"@tiptap/extension-blockquote": "^3.31.4",
|
|
140
|
+
"@tiptap/extension-code": "^3.31.4",
|
|
141
|
+
"@tiptap/extension-document": "^3.31.4",
|
|
142
|
+
"@tiptap/extension-image": "^3.31.4",
|
|
143
|
+
"@tiptap/extension-table": "^3.31.4",
|
|
144
|
+
"@tiptap/markdown": "^3.31.4",
|
|
145
|
+
"@tiptap/pm": "^3.31.4",
|
|
146
|
+
"@tiptap/starter-kit": "^3.31.4",
|
|
69
147
|
"@types/json-schema": "^7.0.15",
|
|
148
|
+
"nitro": "3.0.261102-rc || ^3.0.261103-rc",
|
|
70
149
|
"vite": ">=8.0.0",
|
|
71
|
-
"vue": "^3.5.0"
|
|
150
|
+
"vue": "^3.5.0",
|
|
151
|
+
"drizzle-orm": "1.0.0-rc.5 || ^1.0.0",
|
|
152
|
+
"yjs": "^13.6.33"
|
|
72
153
|
},
|
|
73
154
|
"peerDependenciesMeta": {
|
|
74
155
|
"vite": {
|
|
@@ -79,12 +160,12 @@
|
|
|
79
160
|
}
|
|
80
161
|
},
|
|
81
162
|
"engines": {
|
|
82
|
-
"node": ">=
|
|
163
|
+
"node": ">=22.18.0"
|
|
83
164
|
},
|
|
84
165
|
"scripts": {
|
|
85
166
|
"build": "vp pack",
|
|
86
167
|
"dev": "vp pack --watch",
|
|
87
|
-
"typecheck": "
|
|
88
|
-
"test": "vp run -t @vite-hub/realtime#build && vp test"
|
|
168
|
+
"typecheck": "vp run --cache -t @vite-hub/realtime#build && node ../../test/package-typecheck.mjs --noEmit -p ./tsconfig.json",
|
|
169
|
+
"test": "vp run --cache -t @vite-hub/realtime#build && vp test"
|
|
89
170
|
}
|
|
90
171
|
}
|