wxt 0.20.26 → 0.20.27

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.
@@ -56,6 +56,7 @@ async function generateManifest(allEntrypoints, buildOutput) {
56
56
  manifest.version = version;
57
57
  manifest.version_name = wxt.config.browser === "firefox" || versionName === version ? void 0 : versionName;
58
58
  if (wxt.config.browser === "firefox" && !userManifest.browser_specific_settings?.gecko?.data_collection_permissions && !wxt.config.suppressWarnings?.firefoxDataCollection) wxt.logger.warn("Firefox requires `data_collection_permissions` for new extensions from November 3, 2025. Existing extensions are exempt for now.\nFor more details, see: https://extensionworkshop.com/documentation/develop/firefox-builtin-data-consent/\nTo suppress this warning, set `suppressWarnings.firefoxDataCollection` to `true` in your wxt config.\n");
59
+ if (wxt.config.browser === "firefox" && !manifest.browser_specific_settings?.gecko?.id && !wxt.config.suppressWarnings?.firefoxId) wxt.logger.warn("Firefox requires extension ID for MV3 and recommends it for MV2.\nFor more details, see: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings#id");
59
60
  addEntrypoints(manifest, entrypoints, buildOutput);
60
61
  if (wxt.config.browser === "firefox") addDiscoveredThemeIcons(manifest, buildOutput);
61
62
  if (wxt.config.command === "serve") addDevModeCsp(manifest);
package/dist/types.d.mts CHANGED
@@ -180,6 +180,11 @@ interface InlineConfig {
180
180
  * https://extensionworkshop.com/documentation/develop/firefox-builtin-data-consent
181
181
  */
182
182
  firefoxDataCollection?: boolean;
183
+ /**
184
+ * Suppress warnings when the Firefox extension ID is missing.
185
+ * https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings#id
186
+ */
187
+ firefoxId?: boolean;
183
188
  };
184
189
  /**
185
190
  * Configure browser startup. Options set here can be overridden in a
@@ -988,7 +993,7 @@ type UserManifest = { [key in keyof Browser.runtime.ManifestV3 as key extends 'a
988
993
  strict_max_version?: string;
989
994
  };
990
995
  };
991
- permissions?: (Browser.runtime.ManifestPermissions | (string & Record<never, never>))[];
996
+ permissions?: (Browser.runtime.ManifestPermission | (string & Record<never, never>))[];
992
997
  web_accessible_resources?: string[] | Browser.runtime.ManifestV3['web_accessible_resources'];
993
998
  };
994
999
  type UserManifestFn = (env: ConfigEnv) => UserManifest | Promise<UserManifest>;
@@ -1389,6 +1394,7 @@ interface ResolvedConfig$1 {
1389
1394
  /** List of warning identifiers to suppress during the build process. */
1390
1395
  suppressWarnings: {
1391
1396
  firefoxDataCollection?: boolean;
1397
+ firefoxId?: boolean;
1392
1398
  };
1393
1399
  dev: {
1394
1400
  /** Only defined during dev command */server?: {
package/dist/version.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region src/version.ts
2
- const version = "0.20.26";
2
+ const version = "0.20.27";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.20.26",
4
+ "version": "0.20.27",
5
5
  "description": "⚡ Next-gen Web Extension Framework",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  "@webext-core/fake-browser": "^1.3.4",
22
22
  "@webext-core/isolated-element": "^1.1.3",
23
23
  "@webext-core/match-patterns": "^1.0.3",
24
- "@wxt-dev/browser": "^0.1.42",
24
+ "@wxt-dev/browser": "^0.2.0",
25
25
  "@wxt-dev/storage": "^1.0.0",
26
26
  "async-mutex": "^0.5.0",
27
- "c12": "^3.3.3",
27
+ "c12": "^3.3.4",
28
28
  "cac": "^6.7.14 || ^7.0.0",
29
29
  "chokidar": "^5.0.0",
30
30
  "ci-info": "^4.4.0",
@@ -32,7 +32,7 @@
32
32
  "defu": "^6.1.4",
33
33
  "dotenv-expand": "^12.0.3",
34
34
  "esbuild": "^0.27.1",
35
- "filesize": "^11.0.15",
35
+ "filesize": "^11.0.17",
36
36
  "get-port-please": "^3.2.0",
37
37
  "giget": "^1.2.3 || ^2.0.0 || ^3.0.0",
38
38
  "hookable": "^6.1.0",
@@ -53,7 +53,7 @@
53
53
  "prompts": "^2.4.2",
54
54
  "publish-browser-extension": "^2.3.0 || ^3.0.2 || ^4.0.5",
55
55
  "scule": "^1.3.0",
56
- "tinyglobby": "^0.2.15",
56
+ "tinyglobby": "^0.2.16",
57
57
  "unimport": "^3.13.1 || ^4.0.0 || ^5.0.0 || ^6.0.0",
58
58
  "vite": "^5.4.19 || ^6.3.4 || ^7.0.0 || ^8.0.0-0",
59
59
  "vite-node": "^3.2.4 || ^5.0.0 || ^6.0.0",