@pluv/platform-cloudflare 0.38.0 → 0.38.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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +18 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
- package/src/CloudflarePlatform.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-cloudflare@0.38.
|
|
2
|
+
> @pluv/platform-cloudflare@0.38.2 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m12.82 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in 62ms
|
|
13
11
|
[32mCJS[39m [1mdist/index.js [22m[32m13.95 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 50ms
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m12.82 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 54ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 949ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m6.63 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m6.63 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @pluv/platform-cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.38.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [039cd64]
|
|
8
|
+
- @pluv/io@0.38.2
|
|
9
|
+
- @pluv/persistence-cloudflare-transactional-storage@0.38.2
|
|
10
|
+
- @pluv/types@0.38.2
|
|
11
|
+
|
|
12
|
+
## 0.38.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 702fbd2: Fix sending and receiving the wrong heartbeat websocket events for Cloudflare websocket hibernation.
|
|
17
|
+
- @pluv/io@0.38.1
|
|
18
|
+
- @pluv/persistence-cloudflare-transactional-storage@0.38.1
|
|
19
|
+
- @pluv/types@0.38.1
|
|
20
|
+
|
|
3
21
|
## 0.38.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -290,7 +290,7 @@ var CloudflarePlatform = class _CloudflarePlatform extends import_io2.AbstractPl
|
|
|
290
290
|
const detachedState = this._getDetachedState();
|
|
291
291
|
if (!detachedState) return;
|
|
292
292
|
detachedState.setWebSocketAutoResponse(
|
|
293
|
-
new WebSocketRequestResponsePair('{"type":"$
|
|
293
|
+
new WebSocketRequestResponsePair('{"type":"$ping","data":{}}', JSON.stringify({ type: "$pong", data: {} }))
|
|
294
294
|
);
|
|
295
295
|
}
|
|
296
296
|
acceptWebSocket(webSocket) {
|
package/dist/index.mjs
CHANGED
|
@@ -265,7 +265,7 @@ var CloudflarePlatform = class _CloudflarePlatform extends AbstractPlatform {
|
|
|
265
265
|
const detachedState = this._getDetachedState();
|
|
266
266
|
if (!detachedState) return;
|
|
267
267
|
detachedState.setWebSocketAutoResponse(
|
|
268
|
-
new WebSocketRequestResponsePair('{"type":"$
|
|
268
|
+
new WebSocketRequestResponsePair('{"type":"$ping","data":{}}', JSON.stringify({ type: "$pong", data: {} }))
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
acceptWebSocket(webSocket) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/platform-cloudflare",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.2",
|
|
4
4
|
"description": "@pluv/io adapter for cloudflare workers",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"path-to-regexp": "^8.2.0",
|
|
21
|
-
"@pluv/io": "^0.38.
|
|
22
|
-
"@pluv/persistence-cloudflare-transactional-storage": "^0.38.
|
|
23
|
-
"@pluv/types": "^0.38.
|
|
21
|
+
"@pluv/io": "^0.38.2",
|
|
22
|
+
"@pluv/persistence-cloudflare-transactional-storage": "^0.38.2",
|
|
23
|
+
"@pluv/types": "^0.38.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@cloudflare/workers-types": "^4.20250310.0",
|
|
27
27
|
"eslint": "^8.57.1",
|
|
28
28
|
"tsup": "^8.4.0",
|
|
29
29
|
"typescript": "^5.8.2",
|
|
30
|
-
"@pluv/tsconfig": "^0.38.
|
|
31
|
-
"eslint-config-pluv": "^0.38.
|
|
30
|
+
"@pluv/tsconfig": "^0.38.2",
|
|
31
|
+
"eslint-config-pluv": "^0.38.2"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
@@ -77,7 +77,7 @@ export class CloudflarePlatform<
|
|
|
77
77
|
if (!detachedState) return;
|
|
78
78
|
|
|
79
79
|
detachedState.setWebSocketAutoResponse(
|
|
80
|
-
new WebSocketRequestResponsePair('{"type":"$
|
|
80
|
+
new WebSocketRequestResponsePair('{"type":"$ping","data":{}}', JSON.stringify({ type: "$pong", data: {} })),
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
83
|
|