@pluv/client 0.37.1 → 0.37.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/client@0.37.1 build /home/runner/work/pluv/pluv/packages/client
2
+ > @pluv/client@0.37.2 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 47.44 KB
12
- ESM ⚡️ Build success in 120ms
13
- CJS dist/index.js 48.76 KB
14
- CJS ⚡️ Build success in 121ms
11
+ ESM dist/index.mjs 47.50 KB
12
+ ESM ⚡️ Build success in 134ms
13
+ CJS dist/index.js 48.82 KB
14
+ CJS ⚡️ Build success in 135ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3590ms
16
+ DTS ⚡️ Build success in 3258ms
17
17
  DTS dist/index.d.mts 23.10 KB
18
18
  DTS dist/index.d.ts 23.10 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/client
2
2
 
3
+ ## 0.37.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 11920af: Updated the default `wsEndpoint` for `PluvClient` when `publicKey` is provided to be correct.
8
+ - @pluv/crdt@0.37.2
9
+ - @pluv/types@0.37.2
10
+
3
11
  ## 0.37.1
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -839,7 +839,7 @@ var PluvRoom = class extends AbstractRoom {
839
839
  _getWsEndpoint(room) {
840
840
  switch (typeof this._endpoints.wsEndpoint) {
841
841
  case "undefined":
842
- return `/api/pluv/room/${room}`;
842
+ return !!this._getPublicKey() ? `https://rooms.pluv.io/${room}` : `/api/pluv/room/${room}`;
843
843
  case "string":
844
844
  return this._endpoints.wsEndpoint;
845
845
  default:
package/dist/index.mjs CHANGED
@@ -808,7 +808,7 @@ var PluvRoom = class extends AbstractRoom {
808
808
  _getWsEndpoint(room) {
809
809
  switch (typeof this._endpoints.wsEndpoint) {
810
810
  case "undefined":
811
- return `/api/pluv/room/${room}`;
811
+ return !!this._getPublicKey() ? `https://rooms.pluv.io/${room}` : `/api/pluv/room/${room}`;
812
812
  case "string":
813
813
  return this._endpoints.wsEndpoint;
814
814
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/client",
3
- "version": "0.37.1",
3
+ "version": "0.37.2",
4
4
  "description": "@pluv/io frontend client",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,16 +17,16 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "wonka": "^6.3.4",
21
- "@pluv/crdt": "^0.37.1",
22
- "@pluv/types": "^0.37.1"
20
+ "wonka": "^6.3.5",
21
+ "@pluv/crdt": "^0.37.2",
22
+ "@pluv/types": "^0.37.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "eslint": "^8.57.1",
26
26
  "tsup": "^8.4.0",
27
27
  "typescript": "^5.8.2",
28
- "@pluv/tsconfig": "^0.37.1",
29
- "eslint-config-pluv": "^0.37.1"
28
+ "@pluv/tsconfig": "^0.37.2",
29
+ "eslint-config-pluv": "^0.37.2"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/PluvRoom.ts CHANGED
@@ -747,7 +747,7 @@ export class PluvRoom<
747
747
  private _getWsEndpoint(room: string): string {
748
748
  switch (typeof this._endpoints.wsEndpoint) {
749
749
  case "undefined":
750
- return `/api/pluv/room/${room}`;
750
+ return !!this._getPublicKey() ? `https://rooms.pluv.io/${room}` : `/api/pluv/room/${room}`;
751
751
  case "string":
752
752
  return this._endpoints.wsEndpoint;
753
753
  default: