@pluv/platform-cloudflare 0.37.7 → 0.38.1

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.37.7 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
2
+ > @pluv/platform-cloudflare@0.38.1 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
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 12.82 KB
12
- ESM ⚡️ Build success in 59ms
13
11
  CJS dist/index.js 13.95 KB
14
- CJS ⚡️ Build success in 59ms
12
+ CJS ⚡️ Build success in 130ms
13
+ ESM dist/index.mjs 12.82 KB
14
+ ESM ⚡️ Build success in 130ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1124ms
16
+ DTS ⚡️ Build success in 884ms
17
17
  DTS dist/index.d.mts 6.63 KB
18
18
  DTS dist/index.d.ts 6.63 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @pluv/platform-cloudflare
2
2
 
3
+ ## 0.38.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 702fbd2: Fix sending and receiving the wrong heartbeat websocket events for Cloudflare websocket hibernation.
8
+ - @pluv/io@0.38.1
9
+ - @pluv/persistence-cloudflare-transactional-storage@0.38.1
10
+ - @pluv/types@0.38.1
11
+
12
+ ## 0.38.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [f4ceca3]
17
+ - @pluv/types@0.38.0
18
+ - @pluv/io@0.38.0
19
+ - @pluv/persistence-cloudflare-transactional-storage@0.38.0
20
+
3
21
  ## 0.37.7
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":"$PING","data":{}}', JSON.stringify({ type: "$PONG", data: {} }))
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":"$PING","data":{}}', JSON.stringify({ type: "$PONG", data: {} }))
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.37.7",
3
+ "version": "0.38.1",
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.37.7",
22
- "@pluv/persistence-cloudflare-transactional-storage": "^0.37.7",
23
- "@pluv/types": "^0.37.7"
21
+ "@pluv/io": "^0.38.1",
22
+ "@pluv/persistence-cloudflare-transactional-storage": "^0.38.1",
23
+ "@pluv/types": "^0.38.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@cloudflare/workers-types": "^4.20250303.0",
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.37.7",
31
- "eslint-config-pluv": "^0.37.7"
30
+ "@pluv/tsconfig": "^0.38.1",
31
+ "eslint-config-pluv": "^0.38.1"
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":"$PING","data":{}}', JSON.stringify({ type: "$PONG", data: {} })),
80
+ new WebSocketRequestResponsePair('{"type":"$ping","data":{}}', JSON.stringify({ type: "$pong", data: {} })),
81
81
  );
82
82
  }
83
83