From c0673c3aff40f3456076d5b4326bf07973ae8aa1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dami=C3=A1n=20Silvani?= <munshkr@gmail.com>
Date: Sat, 13 Jan 2024 17:09:12 -0300
Subject: [PATCH] feat(web): Upgrade yjs and related packages

---
 package-lock.json         | 98 ++++++++++++++++++++-------------------
 packages/web/package.json | 10 ++--
 2 files changed, 56 insertions(+), 52 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index ce607d28..62b03a41 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9374,9 +9374,9 @@
       }
     },
     "node_modules/lib0": {
-      "version": "0.2.73",
-      "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.73.tgz",
-      "integrity": "sha512-aJJIElCLWnHMcYZPtsM07QoSfHwpxCy4VUzBYGXFYEmh/h2QS5uZNbCCfL0CqnkOE30b7Tp9DVfjXag+3qzZjQ==",
+      "version": "0.2.88",
+      "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.88.tgz",
+      "integrity": "sha512-KyroiEvCeZcZEMx5Ys+b4u4eEBbA1ch7XUaBhYpwa/nPMrzTjUhI4RfcytmQfYoTBPcdyx+FX6WFNIoNuJzJfQ==",
       "dependencies": {
         "isomorphic.js": "^0.2.4"
       },
@@ -9385,7 +9385,7 @@
         "0serve": "bin/0serve.js"
       },
       "engines": {
-        "node": ">=14"
+        "node": ">=16"
       },
       "funding": {
         "type": "GitHub Sponsors ❤",
@@ -16193,11 +16193,15 @@
       }
     },
     "node_modules/y-indexeddb": {
-      "version": "9.0.9",
-      "resolved": "https://registry.npmjs.org/y-indexeddb/-/y-indexeddb-9.0.9.tgz",
-      "integrity": "sha512-GcJbiJa2eD5hankj46Hea9z4hbDnDjvh1fT62E5SpZRsv8GcEemw34l1hwI2eknGcv5Ih9JfusT37JLx9q3LFg==",
+      "version": "9.0.12",
+      "resolved": "https://registry.npmjs.org/y-indexeddb/-/y-indexeddb-9.0.12.tgz",
+      "integrity": "sha512-9oCFRSPPzBK7/w5vOkJBaVCQZKHXB/v6SIT+WYhnJxlEC61juqG0hBrAf+y3gmSMLFLwICNH9nQ53uscuse6Hg==",
       "dependencies": {
-        "lib0": "^0.2.35"
+        "lib0": "^0.2.74"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=8.0.0"
       },
       "funding": {
         "type": "GitHub Sponsors ❤",
@@ -16225,25 +16229,32 @@
       }
     },
     "node_modules/y-protocols": {
-      "version": "1.0.5",
-      "resolved": "https://registry.npmjs.org/y-protocols/-/y-protocols-1.0.5.tgz",
-      "integrity": "sha512-Wil92b7cGk712lRHDqS4T90IczF6RkcvCwAD0A2OPg+adKmOe+nOiT/N2hvpQIWS3zfjmtL4CPaH5sIW1Hkm/A==",
+      "version": "1.0.6",
+      "resolved": "https://registry.npmjs.org/y-protocols/-/y-protocols-1.0.6.tgz",
+      "integrity": "sha512-vHRF2L6iT3rwj1jub/K5tYcTT/mEYDUppgNPXwp8fmLpui9f7Yeq3OEtTLVF012j39QnV+KEQpNqoN7CWU7Y9Q==",
       "dependencies": {
-        "lib0": "^0.2.42"
+        "lib0": "^0.2.85"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=8.0.0"
       },
       "funding": {
         "type": "GitHub Sponsors ❤",
         "url": "https://github.com/sponsors/dmonad"
+      },
+      "peerDependencies": {
+        "yjs": "^13.0.0"
       }
     },
     "node_modules/y-webrtc": {
-      "version": "10.2.5",
-      "resolved": "https://registry.npmjs.org/y-webrtc/-/y-webrtc-10.2.5.tgz",
-      "integrity": "sha512-ZyBNvTI5L28sQ2PQI0T/JvyWgvuTq05L21vGkIlcvNLNSJqAaLCBJRe3FHEqXoaogqWmRcEAKGfII4ErNXMnNw==",
+      "version": "10.3.0",
+      "resolved": "https://registry.npmjs.org/y-webrtc/-/y-webrtc-10.3.0.tgz",
+      "integrity": "sha512-KalJr7dCgUgyVFxoG3CQYbpS0O2qybegD0vI4bYnYHI0MOwoVbucED3RZ5f2o1a5HZb1qEssUKS0H/Upc6p1lA==",
       "dependencies": {
         "lib0": "^0.2.42",
         "simple-peer": "^9.11.0",
-        "y-protocols": "^1.0.5"
+        "y-protocols": "^1.0.6"
       },
       "bin": {
         "y-webrtc-signaling": "bin/server.js"
@@ -16256,34 +16267,23 @@
         "url": "https://github.com/sponsors/dmonad"
       },
       "optionalDependencies": {
-        "ws": "^7.2.0"
-      }
-    },
-    "node_modules/y-webrtc/node_modules/utf-8-validate": {
-      "version": "5.0.10",
-      "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz",
-      "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==",
-      "hasInstallScript": true,
-      "optional": true,
-      "peer": true,
-      "dependencies": {
-        "node-gyp-build": "^4.3.0"
+        "ws": "^8.14.2"
       },
-      "engines": {
-        "node": ">=6.14.2"
+      "peerDependencies": {
+        "yjs": "^13.6.8"
       }
     },
     "node_modules/y-webrtc/node_modules/ws": {
-      "version": "7.5.9",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
-      "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+      "version": "8.16.0",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz",
+      "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==",
       "optional": true,
       "engines": {
-        "node": ">=8.3.0"
+        "node": ">=10.0.0"
       },
       "peerDependencies": {
         "bufferutil": "^4.0.1",
-        "utf-8-validate": "^5.0.2"
+        "utf-8-validate": ">=5.0.2"
       },
       "peerDependenciesMeta": {
         "bufferutil": {
@@ -16295,9 +16295,9 @@
       }
     },
     "node_modules/y-websocket": {
-      "version": "1.5.0",
-      "resolved": "https://registry.npmjs.org/y-websocket/-/y-websocket-1.5.0.tgz",
-      "integrity": "sha512-A8AO6XtnQlYwWFytWdkDCeXg4l8ghRTIw5h2YUgUYDmEC9ugWGIwYNW80yadhSFAF7CvuWTEkQNEpevnH6EiZw==",
+      "version": "1.5.1",
+      "resolved": "https://registry.npmjs.org/y-websocket/-/y-websocket-1.5.1.tgz",
+      "integrity": "sha512-fi7G9RXzNQpW9S59DA0dgkdNBMF0hyaUGpXkRXiyUH2UIEEcQ9cv6gxf45lDzdmXgBtvw6Sk0DNuzKWmJIHimg==",
       "dependencies": {
         "lib0": "^0.2.52",
         "lodash.debounce": "^4.0.8",
@@ -16307,6 +16307,10 @@
         "y-websocket": "bin/server.js",
         "y-websocket-server": "bin/server.js"
       },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=8.0.0"
+      },
       "funding": {
         "type": "GitHub Sponsors ❤",
         "url": "https://github.com/sponsors/dmonad"
@@ -16428,11 +16432,11 @@
       }
     },
     "node_modules/yjs": {
-      "version": "13.5.51",
-      "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.5.51.tgz",
-      "integrity": "sha512-F1Nb3z3TdandD80IAeQqgqy/2n9AhDLcXoBhZvCUX1dNVe0ef7fIwi6MjSYaGAYF2Ev8VcLcsGnmuGGOl7AWbw==",
+      "version": "13.6.10",
+      "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.6.10.tgz",
+      "integrity": "sha512-1JcyQek1vaMyrDm7Fqfa+pvHg/DURSbVo4VmeN7wjnTKB/lZrfIPhdCj7d8sboK6zLfRBJXegTjc9JlaDd8/Zw==",
       "dependencies": {
-        "lib0": "^0.2.72"
+        "lib0": "^0.2.86"
       },
       "engines": {
         "node": ">=16.0.0",
@@ -16831,11 +16835,11 @@
         "vite": "^4.2.0",
         "vite-plugin-node-polyfills": "^0.7.0",
         "y-codemirror.next": "github:munshkr/y-codemirror.next#dee71ac8d65bc640db60a188b916d1a0147a9439",
-        "y-indexeddb": "^9.0.9",
-        "y-protocols": "^1.0.5",
-        "y-webrtc": "^10.2.5",
-        "y-websocket": "^1.5.0",
-        "yjs": "^13.5.51"
+        "y-indexeddb": "^9.0.12",
+        "y-protocols": "^1.0.6",
+        "y-webrtc": "^10.3.0",
+        "y-websocket": "^1.5.1",
+        "yjs": "^13.6.10"
       }
     },
     "packages/web/node_modules/commander": {
diff --git a/packages/web/package.json b/packages/web/package.json
index 5c890114..856ecb53 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -83,10 +83,10 @@
     "vite": "^4.2.0",
     "vite-plugin-node-polyfills": "^0.7.0",
     "y-codemirror.next": "github:munshkr/y-codemirror.next#dee71ac8d65bc640db60a188b916d1a0147a9439",
-    "y-indexeddb": "^9.0.9",
-    "y-protocols": "^1.0.5",
-    "y-webrtc": "^10.2.5",
-    "y-websocket": "^1.5.0",
-    "yjs": "^13.5.51"
+    "y-indexeddb": "^9.0.12",
+    "y-protocols": "^1.0.6",
+    "y-webrtc": "^10.3.0",
+    "y-websocket": "^1.5.1",
+    "yjs": "^13.6.10"
   }
 }