pusher-js

Pusher Javascript library

MIT License

Downloads
2.6M
Stars
2.1K
Committers
85

Bot releases are hidden (Show)

pusher-js - v7.0.3

Published by leesio over 3 years ago

7.0.3 (2021-01-25)

[UPDATED] Bumped version of faye-websocket (used only by the node runtime) from
0.9.4 to 0.11.3. Thanks to @Akhawais for the PR.

[UPDATED] Bumped version of @react-native-community/netinfo (used only by the
react-native runtime) from 4.1.1 to 5.9.7. Thanks to @Yinabled for the PR.

[ADDED] We were missing a react-native key in package.json. Thanks to @giaset
for the PR

[ADDED] Support for importing the worker builds (solving issue #499)

pusher-js - v7.0.2

Published by leesio almost 4 years ago

7.0.2 (2020-11-26)

[FIXED] Removes AuthInfo type from react-native and with-encryption builds.
This type was removed everywhere else in v7.0.0. See issue
512

pusher-js - v7.0.1

Published by TomKemp almost 4 years ago

7.0.1 (2020-11-02)

[FIXED] Channels no longer get stuck in the subscriptionPending state
after a failed request to an auth endpoint. Fixes Issue
255

pusher-js - v7.0.0

Published by leesio about 4 years ago

7.0.0 (2020-07-30)

[UPDATED] Type signatures for authorizer callback. Previously the authorizer
callback had 2 arguments, the first was a boolean indicating that the second
was an error. Switched for a more conventional function(err, data) signature.
Fixes issue 427
This is a breaking change, if you use a custom authorizer

[UPDATED] Types of errors emitted on pusher:subscription_error events.
Previously this event just contained the status code the auth endpoint
returned. This was replaced with a (hopefully) more error object with a message
and a status key.
This is a breaking change, if you depend on the status in the
pusher:subscription_error event

[FIXED] Stop wrapping websocket errors multiple times. Fixes issue
464

This might be a breaking change, if you depend on the structure of 'error' events
emitted by pusher.connection

[FIXED] Stop swallowing errors thrown by handlers on encrypted channels.
Previously errors thrown by handlers bound to encrypted channels were caught
and ignored. This was unintentional and undesirable. Fixes Issue
437

pusher-js - 6.0.3

Published by leesio over 4 years ago

6.0.3 (2020-05-14)

[FIXED] Added typescript declarations for the pusher-js/with-encryption build

[REMOVED] Unnecessary dummy tweetnacl types for react-native (thanks to
@dmitrybirin)

[UPDATED] Copyright years (thanks to @annzenkina)

pusher-js - v6.0.2

Published by leesio over 4 years ago

6.0.2 (2020-04-30)

[FIXED] React-native import broken in release 6.0.1

pusher-js - v6.0.1

Published by leesio over 4 years ago

6.0.1 (2020-04-30)

[CHANGED] Moved tweetnacl from devDependencies to dependencies. No
additional code is included in the bundle, but this gives the typescript
compiler access to the tweetnacl types

[FIXED] Typescript declarations for react-native. These were supposed to be
included in 6.0.0 but the commit was missed

pusher-js - v6.0.0

Published by leesio over 4 years ago

[CHANGED] The default builds for web and worker no longer support encrypted channels. To use encrypted channels in web/worker you must import pusher-js/with-encryption or use the pusher-with-encryption.js/pusher-with-encryption.min.js bundles. See README for more details

[CHANGED] forceTLS now defaults to true

[REMOVED] the encrypted option - this was deprecated in 4.3.0. The library defaults to TLS anyway. Setting encrypted to false will NOT change behaviour

[FIXED] activityTimeout and pongTimeout options now work as described in the docs.

[NEW] Typescript declarations for react-native

[NEW] Support for encrypted-channels in react-native and workers

pusher-js - v5.1.1

Published by leesio over 4 years ago

[FIXED] An issue with typescript declarations which caused builds to fail on
typescript projects dependent on pusher-js

pusher-js - v5.1.0

Published by leesio over 4 years ago

[NEW] Include typescript declarations

[CHANGED] Make stats opt in rather than opt out - Previously we sent some
metrics about connection strategies to stats.pusher.com by default, it could be
disabled by passing the disableStats option. This functionality is now off by
default and can be enabled by passing the enableStats option

[FIXED] An issue where local tests would hang for 300s if a browser wasn't
available

pusher-js - v5.0.3

Published by WillSewell almost 5 years ago

5.0.3 (2019-11-18)

[NEW] Log a warning when there is an auth error

[CHANGED] Default logger now uses console.warn and console.error

[CHANGED] Improved log messages

pusher-js - v5.0.2

Published by leesio about 5 years ago

5.0.2 (2019-09-25)

[FIXED] Utilise new API for @react-native-community/netinfo suppressing
deprecation warnings

[CHANGED] output an ES6 module from typescript to allow webpack to optimise the
bundle more effectively (thanks to @stof for this change)

[CHANGED] Use prettier to format source

pusher-js - v5.0.1

Published by leesio about 5 years ago

[FIXED] We no longer include an unnecessary Buffer polyfill in bundles

pusher-js - v5.0.0

Published by leesio about 5 years ago

This is a major version bump but should only contain breaking change for
react-native users.

[CHANGED] The react-native build now assumes @react-native-community/netinfo is
available in the host project. This change was necessary since netinfo was
removed from react-native core.

[CHANGED] The reconnect strategy is no longer built with a DSL. This makes the
code much more easily optimised by the javascript engine and should improve
load times significantly. Thanks to @stof for his contribution.

[CHANGED] The project is now built with recent versions of webpack and
typescript. All other build deps were updated and the build process was
simplified.

[FIXED] An issue that broke encrypted channels in node has been resolved

[FIXED] Some consistently flaky tests were fixed and we switched to headless
browsers for test runs where possible (including in CI).

[CHANGED] The node dependencies are now bundled in the node dist file so that
web/react-native users don't need to install unnecessary dependencies

pusher-js - v4.4.0

Published by leesio over 5 years ago

  • Callbacks bound to client events on presence channels will be called with an extra argument containing the user_id of the message sender

  • Warn when trying to trigger client-events to a channel that isn't subscribed

pusher-js - 4.3.1

Published by leesio about 6 years ago

  • [FIXED] Honour protocol error codes received after connection succeeds

Previously, if the client received an error code from the server after the initial connection had succeeded, a reconnect attempt would be made immediately, regardless of the code sent by the server.

pusher-js - Release v4.3.0

Published by kn100 about 6 years ago

  • New This release adds support for end to end encrypted channels, a new feature for Channels. Read more in our docs.
  • Deprecated Renamed encrypted option to forceTLS - encrypted will still work!
pusher-js - Release v4.2.2

Published by hph almost 7 years ago

  • Fixed Do not warn about a missing cluster when the host is explicitly set.
  • Fixed Only log with a custom logger when configured (prevents double
    logging).
  • Fixed Update React Native NetInfo usage due to deprecated modules.
  • New Add wsPath option (see README.md for details).

Many thanks to @sunweiyang, @rajivm and @WillSewell for their contributions!

pusher-js - Release v4.2.1

Published by hph about 7 years ago

4.2.1 (2017-09-28)

[FIXED] Correct version numbers in file headers (v4.2.0 still showed 4.1.0).

pusher-js - Release v4.2.0

Published by hph about 7 years ago

4.2.0 (2017-09-28)

[FIXED] Fixed an issue where pusher-js would not attempt to subscribe to
channels that were in the process of being subscribed to when the connection
failed.

[FIXED] Does not attempt to call handlesActivityChecks on an undefined
connection instance anymore. Fixes issues #82 and #233.

[NEW] More helpful error messages can now be logged, with URLs.

[CHANGED] Various improvements in README.md.

Many thanks to @hengwoon, @leesio, @juliangruber and Heng for their
contributions to this release!