vzcode 0.30.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -24,11 +24,10 @@
24
24
  href="https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css"
25
25
  rel="stylesheet"
26
26
  />
27
- <script type="module" crossorigin src="/assets/index-c3a6c525.js"></script>
28
- <link rel="stylesheet" href="/assets/index-836bdce7.css">
27
+ <script type="module" crossorigin src="/assets/index-29gn4hve.js"></script>
28
+ <link rel="stylesheet" crossorigin href="/assets/index-esdlTXtH.css">
29
29
  </head>
30
30
  <body>
31
31
  <div id="root"></div>
32
-
33
32
  </body>
34
33
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vzcode",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Multiplayer code editor system",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -54,7 +54,7 @@
54
54
  "@codemirror/state": "^6.3.1",
55
55
  "@codemirror/theme-one-dark": "^6.1.2",
56
56
  "@codemirror/view": "^6.22.0",
57
- "@lezer/highlight": "^1.1.6",
57
+ "@lezer/highlight": "^1.2.0",
58
58
  "@replit/codemirror-interact": "^6.3.0",
59
59
  "@teamwork/websocket-json-stream": "^2.0.0",
60
60
  "@typescript/vfs": "^1.5.0",
@@ -78,7 +78,7 @@
78
78
  "json0-ot-diff": "^1.1.2",
79
79
  "ngrok": "^4.3.3",
80
80
  "open": "^9.1.0",
81
- "openai": "^4.17.4",
81
+ "openai": "^4.19.0",
82
82
  "ot-json1": "^1.0.2",
83
83
  "react": "^18.2.0",
84
84
  "react-bootstrap": "^2.9.1",
@@ -91,11 +91,11 @@
91
91
  "devDependencies": {
92
92
  "@types/react": "^18.2.37",
93
93
  "@types/react-dom": "^18.2.15",
94
- "@vitejs/plugin-react": "^4.1.1",
95
- "prettier": "^3.0.3",
94
+ "@vitejs/plugin-react": "^4.2.0",
95
+ "prettier": "^3.1.0",
96
96
  "sass": "^1.69.5",
97
97
  "typescript": "^5.2.2",
98
- "vite": "^4.5.0",
98
+ "vite": "^5.0.0",
99
99
  "vitest": "^0.34.6"
100
100
  }
101
101
  }
@@ -195,7 +195,7 @@ onmessage = async ({ data }) => {
195
195
  linterRequest;
196
196
 
197
197
  const tsFileName = getTSFileName(fileName);
198
- let tsErrors = null;
198
+ let tsErrors = [];
199
199
  // Since we are also updating the server when we autocomplete we do not need to update
200
200
  if (isTS(tsFileName)) {
201
201
  setFile(tsFileName, fileContent);
@@ -1,5 +1,7 @@
1
1
  import OpenAI from 'openai';
2
- import { editOp, type, replaceOp } from 'ot-json1';
2
+ import json1 from 'ot-json1';
3
+
4
+ const { editOp, type, replaceOp } = json1;
3
5
 
4
6
  // Feature flag to slow down AI for development/testing
5
7
  const slowdown = false;