Commit 06c7a20
authored
fix: replace better-sqlite3 with sql.js for cross-platform compatibility (JavaScriptSolidServer#93)
- Remove better-sqlite3 from package.json dependencies
- Use sql.js (WASM) directly for ActivityPub storage
- Simplify code by removing try/catch fallback logic
- Update README to reference sql.js
This fixes installation failures on:
- Android/Termux (gyp: Undefined variable android_ndk_path)
- Windows (node-gyp compilation errors)
- ARM devices and restricted environments
Performance impact: Sub-millisecond difference for federation operations
(only used for ActivityPub/Nostr, not main pod storage)
Resolves JavaScriptSolidServer#921 parent 2431da9 commit 06c7a20
3 files changed
+39
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1047 | 1047 | | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | | - | |
| 1050 | + | |
1051 | 1051 | | |
1052 | 1052 | | |
1053 | 1053 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
103 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
104 | 91 | | |
105 | 92 | | |
106 | 93 | | |
107 | 94 | | |
108 | 95 | | |
109 | 96 | | |
110 | | - | |
| 97 | + | |
111 | 98 | | |
112 | 99 | | |
113 | 100 | | |
| |||
124 | 111 | | |
125 | 112 | | |
126 | 113 | | |
127 | | - | |
| 114 | + | |
128 | 115 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 116 | + | |
| 117 | + | |
135 | 118 | | |
136 | 119 | | |
137 | 120 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
146 | 125 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 126 | + | |
150 | 127 | | |
| 128 | + | |
| 129 | + | |
151 | 130 | | |
152 | 131 | | |
153 | 132 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
165 | 138 | | |
| 139 | + | |
| 140 | + | |
166 | 141 | | |
167 | 142 | | |
168 | 143 | | |
| |||
0 commit comments