🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP →
Sign In

vite

Package Overview
Dependencies
Maintainers
2
Versions
747
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite - npm Package Compare versions

Comparing version
8.2.0-beta.0
to
8.2.0
+12
-4
dist/client/bundledDevClient.mjs

@@ -246,2 +246,3 @@ import "@vite/env";

this.lastSeq = 0;
this.reloadPending = false;
}

@@ -315,2 +316,3 @@ isSelfAccepted(id) {

async applyPush({ changedIds, url, seq }) {
if (this.reloadPending) return;
if (seq !== this.lastSeq + 1) {

@@ -343,2 +345,3 @@ this.requestFullReload(`hmr update sequence gap (expected ${this.lastSeq + 1}, got ${seq})`);

async applyInvalidate(id) {
if (this.reloadPending) return;
const firstInvalidatedBy = this.currentFirstInvalidatedBy ?? id;

@@ -398,4 +401,10 @@ const importers = this.runtime.getImporters(id).filter((p) => this.runtime.isExecuted(p));

requestFullReload(reason) {
this.logger.debug(`full reload: ${reason}`);
this.options.pageReload();
if (this.reloadPending) return;
this.reloadPending = true;
this.logger.debug(`full reload needed: ${reason}`);
this.send({
type: "custom",
event: "vite:bundled-dev:reload-needed",
data: { reason }
});
}

@@ -1449,4 +1458,3 @@ };

base,
beforeApply: clearOverlayOrReloadOnFirstUpdate,
pageReload
beforeApply: clearOverlayOrReloadOnFirstUpdate
});

@@ -1453,0 +1461,0 @@ registerBundledDevClient(bundledDevHmrClient);

import { ft as __commonJSMin, pt as __require } from "./node.js";
import { t as require_lib } from "./lib.js";
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/format-import-prelude.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/lib/format-import-prelude.js
var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -18,3 +18,3 @@ module.exports = function formatImportPrelude(layer, media, supports) {

//#endregion
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/base64-encoded-import.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/lib/base64-encoded-import.js
var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -32,3 +32,3 @@ const formatImportPrelude = require_format_import_prelude();

//#endregion
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/apply-conditions.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/lib/apply-conditions.js
var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -108,3 +108,3 @@ const base64EncodedConditionalImport = require_base64_encoded_import();

//#endregion
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/apply-raws.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/lib/apply-raws.js
var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -123,3 +123,3 @@ module.exports = function applyRaws(bundle) {

//#endregion
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/apply-styles.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/lib/apply-styles.js
var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -144,3 +144,3 @@ module.exports = function applyStyles(bundle, styles) {

//#endregion
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/data-url.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/lib/data-url.js
var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -164,3 +164,3 @@ const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;

//#endregion
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/parse-statements.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/lib/parse-statements.js
var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -290,3 +290,3 @@ const valueParser = require_lib();

//#endregion
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/process-content.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/lib/process-content.js
var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -325,3 +325,3 @@ const path$2 = __require("path");

//#endregion
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/parse-styles.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/lib/parse-styles.js
var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -429,3 +429,3 @@ const path$1 = __require("path");

//#endregion
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/index.js
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.23/node_modules/postcss-import/index.js
var require_postcss_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {

@@ -432,0 +432,0 @@ const path = __require("path");

@@ -945,3 +945,3 @@ let SOURCEMAPPING_URL = "sourceMa";

function cloneCallSite(frame) {
let object = {};
let object = Object.create(null);
return Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach((name) => {

@@ -948,0 +948,0 @@ let key = name;

{
"name": "vite",
"version": "8.2.0-beta.0",
"version": "8.2.0",
"description": "Native-ESM powered web dev build tool",

@@ -61,3 +61,3 @@ "keywords": [

"picomatch": "^4.0.5",
"postcss": "^8.5.20",
"postcss": "^8.5.23",
"rolldown": "~1.2.0",

@@ -77,7 +77,7 @@ "tinyglobby": "^0.2.17"

"@vercel/detect-agent": "^1.2.3",
"@vitejs/devtools": "^0.4.1",
"@vitejs/devtools": "^0.4.8",
"@vitest/utils": "4.1.10",
"@voidzero-dev/vite-task-client": "^0.2.0",
"artichokie": "^0.4.4",
"baseline-browser-mapping": "^2.10.43",
"baseline-browser-mapping": "^2.11.3",
"cac": "^7.0.0",

@@ -99,3 +99,3 @@ "chokidar": "^3.6.0",

"launch-editor-middleware": "^2.14.1",
"magic-string": "^1.0.0",
"magic-string": "^1.1.0",
"mlly": "^1.8.2",

@@ -118,3 +118,3 @@ "mrmime": "^2.0.1",

"rollup-plugin-license": "^3.7.1",
"sass": "^1.101.0",
"sass": "^1.102.0",
"sass-embedded": "^1.100.0",

@@ -121,0 +121,0 @@ "sirv": "^3.0.2",

@@ -22,2 +22,4 @@ import type {

'vite:client-connected': { clientId: string }
/** @internal */
'vite:bundled-dev:reload-needed': { reason: string }

@@ -24,0 +26,0 @@ // server events

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display