Skip to content

Commit

Permalink
Prepare release 5.1.0
Browse files Browse the repository at this point in the history
- update changelog
- add built bundles
- update versions in README
- bump package.json and package-lock.json version
  • Loading branch information
James Lees committed Feb 11, 2020
1 parent 3e49245 commit 954d409
Show file tree
Hide file tree
Showing 9 changed files with 585 additions and 485 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 5.1.0 (2020-02-11)

[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

## 5.0.3 (2019-11-18)

[NEW] Log a warning when there is an auth error
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const Pusher = require('pusher-js');
#### CDN

```html
<script src="https://js.pusher.com/5.0/pusher.min.js"></script>
<script src="https://js.pusher.com/5.1/pusher.min.js"></script>
```

You can also use [cdnjs.com](https://cdnjs.com/libraries/pusher) if you prefer
Expand Down Expand Up @@ -129,7 +129,7 @@ Notes:
You can import the worker script (`pusher.worker.js`, not `pusher.js`) from the CDN:

```javascript
importScripts('https://js.pusher.com/5.0/pusher.worker.min.js');
importScripts('https://js.pusher.com/5.1/pusher.worker.min.js');
```

### Node.js
Expand Down Expand Up @@ -552,17 +552,17 @@ First, clone this repository and run `npm install && git submodule init && git s

In the `dist/web` folder, you should see the files you need: `pusher.js`, `pusher.min.js`, `json2.js`, `json.min.js`, `sockjs.js` and `sockjs.min.js`. `pusher.js` should be built referencing your URLs as the dependency hosts.

First, make sure you expose all files from the `dist` directory. They need to be in a directory with named after the version number. For example, if you're hosting version 5.0.3 under `http://example.com/pusher-js` (and https for SSL), files should be accessible under following URL's:
First, make sure you expose all files from the `dist` directory. They need to be in a directory with named after the version number. For example, if you're hosting version 5.1.0 under `http://example.com/pusher-js` (and https for SSL), files should be accessible under following URL's:

http://example.com/pusher-js/5.0.3/pusher.js
http://example.com/pusher-js/5.0.3/json2.js
http://example.com/pusher-js/5.0.3/sockjs.js
http://example.com/pusher-js/5.1.0/pusher.js
http://example.com/pusher-js/5.1.0/json2.js
http://example.com/pusher-js/5.1.0/sockjs.js

Minified files should have `.min` in their names, as in the `dist/web` directory:

http://example.com/pusher-js/5.0.3/pusher.min.js
http://example.com/pusher-js/5.0.3/json2.min.js
http://example.com/pusher-js/5.0.3/sockjs.min.js
http://example.com/pusher-js/5.1.0/pusher.min.js
http://example.com/pusher-js/5.1.0/json2.min.js
http://example.com/pusher-js/5.1.0/sockjs.min.js

## SockJS compatibility

Expand Down
4 changes: 2 additions & 2 deletions dist/react-native/pusher.js

Large diffs are not rendered by default.

0 comments on commit 954d409

Please sign in to comment.