@pluv/io 0.16.1 → 0.16.2

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,6 +1,10 @@
1
1
 
2
- > @pluv/io@0.16.1 build /home/runner/work/pluv/pluv/packages/io
3
- > tsup src/index.ts --format esm,cjs --dts
2
+ > @pluv/io@0.16.2 build /home/runner/work/pluv/pluv/packages/io
3
+ > pnpm run version && tsup src/index.ts --format esm,cjs --dts
4
+
5
+
6
+ > @pluv/io@0.16.2 version /home/runner/work/pluv/pluv/packages/io
7
+ > genversion ./src/version.generated.ts --esm
4
8
 
5
9
  CLI Building entry: src/index.ts
6
10
  CLI Using tsconfig: tsconfig.json
@@ -8,11 +12,11 @@
8
12
  CLI Target: es6
9
13
  ESM Build start
10
14
  CJS Build start
11
- CJS dist/index.js 31.65 KB
12
- CJS ⚡️ Build success in 90ms
13
- ESM dist/index.mjs 29.59 KB
14
- ESM ⚡️ Build success in 94ms
15
+ CJS dist/index.js 31.75 KB
16
+ CJS ⚡️ Build success in 149ms
17
+ ESM dist/index.mjs 29.67 KB
18
+ ESM ⚡️ Build success in 150ms
15
19
  DTS Build start
16
- DTS ⚡️ Build success in 3337ms
17
- DTS dist/index.d.mts 17.61 KB
18
- DTS dist/index.d.ts 17.61 KB
20
+ DTS ⚡️ Build success in 2956ms
21
+ DTS dist/index.d.mts 17.67 KB
22
+ DTS dist/index.d.ts 17.67 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/io
2
2
 
3
+ ## 0.16.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 06f572d: Export the downloaded version of `@pluv/io`.
8
+ - @pluv/crdt@0.16.2
9
+ - @pluv/types@0.16.2
10
+
3
11
  ## 0.16.1
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -296,4 +296,6 @@ type CreateIOParams<TPlatform extends AbstractPlatform<any> = AbstractPlatform<a
296
296
  };
297
297
  declare const createIO: <TPlatform extends AbstractPlatform<any, {}, {}> = AbstractPlatform<any, {}, {}>, TContext extends JsonObject = {}, TAuthorizeUser extends BaseUser = BaseUser, TAuthorizeRequired extends boolean = false>(params: CreateIOParams<TPlatform, TContext, TAuthorizeUser, TAuthorizeRequired>) => PluvIO<TPlatform, IOAuthorize<TAuthorizeUser, TAuthorizeRequired>, TContext, BaseClientEventRecord, BaseIOEventRecord<IOAuthorize<TAuthorizeUser, TAuthorizeRequired>>, {}, {}>;
298
298
 
299
- export { type AbstractCloseEvent, type AbstractErrorEvent, type AbstractEvent, type AbstractEventMap, type AbstractListener, type AbstractMessageEvent, AbstractPersistance, AbstractPlatform, type AbstractPlatformConfig, AbstractPubSub, AbstractWebSocket, type AbstractWebSocketConfig, type AbstractWebSocketHandleErrorParams, type AuthorizeModule, type AuthorizeParams, type ConvertWebSocketConfig, type CreateIOParams, type GetRoomOptions, type IOPubSubEventMessage, IORoom, type InferIORoom, type InferPlatformEventContextType, type InferPlatformRoomContextType, type InferPlatformWebSocketType, type JWT, type JWTEncodeParams, PluvIO, type PluvIOConfig, createIO };
299
+ declare const version = "0.16.2";
300
+
301
+ export { type AbstractCloseEvent, type AbstractErrorEvent, type AbstractEvent, type AbstractEventMap, type AbstractListener, type AbstractMessageEvent, AbstractPersistance, AbstractPlatform, type AbstractPlatformConfig, AbstractPubSub, AbstractWebSocket, type AbstractWebSocketConfig, type AbstractWebSocketHandleErrorParams, type AuthorizeModule, type AuthorizeParams, type ConvertWebSocketConfig, type CreateIOParams, type GetRoomOptions, type IOPubSubEventMessage, IORoom, type InferIORoom, type InferPlatformEventContextType, type InferPlatformRoomContextType, type InferPlatformWebSocketType, type JWT, type JWTEncodeParams, PluvIO, type PluvIOConfig, version as __PLUV_VERSION, createIO };
package/dist/index.d.ts CHANGED
@@ -296,4 +296,6 @@ type CreateIOParams<TPlatform extends AbstractPlatform<any> = AbstractPlatform<a
296
296
  };
297
297
  declare const createIO: <TPlatform extends AbstractPlatform<any, {}, {}> = AbstractPlatform<any, {}, {}>, TContext extends JsonObject = {}, TAuthorizeUser extends BaseUser = BaseUser, TAuthorizeRequired extends boolean = false>(params: CreateIOParams<TPlatform, TContext, TAuthorizeUser, TAuthorizeRequired>) => PluvIO<TPlatform, IOAuthorize<TAuthorizeUser, TAuthorizeRequired>, TContext, BaseClientEventRecord, BaseIOEventRecord<IOAuthorize<TAuthorizeUser, TAuthorizeRequired>>, {}, {}>;
