@depup/vite 8.0.8-depup.0 → 8.1.5-depup.1

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/LICENSE.md CHANGED
@@ -369,6 +369,34 @@ Repository: https://github.com/vitest-dev/vitest
369
369
 
370
370
  ---------------------------------------
371
371
 
372
+ ## @voidzero-dev/vite-task-client
373
+ License: MIT
374
+ Repository: https://github.com/voidzero-dev/vite-task
375
+
376
+ > MIT License
377
+ >
378
+ > Copyright (c) 2026-present, VoidZero Inc.
379
+ >
380
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
381
+ > of this software and associated documentation files (the "Software"), to deal
382
+ > in the Software without restriction, including without limitation the rights
383
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
384
+ > copies of the Software, and to permit persons to whom the Software is
385
+ > furnished to do so, subject to the following conditions:
386
+ >
387
+ > The above copyright notice and this permission notice shall be included in all
388
+ > copies or substantial portions of the Software.
389
+ >
390
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
391
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
392
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
393
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
394
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
395
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
396
+ > SOFTWARE.
397
+
398
+ ---------------------------------------
399
+
372
400
  ## anymatch
373
401
  License: ISC
374
402
  By: Elan Shanker
@@ -962,6 +990,35 @@ Repository: https://github.com/follow-redirects/follow-redirects
962
990
 
963
991
  ---------------------------------------
964
992
 
993
+ ## fresh-import
994
+ License: MIT
995
+ By: sapphi-red
996
+ Repository: https://github.com/sapphi-red/fresh-import
997
+
998
+ > MIT License
999
+ >
1000
+ > Copyright (c) 2026 sapphi-red
1001
+ >
1002
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
1003
+ > of this software and associated documentation files (the "Software"), to deal
1004
+ > in the Software without restriction, including without limitation the rights
1005
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1006
+ > copies of the Software, and to permit persons to whom the Software is
1007
+ > furnished to do so, subject to the following conditions:
1008
+ >
1009
+ > The above copyright notice and this permission notice shall be included in all
1010
+ > copies or substantial portions of the Software.
1011
+ >
1012
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1013
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1014
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1015
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1016
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1017
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1018
+ > SOFTWARE.
1019
+
1020
+ ---------------------------------------
1021
+
965
1022
  ## generic-names
966
1023
  License: MIT
967
1024
  By: Alexey Litvinov
@@ -1217,7 +1274,7 @@ Repository: https://github.com/lydell/js-tokens
1217
1274
  ## launch-editor, launch-editor-middleware
1218
1275
  License: MIT
1219
1276
  By: Evan You
1220
- Repositories: https://github.com/yyx990803/launch-editor, https://github.com/yyx990803/launch-editor
1277
+ Repositories: https://github.com/vitejs/launch-editor, https://github.com/vitejs/launch-editor
1221
1278
 
1222
1279
  > The MIT License (MIT)
1223
1280
  >
@@ -1549,7 +1606,7 @@ Repository: https://github.com/jshttp/on-finished
1549
1606
 
1550
1607
  ## parse5
1551
1608
  License: MIT
1552
- By: Ivan Nikulin, https://github.com/inikulin/parse5/graphs/contributors
1609
+ By: Ivan Nikulin, James Garbutt, Felix Boehm, Titus
1553
1610
  Repository: https://github.com/inikulin/parse5
1554
1611
 
1555
1612
  > Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)
