Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: socketio/socket.io-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2eca8dad28243c51a51d0c4a3dc12f6deaa0ae45
Choose a base ref
...
head repository: socketio/socket.io-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 91ef8395d50e4ac378a399fd127d45778c6dfe99
Choose a head ref
  • 6 commits
  • 29 files changed
  • 3 contributors

Commits on Nov 2, 2022

  1. Verified

    This commit was signed with the committer’s verified signature.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    f9b773f View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    9ec85f7 View commit details

Commits on Nov 5, 2022

  1. Verified

    This commit was signed with the committer’s verified signature.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    cedd311 View commit details

Commits on Nov 15, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e891289 View commit details

Commits on Nov 17, 2022

  1. ci: migrate from zuul to webdriver.io

    zuul is now archived [1] and does not support the new W3C WebDriver
    protocol, since it relies on the wd package [2] under the hood, which
    uses the (now deprecated) JSON Wire Protocol.
    
    We will now use the webdriver.io test framework, which allows to run
    our tests in local and on Sauce Labs (cross-browser and mobile tests).
    This allows us to run our tests on latest versions of Android and iOS,
    since Sauce Labs only supports the W3C WebDriver protocol for these
    platforms ([3]).
    
    [1]: https://github.com/defunctzombie/zuul
    [2]: https://github.com/admc/wd
    [3]: https://docs.saucelabs.com/dev/w3c-webdriver-capabilities/
    darrachequesne committed Nov 17, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    d882822 View commit details

Commits on Nov 22, 2022

  1. chore(release): 4.5.4

    darrachequesne committed Nov 22, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    91ef839 View commit details
42 changes: 27 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -6,40 +6,52 @@ on:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: read

jobs:
test-node:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
node-version: [14, 16]

steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
env:
CI: true

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

test-browser:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
- name: Checkout repository
uses: actions/checkout@v3

- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: '10.x'
- run: npm ci
- run: npm test
node-version: 16

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
env:
CI: true
BROWSERS: 1
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
timeout-minutes: 20
156 changes: 130 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,69 @@
# History

