crossws 0.3.0 → 0.3.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,14 +1,14 @@
1
1
  import 'stream';
2
- import { _ as _WebSocket } from '../shared/crossws.YgHWLi0G.mjs';
2
+ import { a as _WebSocket } from '../shared/crossws.DelSCW9g.mjs';
3
3
  import 'events';
4
4
  import 'http';
5
5
  import 'crypto';
6
+ import 'buffer';
7
+ import 'zlib';
6
8
  import 'https';
7
9
  import 'net';
8
10
  import 'tls';
9
11
  import 'url';
10
- import 'zlib';
11
- import 'buffer';
12
12
 
13
13
  const node = globalThis.WebSocket || _WebSocket;
14
14
 
@@ -70,7 +70,7 @@ class WebSocketSSE extends _EventTarget {
70
70
  this.#sendController = controller;
71
71
  },
72
72
  cancel: () => {
73
- this.#sendController = void 0;
73
+ this.#sendController = undefined;
74
74
  }
75
75
  }).pipeThrough(new TextEncoderStream())
76
76
  }).catch(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crossws",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
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,33 +87,33 @@
87
87
  "uncrypto": "^0.1.3"
88
88
  },
89
89
  "devDependencies": {
90
- "@cloudflare/workers-types": "^4.20240821.1",
91
- "@deno/types": "^0.0.1",
92
- "@types/bun": "^1.1.8",
90
+ "@cloudflare/workers-types": "^4.20250121.0",
91
+ "@types/bun": "^1.1.18",
92
+ "@types/deno": "^2.0.0",
93
93
  "@types/eventsource": "^1.1.15",
94
- "@types/node": "^22.5.1",
95
- "@types/web": "^0.0.158",
96
- "@types/ws": "^8.5.12",
97
- "@vitest/coverage-v8": "^2.0.5",
98
- "automd": "^0.3.8",
99
- "changelogen": "^0.5.5",
100
- "consola": "^3.2.3",
101
- "eslint": "^9.9.1",
102
- "eslint-config-unjs": "^0.3.2",
103
- "eventsource": "^2.0.2",
104
- "execa": "^9.3.1",
94
+ "@types/node": "^22.10.7",
95
+ "@types/web": "^0.0.197",
96
+ "@types/ws": "^8.5.13",
97
+ "@vitest/coverage-v8": "^3.0.3",
98
+ "automd": "^0.3.12",
99
+ "changelogen": "^0.5.7",
100
+ "consola": "^3.4.0",
101
+ "eslint": "^9.18.0",
102
+ "eslint-config-unjs": "^0.4.2",
103
+ "eventsource": "^3.0.2",
104
+ "execa": "^9.5.2",
105
105
  "get-port-please": "^3.1.2",
106
- "h3": "^1.12.0",
107
- "jiti": "2.0.0-beta.3",
108
- "listhen": "^1.7.2",
109
- "prettier": "^3.3.3",
110
- "typescript": "^5.5.4",
106
+ "h3": "^1.13.1",
107
+ "jiti": "^2.4.2",
108
+ "listhen": "^1.9.0",
109
+ "prettier": "^3.4.2",
110
+ "typescript": "^5.7.3",
111
111
  "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.44.0",
112
- "unbuild": "3.0.0-rc.7",
113
- "undici": "^6.19.8",
114
- "vitest": "^2.0.5",
115
- "wrangler": "^3.73.0",
112
+ "unbuild": "^3.3.1",
113
+ "undici": "^7.2.3",
114
+ "vitest": "^3.0.3",
115
+ "wrangler": "^3.103.2",
116
116
  "ws": "^8.18.0"
117
117
  },
118
- "packageManager": "pnpm@9.9.0"
118
+ "packageManager": "pnpm@9.15.4"
119
119
  }