package/README.md CHANGED
@@ -13,17 +13,18 @@ npm install @depup/vite
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [vite](https://www.npmjs.com/package/vite) @ 8.0.8 |
17
- | Processed | 2026-04-09 |
16
+ | Original | [vite](https://www.npmjs.com/package/vite) @ 8.1.5 |
17
+ | Processed | 2026-07-26 |
18
18
  | Smoke test | failed |
19
- | Deps updated | 2 |
19
+ | Deps updated | 3 |
20
20
 
21
21
  ## Dependency Changes
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
- | postcss | ^8.5.8 | ^8.5.9 |
26
- | tinyglobby | ^0.2.15 | ^0.2.16 |
25
+ | lightningcss | ^1.32.0 | ^1.33.0 |
26
+ | postcss | ^8.5.17 | ^8.5.23 |
27
+ | rolldown | ~1.1.5 | ^1.2.0 |
27
28
 
28
29
  ---
29
30
 
package/bin/openChrome.js CHANGED
@@ -3,7 +3,7 @@ Copyright (c) 2015-present, Facebook, Inc.
3
3
 
4
4
  This source code is licensed under the MIT license found in the
5
5
  LICENSE file at
6
- https://github.com/facebook/create-react-app/blob/main/LICENSE
6
+ https://github.com/react/create-react-app/blob/main/LICENSE
7
7
  */
8
8
 
9
9
  /* global Application */
package/changes.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "bumped": {
3
+ "lightningcss": {
4
+ "from": "^1.32.0",
5
+ "to": "^1.33.0"
6
+ },
3
7
  "postcss": {
4
- "from": "^8.5.8",
5
- "to": "^8.5.9"
8
+ "from": "^8.5.17",
9
+ "to": "^8.5.23"
6
10
  },
7
- "tinyglobby": {
8
- "from": "^0.2.15",
9
- "to": "^0.2.16"
11
+ "rolldown": {
12
+ "from": "~1.1.5",
13
+ "to": "^1.2.0"
10
14
  }
11
15
  },
12
- "timestamp": "2026-04-09T04:52:22.740Z",
13
- "totalUpdated": 2
16
+ "timestamp": "2026-07-26T01:06:47.293Z",
17
+ "totalUpdated": 3
14
18
  }
package/client.d.ts CHANGED
@@ -204,6 +204,9 @@ declare module '*.wasm?init' {
204
204
  export default initWasm
205
205
  }
206
206
 
207
+ // wasm (ESM integration)
208
+ declare module '*.wasm' {}
209
+
207
210
  // web worker
208
211
  declare module '*?worker' {
209
212
  const workerConstructor: {
@@ -1,5 +1,14 @@
1
1
  import "@vite/env";
2
- //#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
2
+ //#region ../../node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/non-secure/index.js
3
+ let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
4
+ let nanoid = (size = 21) => {
5
+ let id = "";
6
+ let i = size | 0;
7
+ while (i-- > 0) id += urlAlphabet[Math.random() * 64 | 0];
8
+ return id;
9
+ };
10
+ //#endregion
11
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
3
12
  function _typeof(o) {
4
13
  "@babel/helpers - typeof";
5
14
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -9,7 +18,7 @@ function _typeof(o) {
9
18
  }, _typeof(o);
10
19
  }
11
20
  //#endregion
12
- //#region \0@oxc-project+runtime@0.124.0/helpers/toPrimitive.js
21
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
13
22
  function toPrimitive(t, r) {
14
23
  if ("object" != _typeof(t) || !t) return t;
15
24
  var e = t[Symbol.toPrimitive];
@@ -21,13 +30,13 @@ function toPrimitive(t, r) {
21
30
  return ("string" === r ? String : Number)(t);
22
31
  }
23
32
  //#endregion
24
- //#region \0@oxc-project+runtime@0.124.0/helpers/toPropertyKey.js
33
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
25
34
  function toPropertyKey(t) {
26
35
  var i = toPrimitive(t, "string");
27
36
  return "symbol" == _typeof(i) ? i : i + "";
28
37
  }
29
38
  //#endregion
30
- //#region \0@oxc-project+runtime@0.124.0/helpers/defineProperty.js
39
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
31
40
  function _defineProperty(e, r, t) {
32
41
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
33
42
  value: t,
@@ -220,15 +229,6 @@ var HMRClient = class {
220
229
  }
221
230
  };
222
231
  //#endregion
223
- //#region ../../node_modules/.pnpm/nanoid@5.1.7/node_modules/nanoid/non-secure/index.js
224
- let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
225
- let nanoid = (size = 21) => {
226
- let id = "";
227
- let i = size | 0;
228
- while (i--) id += urlAlphabet[Math.random() * 64 | 0];
229
- return id;
230
- };
231
- //#endregion
232
232
  //#region src/shared/constants.ts
233
233
  let SOURCEMAPPING_URL = "sourceMa";
234
234
  SOURCEMAPPING_URL += "ppingURL";
@@ -381,16 +381,22 @@ const normalizeModuleRunnerTransport = (transport) => {
381
381
  async send(data) {
382
382
  if (!invokeableTransport.send) return;
383
383
  if (!isConnected) if (connectingPromise) await connectingPromise;
384
- else throw new Error("send was called before connect");
384
+ else throw new SendBeforeConnectError("send was called before connect");
385
385
  await invokeableTransport.send(data);
386
386
  },
387
387
  async invoke(name, data) {
388
388
  if (!isConnected) if (connectingPromise) await connectingPromise;
389
- else throw new Error("invoke was called before connect");
389
+ else throw new SendBeforeConnectError("invoke was called before connect");
390
390
  return invokeableTransport.invoke(name, data);
391
391
  }
392
392
  };
393
393
  };
394
+ var SendBeforeConnectError = class extends Error {
395
+ constructor(message) {
396
+ super(message);
397
+ this.name = "SendBeforeConnectError";
398
+ }
399
+ };
394
400
  const createWebSocketModuleRunnerTransport = (options) => {
395
401
  const pingInterval = options.pingInterval ?? 3e4;
396
402
  let ws;
@@ -398,7 +404,7 @@ const createWebSocketModuleRunnerTransport = (options) => {
398
404
  return {
399
405
  async connect({ onMessage, onDisconnection }) {
400
406
  const socket = options.createConnection();
401
- socket.addEventListener("message", async ({ data }) => {
407
+ socket.addEventListener("message", ({ data }) => {
402
408
  onMessage(JSON.parse(data));
403
409
  });
404
410
  let isOpened = socket.readyState === socket.OPEN;
@@ -407,7 +413,7 @@ const createWebSocketModuleRunnerTransport = (options) => {
407
413
  isOpened = true;
408
414
  resolve();
409
415
  }, { once: true });
410
- socket.addEventListener("close", async () => {
416
+ socket.addEventListener("close", () => {
411
417
  if (!isOpened) {
412
418
  reject(/* @__PURE__ */ new Error("WebSocket closed without opened."));
413
419
  return;
@@ -474,10 +480,10 @@ var Queue = class {
474
480
  };
475
481
  //#endregion
476
482
  //#region src/shared/forwardConsole.ts
477
- function setupForwardConsoleHandler(transport, options) {
483
+ function setupForwardConsoleHandler(transport, options, console = globalThis.console) {
478
484
  if (!options.enabled) return;
479
- function sendError(type, error) {
480
- transport.send({
485
+ async function sendError(type, error) {
486
+ await transport.send({
481
487
  type: "custom",
482
488
  event: "vite:forward-console",
483
489
  data: {
@@ -490,19 +496,28 @@ function setupForwardConsoleHandler(transport, options) {
490
496
  }
491
497
  });
492
498
  }
493
- function sendLog(level, args) {
494
- transport.send({
495
- type: "custom",
496
- event: "vite:forward-console",
497
- data: {
498
- type: "log",
499
+ async function sendLog(level, args) {
500
+ try {
501
+ await transport.send({
502
+ type: "custom",
503
+ event: "vite:forward-console",
499
504
  data: {
500
- level,
501
- message: formatConsoleArgs(args)
505
+ type: "log",
506
+ data: {
507
+ level,
508
+ message: formatConsoleArgs(args)
509
+ }
502
510
  }
511
+ });
512
+ } catch (err) {
513
+ try {
514
+ await sendError("unhandled-rejection", err);
515
+ } catch (err) {
516
+ if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
503
517
  }
504
- });
518
+ }
505
519
  }
520
+ const originalConsoleError = console.error;
506
521
  for (const level of options.logLevels) {
507
522
  const original = console[level];
508
523
  if (typeof original !== "function") continue;
@@ -512,11 +527,20 @@ function setupForwardConsoleHandler(transport, options) {
512
527
  };
513
528
  }
514
529
  if (options.unhandledErrors && typeof window !== "undefined") {
515
- window.addEventListener("error", (event) => {
516
- sendError("error", event.error ?? (event.message ? new Error(event.message) : event));
530
+ window.addEventListener("error", async (event) => {
531
+ const error = event.error ?? (event.message ? new Error(event.message) : event);
532
+ try {
533
+ await sendError("error", error);
534
+ } catch (err) {
535
+ if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
536
+ }
517
537
  });
518
- window.addEventListener("unhandledrejection", (event) => {
519
- sendError("unhandled-rejection", event.reason);
538
+ window.addEventListener("unhandledrejection", async (event) => {
539
+ try {
540
+ await sendError("unhandled-rejection", event.reason);
541
+ } catch (err) {
542
+ if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
543
+ }
520
544
  });
521
545
  }
522
546
  }
@@ -672,7 +696,7 @@ pre.frame {
672
696
 
673
697
  .message {
674
698
  line-height: 1.3;
675
- font-weight: 600;
699
+ font-weight: 400;
676
700
  white-space: pre-wrap;
677
701
  }
678
702
 
@@ -1182,9 +1206,7 @@ function updateStyle(id, content) {
1182
1206
  }
1183
1207
  function removeStyle(id) {
1184
1208
  if (linkSheetsMap.has(id)) {
1185
- document.querySelectorAll(`link[rel="stylesheet"][data-vite-dev-id]`).forEach((el) => {
1186
- if (el.getAttribute("data-vite-dev-id") === id) el.remove();
1187
- });
1209
+ document.querySelectorAll(`link[rel="stylesheet"][data-vite-dev-id="${CSS.escape(id)}"]`).forEach((el) => el.remove());
1188
1210
  linkSheetsMap.delete(id);
1189
1211
  }
1190
1212
  const style = sheetsMap.get(id);
@@ -1218,18 +1240,30 @@ if (isBundleMode && typeof DevRuntime !== "undefined") {
1218
1240
  }
1219
1241
  applyUpdates(_boundaries) {}
1220
1242
  }
1243
+ const clientId = nanoid();
1244
+ transport.send({
1245
+ type: "custom",
1246
+ event: "vite:module-loaded",
1247
+ data: {
1248
+ modules: [],
1249
+ clientId
1250
+ }
1251
+ });
1221
1252
  (_ref = globalThis).__rolldown_runtime__ ?? (_ref.__rolldown_runtime__ = new ViteDevRuntime({ send(message) {
1222
1253
  switch (message.type) {
1223
1254
  case "hmr:module-registered":
1224
1255
  transport.send({
1225
1256
  type: "custom",
1226
1257
  event: "vite:module-loaded",
1227
- data: { modules: message.modules.slice() }
1258
+ data: {
1259
+ modules: message.modules.slice(),
1260
+ clientId
1261
+ }
1228
1262
  });
1229
1263
  break;
1230
1264
  default: throw new Error(`Unknown message type: ${JSON.stringify(message)}`);
1231
1265
  }
1232
- } }));
1266
+ } }, clientId));
1233
1267
  }
1234
1268
  //#endregion
1235
1269
  export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle };