pusher-js 8.4.0-rc2 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/.github/workflows/release.yml +0 -5
  2. package/CHANGELOG.md +2 -7
  3. package/README.md +2 -0
  4. package/dist/node/pusher.js +123 -140
  5. package/dist/node/pusher.js.map +1 -1
  6. package/dist/react-native/pusher.js +2 -2
  7. package/dist/react-native/pusher.js.map +1 -1
  8. package/dist/web/pusher-with-encryption.js +131 -148
  9. package/dist/web/pusher-with-encryption.js.map +1 -1
  10. package/dist/web/pusher-with-encryption.min.js +2 -2
  11. package/dist/web/pusher-with-encryption.min.js.map +1 -1
  12. package/dist/web/pusher.js +131 -148
  13. package/dist/web/pusher.js.map +1 -1
  14. package/dist/web/pusher.min.js +2 -2
  15. package/dist/web/pusher.min.js.map +1 -1
  16. package/dist/worker/pusher-with-encryption.worker.js +129 -146
  17. package/dist/worker/pusher-with-encryption.worker.js.map +1 -1
  18. package/dist/worker/pusher-with-encryption.worker.min.js +2 -2
  19. package/dist/worker/pusher-with-encryption.worker.min.js.map +1 -1
  20. package/dist/worker/pusher.worker.js +129 -146
  21. package/dist/worker/pusher.worker.js.map +1 -1
  22. package/dist/worker/pusher.worker.min.js +2 -2
  23. package/dist/worker/pusher.worker.min.js.map +1 -1
  24. package/index.d.ts +1 -1
  25. package/package.json +4 -4
  26. package/react-native/index.d.ts +1 -1
  27. package/spec/javascripts/helpers/mocks.js +0 -1
  28. package/spec/javascripts/integration/index.web.js +0 -14
  29. package/spec/javascripts/unit/core/connection/connection_manager_spec.js +0 -43
  30. package/spec/javascripts/unit/core/pusher_spec.js +0 -58
  31. package/src/core/auth/auth_transports.ts +1 -1
  32. package/src/core/auth/channel_authorizer.ts +5 -5
  33. package/src/core/auth/deprecated_channel_authorizer.ts +8 -10
  34. package/src/core/auth/options.ts +19 -19
  35. package/src/core/auth/user_authenticator.ts +5 -5
  36. package/src/core/base64.ts +9 -9
  37. package/src/core/channels/channel.ts +10 -10
  38. package/src/core/channels/channels.ts +2 -2
  39. package/src/core/channels/encrypted_channel.ts +12 -12
  40. package/src/core/channels/members.ts +1 -1
  41. package/src/core/channels/presence_channel.ts +1 -1
  42. package/src/core/channels/private_channel.ts +2 -2
  43. package/src/core/config.ts +19 -28
  44. package/src/core/connection/connection.ts +5 -5
  45. package/src/core/connection/connection_manager.ts +14 -23
  46. package/src/core/connection/handshake/index.ts +5 -5
  47. package/src/core/connection/protocol/protocol.ts +11 -11
  48. package/src/core/defaults.ts +4 -4
  49. package/src/core/events/callback_registry.ts +7 -7
  50. package/src/core/events/dispatcher.ts +1 -1
  51. package/src/core/http/ajax.ts +1 -1
  52. package/src/core/http/http_polling_socket.ts +5 -5
  53. package/src/core/http/http_socket.ts +6 -6
  54. package/src/core/http/http_streaming_socket.ts +5 -5
  55. package/src/core/http/state.ts +1 -1
  56. package/src/core/options.ts +3 -8
  57. package/src/core/pusher.ts +14 -25
  58. package/src/core/strategies/best_connected_ever_strategy.ts +10 -10
  59. package/src/core/strategies/delayed_strategy.ts +4 -4
  60. package/src/core/strategies/first_connected_strategy.ts +9 -6
  61. package/src/core/strategies/if_strategy.ts +1 -1
  62. package/src/core/strategies/sequential_strategy.ts +11 -11
  63. package/src/core/strategies/strategy_builder.ts +10 -10
  64. package/src/core/strategies/transport_strategy.ts +14 -14
  65. package/src/core/strategies/websocket_prioritized_cached_strategy.ts +10 -10
  66. package/src/core/timeline/level.ts +1 -1
  67. package/src/core/timeline/timeline.ts +3 -3
  68. package/src/core/timeline/timeline_sender.ts +1 -1
  69. package/src/core/timeline/timeline_transport.ts +1 -1
  70. package/src/core/transports/assistant_to_the_transport_manager.ts +6 -6
  71. package/src/core/transports/transport.ts +1 -1
  72. package/src/core/transports/transport_connection.ts +8 -8
  73. package/src/core/transports/transport_manager.ts +1 -1
  74. package/src/core/transports/url_schemes.ts +8 -8
  75. package/src/core/user.ts +10 -10
  76. package/src/core/util.ts +2 -2
  77. package/src/core/utils/collections.ts +10 -10
  78. package/src/core/utils/factory.ts +6 -6
  79. package/src/core/utils/timers/abstract_timer.ts +1 -1
  80. package/src/core/utils/timers/index.ts +2 -2
  81. package/src/core/utils/url_store.ts +8 -8
  82. package/src/core/watchlist.ts +3 -3
  83. package/src/d.ts/module/module.d.ts +1 -1
  84. package/src/runtimes/interface.ts +1 -1
  85. package/src/runtimes/isomorphic/auth/xhr_auth.ts +9 -9
  86. package/src/runtimes/isomorphic/default_strategy.ts +26 -26
  87. package/src/runtimes/isomorphic/http/http.ts +1 -1
  88. package/src/runtimes/isomorphic/http/http_xhr_request.ts +4 -4
  89. package/src/runtimes/isomorphic/runtime.ts +3 -3
  90. package/src/runtimes/isomorphic/timeline/xhr_timeline.ts +5 -5
  91. package/src/runtimes/isomorphic/transports/transport_connection_initializer.ts +3 -3
  92. package/src/runtimes/isomorphic/transports/transports.ts +19 -17
  93. package/src/runtimes/node/runtime.ts +2 -2
  94. package/src/runtimes/react-native/net_info.ts +2 -2
  95. package/src/runtimes/react-native/runtime.ts +2 -2
  96. package/src/runtimes/web/auth/jsonp_auth.ts +5 -5
  97. package/src/runtimes/web/default_strategy.ts +36 -36
  98. package/src/runtimes/web/dom/dependencies.ts +2 -2
  99. package/src/runtimes/web/dom/dependency_loader.ts +3 -3
  100. package/src/runtimes/web/dom/script_receiver_factory.ts +2 -2
  101. package/src/runtimes/web/dom/script_request.ts +3 -3
  102. package/src/runtimes/web/dom/sockjs/COPYING +11 -0
  103. package/src/runtimes/web/dom/sockjs/Changelog +147 -0
  104. package/src/runtimes/web/dom/sockjs/LICENSE-MIT-SockJS +19 -0
  105. package/src/runtimes/web/dom/sockjs/Makefile +109 -0
  106. package/src/runtimes/web/dom/sockjs/README.md +388 -0
  107. package/src/runtimes/web/dom/sockjs/VERSION-GEN +17 -0
  108. package/src/runtimes/web/dom/sockjs/bin/render.coffee +111 -0
  109. package/src/runtimes/web/dom/sockjs/bin/run_testling.sh +135 -0
  110. package/src/runtimes/web/dom/sockjs/package.json +18 -0
  111. package/src/runtimes/web/dom/sockjs/version +1 -0
  112. package/src/runtimes/web/http/http.ts +1 -1
  113. package/src/runtimes/web/http/http_xdomain_request.ts +7 -7
  114. package/src/runtimes/web/net_info.ts +4 -4
  115. package/src/runtimes/web/runtime.ts +2 -2
  116. package/src/runtimes/web/timeline/jsonp_timeline.ts +4 -4
  117. package/src/runtimes/web/transports/transport_connection_initializer.ts +5 -5
  118. package/src/runtimes/web/transports/transports.ts +16 -14
  119. package/src/runtimes/worker/auth/fetch_auth.ts +9 -9
  120. package/src/runtimes/worker/runtime.ts +3 -3
  121. package/src/runtimes/worker/timeline/fetch_timeline.ts +5 -5
  122. package/types/src/core/auth/options.d.ts +10 -5
  123. package/types/src/core/connection/connection_manager.d.ts +0 -1
  124. package/types/src/core/options.d.ts +0 -4
  125. package/types/src/core/pusher.d.ts +1 -3
  126. package/webpack/config.node.js +6 -6
  127. package/webpack/config.react-native.js +10 -10
  128. package/webpack/config.shared.js +10 -10
  129. package/webpack/config.web.js +6 -6
  130. package/webpack/config.worker.js +8 -8
  131. package/webpack/dev.server.js +2 -2
  132. package/webpack/hosting_config.js +1 -1
  133. package/with-encryption/index.d.ts +1 -1
  134. package/worker/index.d.ts +1 -1
  135. package/worker/with-encryption/index.d.ts +1 -1
