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/engine.io-client
base: 6.1.1
Choose a base ref
...
head repository: socketio/engine.io-client
compare: 6.2.1
Choose a head ref
  • 17 commits
  • 34 files changed
  • 2 contributors

Commits on Nov 14, 2021

  1. Copy the full SHA
    1c0fd93 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2022

  1. chore: bump engine.io from 4.0.2 to 4.1.2 (#685)

    Bumps [engine.io](https://github.com/socketio/engine.io) from 4.0.2 to 4.1.2.
    - [Release notes](https://github.com/socketio/engine.io/releases)
    - [Changelog](https://github.com/socketio/engine.io/blob/4.1.2/CHANGELOG.md)
    - [Commits](socketio/engine.io@4.0.2...4.1.2)
    
    ---
    updated-dependencies:
    - dependency-name: engine.io
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Jan 15, 2022
    Copy the full SHA
    56af9c5 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2022

  1. chore: bump ajv from 6.10.2 to 6.12.6 (#687)

    Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6.
    - [Release notes](https://github.com/ajv-validator/ajv/releases)
    - [Commits](ajv-validator/ajv@v6.10.2...v6.12.6)
    
    ---
    updated-dependencies:
    - dependency-name: ajv
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Feb 16, 2022
    Copy the full SHA
    00c6734 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2022

  1. chore: bump cached-path-relative from 1.0.2 to 1.1.0 (#686)

    Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative) from 1.0.2 to 1.1.0.
    - [Release notes](https://github.com/ashaffer/cached-path-relative/releases)
    - [Commits](https://github.com/ashaffer/cached-path-relative/commits)
    
    ---
    updated-dependencies:
    - dependency-name: cached-path-relative
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Mar 8, 2022
    Copy the full SHA
    f51ca4a View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2022

  1. Copy the full SHA
    f4725f1 View commit details
    Browse the repository at this point in the history
  2. feat: slice write buffer according to the maxPayload value

    The server will now include a "maxPayload" field in the handshake
    details, allowing the clients to decide how many packets they have to
    send to stay under the maxHttpBufferSize value.
    
    Related:
    
    - socketio/socket.io-client#1531
    - socketio/engine.io@088dcb4
    darrachequesne committed Mar 12, 2022
    Copy the full SHA
    46fdc2f View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    6e1bbff View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2022

  1. feat: add details to the "close" event

    The close event will now include additional details to help debugging
    if anything has gone wrong.
    
    Example when a payload is over the maxHttpBufferSize value in HTTP
    long-polling mode:
    
    ```js
    socket.on("close", (reason, details) => {
      console.log(reason); // "transport error"
    
      // in that case, details is an error object
      console.log(details.message); "xhr post error"
      console.log(details.description); // 413 (the HTTP status of the response)
    
      // details.context refers to the XMLHttpRequest object
      console.log(details.context.status); // 413
      console.log(details.context.responseText); // ""
    });
    ```
    
    Note: the error object was already included before this commit and is
    kept for backward compatibility
    
    Example when a payload is over the maxHttpBufferSize value with
    WebSockets:
    
    ```js
    socket.on("close", (reason, details) => {
      console.log(reason); // "transport close"
    
      // in that case, details is a plain object
      console.log(details.description); // "websocket connection closed"
    
      // details.context is a CloseEvent object
      console.log(details.context.code); // 1009 (which means "Message Too Big")
      console.log(details.context.reason); // ""
    });
    ```
    
    Example within a cluster without sticky sessions:
    
    ```js
    socket.on("close", (reason, details) => {
      console.log(details.context.status); // 400
      console.log(details.context.responseText); // '{"code":1,"message":"Session ID unknown"}'
    });
    ```
    
    Note: we could also print some warnings in development for the "usual"
    errors:
    
    - CORS error
    - HTTP 400 with multiple nodes
    - HTTP 413 with maxHttpBufferSize
    
    but that would require an additional step when going to production
    (i.e. setting NODE_ENV variable to "production"). This is open to
    discussion!
    
    Related:
    
    - socketio/socket.io#3946
    - socketio/socket.io#1979
    - socketio/socket.io-client#1518
    darrachequesne committed Apr 11, 2022
    Copy the full SHA
    b9252e2 View commit details
    Browse the repository at this point in the history
  2. refactor: merge the polling.ts and polling-xhr.ts files

    In the past, there were two implementations of the HTTP long-polling
    feature, one with XMLHttpRequest and one based on JSONP for ancient
    browsers (IE7/IE8). The JSONP implementation has been removed in [1].
    
    [1]: b2c7381
    darrachequesne committed Apr 11, 2022
    Copy the full SHA
    b4b3ed5 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. refactor: import single-file 3rd party modules

    This commit allows to:
    
    - provide an ESM version of those modules ([1])
    - reduce the attack surface in case of supply chain attacks
    - reduce the size of the bundle with tree-shaking
    
    As a downside, we won't receive security updates for those modules
    anymore.
    
    [1]: socketio/socket.io-client#1536
    darrachequesne committed Apr 13, 2022
    Copy the full SHA
    df32277 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2022

  1. Copy the full SHA
    71cd3ba View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    bc3cefb View commit details
    Browse the repository at this point in the history
  3. chore(release): 6.2.0

    darrachequesne committed Apr 17, 2022
    Copy the full SHA
    d0773b8 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    582f4fe View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    e2ab447 View commit details
    Browse the repository at this point in the history
  6. chore: bump engine.io-parser to version 5.0.3

    In order to make sure the types added in [1] are included.
    
    [1]: socketio/engine.io-parser@ad5bd7d
    darrachequesne committed Apr 17, 2022
    Copy the full SHA
    a2946fc View commit details
    Browse the repository at this point in the history
  7. chore(release): 6.2.1

    darrachequesne committed Apr 17, 2022
    Copy the full SHA
    8437600 View commit details
    Browse the repository at this point in the history