vite 5.0.11 → 5.1.0-beta.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/dist/node/cli.js CHANGED
@@ -2,7 +2,7 @@ import path from 'node:path';
2
2
  import fs from 'node:fs';
3
3
  import { performance } from 'node:perf_hooks';
4
4
  import { EventEmitter } from 'events';
5
- import { x as colors, k as createLogger, r as resolveConfig } from './chunks/dep-V3BH7oO1.js';
5
+ import { y as colors, q as createLogger, r as resolveConfig } from './chunks/dep-jUaJI_Cb.js';
6
6
  import { VERSION } from './constants.js';
7
7
  import 'node:fs/promises';
8
8
  import 'node:url';
@@ -29,7 +29,6 @@ import 'node:dns';
29
29
  import 'crypto';
30
30
  import 'module';
31
31
  import 'node:assert';
32
- import 'node:process';
33
32
  import 'node:v8';
34
33
  import 'node:buffer';
35
34
  import 'rollup';
@@ -759,7 +758,7 @@ cli
759
758
  filterDuplicateOptions(options);
760
759
  // output structure is preserved even after bundling so require()
761
760
  // is ok here
762
- const { createServer } = await import('./chunks/dep-V3BH7oO1.js').then(function (n) { return n.A; });
761
+ const { createServer } = await import('./chunks/dep-jUaJI_Cb.js').then(function (n) { return n.C; });
763
762
  try {
764
763
  const server = await createServer({
765
764
  root,
@@ -839,7 +838,7 @@ cli
839
838
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
840
839
  .action(async (root, options) => {
841
840
  filterDuplicateOptions(options);
842
- const { build } = await import('./chunks/dep-V3BH7oO1.js').then(function (n) { return n.C; });
841
+ const { build } = await import('./chunks/dep-jUaJI_Cb.js').then(function (n) { return n.D; });
843
842
  const buildOptions = cleanOptions(options);
844
843
  try {
845
844
  await build({
@@ -867,7 +866,7 @@ cli
867
866
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
868
867
  .action(async (root, options) => {
869
868
  filterDuplicateOptions(options);
870
- const { optimizeDeps } = await import('./chunks/dep-V3BH7oO1.js').then(function (n) { return n.B; });
869
+ const { optimizeDeps } = await import('./chunks/dep-jUaJI_Cb.js').then(function (n) { return n.B; });
871
870
  try {
872
871
  const config = await resolveConfig({
873
872
  root,
@@ -893,7 +892,7 @@ cli
893
892
  .option('--outDir <dir>', `[string] output directory (default: dist)`)
894
893
  .action(async (root, options) => {
895
894
  filterDuplicateOptions(options);
896
- const { preview } = await import('./chunks/dep-V3BH7oO1.js').then(function (n) { return n.D; });
895
+ const { preview } = await import('./chunks/dep-jUaJI_Cb.js').then(function (n) { return n.E; });
897
896
  try {
898
897
  const server = await preview({
899
898
  root,
@@ -98,6 +98,8 @@ const KNOWN_ASSET_TYPES = [
98
98
  'aac',
99
99
  'opus',
100
100
  'mov',
101
+ 'm4a',
102
+ 'vtt',
101
103
  // fonts
102
104
  'woff2?',
103
105
  'eot',
@@ -123,5 +125,7 @@ const wildcardHosts = new Set([
123
125
  ]);
124
126
  const DEFAULT_DEV_PORT = 5173;
125
127
  const DEFAULT_PREVIEW_PORT = 4173;
128
+ const DEFAULT_ASSETS_INLINE_LIMIT = 4096;
129
+ const METADATA_FILENAME = '_metadata.json';
126
130
 
127
- export { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTENSIONS, DEFAULT_MAIN_FIELDS, DEFAULT_PREVIEW_PORT, DEP_VERSION_RE, ENV_ENTRY, ENV_PUBLIC_PATH, ESBUILD_MODULES_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, NULL_BYTE_PLACEHOLDER, OPTIMIZABLE_ENTRY_RE, SPECIAL_QUERY_RE, VALID_ID_PREFIX, VERSION, VITE_PACKAGE_DIR, loopbackHosts, wildcardHosts };
131
+ export { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTENSIONS, DEFAULT_MAIN_FIELDS, DEFAULT_PREVIEW_PORT, DEP_VERSION_RE, ENV_ENTRY, ENV_PUBLIC_PATH, ESBUILD_MODULES_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, METADATA_FILENAME, NULL_BYTE_PLACEHOLDER, OPTIMIZABLE_ENTRY_RE, SPECIAL_QUERY_RE, VALID_ID_PREFIX, VERSION, VITE_PACKAGE_DIR, loopbackHosts, wildcardHosts };
@@ -713,6 +713,10 @@ interface PreviewServer {
713
713
  * The resolved vite config object
714
714
  */
715
715
  config: ResolvedConfig;
716
+ /**
717
+ * Stop the server.
718
+ */
719
+ close(): Promise<void>;
716
720
  /**
717
721
  * A connect app instance.
718
722
  * - Can be used to attach custom middlewares to the preview server.
@@ -1412,16 +1416,38 @@ declare namespace WebSocket {
1412
1416
  ): Duplex
1413
1417
  }
1414
1418
 
1415
- type WebSocketCustomListener<T> = (data: T, client: WebSocketClient) => void;
1416
- interface WebSocketServer {
1419
+ interface HmrOptions {
1420
+ protocol?: string;
1421
+ host?: string;
1422
+ port?: number;
1423
+ clientPort?: number;
1424
+ path?: string;
1425
+ timeout?: number;
1426
+ overlay?: boolean;
1427
+ server?: Server;
1428
+ }
1429
+ interface HmrContext {
1430
+ file: string;
1431
+ timestamp: number;
1432
+ modules: Array<ModuleNode>;
1433
+ read: () => string | Promise<string>;
1434
+ server: ViteDevServer;
1435
+ }
1436
+ interface HMRBroadcasterClient {
1417
1437
  /**
1418
- * Listen on port and host
1438
+ * Send event to the client
1419
1439
  */
1420
- listen(): void;
1440
+ send(payload: HMRPayload): void;
1421
1441
  /**
1422
- * Get all connected clients.
1442
+ * Send custom event
1423
1443
  */
1424
- clients: Set<WebSocketClient>;
1444
+ send(event: string, payload?: CustomPayload['data']): void;
1445
+ }
1446
+ interface HMRChannel {
1447
+ /**
1448
+ * Unique channel name
1449
+ */
1450
+ name: string;
1425
1451
  /**
1426
1452
  * Broadcast events to all clients
1427
1453
  */
@@ -1430,6 +1456,46 @@ interface WebSocketServer {
1430
1456
  * Send custom event
1431
1457
  */
1432
1458
  send<T extends string>(event: T, payload?: InferCustomEventPayload<T>): void;
1459
+ /**
1460
+ * Handle custom event emitted by `import.meta.hot.send`
1461
+ */
1462
+ on<T extends string>(event: T, listener: (data: InferCustomEventPayload<T>, client: HMRBroadcasterClient, ...args: any[]) => void): void;
1463
+ on(event: 'connection', listener: () => void): void;
1464
+ /**
1465
+ * Unregister event listener
1466
+ */
1467
+ off(event: string, listener: Function): void;
1468
+ /**
1469
+ * Start listening for messages
1470
+ */
1471
+ listen(): void;
1472
+ /**
1473
+ * Disconnect all clients, called when server is closed or restarted.
1474
+ */
1475
+ close(): void;
1476
+ }
1477
+ interface HMRBroadcaster extends Omit<HMRChannel, 'close' | 'name'> {
1478
+ /**
1479
+ * All registered channels. Always has websocket channel.
1480
+ */
1481
+ readonly channels: HMRChannel[];
1482
+ /**
1483
+ * Add a new third-party channel.
1484
+ */
1485
+ addChannel(connection: HMRChannel): HMRBroadcaster;
1486
+ close(): Promise<unknown[]>;
1487
+ }
1488
+
1489
+ type WebSocketCustomListener<T> = (data: T, client: WebSocketClient) => void;
1490
+ interface WebSocketServer extends HMRChannel {
1491
+ /**
1492
+ * Listen on port and host
1493
+ */
1494
+ listen(): void;
1495
+ /**
1496
+ * Get all connected clients.
1497
+ */
1498
+ clients: Set<WebSocketClient>;
1433
1499
  /**
1434
1500
  * Disconnect all clients and terminate the server.
1435
1501
  */
@@ -1463,24 +1529,6 @@ interface WebSocketClient {
1463
1529
  socket: WebSocket;
1464
1530
  }
1465
1531
 
1466
- interface HmrOptions {
1467
- protocol?: string;
1468
- host?: string;
1469
- port?: number;
1470
- clientPort?: number;
1471
- path?: string;
1472
- timeout?: number;
1473
- overlay?: boolean;
1474
- server?: Server;
1475
- }
1476
- interface HmrContext {
1477
- file: string;
1478
- timestamp: number;
1479
- modules: Array<ModuleNode>;
1480
- read: () => string | Promise<string>;
1481
- server: ViteDevServer;
1482
- }
1483
-
1484
1532
  interface ServerOptions extends CommonServerOptions {
1485
1533
  /**
1486
1534
  * Configure HMR-specific options (port, host, path & protocol)
@@ -1608,8 +1656,16 @@ interface ViteDevServer {
1608
1656
  watcher: FSWatcher;
1609
1657
  /**
1610
1658
  * web socket server with `send(payload)` method
1659
+ * @deprecated use `hot` instead
1611
1660
  */
1612
1661
  ws: WebSocketServer;
1662
+ /**
1663
+ * HMR broadcaster that can be used to send custom HMR messages to the client
1664
+ *
1665
+ * Always sends a message to at least a WebSocket client. Any third party can
1666
+ * add a channel to the broadcaster to process messages
1667
+ */
1668
+ hot: HMRBroadcaster;
1613
1669
  /**
1614
1670
  * Rollup plugin container that can run plugin hooks on a given file
1615
1671
  */
@@ -2240,7 +2296,7 @@ interface BuildOptions {
2240
2296
  * base64 strings. Default limit is `4096` (4 KiB). Set to `0` to disable.
2241
2297
  * @default 4096
2242
2298
  */
2243
- assetsInlineLimit?: number;
2299
+ assetsInlineLimit?: number | ((filePath: string, content: Buffer) => boolean | undefined);
2244
2300
  /**
2245
2301
  * Whether to code-split CSS. When enabled, CSS in async chunks will be
2246
2302
  * inlined as strings in the chunk and inserted via dynamically created
@@ -2466,9 +2522,6 @@ interface DepsOptimizer {
2466
2522
  isOptimizedDepUrl: (url: string) => boolean;
2467
2523
  getOptimizedDepId: (depInfo: OptimizedDepInfo) => string;
2468
2524
  delayDepsOptimizerUntil: (id: string, done: () => Promise<any>) => void;
2469
- registerWorkersSource: (id: string) => void;
2470
- resetRegisteredIds: () => void;
2471
- ensureFirstRun: () => void;
2472
2525
  close: () => Promise<void>;
2473
2526
  options: DepOptimizationOptions;
2474
2527
  }
@@ -2512,10 +2565,12 @@ interface DepOptimizationConfig {
2512
2565
  */
2513
2566
  extensions?: string[];
2514
2567
  /**
2515
- * Disables dependencies optimizations, true disables the optimizer during
2516
- * build and dev. Pass 'build' or 'dev' to only disable the optimizer in
2517
- * one of the modes. Deps optimization is enabled by default in dev only.
2568
+ * Deps optimization during build was removed in Vite 5.1. This option is
2569
+ * now redundant and will be removed in a future version. Switch to using
2570
+ * `optimizeDeps.noDiscovery` and an empty or undefined `optimizeDeps.include`.
2571
+ * true or 'dev' disables the optimizer, false or 'build' leaves it enabled.
2518
2572
  * @default 'build'
2573
+ * @deprecated
2519
2574
  * @experimental
2520
2575
  */
2521
2576
  disabled?: boolean | 'build' | 'dev';
@@ -2613,7 +2668,7 @@ type SSRTarget = 'node' | 'webworker';
2613
2668
  type SsrDepOptimizationOptions = DepOptimizationConfig;
2614
2669
  interface SSROptions {
2615
2670
  noExternal?: string | RegExp | (string | RegExp)[] | true;
2616
- external?: string[];
2671
+ external?: string[] | true;
2617
2672
  /**
2618
2673
  * Define the target for the ssr build. The browser field in package.json
2619
2674
  * is ignored for node but used if webworker is the target
@@ -2961,7 +3016,7 @@ interface Plugin<A = any> extends rollup.Plugin<A> {
2961
3016
  * the descriptors.
2962
3017
  *
2963
3018
  * - The hook can also return an empty array and then perform custom updates
2964
- * by sending a custom hmr payload via server.ws.send().
3019
+ * by sending a custom hmr payload via server.hot.send().
2965
3020
  *
2966
3021
  * - If the hook doesn't return a value, the hmr update will be performed as
2967
3022
  * normal.
@@ -1,6 +1,6 @@
1
1
  export { parseAst, parseAstAsync } from 'rollup/parseAst';
2
- import { i as isInNodeModules } from './chunks/dep-V3BH7oO1.js';
3
- export { b as build, e as buildErrorMessage, h as createFilter, k as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, u as isFileServingAllowed, l as loadConfigFromFile, v as loadEnv, g as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, r as resolveConfig, w as resolveEnvPrefix, q as searchForWorkspaceRoot, j as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-V3BH7oO1.js';
2
+ import { i as isInNodeModules, a as arraify } from './chunks/dep-jUaJI_Cb.js';
3
+ export { b as build, g as buildErrorMessage, j as createFilter, q as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, v as isFileServingAllowed, l as loadConfigFromFile, w as loadEnv, h as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, e as preprocessCSS, p as preview, r as resolveConfig, x as resolveEnvPrefix, u as searchForWorkspaceRoot, k as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-jUaJI_Cb.js';
4
4
  export { VERSION as version } from './constants.js';
5
5
  export { version as esbuildVersion } from 'esbuild';
6
6
  export { VERSION as rollupVersion } from 'rollup';
@@ -32,7 +32,6 @@ import 'node:dns';
32
32
  import 'crypto';
33
33
  import 'module';
34
34
  import 'node:assert';
35
- import 'node:process';
36
35
  import 'node:v8';
37
36
  import 'node:buffer';
38
37
  import 'querystring';
@@ -115,7 +114,7 @@ function splitVendorChunkPlugin() {
115
114
  config(config) {
116
115
  let outputs = config?.build?.rollupOptions?.output;
117
116
  if (outputs) {
118
- outputs = Array.isArray(outputs) ? outputs : [outputs];
117
+ outputs = arraify(outputs);
119
118
  for (const output of outputs) {
120
119
  const viteManualChunks = createSplitVendorChunk(output, config);
121
120
  if (viteManualChunks) {
@@ -3658,7 +3658,7 @@ function splitVendorChunkPlugin() {
3658
3658
  config(config) {
3659
3659
  let outputs = config?.build?.rollupOptions?.output;
3660
3660
  if (outputs) {
3661
- outputs = Array.isArray(outputs) ? outputs : [outputs];
3661
+ outputs = arraify(outputs);
3662
3662
  for (const output of outputs) {
3663
3663
  const viteManualChunks = createSplitVendorChunk(output, config);
3664
3664
  if (viteManualChunks) {
@@ -5298,7 +5298,7 @@ const debug = createDebugger('vite:send', {
5298
5298
  onlyWhenFocused: true,
5299
5299
  });
5300
5300
  const alias = {
5301
- js: 'application/javascript',
5301
+ js: 'text/javascript',
5302
5302
  css: 'text/css',
5303
5303
  html: 'text/html',
5304
5304
  json: 'application/json',
@@ -5367,36 +5367,42 @@ function clearScreen() {
5367
5367
  readline.cursorTo(process.stdout, 0, 0);
5368
5368
  readline.clearScreenDown(process.stdout);
5369
5369
  }
5370
- function createLogger(level = 'info', options = {}) {
5371
- if (options.customLogger) {
5372
- return options.customLogger;
5373
- }
5374
- const timeFormatter = new Intl.DateTimeFormat(undefined, {
5370
+ // Only initialize the timeFormatter when the timestamp option is used, and
5371
+ // reuse it across all loggers
5372
+ let timeFormatter;
5373
+ function getTimeFormatter() {
5374
+ timeFormatter ??= new Intl.DateTimeFormat(undefined, {
5375
5375
  hour: 'numeric',
5376
5376
  minute: 'numeric',
5377
5377
  second: 'numeric',
5378
5378
  });
5379
+ return timeFormatter;
5380
+ }
5381
+ function createLogger(level = 'info', options = {}) {
5382
+ if (options.customLogger) {
5383
+ return options.customLogger;
5384
+ }
5379
5385
  const loggedErrors = new WeakSet();
5380
5386
  const { prefix = '[vite]', allowClearScreen = true } = options;
5381
5387
  const thresh = LogLevels[level];
5382
5388
  const canClearScreen = allowClearScreen && process.stdout.isTTY && !process.env.CI;
5383
5389
  const clear = canClearScreen ? clearScreen : () => { };
5390
+ function format(type, msg, options = {}) {
5391
+ if (options.timestamp) {
5392
+ const tag = type === 'info'
5393
+ ? colors.cyan(colors.bold(prefix))
5394
+ : type === 'warn'
5395
+ ? colors.yellow(colors.bold(prefix))
5396
+ : colors.red(colors.bold(prefix));
5397
+ return `${colors.dim(getTimeFormatter().format(new Date()))} ${tag} ${msg}`;
5398
+ }
5399
+ else {
5400
+ return msg;
5401
+ }
5402
+ }
5384
5403
  function output(type, msg, options = {}) {
5385
5404
  if (thresh >= LogLevels[type]) {
5386
5405
  const method = type === 'info' ? 'log' : type;
5387
- const format = () => {
5388
- if (options.timestamp) {
5389
- const tag = type === 'info'
5390
- ? colors.cyan(colors.bold(prefix))
5391
- : type === 'warn'
5392
- ? colors.yellow(colors.bold(prefix))
5393
- : colors.red(colors.bold(prefix));
5394
- return `${colors.dim(timeFormatter.format(new Date()))} ${tag} ${msg}`;
5395
- }
5396
- else {
5397
- return msg;
5398
- }
5399
- };
5400
5406
  if (options.error) {
5401
5407
  loggedErrors.add(options.error);
5402
5408
  }
@@ -5404,7 +5410,7 @@ function createLogger(level = 'info', options = {}) {
5404
5410
  if (type === lastType && msg === lastMsg) {
5405
5411
  sameCount++;
5406
5412
  clear();
5407
- console[method](format(), colors.yellow(`(x${sameCount + 1})`));
5413
+ console[method](format(type, msg, options), colors.yellow(`(x${sameCount + 1})`));
5408
5414
  }
5409
5415
  else {
5410
5416
  sameCount = 0;
@@ -5413,11 +5419,11 @@ function createLogger(level = 'info', options = {}) {
5413
5419
  if (options.clear) {
5414
5420
  clear();
5415
5421
  }
5416
- console[method](format());
5422
+ console[method](format(type, msg, options));
5417
5423
  }
5418
5424
  }
5419
5425
  else {
5420
- console[method](format());
5426
+ console[method](format(type, msg, options));
5421
5427
  }
5422
5428
  }
5423
5429
  }
@@ -6008,13 +6014,13 @@ function expand (config) {
6008
6014
 
6009
6015
  var expand_1 = expand;
6010
6016
 
6011
- function getEnvFilesForMode(mode) {
6017
+ function getEnvFilesForMode(mode, envDir) {
6012
6018
  return [
6013
6019
  /** default file */ `.env`,
6014
6020
  /** local file */ `.env.local`,
6015
6021
  /** mode file */ `.env.${mode}`,
6016
6022
  /** mode local file */ `.env.${mode}.local`,
6017
- ];
6023
+ ].map((file) => normalizePath(path$3.join(envDir, file)));
6018
6024
  }
6019
6025
  function loadEnv(mode, envDir, prefixes = 'VITE_') {
6020
6026
  if (mode === 'local') {
@@ -6023,9 +6029,8 @@ function loadEnv(mode, envDir, prefixes = 'VITE_') {
6023
6029
  }
6024
6030
  prefixes = arraify(prefixes);
6025
6031
  const env = {};
6026
- const envFiles = getEnvFilesForMode(mode);
6027
- const parsed = Object.fromEntries(envFiles.flatMap((file) => {
6028
- const filePath = path$3.join(envDir, file);
6032
+ const envFiles = getEnvFilesForMode(mode, envDir);
6033
+ const parsed = Object.fromEntries(envFiles.flatMap((filePath) => {
6029
6034
  if (!tryStatSync(filePath)?.isFile())
6030
6035
  return [];
6031
6036
  return Object.entries(parse_1(fs$1.readFileSync(filePath)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "5.0.11",
3
+ "version": "5.1.0-beta.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -62,7 +62,7 @@
62
62
  "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
63
63
  "dependencies": {
64
64
  "esbuild": "^0.19.3",
65
- "postcss": "^8.4.32",
65
+ "postcss": "^8.4.33",
66
66
  "rollup": "^4.2.0"
67
67
  },
68
68
  "optionalDependencies": {
@@ -71,18 +71,18 @@
71
71
  "devDependencies": {
72
72
  "@ampproject/remapping": "^2.2.1",
73
73
  "@babel/parser": "^7.23.6",
74
- "@jridgewell/trace-mapping": "^0.3.20",
74
+ "@jridgewell/trace-mapping": "^0.3.21",
75
75
  "@rollup/plugin-alias": "^5.1.0",
76
76
  "@rollup/plugin-commonjs": "^25.0.7",
77
77
  "@rollup/plugin-dynamic-import-vars": "^2.1.2",
78
- "@rollup/plugin-json": "^6.0.1",
78
+ "@rollup/plugin-json": "^6.1.0",
79
79
  "@rollup/plugin-node-resolve": "15.2.3",
80
- "@rollup/plugin-typescript": "^11.1.5",
80
+ "@rollup/plugin-typescript": "^11.1.6",
81
81
  "@rollup/pluginutils": "^5.1.0",
82
82
  "@types/escape-html": "^1.0.4",
83
83
  "@types/pnpapi": "^0.0.5",
84
- "acorn": "^8.11.2",
85
- "acorn-walk": "^8.3.1",
84
+ "acorn": "^8.11.3",
85
+ "acorn-walk": "^8.3.2",
86
86
  "cac": "^6.7.14",
87
87
  "chokidar": "^3.5.3",
88
88
  "connect": "^3.7.0",
@@ -99,34 +99,33 @@
99
99
  "etag": "^1.8.1",
100
100
  "fast-glob": "^3.3.2",
101
101
  "http-proxy": "^1.18.1",
102
- "json-stable-stringify": "^1.1.0",
103
102
  "launch-editor-middleware": "^2.6.1",
104
- "lightningcss": "^1.22.1",
103
+ "lightningcss": "^1.23.0",
105
104
  "magic-string": "^0.30.5",
106
105
  "micromatch": "^4.0.5",
107
- "mlly": "^1.4.2",
108
- "mrmime": "^1.0.1",
106
+ "mlly": "^1.5.0",
107
+ "mrmime": "^2.0.0",
109
108
  "okie": "^1.0.1",
110
109
  "open": "^8.4.2",
111
110
  "parse5": "^7.1.2",
112
111
  "periscopic": "^4.0.2",
113
112
  "picocolors": "^1.0.0",
114
113
  "picomatch": "^2.3.1",
115
- "postcss-import": "^15.1.0",
114
+ "postcss-import": "^16.0.0",
116
115
  "postcss-load-config": "^4.0.2",
117
116
  "postcss-modules": "^6.0.0",
118
117
  "resolve.exports": "^2.0.2",
119
118
  "rollup-plugin-dts": "^6.1.0",
120
119
  "rollup-plugin-license": "^3.2.0",
121
- "sirv": "^2.0.3",
120
+ "sirv": "^2.0.4",
122
121
  "source-map-support": "^0.5.21",
123
122
  "strip-ansi": "^7.1.0",
124
123
  "strip-literal": "^2.0.0",
125
- "tsconfck": "^3.0.0",
124
+ "tsconfck": "^3.0.1",
126
125
  "tslib": "^2.6.2",
127
126
  "types": "link:./types",
128
127
  "ufo": "^1.3.2",
129
- "ws": "^8.15.0"
128
+ "ws": "^8.16.0"
130
129
  },
131
130
  "peerDependencies": {
132
131
  "@types/node": "^18.0.0 || >=20.0.0",
@@ -20,10 +20,10 @@ export interface Update {
20
20
  path: string
21
21
  acceptedPath: string
22
22
  timestamp: number
23
- /**
24
- * @experimental internal
25
- */
26
- explicitImportRequired?: boolean | undefined
23
+ /** @internal */
24
+ explicitImportRequired?: boolean
25
+ /** @internal */
26
+ isWithinCircularImport?: boolean
27
27
  }
28
28
 
29
29
  export interface PrunePayload {
@@ -4,6 +4,8 @@ export interface ImportGlobOptions<
4
4
  > {
5
5
  /**
6
6
  * Import type for the import url.
7
+ *
8
+ * @deprecated Use `query` instead, e.g. `as: 'url'` -> `query: '?url', import: 'default'`
7
9
  */
8
10
  as?: AsType
9
11
  /**