@pluv/platform-cloudflare 0.25.4 → 0.27.0
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 +7 -7
- package/CHANGELOG.md +19 -0
- package/dist/index.js +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +9 -9
- package/src/CloudflarePlatform.ts +1 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-cloudflare@0.
|
|
2
|
+
> @pluv/platform-cloudflare@0.27.0 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
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.
|
|
7
|
+
[34mCLI[39m tsup v8.3.0
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[32mCJS[39m [1mdist/index.js [22m[32m12.
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m11.
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m12.73 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 128ms
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m11.63 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 129ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 831ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m4.15 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.15 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @pluv/platform-cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.27.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [19ed36c]
|
|
8
|
+
- Updated dependencies [e309b0b]
|
|
9
|
+
- @pluv/io@0.27.0
|
|
10
|
+
- @pluv/persistence-cloudflare-transactional-storage@0.27.0
|
|
11
|
+
- @pluv/types@0.27.0
|
|
12
|
+
|
|
13
|
+
## 0.26.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 2a6e078: Updated `@pluv/platform-cloudflare` and `@pluv/platform-node` so that exact properties are used in its initialization.
|
|
18
|
+
- @pluv/io@0.26.0
|
|
19
|
+
- @pluv/persistence-cloudflare-transactional-storage@0.26.0
|
|
20
|
+
- @pluv/types@0.26.0
|
|
21
|
+
|
|
3
22
|
## 0.25.4
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -311,13 +311,12 @@ var CloudflarePlatform = class _CloudflarePlatform extends import_io2.AbstractPl
|
|
|
311
311
|
if (!context.env || !context.state) {
|
|
312
312
|
throw new Error("Could not derive platform context");
|
|
313
313
|
}
|
|
314
|
-
return new _CloudflarePlatform(
|
|
314
|
+
return new _CloudflarePlatform({
|
|
315
|
+
context: { env: context.env, state: context.state },
|
|
315
316
|
mode: this._registrationMode,
|
|
316
317
|
persistence: this.persistence,
|
|
317
318
|
pubSub: this.pubSub
|
|
318
|
-
}
|
|
319
|
-
context: { env: context.env, state: context.state }
|
|
320
|
-
}))._initialize();
|
|
319
|
+
})._initialize();
|
|
321
320
|
}
|
|
322
321
|
parseData(data) {
|
|
323
322
|
if (typeof data === "string") return JSON.parse(data);
|
package/dist/index.mjs
CHANGED
|
@@ -287,13 +287,12 @@ var CloudflarePlatform = class _CloudflarePlatform extends AbstractPlatform {
|
|
|
287
287
|
if (!context.env || !context.state) {
|
|
288
288
|
throw new Error("Could not derive platform context");
|
|
289
289
|
}
|
|
290
|
-
return new _CloudflarePlatform(
|
|
290
|
+
return new _CloudflarePlatform({
|
|
291
|
+
context: { env: context.env, state: context.state },
|
|
291
292
|
mode: this._registrationMode,
|
|
292
293
|
persistence: this.persistence,
|
|
293
294
|
pubSub: this.pubSub
|
|
294
|
-
}
|
|
295
|
-
context: { env: context.env, state: context.state }
|
|
296
|
-
}))._initialize();
|
|
295
|
+
})._initialize();
|
|
297
296
|
}
|
|
298
297
|
parseData(data) {
|
|
299
298
|
if (typeof data === "string") return JSON.parse(data);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/platform-cloudflare",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
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": "^7.1.0",
|
|
21
|
-
"@pluv/io": "^0.
|
|
22
|
-
"@pluv/persistence-cloudflare-transactional-storage": "^0.
|
|
23
|
-
"@pluv/types": "^0.
|
|
21
|
+
"@pluv/io": "^0.27.0",
|
|
22
|
+
"@pluv/persistence-cloudflare-transactional-storage": "^0.27.0",
|
|
23
|
+
"@pluv/types": "^0.27.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@cloudflare/workers-types": "^4.
|
|
26
|
+
"@cloudflare/workers-types": "^4.20240909.0",
|
|
27
27
|
"eslint": "^8.57.0",
|
|
28
|
-
"tsup": "^8.
|
|
29
|
-
"typescript": "^5.
|
|
30
|
-
"@pluv/tsconfig": "^0.
|
|
31
|
-
"eslint-config-pluv": "^0.
|
|
28
|
+
"tsup": "^8.3.0",
|
|
29
|
+
"typescript": "^5.6.2",
|
|
30
|
+
"@pluv/tsconfig": "^0.27.0",
|
|
31
|
+
"eslint-config-pluv": "^0.27.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
@@ -99,11 +99,10 @@ export class CloudflarePlatform<TEnv extends Record<string, any> = {}> extends A
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
return new CloudflarePlatform<TEnv>({
|
|
102
|
+
context: { env: context.env, state: context.state },
|
|
102
103
|
mode: this._registrationMode,
|
|
103
104
|
persistence: this.persistence,
|
|
104
105
|
pubSub: this.pubSub,
|
|
105
|
-
...config,
|
|
106
|
-
context: { env: context.env, state: context.state },
|
|
107
106
|
})._initialize() as this;
|
|
108
107
|
}
|
|
109
108
|
|