Skip to content

Releases: pusher/pusher-js

v7.0.2

26 Nov 09:41
abee25c
Compare
Choose a tag to compare

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

v7.0.1

02 Nov 14:49
c429373
Compare
Choose a tag to compare

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

v7.0.0

31 Jul 09:33
96aab17
Compare
Choose a tag to compare

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

6.0.3

14 May 14:39
8827097
Compare
Choose a tag to compare

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)

v6.0.2

30 Apr 17:02
156fa8a
Compare
Choose a tag to compare

6.0.2 (2020-04-30)

[FIXED] React-native import broken in release 6.0.1

v6.0.1

30 Apr 09:33
1fdcf7b
Compare
Choose a tag to compare

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

v6.0.0

27 Apr 11:06
Compare
Choose a tag to compare

[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

v5.1.1

12 Feb 15:43
0d718ad
Compare
Choose a tag to compare

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

v5.1.0

11 Feb 11:35
Compare
Choose a tag to compare

[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

v5.0.3

18 Nov 14:29
c7b5dcb
Compare
Choose a tag to compare

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