@pluv/platform-cloudflare 0.40.0 → 0.40.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.40.0 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
2
+ > @pluv/platform-cloudflare@0.40.2 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
3
3
  > tsup src/index.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,7 +9,7 @@
9
9
  CLI Target: es6
10
10
  ESM Build start
11
11
  ESM dist/index.mjs 12.93 KB
12
- ESM ⚡️ Build success in 60ms
12
+ ESM ⚡️ Build success in 66ms
13
13
  DTS Build start
14
- DTS ⚡️ Build success in 1138ms
15
- DTS dist/index.d.mts 6.64 KB
14
+ DTS ⚡️ Build success in 1180ms
15
+ DTS dist/index.d.mts 6.70 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @pluv/platform-cloudflare
2
2
 
3
+ ## 0.40.2
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/io@0.40.2
8
+ - @pluv/persistence-cloudflare-transactional-storage@0.40.2
9
+ - @pluv/types@0.40.2
10
+
11
+ ## 0.40.1
12
+
13
+ ### Patch Changes
14
+
15
+ - 99019a3: Fix return type to return the correct DurableObject type from `createPluvHandler`.
16
+ - @pluv/io@0.40.1
17
+ - @pluv/persistence-cloudflare-transactional-storage@0.40.1
18
+ - @pluv/types@0.40.1
19
+
3
20
  ## 0.40.0
4
21
 
5
22
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { AbstractWebSocket, WebSocketSerializedState, AbstractWebSocketConfig, AbstractEventMap, AbstractListener, AbstractPlatform, WebSocketRegistrationMode, AbstractPlatformConfig, ConvertWebSocketConfig, PluvServer, InferInitContextType, CreateIOParams, PluvIOAuthorize, PluvContext } from '@pluv/io';
2
2
  import { JsonObject, Json, MaybePromise, InferIOAuthorizeUser, InferIOAuthorize, BaseUser, Maybe, Id } from '@pluv/types';
3
+ import { DurableObject } from 'cloudflare:workers';
3
4
 
4
5
  type CloudflareWebSocketConfig = AbstractWebSocketConfig;
5
6
  declare class CloudflareWebSocket extends AbstractWebSocket<WebSocket> {
@@ -93,7 +94,7 @@ type CreatePluvHandlerConfig<TPluvServer extends PluvServer<any, any, any, any>,
93
94
  type PluvHandlerFetch<TEnv extends Record<string, any> = {}> = (request: Request, env: TEnv) => Promise<Response | null>;
94
95
  interface CreatePluvHandlerResult<TEnv extends Record<string, any> = {}> {
95
96
  DurableObject: {
96
- new (state: DurableObjectState, env: TEnv): DurableObject;
97
+ new (state: DurableObjectState, env: TEnv): DurableObject<TEnv>;
97
98
  };
98
99
  fetch: PluvHandlerFetch<TEnv>;
99
100
  handler: ExportedHandler<TEnv>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-cloudflare",
3
- "version": "0.40.0",
3
+ "version": "0.40.2",
4
4
  "description": "@pluv/io adapter for cloudflare workers",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,17 +17,17 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "path-to-regexp": "^8.2.0",
20
- "@pluv/persistence-cloudflare-transactional-storage": "^0.40.0",
21
- "@pluv/io": "^0.40.0",
22
- "@pluv/types": "^0.40.0"
20
+ "@pluv/io": "^0.40.2",
21
+ "@pluv/persistence-cloudflare-transactional-storage": "^0.40.2",
22
+ "@pluv/types": "^0.40.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@cloudflare/workers-types": "^4.20250414.0",
26
26
  "eslint": "^9.24.0",
27
27
  "tsup": "^8.4.0",
28
28
  "typescript": "^5.8.3",
29
- "@pluv/tsconfig": "^0.40.0",
30
- "eslint-config-pluv": "^0.40.0"
29
+ "@pluv/tsconfig": "^0.40.2",
30
+ "eslint-config-pluv": "^0.40.2"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsup src/index.ts",
@@ -30,7 +30,7 @@ export type PluvHandlerFetch<TEnv extends Record<string, any> = {}> = (
30
30
 
31
31
  export interface CreatePluvHandlerResult<TEnv extends Record<string, any> = {}> {
32
32
  DurableObject: {
33
- new (state: DurableObjectState, env: TEnv): DurableObject;
33
+ new (state: DurableObjectState, env: TEnv): BaseDurableObject<TEnv>;
34
34
  };
35
35
  fetch: PluvHandlerFetch<TEnv>;
36
36
  handler: ExportedHandler<TEnv>;