298
298
 
299
- export { type AbstractCloseEvent, type AbstractErrorEvent, type AbstractEvent, type AbstractEventMap, type AbstractListener, type AbstractMessageEvent, AbstractPersistance, AbstractPlatform, type AbstractPlatformConfig, AbstractPubSub, AbstractWebSocket, type AbstractWebSocketConfig, type AbstractWebSocketHandleErrorParams, type AuthorizeModule, type AuthorizeParams, type ConvertWebSocketConfig, type CreateIOParams, type GetRoomOptions, type IOPubSubEventMessage, IORoom, type InferIORoom, type InferPlatformEventContextType, type InferPlatformRoomContextType, type InferPlatformWebSocketType, type JWT, type JWTEncodeParams, PluvIO, type PluvIOConfig, createIO };
299
+ declare const version = "0.16.2";
300
+
301
+ export { type AbstractCloseEvent, type AbstractErrorEvent, type AbstractEvent, type AbstractEventMap, type AbstractListener, type AbstractMessageEvent, AbstractPersistance, AbstractPlatform, type AbstractPlatformConfig, AbstractPubSub, AbstractWebSocket, type AbstractWebSocketConfig, type AbstractWebSocketHandleErrorParams, type AuthorizeModule, type AuthorizeParams, type ConvertWebSocketConfig, type CreateIOParams, type GetRoomOptions, type IOPubSubEventMessage, IORoom, type InferIORoom, type InferPlatformEventContextType, type InferPlatformRoomContextType, type InferPlatformWebSocketType, type JWT, type JWTEncodeParams, PluvIO, type PluvIOConfig, version as __PLUV_VERSION, createIO };
package/dist/index.js CHANGED
@@ -84,6 +84,7 @@ __export(src_exports, {
84
84
  AbstractPubSub: () => AbstractPubSub,
85
85
  AbstractWebSocket: () => AbstractWebSocket,
86
86
  PluvIO: () => PluvIO,
87
+ __PLUV_VERSION: () => version,
87
88
  createIO: () => createIO
88
89
  });
89
90
  module.exports = __toCommonJS(src_exports);
@@ -1013,6 +1014,9 @@ var createIO = (params) => {
1013
1014
  platform
1014
1015
  });
1015
1016
  };
1017
+
1018
+ // src/version.generated.ts
1019
+ var version = "0.16.2";
1016
1020
  // Annotate the CommonJS export names for ESM import in node:
1017
1021
  0 && (module.exports = {
1018
1022
  AbstractPersistance,
@@ -1020,5 +1024,6 @@ var createIO = (params) => {
1020
1024
  AbstractPubSub,
1021
1025
  AbstractWebSocket,
1022
1026
  PluvIO,
1027
+ __PLUV_VERSION,
1023
1028
  createIO
1024
1029
  });
package/dist/index.mjs CHANGED
@@ -975,11 +975,15 @@ var createIO = (params) => {
975
975
  platform
976
976
  });
977
977
  };
978
+
979
+ // src/version.generated.ts
980
+ var version = "0.16.2";
978
981
  export {
979
982
  AbstractPersistance,
980
983
  AbstractPlatform,
981
984
  AbstractPubSub,
982
985
  AbstractWebSocket,
983
986
  PluvIO,
987
+ version as __PLUV_VERSION,
984
988
  createIO
985
989
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/io",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "description": "@pluv/io server-side websocket manager",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -21,20 +21,22 @@
21
21
  "jose": "^5.2.2",
22
22
  "kleur": "^4.1.5",
23
23
  "wonka": "^6.3.4",
24
- "@pluv/crdt": "^0.16.1",
25
- "@pluv/types": "^0.16.1"
24
+ "@pluv/crdt": "^0.16.2",
25
+ "@pluv/types": "^0.16.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "eslint": "^8.56.0",
29
+ "genversion": "^3.2.0",
29
30
  "tsup": "^8.0.2",
30
31
  "typescript": "^5.3.3",
31
- "@pluv/tsconfig": "^0.16.1",
32
- "eslint-config-pluv": "^0.16.1"
32
+ "@pluv/tsconfig": "^0.16.2",
33
+ "eslint-config-pluv": "^0.16.2"
33
34
  },
34
35
  "scripts": {
35
- "build": "tsup src/index.ts --format esm,cjs --dts",
36
+ "build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
36
37
  "dev": "tsup src/index.ts --format esm,cjs --watch --dts",
37
38
  "lint": "eslint src/**/*.ts* --fix",
38
- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
39
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
40
+ "version": "genversion ./src/version.generated.ts --esm"
39
41
  }
40
42
  }
package/src/index.ts CHANGED
@@ -37,3 +37,4 @@ export type {
37
37
  } from "./authorize";
38
38
  export { createIO } from "./createIO";
39
39
  export type { CreateIOParams } from "./createIO";
40
+ export { __PLUV_VERSION } from "./version";
@@ -0,0 +1,2 @@
1
+ // Generated by genversion.
2
+ export const version = '0.16.2'
package/src/version.ts ADDED
@@ -0,0 +1,2 @@
1
+ // @ts-ignore
2
+ export { version as __PLUV_VERSION } from "./version.generated";