@pluv/io 2.2.6 → 2.2.8

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,9 +1,9 @@
1
1
 
2
- > @pluv/io@2.2.6 build /home/runner/work/pluv/pluv/packages/io
2
+ > @pluv/io@2.2.8 build /home/runner/work/pluv/pluv/packages/io
3
3
  > pnpm run version && tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
 
6
- > @pluv/io@2.2.6 version /home/runner/work/pluv/pluv/packages/io
6
+ > @pluv/io@2.2.8 version /home/runner/work/pluv/pluv/packages/io
7
7
  > genversion ./src/version.generated.ts --esm
8
8
 
9
9
  CLI Building entry: src/index.ts
@@ -12,11 +12,11 @@
12
12
  CLI Target: es6
13
13
  ESM Build start
14
14
  CJS Build start
15
- CJS dist/index.js 54.50 KB
16
- CJS ⚡️ Build success in 136ms
17
- ESM dist/index.mjs 52.32 KB
18
- ESM ⚡️ Build success in 137ms
15
+ ESM dist/index.mjs 52.37 KB
16
+ ESM ⚡️ Build success in 149ms
17
+ CJS dist/index.js 54.54 KB
18
+ CJS ⚡️ Build success in 149ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 4219ms
20
+ DTS ⚡️ Build success in 4044ms
21
21
  DTS dist/index.d.mts 32.28 KB
22
22
  DTS dist/index.d.ts 32.28 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @pluv/io
2
2
 
3
+ ## 2.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - b60ccd8: Fix `PluvServer` fetch config validation.
8
+ - @pluv/crdt@2.2.8
9
+ - @pluv/types@2.2.8
10
+
11
+ ## 2.2.7
12
+
13
+ ### Patch Changes
14
+
15
+ - ec2717b: Fixed `ioServer.fetch` not receiving the `PluvServer` config.
16
+ - @pluv/crdt@2.2.7
17
+ - @pluv/types@2.2.7
18
+
3
19
  ## 2.2.6
4
20
 
5
21
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1168,7 +1168,7 @@ var IORoom = class {
1168
1168
  };
1169
1169
 
1170
1170
  // src/version.generated.ts
1171
- var version = "2.2.6";
1171
+ var version = "2.2.8";
1172
1172
 
1173
1173
  // src/PluvServer.ts
1174
1174
  var PluvServer = class {
@@ -1195,8 +1195,9 @@ var PluvServer = class {
1195
1195
  };
1196
1196
  }
1197
1197
  get fetch() {
1198
- const platform = this._config.platform();
1199
1198
  return (...args) => {
1199
+ const platform = this._config.platform();
1200
+ platform.validateConfig(this._config);
1200
1201
  if (!platform._fetch)
1201
1202
  throw new Error(`\`${platform._name}\` does not support \`fetch\``);
1202
1203
  return platform._fetch(...args);
package/dist/index.mjs CHANGED
@@ -1126,7 +1126,7 @@ var IORoom = class {
1126
1126
  };
1127
1127
 
1128
1128
  // src/version.generated.ts
1129
- var version = "2.2.6";
1129
+ var version = "2.2.8";
1130
1130
 
1131
1131
  // src/PluvServer.ts
1132
1132
  var PluvServer = class {
@@ -1153,8 +1153,9 @@ var PluvServer = class {
1153
1153
  };
1154
1154
  }
1155
1155
  get fetch() {
1156
- const platform = this._config.platform();
1157
1156
  return (...args) => {
1157
+ const platform = this._config.platform();
1158
+ platform.validateConfig(this._config);
1158
1159
  if (!platform._fetch)
1159
1160
  throw new Error(`\`${platform._name}\` does not support \`fetch\``);
1160
1161
  return platform._fetch(...args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/io",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "description": "@pluv/io server-side websocket manager",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -21,16 +21,16 @@
21
21
  "jose": "^5.10.0",
22
22
  "kleur": "^4.1.5",
23
23
  "wonka": "^6.3.5",
24
- "@pluv/crdt": "^2.2.6",
25
- "@pluv/types": "^2.2.6"
24
+ "@pluv/crdt": "^2.2.8",
25
+ "@pluv/types": "^2.2.8"
26
26
  },
27
27
  "devDependencies": {
28
28
  "eslint": "^9.27.0",
29
29
  "genversion": "^3.2.0",
30
30
  "tsup": "^8.5.0",
31
31
  "typescript": "^5.8.3",
32
- "@pluv/tsconfig": "^2.2.6",
33
- "eslint-config-pluv": "^2.2.6"
32
+ "@pluv/tsconfig": "^2.2.8",
33
+ "eslint-config-pluv": "^2.2.8"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
package/src/PluvServer.ts CHANGED
@@ -101,14 +101,15 @@ export class PluvServer<
101
101
  >;
102
102
 
103
103
  public get fetch(): (...args: any[]) => Promise<any> {
104
- const platform = this._config.platform();
104
+ return (...args: any[]): Promise<any> => {
105
+ const platform = this._config.platform();
106
+ platform.validateConfig(this._config);
105
107
 
106
- return ((...args: any[]): Promise<any> => {
107
108
  if (!platform._fetch)
108
109
  throw new Error(`\`${platform._name}\` does not support \`fetch\``);
109
110
 
110
111
  return platform._fetch(...args);
111
- }) as NonNullable<typeof platform._fetch>;
112
+ };
112
113
  }
113
114
 
114
115
  /**
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.2.6'
2
+ export const version = '2.2.8'