@pluv/platform-cloudflare 0.40.0 → 0.40.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.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +9 -0
- package/dist/index.d.mts +2 -1
- package/package.json +6 -6
- package/src/createPluvHandler.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-cloudflare@0.40.
|
|
2
|
+
> @pluv/platform-cloudflare@0.40.1 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
|
|
3
3
|
> tsup src/index.ts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[34mCLI[39m Target: es6
|
|
10
10
|
[34mESM[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.mjs [22m[32m12.93 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 50ms
|
|
13
13
|
[34mDTS[39m Build start
|
|
14
|
-
[32mDTS[39m ⚡️ Build success in
|
|
15
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m6.
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 1260ms
|
|
15
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m6.70 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @pluv/platform-cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.40.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 99019a3: Fix return type to return the correct DurableObject type from `createPluvHandler`.
|
|
8
|
+
- @pluv/io@0.40.1
|
|
9
|
+
- @pluv/persistence-cloudflare-transactional-storage@0.40.1
|
|
10
|
+
- @pluv/types@0.40.1
|
|
11
|
+
|
|
3
12
|
## 0.40.0
|
|
4
13
|
|
|
5
14
|
### 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.
|
|
3
|
+
"version": "0.40.1",
|
|
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/
|
|
21
|
-
"@pluv/
|
|
22
|
-
"@pluv/types": "^0.40.
|
|
20
|
+
"@pluv/io": "^0.40.1",
|
|
21
|
+
"@pluv/persistence-cloudflare-transactional-storage": "^0.40.1",
|
|
22
|
+
"@pluv/types": "^0.40.1"
|
|
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.
|
|
30
|
-
"eslint-config-pluv": "^0.40.
|
|
29
|
+
"@pluv/tsconfig": "^0.40.1",
|
|
30
|
+
"eslint-config-pluv": "^0.40.1"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsup src/index.ts",
|
package/src/createPluvHandler.ts
CHANGED
|
@@ -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):
|
|
33
|
+
new (state: DurableObjectState, env: TEnv): BaseDurableObject<TEnv>;
|
|
34
34
|
};
|
|
35
35
|
fetch: PluvHandlerFetch<TEnv>;
|
|
36
36
|
handler: ExportedHandler<TEnv>;
|