Skip to content

Commit 9442f0d

Browse files
committed
Merge branch 'master' into subscription_types
2 parents 60e4064 + 582c77f commit 9442f0d

3 files changed

Lines changed: 14 additions & 21 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This SDK provides a client to connect to [Centrifugo](https://github.com/centrifugal/centrifugo) or any [Centrifuge-based](https://github.com/centrifugal/centrifuge) server using pure WebSocket or one of the alternative transports (HTTP-streaming, SSE/EventSource, experimental WebTransport) from web browser, ReactNative, or NodeJS environments.
22

33
> [!IMPORTANT]
4-
> This library behaves according to a common [Centrifigo SDK spec](https://centrifugal.dev/docs/transports/client_api). It's recommended to read that before starting to work with this SDK as the spec covers common SDK behavior - describes client and subscription state transitions, main options and methods. Then proceed with this readme for more specifics about `centrifuge-js`.
4+
> This library behaves according to a common [Centrifugo SDK spec](https://centrifugal.dev/docs/transports/client_api). It's recommended to read that before starting to work with this SDK as the spec covers common SDK behavior - describes client and subscription state transitions, main options and methods. Then proceed with this readme for more specifics about `centrifuge-js`.
55
66
The features implemented by this SDK can be found in [SDK feature matrix](https://centrifugal.dev/docs/transports/client_sdk#sdk-feature-matrix).
77

@@ -46,13 +46,13 @@ And then in your project:
4646
import { Centrifuge } from 'centrifuge';
4747
```
4848

49-
In browser, you can import SDK from CDN (replace `5.0.0` with a concrete version number you want to use, see [releases](https://github.com/centrifugal/centrifuge-js/releases)):
49+
In browser, you can import SDK from [unpkg](https://app.unpkg.com/centrifuge@latest) CDN (replace `5.0.0` with a concrete version number you want to use, see [releases](https://github.com/centrifugal/centrifuge-js/releases)):
5050

5151
```html
5252
<script src="https://unpkg.com/centrifuge@5.0.0/dist/centrifuge.js"></script>
5353
```
5454

55-
See also [centrifuge-js on cdnjs](https://cdnjs.com/libraries/centrifuge). Note that `centrifuge-js` browser builds target [ES6](https://caniuse.com/es6).
55+
See also [centrifuge-js on jsdelivr](https://www.jsdelivr.com/package/npm/centrifuge). Note that `centrifuge-js` browser builds target [ES6](https://caniuse.com/es6).
5656

5757
**By default, library works with JSON only**, if you want to send binary payloads go to [Protobuf support](#protobuf-support) section to see how to import client with Protobuf support.
5858

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"ts-node": "^10.9.1",
6161
"typedoc": "^0.25.1",
6262
"typescript": "^5.2.2",
63-
"undici": "^5.24.0",
63+
"undici": "^6.24.0",
6464
"ws": "^8.14.1"
6565
},
6666
"repository": {

yarn.lock

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,6 @@
547547
resolved "https://registry.npmjs.org/@eslint/js/-/js-8.49.0.tgz"
548548
integrity sha512-1S8uAY/MTJqVx0SC4epBq+N2yhuwtNwLbJYNZyhL2pO1ZVKn5HFXav5T41Ryzy9K9V7ZId2JB2oy/W4aCd9/2w==
549549

550-
"@fastify/busboy@^2.0.0":
551-
version "2.0.0"
552-
resolved "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.0.0.tgz"
553-
integrity sha512-JUFJad5lv7jxj926GPgymrWQxxjPYuJNiNjNMzqT+HiuP6Vl3dk5xzG+8sTX96np0ZAluvaMzPsjhHZ5rNuNQQ==
554-
555550
"@humanwhocodes/config-array@^0.11.11":
556551
version "0.11.11"
557552
resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz"
@@ -2843,9 +2838,9 @@ lodash.merge@^4.6.2:
28432838
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
28442839

28452840
lodash@^4.17.15, lodash@^4.17.21:
2846-
version "4.17.21"
2847-
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
2848-
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
2841+
version "4.17.23"
2842+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.23.tgz#f113b0378386103be4f6893388c73d0bde7f2c5a"
2843+
integrity sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==
28492844

28502845
long@^5.0.0:
28512846
version "5.2.3"
@@ -3318,9 +3313,9 @@ rollup-plugin-typescript2@^0.35.0:
33183313
tslib "^2.4.0"
33193314

33203315
rollup@^3.29.1:
3321-
version "3.29.5"
3322-
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.5.tgz#8a2e477a758b520fb78daf04bca4c522c1da8a54"
3323-
integrity sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==
3316+
version "3.30.0"
3317+
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.30.0.tgz#3fa506fee2c5ba9d540a38da87067376cd55966d"
3318+
integrity sha512-kQvGasUgN+AlWGliFn2POSajRQEsULVYFGTvOZmK06d7vCD+YhZztt70kGk3qaeAXeWYL5eO7zx+rAubBc55eA==
33243319
optionalDependencies:
33253320
fsevents "~2.3.2"
33263321

@@ -3608,12 +3603,10 @@ underscore@~1.13.2:
36083603
resolved "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz"
36093604
integrity sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==
36103605

3611-
undici@^5.24.0:
3612-
version "5.29.0"
3613-
resolved "https://registry.yarnpkg.com/undici/-/undici-5.29.0.tgz#419595449ae3f2cdcba3580a2e8903399bd1f5a3"
3614-
integrity sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==
3615-
dependencies:
3616-
"@fastify/busboy" "^2.0.0"
3606+
undici@^6.24.0:
3607+
version "6.24.0"
3608+
resolved "https://registry.yarnpkg.com/undici/-/undici-6.24.0.tgz#ad36b879b4882d14addc13dd641da7ed7ac7623a"
3609+
integrity sha512-lVLNosgqo5EkGqh5XUDhGfsMSoO8K0BAN0TyJLvwNRSl4xWGZlCVYsAIpa/OpA3TvmnM01GWcoKmc3ZWo5wKKA==
36173610

36183611
universalify@^2.0.0:
36193612
version "2.0.0"

0 commit comments

Comments
 (0)