@pluv/platform-node 0.30.1 → 0.30.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,5 +1,5 @@
1
1
 
2
- > @pluv/platform-node@0.30.1 build /home/runner/work/pluv/pluv/packages/platform-node
2
+ > @pluv/platform-node@0.30.2 build /home/runner/work/pluv/pluv/packages/platform-node
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 9.27 KB
12
- CJS ⚡️ Build success in 101ms
13
11
  ESM dist/index.mjs 7.42 KB
14
- ESM ⚡️ Build success in 101ms
12
+ ESM ⚡️ Build success in 67ms
13
+ CJS dist/index.js 9.27 KB
14
+ CJS ⚡️ Build success in 68ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 5515ms
17
- DTS dist/index.d.mts 3.60 KB
18
- DTS dist/index.d.ts 3.60 KB
16
+ DTS ⚡️ Build success in 5077ms
17
+ DTS dist/index.d.mts 3.62 KB
18
+ DTS dist/index.d.ts 3.62 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/platform-node
2
2
 
3
+ ## 0.30.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6521b05: Export the types of `NodePlatform` and `CloudflarePlatform`.
8
+ - @pluv/io@0.30.2
9
+ - @pluv/types@0.30.2
10
+
3
11
  ## 0.30.1
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
+ import { WebSocket, Server as Server$1 } from 'ws';
2
+ export { WebSocket } from 'ws';
1
3
  import { AbstractWebSocket, WebSocketSerializedState, AbstractEventMap, AbstractListener, AbstractWebSocketConfig, WebSocketRegistrationMode, AbstractPersistence, AbstractPubSub, AbstractPlatform, ConvertWebSocketConfig, AbstractPlatformConfig, PluvServer } from '@pluv/io';
2
4
  import { JsonObject, MaybePromise, Maybe, InferIOAuthorizeUser, InferIOAuthorize, InferIOAuthorizeRequired } from '@pluv/types';
3
5
  import { IncomingMessage, ServerResponse, Server } from 'node:http';
4
- import { WebSocket, Server as Server$1 } from 'ws';
5
- export { WebSocket } from 'ws';
6
6
 
7
7
  type NodeWebSocketConfig = AbstractWebSocketConfig;
8
8
  declare class NodeWebSocket extends AbstractWebSocket<WebSocket> {
@@ -73,4 +73,4 @@ declare const createPluvHandler: <TPluvServer extends PluvServer<NodePlatform, a
73
73
 
74
74
  declare const platformNode: (config?: NodePlatformConfig) => NodePlatform;
75
75
 
76
- export { type AuthorizeFunction, type AuthorizeFunctionContext, type CreatePluvHandlerConfig, type NodePlatformConfig, createPluvHandler, platformNode };
76
+ export { type AuthorizeFunction, type AuthorizeFunctionContext, type CreatePluvHandlerConfig, NodePlatform, type NodePlatformConfig, createPluvHandler, platformNode };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
+ import { WebSocket, Server as Server$1 } from 'ws';
2
+ export { WebSocket } from 'ws';
1
3
  import { AbstractWebSocket, WebSocketSerializedState, AbstractEventMap, AbstractListener, AbstractWebSocketConfig, WebSocketRegistrationMode, AbstractPersistence, AbstractPubSub, AbstractPlatform, ConvertWebSocketConfig, AbstractPlatformConfig, PluvServer } from '@pluv/io';
2
4
  import { JsonObject, MaybePromise, Maybe, InferIOAuthorizeUser, InferIOAuthorize, InferIOAuthorizeRequired } from '@pluv/types';
3
5
  import { IncomingMessage, ServerResponse, Server } from 'node:http';
4
- import { WebSocket, Server as Server$1 } from 'ws';
5
- export { WebSocket } from 'ws';
6
6
 
7
7
  type NodeWebSocketConfig = AbstractWebSocketConfig;
8
8
  declare class NodeWebSocket extends AbstractWebSocket<WebSocket> {
@@ -73,4 +73,4 @@ declare const createPluvHandler: <TPluvServer extends PluvServer<NodePlatform, a
73
73
 
74
74
  declare const platformNode: (config?: NodePlatformConfig) => NodePlatform;
75
75
 
76
- export { type AuthorizeFunction, type AuthorizeFunctionContext, type CreatePluvHandlerConfig, type NodePlatformConfig, createPluvHandler, platformNode };
76
+ export { type AuthorizeFunction, type AuthorizeFunctionContext, type CreatePluvHandlerConfig, NodePlatform, type NodePlatformConfig, createPluvHandler, platformNode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-node",
3
- "version": "0.30.1",
3
+ "version": "0.30.2",
4
4
  "description": "@pluv/io adapter for node.js",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,19 +17,19 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@types/node": "^22.5.5",
20
+ "@types/node": "^22.7.4",
21
21
  "@types/ws": "^8.5.12",
22
- "path-to-regexp": "^8.1.0",
23
- "@pluv/io": "^0.30.1",
24
- "@pluv/types": "^0.30.1"
22
+ "path-to-regexp": "^8.2.0",
23
+ "@pluv/io": "^0.30.2",
24
+ "@pluv/types": "^0.30.2"
25
25
  },
26
26
  "devDependencies": {
27
27
  "eslint": "^8.57.0",
28
28
  "tsup": "^8.3.0",
29
29
  "typescript": "^5.6.2",
30
30
  "ws": "^8.18.0",
31
- "@pluv/tsconfig": "^0.30.1",
32
- "eslint-config-pluv": "^0.30.1"
31
+ "@pluv/tsconfig": "^0.30.2",
32
+ "eslint-config-pluv": "^0.30.2"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "ws": "^8.0.0"
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
- export type { AuthorizeFunction, AuthorizeFunctionContext, CreatePluvHandlerConfig } from "./createPluvHandler";
2
- export { createPluvHandler } from "./createPluvHandler";
3
1
  export type { WebSocket } from "ws";
4
- export type { NodePlatformConfig } from "./NodePlatform";
2
+ export { createPluvHandler } from "./createPluvHandler";
3
+ export type { AuthorizeFunction, AuthorizeFunctionContext, CreatePluvHandlerConfig } from "./createPluvHandler";
4
+ export type { NodePlatform, NodePlatformConfig } from "./NodePlatform";
5
5
  export { platformNode } from "./platformNode";