@ethlete/query 5.33.1 → 5.33.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ethlete/query
|
|
2
2
|
|
|
3
|
+
## 5.33.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4fa6338`](https://github.com/ethlete-io/ethdk/commit/4fa63386c3af60d7843efb59592f7416b04330ac) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix web socket throwing an injection error
|
|
8
|
+
|
|
3
9
|
## 5.33.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -5186,6 +5186,8 @@ const createWebSocketClient = (config) => {
|
|
|
5186
5186
|
const isConnected = signal(false);
|
|
5187
5187
|
const joinRoom = (room) => {
|
|
5188
5188
|
const roomFn = typeof room === 'function' ? room : () => room;
|
|
5189
|
+
const pre = previousSignalValue(computed(() => roomFn()));
|
|
5190
|
+
const roomData = signal(null);
|
|
5189
5191
|
const join = (name) => {
|
|
5190
5192
|
socket.emit('join-room', name);
|
|
5191
5193
|
const existingRoom = rooms.get(name);
|
|
@@ -5198,8 +5200,6 @@ const createWebSocketClient = (config) => {
|
|
|
5198
5200
|
rooms.set(name, newRoom);
|
|
5199
5201
|
return newRoom;
|
|
5200
5202
|
};
|
|
5201
|
-
const pre = previousSignalValue(computed(() => roomFn()));
|
|
5202
|
-
const roomData = signal(null);
|
|
5203
5203
|
effect(() => {
|
|
5204
5204
|
const current = roomFn();
|
|
5205
5205
|
untracked(() => {
|
|
@@ -5239,7 +5239,7 @@ const createWebSocketClient = (config) => {
|
|
|
5239
5239
|
socket.on('connect', () => {
|
|
5240
5240
|
isConnected.set(true);
|
|
5241
5241
|
for (const room of rooms.keys()) {
|
|
5242
|
-
|
|
5242
|
+
socket.emit('join-room', room);
|
|
5243
5243
|
}
|
|
5244
5244
|
});
|
|
5245
5245
|
socket.on('disconnect', () => isConnected.set(false));
|