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/emitter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.0
Choose a base ref
...
head repository: socketio/emitter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.0.0
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Oct 14, 2021

  1. feat: add support for typed events

    The StrictEventEmitter class that was defined in the socket.io-client
    repository ([1]) is moved here, so we don't need to create an
    intermediary class (Socket > StrictEventEmitter > Emitter) to get the
    proper types.
    
    As an additional benefit, the final bundle size should be decreased.
    
    BREAKING CHANGE: we now use a named export instead of a default export
    
    ```js
    // before
    import Emitter from "@socket.io/component-emitter"
    
    // after
    import { Emitter } from "@socket.io/component-emitter"
    ```
    
    [1]: https://github.com/socketio/socket.io-client/blob/a9e5b85580e8edca0b0fd2850c3741d3d86a96e2/lib/typed-events.ts
    darrachequesne committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    84397cb View commit details
    Browse the repository at this point in the history
  2. chore(release): 3.0.0

    darrachequesne committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    cd703fe View commit details
    Browse the repository at this point in the history
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy