mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-08 22:48:20 -05:00
chore(release): engine.io-client@6.6.4
Diff: https://github.com/socketio/socket.io/compare/engine.io-client@6.6.3...engine.io-client@6.6.4
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
# History
|
# Changelog
|
||||||
|
|
||||||
| Version | Release date | Bundle size (UMD min+gzip) |
|
| Version | Release date | Bundle size (UMD min+gzip) |
|
||||||
|-------------------------------------------------------------------------------------------------------------|----------------|----------------------------|
|
|-------------------------------------------------------------------------------------------------------------|----------------|----------------------------|
|
||||||
|
| [6.6.4](#664-2025-12-23) | December 2025 | `8.7 KB` |
|
||||||
| [6.6.3](#663-2025-01-23) | January 2025 | `8.7 KB` |
|
| [6.6.3](#663-2025-01-23) | January 2025 | `8.7 KB` |
|
||||||
| [6.6.2](#662-2024-10-23) | October 2024 | `8.7 KB` |
|
| [6.6.2](#662-2024-10-23) | October 2024 | `8.7 KB` |
|
||||||
| [6.6.1](#661-2024-09-21) | September 2024 | `8.7 KB` |
|
| [6.6.1](#661-2024-09-21) | September 2024 | `8.7 KB` |
|
||||||
@@ -39,7 +40,24 @@
|
|||||||
| [4.1.1](#411-2021-02-02) | February 2021 | `9.1 KB` |
|
| [4.1.1](#411-2021-02-02) | February 2021 | `9.1 KB` |
|
||||||
| [4.1.0](#410-2021-01-14) | January 2021 | `9.1 KB` |
|
| [4.1.0](#410-2021-01-14) | January 2021 | `9.1 KB` |
|
||||||
|
|
||||||
# Release notes
|
|
||||||
|
## [6.6.4](https://github.com/socketio/socket.io/compare/engine.io-client@6.6.3...engine.io-client@6.6.4) (2025-12-23)
|
||||||
|
|
||||||
|
This release contains a bump of:
|
||||||
|
|
||||||
|
- `ws` from `~8.17.1` to `~8.18.3`
|
||||||
|
- `debug` from `~4.3.1` to `~4.4.1`
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* properly handle port option ([#5241](https://github.com/socketio/socket.io/issues/5241)) ([1da9cdd](https://github.com/socketio/socket.io/commit/1da9cddeab0bf5ce41890d156d73af8194cef656))
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
- [`ws@~8.18.3`](https://github.com/websockets/ws/releases/tag/8.18.3) ([diff](https://github.com/websockets/ws/compare/8.17.1...8.18.3))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [6.6.3](https://github.com/socketio/socket.io/compare/engine.io-client@6.6.2...engine.io-client@6.6.3) (2025-01-23)
|
## [6.6.3](https://github.com/socketio/socket.io/compare/engine.io-client@6.6.2...engine.io-client@6.6.3) (2025-01-23)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
172
packages/engine.io-client/dist/engine.io.js
vendored
172
packages/engine.io-client/dist/engine.io.js
vendored
@@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Engine.IO v6.6.3
|
* Engine.IO v6.6.4
|
||||||
* (c) 2014-2025 Guillermo Rauch
|
* (c) 2014-2025 Guillermo Rauch
|
||||||
* Released under the MIT License.
|
* Released under the MIT License.
|
||||||
*/
|
*/
|
||||||
@@ -35,6 +35,54 @@
|
|||||||
writable: !1
|
writable: !1
|
||||||
}), e;
|
}), e;
|
||||||
}
|
}
|
||||||
|
function _createForOfIteratorHelper(r, e) {
|
||||||
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
||||||
|
if (!t) {
|
||||||
|
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
||||||
|
t && (r = t);
|
||||||
|
var n = 0,
|
||||||
|
F = function () {};
|
||||||
|
return {
|
||||||
|
s: F,
|
||||||
|
n: function () {
|
||||||
|
return n >= r.length ? {
|
||||||
|
done: !0
|
||||||
|
} : {
|
||||||
|
done: !1,
|
||||||
|
value: r[n++]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
e: function (r) {
|
||||||
|
throw r;
|
||||||
|
},
|
||||||
|
f: F
|
||||||
|
};
|
||||||
|
}
|
||||||
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
|
}
|
||||||
|
var o,
|
||||||
|
a = !0,
|
||||||
|
u = !1;
|
||||||
|
return {
|
||||||
|
s: function () {
|
||||||
|
t = t.call(r);
|
||||||
|
},
|
||||||
|
n: function () {
|
||||||
|
var r = t.next();
|
||||||
|
return a = r.done, r;
|
||||||
|
},
|
||||||
|
e: function (r) {
|
||||||
|
u = !0, o = r;
|
||||||
|
},
|
||||||
|
f: function () {
|
||||||
|
try {
|
||||||
|
a || null == t.return || t.return();
|
||||||
|
} finally {
|
||||||
|
if (u) throw o;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
function _extends() {
|
function _extends() {
|
||||||
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
||||||
for (var e = 1; e < arguments.length; e++) {
|
for (var e = 1; e < arguments.length; e++) {
|
||||||
@@ -1049,21 +1097,65 @@
|
|||||||
createDebug.namespaces = namespaces;
|
createDebug.namespaces = namespaces;
|
||||||
createDebug.names = [];
|
createDebug.names = [];
|
||||||
createDebug.skips = [];
|
createDebug.skips = [];
|
||||||
var i;
|
var split = (typeof namespaces === 'string' ? namespaces : '').trim().replace(/\s+/g, ',').split(',').filter(Boolean);
|
||||||
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
var _iterator = _createForOfIteratorHelper(split),
|
||||||
var len = split.length;
|
_step;
|
||||||
for (i = 0; i < len; i++) {
|
try {
|
||||||
if (!split[i]) {
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
||||||
// ignore empty strings
|
var ns = _step.value;
|
||||||
continue;
|
if (ns[0] === '-') {
|
||||||
|
createDebug.skips.push(ns.slice(1));
|
||||||
|
} else {
|
||||||
|
createDebug.names.push(ns);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
namespaces = split[i].replace(/\*/g, '.*?');
|
} catch (err) {
|
||||||
if (namespaces[0] === '-') {
|
_iterator.e(err);
|
||||||
createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
|
} finally {
|
||||||
|
_iterator.f();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if the given string matches a namespace template, honoring
|
||||||
|
* asterisks as wildcards.
|
||||||
|
*
|
||||||
|
* @param {String} search
|
||||||
|
* @param {String} template
|
||||||
|
* @return {Boolean}
|
||||||
|
*/
|
||||||
|
function matchesTemplate(search, template) {
|
||||||
|
var searchIndex = 0;
|
||||||
|
var templateIndex = 0;
|
||||||
|
var starIndex = -1;
|
||||||
|
var matchIndex = 0;
|
||||||
|
while (searchIndex < search.length) {
|
||||||
|
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
|
||||||
|
// Match character or proceed with wildcard
|
||||||
|
if (template[templateIndex] === '*') {
|
||||||
|
starIndex = templateIndex;
|
||||||
|
matchIndex = searchIndex;
|
||||||
|
templateIndex++; // Skip the '*'
|
||||||
|
} else {
|
||||||
|
searchIndex++;
|
||||||
|
templateIndex++;
|
||||||
|
}
|
||||||
|
} else if (starIndex !== -1) {
|
||||||
|
// eslint-disable-line no-negated-condition
|
||||||
|
// Backtrack to the last '*' and try to match more characters
|
||||||
|
templateIndex = starIndex + 1;
|
||||||
|
matchIndex++;
|
||||||
|
searchIndex = matchIndex;
|
||||||
} else {
|
} else {
|
||||||
createDebug.names.push(new RegExp('^' + namespaces + '$'));
|
return false; // No match
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Handle trailing '*' in template
|
||||||
|
while (templateIndex < template.length && template[templateIndex] === '*') {
|
||||||
|
templateIndex++;
|
||||||
|
}
|
||||||
|
return templateIndex === template.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1073,7 +1165,7 @@
|
|||||||
* @api public
|
* @api public
|
||||||
*/
|
*/
|
||||||
function disable() {
|
function disable() {
|
||||||
var namespaces = [].concat(_toConsumableArray(createDebug.names.map(toNamespace)), _toConsumableArray(createDebug.skips.map(toNamespace).map(function (namespace) {
|
var namespaces = [].concat(_toConsumableArray(createDebug.names), _toConsumableArray(createDebug.skips.map(function (namespace) {
|
||||||
return '-' + namespace;
|
return '-' + namespace;
|
||||||
}))).join(',');
|
}))).join(',');
|
||||||
createDebug.enable('');
|
createDebug.enable('');
|
||||||
@@ -1088,35 +1180,37 @@
|
|||||||
* @api public
|
* @api public
|
||||||
*/
|
*/
|
||||||
function enabled(name) {
|
function enabled(name) {
|
||||||
if (name[name.length - 1] === '*') {
|
var _iterator2 = _createForOfIteratorHelper(createDebug.skips),
|
||||||
return true;
|
_step2;
|
||||||
}
|
try {
|
||||||
var i;
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
||||||
var len;
|
var skip = _step2.value;
|
||||||
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
if (matchesTemplate(name, skip)) {
|
||||||
if (createDebug.skips[i].test(name)) {
|
return false;
|
||||||
return false;
|
}
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
_iterator2.e(err);
|
||||||
|
} finally {
|
||||||
|
_iterator2.f();
|
||||||
}
|
}
|
||||||
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
var _iterator3 = _createForOfIteratorHelper(createDebug.names),
|
||||||
if (createDebug.names[i].test(name)) {
|
_step3;
|
||||||
return true;
|
try {
|
||||||
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
||||||
|
var ns = _step3.value;
|
||||||
|
if (matchesTemplate(name, ns)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
_iterator3.e(err);
|
||||||
|
} finally {
|
||||||
|
_iterator3.f();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert regexp to namespace
|
|
||||||
*
|
|
||||||
* @param {RegExp} regxep
|
|
||||||
* @return {String} namespace
|
|
||||||
* @api private
|
|
||||||
*/
|
|
||||||
function toNamespace(regexp) {
|
|
||||||
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, '*');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Coerce `val`.
|
* Coerce `val`.
|
||||||
*
|
*
|
||||||
@@ -1192,15 +1286,17 @@
|
|||||||
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
var m;
|
||||||
|
|
||||||
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
||||||
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
||||||
|
// eslint-disable-next-line no-return-assign
|
||||||
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
|
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
|
||||||
// Is firebug? http://stackoverflow.com/a/398120/376773
|
// Is firebug? http://stackoverflow.com/a/398120/376773
|
||||||
typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) ||
|
typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) ||
|
||||||
// Is firefox >= v31?
|
// Is firefox >= v31?
|
||||||
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
||||||
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 ||
|
typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 ||
|
||||||
// Double check webkit in userAgent just in case we are in a worker
|
// Double check webkit in userAgent just in case we are in a worker
|
||||||
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
||||||
}
|
}
|
||||||
@@ -1276,7 +1372,7 @@
|
|||||||
function load() {
|
function load() {
|
||||||
var r;
|
var r;
|
||||||
try {
|
try {
|
||||||
r = exports.storage.getItem('debug');
|
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Swallow
|
// Swallow
|
||||||
// XXX (@Qix-) should we be logging these?
|
// XXX (@Qix-) should we be logging these?
|
||||||
@@ -1457,7 +1553,7 @@
|
|||||||
return hostname.indexOf(":") === -1 ? hostname : "[" + hostname + "]";
|
return hostname.indexOf(":") === -1 ? hostname : "[" + hostname + "]";
|
||||||
};
|
};
|
||||||
_proto._port = function _port() {
|
_proto._port = function _port() {
|
||||||
if (this.opts.port && (this.opts.secure && Number(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80)) {
|
if (this.opts.port && (this.opts.secure && Number(this.opts.port) !== 443 || !this.opts.secure && Number(this.opts.port) !== 80)) {
|
||||||
return ":" + this.opts.port;
|
return ":" + this.opts.port;
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
|||||||
"name": "engine.io-client",
|
"name": "engine.io-client",
|
||||||
"description": "Client for the realtime Engine",
|
"description": "Client for the realtime Engine",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version": "6.6.3",
|
"version": "6.6.4",
|
||||||
"main": "./build/cjs/index.js",
|
"main": "./build/cjs/index.js",
|
||||||
"module": "./build/esm/index.js",
|
"module": "./build/esm/index.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
Reference in New Issue
Block a user