- [4.5.3](#453-2022-10-15) (2022-10-15)
- [4.5.2](#452-2022-09-02) (2022-09-02)
- [4.5.1](#451-2022-05-17) (2022-05-17)
- [4.5.0](#450-2022-04-23) (2022-04-23)
- [4.4.1](#441-2022-01-06) (2022-01-06)
- [4.4.0](#440-2021-11-18) (2021-11-18)
- [4.3.2](#432-2021-10-16) (2021-10-16)
- [4.3.1](#431-2021-10-15) (2021-10-15)
- [4.3.0](#430-2021-10-14) (2021-10-14)
- [4.2.0](#420-2021-08-30) (2021-08-30)
- [4.1.3](#413-2021-07-10) (2021-07-10)
- [4.1.2](#412-2021-05-17) (2021-05-17)
- [4.1.1](#411-2021-05-11) (2021-05-11)
- [4.1.0](#410-2021-05-11) (2021-05-11)
- [4.0.2](#402-2021-05-06) (2021-05-06)
- [4.0.1](#401-2021-03-31) (2021-03-31)
- [4.0.0](#400-2021-03-10) (2021-03-10)
- [3.1.2](#312-2021-02-26) (2021-02-26)
- [3.1.1](#311-2021-02-03) (2021-02-03)
- [3.1.0](#310-2021-01-15) (2021-01-15)
- [3.0.5](#305-2021-01-05) (2021-01-05)
- [3.0.4](#304-2020-12-07) (2020-12-07)
- [3.0.3](#303-2020-11-19) (2020-11-19)
- [3.0.2](#302-2020-11-17) (2020-11-17)
- [3.0.1](#301-2020-11-09) (2020-11-09)
- [3.0.0](#300-2020-11-05) (2020-11-05)
## 2022

- [4.5.4](#454-2022-11-22) (Nov 2022)
- [4.5.3](#453-2022-10-15) (Oct 2022)
- [4.5.2](#452-2022-09-02) (Sep 2022)
- [2.5.0](#250-2022-06-26) (Jun 2022) (from the [2.x](https://github.com/socketio/socket.io-client/tree/2.x) branch)
- [4.5.1](#451-2022-05-17) (May 2022)
- [4.5.0](#450-2022-04-23) (Apr 2022)
- [4.4.1](#441-2022-01-06) (Jan 2022)

## 2021

- [4.4.0](#440-2021-11-18) (Nov 2021)
- [4.3.2](#432-2021-10-16) (Oct 2021)
- [4.3.1](#431-2021-10-15) (Oct 2021)
- [4.3.0](#430-2021-10-14) (Oct 2021)
- [4.2.0](#420-2021-08-30) (Aug 2021)
- [4.1.3](#413-2021-07-10) (Jul 2021)
- [4.1.2](#412-2021-05-17) (May 2021)
- [4.1.1](#411-2021-05-11) (May 2021)
- [4.1.0](#410-2021-05-11) (May 2021)
- [4.0.2](#402-2021-05-06) (May 2021)
- [4.0.1](#401-2021-03-31) (Mar 2021)
- [3.1.3](#313-2021-03-12) (Mar 2021) (from the [3.1.x](https://github.com/socketio/socket.io-client/tree/3.1.x) branch)
- [**4.0.0**](#400-2021-03-10) (Mar 2021)
- [3.1.2](#312-2021-02-26) (Feb 2021)
- [3.1.1](#311-2021-02-03) (Feb 2021)
- [3.1.0](#310-2021-01-15) (Jan 2021)
- [3.0.5](#305-2021-01-05) (Jan 2021)
- [2.4.0](#240-2021-01-04) (Jan 2021) (from the [2.x](https://github.com/socketio/socket.io-client/tree/2.x) branch)

## 2020

- [3.0.4](#304-2020-12-07) (Dec 2020)
- [3.0.3](#303-2020-11-19) (Nov 2020)
- [3.0.2](#302-2020-11-17) (Nov 2020)
- [3.0.1](#301-2020-11-09) (Nov 2020)
- [**3.0.0**](#300-2020-11-05) (Nov 2020)
- [2.3.1](#231-2020-09-30) (Sep 2020)

## 2019

- [2.3.0](#230-2019-09-20) (Sep 2019)

## 2018

- [2.2.0](#220-2018-11-29) (Nov 2018)
- [2.1.1](#211-2018-05-17) (May 2018)
- [2.1.0](#210-2018-03-29) (Mar 2018)


# Release notes

## [4.5.4](https://github.com/socketio/socket.io-client/compare/4.5.3...4.5.4) (2022-11-22)

This release contains a bump of the `socket.io-parser` dependency, in order to fix [CVE-2022-2421](https://github.com/advisories/GHSA-qm95-pgcg-qqfq).

### Dependencies

- [`engine.io-client@~6.2.3`](https://github.com/socketio/engine.io-client/tree/6.2.3)
- [`ws@~8.2.3`](https://github.com/websockets/ws/releases/tag/8.2.3)



## [4.5.3](https://github.com/socketio/socket.io-client/compare/4.5.2...4.5.3) (2022-10-15)


@@ -47,6 +82,15 @@



# [2.5.0](https://github.com/socketio/socket.io-client/compare/2.4.0...2.5.0) (2022-06-26)


### Bug Fixes

* ensure buffered events are sent in order ([991eb0b](https://github.com/Automattic/socket.io-client/commit/991eb0b0289bbbf680099e6d42b302beee7568b8))



## [4.5.1](https://github.com/socketio/socket.io-client/compare/4.5.0...4.5.1) (2022-05-17)

There were some minor bug fixes on the server side, which mandate a client bump.
@@ -114,6 +158,14 @@ The server will now include a "maxPayload" field in the handshake details, allow

* add timeout feature ([ccf7998](https://github.com/socketio/socket.io-client/commit/ccf7998cc5049d02022567aedfb263de875a06a5))

```js
socket.timeout(5000).emit("my-event", (err) => {
if (err) {
// the server did not acknowledge the event in the given delay
}
});
```



## [4.3.2](https://github.com/socketio/socket.io-client/compare/4.3.1...4.3.2) (2021-10-16)
@@ -215,6 +267,16 @@ There were some minor bug fixes on the server side, which mandate a client bump.
* **typings:** update definition to match wrapper.mjs ([#1456](https://github.com/socketio/socket.io-client/issues/1456)) ([48f573f](https://github.com/socketio/socket.io-client/commit/48f573f6f6c4d542e6a098e7f4ae472b888b5664))



## [3.1.3](https://github.com/socketio/socket.io-client/compare/3.1.2...3.1.3) (2021-03-12)


### Bug Fixes

* **bundle:** restore support for JS modules ([afa7953](https://github.com/socketio/socket.io-client/commit/afa79532f8a422cc9246175abdbe30299a0b0281))



# [4.0.0](https://github.com/socketio/socket.io-client/compare/3.1.2...4.0.0) (2021-03-10)

The major bump is due to some breaking changes on the server side.
@@ -268,6 +330,13 @@ The major bump is due to some breaking changes on the server side.
* **typings:** make sendBuffer and receiveBuffer public ([b83f89c](https://github.com/socketio/socket.io-client/commit/b83f89c901e82e06f66cbda4124cf739d2bb01c3))



# [2.4.0](https://github.com/socketio/socket.io-client/compare/2.3.1...2.4.0) (2021-01-04)

The minor bump is matching the bump of the server, but there is no new feature in this release.



## [3.0.4](https://github.com/socketio/socket.io-client/compare/3.0.3...3.0.4) (2020-12-07)


@@ -439,3 +508,38 @@ plugin.

* fix reconnection after opening socket asynchronously ([#1253](https://github.com/socketio/socket.io-client/issues/1253)) ([050108b](https://github.com/socketio/socket.io-client/commit/050108b2281effda086b197cf174ee2e8e1aad79))



# [2.3.0](https://github.com/socketio/socket.io-client/compare/2.2.0...2.3.0) (2019-09-20)

The minor bump is matching the bump of the server, but there is no new feature in this release.



# [2.2.0](https://github.com/socketio/socket.io-client/compare/2.1.1...2.2.0) (2018-11-29)

### Bug fixes

- remove any reference to the `global` variable (related: https://github.com/socketio/socket.io-client/issues/1166)



## [2.1.1](https://github.com/socketio/socket.io-client/compare/2.1.0...2.1.1) (2018-05-17)

### Bug fixes

- fire an error event on middleware failure for non-root namespace ([#1202](https://github.com/socketio/socket.io-client/issues/1202)) ([0fe9439](https://github.com/socketio/socket.io-client/commit/0fe9439ff6d97fb6e7fa7bd145ee9367de055b29))



# [2.1.0](https://github.com/socketio/socket.io-client/compare/2.0.4...2.1.0) (2018-03-29)

### Features

- add a 'binary' flag ([#1194](https://github.com/socketio/socket.io-client/pull/1194)) ([74893d5](https://github.com/socketio/socket.io-client/commit/74893d53ca22335cbdbdd1468a5f9a810143a231))

```js
// by default, the object is recursively scanned to check whether it contains some binary data
// in the following example, the check is skipped in order to improve performance
socket.binary(false).emit('plain-object', object);
```
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [["@babel/preset-env"]],
};
Loading