@pluv/client 0.41.5 → 0.41.7

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/client@0.41.5 build /home/runner/work/pluv/pluv/packages/client
2
+ > @pluv/client@0.41.7 build /home/runner/work/pluv/pluv/packages/client
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 55.31 KB
12
- ESM ⚡️ Build success in 137ms
13
- CJS dist/index.js 56.63 KB
14
- CJS ⚡️ Build success in 137ms
11
+ ESM dist/index.mjs 55.12 KB
12
+ ESM ⚡️ Build success in 110ms
13
+ CJS dist/index.js 56.44 KB
14
+ CJS ⚡️ Build success in 116ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3213ms
16
+ DTS ⚡️ Build success in 3198ms
17
17
  DTS dist/index.d.mts 24.58 KB
18
18
  DTS dist/index.d.ts 24.58 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @pluv/client
2
2
 
3
+ ## 0.41.7
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/crdt@0.41.7
8
+ - @pluv/types@0.41.7
9
+
10
+ ## 0.41.6
11
+
12
+ ### Patch Changes
13
+
14
+ - 71642fa: Fix error about missing wsEndpoint.
15
+ - @pluv/crdt@0.41.6
16
+ - @pluv/types@0.41.6
17
+
3
18
  ## 0.41.5
4
19
 
5
20
  ### Patch Changes
package/dist/index.js CHANGED
@@ -805,7 +805,6 @@ var PluvRoom = class extends AbstractRoom {
805
805
  }
806
806
  disconnect() {
807
807
  return __async(this, null, function* () {
808
- if (!this._endpoints.wsEndpoint) throw new Error("Must provide a wsEndpoint.");
809
808
  if (!this._state.webSocket) return;
810
809
  const canDisconnect = ["Connecting" /* Connecting */, "Open" /* Open */].some(
811
810
  (state) => this._state.connection.state === state
@@ -1321,9 +1320,6 @@ var PluvRoom = class extends AbstractRoom {
1321
1320
  }
1322
1321
  _reconnect() {
1323
1322
  return __async(this, null, function* () {
1324
- if (!this._endpoints.wsEndpoint) {
1325
- throw new Error("Must provide an wsEndpoint.");
1326
- }
1327
1323
  if (!this._state.webSocket) return;
1328
1324
  this._closeWs();
1329
1325
  const metadata = this._lastMetadata;
package/dist/index.mjs CHANGED
@@ -774,7 +774,6 @@ var PluvRoom = class extends AbstractRoom {
774
774
  }
775
775
  disconnect() {
776
776
  return __async(this, null, function* () {
777
- if (!this._endpoints.wsEndpoint) throw new Error("Must provide a wsEndpoint.");
778
777
  if (!this._state.webSocket) return;
779
778
  const canDisconnect = ["Connecting" /* Connecting */, "Open" /* Open */].some(
780
779
  (state) => this._state.connection.state === state
@@ -1290,9 +1289,6 @@ var PluvRoom = class extends AbstractRoom {
1290
1289
  }
1291
1290
  _reconnect() {
1292
1291
  return __async(this, null, function* () {
1293
- if (!this._endpoints.wsEndpoint) {
1294
- throw new Error("Must provide an wsEndpoint.");
1295
- }
1296
1292
  if (!this._state.webSocket) return;
1297
1293
  this._closeWs();
1298
1294
  const metadata = this._lastMetadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/client",
3
- "version": "0.41.5",
3
+ "version": "0.41.7",
4
4
  "description": "@pluv/io frontend client",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -18,15 +18,15 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "wonka": "^6.3.5",
21
- "@pluv/crdt": "^0.41.5",
22
- "@pluv/types": "^0.41.5"
21
+ "@pluv/crdt": "^0.41.7",
22
+ "@pluv/types": "^0.41.7"
23
23
  },
24
24
  "devDependencies": {
25
25
  "eslint": "^9.25.0",
26
26
  "tsup": "^8.4.0",
27
27
  "typescript": "^5.8.3",
28
- "@pluv/tsconfig": "^0.41.5",
29
- "eslint-config-pluv": "^0.41.5"
28
+ "@pluv/tsconfig": "^0.41.7",
29
+ "eslint-config-pluv": "^0.41.7"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/PluvRoom.ts CHANGED
@@ -416,7 +416,6 @@ export class PluvRoom<
416
416
  }
417
417
 
418
418
  public async disconnect(): Promise<void> {
419
- if (!this._endpoints.wsEndpoint) throw new Error("Must provide a wsEndpoint.");
420
419
  if (!this._state.webSocket) return;
421
420
 
422
421
  const canDisconnect = [ConnectionState.Connecting, ConnectionState.Open].some(
@@ -1284,10 +1283,6 @@ export class PluvRoom<
1284
1283
  }
1285
1284
 
1286
1285
  private async _reconnect(): Promise<void> {
1287
- if (!this._endpoints.wsEndpoint) {
1288
- throw new Error("Must provide an wsEndpoint.");
1289
- }
1290
-
1291
1286
  if (!this._state.webSocket) return;
1292
1287
 
1293
1288
  this._closeWs();