@@ -1,14 +1,9 @@
1
1
  on:
2
2
  push:
3
3
  branches: [ master ]
4
- pull_request:
5
- types: [ labeled ]
6
- branches:
7
- - master
8
4
 
9
5
  jobs:
10
6
  check-release-tag:
11
- if: ${{ github.head_ref == 'master' || github.event.label.name == 'deploy-release' }}
12
7
  runs-on: ubuntu-latest
13
8
  steps:
14
9
  - name: Checkout code
package/CHANGELOG.md CHANGED
@@ -1,13 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ## 8.4.0-rc2
3
+ ## 8.4.0
4
4
 
5
- - [FIXED] Persist Initial Pusher Options
6
- - [FIXED] Authorization Custom Handler typing https://github.com/pusher/pusher-js/issues/715
7
-
8
- ## 8.4.0-rc1
9
-
10
- - [Added] Introduce a new method to switch the Pusher client to a different cluster and re-establish all existing subscriptions and channel bindings.
5
+ - [CHANGED] Dependencies minor versions updated to latest versions
11
6
 
12
7
  ## 8.3.0
13
8
 
package/README.md CHANGED
@@ -10,6 +10,8 @@ If you're looking for the Pusher Channels server library for Node.js, use
10
10
  For tutorials and more in-depth information about Pusher Channels, visit
11
11
  our [official docs](https://pusher.com/docs/javascript_quick_start).
12
12
 
13
+ For reporting issues, bugs, and feature requests, please feel free to open a pull request or open an issue. If you do not receive a timely response, feel free to check our [support portal](https://docs.bird.com/pusher).
14
+
13
15
  ## Usage Overview
14
16
 
15
17
  The following topics are covered: