Bot releases are hidden (Show)
Published by leesio over 3 years ago
[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)
Published by TomKemp almost 4 years ago
[FIXED] Channels no longer get stuck in the subscriptionPending
state
after a failed request to an auth endpoint. Fixes Issue
255
Published by leesio about 4 years ago
[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
Published by leesio over 4 years ago
[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)
Published by leesio over 4 years ago
[FIXED] React-native import broken in release 6.0.1
Published by leesio over 4 years ago
[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
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
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
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
Published by WillSewell almost 5 years ago
[NEW] Log a warning when there is an auth error
[CHANGED] Default logger now uses console.warn and console.error
[CHANGED] Improved log messages
Published by leesio about 5 years ago
[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
Published by leesio about 5 years ago
[FIXED] We no longer include an unnecessary Buffer polyfill in bundles
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
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
Published by leesio about 6 years ago
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.
Published by kn100 about 6 years ago
encrypted
option to forceTLS
- encrypted
will still work!Published by hph almost 7 years ago
wsPath
option (see README.md for details).Many thanks to @sunweiyang, @rajivm and @WillSewell for their contributions!
Published by hph about 7 years ago
[FIXED] Correct version numbers in file headers (v4.2.0 still showed 4.1.0).
Published by hph about 7 years ago
[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!