@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/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "@vite-hub/realtime",
3
- "version": "0.0.4",
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://github.com/vite-hub/vitehub#readme",
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
- ".": "./dist/index.js",
31
- "./server": "./dist/server.js",
32
- "./vite": "./dist/vite.js",
33
- "./vue": "./dist/vue.js",
34
- "./package.json": "./package.json"
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/core": "^3.29.2",
38
- "@tiptap/extension-collaboration": "^3.29.2",
39
- "@tiptap/extension-document": "^3.29.2",
40
- "@tiptap/extension-image": "^3.29.2",
41
- "@tiptap/extension-table": "^3.29.2",
42
- "@tiptap/markdown": "^3.29.2",
43
- "@tiptap/pm": "^3.29.2",
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
- "pathe": "^2.0.3",
52
- "y-protocols": "^1.0.6",
53
- "y-websocket": "^3.0.0",
54
- "yjs": "^13.6.27"
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.13.3",
59
- "linkedom": "^0.18.12",
60
- "publint": "^0.3.21",
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.0.8",
63
- "vite-plus": "^0.1.24",
64
- "vitest": "^4.1.4",
65
- "vue": "^3.5.0",
66
- "@vite-hub/internal": "0.0.1"
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": ">=24.15.0"
163
+ "node": ">=22.18.0"
83
164
  },
84
165
  "scripts": {
85
166
  "build": "vp pack",
86
167
  "dev": "vp pack --watch",
87
- "typecheck": "tsc --noEmit -p ./tsconfig.json",
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
  }