@pluv/platform-cloudflare 0.25.3 → 0.26.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/platform-cloudflare@0.25.3 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
2
+ > @pluv/platform-cloudflare@0.26.0 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
- CJS dist/index.js 12.78 KB
12
- CJS ⚡️ Build success in 33ms
13
- ESM dist/index.mjs 11.68 KB
14
- ESM ⚡️ Build success in 34ms
11
+ ESM dist/index.mjs 11.63 KB
12
+ ESM ⚡️ Build success in 29ms
13
+ CJS dist/index.js 12.73 KB
14
+ CJS ⚡️ Build success in 29ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 717ms
16
+ DTS ⚡️ Build success in 699ms
17
17
  DTS dist/index.d.mts 4.15 KB
18
18
  DTS dist/index.d.ts 4.15 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @pluv/platform-cloudflare
2
2
 
3
+ ## 0.26.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 2a6e078: Updated `@pluv/platform-cloudflare` and `@pluv/platform-node` so that exact properties are used in its initialization.
8
+ - @pluv/io@0.26.0
9
+ - @pluv/persistence-cloudflare-transactional-storage@0.26.0
10
+ - @pluv/types@0.26.0
11
+
12
+ ## 0.25.4
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [7a9080c]
17
+ - @pluv/io@0.25.4
18
+ - @pluv/persistence-cloudflare-transactional-storage@0.25.4
19
+ - @pluv/types@0.25.4
20
+
3
21
  ## 0.25.3
4
22
 
5
23
  ### 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(__spreadProps(__spreadValues({
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
- }, config), {
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(__spreadProps(__spreadValues({
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
- }, config), {
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.25.3",
3
+ "version": "0.26.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.25.3",
22
- "@pluv/persistence-cloudflare-transactional-storage": "^0.25.3",
23
- "@pluv/types": "^0.25.3"
21
+ "@pluv/io": "^0.26.0",
22
+ "@pluv/persistence-cloudflare-transactional-storage": "^0.26.0",
23
+ "@pluv/types": "^0.26.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@cloudflare/workers-types": "^4.20240821.1",
27
27
  "eslint": "^8.57.0",
28
28
  "tsup": "^8.2.4",
29
29
  "typescript": "^5.5.4",
30
- "@pluv/tsconfig": "^0.25.3",
31
- "eslint-config-pluv": "^0.25.3"
30
+ "@pluv/tsconfig": "^0.26.0",
31
+ "eslint-config-pluv": "^0.26.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