crossws 0.3.0 → 0.3.1

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.
package/dist/index.d.mts CHANGED
@@ -56,7 +56,7 @@ interface AdapterInstance {
56
56
  }
57
57
  interface AdapterOptions {
58
58
  resolve?: ResolveHooks;
59
- hooks?: Hooks;
59
+ hooks?: Partial<Hooks>;
60
60
  }
61
61
  type Adapter<AdapterT extends AdapterInstance = AdapterInstance, Options extends AdapterOptions = AdapterOptions> = (options?: Options) => AdapterT;
62
62
  declare function defineWebSocketAdapter<AdapterT extends AdapterInstance = AdapterInstance, Options extends AdapterOptions = AdapterOptions>(factory: Adapter<AdapterT, Options>): Adapter<AdapterT, Options>;
package/dist/index.d.ts CHANGED
@@ -56,7 +56,7 @@ interface AdapterInstance {
56
56
  }
57
57
  interface AdapterOptions {
58
58
  resolve?: ResolveHooks;
59
- hooks?: Hooks;
59
+ hooks?: Partial<Hooks>;
60
60
  }
61
61
  type Adapter<AdapterT extends AdapterInstance = AdapterInstance, Options extends AdapterOptions = AdapterOptions> = (options?: Options) => AdapterT;
62
62
  declare function defineWebSocketAdapter<AdapterT extends AdapterInstance = AdapterInstance, Options extends AdapterOptions = AdapterOptions>(factory: Adapter<AdapterT, Options>): Adapter<AdapterT, Options>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crossws",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers",
5
5
  "repository": "unjs/crossws",
6
6
  "license": "MIT",
@@ -87,18 +87,18 @@
87
87
  "uncrypto": "^0.1.3"
88
88
  },
89
89
  "devDependencies": {
90
- "@cloudflare/workers-types": "^4.20240821.1",
90
+ "@cloudflare/workers-types": "^4.20240909.0",
91
91
  "@deno/types": "^0.0.1",
92
- "@types/bun": "^1.1.8",
92
+ "@types/bun": "^1.1.9",
93
93
  "@types/eventsource": "^1.1.15",
94
- "@types/node": "^22.5.1",
95
- "@types/web": "^0.0.158",
94
+ "@types/node": "^22.5.4",
95
+ "@types/web": "^0.0.162",
96
96
  "@types/ws": "^8.5.12",
97
97
  "@vitest/coverage-v8": "^2.0.5",
98
98
  "automd": "^0.3.8",
99
99
  "changelogen": "^0.5.5",
100
100
  "consola": "^3.2.3",
101
- "eslint": "^9.9.1",
101
+ "eslint": "^9.10.0",
102
102
  "eslint-config-unjs": "^0.3.2",
103
103
  "eventsource": "^2.0.2",
104
104
  "execa": "^9.3.1",
@@ -107,12 +107,12 @@
107
107
  "jiti": "2.0.0-beta.3",
108
108
  "listhen": "^1.7.2",
109
109
  "prettier": "^3.3.3",
110
- "typescript": "^5.5.4",
110
+ "typescript": "^5.6.2",
111
111
  "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.44.0",
112
112
  "unbuild": "3.0.0-rc.7",
113
113
  "undici": "^6.19.8",
114
114
  "vitest": "^2.0.5",
115
- "wrangler": "^3.73.0",
115
+ "wrangler": "^3.76.0",
116
116
  "ws": "^8.18.0"
117
117
  },
118
118
  "packageManager": "pnpm@9.9.0"