author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
536,302
26.06.2019 16:04:08
-3,600
646634364f581a2987ff96af8f07bc04366c8224
add a comment explaining ENV VAR this is only possible because webpack rewrites the value at build time, this could be confusing later on
[ { "change_type": "MODIFY", "old_path": "spec/config/jasmine-node/webpack.unit.js", "new_path": "spec/config/jasmine-node/webpack.unit.js", "diff": "@@ -30,4 +30,3 @@ module.exports = objectAssign({}, baseConfig, {\n}\n}\n});\n->>>>>>> update test configs\n" }, { "change_type": "MODIFY", ...
JavaScript
MIT License
pusher/pusher-js
add a comment explaining ENV VAR this is only possible because webpack rewrites the value at build time, this could be confusing later on
536,302
26.06.2019 11:51:40
-3,600
61155ebb7c3326c2a0aefcfe92e4f253b61b4528
Remove unnecessary types these types are now included by adding a `lib` key to the tsconfig.json
[ { "change_type": "DELETE", "old_path": "src/d.ts/fetch/fetch.d.ts", "new_path": null, "diff": "-// Type definitions for isomorphic-fetch\n-// Project: https://github.com/matthew-andrews/isomorphic-fetch\n-// Definitions by: Todd Lucas <https://github.com/toddlucas>\n-// Definitions: https://github.c...
JavaScript
MIT License
pusher/pusher-js
Remove unnecessary types these types are now included by adding a `lib` key to the tsconfig.json
536,302
26.06.2019 15:53:34
-3,600
bccc120f93303cf03c2c987fe5f8b37410d1112e
add optional keys to runtime interface these methods are used only by the web runtime
[ { "change_type": "MODIFY", "old_path": "src/runtimes/interface.ts", "new_path": "src/runtimes/interface.ts", "diff": "@@ -8,6 +8,7 @@ import Socket from 'core/socket';\nimport HTTPFactory from 'core/http/http_factory';\nimport HTTPRequest from 'core/http/http_request';\nimport Pusher from 'core/push...
JavaScript
MIT License
pusher/pusher-js
add optional keys to runtime interface these methods are used only by the web runtime
536,302
03.07.2019 14:57:02
-3,600
02fc6e84a9024083212878fd619f897ce4941383
bump webpack/ts-loader versions
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "\"dev\": true\n},\n\"elliptic\": {\n- \"version\": \"6.4.1\",\n- \"resolved\": \"https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz\",\n- \"integrity\": \"sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3...
JavaScript
MIT License
pusher/pusher-js
bump webpack/ts-loader versions
536,302
18.07.2019 11:10:23
-3,600
23428ed81ad861b53cc21eab7ec757565c20ee62
Use headless firefox and chrome Continue using Browserstack for Safari when 'full' is set
[ { "change_type": "MODIFY", "old_path": "spec/config/karma/config.ci.js", "new_path": "spec/config/karma/config.ci.js", "diff": "@@ -3,21 +3,8 @@ var config = {\nstartTunnel: true,\ntimeout: 1800\n},\n+ browsers: ['ChromeHeadless', 'FirefoxHeadless'],\ncustomLaunchers: {\n- bs_chrome_74: {\n- base: '...
JavaScript
MIT License
pusher/pusher-js
Use headless firefox and chrome Continue using Browserstack for Safari when 'full' is set
536,302
12.07.2019 17:57:45
-3,600
5fba8a37342dc2f394141f0a40f4cc720adf8f1a
all build should use production mode rather than using the development mode, just disable minimize for non .min.js bundles
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -16,10 +16,10 @@ web:\necho \"Browser Release:\"\n# make sockjs\n# cp src/runtimes/web/dom/sockjs/sockjs.js dist/web\n- node_modules/webpack/bin/webpack.js --config=webpack/config.web.js\n+ MINIMIZE=false node_mod...
JavaScript
MIT License
pusher/pusher-js
all build should use production mode rather than using the development mode, just disable minimize for non .min.js bundles
536,302
18.07.2019 10:49:08
-3,600
86aa7b94bac0e1da013563a2d2e88b615fa2d2fb
Inject a RUNTIME variable with webpack
[ { "change_type": "MODIFY", "old_path": "src/d.ts/constants/index.d.ts", "new_path": "src/d.ts/constants/index.d.ts", "diff": "@@ -2,3 +2,4 @@ declare var VERSION\ndeclare var CDN_HTTP\ndeclare var CDN_HTTPS\ndeclare var DEPENDENCY_SUFFIX\n+declare var RUNTIME\n" }, { "change_type": "MODIFY",...
JavaScript
MIT License
pusher/pusher-js
Inject a RUNTIME variable with webpack
536,302
18.07.2019 10:51:48
-3,600
42a5011e473ffd8a5049e9016adf2b0ebefe4060
Use RUNTIME var to disable e2e for RN
[ { "change_type": "MODIFY", "old_path": "src/core/channels/channels.ts", "new_path": "src/core/channels/channels.ts", "diff": "@@ -65,7 +65,7 @@ function createChannel(name : string, pusher : Pusher) : Channel {\nif (name.indexOf('private-encrypted-') === 0) {\n// We don't currently support e2e on Re...
JavaScript
MIT License
pusher/pusher-js
Use RUNTIME var to disable e2e for RN
536,302
19.07.2019 12:04:09
-3,600
5c631dc38d7dd7299301857e4d93fe43c192a0fb
Replace NetInfo w/ react-native-community version NetInfo was removed from react-native core in version 0.60
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -83,6 +83,18 @@ and then:\n### React Native\n+**Warning it's now necessary to install\n+[@react-native-community/netinfo](https://github.com/react-native-community/react-native-netinfo)\n+in order to use pusher-...
JavaScript
MIT License
pusher/pusher-js
Replace NetInfo w/ react-native-community version NetInfo was removed from react-native core in version 0.60
536,302
19.07.2019 12:09:06
-3,600
dddc0410c0e94908edf1b939c06f57495a8a3cfa
Remove react-native external and type
[ { "change_type": "DELETE", "old_path": "src/d.ts/react-native/react-native.d.ts", "new_path": null, "diff": "-declare module \"react-native\" {\n- export var NetInfo: any;\n-}\n" }, { "change_type": "MODIFY", "old_path": "webpack/config.react-native.js", "new_path": "webpack/config.r...
JavaScript
MIT License
pusher/pusher-js
Remove react-native external and type
536,287
08.08.2019 13:02:33
-3,600
b60cf9a652355874db964d5a1674ab1df8b296b3
Add supported platforms list This does not define supported versions precisely, because I'm not sure we have agreed on this yet
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -32,6 +32,23 @@ The following topics are covered:\n* [Building](https://github.com/pusher/pusher-js#building)\n* [Testing](https://github.com/pusher/pusher-js#testing)\n+## Supported platforms\n+\n+* Web\n+\n+ *...
JavaScript
MIT License
pusher/pusher-js
Add supported platforms list This does not define supported versions precisely, because I'm not sure we have agreed on this yet
536,302
08.08.2019 16:42:37
-3,600
d353f5701629a0d25b875de63db309c59d8612cc
Remove mention of pusher-angular pusher-angular is very 'legacy' and isn't really necessary anymore, all of our modern tutorials just install pusher-js using npm
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -37,14 +37,14 @@ The following topics are covered:\n* Web\n* We test against Chrome, Firefox and Safari.\n- * Works [in web pages](https://github.com/pusher/pusher-js#web),\n- [in Web Workers](https://github.com...
JavaScript
MIT License
pusher/pusher-js
Remove mention of pusher-angular pusher-angular is very 'legacy' and isn't really necessary anymore, all of our modern tutorials just install pusher-js using npm
536,302
06.09.2019 11:54:04
-3,600
a346e9c48afa01f00a6de5b0f4e220e2a18ac688
use new fetch api for netinfo
[ { "change_type": "MODIFY", "old_path": "src/runtimes/react-native/net_info.ts", "new_path": "src/runtimes/react-native/net_info.ts", "diff": "@@ -14,7 +14,7 @@ export class NetInfo extends EventsDispatcher implements Reachability {\nsuper();\nthis.online = true;\n- NativeNetInfo.getConnectionInfo()....
JavaScript
MIT License
pusher/pusher-js
use new fetch api for netinfo
536,291
23.09.2019 21:26:09
-10,800
eca0bc270dce06aae50973afc5e4dfc2a5d4954c
Update net_info.ts Source: This should get rid of Deprecation warning (https://github.com/react-native-community/react-native-netinfo/issues/123)
[ { "change_type": "MODIFY", "old_path": "src/runtimes/react-native/net_info.ts", "new_path": "src/runtimes/react-native/net_info.ts", "diff": "@@ -18,7 +18,7 @@ export class NetInfo extends EventsDispatcher implements Reachability {\nthis.online = hasOnlineConnectionState(connectionState);\n});\n- Na...
JavaScript
MIT License
pusher/pusher-js
Update net_info.ts Source: https://github.com/react-native-community/react-native-netinfo/issues/123 This should get rid of Deprecation warning (https://github.com/react-native-community/react-native-netinfo/issues/123)
536,302
24.09.2019 15:49:00
-3,600
c9933429062e4bba1f1bc56fc07d1d73e31598dc
Fix the error message when authorization fails
[ { "change_type": "MODIFY", "old_path": "src/runtimes/isomorphic/auth/xhr_auth.ts", "new_path": "src/runtimes/isomorphic/auth/xhr_auth.ts", "diff": "@@ -37,7 +37,8 @@ var ajax : AuthTransport = function(context : AbstractRuntime, socketId, callbac\n} else {\nvar suffix = UrlStore.buildLogSuffix(\"aut...
JavaScript
MIT License
pusher/pusher-js
Fix the error message when authorization fails
536,279
15.05.2018 14:09:49
25,200
b7ce7cfa7b97de9b9c2529b235a24da27f70b292
Fix unclear documentation around wss connections.
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -262,6 +262,17 @@ const socket = new Pusher(APP_KEY, {\n});\n```\n+Note: if you intend to use secure websockets, or `wss`, you can not simply specify `wss` in `enabledTransports`, you must specify `ws` in `enabl...
JavaScript
MIT License
pusher/pusher-js
Fix unclear documentation around wss connections.
536,302
15.10.2019 10:22:00
-3,600
fb26afe8520e57557537a7eb18f2f1a36777f457
Replace `encrypted` with `forceTLS` in README Some old docs with `encrypted` made it into the readme
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -262,14 +262,14 @@ const socket = new Pusher(APP_KEY, {\n});\n```\n-Note: if you intend to use secure websockets, or `wss`, you can not simply specify `wss` in `enabledTransports`, you must specify `ws` in `enab...
JavaScript
MIT License
pusher/pusher-js
Replace `encrypted` with `forceTLS` in README Some old docs with `encrypted` made it into the readme
536,302
14.01.2020 08:30:26
0
509172bff4c6c0f1ea7686aef4bddbfa2e0f949d
Use pusher instead of socket for client in readme
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -148,7 +148,7 @@ Notes:\n## Initialization\n```js\n-const socket = new Pusher(APP_KEY, {\n+const pusher = new Pusher(APP_KEY, {\ncluster: APP_CLUSTER,\n});\n```\n@@ -160,7 +160,7 @@ You can get your `APP_KEY` an...
JavaScript
MIT License
pusher/pusher-js
Use pusher instead of socket for client in readme
536,302
14.01.2020 09:51:45
0
b2331c654fea57937a2bb38e868b9631355058f8
fix lingering mentions of 'socket' variable
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -340,7 +340,7 @@ const pusher = new Pusher(APP_KEY, {\n});\n```\n-This returns a socket object which can then be used to subscribe to channels.\n+This returns a pusher object which can then be used to subscribe ...
JavaScript
MIT License
pusher/pusher-js
fix lingering mentions of 'socket' variable
536,302
30.01.2020 11:33:58
0
b1b5e1b8f408cdd39b895f2d9563a8fd5d8fb1fe
quote globs in prettier command "Don't forget the quotes around the globs! The quotes make sure that Prettier expands the globs rather than your shell, for cross-platform usage."
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"browser\": \"dist/web/pusher.js\",\n\"scripts\": {\n\"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n- \"format\": \"prettier --config .prettierrc --write src/**/*.ts webpack/**/*.js\",\n- \"...
JavaScript
MIT License
pusher/pusher-js
quote globs in prettier command https://prettier.io/docs/en/cli.html "Don't forget the quotes around the globs! The quotes make sure that Prettier expands the globs rather than your shell, for cross-platform usage."
536,302
06.02.2020 11:31:31
0
14e1a42347fd6be54343a96a65b92914ce06207f
tweak browser inactivity timeout some of the integration tests timed out within 3 secs
[ { "change_type": "MODIFY", "old_path": "spec/config/karma/config.common.js", "new_path": "spec/config/karma/config.common.js", "diff": "@@ -3,7 +3,7 @@ var objectAssign = require('object-assign-deep');\nvar browserList;\nif (process.env.MINIMAL_INTEGRATION_TESTS) {\n- browserList = ['ChromeHeadless'...
JavaScript
MIT License
pusher/pusher-js
tweak browser inactivity timeout some of the integration tests timed out within 3 secs
536,302
08.01.2020 14:18:37
0
02d46c83ff73ae7e5d7869fa15709f4fee9928a6
update tests We will no longer send connection metrics by default, update the metrics tests to reflect this remove unnecessary disableStats option in tests: we no longer send metrics by default, so there's no need to set the disableStats option in the tests
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/integration/core/cluster_config_spec.js", "new_path": "spec/javascripts/integration/core/cluster_config_spec.js", "diff": "@@ -55,7 +55,6 @@ module.exports = function(testConfigs) {\nauthEndpoint: Integration.API_EU_URL + \"/auth\",\ncluster: ...
JavaScript
MIT License
pusher/pusher-js
update tests We will no longer send connection metrics by default, update the metrics tests to reflect this - remove unnecessary disableStats option in tests: we no longer send metrics by default, so there's no need to set the disableStats option in the tests
536,302
08.01.2020 14:20:48
0
15dfd057e0e765588fb4ad825801a9df6ac74740
don't send connection metrics by default previously connection level metrics were opt-out, via the disableStats option. We now want them to be opt-in via an enableStats option.
[ { "change_type": "MODIFY", "old_path": "src/core/options.ts", "new_path": "src/core/options.ts", "diff": "@@ -4,6 +4,7 @@ import { AuthOptions, AuthorizerGenerator } from './auth/options';\ninterface PusherOptions {\ncluster: string;\ndisableStats: boolean;\n+ enableStats: boolean;\nstatsHost: strin...
JavaScript
MIT License
pusher/pusher-js
don't send connection metrics by default previously connection level metrics were opt-out, via the disableStats option. We now want them to be opt-in via an enableStats option.
536,302
14.01.2020 08:05:33
0
ede75cb9545e1d3dc7938071cf0a3933f097893b
Infer the enableStats config based on disableStats If a `disableStats` option is set without an `enableStats` option, set `enableStats` to the inverse of `disableStats`. This is to preserve the behaviour of the the existing API if a user explicity sets `disableStats` to `false`
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/pusher_spec.js", "new_path": "spec/javascripts/unit/core/pusher_spec.js", "diff": "@@ -504,7 +504,7 @@ describe(\"Pusher\", function() {\n);\n});\n- it(\"should not be sent by defaul\", function() {\n+ it(\"should not be sent by defa...
JavaScript
MIT License
pusher/pusher-js
Infer the enableStats config based on disableStats If a `disableStats` option is set without an `enableStats` option, set `enableStats` to the inverse of `disableStats`. This is to preserve the behaviour of the the existing API if a user explicity sets `disableStats` to `false`
536,302
14.01.2020 08:16:32
0
a4b3045c34d7e961adc5a3ba3201fdc537e75af2
clarify error message, run formatter
[ { "change_type": "MODIFY", "old_path": "src/core/pusher.ts", "new_path": "src/core/pusher.ts", "diff": "@@ -68,12 +68,12 @@ export default class Pusher {\n`You should always specify a cluster when connecting. ${suffix}`\n);\n}\n- if (\"disableStats\" in options) {\n+ if ('disableStats' in options) {...
JavaScript
MIT License
pusher/pusher-js
clarify error message, run formatter
536,302
14.01.2020 09:46:00
0
34f4b380fb5c8d8f3360a12bbe561961ee233248
add tests for disableStats option
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/pusher_spec.js", "new_path": "spec/javascripts/unit/core/pusher_spec.js", "diff": "@@ -476,7 +476,6 @@ describe(\"Pusher\", function() {\ndescribe(\"metrics\", function() {\nvar timelineSender;\n- var pusher;\nbeforeEach(function() {...
JavaScript
MIT License
pusher/pusher-js
add tests for disableStats option
536,302
10.02.2020 14:00:55
0
45c6783ee60dcfabfa2235f18b8b5364cc771ccd
use ChromeHeadless for minimal tests I changed it to Opera in a previous commit and forgot to change it back
[ { "change_type": "MODIFY", "old_path": "spec/config/karma/config.common.js", "new_path": "spec/config/karma/config.common.js", "diff": "@@ -3,7 +3,7 @@ var objectAssign = require('object-assign-deep');\nvar browserList;\nif (process.env.MINIMAL_INTEGRATION_TESTS) {\n- browserList = ['Opera'];\n+ bro...
JavaScript
MIT License
pusher/pusher-js
use ChromeHeadless for minimal tests I changed it to Opera in a previous commit and forgot to change it back
536,302
05.02.2020 12:05:23
0
2206b72772275e3d3753e5e323322c18470ef763
use a real type for the authorizer
[ { "change_type": "MODIFY", "old_path": "src/core/auth/options.ts", "new_path": "src/core/auth/options.ts", "diff": "@@ -5,8 +5,17 @@ export interface AuthOptions {\nheaders: any;\n}\n+export interface AuthData {\n+ auth: string;\n+ channel_data?: string;\n+}\n+\n+export type AuthInfo = AuthData | st...
JavaScript
MIT License
pusher/pusher-js
use a real type for the authorizer
536,302
05.02.2020 12:05:53
0
8ac63d96b391feaff6469dfdce1521ab282dcd21
expose a public options type
[ { "change_type": "MODIFY", "old_path": "src/core/options.ts", "new_path": "src/core/options.ts", "diff": "import ConnectionManager from './connection/connection_manager';\nimport { AuthOptions, AuthorizerGenerator } from './auth/options';\n-interface PusherOptions {\n+export interface PusherOptions ...
JavaScript
MIT License
pusher/pusher-js
expose a public options type
536,302
11.02.2020 09:21:30
0
86f40acf7bfacbe73feeadc75b3662100c505710
add enableStats option
[ { "change_type": "MODIFY", "old_path": "src/core/options.ts", "new_path": "src/core/options.ts", "diff": "@@ -22,7 +22,8 @@ type AuthTransport = 'ajax' | 'jsonp';\nexport interface Options {\nactivityTimeout?: number;\n- disableStats?: boolean;\n+ enableStats?: boolean;\n+ disableStats?: boolean; //...
JavaScript
MIT License
pusher/pusher-js
add enableStats option
536,302
11.02.2020 09:42:58
0
308314e913914b871c7489c44487f6f486e8d31e
make options arg optional
[ { "change_type": "MODIFY", "old_path": "src/core/pusher.ts", "new_path": "src/core/pusher.ts", "diff": "@@ -59,7 +59,7 @@ export default class Pusher {\nconnection: ConnectionManager;\ntimelineSenderTimer: PeriodicTimer;\n- constructor(app_key: string, options: Options) {\n+ constructor(app_key: str...
JavaScript
MIT License
pusher/pusher-js
make options arg optional
536,302
11.02.2020 12:03:19
0
62c1e7e4af2ed9c3d9e41bee07df60fc9fe85262
mention ts declarations in README
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -98,6 +98,20 @@ and then:\n<script src=\"bower_components/pusher/dist/web/pusher.min.js\"></script>\n```\n+### Typescript\n+\n+We've provided typescript declarations since v5.1.0. Most things should work\n+out o...
JavaScript
MIT License
pusher/pusher-js
mention ts declarations in README
536,302
12.02.2020 12:06:23
0
02d321c8a44974a0b3a33a7754fc08b7143db072
only use relative refs in core/abstract runtime
[ { "change_type": "MODIFY", "old_path": "src/core/auth/auth_transports.ts", "new_path": "src/core/auth/auth_transports.ts", "diff": "-import AbstractRuntime from 'runtimes/interface';\n+import AbstractRuntime from '../../runtimes/interface';\ninterface AuthTransport {\n(context: AbstractRuntime, sock...
JavaScript
MIT License
pusher/pusher-js
only use relative refs in core/abstract runtime
536,302
27.04.2020 11:51:03
-3,600
1753822a68ebcb28da451b1629cbe62361fdd3c5
enable forceTLS by default, remove `encrypted` opt
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -211,8 +211,7 @@ There are a number of configuration parameters which can be set for the client,\n```js\nconst pusher = new Pusher(APP_KEY, {\ncluster: APP_CLUSTER,\n- authEndpoint: 'http://example.com/pusher/au...
JavaScript
MIT License
pusher/pusher-js
enable forceTLS by default, remove `encrypted` opt (#448)
536,302
27.04.2020 11:55:53
-3,600
139bcc32c31ca961b8858bc829a9141bac92ff95
pass global config to subclass 2 parameters can be set by the caller ``` import Pusher from 'pusher-js; Pusher.logToConsole; ``` etc We need to pass these properties on to the subclass
[ { "change_type": "ADD", "old_path": null, "new_path": "spec/javascripts/unit/core/pusher_with_encryption_spec.js", "diff": "+var Pusher = require('core/pusher').default;\n+var PusherWithEncryption = require('core/pusher-with-encryption').default;\n+\n+describe('PusherWithEncryption', function() {\n+...
JavaScript
MIT License
pusher/pusher-js
pass global config to subclass (#449) 2 parameters can be set by the caller ``` import Pusher from 'pusher-js; Pusher.logToConsole; ``` etc We need to pass these properties on to the subclass
536,275
29.04.2020 13:20:51
-3,600
3540b0d034a54b33c54c1f91404000d5502370bc
Remove beta label from encrypted channels
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -450,11 +450,11 @@ Private channels are created in exactly the same way as normal channels, except\nconst channel = pusher.subscribe('private-my-channel');\n```\n-### Encrypted Channels (BETA)\n+### Encrypted Ch...
JavaScript
MIT License
pusher/pusher-js
Remove beta label from encrypted channels (#442)
536,302
30.04.2020 08:14:46
-3,600
8b2c1ba76323abee0ce9f9e75f52767013c27744
add types for react-native
[ { "change_type": "ADD", "old_path": null, "new_path": "react-native/index.d.ts", "diff": "+export {\n+ AuthInfo,\n+ Authorizer,\n+ AuthOptions,\n+ AuthorizerGenerator,\n+ AuthorizerCallback,\n+} from '../types/src/core/auth/options';\n+export { Options } from '../types/src/core/options'\n+\n+export ...
JavaScript
MIT License
pusher/pusher-js
add types for react-native (#453)
536,302
30.04.2020 08:31:17
-3,600
1e578a3613fcef5a21924e787ecb03a7333cd9ba
Add tweetnacl as dependency typescript complains about being unable to find the module
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "\"tweetnacl\": {\n\"version\": \"1.0.3\",\n\"resolved\": \"https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz\",\n- \"integrity\": \"sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM...
JavaScript
MIT License
pusher/pusher-js
Add tweetnacl as dependency (#454) typescript complains about being unable to find the module
536,309
14.05.2020 16:08:12
-10,800
af2a375432a85ffd19e8947a17e6432e47122188
deleted the note for not working RN builds
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -454,8 +454,6 @@ const channel = pusher.subscribe('private-my-channel');\nLike private channels, encrypted channels have their own namespace, 'private-encrypted-'. For more information about encrypted channels, ...
JavaScript
MIT License
pusher/pusher-js
deleted the note for not working RN builds (#458)
536,309
14.05.2020 16:08:46
-10,800
654c46704a88aa38f91072613b0716ee130c5471
deleted dummy tweetnacl libs for RN
[ { "change_type": "DELETE", "old_path": "src/runtimes/react-native/tweetnacl-dummy.ts", "new_path": null, "diff": "-export default {\n- secretbox: {},\n- randomBytes: {}\n-};\n" }, { "change_type": "DELETE", "old_path": "src/runtimes/react-native/tweetnacl-util-dummy.ts", "new_path": ...
JavaScript
MIT License
pusher/pusher-js
deleted dummy tweetnacl libs for RN (#459)
536,302
14.05.2020 14:21:20
-3,600
797d6ec695cce0cbdb0414e3bc65b0a339a14a39
bump dates on licences for
[ { "change_type": "MODIFY", "old_path": "LICENCE", "new_path": "LICENCE", "diff": "-Copyright (c) 2019 Pusher, Ltd (https://pusher.com)\n+Copyright (c) 2020 Pusher, Ltd (https://pusher.com)\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated ...
JavaScript
MIT License
pusher/pusher-js
bump dates on licences for @annzenkina (#462)
536,302
14.05.2020 15:22:40
-3,600
9daa2ee8afcd1ad70e31288652fd24e2ec49c241
add types for with-encryption
[ { "change_type": "ADD", "old_path": null, "new_path": "with-encryption/index.d.ts", "diff": "+export {\n+ AuthInfo,\n+ Authorizer,\n+ AuthOptions,\n+ AuthorizerGenerator,\n+ AuthorizerCallback\n+} from '../types/src/core/auth/options';\n+export { Options } from '../types/src/core/options';\n+\n+expo...
JavaScript
MIT License
pusher/pusher-js
add types for with-encryption (#461)
536,302
07.07.2020 09:43:58
-3,600
82621608f55ba8ebecdc54eada94546708c4ba0b
Don't catch and discard errors thrown by handlers * Don't catch and discard errors thrown by handlers As per If the handler throws an error, we catch it and discard it. We shouldn't be doing anything with the caller's handlers.
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/channels/encrypted_channel_spec.js", "new_path": "spec/javascripts/unit/core/channels/encrypted_channel_spec.js", "diff": "@@ -248,6 +248,29 @@ describe(\"EncryptedChannel\", function() {\n});\nexpect(boundCallback).toHaveBeenCalledW...
JavaScript
MIT License
pusher/pusher-js
Don't catch and discard errors thrown by handlers (#475) * Don't catch and discard errors thrown by handlers As per https://github.com/pusher/pusher-js/issues/437. If the handler throws an error, we catch it and discard it. We shouldn't be doing anything with the caller's handlers.
536,302
07.07.2020 16:41:18
-3,600
7d89a30635acffea75b24d8d996303ad21596bdc
don't wrap errors from transport We can assume that errors emitted from lower down the connection stack are already wrapped. The transport connection should be the only thing wrapping errors in WebsocketError.
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/connection/connection_manager_spec.js", "new_path": "spec/javascripts/unit/core/connection/connection_manager_spec.js", "diff": "@@ -425,7 +425,10 @@ describe(\"ConnectionManager\", function() {\nvar onError = jasmine.createSpy(\"onE...
JavaScript
MIT License
pusher/pusher-js
don't wrap errors from transport We can assume that errors emitted from lower down the connection stack are already wrapped. The transport connection should be the only thing wrapping errors in WebsocketError.
536,302
08.07.2020 14:06:45
-3,600
499e6633594f9afcd6da414e49bb99cd016ba525
update auth types It was confusing that sometimes the 2nd argument to the callback was AuthData and sometimes it was an error string. Use a more traditional callback signature (error: Error | null, data: AuthData) In addition, add the `shared_secret` field to the auth data type
[ { "change_type": "MODIFY", "old_path": "index.d.ts", "new_path": "index.d.ts", "diff": "export {\n- AuthInfo,\nAuthorizer,\nAuthOptions,\nAuthorizerGenerator,\n" }, { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/channels/channel_spec.js", "new_path": "spec/javascr...
JavaScript
MIT License
pusher/pusher-js
update auth types It was confusing that sometimes the 2nd argument to the callback was AuthData and sometimes it was an error string. Use a more traditional callback signature (error: Error | null, data: AuthData) In addition, add the `shared_secret` field to the auth data type
536,302
08.07.2020 15:55:03
-3,600
0e33cf6962e9c7598dff3b3aaf0b95637a9d091a
Fix safari tests For some reason tests with error comparisons like: ``` expect(callback).to.BeCalledWith(new Error("...")) ``` were failing in Safari on Mojave. Replace the helper with manual checking of the arguments
[ { "change_type": "MODIFY", "old_path": "spec/config/karma/config.ci.js", "new_path": "spec/config/karma/config.ci.js", "diff": "var config = {\nbrowserStack: {\nstartTunnel: true,\n- timeout: 1800\n+ timeout: 1800,\n},\nbrowsers: ['ChromeHeadless', 'FirefoxHeadless'],\ncustomLaunchers: {\n" }, {...
JavaScript
MIT License
pusher/pusher-js
Fix safari tests For some reason tests with error comparisons like: ``` expect(callback).to.BeCalledWith(new Error("...")) ``` were failing in Safari on Mojave. Replace the helper with manual checking of the arguments
536,302
27.07.2020 18:25:43
-3,600
ca374901f823f558814d8387f2091c1a98ff6950
callback HTTPAuthError when auth fails
[ { "change_type": "MODIFY", "old_path": "src/core/errors.ts", "new_path": "src/core/errors.ts", "diff": "@@ -49,3 +49,12 @@ export class UnsupportedStrategy extends Error {\nObject.setPrototypeOf(this, new.target.prototype);\n}\n}\n+export class HTTPAuthError extends Error {\n+ status: number;\n+ con...
JavaScript
MIT License
pusher/pusher-js
callback HTTPAuthError when auth fails
536,302
27.07.2020 18:28:05
-3,600
93f873be144a93b488465a49c70bbed0a94786bc
emit object containing the http status if present Previously we emitted just the status here, I think an object containing the status if it's present is a reasonable compromise
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/channels/channel_spec.js", "new_path": "spec/javascripts/unit/core/channels/channel_spec.js", "diff": "@@ -247,10 +247,13 @@ describe(\"Channel\", function() {\nchannel.subscribe();\nvar authorizeCallback = channel.authorize.calls[0]...
JavaScript
MIT License
pusher/pusher-js
emit object containing the http status if present Previously we emitted just the status here, I think an object containing the status if it's present is a reasonable compromise
536,302
27.07.2020 20:06:06
-3,600
4778e6ff5247a30d6ae43a0dde8c6f7bd810876f
don't log auth errors in authorizer We log the error message in the channel, authorizers should include information about the failure in the error
[ { "change_type": "MODIFY", "old_path": "src/runtimes/isomorphic/auth/xhr_auth.ts", "new_path": "src/runtimes/isomorphic/auth/xhr_auth.ts", "diff": "-import Logger from 'core/logger';\nimport TimelineSender from 'core/timeline/timeline_sender';\nimport * as Collections from 'core/utils/collections';\...
JavaScript
MIT License
pusher/pusher-js
don't log auth errors in authorizer We log the error message in the channel, authorizers should include information about the failure in the error
536,302
28.07.2020 08:21:37
-3,600
fd1632c76170e0f9eb8ef23f8eb934a337971500
tidy callbacks and error msgs
[ { "change_type": "MODIFY", "old_path": "src/core/channels/encrypted_channel.ts", "new_path": "src/core/channels/encrypted_channel.ts", "diff": "@@ -36,8 +36,12 @@ export default class EncryptedChannel extends PrivateChannel {\n}\nlet sharedSecret = authData['shared_secret'];\nif (!sharedSecret) {\n-...
JavaScript
MIT License
pusher/pusher-js
tidy callbacks and error msgs
536,302
28.07.2020 09:23:40
-3,600
5861f6ff7f10789409e63b2a8eef0d9e8644a7a5
add example authorizer
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -276,14 +276,53 @@ const pusher = new Pusher(APP_KEY, {\nauthorizer: function (channel, options) {\nreturn {\nauthorize: function (socketId, callback) {\n- // Do some ajax to get the auth information\n- callback...
JavaScript
MIT License
pusher/pusher-js
add example authorizer
536,302
28.07.2020 09:52:05
-3,600
e8d6c6c3dab64757e3cc86546f0e320c6f3c7837
Remove contraction from error message
[ { "change_type": "MODIFY", "old_path": "src/runtimes/worker/auth/fetch_auth.ts", "new_path": "src/runtimes/worker/auth/fetch_auth.ts", "diff": "@@ -33,7 +33,7 @@ var fetchAuth: AuthTransport = function(\n}\nthrow new HTTPAuthError(\n200,\n- `Couldn't get auth info from your auth endpoint, status: ${...
JavaScript
MIT License
pusher/pusher-js
Remove contraction from error message Co-authored-by: Jon Heslop <jon@jonheslop.com>
536,284
31.08.2020 17:29:34
25,200
7a16d1b787e08e313598a08eb3f1e858b7eec2be
Adds react-native key to package.json Metro bundler needs this when pusher-js is a nested dependency (otherwise it tries to use the web runtime)
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"description\": \"Pusher Channels JavaScript library for browsers, React Native, NodeJS and web workers\",\n\"main\": \"dist/node/pusher.js\",\n\"browser\": \"dist/web/pusher.js\",\n+ \"react-native\": \"dis...
JavaScript
MIT License
pusher/pusher-js
Adds react-native key to package.json Metro bundler needs this when pusher-js is a nested dependency (otherwise it tries to use the web runtime)
536,296
26.10.2020 15:40:28
0
e987d849688e08acdc43d5218da946cd2dec56ed
Clear 'subscriptionPending' state on failed auth endpoint request
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/pusher_spec.js", "new_path": "spec/javascripts/unit/core/pusher_spec.js", "diff": "@@ -294,6 +294,7 @@ describe(\"Pusher\", function() {\ndescribe(\"#unsubscribe\", function() {\nit(\"should unsubscribe the channel if subscription is...
JavaScript
MIT License
pusher/pusher-js
Clear 'subscriptionPending' state on failed auth endpoint request
536,302
25.11.2020 09:00:07
0
eb29a7880e43079778000eece41da3bca4db85a6
Remove AuthInfo type for other builds In the AuthInfo type was removed from `index.d.ts`, it should have been removed from the type definitions for all builds. Thanks to for highlighting this issue
[ { "change_type": "MODIFY", "old_path": "react-native/index.d.ts", "new_path": "react-native/index.d.ts", "diff": "export {\n- AuthInfo,\nAuthorizer,\nAuthOptions,\nAuthorizerGenerator,\nAuthorizerCallback,\n} from '../types/src/core/auth/options';\n-export { Options } from '../types/src/core/options...
JavaScript
MIT License
pusher/pusher-js
Remove AuthInfo type for other builds In 499e6633594f9afcd6da414e49bb99cd016ba525, the AuthInfo type was removed from `index.d.ts`, it should have been removed from the type definitions for all builds. Thanks to @anthony-j-castro for highlighting this issue
536,302
30.11.2020 12:41:34
0
53afb9770db68ba5fe97af4e13405317e948ce41
add a note to the README about client events
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -598,6 +598,20 @@ channel.unbind_global();\nThe `unbind_all` method is equivalent to calling `unbind()` and `unbind_global()` together; it removes all bindings, global and event specific.\n+## Triggering Client ...
JavaScript
MIT License
pusher/pusher-js
add a note to the README about client events
536,286
17.12.2020 21:20:35
0
38d40c1dd7474fd5e5dbf376bd2d42a989cef95e
Upgrade faye-websocket to 0.11.3
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"@stablelib/base64\": \"^1.0.0\",\n\"@stablelib/utf8\": \"^1.0.0\",\n\"buffer\": \"^5.6.0\",\n- \"faye-websocket\": \"^0.9.4\",\n+ \"faye-websocket\": \"^0.11.3\",\n\"fetch-mock\": \"git+https://git@github.c...
JavaScript
MIT License
pusher/pusher-js
Upgrade faye-websocket to 0.11.3
536,286
18.12.2020 17:24:28
0
df35b8f4ea9c98dceaf8bbc74b8becb8608868ae
Oops forgot to include this!
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "\"dev\": true\n},\n\"faye-websocket\": {\n- \"version\": \"0.9.4\",\n- \"resolved\": \"https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.9.4.tgz\",\n- \"integrity\": \"sha1-iFk0x57/sECVSe...
JavaScript
MIT License
pusher/pusher-js
Oops forgot to include this!
536,278
12.01.2021 22:25:32
25,200
4c1313f79c140ed839b10d92338841c4bbb2c0c0
Update to 5.9.7 Pusher's version of `@react-native-community/netinfo` is out-of-date, which leads to issues in React Native (and Expo), namely the following error (due to mismatched versions): ``` RNCNetInfo.getCurrentState got 2 arguments, expected 3 ``` This should resolve the above issue.
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "},\n\"homepage\": \"https://github.com/pusher/pusher-js\",\n\"devDependencies\": {\n- \"@react-native-community/netinfo\": \"^4.1.1\",\n+ \"@react-native-community/netinfo\": \"^5.9.7\",\n\"@stablelib/base64\...
JavaScript
MIT License
pusher/pusher-js
Update @react-native-community/netinfo to 5.9.7 Pusher's version of `@react-native-community/netinfo` is out-of-date, which leads to issues in React Native (and Expo), namely the following error (due to mismatched versions): ``` RNCNetInfo.getCurrentState got 2 arguments, expected 3 ``` This should resolve the abo...
536,278
19.01.2021 09:23:27
25,200
40c997a2cee6f6df5612c43bbe7ec17dd0e6883e
build: update package-lock.json with netinfo
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "\"requires\": true,\n\"dependencies\": {\n\"@react-native-community/netinfo\": {\n- \"version\": \"4.1.1\",\n- \"resolved\": \"https://registry.npmjs.org/@react-native-community/netinfo/-/netinfo-4....
JavaScript
MIT License
pusher/pusher-js
build: update package-lock.json with netinfo
536,302
25.01.2021 12:11:18
0
9050446751695ebafa64559195b23a6e8fb24ec4
Add typescript defs for worker entrypoint
[ { "change_type": "ADD", "old_path": null, "new_path": "worker/index.d.ts", "diff": "+export {\n+ Authorizer,\n+ AuthOptions,\n+ AuthorizerGenerator,\n+ AuthorizerCallback,\n+} from '../types/src/core/auth/options';\n+export { Options } from '../types/src/core/options';\n+\n+export { default as Chann...
JavaScript
MIT License
pusher/pusher-js
Add typescript defs for worker entrypoint
536,302
27.01.2021 17:57:47
0
4fbce8e31e2fa79eac5f7d0cc6de30028eaafd8e
Swap travis for github actions Travis will stop being free for open source projects in "several weeks". This PR replaces it with github actions add github actions remove travis run node and web in parallel
[ { "change_type": "ADD", "old_path": null, "new_path": ".github/workflows/run-tests.yml", "diff": "+name: test\n+on:\n+ push:\n+ branches:\n+ - '*'\n+ pull_request:\n+ branches:\n+ - master\n+jobs:\n+ run-web-tests:\n+ runs-on: ubuntu-latest\n+ env:\n+ CI: ${{ github.event_name == 'push' && 'basic' |...
JavaScript
MIT License
pusher/pusher-js
Swap travis for github actions Travis will stop being free for open source projects in "several weeks". This PR replaces it with github actions - add github actions - remove travis - run node and web in parallel
536,289
24.10.2021 13:43:18
-7,200
4e648cf411fbfc3546f091af54df74cc3bdc3a13
Add release workflow to bump version
[ { "change_type": "ADD", "old_path": null, "new_path": ".github/workflows/release_pr.yml", "diff": "+name: release\n+\n+on:\n+ pull_request:\n+ types: [ labeled ]\n+ branches:\n+ - master\n+\n+jobs:\n+ prepare-release:\n+ name: Prepare release\n+ runs-on: ubuntu-latest\n+ steps:\n+ - uses: actions/ch...
JavaScript
MIT License
pusher/pusher-js
Add release workflow to bump version
536,289
29.12.2021 17:18:44
-3,600
f0ca55441bdbda8187c504cb06d7bbf97ee8f686
Update secret names for release workflow
[ { "change_type": "MODIFY", "old_path": ".github/workflows/release.yml", "new_path": ".github/workflows/release.yml", "diff": "@@ -105,8 +105,8 @@ jobs:\naws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION_ID} --paths \"/latest/*\" \"/${VERSION}/*\" \"/${VERSION_MIN}/*\"\ne...
JavaScript
MIT License
pusher/pusher-js
Update secret names for release workflow
536,289
25.01.2022 12:43:36
-3,600
4cc07406eb1ed6e3bb1478b697d424a86bfc7542
Fix release_pr workflow Update release_pr to bump version & build. Fix Makefile - We have a directory named worker which prevents make command to run correctly.
[ { "change_type": "MODIFY", "old_path": ".github/workflows/release_pr.yml", "new_path": ".github/workflows/release_pr.yml", "diff": "@@ -31,6 +31,8 @@ jobs:\nrun: |\necho \"$(jq '.version = \"${{ steps.bump.outputs.new_version }}\"' package.json)\" > package.json\n- git add package.json CHANGELOG.md\...
JavaScript
MIT License
pusher/pusher-js
Fix release_pr workflow Update release_pr to bump version & build. Fix Makefile - We have a directory named worker which prevents make command to run correctly.
536,289
25.01.2022 14:08:59
-3,600
37791b11e1ee5693b08e951b5b565b0387520663
Fix release_pr workflow
[ { "change_type": "MODIFY", "old_path": ".github/workflows/release_pr.yml", "new_path": ".github/workflows/release_pr.yml", "diff": "@@ -26,6 +26,10 @@ jobs:\nid: bump\nwith:\ncurrent_version: ${{ env.CURRENT_VERSION }}\n+ - uses: actions/setup-node@v2\n+ with:\n+ node-version: '14'\n+ - run: npm ins...
JavaScript
MIT License
pusher/pusher-js
Fix release_pr workflow
536,310
03.02.2022 15:29:00
-3,600
1da643b8be886ad836dfd6da950b8b6ed4215f0c
Set worker webpack ouput libraryTarget to umd
[ { "change_type": "MODIFY", "old_path": "webpack/config.worker.js", "new_path": "webpack/config.worker.js", "diff": "@@ -23,7 +23,8 @@ var config = merge(configShared, {\noutput: {\nlibrary: 'Pusher',\npath: path.join(__dirname, '../dist/worker'),\n- filename: filename\n+ filename: filename,\n+ libra...
JavaScript
MIT License
pusher/pusher-js
Set worker webpack ouput libraryTarget to umd
536,305
25.03.2022 13:05:58
0
0fc655d825a04d95b336ef499158e04ac9f9515b
Use secure random generator instead of pseudo-random generator This commit replaces the usage of pseudo-random number generator Math.random() with the secure random number generator crypto.getRandomValues()
[ { "change_type": "MODIFY", "old_path": "src/core/http/http_socket.ts", "new_path": "src/core/http/http_socket.ts", "diff": "@@ -204,14 +204,16 @@ function replaceHost(url: string, hostname: string): string {\n}\nfunction randomNumber(max: number): number {\n- return Math.floor(Math.random() * max);\...
JavaScript
MIT License
pusher/pusher-js
Use secure random generator instead of pseudo-random generator This commit replaces the usage of pseudo-random number generator Math.random() with the secure random number generator crypto.getRandomValues()
536,305
25.03.2022 13:42:24
0
18a64e473c51d840c2b7f335389331f55d4447b8
Import randomInt function only instead of importing whole crypto module
[ { "change_type": "MODIFY", "old_path": "src/runtimes/node/runtime.ts", "new_path": "src/runtimes/node/runtime.ts", "diff": "@@ -6,7 +6,7 @@ import { Network } from './net_info';\nimport xhrAuth from 'isomorphic/auth/xhr_auth';\nimport { AuthTransports } from 'core/auth/auth_transports';\nimport xhrT...
JavaScript
MIT License
pusher/pusher-js
Import randomInt function only instead of importing whole crypto module
536,305
04.04.2022 10:26:21
-3,600
7461f217d8521e3ade75f076f7b7d2c155f3a45d
Fix error in pipeline (tests stage)
[ { "change_type": "MODIFY", "old_path": "src/runtimes/node/runtime.ts", "new_path": "src/runtimes/node/runtime.ts", "diff": "@@ -6,7 +6,7 @@ import { Network } from './net_info';\nimport xhrAuth from 'isomorphic/auth/xhr_auth';\nimport { AuthTransports } from 'core/auth/auth_transports';\nimport xhrT...
JavaScript
MIT License
pusher/pusher-js
Fix error in pipeline (tests stage)
536,305
04.04.2022 12:56:45
-3,600
0e5209b89669f94f8ad7b3dd8eae578da2f0b489
Update node-version in pipeline
[ { "change_type": "MODIFY", "old_path": ".github/workflows/release.yml", "new_path": ".github/workflows/release.yml", "diff": "@@ -71,7 +71,7 @@ jobs:\n- uses: actions/setup-node@v2\nif: ${{ steps.is-published.outputs.published == 'false' }}\nwith:\n- node-version: '14'\n+ node-version: '16'\nregistr...
JavaScript
MIT License
pusher/pusher-js
Update node-version in pipeline
536,276
25.04.2022 10:44:57
-7,200
adac1686699e5157185925c285a1e972840562af
Update CHANGELOG and package version for the 7.1.0-beta release
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "# Changelog\n+## 7.1.0-beta\n+\n+[ADDED] Support for authenticating users with the `signin` method\n+\n+[ADDED] Support for binding to events sent to a specific authenticated user\n+\n+[UPDATED] The initializ...
JavaScript
MIT License
pusher/pusher-js
Update CHANGELOG and package version for the 7.1.0-beta release (#595)
536,308
24.05.2022 11:16:49
-3,600
c5ab9e6fdae7ae360d22265636ef979513e47948
Update README to remove legacy and replace it with and
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -235,107 +235,45 @@ For most users, there is little need to change these. See [client API guide](htt\nForces the connection to use TLS. When set to `false` the library will attempt non-TLS connections first. Def...
JavaScript
MIT License
pusher/pusher-js
Update README to remove legacy and replace it with and
536,276
02.06.2022 08:48:16
-7,200
5ffd19a458f7190739b801e77f3f8c096147049c
Update readme on authorization
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -225,7 +225,9 @@ There are a number of configuration parameters which can be set for the client,\n```js\nconst pusher = new Pusher(APP_KEY, {\ncluster: APP_CLUSTER,\n- authEndpoint: 'http://example.com/pusher/au...
JavaScript
MIT License
pusher/pusher-js
Update readme on authorization (#601)
536,289
23.06.2022 15:32:34
-7,200
4061c78b678848dc3e3fc8a29a40fdbadd8d42f1
Add subscription_count event RFC:
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/channels/channel_spec.js", "new_path": "spec/javascripts/unit/core/channels/channel_spec.js", "diff": "@@ -170,6 +170,31 @@ describe(\"Channel\", function() {\n});\n});\n+ describe('on pusher_internal:subscription_count', function() ...
JavaScript
MIT License
pusher/pusher-js
Add subscription_count event RFC: https://docs.google.com/document/d/13gLA0ShgzrDJuScD_HSFwpD0xIKIYwasmxyDrUJrivM/edit#heading=h.s16oz7h0dpk9
536,304
22.07.2022 11:31:39
-7,200
cbb46e5fb1771fe6e2634361768ff2f9e6430464
Restore previously exported types
[ { "change_type": "MODIFY", "old_path": "index.d.ts", "new_path": "index.d.ts", "diff": "export {\nDeprecatedAuthOptions,\n- ChannelAuthorizerGenerator,\n+ ChannelAuthorizerGenerator\n} from './types/src/core/auth/deprecated_channel_authorizer';\nexport {\n- AuthOptions,\n+ UserAuthenticationOptions,...
JavaScript
MIT License
pusher/pusher-js
Restore previously exported types
536,292
26.07.2022 12:21:21
-7,200
3e76915ec9485e6214a6cc728418a1b38db2936f
Remove React Native from README
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "![test badge](https://github.com/pusher/pusher-js/workflows/test/badge.svg)\n-This Pusher Channels client library supports web browsers, web workers, Node.js\n-and React Native.\n+This Pusher Channels client librar...
JavaScript
MIT License
pusher/pusher-js
Remove React Native from README
536,292
26.07.2022 12:43:39
-7,200
9cfc872495ca207723fa3ddf95f770f04d960966
Update React Native statement on README
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "![test badge](https://github.com/pusher/pusher-js/workflows/test/badge.svg)\n-This Pusher Channels client library supports web browsers, web workers and Node.js.\n+This Pusher Channels client library supports web b...
JavaScript
MIT License
pusher/pusher-js
Update React Native statement on README
536,304
05.08.2022 14:26:11
-7,200
e88645f5850d611bcf2f57b0c67e6e3e952d1778
Allow presence channel authorization to depend on user authentication
[ { "change_type": "MODIFY", "old_path": "src/core/channels/presence_channel.ts", "new_path": "src/core/channels/presence_channel.ts", "diff": "@@ -20,26 +20,35 @@ export default class PresenceChannel extends PrivateChannel {\nthis.members = new Members();\n}\n- /** Authenticates the connection as a m...
JavaScript
MIT License
pusher/pusher-js
Allow presence channel authorization to depend on user authentication
536,292
05.08.2022 16:59:16
-7,200
66ac4ea515329d41932ca9fc6697c59857057b9f
Bump jasmin to see if it fixes the flaky tests
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"faye-websocket\": \"^0.11.3\",\n\"fetch-mock\": \"git+https://git@github.com/jpatel531/fetch-mock.git\",\n\"isomorphic-fetch\": \"^3.0.0\",\n- \"jasmine\": \"^3.8.0\",\n+ \"jasmine\": \"^3.99.0\",\n\"jasmin...
JavaScript
MIT License
pusher/pusher-js
Bump jasmin to see if it fixes the flaky tests
536,304
08.08.2022 12:35:43
-7,200
c2e04937bc39dc092a5997249243e21c8ef404e7
Fix log suffix
[ { "change_type": "MODIFY", "old_path": "src/core/channels/presence_channel.ts", "new_path": "src/core/channels/presence_channel.ts", "diff": "@@ -39,7 +39,7 @@ export default class PresenceChannel extends PrivateChannel {\n// and allow the presence authorization to continue.\nthis.members.setMyID(th...
JavaScript
MIT License
pusher/pusher-js
Fix log suffix
536,304
11.08.2022 12:54:05
-7,200
dd199ebd308d326fb59e64b4573630c9957516be
Different proposal
[ { "change_type": "MODIFY", "old_path": "src/core/user.ts", "new_path": "src/core/user.ts", "diff": "@@ -21,14 +21,13 @@ export default class UserFacade extends EventsDispatcher {\nLogger.debug('No callbacks on user for ' + eventName);\n});\nthis.pusher = pusher;\n- this.pusher.connection.bind('conne...
JavaScript
MIT License
pusher/pusher-js
Different proposal
536,304
11.08.2022 13:30:14
-7,200
1eaa87b1c495655b7b06174189cc0050bf6d1321
Always keep a promise pending if the signin is requested and it didn't fail.
[ { "change_type": "MODIFY", "old_path": "src/core/user.ts", "new_path": "src/core/user.ts", "diff": "@@ -27,6 +27,7 @@ export default class UserFacade extends EventsDispatcher {\n}\nif (previous ==='connected' && current !== 'connected') {\nthis._cleanup();\n+ this._newSigninPromiseIfNeeded();\n}\n})...
JavaScript
MIT License
pusher/pusher-js
Always keep a promise pending if the signin is requested and it didn't fail.
536,304
11.08.2022 14:37:34
-7,200
23410ae2e2f53975eb0c3932b9c7128438164c90
Change unit tests accordingly
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/channels/presence_channel_spec.js", "new_path": "spec/javascripts/unit/core/channels/presence_channel_spec.js", "diff": "@@ -5,7 +5,7 @@ var Errors = require('core/errors');\nvar Factory = require('core/utils/factory').default;\nvar ...
JavaScript
MIT License
pusher/pusher-js
Change unit tests accordingly
536,304
15.08.2022 16:32:07
-7,200
4df8900a9eab5b06929794a5331e89ae2c6e64af
Add other changes to the changelog
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "## 7.4.0\n+* [CHANGED] Use secure random generator instead of pseudo-random generator\n+* [CHANGED] Replace git protocol with HTTPS in gitsubmodules file\n* [ADDED] Allow presence channel authorization to dep...
JavaScript
MIT License
pusher/pusher-js
Add other changes to the changelog
536,289
23.08.2022 12:03:45
-7,200
56095a3001d9c07dd158b6a47f76587d84f22047
Update release_pr workflow to not use private action External PRs can't run this workflow because secrets aren't available on external PRs.
[ { "change_type": "MODIFY", "old_path": ".github/workflows/release_pr.yml", "new_path": ".github/workflows/release_pr.yml", "diff": "@@ -19,8 +19,7 @@ jobs:\necho \"CURRENT_VERSION=$CURRENT_VERSION\" >> $GITHUB_ENV\n- uses: actions/checkout@v2\nwith:\n- repository: pusher/actions\n- token: ${{ secret...
JavaScript
MIT License
pusher/pusher-js
Update release_pr workflow to not use private action External PRs can't run this workflow because secrets aren't available on external PRs.
536,289
23.08.2022 12:06:20
-7,200
6085abfcf4e635186a4be7cfb8a1ebd23b5daf02
Add changelog section to pull_request_template
[ { "change_type": "MODIFY", "old_path": ".github/PULL_REQUEST_TEMPLATE.md", "new_path": ".github/PULL_REQUEST_TEMPLATE.md", "diff": "- [ ] All tests are passing.\n- [ ] New or changed API methods have been documented.\n- [ ] `npm run format` has been run\n+\n+## CHANGELOG\n+\n+- [CHANGED] Describe yo...
JavaScript
MIT License
pusher/pusher-js
Add changelog section to pull_request_template
536,307
28.10.2022 17:37:22
-10,800
07f1e09134bd5d6b2024179304891c480c28a949
Fixed default value: channelAuthorization.endpoint
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -242,7 +242,7 @@ For more information see [authenticating users](https://pusher.com/docs/channels\nObject containing the configuration for user authorization. Valid keys are:\n-* `endpoint` (String) - Endpoint o...
JavaScript
MIT License
pusher/pusher-js
Fixed default value: channelAuthorization.endpoint (#636)
536,298
10.11.2022 10:30:00
-3,600
33a27f87a04c7fd0f6dc919c03984cbadb9b2054
fix authorization error message
[ { "change_type": "MODIFY", "old_path": "dist/node/pusher.js", "new_path": "dist/node/pusher.js", "diff": "@@ -10255,7 +10255,7 @@ var ajax = function (context, query, authOptions, authRequestType, callback) {\nsuffix = url_store.buildLogSuffix('authenticationEndpoint');\nbreak;\ncase AuthRequestType...
JavaScript
MIT License
pusher/pusher-js
fix authorization error message
536,292
07.09.2022 17:14:26
-7,200
e155b15bbf54e6c9ada1aa9dfede84c04bea8770
Create UserPresence face to handle user presence events
[ { "change_type": "MODIFY", "old_path": "src/core/pusher.ts", "new_path": "src/core/pusher.ts", "diff": "@@ -21,6 +21,7 @@ import { Options } from './options';\nimport { Config, getConfig } from './config';\nimport StrategyOptions from './strategies/strategy_options';\nimport UserFacade from './user'...
JavaScript
MIT License
pusher/pusher-js
Create UserPresence face to handle user presence events
536,292
07.09.2022 17:47:07
-7,200
319cbb8cee6792d17e5d180ba63516db563b6b5c
Create SyntaxSugar concept This will help improve UX on the SDK. Instead of passing an Array with all the user online status events (online/offline), the customer will be able to just use 'online-status'
[ { "change_type": "MODIFY", "old_path": "src/core/user_presence.ts", "new_path": "src/core/user_presence.ts", "diff": "+import { type } from 'os';\n+import Logger from './logger';\nimport Pusher from './pusher';\nexport default class UserPresenceFacade {\n_pusher: Pusher\n_eventHandlers: Map<string, ...
JavaScript
MIT License
pusher/pusher-js
Create SyntaxSugar concept This will help improve UX on the SDK. Instead of passing an Array with all the user online status events (online/offline), the customer will be able to just use 'online-status'
536,292
07.09.2022 18:19:45
-7,200
9238308cb3d8d5ce6d7fa9508878487a80e26c07
Use EventsDispatcher In the previous commit, I was using a Map (string -> function) with all event handlers. Now, I updated it to use internal event handlers so we have more control and will make the debugging easier.
[ { "change_type": "MODIFY", "old_path": "src/core/user_presence.ts", "new_path": "src/core/user_presence.ts", "diff": "-import { type } from 'os';\nimport Logger from './logger';\nimport Pusher from './pusher';\n+import EventsDispatcher from './events/dispatcher';\n-export default class UserPresenceF...
JavaScript
MIT License
pusher/pusher-js
Use EventsDispatcher In the previous commit, I was using a Map (string -> function) with all event handlers. Now, I updated it to use internal event handlers so we have more control and will make the debugging easier.
536,292
07.09.2022 18:35:41
-7,200
39e760a804989d2620f5b025f977c868ba5ed79c
Rename handleUserPresenceEvent to handleEvent
[ { "change_type": "MODIFY", "old_path": "src/core/user_presence.ts", "new_path": "src/core/user_presence.ts", "diff": "@@ -54,12 +54,12 @@ export default class UserPresenceFacade extends EventsDispatcher {\nthis.pusher.connection.bind('message', event => {\nvar eventName = event.event;\nif (eventName...
JavaScript
MIT License
pusher/pusher-js
Rename handleUserPresenceEvent to handleEvent
536,292
07.09.2022 20:30:05
-7,200
8a6f3876cd4101b19b099296d15bfebba2c2be34
Not ignore a string event when it's not a syntax sugar
[ { "change_type": "MODIFY", "old_path": "src/core/user_presence.ts", "new_path": "src/core/user_presence.ts", "diff": "@@ -29,7 +29,7 @@ export default class UserPresenceFacade extends EventsDispatcher {\nif (syntaxSugarEvents !== undefined) {\nuserPresenceEvents = syntaxSugarEvents;\n} else {\n- Log...
JavaScript
MIT License
pusher/pusher-js
Not ignore a string event when it's not a syntax sugar
536,292
07.09.2022 20:32:24
-7,200
ae9c36f4b804e9340dfcc98f6a684bdb88a1c856
Remove an 'if' statement and use ||
[ { "change_type": "MODIFY", "old_path": "src/core/user_presence.ts", "new_path": "src/core/user_presence.ts", "diff": "@@ -26,11 +26,7 @@ export default class UserPresenceFacade extends EventsDispatcher {\nif (typeof events === 'string') {\nconst syntaxSugarEvents = this.syntaxSugars.get(events);\n- ...
JavaScript
MIT License
pusher/pusher-js
Remove an 'if' statement and use ||
536,292
08.09.2022 15:04:06
-7,200
ce399b5d60a89d70943ee6418bab2e93e241f360
Send the list of users with the same action to the client.
[ { "change_type": "MODIFY", "old_path": "src/core/user_presence.ts", "new_path": "src/core/user_presence.ts", "diff": "@@ -57,17 +57,7 @@ export default class UserPresenceFacade extends EventsDispatcher {\nprivate handleEvent(pusherEvent) {\npusherEvent.data.events.forEach(userPresenceEvent => {\n- u...
JavaScript
MIT License
pusher/pusher-js
Send the list of users with the same action to the client.
536,292
08.09.2022 16:24:39
-7,200
c418255093ac331d1f98454a1509dd520c74fcb6
Add test scenarios to the UserPresenceFacade
[ { "change_type": "ADD", "old_path": null, "new_path": "spec/javascripts/unit/core/user_presence_spec.js", "diff": "+var UserPresenceFacade = require(\"core/user_presence\").default;\n+\n+fdescribe(\"UserPresenceFacade\", function () {\n+ var connection;\n+ var pusher;\n+\n+ beforeEach(function() {\n...
JavaScript
MIT License
pusher/pusher-js
Add test scenarios to the UserPresenceFacade
536,292
08.09.2022 17:29:55
-7,200
7a666b49038940af642ea9e0b2da0a7b6dd4a3c3
Add test scenarios to handleEvent method
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/user_presence_spec.js", "new_path": "spec/javascripts/unit/core/user_presence_spec.js", "diff": "@@ -9,14 +9,40 @@ fdescribe(\"UserPresenceFacade\", function () {\npusher = jasmine.createSpy('pusher');\npusher.connection = connection...
JavaScript
MIT License
pusher/pusher-js
Add test scenarios to handleEvent method
536,292
08.09.2022 17:47:23
-7,200
67d1e5c15f90f3ebef2868ae32251691d5c61192
Remove spec focus from user presence test
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/user_presence_spec.js", "new_path": "spec/javascripts/unit/core/user_presence_spec.js", "diff": "var UserPresenceFacade = require(\"core/user_presence\").default;\n-fdescribe(\"UserPresenceFacade\", function () {\n+describe(\"UserPre...
JavaScript
MIT License
pusher/pusher-js
Remove spec focus from user presence test
536,292
09.09.2022 16:14:31
-7,200
57a6aaec445e4133ae834fe013734ec2117f9608
Remove array as parameter from the bind method It won't be possible to bind to multiple events in the same method. The interface will provide bind_global method to receive all the events.
[ { "change_type": "MODIFY", "old_path": "spec/javascripts/unit/core/user_presence_spec.js", "new_path": "spec/javascripts/unit/core/user_presence_spec.js", "diff": "var UserPresenceFacade = require(\"core/user_presence\").default;\n-describe(\"UserPresenceFacade\", function () {\n+fdescribe(\"UserPre...
JavaScript
MIT License
pusher/pusher-js
Remove array as parameter from the bind method It won't be possible to bind to multiple events in the same method. The interface will provide bind_global method to receive all the events.