Skip to content

Commit

Permalink
[chore] Release 1.7.2 (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne authored Oct 23, 2016
1 parent 1b86756 commit 5824a58
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 24 deletions.
10 changes: 10 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@

1.7.2 / 2016-10-24
===================

* [fix] Set accept header to */* to support react app proxy (#508)
* [fix] remove a workaround for ios (#465)
* [fix] onPacket now emits data on 'closing' state as well (#484)
* [fix] Obfuscate `ActiveXObject` occurrences (#509)
* [docs] Add missing `onlyBinaryUpgrades` option in the docs (#510)
* [chore] Add Github issue and PR templates (#511)

1.7.1 / 2016-10-20
===================

Expand Down
30 changes: 8 additions & 22 deletions engine.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ return /******/ (function(modules) { // webpackBootstrap
*/

Socket.prototype.onPacket = function (packet) {
if ('opening' === this.readyState || 'open' === this.readyState) {
if ('opening' === this.readyState || 'open' === this.readyState || 'closing' === this.readyState) {
debug('socket receive: type "%s", data "%s"', packet.type, packet.data);

this.emit('packet', packet);
Expand Down Expand Up @@ -869,13 +869,10 @@ return /******/ (function(modules) { // webpackBootstrap
/* 4 */
/***/ function(module, exports, __webpack_require__) {

'use strict';
/* WEBPACK VAR INJECTION */(function(global) {'use strict';

// browser shim for xmlhttprequest module

// Indicate to eslint that ActiveXObject is global
/* global ActiveXObject */

var hasCORS = __webpack_require__(5);

module.exports = function (opts) {
Expand Down Expand Up @@ -907,10 +904,11 @@ return /******/ (function(modules) { // webpackBootstrap

if (!xdomain) {
try {
return new ActiveXObject('Microsoft.XMLHTTP');
return new global[['Active'].concat('Object').join('X')]('Microsoft.XMLHTTP');
} catch (e) {}
}
};
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ },
/* 5 */
Expand Down Expand Up @@ -1161,6 +1159,10 @@ return /******/ (function(modules) { // webpackBootstrap
} catch (e) {}
}

try {
xhr.setRequestHeader('Accept', '*/*');
} catch (e) {}

// ie6 check
if ('withCredentials' in xhr) {
xhr.withCredentials = true;
Expand Down Expand Up @@ -4172,22 +4174,6 @@ return /******/ (function(modules) { // webpackBootstrap
};
};

/**
* Override `onData` to use a timer on iOS.
* See: https://gist.github.com/mloughran/2052006
*
* @api private
*/

if ('undefined' !== typeof navigator && /iPad|iPhone|iPod/i.test(navigator.userAgent)) {
WS.prototype.onData = function (data) {
var self = this;
setTimeout(function () {
Transport.prototype.onData.call(self, data);
}, 0);
};
}

/**
* Writes data to socket.
*
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "engine.io-client",
"description": "Client for the realtime Engine",
"license": "MIT",
"version": "1.7.1",
"version": "1.7.2",
"homepage": "https://github.com/socketio/engine.io-client",
"contributors": [
{
Expand Down Expand Up @@ -47,7 +47,7 @@
"derequire": "1.2.0",
"eslint-config-standard": "4.4.0",
"eslint-plugin-standard": "1.3.1",
"engine.io": "1.7.1",
"engine.io": "1.7.2",
"expect.js": "0.2.0",
"express": "3.4.8",
"gulp": "3.9.0",
Expand Down

0 comments on commit 5824a58

Please sign in to comment.