chore: Update dependencies

This commit is contained in:
Maksim Eltyshev
2026-01-26 14:11:20 +01:00
parent 3b8ad26169
commit ee917c545c
7 changed files with 668 additions and 735 deletions
+387 -570
View File
File diff suppressed because it is too large Load Diff
+16 -8
View File
@@ -78,13 +78,21 @@
"^.+\\.(js|jsx)$": "babel-jest"
}
},
"overrides": {
"@diplodoc/transform": {
"lodash": "^4.17.23"
},
"react-mentions": {
"@babel/runtime": "^7.28.6"
}
},
"dependencies": {
"@ballerina/highlightjs-ballerina": "^1.0.1",
"@diplodoc/cut-extension": "^0.7.4",
"@diplodoc/transform": "^4.64.1",
"@gravity-ui/components": "^4.17.0",
"@gravity-ui/markdown-editor": "^15.27.2",
"@gravity-ui/uikit": "^7.29.0",
"@gravity-ui/components": "^4.18.0",
"@gravity-ui/markdown-editor": "^15.29.0",
"@gravity-ui/uikit": "^7.30.0",
"@juggle/resize-observer": "^3.4.0",
"@vitejs/plugin-react": "^4.7.0",
"browserslist-to-esbuild": "^2.1.1",
@@ -115,7 +123,7 @@
"highlightjs-zenscript": "^2.0.0",
"hightlightjs-papyrus": "^0.0.4",
"history": "^5.3.0",
"i18next": "^25.7.4",
"i18next": "^25.8.0",
"i18next-browser-languagedetector": "^8.2.0",
"initials": "^3.1.2",
"javascript-time-ago": "^2.5.12",
@@ -153,9 +161,9 @@
"redux-saga": "^1.4.2",
"reselect": "^4.1.8",
"sails.io.js": "^1.2.1",
"sass-embedded": "^1.97.2",
"sass-embedded": "^1.97.3",
"semantic-ui-react": "^2.1.5",
"socket.io-client": "^2.5.0",
"socket.io-client": "^4.8.3",
"validator": "^13.15.26",
"vite": "^6.4.1",
"vite-plugin-commonjs": "^0.10.4",
@@ -168,7 +176,7 @@
"@babel/preset-env": "^7.28.6",
"@cucumber/cucumber": "^11.3.0",
"@cucumber/pretty-formatter": "^1.0.1",
"@playwright/test": "^1.57.0",
"@playwright/test": "^1.58.0",
"babel-jest": "^29.7.0",
"babel-preset-airbnb": "^5.0.0",
"eslint": "^8.57.1",
@@ -180,7 +188,7 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^4.6.2",
"jest": "^29.7.0",
"playwright": "^1.57.0",
"playwright": "^1.58.0",
"prettier": "3.3.3"
}
}
@@ -1,5 +1,5 @@
diff --git a/node_modules/@gravity-ui/markdown-editor/build/esm/bundle/wysiwyg-preset.js b/node_modules/@gravity-ui/markdown-editor/build/esm/bundle/wysiwyg-preset.js
index 288d462..8851e98 100644
index dec01f0..a80b857 100644
--- a/node_modules/@gravity-ui/markdown-editor/build/esm/bundle/wysiwyg-preset.js
+++ b/node_modules/@gravity-ui/markdown-editor/build/esm/bundle/wysiwyg-preset.js
@@ -102,7 +102,6 @@ export const BundlePreset = (builder, opts) => {
+87
View File
@@ -0,0 +1,87 @@
diff --git a/node_modules/sails.io.js/sails.io.js b/node_modules/sails.io.js/sails.io.js
index 11694b5..bb5e594 100644
--- a/node_modules/sails.io.js/sails.io.js
+++ b/node_modules/sails.io.js/sails.io.js
@@ -138,6 +138,15 @@
CONNECTION_METADATA_PARAMS.platform + '=' + SDK_INFO.platform + '&' +
CONNECTION_METADATA_PARAMS.language + '=' + SDK_INFO.language;
+ var MANAGER_EVENT_NAMES = new Set([
+ 'error',
+ 'reconnect',
+ 'reconnect_attempt',
+ 'reconnect_error',
+ 'reconnect_failed',
+ 'ping'
+ ]);
+
@@ -668,6 +677,7 @@
// Okay to change global headers while socket is connected
if (option == 'headers') {return;}
Object.defineProperty(self, option, {
+ enumerable: true,
get: function() {
if (option == 'url') {
return _opts[option] || (self._raw && self._raw.io && self._raw.io.uri);
@@ -986,7 +996,7 @@
consolog('====================================');
});
- self.on('reconnecting', function(numAttempts) {
+ self.on('reconnect_attempt', function(numAttempts) {
consolog(
'\n'+
' Socket is trying to reconnect to '+(self.url ? self.url : 'Sails')+'...\n'+
@@ -1124,7 +1134,7 @@
// off to the self._raw for consumption
for (var evName in self.eventQueue) {
for (var i in self.eventQueue[evName]) {
- self._raw.on(evName, self.eventQueue[evName][i]);
+ self._getEventTarget(evName).on(evName, self.eventQueue[evName][i]);
}
}
@@ -1150,10 +1160,11 @@
* @return {SailsSocket}
*/
SailsSocket.prototype.on = function (evName, fn){
+ var target = this._getEventTarget(evName);
// Bind the event to the raw underlying socket if possible.
- if (this._raw) {
- this._raw.on(evName, fn);
+ if (target) {
+ target.on(evName, fn);
return this;
}
@@ -1176,10 +1187,11 @@
* @return {SailsSocket}
*/
SailsSocket.prototype.off = function (evName, fn){
+ var target = this._getEventTarget(evName);
// Bind the event to the raw underlying socket if possible.
- if (this._raw) {
- this._raw.off(evName, fn);
+ if (target) {
+ target.off(evName, fn);
return this;
}
@@ -1491,6 +1503,12 @@
throw new Error('`_request()` was a private API deprecated as of v0.11 of the sails.io.js client. Use `.request()` instead.');
};
+ SailsSocket.prototype._getEventTarget = function (evName) {
+ if (!this._raw) return null;
+
+ return MANAGER_EVENT_NAMES.has(evName) ? this._raw.io : this._raw;
+ };
+