@pluv/platform-cloudflare 0.22.0 → 0.23.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/platform-cloudflare@0.22.0 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
2
+ > @pluv/platform-cloudflare@0.23.0 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -13,6 +13,6 @@
13
13
  CJS dist/index.js 15.18 KB
14
14
  CJS ⚡️ Build success in 96ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3405ms
16
+ DTS ⚡️ Build success in 3590ms
17
17
  DTS dist/index.d.mts 4.15 KB
18
18
  DTS dist/index.d.ts 4.15 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/platform-cloudflare
2
2
 
3
+ ## 0.23.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [c01b16f]
8
+ - @pluv/io@0.23.0
9
+ - @pluv/types@0.23.0
10
+
3
11
  ## 0.22.0
4
12
 
5
13
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-cloudflare",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "@pluv/io adapter for cloudflare workers",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -18,16 +18,16 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "path-to-regexp": "^7.1.0",
21
- "@pluv/io": "^0.22.0",
22
- "@pluv/types": "^0.22.0"
21
+ "@pluv/io": "^0.23.0",
22
+ "@pluv/types": "^0.23.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@cloudflare/workers-types": "^4.20240806.0",
25
+ "@cloudflare/workers-types": "^4.20240815.0",
26
26
  "eslint": "^8.57.0",
27
27
  "tsup": "^8.2.4",
28
28
  "typescript": "^5.5.4",
29
- "@pluv/tsconfig": "^0.22.0",
30
- "eslint-config-pluv": "^0.22.0"
29
+ "@pluv/tsconfig": "^0.23.0",
30
+ "eslint-config-pluv": "^0.23.0"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsup src/index.ts --format esm,cjs --dts",
@@ -70,7 +70,6 @@ export const createPluvHandler = <TPluvServer extends PluvServer<CloudflarePlatf
70
70
  if (io._registrationMode !== "detached") return;
71
71
 
72
72
  const handler = this._room.onError(ws);
73
-
74
73
  const eventError = error instanceof Error ? error : new Error("Internal Error");
75
74
 
76
75
  handler({ error: eventError, message: eventError.message });
@@ -92,7 +91,6 @@ export const createPluvHandler = <TPluvServer extends PluvServer<CloudflarePlatf
92
91
  }
93
92
 
94
93
  const { 0: client, 1: server } = new WebSocketPair();
95
-
96
94
  const token = new URL(request.url).searchParams.get("token");
97
95
 
98
96
  await this._room.register(server, { token });