@pluv/platform-pluv 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,5 +1,5 @@
1
1
 
2
- > @pluv/platform-pluv@2.2.6 build /home/runner/work/pluv/pluv/packages/platform-pluv
2
+ > @pluv/platform-pluv@2.2.8 build /home/runner/work/pluv/pluv/packages/platform-pluv
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
- ESM dist/index.mjs 12.99 KB
12
- ESM ⚡️ Build success in 132ms
13
- CJS dist/index.js 14.82 KB
14
- CJS ⚡️ Build success in 132ms
11
+ ESM dist/index.mjs 13.11 KB
12
+ ESM ⚡️ Build success in 80ms
13
+ CJS dist/index.js 14.95 KB
14
+ CJS ⚡️ Build success in 81ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 6531ms
16
+ DTS ⚡️ Build success in 6513ms
17
17
  DTS dist/index.d.mts 3.79 KB
18
18
  DTS dist/index.d.ts 3.79 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @pluv/platform-pluv
2
2
 
3
+ ## 2.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - b60ccd8: Fix `PluvServer` fetch config validation.
8
+ - Updated dependencies [b60ccd8]
9
+ - @pluv/io@2.2.8
10
+ - @pluv/crdt@2.2.8
11
+ - @pluv/types@2.2.8
12
+
13
+ ## 2.2.7
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [ec2717b]
18
+ - @pluv/io@2.2.7
19
+ - @pluv/crdt@2.2.7
20
+ - @pluv/types@2.2.7
21
+
3
22
  ## 2.2.6
4
23
 
5
24
  ### Patch Changes
package/dist/index.js CHANGED
@@ -388,12 +388,16 @@ var PluvPlatform = class extends import_io.AbstractPlatform {
388
388
  throw new Error("Not implemented");
389
389
  }
390
390
  validateConfig(config) {
391
- if (!config.authorize)
391
+ this._logDebug("validating config with properties:", Object.keys(config != null ? config : {}));
392
+ if (!config.authorize) {
392
393
  throw new Error("Config `authorize` must be provided to `platformPluv`");
393
- if (!!config.onRoomMessage)
394
+ }
395
+ if (!!config.onRoomMessage) {
394
396
  throw new Error("Config `onRoomMessage` is not supported on `platformPluv`");
395
- if (!!config.onStorageUpdated)
397
+ }
398
+ if (!!config.onStorageUpdated) {
396
399
  throw new Error("Config `onStorageUpdated` is not supported on `platformPluv`");
400
+ }
397
401
  this._getInitialStorage = config.getInitialStorage;
398
402
  this._listeners = {
399
403
  onRoomDeleted: (event) => {
package/dist/index.mjs CHANGED
@@ -358,12 +358,16 @@ var PluvPlatform = class extends AbstractPlatform {
358
358
  throw new Error("Not implemented");
359
359
  }
360
360
  validateConfig(config) {
361
- if (!config.authorize)
361
+ this._logDebug("validating config with properties:", Object.keys(config != null ? config : {}));
362
+ if (!config.authorize) {
362
363
  throw new Error("Config `authorize` must be provided to `platformPluv`");
363
- if (!!config.onRoomMessage)
364
+ }
365
+ if (!!config.onRoomMessage) {
364
366
  throw new Error("Config `onRoomMessage` is not supported on `platformPluv`");
365
- if (!!config.onStorageUpdated)
367
+ }
368
+ if (!!config.onStorageUpdated) {
366
369
  throw new Error("Config `onStorageUpdated` is not supported on `platformPluv`");
370
+ }
367
371
  this._getInitialStorage = config.getInitialStorage;
368
372
  this._listeners = {
369
373
  onRoomDeleted: (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-pluv",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "description": "@pluv/io adapter for pluv.io",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -21,16 +21,16 @@
21
21
  "fast-json-stable-stringify": "^2.1.0",
22
22
  "hono": "^4.7.10",
23
23
  "zod": "^3.25.17",
24
- "@pluv/crdt": "^2.2.6",
25
- "@pluv/io": "^2.2.6",
26
- "@pluv/types": "^2.2.6"
24
+ "@pluv/crdt": "^2.2.8",
25
+ "@pluv/io": "^2.2.8",
26
+ "@pluv/types": "^2.2.8"
27
27
  },
28
28
  "devDependencies": {
29
29
  "eslint": "^9.27.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": "tsup src/index.ts --format esm,cjs --dts",
@@ -199,12 +199,17 @@ export class PluvPlatform<
199
199
  }
200
200
 
201
201
  public validateConfig(config: any): void {
202
- if (!config.authorize)
202
+ this._logDebug("validating config with properties:", Object.keys(config ?? {}));
203
+
204
+ if (!config.authorize) {
203
205
  throw new Error("Config `authorize` must be provided to `platformPluv`");
204
- if (!!config.onRoomMessage)
206
+ }
207
+ if (!!config.onRoomMessage) {
205
208
  throw new Error("Config `onRoomMessage` is not supported on `platformPluv`");
206
- if (!!config.onStorageUpdated)
209
+ }
210
+ if (!!config.onStorageUpdated) {
207
211
  throw new Error("Config `onStorageUpdated` is not supported on `platformPluv`");
212
+ }
208
213
 
209
214
  this._getInitialStorage = config.getInitialStorage;
210
215
  this._listeners = {