@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/platform-cloudflare@0.38.0 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
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
  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 62ms
13
11
  CJS dist/index.js 13.95 KB
14
- CJS ⚡️ Build success in 64ms
12
+ CJS ⚡️ Build success in 50ms
13
+ ESM dist/index.mjs 12.82 KB
14
+ ESM ⚡️ Build success in 54ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 884ms
16
+ DTS ⚡️ Build success in 949ms
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.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":"$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.38.0",
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.0",
22
- "@pluv/persistence-cloudflare-transactional-storage": "^0.38.0",
23
- "@pluv/types": "^0.38.0"
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.0",
31
- "eslint-config-pluv": "^0.38.0"
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":"$PING","data":{}}', JSON.stringify({ type: "$PONG", data: {} })),
80
+ new WebSocketRequestResponsePair('{"type":"$ping","data":{}}', JSON.stringify({ type: "$pong", data: {} })),
81
81
  );
82
82
  }
83
83