extension-develop 4.0.14-canary.1784588153.9319bcd7 → 4.0.14

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.
@@ -675,7 +675,7 @@ class ZipPlugin {
675
675
  if (manifest.default_locale) {
676
676
  const localeRoot = this.zipData.zipSource ? packageJsonDir : outPath;
677
677
  const messagesPath = __rspack_external_node_path_c5b9b54f.join(localeRoot, '_locales', String(manifest.default_locale), 'messages.json');
678
- if (!__rspack_external_node_fs_5ea92f0c.existsSync(messagesPath)) stats?.compilation?.warnings?.push(new Error(`ZipPlugin: manifest.json declares default_locale "${String(manifest.default_locale)}" but ${messagesPath} does not exist. Stores reject packages without their default locale restore the _locales folder before shipping this zip.`));
678
+ if (!__rspack_external_node_fs_5ea92f0c.existsSync(messagesPath)) stats?.compilation?.warnings?.push(new Error(`ZipPlugin: manifest.json declares default_locale "${String(manifest.default_locale)}" but ${messagesPath} does not exist. Stores reject packages without their default locale: restore the _locales folder before shipping this zip.`));
679
679
  }
680
680
  const base = sanitize(resolveManifestName(manifest.name, manifest, [
681
681
  outPath,
@@ -4247,7 +4247,7 @@ function javaScriptError(errorSourcePath, missingFilePath, opts) {
4247
4247
  lines.push(`Missing script file in ${pintor.underline(errorSourcePath)}.`);
4248
4248
  lines.push(`Update your ${pintor.yellow("<script>")} src to point to a file that exists.`);
4249
4249
  if (opts?.publicRootHint) lines.push(`Paths starting with '/' are resolved from the extension output root (served from ${pintor.yellow('public/')}), not your source directory.`);
4250
- if (opts?.deadRefHint) lines.push(`The build ships an empty placeholder for this script, so the page loads and no 404 appears in DevTools likely dead code. Set ${pintor.yellow('EXTENSION_STRICT_REFS=true')} to make this a build error.`);
4250
+ if (opts?.deadRefHint) lines.push(`The build ships an empty placeholder for this script, so the page loads and no 404 appears in DevTools (likely dead code). Set ${pintor.yellow('EXTENSION_STRICT_REFS=true')} to make this a build error.`);
4251
4251
  lines.push('');
4252
4252
  lines.push(`${pintor.red('NOT FOUND')} ${pintor.underline(missingFilePath)}`);
4253
4253
  return lines.join('\n');
@@ -6388,7 +6388,7 @@ class ApplyDevDefaults {
6388
6388
  const uses = findInjectedOnlyPermissionUses(compilation, declared, injectedForEra);
6389
6389
  for (const [api, file] of uses){
6390
6390
  const WebpackErrorCtor = compiler.rspack?.WebpackError;
6391
- const text = `manifest.json does not declare the "${api}" permission, but ${__rspack_external_path.relative(__rspack_external_path.dirname(this.manifestPath), file)} uses chrome.${api}. It works in development only because the dev instrumentation injects "${api}" the production build will fail at runtime. Add "${api}" to permissions in manifest.json.`;
6391
+ const text = `manifest.json does not declare the "${api}" permission, but ${__rspack_external_path.relative(__rspack_external_path.dirname(this.manifestPath), file)} uses chrome.${api}. It works in development only because the dev instrumentation injects "${api}": the production build will fail at runtime. Add "${api}" to permissions in manifest.json.`;
6392
6392
  const warning = WebpackErrorCtor ? new WebpackErrorCtor(text) : new Error(text);
6393
6393
  warning.name = 'DevInjectedPermissionWarning';
6394
6394
  compilation.warnings.push(warning);
package/dist/101.mjs CHANGED
@@ -698,7 +698,7 @@ async function config_loader_isUsingExperimentalConfig(projectPath) {
698
698
  }
699
699
  return false;
700
700
  }
701
- var package_namespaceObject = /*#__PURE__*/ JSON.parse('{"rE":"4.0.14-canary.1784588153.9319bcd7","El":{"@prefresh/core":"1.5.9","@prefresh/utils":"1.2.1","@rspack/core":"^2.1.1","@rspack/dev-server":"2.1.0","@rspack/plugin-preact-refresh":"2.0.1","@rspack/plugin-react-refresh":"2.0.2","@vue/compiler-sfc":"3.5.26","acorn":"^8.16.0","adm-zip":"^0.6.0","browser-extension-manifest-fields":"^2.2.9","case-sensitive-paths-webpack-plugin":"^2.4.0","content-security-policy-parser":"^0.6.0","dotenv":"^17.2.3","es-module-lexer":"^2.1.0","extension-from-store":"^0.1.1","go-git-it":"^5.1.5","ignore":"^7.0.5","less":"4.6.7","less-loader":"13.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","postcss":"8.5.10","postcss-loader":"8.2.1","postcss-preset-env":"11.1.1","postcss-scss":"4.0.9","preact":"10.27.3","prefers-yarn":"2.0.1","react-refresh":"0.18.0","sass-loader":"17.0.0","schema-utils":"^4.3.3","svelte-loader":"3.2.4","tiny-glob":"^0.2.9","vue":"3.5.26","vue-loader":"17.4.2","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.20.1"}}');
701
+ var package_namespaceObject = /*#__PURE__*/ JSON.parse('{"rE":"4.0.14","El":{"@prefresh/core":"1.5.9","@prefresh/utils":"1.2.1","@rspack/core":"^2.1.1","@rspack/dev-server":"2.1.0","@rspack/plugin-preact-refresh":"2.0.1","@rspack/plugin-react-refresh":"2.0.2","@vue/compiler-sfc":"3.5.26","acorn":"^8.16.0","adm-zip":"^0.6.0","browser-extension-manifest-fields":"^2.2.9","case-sensitive-paths-webpack-plugin":"^2.4.0","content-security-policy-parser":"^0.6.0","dotenv":"^17.2.3","es-module-lexer":"^2.1.0","extension-from-store":"^0.1.1","go-git-it":"^5.1.5","ignore":"^7.0.5","less":"4.6.7","less-loader":"13.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","postcss":"8.5.10","postcss-loader":"8.2.1","postcss-preset-env":"11.1.1","postcss-scss":"4.0.9","preact":"10.27.3","prefers-yarn":"2.0.1","react-refresh":"0.18.0","sass-loader":"17.0.0","schema-utils":"^4.3.3","svelte-loader":"3.2.4","tiny-glob":"^0.2.9","vue":"3.5.26","vue-loader":"17.4.2","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.20.1"}}');
702
702
  function asAbsolute(p) {
703
703
  return __rspack_external_node_path_c5b9b54f.isAbsolute(p) ? p : __rspack_external_node_path_c5b9b54f.resolve(p);
704
704
  }
@@ -1878,7 +1878,7 @@ function createPlaywrightMetadataWriter(options) {
1878
1878
  return null;
1879
1879
  }
1880
1880
  })();
1881
- if (foreignLiveDevSession) console.warn(`[extension] a live dev session (pid ${foreignLiveDevSession.pid}) owns ${readyPath}; this ${options.command} run will not rewrite the session's ready.json/events.ndjson. The output dir is shared, so the dev browser may pick up freshly ${options.command}-built files stop the dev session first for a clean ${options.command} receipt.`);
1881
+ if (foreignLiveDevSession) console.warn(`[extension] a live dev session (pid ${foreignLiveDevSession.pid}) owns ${readyPath}; this ${options.command} run will not rewrite the session's ready.json/events.ndjson. The output dir is shared, so the dev browser may pick up freshly ${options.command}-built files. Stop the dev session first for a clean ${options.command} receipt.`);
1882
1882
  const base = {
1883
1883
  schemaVersion: 2,
1884
1884
  command: options.command,
package/dist/494.mjs CHANGED
@@ -19,7 +19,7 @@ function legacyControlTokenPath(projectPath) {
19
19
  function sessionArtifactsRootDir(projectPath) {
20
20
  return __rspack_external_node_path_c5b9b54f.resolve(projectPath, 'dist', 'extension-js');
21
21
  }
22
- const SESSION_ARTIFACTS_IGNORE_CONTENT = "# Extension.js session state: managed browser profiles (cookies, history,\n# logins), session logs and machine contracts. Personal data lives here —\n# this directory must never be committed or shipped.\n*\n";
22
+ const SESSION_ARTIFACTS_IGNORE_CONTENT = "# Extension.js session state: managed browser profiles (cookies, history,\n# logins), session logs and machine contracts. Personal data lives here:\n# this directory must never be committed or shipped.\n*\n";
23
23
  function sessionArtifactsIgnoreFilePath(projectPath) {
24
24
  return __rspack_external_node_path_c5b9b54f.join(sessionArtifactsRootDir(projectPath), '.gitignore');
25
25
  }