Skip to content

Commit f932be3

Browse files
committed
websocket: Remove ws dependency (#1052)
And improve `sendMany` for WebSocket
1 parent d1790a2 commit f932be3

File tree

40 files changed

+111
-130
lines changed

40 files changed

+111
-130
lines changed

package-lock.json

+37-37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
"selfsigned": "^2.4.1"
3636
},
3737
"scripts": {
38-
"test": "npx jest",
39-
"e2e": "NODE_TLS_REJECT_UNAUTHORIZED=0 npx jest --runInBand --config e2e.config.cjs",
38+
"test": "node --experimental-websocket ./node_modules/.bin/jest",
39+
"e2e": "NODE_TLS_REJECT_UNAUTHORIZED=0 node --experimental-websocket ./node_modules/.bin/jest --runInBand --config e2e.config.cjs",
4040
"preversion": "make bundle"
4141
},
4242
"engines": {
43-
"node": ">= 20"
43+
"node": ">= 20.10"
4444
},
4545
"workspaces": [
4646
"packages/*"

packages/base64/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"base64"
1414
],
1515
"engines": {
16-
"node": ">= 20"
16+
"node": ">= 20.10"
1717
},
1818
"publishConfig": {
1919
"access": "public"

packages/client-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"saslmechanisms": "^0.1.1"
1717
},
1818
"engines": {
19-
"node": ">= 20"
19+
"node": ">= 20.10"
2020
},
2121
"publishConfig": {
2222
"access": "public"

packages/client/README.md

-7
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,3 @@ PLAIN should only be used over secure WebSocket (`wss://)`, direct TLS (`xmpps:`
293293
- ☐ : Optional
294294
- ✗ : Unavailable
295295
- ✔ : Included
296-
297-
## Common issues
298-
299-
<details>
300-
<summary><strong>Unable to resolve module</strong></summary>
301-
<p>If you are using an older React Native version, please require/import <code>@xmpp/client/reat-native</code> instead of <code>@xmpp/client</code>.</p>
302-
</details>

packages/client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@xmpp/sasl-scram-sha-1": false
3636
},
3737
"engines": {
38-
"node": ">= 20"
38+
"node": ">= 20.10"
3939
},
4040
"publishConfig": {
4141
"access": "public"

packages/component-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@xmpp/xml": "^0.14.0"
2020
},
2121
"engines": {
22-
"node": ">= 20"
22+
"node": ">= 20.10"
2323
},
2424
"publishConfig": {
2525
"access": "public"

packages/component/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@xmpp/reconnect": "^0.14.0"
2020
},
2121
"engines": {
22-
"node": ">= 20"
22+
"node": ">= 20.10"
2323
},
2424
"publishConfig": {
2525
"access": "public"

0 commit comments

Comments
 (0)